/*
Theme Name: XblSHNIK Astra Child
Description: Единый стиль сайта XblSHNIK с сохранением шаблонов Astra, WooCommerce и Rank Math.
Author: XblSHNIK
Template: astra
Version: 1.2.0
Text Domain: xblshnik-astra-child
Requires PHP: 7.4
*/
:root {--xb-navy:#081523;--xb-panel:#102537;--xb-panel2:#142b3d;--xb-mint:#4ee3b4;--xb-text:#eef8fa;--xb-muted:#b3c4d3;--xb-border:#2c4455;}
body {background:#f4f8fa;color:#142b39;}
/* Brand: global header, compatible with Astra's standard site title */
#masthead .main-header-bar, .ast-primary-header-bar {background:var(--xb-navy);border-bottom:1px solid #20384b;}
#masthead .site-title a, #masthead .site-description, #masthead .main-header-menu a, #masthead .ast-header-html, #masthead .ast-builder-menu a {color:var(--xb-text);}
#masthead .main-header-menu a:hover, #masthead .ast-builder-menu a:hover, #masthead .current-menu-item > a {color:var(--xb-mint);}
#masthead .site-title a {display:inline-flex;align-items:center;gap:11px;font-weight:850;letter-spacing:.2px;}
#masthead .site-title a::before {content:"";display:inline-block;width:39px;height:39px;flex:0 0 39px;background:url('assets/egais-icon.png') center/contain no-repeat;}
#masthead .ast-site-identity {padding-top:8px;padding-bottom:8px;}
.ast-mobile-header-wrap .ast-mobile-header-content {background:#0b1b2a;}
.ast-mobile-header-wrap .ast-mobile-header-content a {color:#eef8fa;}
.ast-header-break-point .ast-mobile-menu-trigger-minimal .ast-button-wrap .mobile-menu-toggle-icon .ast-mobile-svg {fill:#4ee3b4;}
/* Common cards, links and controls without replacing WooCommerce markup */
.site-content a:not(.button):not(.wp-element-button) {text-underline-offset:3px;}
.site-content .wp-block-button__link, .site-content a.button, .site-content button.button, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button {border-radius:11px;background:var(--xb-mint);color:#062035;border:0;font-weight:750;}
.site-content .wp-block-button__link:hover, .site-content a.button:hover, .site-content button.button:hover, .woocommerce a.button:hover, .woocommerce button.button:hover {background:#29c99c;color:#062035;}
.woocommerce ul.products li.product, .woocommerce-page ul.products li.product {background:#fff;border:1px solid #e0e9ed;border-radius:14px;padding:14px;box-shadow:0 8px 24px rgba(10,30,50,.04);}
.woocommerce input.input-text, .woocommerce textarea, .woocommerce select {background:white;border:1px solid #beced6;border-radius:8px;color:#122a3e;}
/* Footer */
.site-footer, .site-primary-footer-wrap, .site-below-footer-wrap {background:var(--xb-navy);color:var(--xb-muted);border-color:var(--xb-border);}
.site-footer a {color:var(--xb-mint);}
/* Controlled hero style for new content (not compulsory for old pages) */
.xb-hero {background:radial-gradient(circle at 90% 20%,#114e4c,transparent 42%),var(--xb-navy);color:white;border-radius:22px;padding:clamp(25px,5vw,64px);margin:20px 0 30px;overflow:hidden;}
.xb-hero h1,.xb-hero h2,.xb-hero p {color:#fff;}
.xb-hero .xb-highlight {color:var(--xb-mint);}
.xb-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:24px 0;}
.xb-card {background:#fff;border:1px solid #dbe8eb;border-radius:16px;padding:22px;}
.xb-card h3 {color:#10283a;}
/* Header logo on wide and mobile layouts */
@media(max-width:921px){.xb-grid{grid-template-columns:1fr}.xb-hero{border-radius:15px}#masthead .site-title a::before{width:30px;height:30px;flex-basis:30px}}
@media(prefers-reduced-motion:no-preference){a,button{transition:color .15s ease,background-color .15s ease}}


/* ===== XblSHNIK 1.1: desktop navigation, consistent buttons ===== */
@media(min-width:922px){
  #masthead .ast-builder-grid-row{align-items:center;}
  #masthead .ast-builder-menu-1 .main-header-menu,
  #masthead .main-header-menu{display:flex;align-items:center;flex-wrap:nowrap;gap:5px;}
  #masthead .main-header-menu > .menu-item{flex:0 0 auto;}
  #masthead .main-header-menu > .menu-item > .menu-link{height:auto;min-height:42px;line-height:1.2;padding:11px 13px;border-radius:11px;border:1px solid transparent;background:transparent;font-size:13px;font-weight:650;white-space:nowrap;}
  #masthead .main-header-menu > .menu-item > .menu-link:hover,
  #masthead .main-header-menu > .current-menu-item > .menu-link{color:#57e6b7!important;background:rgba(78,227,180,.12);border-color:rgba(78,227,180,.2);}
  #masthead .main-header-menu > .xb-menu-download > .menu-link{background:#4ee3b4!important;color:#071e27!important;border:1px solid #4ee3b4;font-weight:800;padding:11px 18px;}
  #masthead .main-header-menu > .xb-menu-download > .menu-link:hover{background:#7ef4cd!important;color:#071e27!important;}
  #masthead .ast-primary-header-bar .ast-container{max-width:1320px;width:100%;gap:16px;}
  #masthead .ast-builder-grid-row-container-inner{min-width:0;}
  #masthead .site-title a{font-size:21px;white-space:nowrap;}
}
@media(min-width:922px) and (max-width:1150px){
  #masthead .main-header-menu > .menu-item > .menu-link{font-size:12px;padding:9px 8px;}
  #masthead .site-title a{font-size:18px;}
  #masthead .site-title a::before{width:31px;height:31px;flex-basis:31px;}
}
/* Site header should never grow two rows because long menu items wrap. */
@media(min-width:922px){#masthead .ast-builder-menu-1{min-width:0;}#masthead .ast-builder-grid-row{column-gap:16px;}}
@media(max-width:921px){
  #masthead .ast-mobile-header-content .menu-link{border-radius:8px;margin:2px 12px;}
  #masthead .ast-mobile-header-content .xb-menu-download > .menu-link{background:#4ee3b4!important;color:#081523!important;font-weight:800;}
  .ast-header-break-point #masthead .main-header-menu .menu-link{color:#eaf8fb;}
}

/* ===== Landing page integrated directly into the Astra content area ===== */
body.xb-egais-page, body.xb-egais-page #page{background:#081523;}
.xb-egais-page .site-content, .xb-egais-page .ast-container,
.xb-egais-page .site-content .content-area,
.xb-egais-page .site-content .site-main,
.xb-egais-page .site-content .ast-article-single,
.xb-egais-page .site-content .entry-content{background:transparent;}
.xb-egais-page .site-content > .ast-container{width:100%;max-width:100%;padding:0;display:block;}
.xb-egais-page .site-content #primary{padding:0;margin:0;width:100%;max-width:100%;border:0;float:none;}
.xb-egais-page .site-content .ast-article-single{padding:0;margin:0;border:0;box-shadow:none;}
.xb-egais-page .site-content .entry-content{margin:0;padding:0;}
.xb-egais-page .entry-header, .xb-egais-page .entry-title,
.xb-egais-page .ast-breadcrumbs-wrapper, .xb-egais-page .ast-breadcrumbs,
.xb-egais-page .ast-breadcrumbs-inner{display:none!important;}
.xb-egais-page .site-content .xe-landing{width:100%;max-width:none;left:auto;transform:none;margin:0;border:0;border-radius:0;box-shadow:none;}
.xb-egais-page .xe-main{max-width:1340px;margin:0 auto;}
.xb-egais-page .xe-hero{padding-top:72px;}
.xb-egais-page .site-content a:not(.button):not(.wp-element-button){text-decoration:none;}
.xb-egais-page .site-content{overflow:clip;}
/* Astra's main page area has no sidebar on the landing, even if elsewhere configured. */
.xb-egais-page .widget-area.secondary{display:none;}
/* A footer belongs to Astra, not to a second mini-site inside the content. */
.site-footer .ast-footer-copyright{color:#bdcedb;font-size:13px;}
.site-footer .ast-footer-copyright a{color:#4ee3b4;}
@media(max-width:767px){.xb-egais-page .xe-hero{padding-top:45px;}}


/* ===== 1.1.1: Footer without credits or white strip =====
   The EGAIS landing is a continuous dark surface. WooCommerce footers keep
   their layout and widgets; do not hide the global footer elsewhere. */
#colophon,
#colophon .site-primary-footer-wrap,
#colophon .site-below-footer-wrap,
#colophon .ast-builder-grid-row-container,
#colophon .ast-builder-grid-row-container-inner {
    background: #081523 !important;
    border-color: #20384b !important;
}
/* The footer credit is intentionally removed across the website. */
#colophon .ast-footer-copyright { display: none !important; }
/* Remove the empty copyright-row spacing without touching a footer menu. */
#colophon .site-below-footer-wrap:not(:has(.ast-footer-menu, .widget, .wp-block, .ast-header-social-wrap)) {
    padding: 0 !important;
    border: 0 !important;
}
/* On the EGAIS landing, eliminate the entire redundant Astra footer strip.
   This keeps the FAQ/disclaimer at the bottom of the landing itself. */
body.xb-egais-page #colophon { display: none !important; }
body.xb-egais-page,
body.xb-egais-page #page,
body.xb-egais-page .site-content { background: #081523 !important; }
