/*!
Theme Name: Golden Software
Theme URI: https://gsbelarus.com/
Author: keyit.by
Author URI: https://keyit.by/
Description: Корпоративная тема для платформы «Гедымин» (Golden Software, ООО «Амперсант»). Разработана на базе Underscores.
Version: 1.0.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: golden-software
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, responsive-layout, two-columns, right-sidebar

Фирменные цвета:
- Оранжевый (акцент):     #E63A0A
- Синий основной:         #0E2A43
- Синий светлый (карточки):#1C4364
- Самый тёмный (футер):   #081826
- Белый:                  #FFFDFD
- Серый:                  #393737
- Тёмно-серый:            #1E1D1D
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Variables
# Base & Reset
# Typography
# Layout
# Buttons
# Header
# Navigation (mega menu)
# Hero
# Front page blocks
# Cards / Solutions
# Trust / Stats
# Clients marquee
# Reviews
# Forms
# Widgets / Sidebar
# Page templates
# Footer
# Cookie banner
# Back to top
# Chat widget
# Responsive
--------------------------------------------------------------*/

:root {
        --gs-orange: #E63A0A;
        --gs-orange-dark: #C52F08;
        --gs-orange-light: #FF7A3D;
        --gs-navy: #0E2A43;
        --gs-blue: #1C4364;
        --gs-darkest: #081826;
        --gs-white: #FFFDFD;
        --gs-gray: #393737;
        --gs-darkgray: #1E1D1D;
        --gs-border: #E3E8EF;
        --gs-muted: #5B6B7D;
        --gs-bg-soft: #F4F7FB;
        --gs-radius: 10px;
        --gs-radius-lg: 16px;
        --gs-radius-xl: 24px;
        --gs-shadow: 0 10px 30px -12px rgba(8, 24, 38, 0.18);
        --gs-shadow-lg: 0 24px 60px -20px rgba(8, 24, 38, 0.28);
        --gs-container: 1760px;
        --gs-font: 'Manrope', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
        /* Neo-SaaS: тёмно-синий градиент по ТЗ + glassmorphism */
        --gs-grad-saas: linear-gradient(135deg, #081826 0%, #0E2A43 45%, #1C4364 100%);
        --gs-grad-saas-soft: linear-gradient(150deg, #0E2A43 0%, #1C4364 100%);
        /* Стекло: полупрозрачный белый с blur */
        --gs-glass-bg: rgba(255, 255, 255, 0.06);
        --gs-glass-bg-strong: rgba(255, 255, 255, 0.10);
        --gs-glass-border: rgba(255, 255, 255, 0.14);
        --gs-glass-border-hi: rgba(255, 255, 255, 0.28);
        --gs-glass-blur: blur(20px);
        --gs-glass-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.55);
        /* Светлое стекло на белом фоне */
        --gs-glass-light-bg: rgba(255, 255, 255, 0.72);
        --gs-glass-light-border: rgba(14, 42, 67, 0.08);
}

/*--------------------------------------------------------------
# Base & Reset
--------------------------------------------------------------*/
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
        margin: 0;
        font-family: var(--gs-font);
        font-size: 16px;
        line-height: 1.6;
        color: var(--gs-darkgray);
        background: var(--gs-white);
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
}

img, svg, video { max-width: 100%; height: auto; }
a { color: var(--gs-orange); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gs-orange-dark); }

.screen-reader-text {
        border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
        height: 1px; width: 1px; margin: -1px; overflow: hidden;
        padding: 0; position: absolute !important; word-wrap: normal !important;
}
.skip-link {
        position: absolute; left: -9999px; top: 0; z-index: 9999;
        background: var(--gs-orange); color: #fff; padding: 10px 16px;
        border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/*--------------------------------------------------------------
# Typography
--------------------------------------------------------------*/
h1, h2, h3, h4, h5, h6 {
        font-family: var(--gs-font);
        font-weight: 800;
        line-height: 1.2;
        color: var(--gs-navy);
        margin: 0 0 .5em;
}
h1 { font-size: clamp(28px, 4vw, 44px); }
h2 { font-size: clamp(24px, 3vw, 34px); }
h3 { font-size: clamp(20px, 2.2vw, 26px); }
h4 { font-size: 20px; }
p { margin: 0 0 1em; }

.section-title {
        text-align: center;
        margin-bottom: 16px;
}
.section-subtitle {
        text-align: center;
        color: var(--gs-muted);
        max-width: 760px;
        margin: 0 auto 56px;
        font-size: 17px;
        line-height: 1.6;
}
.eyebrow {
        display: inline-block;
        text-transform: uppercase;
        letter-spacing: .12em;
        font-size: 13px;
        font-weight: 700;
        color: var(--gs-orange);
        margin-bottom: 10px;
}

/*--------------------------------------------------------------
# Layout
--------------------------------------------------------------*/
.gs-container {
        width: 100%;
        max-width: var(--gs-container);
        margin: 0 auto;
        padding: 0 32px;
}
.gs-section { padding: 96px 0; }
.gs-section--soft { background: var(--gs-bg-soft); }
.gs-section--navy { background: var(--gs-navy); color: var(--gs-white); }
.gs-section--navy h2, .gs-section--navy h3 { color: var(--gs-white); }
.gs-section--darkest { background: var(--gs-darkest); color: var(--gs-white); }

.site-content { min-height: 40vh; }
/* На внутренних страницах (не главная) — тёмный фон под шапкой.
   Отступ 160px (шапка ~140px + воздух), тёмный фон 480px чтобы покрыть заголовок + описание. */
body:not(.home) #content {
        padding-top: 200px;
        position: relative;
}
@media (max-width: 768px) {
        body:not(.home) #content { padding-top: 150px; }
}
body:not(.home) #content::before {
        content: '';
        position: absolute;
        top: 0; left: 0; right: 0;
        height: 350px;
        background: linear-gradient(180deg, var(--gs-darkest) 0%, var(--gs-navy) 60%, var(--gs-navy) 80%, transparent 100%);
        z-index: 0;
}
body:not(.home) #content > * { position: relative; z-index: 1; }
/* page-header-bar уже на тёмном — убираем его собственный фон */
body:not(.home) .page-header-bar { background: transparent !important; padding-top: 0; padding-bottom: 32px; }
body:not(.home) .page-header-bar h1 { color: #fff; }
body:not(.home) .page-header-bar .breadcrumb,
body:not(.home) .page-header-bar .breadcrumb a { color: rgba(255,255,255,.8); }
body:not(.home) .page-header-bar .breadcrumb a:hover { color: var(--gs-orange-light); }
/* Первый gs-section после header-bar — без верхнего padding (иначе двойной отступ) */
body:not(.home) .page-header-bar + .gs-section { padding-top: 48px; }

#page { display: flex; flex-direction: column; min-height: 100vh; }
#content { flex: 1 0 auto; }

/*--------------------------------------------------------------
# Buttons
--------------------------------------------------------------*/
.gs-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 13px 26px;
        border-radius: var(--gs-radius);
        font-weight: 700;
        font-size: 15px;
        line-height: 1;
        border: 2px solid transparent;
        cursor: pointer;
        transition: all .2s ease;
        text-decoration: none;
        font-family: inherit;
}
.gs-btn--primary { background: var(--gs-orange); color: #fff; }
.gs-btn--primary:hover { background: var(--gs-orange-dark); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(230,58,10,.55); }
.gs-btn--outline { background: transparent; color: var(--gs-orange); border-color: var(--gs-orange); }
.gs-btn--outline:hover { background: var(--gs-orange); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(230,58,10,.45); }
.gs-btn--light { background: #fff; color: var(--gs-navy); }
.gs-btn--light:hover { background: var(--gs-bg-soft); color: var(--gs-navy); transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(14,42,67,.25); }
.gs-btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.gs-btn--ghost-light:hover { background: #fff; color: var(--gs-navy); border-color: #fff; }
/* Прозрачные кнопки hero (светлый фон) — как у dooglys */
.gs-btn--ghost-hero {
        background: rgba(255,255,255,.55);
        color: var(--gs-navy);
        border: 2px solid rgba(14,42,67,.25);
        backdrop-filter: blur(6px);
}
.gs-btn--ghost-hero:hover {
        background: var(--gs-navy);
        color: #fff;
        border-color: var(--gs-navy);
        transform: translateY(-2px);
        box-shadow: 0 14px 28px -12px rgba(14,42,67,.45);
}
.gs-btn--lg { padding: 16px 32px; font-size: 16px; }
.gs-btn--block { width: 100%; }

/* === Glassmorphism утилиты (с рамкой-бликом сверху) === */
.glass {
        position: relative;
        background: var(--gs-glass-bg);
        border: 1px solid var(--gs-glass-border);
        backdrop-filter: var(--gs-glass-blur);
        -webkit-backdrop-filter: var(--gs-glass-blur);
        box-shadow: var(--gs-glass-shadow), inset 0 1px 0 0 rgba(255,255,255,0.10);
        border-radius: var(--gs-radius-lg);
}
/* Рамка-блик: тонкая светлая линия сверху — имитация отражения света на стекле */
.glass::before {
        content: '';
        position: absolute;
        top: 0; left: 16%; right: 16%;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
        pointer-events: none;
        border-radius: 999px;
}
.glass-light {
        position: relative;
        background: var(--gs-glass-light-bg);
        border: 1px solid var(--gs-glass-light-border);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        box-shadow: 0 12px 36px -16px rgba(8,24,38,.18), inset 0 1px 0 0 rgba(255,255,255,0.65);
        border-radius: var(--gs-radius-lg);
}
.glass-light::before {
        content: '';
        position: absolute;
        top: 0; left: 12%; right: 12%;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.9), transparent);
        pointer-events: none;
        border-radius: 999px;
}
.bg-saas { background: var(--gs-grad-saas); }
.bg-saas-soft { background: var(--gs-grad-saas-soft); }

/*--------------------------------------------------------------
# Header
--------------------------------------------------------------*/
.site-header {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        background: transparent;
}

/* === Уровень 1: верхняя панель — в потоке, прозрачная === */
.header-top {
        background: transparent;
        color: rgba(255,255,255,.75);
        font-size: 13px;
}
.header-top .gs-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        min-height: 40px;
}
.header-top__work { display: flex; align-items: center; gap: 8px; }
.header-top__work strong { color: #fff; font-weight: 700; }
.header-top__contacts { display: flex; align-items: center; gap: 20px; }
.header-top__phone { color: #fff; font-weight: 700; font-size: 14px; }
.header-top__phone:hover { color: var(--gs-orange-light); }

/* === Уровень 2: средняя панель — в потоке, при скролле закрепляется (fixed) ===
   По умолчанию между верхней и нижней панелями. При скролле — fixed. */
.header-glass-wrap {
        position: relative;
        z-index: 1001;
        background: transparent;
        transition: all .35s cubic-bezier(.2,.7,.2,1);
}
/* Закреплённое состояние (добавляется JS при скролле) */
.header-glass-wrap.is-sticky {
        position: fixed;
        top: 8px;
        left: 0;
        right: 0;
}
/* Закруглённое жидкое стекло для средней панели */
.header-main {
        position: relative;
        z-index: 1;
        background: rgba(255,255,255,.08);
        border: 1px solid rgba(255,255,255,.18);
        backdrop-filter: blur(20px) saturate(160%);
        -webkit-backdrop-filter: blur(20px) saturate(160%);
        border-radius: 999px;
        box-shadow: 0 8px 32px -8px rgba(0,0,0,.3), inset 0 1px 0 0 rgba(255,255,255,.25), inset 0 -1px 0 0 rgba(0,0,0,.1);
}
/* Рамка-блик сверху — эффект жидкого стекла */
.header-main::before {
        content: '';
        position: absolute;
        top: 0; left: 10%; right: 10%;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,.6), transparent);
        pointer-events: none;
}
/* При прокрутке — тёмное стекло (белый текст читается на белом контенте) */
.header-glass-wrap.is-scrolled .header-main {
        background: rgba(8, 24, 38, 0.82);
        border-color: rgba(255,255,255,.22);
        box-shadow: 0 12px 40px -10px rgba(0,0,0,.45), inset 0 1px 0 0 rgba(255,255,255,.3), inset 0 -1px 0 0 rgba(0,0,0,.15);
}
.header-main .gs-container {
        display: flex;
        align-items: center;
        gap: 24px;
        min-height: 76px;
}
.site-branding { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.site-branding__logo { line-height: 0; }
.custom-logo-link img { max-height: 44px; width: auto; filter: brightness(0) invert(1); }
.site-tagline {
        font-size: 9px;
        color: rgba(255,255,255,.5);
        font-weight: 500;
        letter-spacing: .04em;
        line-height: 1;
        margin-top: 2px;
}
.site-title { margin: 0; font-size: 0; }
.site-description { display: none; }
.header-glass-wrap .site-branding a:not(.custom-logo-link) { color: #fff; text-decoration: none; }

/* Inline-поиск — стеклянное поле */
.header-search-inline {
        flex: 1 1 auto;
        max-width: 320px;
        display: flex;
        align-items: center;
        gap: 0;
        background: rgba(255,255,255,.07);
        border: 1px solid rgba(255,255,255,.14);
        border-radius: 999px;
        padding: 3px 3px 3px 18px;
        backdrop-filter: blur(8px);
        transition: all .2s ease;
}
.header-search-inline:focus-within {
        background: rgba(255,255,255,.12);
        border-color: rgba(255,255,255,.3);
        box-shadow: 0 0 0 4px rgba(255,255,255,.06);
}
.header-search-inline input {
        flex: 1 1 auto;
        background: transparent;
        border: none;
        color: #fff;
        font-size: 14px;
        font-family: inherit;
        padding: 8px 4px;
        outline: none;
        min-width: 0;
}
.header-search-inline input::placeholder { color: rgba(255,255,255,.55); }
.header-search-inline button {
        background: rgba(230,58,10,.95);
        color: #fff;
        border: none;
        border-radius: 999px;
        width: 36px; height: 36px;
        cursor: pointer;
        display: inline-flex; align-items: center; justify-content: center;
        transition: background .15s ease;
        flex: 0 0 auto;
}
.header-search-inline button:hover { background: var(--gs-orange); }

.header-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.header-cta .gs-btn { padding: 11px 22px; font-size: 14px; }
.header-cta .gs-btn--primary {
        background: var(--gs-orange);
        box-shadow: 0 8px 22px -8px rgba(230,58,10,.55);
}
.header-cta .gs-btn--primary:hover { background: var(--gs-orange-dark); box-shadow: 0 12px 28px -8px rgba(230,58,10,.65); }

/* Кнопка "Заказать звонок" между меню и поиском (компактная) */
.header-callback-btn {
        flex: 0 0 auto;
        padding: 10px 18px !important;
        font-size: 13px !important;
        background: var(--gs-orange);
        box-shadow: 0 8px 22px -8px rgba(230,58,10,.6);
        white-space: nowrap;
}
.header-callback-btn:hover { background: var(--gs-orange-dark); transform: translateY(-1px); }

/* Мобильные иконки (скрыты на десктопе) */
.header-mobile-icons { display: none; align-items: center; gap: 6px; margin-left: auto; }
.header-mobile-callback { display: none; }
.header-icon-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px; height: 40px;
        border-radius: 50%;
        background: rgba(255,255,255,.12);
        border: 1px solid rgba(255,255,255,.2);
        color: #fff;
        cursor: pointer;
        transition: all .2s ease;
        text-decoration: none;
}
.header-icon-btn:hover { background: var(--gs-orange); border-color: var(--gs-orange); color: #fff; }
.header-burger { background: var(--gs-orange); border-color: var(--gs-orange); }
.header-burger:hover { background: var(--gs-orange-dark); border-color: var(--gs-orange-dark); }

/* Выезжающий поиск (мобильный) */
.header-mobile-search { display: none; padding: 0 16px 16px; }
.header-mobile-search form { display: flex; gap: 8px; }
.header-mobile-search input {
        flex: 1;
        padding: 11px 16px;
        border: 1px solid rgba(255,255,255,.2);
        border-radius: var(--gs-radius);
        background: rgba(255,255,255,.1);
        color: #fff;
        font-size: 15px;
        font-family: inherit;
}
.header-mobile-search input::placeholder { color: rgba(255,255,255,.6); }
.header-mobile-search input:focus { outline: none; border-color: var(--gs-orange); }

/* Off-canvas drawer (мобильное меню справа) */
.drawer-overlay {
        position: fixed;
        inset: 0;
        background: rgba(8,24,38,.6);
        backdrop-filter: blur(4px);
        z-index: 2000;
        opacity: 0;
        visibility: hidden;
        transition: opacity .3s ease, visibility .3s;
}
.drawer-overlay.is-open { opacity: 1; visibility: visible; }
.mobile-drawer {
        position: fixed;
        top: 0; right: 0;
        width: 320px;
        max-width: 85vw;
        height: 100vh;
        /* Небольшой отступ снизу, чтобы нижняя плашка с доменом не перекрывала
           телефон и кнопку «Заказать звонок» в футере drawer-а. */
        padding-bottom: 45px;
        background: #fff;
        z-index: 2001;
        transform: translateX(100%);
        transition: transform .35s cubic-bezier(.2,.7,.2,1);
        display: flex;
        flex-direction: column;
        box-shadow: -20px 0 60px -20px rgba(0,0,0,.4);
}
.mobile-drawer.is-open { transform: translateX(0); }
.mobile-drawer__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 20px;
        border-bottom: 1px solid var(--gs-border);
        background: var(--gs-navy);
        color: #fff;
}
.mobile-drawer__title { font-weight: 800; font-size: 18px; }
.mobile-drawer__close {
        background: rgba(255,255,255,.12);
        border: none;
        color: #fff;
        width: 36px; height: 36px;
        border-radius: 50%;
        cursor: pointer;
        display: inline-flex; align-items: center; justify-content: center;
        transition: all .2s ease;
}
.mobile-drawer__close:hover { background: var(--gs-orange); }
.mobile-drawer__nav {
        flex: 1;
        overflow-y: auto;
        padding: 16px;
}
.mobile-drawer__nav ul,
.mobile-drawer__nav .primary-menu,
.mobile-menu {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 2px;
}
.mobile-drawer__nav li { position: relative; }
.mobile-drawer__nav a {
        display: block;
        padding: 13px 14px;
        color: var(--gs-navy);
        font-weight: 600;
        font-size: 15px;
        border-radius: 10px;
        transition: all .15s ease;
        padding-right: 48px;
}
.mobile-drawer__nav a:hover,
.mobile-drawer__nav .current-menu-item > a {
        background: var(--gs-bg-soft);
        color: var(--gs-orange);
}
.mobile-drawer__nav .sub-menu {
        margin-left: 14px;
        padding-left: 10px;
        border-left: 2px solid var(--gs-border);
        display: none !important;
        flex-direction: column;
        gap: 2px;
        background: transparent;
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-radius: 0;
        padding-top: 4px;
        padding-bottom: 4px;
}
.mobile-drawer__nav .menu-item-has-children.submenu-open > .sub-menu { display: flex !important; }
.mobile-drawer__nav .submenu-toggle {
        display: inline-flex;
        flex: 0 0 auto;
        align-items: center;
        justify-content: center;
        width: 36px; height: 36px;
        background: var(--gs-bg-soft);
        border: none;
        border-radius: 8px;
        cursor: pointer;
        color: var(--gs-navy);
        position: absolute;
        right: 6px;
        top: 6px;
}
.mobile-drawer__nav .submenu-toggle:hover { background: var(--gs-orange); color: #fff; }
.mobile-drawer__nav .submenu-toggle .chev { display: inline-block; transition: transform .25s ease; }
.mobile-drawer__nav .submenu-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
/* Выделение «Решения для бизнеса» в drawer */
.mobile-drawer__nav .menu-item-has-children > a[href*="solutions"] {
        background: var(--gs-orange);
        color: #fff !important;
        font-weight: 800;
}
.mobile-drawer__nav .menu-item-has-children > a[href*="solutions"]:hover { background: var(--gs-orange-dark); }
.mobile-drawer__nav .menu-item-has-children > a[href*="solutions"] ~ .submenu-toggle { background: rgba(255,255,255,.25); color: #fff; }
.mobile-drawer__footer {
        padding: 20px;
        border-top: 1px solid var(--gs-border);
        background: var(--gs-bg-soft);
}
.mobile-drawer__phone {
        display: block;
        font-size: 18px;
        font-weight: 800;
        color: var(--gs-navy);
        margin-bottom: 12px;
        text-decoration: none;
}
.mobile-drawer__phone:hover { color: var(--gs-orange); }

.header-search-toggle { display: none; }

.menu-toggle {
        display: none;
        background: rgba(255,255,255,.10);
        color: #fff;
        border: 1px solid rgba(255,255,255,.18);
        padding: 9px 12px;
        border-radius: var(--gs-radius);
        cursor: pointer;
        font-weight: 600;
        align-items: center;
        gap: 6px;
}

/* === Уровень 3: нижняя панель — прозрачная, поверх hero === */
.secondary-menu-wrap {
        background: transparent;
}

/* Navigation — поддержка 3-4 уровней вложенности. На стекле: белый текст. */
.main-navigation { flex: 1 1 auto; position: relative; display: flex; align-items: center; }
.main-navigation ul,
.main-navigation > div > ul,
.main-navigation ul.primary-menu {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        gap: 2px;
        list-style: none;
        margin: 0;
        padding: 0;
}
.main-navigation li { position: relative; list-style: none; }
.main-navigation a {
        display: block;
        padding: 10px 14px;
        color: rgba(255,255,255,.92);
        font-weight: 600;
        font-size: 15px;
        border-radius: var(--gs-radius);
        transition: all .15s ease;
        white-space: nowrap;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a {
        background: rgba(255,255,255,.14);
        color: #fff;
}
/* Выделение для пункта «Решения для бизнеса» — оранжевая кнопка-бейдж */
.main-navigation li.gs-menu-catalog > a {
        background: var(--gs-orange) !important;
        color: #fff !important;
        font-weight: 800;
        padding: 10px 20px;
        border-radius: 999px;
        box-shadow: 0 6px 18px -6px rgba(230,58,10,.6);
        transition: all .2s ease;
}
.main-navigation li.gs-menu-catalog > a:hover {
        background: var(--gs-orange-dark) !important;
        color: #fff !important;
        transform: translateY(-1px);
        box-shadow: 0 10px 24px -8px rgba(230,58,10,.7);
}
.main-navigation li.gs-menu-catalog > .submenu-toggle {
        background: rgba(255,255,255,.18);
        color: #fff;
}
.main-navigation li.gs-menu-catalog > .submenu-toggle:hover {
        background: var(--gs-orange-dark);
}

/* Стрелка вниз для пунктов верхнего уровня с подменю — убрана (без точек/стрелок) */
.main-navigation > div > ul > li.menu-item-has-children > a::after,
.main-navigation ul.primary-menu > li.menu-item-has-children > a::after {
        content: none;
}

/*
 * Выпадающие подменю.
 * Уровень 2: выпадает ВНИЗ под родителем.
 * Уровень 3+: открывается ВПРАВО от родителя (left: 100%, top: 0).
 */
.main-navigation .sub-menu {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 270px;
        background: #fff;
        border: 1px solid var(--gs-border);
        border-radius: var(--gs-radius);
        box-shadow: 0 20px 50px -20px rgba(8,24,38,.22);
        padding: 10px;
        opacity: 0;
        visibility: hidden;
        transform: translateY(8px);
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
        z-index: 100;
        list-style: none;
        margin: 0;
        display: flex;
        flex-direction: column;
        gap: 2px;
}
.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu {
        opacity: 1; visibility: visible; transform: translateY(0);
}
.main-navigation .sub-menu li { width: 100%; position: relative; }
.main-navigation .sub-menu a {
        padding: 10px 14px;
        font-size: 14px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        color: var(--gs-navy);
        background: transparent;
}
.main-navigation .sub-menu a:hover,
.main-navigation .sub-menu .current-menu-item > a {
        background: var(--gs-bg-soft);
        color: var(--gs-orange);
}
/* Уровень 3+ — открывается ВПРАО */
.main-navigation .sub-menu .sub-menu {
        top: 0;
        left: 100%;
        margin-left: 6px;
        margin-top: -10px;
        transform: translateX(8px);
}
.main-navigation .sub-menu li:hover > .sub-menu,
.main-navigation .sub-menu li:focus-within > .sub-menu {
        transform: translateX(0);
}
/* Если подменю у правого края — открывается влево (класс добавляется JS) */
.main-navigation .sub-menu .opens-left > .sub-menu {
        left: auto;
        right: 100%;
        margin-left: 0;
        margin-right: 6px;
}
/* Стрелка вправо ▸ для вложенных подменю — убрана */
.main-navigation .sub-menu .menu-item-has-children > a::after {
        content: none;
}

/* Кнопка-тоггл скрыта на десктопе (в основной навигации) */
.main-navigation .submenu-toggle {
        display: none;
}

/* Secondary (bottom) menu — прозрачный, поверх hero */
.secondary-menu-wrap {
        background: transparent;
}
.secondary-menu-wrap .gs-container {
        display: flex;
        align-items: center;
        min-height: 42px;
}
.secondary-navigation ul {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
        list-style: none;
        margin: 0;
        padding: 0;
}
.secondary-navigation a {
        display: block;
        padding: 8px 12px;
        color: rgba(255,255,255,.75);
        font-size: 13px;
        font-weight: 600;
        border-radius: 6px;
}
.secondary-navigation a:hover { color: #fff; background: rgba(255,255,255,.12); }

/* Slide-down search */
.header-search {
        display: none;
        background: #fff;
        border-bottom: 1px solid var(--gs-border);
        padding: 16px 0;
}
.header-search.is-open { display: block; }
.header-search .gs-container { display: flex; gap: 12px; }
.header-search .search-field {
        flex: 1;
        padding: 12px 16px;
        border: 1px solid var(--gs-border);
        border-radius: var(--gs-radius);
        font-size: 16px;
        font-family: inherit;
}

/*--------------------------------------------------------------
# Hero — Neo-SaaS: сине-фиолетовый градиент + glassmorphism
--------------------------------------------------------------*/
.hero {
        position: relative;
        color: #fff;
        background: var(--gs-grad-saas);
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        overflow: hidden;
}
.hero::before {
        content: '';
        position: absolute; inset: 0;
        background:
                radial-gradient(900px 500px at 82% 8%, rgba(230,58,10,.22), transparent 58%),
                radial-gradient(700px 500px at 8% 92%, rgba(28,67,100,.5), transparent 55%);
        pointer-events: none;
}
/* Рамка-блик сверху */
.hero::after {
        content: '';
        position: absolute;
        top: 0; left: 20%; right: 20%;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,.35), transparent);
        pointer-events: none;
}
.hero .gs-container {
        position: relative;
        z-index: 1;
        text-align: center;
        padding: 140px 40px 48px;
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
}
.hero h1 {
        color: #fff;
        margin: 0 auto 18px;
        max-width: 860px;
        font-size: clamp(30px, 4.5vw, 52px);
        line-height: 1.1;
        font-weight: 800;
        letter-spacing: -.02em;
}
.hero h1 b { color: var(--gs-orange-light); }
.hero__lead {
        font-size: clamp(16px, 1.5vw, 19px);
        color: rgba(255,255,255,.95);
        margin: 0 auto 30px;
        max-width: 640px;
        line-height: 1.6;
}
.hero__actions {
        display: flex;
        flex-wrap: wrap;
        gap: 14px;
        justify-content: center;
        margin-bottom: 0;
}
/* На градиенте ghost-hero кнопки — белые полупрозрачные */
.gs-btn--ghost-hero {
        background: rgba(255,255,255,.14);
        color: #fff;
        border: 2px solid rgba(255,255,255,.35);
        backdrop-filter: blur(8px);
}
.gs-btn--ghost-hero:hover {
        background: #fff;
        color: var(--gs-navy);
        border-color: #fff;
}
.hero__phone {
        display: inline-flex; align-items: center; gap: 10px;
        color: #fff; font-weight: 700; font-size: 17px;
        margin-top: 24px;
}
.hero__phone small { display: block; color: rgba(255,255,255,.7); font-weight: 500; font-size: 12px; text-align: left; }
/* 3D-маскот по центру */
/* Плавающие тематические SVG-элементы на фоне hero */
.hero__floats {
        position: absolute;
        inset: 0;
        overflow: hidden;
        pointer-events: none;
        z-index: 0;
}
.hero__floats .float {
        position: absolute;
        opacity: .9;
        filter: drop-shadow(0 12px 30px rgba(0,0,0,.25));
        will-change: transform;
}
/* Позиции элементов (по углам и краям) */
.float--1 { top: 18%; left: 8%; animation: gs-float-a 12s ease-in-out infinite; }
.float--2 { top: 22%; right: 10%; animation: gs-float-b 14s ease-in-out infinite; }
.float--3 { top: 60%; left: 12%; animation: gs-float-c 16s ease-in-out infinite; }
.float--4 { top: 68%; right: 14%; animation: gs-float-a 13s ease-in-out infinite reverse; }
.float--5 { top: 40%; left: 4%; animation: gs-float-b 18s ease-in-out infinite; }
.float--6 { top: 50%; right: 5%; animation: gs-float-c 15s ease-in-out infinite reverse; }
.float--7 { top: 78%; left: 30%; animation: gs-float-a 17s ease-in-out infinite; }
.float--8 { top: 12%; left: 45%; animation: gs-float-b 11s ease-in-out infinite reverse; }

/* Анимации парения — разные траектории для естественности */
@keyframes gs-float-a {
        0%, 100% { transform: translateY(0) translateX(0) rotate(0deg); }
        25%      { transform: translateY(-18px) translateX(10px) rotate(3deg); }
        50%      { transform: translateY(-8px) translateX(-6px) rotate(-2deg); }
        75%      { transform: translateY(12px) translateX(8px) rotate(2deg); }
}
@keyframes gs-float-b {
        0%, 100% { transform: translateY(0) translateX(0) rotate(0deg); }
        33%      { transform: translateY(-22px) translateX(-12px) rotate(-4deg); }
        66%      { transform: translateY(10px) translateX(14px) rotate(3deg); }
}
@keyframes gs-float-c {
        0%, 100% { transform: translateY(0) translateX(0) rotate(0deg); }
        50%      { transform: translateY(-16px) translateX(-10px) rotate(5deg); }
}
@media (prefers-reduced-motion: reduce) {
        .hero__floats .float { animation: none; }
}

/* Hero steps (4 шага) — тёмные "стеклянные" карточки наложены */
.hero-steps {
        position: relative;
        z-index: 2;
        background: linear-gradient(180deg, var(--gs-navy) 0%, var(--gs-darkest) 100%);
        padding: 64px 20px;
}
.hero-steps .gs-container {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 18px;
}
.hero-step {
        position: relative;
        background: linear-gradient(160deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,.04) 100%);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        color: #fff;
        border-radius: var(--gs-radius-lg);
        padding: 26px 24px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        box-shadow: 0 24px 50px -20px rgba(0,0,0,.5), inset 0 1px 0 0 rgba(255,255,255,.14);
        border: 1px solid rgba(255,255,255,.12);
        transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease, border-color .3s ease;
        overflow: hidden;
}
/* Рамка-блик сверху (имитация стекла) */
.hero-step::before {
        content: '';
        position: absolute;
        top: 0; left: 18%; right: 18%;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent);
        border-radius: 999px;
}
/* Акцентная полоска слева — оранжевая, узкая */
.hero-step::after {
        content: '';
        position: absolute;
        top: 20px; bottom: 20px; left: 0;
        width: 2px;
        background: linear-gradient(180deg, var(--gs-orange), transparent);
        border-radius: 0 2px 2px 0;
}
.hero-step:hover {
        transform: translateY(-6px);
        box-shadow: 0 28px 60px -22px rgba(230,58,10,.4);
}
.hero-step__num {
        display: inline-flex;
        align-items: center; justify-content: center;
        width: 44px; height: 44px;
        border-radius: 12px;
        background: rgba(230,58,10,.18);
        color: var(--gs-orange-light);
        font-weight: 800;
        font-size: 15px;
        letter-spacing: .04em;
}
.hero-step h4 { margin: 0; font-size: 17px; color: #fff; }
.hero-step p { margin: 0; font-size: 14px; color: #9bb0c4; line-height: 1.5; }

/*--------------------------------------------------------------
# Banner cards — асимметричная сетка (1 крупная + 2 поменьше, dooglys-style)
--------------------------------------------------------------*/
.banner-grid {
        display: grid;
        grid-template-columns: 1.4fr 1fr;
        grid-template-rows: auto auto;
        gap: 20px;
}
/* 3-колоночная сетка для архивов решений */
.banner-grid--3col {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: auto;
}
.banner-grid--3col .banner-card--lg { grid-row: auto; min-height: 220px; }
.banner-card {
        position: relative;
        border-radius: var(--gs-radius-lg);
        overflow: hidden;
        display: flex;
        align-items: flex-end;
        color: #fff;
        padding: 28px;
        background: var(--gs-navy);
        transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease;
        text-decoration: none;
        border: 1px solid rgba(255,255,255,.08);
        box-shadow: 0 18px 40px -20px rgba(8,24,38,.4), inset 0 1px 0 0 rgba(255,255,255,.12);
}
.banner-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 32px 60px -22px rgba(8,24,38,.55), inset 0 1px 0 0 rgba(255,255,255,.18);
}
.banner-card::after {
        content: '';
        position: absolute; inset: 0;
        background: linear-gradient(180deg, rgba(8,24,38,0) 20%, rgba(8,24,38,.55) 55%, rgba(8,24,38,.95) 100%);
}
/* Рамка-блик сверху */
.banner-card::before {
        content: '';
        position: absolute;
        top: 0; left: 14%; right: 14%;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,.5), transparent);
        z-index: 2;
        border-radius: 999px;
}
.banner-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform .4s ease; }
.banner-card:hover img { transform: scale(1.06); }
.banner-card__body { position: relative; z-index: 1; }
.banner-card__title { font-size: 22px; font-weight: 800; color: #fff; margin: 0 0 8px; line-height: 1.2; }
.banner-card__text { font-size: 14px; color: #d7e0ea; margin: 0 0 14px; max-width: 360px; }
.banner-card__link { color: var(--gs-orange-light); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
/* Крупная карточка занимает 2 строки */
.banner-card--lg {
        grid-row: span 2;
        min-height: 460px;
}
.banner-card--lg .banner-card__title { font-size: 30px; }
/*
 * Карточка-миниатюра (решения/кейсы в архивах).
 * Раньше: min-height: 220px + object-fit: cover → изображение 600×400 (3:2)
 *   обрезалось до 552×220 (≈5:2), терялось ~45% по высоте.
 * Теперь: aspect-ratio: 3/2 — карточка повторяет пропорцию изображения.
 *   На десктопе (≈552px ширина) высота = 552×(2/3) ≈ 368px — изображение
 *   показывается целиком, без обрезки.
 *   min-height остаётся как fallback для старых браузеров без aspect-ratio.
 *
 * Поведение названия:
 *   Десктоп: при hover — затемнение изображения + появление названия (белый текст).
 *   Мобильный: всегда видно название белого цвета (без hover).
 */
.banner-card--sm {
        min-height: 220px;
        aspect-ratio: 3 / 2;
}
/* Меньшие карточки в 3-колоночной сетке — оставляем пропорцию 3:2,
   но без жёсткого min-height (на мобильном 1 колонка = карточка шире. */
.banner-grid--3col .banner-card--sm {
        min-height: 0;
        aspect-ratio: 3 / 2;
}

/* Название в карточке-миниатюре (banner-card--sm) */
.banner-card--sm .banner-card__body {
        /* На десктопе скрыт, появляется при hover */
        opacity: 0;
        transform: translateY(8px);
        transition: opacity .3s ease, transform .3s ease;
        padding: 24px 26px;
}
.banner-card--sm:hover .banner-card__body {
        opacity: 1;
        transform: translateY(0);
}
/* Без затемнения изображения — только лёгкое увеличение */
.banner-card--sm:hover img {
        transform: scale(1.06);
}
/* Заголовок в карточке-миниатюре */
.banner-card--sm .banner-card__title {
        font-size: 28px;
        font-weight: 700;
        line-height: 1.2;
        margin: 0;
        color: #fff;
        text-shadow: none;
}
/* На мобильном — всегда видно название, белый текст */
@media (max-width: 768px) {
        .banner-card--sm .banner-card__body {
                opacity: 1;
                transform: translateY(0);
        }
        .banner-card--sm img {
                /* Без затемнения на мобильном тоже */
                filter: none;
        }
        .banner-card--sm .banner-card__title {
                color: #fff;
                font-size: 26px;
        }
}
@media (max-width: 480px) {
        .banner-card--sm .banner-card__title {
                font-size: 22px;
        }
}

/*--------------------------------------------------------------
# Solutions cards (4 карточки 2×2, тёмный фон, асимметричные) — dooglys-style
--------------------------------------------------------------*/
.gs-section--solutions-dark {
        background: linear-gradient(180deg, #081826 0%, #0E2A43 100%);
        color: #fff;
        position: relative;
        overflow: hidden;
}
.gs-section--solutions-dark::before {
        content: '';
        position: absolute;
        top: 0; left: 20%; right: 20%;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
}
.solutions-cards {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        grid-auto-rows: 180px;
        gap: 16px;
}
/* Хаотичный порядок: разные размеры карточек */
.solution-card:nth-child(1) { grid-column: span 4; grid-row: span 1; } /* большой верх */
.solution-card:nth-child(2) { grid-column: span 2; grid-row: span 2; } /* высокий правый */
.solution-card:nth-child(3) { grid-column: span 2; grid-row: span 1; }
.solution-card:nth-child(4) { grid-column: span 2; grid-row: span 1; }
.solution-card:nth-child(5) { grid-column: span 3; grid-row: span 1; } /* широкий низ */
.solution-card:nth-child(6) { grid-column: span 3; grid-row: span 1; }
.solution-card {
        position: relative;
        display: block;
        background: var(--gs-navy);
        border: 1px solid rgba(255,255,255,.1);
        border-radius: var(--gs-radius-lg);
        overflow: hidden;
        text-decoration: none;
        color: #fff;
        transition: all .35s cubic-bezier(.2,.7,.2,1);
        min-height: 0;
}
.solution-card::before {
        content: '';
        position: absolute;
        top: 0; left: 12%; right: 12%;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
        z-index: 3;
}
/* Градиент-затемнение не нужен — только изображение */
.solution-card::after { display: none; }
.solution-card:hover {
        transform: translateY(-4px);
        border-color: rgba(230,58,10,.5);
        box-shadow: 0 28px 60px -24px rgba(230,58,10,.4);
}
/* Медиа — на всю карточку */
.solution-card__media {
        position: absolute;
        inset: 0;
        z-index: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
}
.solution-card__media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform .5s ease;
}
.solution-card:hover .solution-card__media img { transform: scale(1.05); }
.solution-card__icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 64px; height: 64px;
        border-radius: 16px;
        background: rgba(230,58,10,.15);
        color: var(--gs-orange-light);
        font-size: 32px;
}
.solution-card__icon .dashicons { font-size: 32px; width: 32px; height: 32px; }
/* Контент — поверх изображения.
   На баннерах: слева, вертикально по центру, ширина 50%.
   Текст всегда виден (без hover). */
.solution-card__content {
        position: absolute;
        inset: 0;
        z-index: 2;
        padding: 32px 36px;
        display: flex;
        flex-direction: column;
        justify-content: center;       /* вертикально по центру */
        align-items: flex-start;       /* слева */
        gap: 6px;
        /* Текст занимает 50% ширины баннера с левой стороны */
        max-width: 50%;
        /* Без затемнения — только text-shadow для читаемости */
        background: transparent;
        /* Текст всегда виден */
        opacity: 1;
}
.solution-card__title {
        font-size: 34px;
        font-weight: 800;
        color: var(--gs-orange-light);
        margin: 0;
        line-height: 1.15;
        text-shadow: none;
}
/* 2-й баннер (Автоматизация мясокомбината) — узкий (span 2 колонки),
   уменьшаем шрифт чтобы помещался. */
.solution-card:nth-child(2) .solution-card__title {
        font-size: 22px;
}
/* 5-й баннер — заголовок слева как у всех. */
.solution-card:nth-child(5) .solution-card__content {
        align-items: flex-start;
        text-align: left;
        max-width: 50%;
}
/* На мобильном — всегда видно, оранжевый цвет */
@media (max-width: 768px) {
        .solution-card__content {
                opacity: 1;
                /* На мобильном текст может занимать больше — 70% */
                max-width: 70%;
                padding: 20px 24px;
        }
        .solution-card__title {
                color: var(--gs-orange-light);
                font-size: 24px;
        }
        /* На мобильном 2-й баннер — шрифт как у всех */
        .solution-card:nth-child(2) .solution-card__title {
                font-size: 24px;
        }
}
@media (max-width: 480px) {
        .solution-card__content {
                max-width: 85%;
                padding: 16px 18px;
        }
        .solution-card__title { font-size: 20px; }
        .solution-card:nth-child(2) .solution-card__title { font-size: 20px; }
}
/* desc и link больше не используем в banners.php, но оставляем для демо-режима */
.solution-card__desc {
        font-size: 13px;
        color: rgba(255,255,255,.85);
        margin: 0;
        line-height: 1.5;
        text-shadow: 0 1px 4px rgba(0,0,0,.5);
}
.solution-card__link {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        color: var(--gs-orange-light);
        font-weight: 700;
        font-size: 13px;
        margin-top: 4px;
        transition: gap .25s ease;
}
.solution-card:hover .solution-card__link { gap: 10px; }

/*--------------------------------------------------------------
# About Gedimin / platform
--------------------------------------------------------------*/
.two-col {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 48px;
        align-items: center;
}
.two-col__media {
        display: flex;
        align-items: center;
        justify-content: center;
}
.two-col__media img { max-width: 100%; height: auto; display: block; }
.feature-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; }
.feature-list .check {
        flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%;
        background: rgba(230,58,10,.12); color: var(--gs-orange);
        display: inline-flex; align-items: center; justify-content: center; font-weight: 800;
}

/*--------------------------------------------------------------
# Tariffs / quick nav
--------------------------------------------------------------*/
.tariff-nav {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
        margin: 24px 0 40px;
}
.quick-nav-grid {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 14px;
}
.quick-nav-card {
        background: #fff;
        border: 1px solid var(--gs-border);
        border-radius: var(--gs-radius);
        padding: 18px 14px;
        text-align: center;
        color: var(--gs-navy);
        font-weight: 700;
        font-size: 14px;
        transition: all .2s ease;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
}
.quick-nav-card:hover {
        border-color: var(--gs-orange);
        color: var(--gs-orange);
        transform: translateY(-3px);
        box-shadow: var(--gs-shadow);
}
.quick-nav-card .icon {
        width: 44px; height: 44px; border-radius: 12px;
        background: var(--gs-bg-soft); color: var(--gs-orange);
        display: inline-flex; align-items: center; justify-content: center;
}
/* 3D-иконка PNG (как adv-* в trust) — без фона, прозрачная */
.quick-nav-card .quick-nav-icon {
        width: 64px;
        height: 64px;
        object-fit: contain;
        display: block;
}
.quick-nav-card:hover .quick-nav-icon {
        transform: scale(1.08);
        transition: transform .25s ease;
}

/*--------------------------------------------------------------
# Trust / Why us
--------------------------------------------------------------*/
.trust-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 48px;
        align-items: center;
}
.advantages {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        list-style: none;
        padding: 0; margin: 0;
}
.advantage {
        background: #fff;
        border: 1px solid var(--gs-border);
        border-radius: var(--gs-radius);
        padding: 18px;
        display: flex;
        gap: 12px;
        align-items: flex-start;
}
.advantage__icon {
        flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px;
        background: var(--gs-orange); color: #fff;
        display: inline-flex; align-items: center; justify-content: center;
}
.advantage h4 { margin: 0 0 4px; font-size: 15px; }
.advantage p { margin: 0; font-size: 13px; color: var(--gs-muted); }
.consultant-photo {
        border-radius: 0;
        overflow: visible;
        box-shadow: none;
        max-width: 360px;
        margin: 0 auto;
}
.consultant-photo img { width: 100%; display: block; }

/*--------------------------------------------------------------
# Ecosystem / Support
--------------------------------------------------------------*/
.callout {
        background: var(--gs-navy);
        color: #fff;
        border-radius: var(--gs-radius-lg);
        padding: 40px;
        display: grid;
        grid-template-columns: 1.4fr .8fr;
        gap: 32px;
        align-items: center;
}
.callout h3 { color: #fff; margin-bottom: 12px; }
.callout p { color: #c9d6e4; margin-bottom: 0; }

/*--------------------------------------------------------------
# Solutions grid (большая сетка)
--------------------------------------------------------------*/
.solutions-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
}
.solution-chip {
        background: rgba(255,255,255,.06);
        border: 1px solid rgba(255,255,255,.12);
        border-radius: 999px;
        padding: 12px 22px;
        font-size: 14px;
        font-weight: 600;
        color: rgba(255,255,255,.92);
        display: flex;
        align-items: center;
        gap: 10px;
        transition: all .25s cubic-bezier(.2,.7,.2,1);
        text-decoration: none;
        justify-content: center;
        text-align: center;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
}
.solution-chip:hover {
        border-color: var(--gs-orange);
        background: var(--gs-orange);
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0 10px 24px -10px rgba(230,58,10,.5);
}
.solution-chip .dot {
        width: 7px; height: 7px; border-radius: 50%;
        background: var(--gs-orange);
        flex: 0 0 auto;
}
.solution-chip:hover .dot { background: #fff; }

/* 3D иконки в блоках доверия/преимуществ */
.gs-3d-icon {
        width: 72px; height: 72px;
        object-fit: contain;
        flex: 0 0 auto;
}

/*--------------------------------------------------------------
# Equipment block (Работает на любом оборудовании) — dooglys-style
--------------------------------------------------------------*/
.equipment-block {
        position: relative;
        background: linear-gradient(135deg, #0E2A43 0%, #1C4364 100%);
        border-radius: var(--gs-radius-xl);
        padding: 0;
        overflow: hidden;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        box-shadow: 0 32px 70px -30px rgba(0,0,0,.5), inset 0 1px 0 0 rgba(255,255,255,.12);
        border: 1px solid rgba(255,255,255,.08);
}
.equipment-block__media {
        background: transparent !important;
}
.equipment-block::before {
        content: '';
        position: absolute;
        top: 0; left: 14%; right: 14%;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
        z-index: 2;
        border-radius: 999px;
}
.equipment-block__content {
        padding: 56px 48px;
        color: #fff;
        display: flex;
        flex-direction: column;
        justify-content: center;
}
.equipment-block__content h2 { color: #fff; margin-bottom: 16px; }
.equipment-block__content p { color: #c9d6e4; font-size: 17px; margin-bottom: 24px; }
.equipment-block__content .feature-list li { color: #fff; }
.equipment-block__content .feature-list .check { background: rgba(230,58,10,.25); color: var(--gs-orange-light); }
.equipment-block__media {
        background: rgba(255,255,255,.04);
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 32px;
        position: relative;
}
.equipment-block__media img { max-width: 100%; max-height: 380px; object-fit: contain; filter: drop-shadow(0 24px 50px rgba(0,0,0,.4)); }

/* Карусель рекомендательных писем */
.review-slide {
        position: relative;
        flex: 0 0 240px;
        height: 320px;
        border-radius: var(--gs-radius);
        overflow: hidden;
        background: #fff;
        border: 1px solid var(--gs-border);
        box-shadow: var(--gs-shadow);
        transition: transform .25s ease, box-shadow .25s ease;
        text-decoration: none;
        color: inherit;
        display: flex;
}
.review-slide:hover { transform: scale(1.05); z-index: 10; box-shadow: 0 20px 40px -12px rgba(8,24,38,.3); }
.review-slide--link { cursor: pointer; }
.review-slide img { width: 100%; height: 100%; object-fit: cover; }
.review-slide__placeholder {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
        padding: 24px;
        text-align: center;
        background: linear-gradient(160deg, var(--gs-bg-soft) 0%, #fff 100%);
        color: var(--gs-navy);
}
.review-slide__placeholder svg { color: var(--gs-orange); opacity: .6; }
.review-slide__placeholder span { font-weight: 700; font-size: 15px; line-height: 1.3; }
.review-slide__placeholder small {
        display: inline-block;
        margin-top: 8px;
        padding: 6px 14px;
        background: var(--gs-orange);
        color: #fff;
        border-radius: 999px;
        font-size: 12px;
        font-weight: 700;
}
.review-slide--link .review-slide__placeholder { background: linear-gradient(160deg, rgba(230,58,10,.06) 0%, #fff 100%); }
.review-slide--link:hover .review-slide__placeholder small { background: var(--gs-orange-dark); }
.review-slide__badge {
        position: absolute;
        top: 12px; right: 12px;
        background: var(--gs-orange);
        color: #fff;
        font-size: 11px;
        font-weight: 800;
        padding: 4px 10px;
        border-radius: 999px;
        letter-spacing: .05em;
        box-shadow: 0 4px 12px -4px rgba(230,58,10,.5);
}
@media (max-width: 1024px) {
        .review-slide { flex: 0 0 calc(50% - 11px); }
}
@media (max-width: 768px) {
        .review-slide { flex: 0 0 240px; height: 320px; }
}

/*--------------------------------------------------------------
# Cases slider (карусель кейсов на главной)
--------------------------------------------------------------*/
.cases-slider {
        position: relative;
        overflow: hidden;
}
.cases-slider__track {
        display: flex;
        gap: 22px;
        transition: transform .45s cubic-bezier(.2,.7,.2,1);
        will-change: transform;
}
.case-slide {
        flex: 0 0 calc(33.333% - 15px);
        background: #fff;
        border: 1px solid var(--gs-border);
        border-radius: var(--gs-radius-lg);
        overflow: hidden;
        transition: all .3s ease;
        display: flex;
        flex-direction: column;
}
.case-slide:hover { transform: translateY(-4px); box-shadow: var(--gs-shadow); border-color: rgba(230,58,10,.3); }
.case-slide__media {
        position: relative;
        display: block;
        aspect-ratio: 16/9;
        overflow: hidden;
        background: var(--gs-navy);
}
.case-slide__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.case-slide:hover .case-slide__media img { transform: scale(1.05); }
.case-slide__overlay {
        position: absolute; inset: 0;
        background: linear-gradient(180deg, transparent 50%, rgba(8,24,38,.6) 100%);
}
.case-slide__industry {
        position: absolute;
        top: 14px; left: 14px;
        background: var(--gs-orange);
        color: #fff;
        font-size: 11px;
        font-weight: 700;
        padding: 5px 12px;
        border-radius: 999px;
        text-transform: uppercase;
        letter-spacing: .05em;
}
.case-slide__body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.case-slide__title { font-size: 18px; margin: 0; line-height: 1.25; }
.case-slide__title a { color: var(--gs-navy); text-decoration: none; }
.case-slide__title a:hover { color: var(--gs-orange); }
.case-slide__excerpt { font-size: 14px; color: var(--gs-muted); margin: 0; flex: 1; line-height: 1.5; }
.case-slide__meta { display: flex; gap: 18px; padding-top: 12px; border-top: 1px solid var(--gs-border); font-size: 13px; color: var(--gs-muted); }
.case-slide__meta b { color: var(--gs-orange); font-size: 16px; font-weight: 800; }

/* Кнопки навигации */
.cases-slider__btn {
        position: absolute;
        top: 38%;
        transform: translateY(-50%);
        width: 44px; height: 44px;
        border-radius: 50%;
        background: #fff;
        border: 1px solid var(--gs-border);
        color: var(--gs-navy);
        cursor: pointer;
        display: inline-flex; align-items: center; justify-content: center;
        box-shadow: var(--gs-shadow);
        transition: all .2s ease;
        z-index: 5;
}
.cases-slider__btn:hover { background: var(--gs-orange); color: #fff; border-color: var(--gs-orange); }
.cases-slider__btn--prev { left: -10px; }
.cases-slider__btn--next { right: -10px; }

/* Слайдер кейсов на главной — 1 карточка за раз (image left + info right) */
.case-slide--single {
        flex: 0 0 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        background: #fff;
        border: 1px solid var(--gs-border);
        border-radius: var(--gs-radius-lg);
        overflow: hidden;
        transition: all .3s ease;
}
.case-slide--single:hover { transform: translateY(-3px); box-shadow: var(--gs-shadow-lg); border-color: rgba(230,58,10,.25); }
.case-slide--single .case-slide__media {
        position: relative;
        display: block;
        min-height: 280px;
        overflow: hidden;
        background: var(--gs-navy);
}
.case-slide--single .case-slide__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.case-slide--single:hover .case-slide__media img { transform: scale(1.04); }
.case-slide--single .case-slide__body { padding: 32px; display: flex; flex-direction: column; gap: 10px; }
.case-slide--single .case-slide__title { font-size: 22px; margin: 0; }
.case-slide--single .case-slide__title a { color: var(--gs-navy); text-decoration: none; }
.case-slide--single .case-slide__title a:hover { color: var(--gs-orange); }
.case-slide--single .case-slide__company { font-size: 14px; color: var(--gs-orange); font-weight: 700; margin: 0; }
.case-slide--single .case-slide__excerpt { font-size: 14px; color: var(--gs-muted); margin: 0; flex: 1; line-height: 1.55; }
.case-slide--single .case-slide__meta { display: flex; gap: 18px; padding-top: 12px; border-top: 1px solid var(--gs-border); font-size: 13px; color: var(--gs-muted); }
.case-slide--single .case-slide__meta b { color: var(--gs-orange); font-size: 16px; font-weight: 800; }
.case-slide--single .case-slide__more { align-self: flex-start; margin-top: 8px; font-size: 14px; padding: 11px 22px; }
@media (max-width: 768px) {
        .case-slide--single { grid-template-columns: 1fr; }
        .case-slide--single .case-slide__media { min-height: 180px; }
        .case-slide--single .case-slide__body { padding: 20px; }
}

/*--------------------------------------------------------------
# Case highlight (кейс + лого клиента) — dooglys-style две колонки
--------------------------------------------------------------*/
.case-highlight {
        background: #fff;
        border: 1px solid var(--gs-border);
        border-radius: var(--gs-radius-lg);
        padding: 48px;
        display: grid;
        grid-template-columns: 1.5fr 1fr;
        gap: 40px;
        align-items: center;
        box-shadow: var(--gs-shadow);
}
.case-highlight__eyebrow { color: var(--gs-orange); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 12px; display: block; }
.case-highlight h2 { margin-bottom: 16px; }
.case-highlight p { color: var(--gs-muted); font-size: 16px; margin-bottom: 20px; }
.case-highlight__logo {
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--gs-bg-soft);
        border-radius: var(--gs-radius);
        padding: 32px;
        min-height: 200px;
}
.case-highlight__logo img { max-width: 100%; max-height: 120px; object-fit: contain; filter: grayscale(1); transition: filter .3s; }
.case-highlight__logo:hover img { filter: grayscale(0); }
.case-highlight__logo-placeholder {
        font-weight: 800; font-size: 28px; color: var(--gs-navy); text-align: center;
}

/*--------------------------------------------------------------
# Clients wall (стена логотипов) — dooglys-style
--------------------------------------------------------------*/
.clients-wall {
        position: relative;
        background: linear-gradient(135deg, #0E2A43 0%, #1C4364 100%);
        border-radius: var(--gs-radius-xl);
        padding: 56px 48px;
        text-align: center;
        color: #fff;
        box-shadow: 0 32px 70px -30px rgba(0,0,0,.5), inset 0 1px 0 0 rgba(255,255,255,.12);
        border: 1px solid rgba(255,255,255,.08);
        overflow: visible;
}
.clients-wall::before {
        content: '';
        position: absolute;
        top: 0; left: 14%; right: 14%;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
        z-index: 2;
        border-radius: 999px;
}
.clients-wall h2 { color: #fff; margin-bottom: 12px; }
.clients-wall p { color: #c9d6e4; margin-bottom: 32px; }
.clients-wall__badge {
        display: inline-flex; align-items: center; gap: 10px;
        background: rgba(230,58,10,.18);
        color: var(--gs-orange-light);
        padding: 10px 20px;
        border-radius: 999px;
        font-weight: 700;
        font-size: 14px;
        margin-bottom: 24px;
}
/* Бегущая строка логотипов внутри тёмного блока.
   ВАЖНО: класс client-logo вешается и на <a>, и на <img> внутри.
   Поэтому размеры задаём только прямому ребёнку дорожки (ссылке <a>),
   а картинке — отдельное правило. */
.clients-marquee {
        overflow-x: hidden;
        position: relative;
        padding: 24px 0;
}
/* gap: 0 — используем margin-right у каждого лого, чтобы две копии
   дорожки были абсолютно идентичны и translateX(-50%) зацикливался
   без шва/скачка. */
.clients-marquee .marquee__track { gap: 0; min-width: 0; }
.clients-marquee .marquee__track > .client-logo {
        height: 96px;
        width: auto;
        max-width: 240px;
        display: flex;
        align-items: center;
        justify-content: center;
        filter: grayscale(1) brightness(1.4) opacity(.8);
        transition: filter .25s ease, transform .25s ease;
        flex: 0 0 auto;
        background: transparent !important;
        margin-right: 56px;
        padding: 4px;
        box-sizing: content-box;
}
.clients-marquee .marquee__track > .client-logo img {
        max-height: 96px;
        max-width: 100%;
        height: auto;
        width: auto;
        object-fit: contain;
        display: block;
}
.clients-marquee .marquee__track > .client-logo:hover { filter: grayscale(0) brightness(1) opacity(1); transform: scale(1.12); z-index: 10; }
.clients-marquee .client-name {
        color: rgba(255,255,255,.9);
        font-weight: 700;
        font-size: 17px;
        padding: 14px 20px;
        flex: 0 0 auto;
        white-space: nowrap;
        margin-right: 56px;
}

/* Планшет */
@media (max-width: 768px) {
        .clients-marquee { padding: 18px 0; }
        .clients-marquee .marquee__track > .client-logo { height: 64px; max-width: 200px; margin-right: 40px; }
        .clients-marquee .marquee__track > .client-logo img { max-height: 64px; }
        .clients-marquee .client-name { font-size: 15px; padding: 12px 16px; margin-right: 40px; }
        .clients-marquee.marquee--left .marquee__track { animation-duration: 28s; }
}
/* Телефон */
@media (max-width: 480px) {
        .clients-marquee { padding: 14px 0; }
        .clients-marquee .marquee__track > .client-logo { height: 54px; max-width: 160px; margin-right: 28px; }
        .clients-marquee .marquee__track > .client-logo img { max-height: 54px; }
        .clients-marquee .client-name { font-size: 14px; padding: 10px 14px; margin-right: 28px; }
        .clients-marquee.marquee--left .marquee__track { animation-duration: 24s; }
}
/* Очень узкий телефон (<400px) — гарантия без наложений */
@media (max-width: 399px) {
        .clients-marquee { padding: 12px 0; }
        .clients-marquee .marquee__track > .client-logo { height: 46px; max-width: 130px; margin-right: 22px; padding: 2px; }
        .clients-marquee .marquee__track > .client-logo img { max-height: 46px; }
        .clients-marquee .client-name { font-size: 13px; padding: 8px 12px; margin-right: 22px; }
        .clients-marquee.marquee--left .marquee__track { animation-duration: 22s; }
}

/*--------------------------------------------------------------
# Floating action buttons (чат + звонок) — dooglys-style справа
--------------------------------------------------------------*/
.floating-actions {
        position: fixed;
        right: 20px;
        bottom: 80px;
        z-index: 1100;
        display: flex;
        flex-direction: column;
        gap: 10px;
}
.floating-actions__btn {
        width: 52px; height: 52px;
        border-radius: 50%;
        border: none;
        cursor: pointer;
        display: inline-flex; align-items: center; justify-content: center;
        color: #fff;
        box-shadow: var(--gs-shadow-lg);
        transition: transform .2s ease, box-shadow .2s ease;
}
.floating-actions__btn:hover { transform: scale(1.1); }
.floating-actions__btn--call { background: var(--gs-orange); }
.floating-actions__btn--chat { background: var(--gs-navy); }
.floating-actions__btn--tg { background: #229ED9; }

/*--------------------------------------------------------------
# Clients marquee
--------------------------------------------------------------*/
.marquee {
        overflow-x: hidden;
        overflow-y: hidden;
        position: relative;
}
.marquee--scrollable {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x proximity;
}
.marquee--scrollable::-webkit-scrollbar { display: none; }
.marquee--scrollable { scrollbar-width: none; }
.marquee__track {
        display: flex;
        gap: 48px;
        width: max-content;
        align-items: center;
}
.marquee--left .marquee__track { animation: gs-marquee-left 40s linear infinite; }
.marquee--right .marquee__track { animation: gs-marquee-right 50s linear infinite; }
/* Пауза при наведении — ТОЛЬКО на устройствах с настоящим hover (десктоп с мышью).
   На тач-экранах :hover «липнет» после тапа и анимация бы встала навсегда.
   Поэтому под (hover: none) принудительно держим animation-play-state: running. */
@media (hover: hover) {
        .marquee:hover .marquee__track { animation-play-state: paused; }
}
@media (hover: none) {
        .marquee:hover .marquee__track,
        .marquee:active .marquee__track,
        .marquee:focus-within .marquee__track { animation-play-state: running; }
}
@keyframes gs-marquee-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes gs-marquee-right { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.client-logo {
        height: 56px;
        width: auto;
        filter: grayscale(1) opacity(.6);
        transition: all .25s ease;
}
.client-logo:hover { filter: grayscale(0) opacity(1); transform: scale(1.05); }

/*--------------------------------------------------------------
# Stats
--------------------------------------------------------------*/
.stats-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
}
.stat {
        text-align: center;
}
.stat__num {
        font-size: clamp(34px, 4vw, 52px);
        font-weight: 800;
        color: var(--gs-orange);
        line-height: 1;
        margin-bottom: 8px;
}
.stat__label { color: #c9d6e4; font-size: 15px; }

/*--------------------------------------------------------------
# Reviews (рекомендательные письма)
--------------------------------------------------------------*/
/* Бегущая строка писем — overflow hidden, padding для hover-пространства */
.review-marquee {
        overflow-x: hidden;
        padding: 24px 0;
}
.review-marquee .marquee__track { gap: 24px; padding: 0 20px; }
.review-card {
        position: relative;
        flex: 0 0 auto;
        width: 240px;
        height: 320px;
        border-radius: var(--gs-radius);
        overflow: hidden;
        background: #fff;
        border: 1px solid var(--gs-border);
        box-shadow: var(--gs-shadow);
        transition: transform .25s ease, box-shadow .25s ease;
        cursor: default;
        text-decoration: none;
        color: inherit;
        display: flex;
}
.review-card img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.review-card:hover { transform: scale(1.05); z-index: 10; box-shadow: 0 20px 40px -12px rgba(8,24,38,.3); }
.review-card--link { cursor: pointer; }

/* Плейсхолдер когда нет изображения */
.review-card__placeholder {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 12px;
        padding: 24px;
        text-align: center;
        background: linear-gradient(160deg, var(--gs-bg-soft) 0%, #fff 100%);
        color: var(--gs-navy);
}
.review-card__placeholder svg { color: var(--gs-orange); opacity: .6; }
.review-card__placeholder span { font-weight: 700; font-size: 15px; line-height: 1.3; }
.review-card__placeholder small {
        display: inline-block;
        margin-top: 8px;
        padding: 6px 14px;
        background: var(--gs-orange);
        color: #fff;
        border-radius: 999px;
        font-size: 12px;
        font-weight: 700;
}
.review-card--link .review-card__placeholder { background: linear-gradient(160deg, rgba(230,58,10,.06) 0%, #fff 100%); }
.review-card--link:hover .review-card__placeholder small { background: var(--gs-orange-dark); }

/* Бейдж PDF на карточке с изображением */
.review-card__badge {
        position: absolute;
        top: 12px; right: 12px;
        background: var(--gs-orange);
        color: #fff;
        font-size: 11px;
        font-weight: 800;
        padding: 4px 10px;
        border-radius: 999px;
        letter-spacing: .05em;
        box-shadow: 0 4px 12px -4px rgba(230,58,10,.5);
}

/* Video review */
.video-review {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 48px;
        align-items: center;
}
.video-frame {
        position: relative;
        border-radius: var(--gs-radius-lg);
        overflow: hidden;
        aspect-ratio: 16/9;
        background: #000;
        box-shadow: var(--gs-shadow-lg);
}
.video-frame iframe,
.video-frame video { width: 100%; height: 100%; border: 0; }

/*--------------------------------------------------------------
# Видео-отзывы — сетка карточек + модальное окно
--------------------------------------------------------------*/
.video-reviews-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
        margin-top: 32px;
}
.video-review-card {
        background: #fff;
        border-radius: var(--gs-radius-lg);
        overflow: hidden;
        box-shadow: 0 8px 24px -12px rgba(14,42,67,.18);
        cursor: pointer;
        transition: transform .2s ease, box-shadow .2s ease;
        display: flex;
        flex-direction: column;
}
.video-review-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 36px -12px rgba(14,42,67,.28);
}
.video-review-card__media {
        position: relative;
        aspect-ratio: 4/3;
        overflow: hidden;
        background: #000;
}
.video-review-card__media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        transition: transform .3s ease;
}
.video-review-card:hover .video-review-card__media img { transform: scale(1.05); }
.video-review-card__play {
        position: absolute;
        top: 50%; left: 50%;
        transform: translate(-50%, -50%);
        width: 56px; height: 56px;
        background: rgba(230,58,10,.95);
        color: #fff;
        border-radius: 50%;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 8px 24px -6px rgba(230,58,10,.6);
        transition: transform .2s ease, background .2s ease;
}
.video-review-card:hover .video-review-card__play {
        transform: translate(-50%, -50%) scale(1.12);
        background: var(--gs-orange-dark);
}
.video-review-card__body { padding: 18px 20px; }
.video-review-card__title {
        font-size: 17px;
        font-weight: 700;
        color: var(--gs-navy);
        margin-bottom: 8px;
        line-height: 1.3;
}
.video-review-card__meta {
        display: flex;
        flex-wrap: wrap;
        gap: 4px 12px;
        font-size: 13px;
        color: var(--gs-muted);
}
.video-review-card__author { font-weight: 600; color: var(--gs-text); }
.video-review-card__position { font-style: italic; }
.video-review-card__company::before { content: '• '; opacity: .5; }

/* Модальное окно */
.video-review-modal {
        position: fixed;
        inset: 0;
        z-index: 2000;
        display: none;
        align-items: center;
        justify-content: center;
        padding: 24px;
}
.video-review-modal.is-open { display: flex; }
.video-review-modal__overlay {
        position: absolute;
        inset: 0;
        background: rgba(8,24,38,.85);
        backdrop-filter: blur(4px);
}
.video-review-modal__dialog {
        position: relative;
        z-index: 1;
        width: 100%;
        max-width: 960px;
        background: #000;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 32px 80px -20px rgba(0,0,0,.6);
}
.video-review-modal__frame {
        position: relative;
        aspect-ratio: 16/9;
}
.video-review-modal__frame iframe,
.video-review-modal__frame video {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        border: 0;
}
.video-review-modal__close {
        position: absolute;
        top: -40px; right: 0;
        width: 36px; height: 36px;
        border-radius: 50%;
        background: rgba(255,255,255,.15);
        color: #fff;
        border: 1px solid rgba(255,255,255,.25);
        font-size: 22px;
        line-height: 1;
        cursor: pointer;
        transition: background .2s ease;
}
.video-review-modal__close:hover { background: var(--gs-orange); border-color: var(--gs-orange); }

@media (max-width: 1024px) {
        .video-reviews-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
        .video-reviews-grid { grid-template-columns: 1fr; }
        .video-review-modal { padding: 16px; }
        .video-review-modal__close { top: -36px; }
}

/*--------------------------------------------------------------
# Forms
--------------------------------------------------------------*/
.gs-form {
        background: #fff;
        border: 1px solid var(--gs-border);
        border-radius: var(--gs-radius-lg);
        padding: 28px;
        box-shadow: var(--gs-shadow);
}
/* Внутри модалки форма не имеет своих стенок — рамка у диалога */
.gs-modal__dialog .gs-form {
        background: transparent;
        border: none;
        border-radius: 0;
        padding: 0;
        box-shadow: none;
}
.gs-form--on-dark {
        background: rgba(255,255,255,.06);
        border-color: rgba(255,255,255,.18);
        backdrop-filter: blur(8px);
}
.gs-form--on-dark label,
.gs-form--on-dark .form-title { color: #fff; }
.gs-form h3.form-title { margin-top: 0; font-size: 22px; }
.gs-form .form-group { margin-bottom: 14px; }
.gs-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.gs-form input[type="text"],
.gs-form input[type="tel"],
.gs-form input[type="email"],
.gs-form textarea,
.gs-form select {
        width: 100%;
        padding: 12px 14px;
        border: 1px solid var(--gs-border);
        border-radius: var(--gs-radius);
        font-size: 15px;
        font-family: inherit;
        background: #fff;
        transition: border-color .15s ease, box-shadow .15s ease;
}
.gs-form--on-dark input,
.gs-form--on-dark textarea,
.gs-form--on-dark select {
        background: rgba(255,255,255,.08);
        border-color: rgba(255,255,255,.22);
        color: #fff;
}
.gs-form--on-dark input::placeholder,
.gs-form--on-dark textarea::placeholder { color: rgba(255,255,255,.55); }
.gs-form input:focus,
.gs-form textarea:focus,
.gs-form select:focus {
        outline: none;
        border-color: var(--gs-orange);
        box-shadow: 0 0 0 3px rgba(230,58,10,.18);
}
.gs-form .consent { font-size: 12px; color: var(--gs-muted); }
.gs-form--on-dark .consent { color: #9bb0c4; }
.gs-form .form-feedback { margin-top: 10px; font-size: 14px; }
.gs-form .form-feedback.ok { color: #1b8a3a; }
.gs-form .form-feedback.err { color: var(--gs-orange-dark); }

/* Inline feedback form (sidebar) */
.sidebar-form {
        background: var(--gs-bg-soft);
        border: 1px solid var(--gs-border);
        border-radius: var(--gs-radius);
        padding: 20px;
}
.sidebar-form h4 { margin: 0 0 12px; font-size: 17px; }

/*--------------------------------------------------------------
# News
--------------------------------------------------------------*/
.news-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
}
.news-card {
        background: #fff;
        border: 1px solid var(--gs-border);
        border-radius: var(--gs-radius-lg);
        overflow: hidden;
        transition: all .2s ease;
        display: flex;
        flex-direction: column;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--gs-shadow); }
.news-card__media { position: relative; aspect-ratio: 16/9; overflow: hidden; background: var(--gs-bg-soft); }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.news-card:hover .news-card__media img { transform: scale(1.05); }
.news-card__body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.news-card__date { font-size: 12px; color: var(--gs-muted); margin-bottom: 8px; }
.news-card__title { font-size: 17px; margin: 0 0 8px; }
.news-card__title a { color: var(--gs-navy); }
.news-card__title a:hover { color: var(--gs-orange); }
.news-card__excerpt { font-size: 14px; color: var(--gs-muted); margin-bottom: 14px; flex: 1; }
.news-card__more { color: var(--gs-orange); font-weight: 700; font-size: 14px; }

/* Карточка новости/вебинара с проигрываемым видео — модальный триггер */
.news-card--playable:focus { outline: 2px solid var(--gs-orange); outline-offset: -2px; }
.news-card--playable:hover .news-card__title span,
.news-card--playable:hover .news-card__more { color: var(--gs-orange); }
.news-card__play {
        position: absolute;
        top: 50%; left: 50%;
        transform: translate(-50%, -50%);
        width: 56px; height: 56px;
        border-radius: 50%;
        background: rgba(8,24,38,.65);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 8px 24px -4px rgba(0,0,0,.5);
        transition: transform .25s ease, background .25s ease;
}
.news-card--playable:hover .news-card__play {
        transform: translate(-50%, -50%) scale(1.12);
        background: var(--gs-orange);
}
.news-card--playable:hover .news-card__media img { filter: brightness(.7); }

/*--------------------------------------------------------------
# Page templates
--------------------------------------------------------------*/
.page-header-bar {
        background: linear-gradient(135deg, var(--gs-darkest) 0%, var(--gs-navy) 100%);
        color: #fff;
        padding: 48px 0;
}
.page-header-bar h1 { color: #fff; margin: 0; }
.page-header-bar .breadcrumb { color: #9bb0c4; font-size: 14px; margin-bottom: 10px; }
.page-header-bar .breadcrumb a { color: #c9d6e4; }

/* Хлебные крошки (своя функция gs_breadcrumbs) */
.gs-breadcrumb {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
        font-size: 13px;
        margin-bottom: 12px;
        color: rgba(255,255,255,.7);
}
.gs-breadcrumb a,
.gs-breadcrumb__item a { color: rgba(255,255,255,.7); text-decoration: none; transition: color .15s ease; }
.gs-breadcrumb a:hover,
.gs-breadcrumb__item a:hover { color: var(--gs-orange-light); }
.gs-breadcrumb__current { color: #fff; font-weight: 600; }
.gs-breadcrumb__sep { color: rgba(255,255,255,.4); font-size: 12px; }
/* На светлом фоне (внутри контента) */
.gs-section--soft .gs-breadcrumb,
.gs-section .gs-breadcrumb { color: var(--gs-muted); }
.gs-section--soft .gs-breadcrumb a,
.gs-section .gs-breadcrumb a { color: var(--gs-muted); }
.gs-section--soft .gs-breadcrumb a:hover,
.gs-section .gs-breadcrumb a:hover { color: var(--gs-orange); }
.gs-section--soft .gs-breadcrumb__current,
.gs-section .gs-breadcrumb__current { color: var(--gs-navy); }
.gs-section--soft .gs-breadcrumb__sep,
.gs-section .gs-breadcrumb__sep { color: var(--gs-border); }

/* Результаты поиска */
.search-results { display: flex; flex-direction: column; gap: 18px; }
.search-item {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0;
        background: #fff;
        border: 1px solid var(--gs-border);
        border-radius: var(--gs-radius-lg);
        overflow: hidden;
        transition: all .2s ease;
}
.search-item:hover { box-shadow: var(--gs-shadow-lg); border-color: rgba(230,58,10,.25); transform: translateY(-2px); }
.search-item__thumb { display: block; overflow: hidden; background: var(--gs-bg-soft); min-height: 220px; }
.search-item__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.search-item:hover .search-item__thumb img { transform: scale(1.05); }
.search-item__thumb--placeholder { display: flex; align-items: center; justify-content: center; background: var(--gs-bg-soft); min-height: 220px; }
.search-item__thumb--placeholder svg { width: 48px; height: 48px; color: var(--gs-border); }
.search-item__body { padding: 28px; display: flex; flex-direction: column; gap: 8px; }
.search-item__type { font-size: 11px; color: var(--gs-orange); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.search-item__title { font-size: 20px; margin: 0; line-height: 1.25; }
.search-item__title a { color: var(--gs-navy); text-decoration: none; }
.search-item__title a:hover { color: var(--gs-orange); }
.search-item__excerpt { font-size: 15px; color: var(--gs-muted); margin: 0; line-height: 1.55; flex: 1; }
.search-item__link { color: var(--gs-orange); font-weight: 700; font-size: 14px; text-decoration: none; margin-top: 8px; align-self: flex-start; }
@media (max-width: 768px) {
        .search-item { grid-template-columns: 1fr; }
        .search-item__thumb { min-height: 160px; }
        .search-item__body { padding: 20px; }
}

.page-layout {
        display: grid;
        grid-template-columns: 1fr 320px;
        gap: 40px;
        padding: 48px 0;
        align-items: start;
}
.page-content { min-width: 0; }
.page-sidebar { position: sticky; top: 96px; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-info__item { display: flex; gap: 14px; margin-bottom: 20px; }
.contact-info__item .ic { color: var(--gs-orange); flex: 0 0 auto; }

/* Чёрно-белая карта (всегда, без hover) */
.gs-map-bw iframe {
        filter: grayscale(1) contrast(1.1) brightness(.95);
}
.contact-info__item h4 { margin: 0 0 4px; font-size: 15px; }
.contact-info__item p { margin: 0; color: var(--gs-muted); }

/* Price table */
.price-table {
        width: 100%;
        border-collapse: collapse;
        background: #fff;
        border-radius: var(--gs-radius-lg);
        overflow: hidden;
        box-shadow: var(--gs-shadow);
}
.price-table th,
.price-table td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--gs-border); }
.price-table th { background: var(--gs-navy); color: #fff; font-weight: 700; }
.price-table tr:hover td { background: var(--gs-bg-soft); }
.price-table .price { font-weight: 800; color: var(--gs-orange); white-space: nowrap; text-align: center !important; }
/* Группировка позиций внутри таблицы — подзаголовок секции */
.price-table__group td {
        background: linear-gradient(90deg, #f4f7fa 0%, #eef2f6 100%) !important;
        font-weight: 800;
        color: var(--gs-navy);
        text-transform: uppercase;
        letter-spacing: .04em;
        font-size: 12px;
        padding: 10px 18px !important;
        border-bottom: 2px solid var(--gs-navy) !important;
}
.price-table__group:hover td { background: linear-gradient(90deg, #f4f7fa 0%, #eef2f6 100%) !important; }

/* Заголовок секции прайса */
.price-section-title {
        margin: 48px 0 12px;
        font-size: 22px;
        font-weight: 800;
        color: var(--gs-navy);
        padding-bottom: 8px;
        border-bottom: 3px solid var(--gs-orange);
        display: inline-block;
}
.price-section-title:first-of-type { margin-top: 0; }
.price-section-intro {
        color: var(--gs-muted);
        font-size: 13px;
        margin-bottom: 16px;
        max-width: 760px;
}

/* === Адаптация прайса === */

/* Планшет — уменьшаем padding и шрифт */
@media (max-width: 1024px) {
        .price-table th,
        .price-table td { padding: 12px 14px; font-size: 14px; }
        .price-table .price { font-size: 15px; }
        .price-section-title { font-size: 20px; }
}

/* Узкий планшет — ещё компактнее */
@media (max-width: 768px) {
        .price-table th,
        .price-table td { padding: 10px 12px; font-size: 13px; }
        .price-table .price { font-size: 14px; }
        .price-section-title { font-size: 18px; margin: 36px 0 10px; }
        .price-section-intro { font-size: 12px; }
}

/* Мобильный — превращаем таблицу в карточки */
@media (max-width: 640px) {
        .price-section-title {
                display: block;
                font-size: 18px;
                margin: 32px 0 12px;
        }

        /* Таблица становится потоком карточек */
        .price-table,
        .price-table tbody { display: block; width: 100%; }
        .price-table thead { display: none; }
        .price-table tr {
                display: block;
                margin-bottom: 10px;
                border: 1px solid var(--gs-border);
                border-radius: 12px;
                padding: 14px 16px;
                background: #fff;
                box-shadow: 0 4px 12px -6px rgba(14,42,67,.1);
        }
        .price-table td {
                display: block;
                padding: 4px 0;
                border: none;
                text-align: left !important;
                width: auto !important;
        }

        /* Group-строки — заголовки секций внутри потока */
        .price-table__group td {
                background: var(--gs-navy) !important;
                color: #fff !important;
                font-size: 12px;
                padding: 8px 14px !important;
                border-radius: 8px;
                margin-bottom: 0;
                border: none !important;
                text-transform: uppercase;
                letter-spacing: .04em;
        }
        .price-table__group {
                padding: 0;
                margin-bottom: 10px;
                border: none !important;
                box-shadow: none !important;
                background: transparent !important;
        }

        /* 3-колоночные таблицы (Программное обеспечение, ЭСЧФ) */
        .price-table:not(.price-table--4col):not(.price-table--sanatorium) td:first-child {
                font-weight: 700;
                font-size: 15px;
                color: var(--gs-navy);
                padding-bottom: 6px;
                margin-bottom: 6px;
                border-bottom: 1px solid #f0f3f6;
        }
        .price-table:not(.price-table--4col):not(.price-table--sanatorium) td:nth-child(2) {
                font-size: 13px;
                color: var(--gs-muted);
                line-height: 1.5;
        }
        .price-table:not(.price-table--4col):not(.price-table--sanatorium) td.price {
                font-size: 18px;
                text-align: right !important;
                margin-top: 8px;
                padding-top: 8px;
                border-top: 1px solid #f0f3f6;
        }

        /* Санаторий — 3 колонки, 2 цены */
        .price-table--sanatorium td:first-child {
                font-weight: 700;
                font-size: 15px;
                color: var(--gs-navy);
                padding-bottom: 8px;
                margin-bottom: 8px;
                border-bottom: 1px solid #f0f3f6;
        }
        .price-table--sanatorium td.price {
                display: flex;
                justify-content: space-between;
                align-items: baseline;
                font-size: 16px;
                padding: 4px 0;
                margin-top: 0;
                border-top: none;
                text-align: right !important;
        }
        .price-table--sanatorium td.price::before {
                content: attr(data-label);
                font-size: 12px;
                color: var(--gs-muted);
                font-weight: 500;
        }
        /* Fallback: если нет data-label, используем nth-child labels */
        .price-table--sanatorium tr td:nth-child(2).price::before { content: "До 100 койко-мест:"; }
        .price-table--sanatorium tr td:nth-child(3).price::before { content: "За послед. 100:"; }

        /* 4-колоночная таблица (Услуги) — название + описание + 2 цены в ряд */
        .price-table--4col td:first-child {
                font-weight: 700;
                font-size: 15px;
                color: var(--gs-navy);
                padding-bottom: 6px;
                margin-bottom: 6px;
                border-bottom: 1px solid #f0f3f6;
        }
        .price-table--4col td:nth-child(2) {
                font-size: 13px;
                color: var(--gs-muted);
                line-height: 1.5;
                margin-bottom: 8px;
        }
        /* Две цены в ряд */
        .price-table--4col td:nth-child(3),
        .price-table--4col td:nth-child(4) {
                display: inline-block;
                width: 48% !important;
                padding: 8px 0;
                margin-top: 4px;
                font-size: 15px;
                text-align: left !important;
        }
        .price-table--4col td:nth-child(3)::before {
                content: "г. Минск";
                display: block;
                font-size: 11px;
                color: var(--gs-muted);
                font-weight: 500;
                text-transform: uppercase;
                letter-spacing: .04em;
        }
        .price-table--4col td:nth-child(4)::before {
                content: "За пределы";
                display: block;
                font-size: 11px;
                color: var(--gs-muted);
                font-weight: 500;
                text-transform: uppercase;
                letter-spacing: .04em;
        }

        /* colspan-ячейки (ссылки на другие разделы) */
        .price-table td[colspan] {
                font-size: 13px;
                color: var(--gs-muted);
                font-style: italic;
                padding-top: 4px;
        }
}

/* Certificates grid */
.cert-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cert-card {
        border: 1px solid var(--gs-border);
        border-radius: var(--gs-radius-lg);
        overflow: hidden;
        background: #fff;
        transition: all .2s ease;
}
.cert-card:hover { box-shadow: var(--gs-shadow); transform: translateY(-3px); }
.cert-card__media { aspect-ratio: 3/4; background: var(--gs-bg-soft); }
.cert-card__media img { width: 100%; height: 100%; object-fit: contain; }
.cert-card__body { padding: 16px; }
.cert-card__title { font-size: 15px; font-weight: 700; margin: 0 0 4px; }
.cert-card__meta { font-size: 13px; color: var(--gs-muted); }

/* Cases filter & cards */
.case-filter {
        display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px;
}
.case-filter select, .case-filter input {
        padding: 10px 14px; border: 1px solid var(--gs-border); border-radius: var(--gs-radius);
        font-family: inherit; font-size: 14px; background: #fff;
}
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* Кейсы на всю ширину (archive-case, референс) */
.cases-list { display: flex; flex-direction: column; gap: 28px; }
.case-wide {
        background: #fff;
        border: 1px solid var(--gs-border);
        border-radius: var(--gs-radius-lg);
        overflow: hidden;
        transition: all .3s ease;
        display: grid;
        grid-template-columns: 1fr 1.3fr;
}
.case-wide:hover { box-shadow: var(--gs-shadow-lg); border-color: rgba(230,58,10,.25); transform: translateY(-2px); }
.case-wide__media {
        position: relative;
        display: block;
        min-height: 180px;
        overflow: hidden;
        background: var(--gs-navy);
}
.case-wide__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.case-wide:hover .case-wide__media img { transform: scale(1.04); }
.case-wide__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(8,24,38,.5) 100%); }
.case-wide__industry {
        position: absolute;
        top: 14px; left: 14px;
        background: var(--gs-orange);
        color: #fff;
        font-size: 11px;
        font-weight: 700;
        padding: 5px 12px;
        border-radius: 999px;
        text-transform: uppercase;
        letter-spacing: .05em;
}
.case-wide__body { padding: 22px 26px; display: flex; flex-direction: column; gap: 8px; }
.case-wide__title { font-size: 19px; margin: 0; line-height: 1.25; }
.case-wide__title a { color: var(--gs-navy); text-decoration: none; }
.case-wide__title a:hover { color: var(--gs-orange); }
.case-wide__company { font-size: 13px; color: var(--gs-orange); font-weight: 700; margin: 0; }
.case-wide__excerpt { font-size: 14px; color: var(--gs-muted); line-height: 1.5; margin: 0; flex: 1; }
.case-wide__meta {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
        padding: 12px 0;
        border-top: 1px solid var(--gs-border);
        margin: 4px 0;
}
.case-wide__meta-item { display: flex; flex-direction: column; gap: 2px; }
.case-wide__meta-label { font-size: 10px; color: var(--gs-muted); text-transform: uppercase; letter-spacing: .04em; }
.case-wide__meta-value { font-size: 14px; font-weight: 700; color: var(--gs-navy); }
.case-wide__btn { align-self: flex-start; margin-top: 4px; padding: 9px 18px; font-size: 13px; }
@media (max-width: 1024px) {
        .case-wide { grid-template-columns: 1fr; }
        .case-wide__media { min-height: 160px; }
        .case-wide__body { padding: 20px; }
        .case-wide__meta { grid-template-columns: repeat(2, 1fr); }
}
.case-card {
        background: #fff; border: 1px solid var(--gs-border); border-radius: var(--gs-radius-lg);
        overflow: hidden; display: flex; flex-direction: column; transition: all .2s ease;
}
.case-card:hover { box-shadow: var(--gs-shadow); transform: translateY(-3px); }
.case-card__media { aspect-ratio: 16/9; background: var(--gs-navy); overflow: hidden; }
.case-card__media img { width: 100%; height: 100%; object-fit: cover; }
.case-card__body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.case-card__industry { font-size: 12px; color: var(--gs-orange); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 8px; }
.case-card__title { font-size: 18px; margin: 0 0 10px; }
.case-card__title a { color: var(--gs-navy); }
.case-card__title a:hover { color: var(--gs-orange); }
.case-card__meta { font-size: 13px; color: var(--gs-muted); margin-top: auto; padding-top: 12px; border-top: 1px solid var(--gs-border); display: flex; flex-wrap: wrap; gap: 14px; }
.case-card__meta span b { color: var(--gs-navy); }

/* Calendar */
.calendar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.event-card {
        background: #fff; border: 1px solid var(--gs-border); border-radius: var(--gs-radius-lg);
        padding: 20px; border-left: 4px solid var(--gs-orange); transition: all .2s ease;
}
.event-card:hover { box-shadow: var(--gs-shadow); }
.event-card__date { font-size: 13px; color: var(--gs-orange); font-weight: 700; margin-bottom: 8px; }
.event-card__title { font-size: 17px; margin: 0 0 8px; }
.event-card__meta { font-size: 13px; color: var(--gs-muted); display: flex; flex-wrap: wrap; gap: 10px; }

/* Визуальный месячный календарь */
.gs-calendar {
        background: #fff;
        border: 1px solid var(--gs-border);
        border-radius: var(--gs-radius-lg);
        padding: 28px;
        box-shadow: var(--gs-shadow);
        margin-bottom: 40px;
}
.gs-calendar__head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        margin-bottom: 20px;
}
.gs-calendar__title {
        margin: 0;
        font-size: 22px;
        color: var(--gs-navy);
        text-align: center;
        flex: 1;
}
.gs-calendar__nav {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px; height: 40px;
        border-radius: 50%;
        background: var(--gs-bg-soft);
        color: var(--gs-navy);
        transition: all .2s ease;
}
.gs-calendar__nav:hover { background: var(--gs-orange); color: #fff; }
.gs-calendar__weekdays {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 6px;
        margin-bottom: 8px;
}
.gs-calendar__weekday {
        text-align: center;
        font-size: 12px;
        font-weight: 700;
        color: var(--gs-muted);
        text-transform: uppercase;
        letter-spacing: .05em;
        padding: 8px 0;
}
.gs-calendar__days {
        display: grid;
        grid-template-columns: repeat(7, 1fr);
        gap: 6px;
}
.gs-calendar__day {
        min-height: 96px;
        border: 1px solid var(--gs-border);
        border-radius: 10px;
        padding: 8px;
        display: flex;
        flex-direction: column;
        gap: 4px;
        background: #fff;
        transition: all .2s ease;
}
.gs-calendar__day--empty { background: transparent; border: 1px dashed transparent; }
.gs-calendar__day:hover { border-color: var(--gs-orange); box-shadow: 0 4px 12px -4px rgba(230,58,10,.2); }
.gs-calendar__day--today {
        background: rgba(230,58,10,.06);
        border-color: var(--gs-orange);
}
.gs-calendar__day--today .gs-calendar__daynum { color: var(--gs-orange); font-weight: 800; }
.gs-calendar__daynum {
        font-size: 14px;
        font-weight: 700;
        color: var(--gs-navy);
}
.gs-calendar__day--has-events .gs-calendar__daynum::after {
        content: '';
        display: inline-block;
        width: 6px; height: 6px;
        border-radius: 50%;
        background: var(--gs-orange);
        margin-left: 6px;
        vertical-align: middle;
}
.gs-calendar__event {
        display: block;
        font-size: 11px;
        font-weight: 600;
        color: var(--gs-navy);
        background: rgba(230,58,10,.1);
        border-radius: 6px;
        padding: 3px 6px;
        text-decoration: none;
        line-height: 1.3;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        transition: all .15s ease;
}
.gs-calendar__event:hover { background: var(--gs-orange); color: #fff; }
.gs-calendar__more {
        font-size: 11px;
        color: var(--gs-muted);
        font-weight: 600;
        padding: 0 6px;
}

/* Vacancies */
.vacancy-card {
        background: #fff; border: 1px solid var(--gs-border); border-radius: var(--gs-radius);
        padding: 22px 24px; margin-bottom: 16px; transition: all .2s ease;
}
.vacancy-card:hover { box-shadow: var(--gs-shadow); border-color: var(--gs-orange); }
.vacancy-card h3 { margin: 0 0 6px; font-size: 19px; }
.vacancy-card__meta { font-size: 14px; color: var(--gs-muted); display: flex; flex-wrap: wrap; gap: 16px; }

/*--------------------------------------------------------------
# Pagination (пагинация)
--------------------------------------------------------------*/
/* Pagination — красивая в фирменном стиле */
/* ВАЖНО: стили пагинации применяются ТОЛЬКО к .pagination и .page-links,
   НЕ к .post-navigation .nav-links (там своя стилизация карточек). */
.pagination,
.pagination .nav-links,
.page-links,
.page-numbers {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 8px;
        margin: 48px 0 0;
        list-style: none;
        padding: 0;
}
.pagination a,
.pagination span,
.pagination .nav-links a,
.pagination .nav-links span,
.page-links a,
.page-links > span,
a.page-numbers,
span.page-numbers {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
        min-width: 52px;
        height: 52px;
        padding: 0 16px;
        border: 2px solid var(--gs-border);
        border-radius: 14px;
        background: #fff;
        color: var(--gs-navy);
        font-weight: 800;
        font-size: 17px;
        font-family: var(--gs-font);
        text-decoration: none;
        transition: all .2s ease;
        box-shadow: 0 2px 8px -4px rgba(8,24,38,.1);
}
.pagination a:hover,
.pagination .nav-links a:hover,
.page-links a:hover,
a.page-numbers:hover {
        background: var(--gs-orange);
        color: #fff;
        border-color: var(--gs-orange);
        transform: translateY(-3px);
        box-shadow: 0 12px 28px -8px rgba(230,58,10,.5);
}
.pagination .current,
.pagination .nav-links .current,
.page-links > span.current,
span.page-numbers.current {
        background: var(--gs-navy);
        color: #fff;
        border-color: var(--gs-navy);
        cursor: default;
        box-shadow: 0 4px 12px -4px rgba(14,42,67,.3);
}
.pagination .prev,
.pagination .next,
.pagination .nav-links .prev,
.pagination .nav-links .next,
a.prev.page-numbers,
a.next.page-numbers {
        background: var(--gs-bg-soft);
        border-color: var(--gs-border);
        font-size: 20px;
        min-width: 52px;
}
.pagination .prev:hover,
.pagination .next:hover,
.pagination .nav-links .prev:hover,
.pagination .nav-links .next:hover,
a.prev.page-numbers:hover,
a.next.page-numbers:hover {
        background: var(--gs-orange);
        border-color: var(--gs-orange);
        color: #fff;
}
.pagination .dots,
.pagination .nav-links .dots,
span.dots {
        border: none;
        background: transparent;
        color: var(--gs-muted);
        min-width: auto;
        padding: 0 8px;
        box-shadow: none;
        font-weight: 700;
        font-size: 16px;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.site-footer {
        background: var(--gs-darkest);
        color: #c9d6e4;
        margin-top: auto;
}
.footer-social {
        padding: 18px 0;
}
.footer-social .gs-container { display: flex; justify-content: center; gap: 16px; }
.footer-social a {
        width: 40px; height: 40px; border-radius: 50%;
        background: rgba(255,255,255,.06);
        color: #9bb0c4;
        display: inline-flex; align-items: center; justify-content: center;
        transition: all .2s ease;
}
.footer-social a:hover { background: var(--gs-orange); color: #fff; transform: translateY(-2px); }

.footer-main { padding: 48px 0; }
.footer-main .gs-container {
        display: grid;
        grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
        gap: 32px;
        align-items: start;
}
.footer-col-title {
        color: #fff;
        font-size: 14px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .06em;
        margin: 0 0 16px;
}
/* Меню подвала с подменю */
.footer-menu ul {
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
        gap: 8px;
}
.footer-menu li { position: relative; }
.footer-menu a {
        color: #c9d6e4;
        font-size: 14px;
        font-weight: 500;
        text-decoration: none;
        transition: color .15s ease;
        display: block;
        padding: 4px 0;
}
.footer-menu a:hover { color: var(--gs-orange-light); }
/* Подменю — скрыто по умолчанию. На ПК не выпадает (просто ссылки).
   На мобильном — выпадает по клику (через .submenu-open). */
.footer-menu .sub-menu {
        display: none;
        margin-left: 16px;
        padding-left: 12px;
        border-left: 2px solid rgba(255,255,255,.1);
        gap: 6px;
        margin-top: 6px;
}
.footer-menu .sub-menu a { font-size: 13px; color: #9bb0c4; }
/* Только мобильный: выпадает при .submenu-open */
.footer-menu li.submenu-open > .sub-menu { display: flex; }
.footer-menu .menu-item-has-children > a { display: flex; justify-content: space-between; align-items: center; }
.footer-brand img { max-height: 44px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand p { color: #9bb0c4; font-size: 14px; max-width: 320px; }
.footer-qr { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.footer-qr__group { display: flex; gap: 24px; }
.footer-qr__item { text-align: center; }
.footer-qr__item .qr-box {
        width: 110px; height: 110px; background: #fff; border-radius: var(--gs-radius);
        display: flex; align-items: center; justify-content: center; padding: 8px;
}
.footer-qr__item .qr-box img { width: 100%; height: 100%; object-fit: contain; }
.footer-qr__item span { display: block; margin-top: 8px; font-size: 12px; color: #9bb0c4; }
.footer-contacts h4 { color: #fff; margin: 0 0 14px; font-size: 16px; }
.footer-contacts a { color: #fff; }
.footer-contacts .phone { font-size: 20px; font-weight: 800; color: #fff; display: block; margin-bottom: 10px; }
.footer-messengers { display: flex; gap: 10px; margin-top: 8px; }
.footer-messengers a {
        width: 36px; height: 36px; border-radius: 50%;
        background: rgba(255,255,255,.06);
        color: #9bb0c4;
        display: inline-flex; align-items: center; justify-content: center;
}
.footer-messengers a:hover { background: var(--gs-orange); color: #fff; }

/* Рейтинг-звёзды в футере */
.footer-reviews {
        padding: 20px 0;
}
.footer-reviews__inner {
        display: flex;
        justify-content: center;
        gap: 16px;
        flex-wrap: wrap;
}
.footer-review-badge {
        display: inline-flex;
        align-items: center;
        gap: 12px;
        padding: 10px 20px;
        background: rgba(255,255,255,.06);
        border: 1px solid rgba(255,255,255,.12);
        border-radius: 999px;
        text-decoration: none;
        transition: all .2s ease;
}
.footer-review-badge:hover {
        background: rgba(255,255,255,.12);
        border-color: rgba(255,255,255,.25);
        transform: translateY(-2px);
}
.footer-review-badge__logo {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px; height: 32px;
}
.footer-review-badge__text {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        color: #fff;
        font-size: 14px;
}
.footer-review-badge__text small {
        color: #9bb0c4;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: .05em;
}
.footer-review-badge__stars {
        color: #FFB300;
        font-size: 13px;
        letter-spacing: 1px;
}
.footer-review-badge__text b {
        color: #fff;
        font-size: 16px;
}

.footer-legal {
        padding: 20px 0;
}
.footer-legal .gs-container { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.footer-legal a { color: #c9d6e4; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.footer-legal a:hover { color: var(--gs-orange-light); }

.footer-copy {
        padding: 24px 0;
        font-size: 12px;
        color: #7a8a9c;
        text-align: center;
        line-height: 1.7;
}

/*--------------------------------------------------------------
# Modal (callback form)
--------------------------------------------------------------*/
.gs-modal {
        position: fixed;
        inset: 0;
        z-index: 1300;
        display: none;
        align-items: center;
        justify-content: center;
        padding: 20px;
}
.gs-modal.is-open { display: flex; }
.gs-modal__overlay {
        position: absolute;
        inset: 0;
        background: rgba(8, 24, 38, 0.7);
        backdrop-filter: blur(4px);
}
.gs-modal__dialog {
        position: relative;
        z-index: 1;
        width: 100%;
        max-width: 460px;
        background: #fff;
        border-radius: var(--gs-radius-lg);
        box-shadow: var(--gs-shadow-lg);
        padding: 32px;
        max-height: 90vh;
        overflow-y: auto;
        animation: gs-modal-in .25s ease;
}
@keyframes gs-modal-in {
        from { opacity: 0; transform: translateY(20px) scale(.98); }
        to { opacity: 1; transform: translateY(0) scale(1); }
}
.gs-modal__close {
        position: absolute;
        top: 14px; right: 14px;
        background: var(--gs-bg-soft);
        border: none;
        width: 34px; height: 34px;
        border-radius: 50%;
        font-size: 22px;
        line-height: 1;
        cursor: pointer;
        color: var(--gs-navy);
        transition: all .15s ease;
}
.gs-modal__close:hover { background: var(--gs-orange); color: #fff; }

/*--------------------------------------------------------------
# Cookie banner
--------------------------------------------------------------*/
.cookie-banner {
        position: fixed;
        left: 20px; right: 20px; bottom: 20px;
        max-width: 520px;
        background: #fff;
        border: 1px solid var(--gs-border);
        border-radius: var(--gs-radius-lg);
        box-shadow: var(--gs-shadow-lg);
        padding: 22px;
        z-index: 1200;
        transform: translateY(140%);
        transition: transform .35s ease;
}
.cookie-banner.is-visible { transform: translateY(0); }
.cookie-banner h4 { margin: 0 0 8px; font-size: 17px; }
.cookie-banner p { font-size: 13px; color: var(--gs-muted); margin: 0 0 14px; }
.cookie-banner .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner .actions .link-btn {
        background: none; border: none; color: var(--gs-navy); font-weight: 600;
        font-size: 14px; cursor: pointer; padding: 10px 6px; font-family: inherit;
}
.cookie-banner .actions .link-btn:hover { color: var(--gs-orange); }

/*--------------------------------------------------------------
# Back to top
--------------------------------------------------------------*/
.back-to-top {
        position: fixed;
        left: 20px; bottom: 20px;
        width: 46px; height: 46px;
        border-radius: 50%;
        background: var(--gs-gray);
        color: #fff;
        border: none;
        cursor: pointer;
        display: inline-flex; align-items: center; justify-content: center;
        opacity: 0; visibility: hidden;
        transform: translateY(10px);
        transition: all .25s ease;
        z-index: 1100;
        box-shadow: var(--gs-shadow);
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--gs-orange); }

/*--------------------------------------------------------------
# Chat widget
--------------------------------------------------------------*/
.chat-widget {
        position: fixed;
        right: 20px; bottom: 20px;
        z-index: 1100;
}
.chat-widget__fab {
        width: 56px; height: 56px; border-radius: 50%;
        background: var(--gs-orange);
        color: #fff; border: none; cursor: pointer;
        display: inline-flex; align-items: center; justify-content: center;
        box-shadow: var(--gs-shadow-lg);
        transition: transform .2s ease;
}
.chat-widget__fab:hover { transform: scale(1.08); }
.chat-widget__panel {
        position: absolute;
        right: 0; bottom: 70px;
        width: 320px;
        background: #fff;
        border: 1px solid var(--gs-border);
        border-radius: var(--gs-radius-lg);
        box-shadow: var(--gs-shadow-lg);
        overflow: hidden;
        display: none;
}
.chat-widget__panel.is-open { display: block; }
.chat-widget__head { background: var(--gs-orange); color: #fff; padding: 16px; }
.chat-widget__head h5 { margin: 0; font-size: 15px; color: #fff; }
.chat-widget__head p { margin: 2px 0 0; font-size: 12px; color: rgba(255,255,255,.85); }
.chat-widget__body { padding: 16px; font-size: 14px; color: var(--gs-darkgray); }
.chat-widget__body p { margin: 0 0 12px; }

/*--------------------------------------------------------------
# Responsive
--------------------------------------------------------------*/
@media (max-width: 1024px) {
        .gs-container { padding: 0 24px; }
        .hero .gs-container { padding: 48px 24px 40px; }
        .hero-steps { padding: 40px 20px; }
        .hero-steps .gs-container { grid-template-columns: repeat(2, 1fr); }
        .banner-grid { grid-template-columns: 1fr; }
        .banner-grid--3col { grid-template-columns: repeat(2, 1fr); }
        .banner-card--lg { grid-row: auto; min-height: 280px; }
        /* На планшете 2 колонки — aspect-ratio: 3/2 сохраняется из базового правила.
           min-height убираем, чтобы не конфликтовал с aspect-ratio. */
        .banner-card--sm { min-height: 0; }
        .solutions-cards {
                grid-template-columns: repeat(6, 1fr);
                grid-auto-rows: 160px;
        }
        /* Та же masonry-раскладка что и на десктопе */
        .solution-card:nth-child(n) {
                grid-column: span 4;
                grid-row: span 1;
        }
        .solution-card:nth-child(2) { grid-column: span 2; grid-row: span 2; }
        .solution-card:nth-child(3) { grid-column: span 2; grid-row: span 1; }
        .solution-card:nth-child(4) { grid-column: span 2; grid-row: span 1; }
        .solution-card:nth-child(5) { grid-column: span 3; grid-row: span 1; }
        .solution-card:nth-child(6) { grid-column: span 3; grid-row: span 1; }
        .quick-nav-grid { grid-template-columns: repeat(3, 1fr); }
        .solutions-grid { grid-template-columns: repeat(3, 1fr); }
        .stats-grid { grid-template-columns: repeat(2, 1fr); }
        .news-grid, .case-grid, .cert-grid, .calendar-grid { grid-template-columns: repeat(2, 1fr); }
        .two-col, .trust-grid, .video-review, .callout, .contact-grid { grid-template-columns: 1fr; }
        .equipment-block { grid-template-columns: 1fr; }
        .equipment-block__content { padding: 36px 28px; }
        /* Футер — 2 колонки на планшете */
        .footer-main .gs-container { grid-template-columns: 1fr 1fr; gap: 24px; }
        .footer-brand { grid-column: span 2; }
        .footer-qr { grid-column: span 2; flex-direction: row; justify-content: center; }
        .footer-qr__group { flex-direction: row; }
        /* Case-wide — 1 колонка на планшете */
        .case-wide { grid-template-columns: 1fr; }
        .case-wide__media { min-height: 200px; }
        /* Case slide single — 1 колонка */
        .case-slide--single { grid-template-columns: 1fr; }
        .case-slide--single .case-slide__media { min-height: 200px; }
        .case-slide--single .case-slide__body { padding: 24px; }
        .case-highlight { grid-template-columns: 1fr; padding: 32px; }
        .page-layout { grid-template-columns: 1fr; }
        .page-sidebar { position: static; }
        .footer-qr, .footer-brand { justify-items: center; }
        .footer-contacts { text-align: center; }
        .footer-messengers { justify-content: center; }
        /* Мобильная версия футера — все элементы по центру */
        .footer-main .gs-container {
                grid-template-columns: 1fr;
                justify-items: center;
                text-align: center;
                gap: 28px;
        }
        .footer-brand { grid-column: auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
        .footer-brand p { margin-left: auto; margin-right: auto; }
        .footer-brand img { margin: 0 auto; }
        /* Меню подвала — по центру */
        .footer-menu { text-align: center; }
        .footer-menu ul { align-items: center; }
        .footer-menu .menu-item-has-children > a { justify-content: center; }
        .footer-col-title { text-align: center; }
        /* QR-коды — по центру */
        .footer-qr { grid-column: auto; align-items: center; display: flex; flex-direction: column; }
        .footer-qr__group { justify-content: center; }
        /* Контакты — по центру */
        .footer-contacts { text-align: center; display: flex; flex-direction: column; align-items: center; }
        .footer-contacts .phone { display: inline-block; }
        .footer-messengers { justify-content: center; }
        .footer-reviews__inner { justify-content: center; }
        .footer-legal .gs-container { justify-content: center; text-align: center; }
}

/*--------------------------------------------------------------
# Планшетная/узко-десктопная шапка (≤1440px) = мобильная
# Десктопное меню с inline-поиском + callback + меню не влезает
# на 1024-1400px. Поднимаем брейкпоинт мобильной шапки до 1440px.
# Существующий блок @media (max-width: 768px) сохраняется — он
# дополнительно сжимает hero/grid'ы и т.п. для телефонов.
--------------------------------------------------------------*/
@media (max-width: 1440px) {
        /* Шапка: мобильный режим на планшетах и узких десктопах */
        .header-top { font-size: 11px; }
        .header-top .gs-container { min-height: 32px; padding: 0 16px; }
        .header-top__work span:nth-child(2) { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
        .secondary-menu-wrap { display: none; }

        .header-glass-wrap { margin: 6px 0; }
        .header-glass-wrap.is-sticky { top: 6px; }
        .header-main { border-radius: 18px; }
        .header-main .gs-container { min-height: 58px; gap: 10px; padding: 0 14px; }

        .main-navigation { display: none; }
        .header-search-inline { display: none; }
        .header-cta { display: none; }
        .header-callback-btn { display: none; }

        .header-mobile-callback {
                display: inline-flex;
                align-items: center;
                gap: 5px;
                margin-left: auto;
                padding: 8px 12px;
                font-size: 12px;
                background: var(--gs-orange);
                border-radius: 999px;
                white-space: nowrap;
        }
        .header-mobile-callback:hover { background: var(--gs-orange-dark); }
        .header-mobile-callback svg { width: 13px; height: 13px; }
        .header-mobile-icons { display: flex; margin-left: 0; }
        .custom-logo-link img { max-height: 30px; }
        .site-tagline { display: none; }
        .header-glass-wrap .site-branding a:not(.custom-logo-link) span:last-child { font-size: 15px; }
        .header-glass-wrap .site-branding a:not(.custom-logo-link) span:first-child { width: 32px; height: 32px; font-size: 16px; }

        .header-mobile-search.is-open { display: block; }

        body.drawer-open { overflow: hidden; }
}

@media (max-width: 768px) {
        /* Шапка: верхняя панель компактнее */
        .header-top { font-size: 11px; }
        .header-top .gs-container { min-height: 32px; padding: 0 16px; }
        .header-top__work span:nth-child(2) { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
        /* Скрываем телефон в верхней панели на мобильных — место для переключателя языка.
           Телефон доступен через иконку телефона в мобильной зоне. */
        .header-top__phone { display: none; }
        .secondary-menu-wrap { display: none; }

        /* Стеклянная капсула */
        .header-glass-wrap { margin: 6px 0; }
        .header-glass-wrap.is-sticky { top: 6px; }
        .header-main { border-radius: 18px; }
        .header-main .gs-container { min-height: 58px; gap: 10px; padding: 0 14px; }

        /* Скрываем десктопные элементы */
        .main-navigation { display: none; }
        .header-search-inline { display: none; }
        .header-cta { display: none; }
        .header-callback-btn { display: none; }

        /* Показываем мобильную CTA + иконки: лого → Звонок → поиск → телефон → гамбургер */
        .header-mobile-callback {
                display: inline-flex;
                align-items: center;
                gap: 5px;
                margin-left: auto;
                padding: 8px 12px;
                font-size: 12px;
                background: var(--gs-orange);
                border-radius: 999px;
                white-space: nowrap;
        }
        .header-mobile-callback:hover { background: var(--gs-orange-dark); }
        .header-mobile-callback svg { width: 13px; height: 13px; }
        .header-mobile-icons { display: flex; margin-left: 0; }
        .custom-logo-link img { max-height: 30px; }
        .site-tagline { display: none; }
        .header-glass-wrap .site-branding a:not(.custom-logo-link) span:last-child { font-size: 15px; }
        .header-glass-wrap .site-branding a:not(.custom-logo-link) span:first-child { width: 32px; height: 32px; font-size: 16px; }

        /* Выезжающий поиск */
        .header-mobile-search.is-open { display: block; }

        /* Body блокируется при открытом drawer */
        body.drawer-open { overflow: hidden; }

        /* Hero */
        .hero .gs-container { padding: 100px 20px 32px; }
        .hero h1 { font-size: 26px; }
        .hero__lead { font-size: 15px; }

        .gs-container { padding: 0 20px; }
        .banner-grid { grid-template-columns: 1fr; }
        .banner-grid--3col { grid-template-columns: 1fr !important; }
        .solutions-cards {
                grid-template-columns: 1fr;
                grid-auto-rows: auto;
                gap: 12px;
        }
        /* На мобильном — 1 колонка, изображение целиком без обрезки */
        .solution-card:nth-child(n) {
                grid-column: span 1 !important;
                grid-row: span 1 !important;
                min-height: auto;
        }
        .solution-card__media {
                position: relative;
                min-height: 140px;
        }
        .solution-card__media img {
                object-fit: contain;
        }
        .quick-nav-grid { grid-template-columns: repeat(2, 1fr); }
        .solutions-grid {
                grid-template-columns: repeat(2, 1fr);
                gap: 8px;
        }
        .solution-chip {
                font-size: 11px;
                padding: 8px 10px;
                line-height: 1.2;
        }
        .solution-chip .dot { width: 5px; height: 5px; }
        .stats-grid { grid-template-columns: repeat(2, 1fr); }
        .news-grid, .case-grid, .cert-grid, .calendar-grid { grid-template-columns: 1fr; }
        /* Карточки архивов — компактнее на мобильном */
        .case-wide { grid-template-columns: 1fr; gap: 0; }
        .case-wide__media { min-height: 160px; }
        .case-wide__body { padding: 18px 20px; gap: 6px; }
        .case-wide__title { font-size: 17px; }
        .case-wide__excerpt { font-size: 13px; }
        .case-wide__meta { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 10px 0; }
        .case-wide__meta-value { font-size: 13px; }
        .case-wide__btn { font-size: 12px; padding: 8px 16px; }
        /* На мобильном 1 колонка — aspect-ratio: 3/2 сохраняется.
           min-height убираем. */
        .banner-card--sm { min-height: 0; }
        .banner-card { padding: 18px; }
        .banner-card__title { font-size: 18px; }
        .news-card__body { padding: 16px; }
        .news-card__title { font-size: 16px; }
        .cert-card__body { padding: 12px; }
        .event-card { padding: 16px; }
        .event-card__title { font-size: 15px; }
        .advantages { grid-template-columns: 1fr; }
        .gs-section { padding: 56px 0; }
        .hero__floats .float--5, .hero__floats .float--6, .hero__floats .float--7, .hero__floats .float--8 { display: none; }
        .hero__floats .float { transform: scale(.75); transform-origin: center; }
        .hero-steps { padding: 32px 20px; }
        .hero-steps .gs-container { grid-template-columns: 1fr; }
        .callout { padding: 28px; }
        .cookie-banner { left: 12px; right: 12px; bottom: 12px; max-width: none; }

        /* Календарь на мобильном — дни меньше */
        .gs-calendar { padding: 16px; }
        .gs-calendar__day { min-height: 64px; padding: 4px; }
        .gs-calendar__event { font-size: 9px; padding: 2px 4px; }
        .gs-calendar__weekday { font-size: 10px; padding: 4px 0; }
}

@media (max-width: 480px) {
        h1 { font-size: 26px; }
        h2 { font-size: 22px; }
        .hero__actions { flex-direction: column; align-items: stretch; }
        .hero__actions .gs-btn { width: 100%; }
        .footer-qr__group { flex-direction: column; gap: 12px; }
        .clients-wall { padding: 32px 20px; }
        .case-highlight { padding: 24px; }
        .equipment-block__content { padding: 28px 20px; }
        .floating-actions { right: 12px; bottom: 70px; }
        /* Чипсы решений — 1 колонка на узких, мелкий шрифт */
        .solutions-grid { grid-template-columns: 1fr; }
        .solution-chip { font-size: 12px; padding: 10px 14px; }
        /* Мобильная CTA — текст "Звонок" виден везде */
        .header-mobile-callback { font-size: 11px; padding: 7px 10px; }
        .header-mobile-callback svg { width: 12px; height: 12px; }
        .floating-actions__btn { width: 46px; height: 46px; }
}

/* Очень узкие экраны (<385px) — телефон в шапке не помещается в одну строку.
   Уменьшаем шрифт, но сохраняем текст "Заказать звонок" (не иконку). */
@media (max-width: 384px) {
        .header-top__phone { font-size: 11px; white-space: nowrap; }
        .header-top .gs-container { gap: 6px; }
        .header-top__work { font-size: 9px; }
        .header-top__work span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 120px; }
        /* Кнопка "Заказать звонок" — уменьшаем, но текст оставляем */
        .header-mobile-callback { font-size: 10px; padding: 6px 8px; gap: 4px; }
        .header-mobile-callback svg { width: 11px; height: 11px; }
}

/*--------------------------------------------------------------
# CTA-блок Telegram-канала — один баннер solution-card
   Стиль и размер как у 5-го баннера основного блока (половина ширины, 180px высота).
   Фон секции — gs-section--soft (как у новостей), чтобы блоки сливались.
   На мобильном — 1 колонка на всю ширину, как остальные баннеры.
--------------------------------------------------------------*/
.solutions-cards--single {
        /* Сетка 6 колонок как в основном блоке — карточка займёт 3 (половину) */
        grid-template-columns: repeat(6, 1fr);
        grid-auto-rows: 180px;
        justify-content: center;
        justify-items: center;   /* центрируем карточку в сетке */
}
.solutions-cards--single .solution-card:nth-child(n) {
        grid-column: 2 / span 4;   /* колонки 2–5 из 6 — по центру */
        grid-row: span 1;
        width: 100%;
}
@media (max-width: 1024px) {
        .solutions-cards--single { grid-auto-rows: 180px; }
}
/* На мобильном — 1 колонка на всю ширину, как у остальных баннеров.
   min-height: auto чтобы изображение не обрезалось. */
@media (max-width: 768px) {
        .solutions-cards--single {
                grid-template-columns: 1fr;
                grid-auto-rows: auto;
                gap: 12px;
        }
        .solutions-cards--single .solution-card:nth-child(n) {
                grid-column: span 1 !important;
                grid-row: span 1 !important;
                min-height: auto;
        }
}
@media (max-width: 480px) {
        .solutions-cards--single { grid-auto-rows: auto; }
}

/*--------------------------------------------------------------
# PDF-презентация — выделенная карточка-кнопка (Платформа Гедымин, категории решений)
--------------------------------------------------------------*/
.platform-pdf-card {
        display: flex;
        align-items: center;
        gap: 20px;
        margin-top: 40px;
        padding: 24px 28px;
        background: linear-gradient(135deg, #0E2A43 0%, #1C4364 100%);
        color: #fff;
        border-radius: var(--gs-radius-lg);
        text-decoration: none;
        box-shadow: 0 20px 45px -22px rgba(14,42,67,.55);
        border: 1px solid rgba(255,255,255,.08);
        transition: transform .2s ease, box-shadow .2s ease;
}
.platform-pdf-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 26px 55px -22px rgba(14,42,67,.7);
        color: #fff;
}
.platform-pdf-card__icon {
        flex: 0 0 auto;
        width: 64px;
        height: 64px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        background: rgba(230,58,10,.18);
        color: var(--gs-orange-light, #ff7a4d);
        border-radius: 14px;
}
.platform-pdf-card__body {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        gap: 4px;
        min-width: 0;
}
.platform-pdf-card__title {
        font-weight: 700;
        font-size: 18px;
        line-height: 1.3;
}
.platform-pdf-card__hint {
        font-size: 14px;
        color: #c9d6e4;
        line-height: 1.4;
}
.platform-pdf-card__cta {
        flex: 0 0 auto;
        font-weight: 700;
        font-size: 15px;
        white-space: nowrap;
        padding: 10px 18px;
        background: var(--gs-orange);
        border-radius: 999px;
}
.platform-pdf-card:hover .platform-pdf-card__cta {
        background: var(--gs-orange-dark);
}
@media (max-width: 640px) {
        .platform-pdf-card { flex-wrap: wrap; padding: 18px 20px; gap: 14px; }
        .platform-pdf-card__icon { width: 52px; height: 52px; }
        .platform-pdf-card__icon svg { width: 28px; height: 28px; }
        .platform-pdf-card__title { font-size: 16px; }
        .platform-pdf-card__hint { font-size: 13px; }
        .platform-pdf-card__cta { width: 100%; text-align: center; }
}

/*--------------------------------------------------------------
# Одиночная новость — стили
--------------------------------------------------------------*/
/* Контейнер одиночной новости — на всю ширину сайта (как gs-container = 1760px),
   а не узкий 920/1200px. Контент и блоки Gutenberg будут на всю ширину. */
.news-single-container {
        max-width: var(--gs-container);
}

/* Описание страницы «Новости» (на home.php) — мягкий intro под h1 */
.news-page-intro {
        color: #c9d6e4;
        max-width: 760px;
        margin-top: 8px;
}
.news-page-intro p { margin: 0 0 8px; }
.news-page-intro p:last-child { margin-bottom: 0; }

.news-meta {
        display: flex;
        flex-wrap: wrap;
        gap: 16px;
        margin-top: 14px;
        color: #8a9bb0;
        font-size: 14px;
        align-items: center;
}
.news-meta__item {
        display: inline-flex;
        align-items: center;
        gap: 6px;
}
.news-meta__cat {
        display: inline-block;
        padding: 4px 12px;
        background: rgba(230,58,10,.12);
        color: var(--gs-orange);
        border-radius: 999px;
        font-weight: 600;
        font-size: 13px;
        text-decoration: none;
        transition: background .2s ease;
}
.news-meta__cat:hover {
        background: rgba(230,58,10,.22);
        color: var(--gs-orange-dark);
}
.news-hero {
        border-radius: var(--gs-radius-lg);
        overflow: hidden;
        margin-bottom: 36px;
        box-shadow: var(--gs-shadow);
        /* Не задаём max-height — пусть обложка будет своего натурального размера.
           Если изображение очень высокое, оно просто целиком покажется. */
        text-align: center;
        background: #f6f8fa;
}
.news-hero img {
        /* Натуральный размер: не растягиваем, не обрезаем.
           Если картинка шире контейнера — ограничивается по ширине,
           высота автоматически пропорционально. */
        display: inline-block;
        max-width: 100%;
        width: auto;
        height: auto;
}

/* Полное изображение 1200×800 на одиночной странице решения/кейса.
   Контейнер задаёт скругление + тень, img — responsive с сохранением пропорций. */
.gs-single-hero {
        border-radius: var(--gs-radius-lg);
        overflow: hidden;
        margin: 32px 0;
        box-shadow: var(--gs-shadow);
        background: #f6f8fa;
        text-align: center;
}
.gs-single-hero img {
        display: block;
        max-width: 100%;
        width: 100%;
        height: auto;
        margin: 0 auto;
}
/* iframe (YouTube/Vimeo) внутри hero — на всю ширину */
.gs-single-hero iframe,
.gs-single-hero video {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        border: 0;
}
/* Видео-контейнер на одиночной странице видео-отзыва */
.video-review-single-video {
        position: relative;
        width: 100%;
        aspect-ratio: 16 / 9;
        background: #000;
        border-radius: var(--gs-radius-lg);
        overflow: hidden;
        box-shadow: var(--gs-shadow);
        margin: 0 0 32px;
}
.video-review-single-video iframe,
.video-review-single-video video {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        border: 0;
}
.news-article {
        font-size: 17px;
        line-height: 1.75;
        color: var(--gs-text);
}
.news-article h2 { margin-top: 36px; }
.news-article h3 { margin-top: 28px; }
.news-article p { margin-bottom: 18px; }
/* Картинки в контенте — натуральный размер (не растягиваем).
   display: inline-block + text-align: center на article — центрирует узкие картинки.
   max-width: 100% защищает от переполнения, если изображение шире контейнера. */
.news-article img {
        max-width: 100%;
        width: auto;
        height: auto;
        border-radius: 12px;
        margin: 24px auto;
        display: block;
}
.news-article blockquote {
        border-left: 4px solid var(--gs-orange);
        padding: 12px 20px;
        margin: 24px 0;
        background: #f6f8fa;
        border-radius: 0 12px 12px 0;
        font-style: italic;
        color: #4a5b6e;
}
.news-article ul, .news-article ol { margin: 0 0 18px 22px; }
.news-article li { margin-bottom: 6px; }
.news-article a { color: var(--gs-orange); text-decoration: underline; }
.news-article a:hover { color: var(--gs-orange-dark); }

.news-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin: 32px 0;
        padding-top: 24px;
        border-top: 1px solid #eef1f5;
}
.news-tag {
        padding: 6px 14px;
        background: #f0f3f6;
        color: #4a5b6e;
        border-radius: 999px;
        font-size: 14px;
        text-decoration: none;
        transition: background .2s ease;
}
.news-tag:hover { background: #e3e8ed; color: var(--gs-navy); }

.news-share {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 10px;
        margin: 28px 0;
        padding: 20px 24px;
        background: #f6f8fa;
        border-radius: 14px;
}
.news-share__label {
        font-weight: 600;
        font-size: 14px;
        color: #4a5b6e;
        margin-right: 6px;
}
.news-share__btn {
        display: inline-flex;
        align-items: center;
        padding: 8px 16px;
        border-radius: 999px;
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;
        border: none;
        cursor: pointer;
        transition: transform .15s ease, opacity .15s ease;
}
.news-share__btn:hover { transform: translateY(-1px); }
.news-share__btn--vk   { background: #0077FF; color: #fff; }
.news-share__btn--tg   { background: #229ED9; color: #fff; }
.news-share__btn--copy { background: #fff; color: #4a5b6e; border: 1px solid #d6dde3; }
.news-share__btn--copy:hover { background: #eef1f5; }

.news-related {
        margin-top: 48px;
        padding-top: 36px;
        border-top: 2px solid #eef1f5;
}
.news-related__title {
        font-size: 24px;
        margin-bottom: 24px;
}

/*--------------------------------------------------------------
# Навигация между записями (prev/next) — компактные кнопки
   HTML собирается вручную в single.php (без the_post_navigation),
   поэтому нет двойных обёрток и конфликтов с пагинацией.
--------------------------------------------------------------*/
.post-nav {
        margin-top: 48px;
}
.post-nav__links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
}
.post-nav__btn {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 12px 16px;
        border: 1px solid #e6ebf0;
        border-radius: 10px;
        background: #fff;
        color: var(--gs-navy);
        text-decoration: none;
        transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
        min-height: 56px;
        box-sizing: border-box;
        overflow: hidden;
}
.post-nav__btn:hover {
        background: var(--gs-navy);
        color: #fff;
        border-color: var(--gs-navy);
        transform: translateY(-1px);
}
.post-nav__btn--next {
        justify-content: flex-end;
        text-align: right;
}
.post-nav__arrow {
        flex: 0 0 auto;
        font-size: 18px;
        font-weight: 700;
        color: var(--gs-orange);
        line-height: 1;
}
.post-nav__btn:hover .post-nav__arrow {
        color: #fff;
}
.post-nav__text {
        display: flex;
        flex-direction: column;
        gap: 2px;
        min-width: 0;
        overflow: hidden;
}
.post-nav__btn--next .post-nav__text {
        align-items: flex-end;
}
.post-nav__label {
        font-size: 10px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .08em;
        color: var(--gs-orange);
}
.post-nav__btn:hover .post-nav__label {
        color: rgba(255,255,255,.8);
}
.post-nav__title {
        font-size: 13px;
        font-weight: 600;
        line-height: 1.3;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
}
/* Только одна кнопка — на всю ширину */
.post-nav__links > .post-nav__btn:only-child {
        grid-column: 1 / -1;
}
@media (max-width: 600px) {
        .post-nav__links { grid-template-columns: 1fr; }
        .post-nav__btn--next { justify-content: flex-start; text-align: left; }
        .post-nav__btn--next .post-nav__text { align-items: flex-start; }
}

/*--------------------------------------------------------------
# Одиночная новость — Gutenberg-блоки на всю ширину контента
   WP по умолчанию ограничивает блоки через CSS-переменные
   (--wp--style--global--content-size: 640px) и через inline-стили.
   Для одиночной новости убираем это ограничение жёстко через !important.
--------------------------------------------------------------*/
.single-post .wp-site-blocks,
.single-post .entry-content,
.single-post .news-article,
.news-article {
        --wp--style--global--content-size: 100% !important;
        --wp--style--global--wide-size: 100% !important;
}
/* Все Gutenberg-блоки — на всю ширину контейнера */
.news-article [class*="wp-block-"] {
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
}
.news-article .wp-block-group,
.news-article .wp-block-columns,
.news-article .wp-block-column,
.news-article .wp-block-media-text,
.news-article .wp-block-cover,
.news-article .wp-block-image,
.news-article .wp-block-gallery,
.news-article .wp-block-embed,
.news-article .wp-block-quote,
.news-article .wp-block-pullquote,
.news-article .wp-block-table,
.news-article .wp-block-button,
.news-article .wp-block-buttons,
.news-article .wp-block-separator,
.news-article .wp-block-heading {
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
}
.news-article .alignwide {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
}
.news-article .alignfull {
        width: 100vw !important;
        max-width: 100vw !important;
        margin-left: calc(50% - 50vw) !important;
        margin-right: calc(50% - 50vw) !important;
}
/* Абзацы и заголовки — на всю ширину */
.news-article p,
.news-article h1,
.news-article h2,
.news-article h3,
.news-article h4,
.news-article h5,
.news-article h6,
.news-article ul,
.news-article ol {
        max-width: 100% !important;
}
/* Изображения внутри блоков — натуральный размер */
.news-article .wp-block-image img,
.news-article .wp-block-gallery img,
.news-article figure img {
        max-width: 100%;
        width: auto;
        height: auto;
}

/*--------------------------------------------------------------
# Панель PDF-презентаций (1-3 карточки в grid)
--------------------------------------------------------------*/
.platform-pdf-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 16px;
        margin-top: 32px;
}
.platform-pdf-grid .platform-pdf-card {
        margin-top: 0;
}
@media (max-width: 640px) {
        .platform-pdf-grid { grid-template-columns: 1fr; }
}

/*--------------------------------------------------------------
# Список рекомендательных писем (страница Отзывы)
--------------------------------------------------------------*/
.reviews-list {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
}
.review-list-item {
        border: 1px solid var(--gs-border);
        border-radius: var(--gs-radius-lg);
        overflow: hidden;
        background: #fff;
        box-shadow: var(--gs-shadow);
        transition: transform .2s ease, box-shadow .2s ease;
}
.review-list-item:hover {
        transform: translateY(-3px);
        box-shadow: 0 16px 36px -12px rgba(14,42,67,.25);
}
.review-list-item__media {
        background: #fff;
        border-bottom: 1px solid var(--gs-border);
}
.review-list-item__media img {
        width: 100%;
        height: auto;
        display: block;
}
.review-list-item__body {
        padding: 16px 20px;
        display: flex;
        flex-direction: column;
        gap: 10px;
}
.review-list-item__body h3 {
        font-size: 15px;
        font-weight: 700;
        color: var(--gs-navy);
        margin: 0;
        line-height: 1.3;
}
@media (max-width: 768px) {
        .reviews-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
        .reviews-list { grid-template-columns: 1fr; }
}

/*--------------------------------------------------------------
# Партнёрский кейс — блок (одинаковая высота видео и PDF)
--------------------------------------------------------------*/
.partner-case-block {
        margin-top: 40px;
        margin-bottom: 48px;
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
}
.partner-case-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 28px;
        align-items: stretch;
        margin-top: 32px;
}
.partner-case-video {
        position: relative;
        width: 100%;
        aspect-ratio: 16 / 9;
        background: #000;
        border-radius: var(--gs-radius-lg);
        overflow: hidden;
        box-shadow: var(--gs-shadow);
        min-height: 300px;
}
.partner-case-video iframe {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        border: 0;
}
.partner-case-pdf {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 16px;
        padding: 32px;
        background: linear-gradient(135deg, #0E2A43 0%, #1C4364 100%);
        color: #fff;
        border-radius: var(--gs-radius-lg);
        text-decoration: none;
        box-shadow: 0 20px 45px -22px rgba(14,42,67,.55);
        border: 1px solid rgba(255,255,255,.08);
        transition: transform .25s ease, box-shadow .25s ease;
        min-height: 300px;
        text-align: center;
}
.partner-case-pdf:hover {
        transform: translateY(-3px);
        box-shadow: 0 28px 55px -22px rgba(14,42,67,.65);
        color: #fff;
}
.partner-case-pdf__icon {
        flex: 0 0 auto;
        width: 80px;
        height: 80px;
        border-radius: 50%;
        background: rgba(230,58,10,.18);
        color: var(--gs-orange-light);
        display: inline-flex;
        align-items: center;
        justify-content: center;
}
.partner-case-pdf__body {
        display: flex;
        flex-direction: column;
        gap: 6px;
}
.partner-case-pdf__title {
        font-size: 18px;
        font-weight: 700;
        line-height: 1.3;
}
.partner-case-pdf__hint {
        font-size: 14px;
        color: #c9d6e4;
}
.partner-case-pdf__cta {
        display: inline-flex;
        align-items: center;
        padding: 12px 24px;
        background: var(--gs-orange);
        color: #fff;
        border-radius: 999px;
        font-weight: 700;
        font-size: 15px;
        white-space: nowrap;
        transition: background .2s ease;
        margin-top: 4px;
}
.partner-case-pdf:hover .partner-case-pdf__cta {
        background: var(--gs-orange-dark);
}
@media (max-width: 768px) {
        .partner-case-grid { grid-template-columns: 1fr; }
}
