/*
 Theme Name:   Kadence Child — Емкость НН
 Theme URI:    https://emkost-nn.ru
 Description:  Enterprise design system for ГК ТД «Емкость НН»
 Author:       Emkost-NN Team
 Template:     kadence
 Version:      1.0.0
 Text Domain:  kadence-child
*/

/* ═══════════════════════════════════════════════════════════════
   1. DESIGN TOKENS — CSS Custom Properties
   ═══════════════════════════════════════════════════════════════ */
:root {
    /* Brand — приглушённый сланцево-синий */
    --st-green-900: #1e293b;
    --st-green-800: #2d3a4e;
    --st-green-700: #3b5068;
    --st-green-600: #527089;
    --st-green-500: #6889a5;
    --st-green-400: #8ca3b8;
    --st-green-300: #b0c4d4;
    --st-green-200: #cfd9e2;
    --st-green-100: #e8edf2;
    --st-green-50:  #f3f5f8;

    /* Neutrals */
    --st-gray-900: #1a202c;
    --st-gray-800: #2d3748;
    --st-gray-700: #4a5568;
    --st-gray-600: #64748b;
    --st-gray-500: #718096;
    --st-gray-400: #a0aec0;
    --st-gray-300: #cbd5e0;
    --st-gray-200: #e2e8f0;
    --st-gray-100: #f7fafc;
    --st-gray-50:  #fafbfc;

    /* Functional */
    --st-white: #ffffff;
    --st-accent: var(--st-green-700);
    --st-accent-hover: var(--st-green-800);
    --st-text: var(--st-gray-900);
    --st-text-secondary: var(--st-gray-600);
    --st-border: var(--st-gray-200);
    --st-bg-subtle: var(--st-gray-100);
    --st-bg-accent: var(--st-green-50);

    /* Shadows */
    --st-shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --st-shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --st-shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --st-shadow-card: 0 2px 8px rgba(0,0,0,0.06);
    --st-shadow-card-hover: 0 8px 24px rgba(0,0,0,0.1);

    /* Spacing */
    --st-space-xs: 4px;
    --st-space-sm: 8px;
    --st-space-md: 16px;
    --st-space-lg: 24px;
    --st-space-xl: 32px;
    --st-space-2xl: 48px;
    --st-space-3xl: 64px;

    /* Radii */
    --st-radius-sm: 4px;
    --st-radius-md: 8px;
    --st-radius-lg: 12px;
    --st-radius-xl: 16px;

    /* Transitions */
    --st-transition: 0.2s ease;
    --st-transition-fast: 0.15s ease;

    /* Max width */
    --st-max-width: 1200px;
}

/* ═══════════════════════════════════════════════════════════════
   1b. KADENCE PALETTE OVERRIDE — force green on all palette vars
   ═══════════════════════════════════════════════════════════════ */
:root {
    --global-palette1: #3b5068;
    --global-palette2: #2d3a4e;
    --global-palette3: #1e293b;
    --global-palette4: #4a5568;
    --global-palette5: #1e293b;
    --global-palette6: #64748b;
    --global-palette7: #f3f5f8;
    --global-palette8: #f7fafc;
    --global-palette9: #ffffff;
    --global-palette-highlight: var(--global-palette1);
    --global-palette-highlight-alt: var(--global-palette2);
    --global-palette-highlight-alt2: var(--global-palette9);
    --global-palette-btn-bg: var(--global-palette1);
    --global-palette-btn-bg-hover: var(--global-palette2);
    --global-palette-btn: var(--global-palette9);
    --global-palette-btn-hover: var(--global-palette9);
}

/* ═══════════════════════════════════════════════════════════════
   1b2. CONTENT AREA — spacing
   ═══════════════════════════════════════════════════════════════ */

/* Homepage: zero gaps, hero touches header directly */
.home .content-area {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}
.home .entry-content-wrap {
    padding: 0 !important;
}
.home .entry.single-entry {
    box-shadow: none;
}

/* Inner pages: compact spacing */
body:not(.home) .content-area {
    margin-top: 1rem !important;
}
@media (max-width: 767px) {
    body:not(.home) .content-area { margin-top: 0.5rem !important; }
}

/* ═══════════════════════════════════════════════════════════════
   1c. HEADER — Enterprise Navigation
   ═══════════════════════════════════════════════════════════════ */

/* Anti-scrollbar: prevent ANY scrollbar in header */
#masthead,
#masthead .site-header-wrap,
#masthead .site-header-inner-wrap,
#masthead .site-header-upper-wrap,
#masthead .site-header-upper-inner-wrap,
#masthead .site-main-header-wrap,
#masthead .site-top-header-wrap,
#masthead .site-header-row-container-inner,
#masthead .site-container,
#masthead .site-main-header-inner-wrap,
#masthead .header-menu-container,
#masthead .primary-menu-container,
#masthead .primary-menu-container > ul,
#masthead .secondary-menu-container,
#masthead .secondary-menu-container > ul,
#main-header,
#main-header * {
    overflow: visible !important;
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}
#masthead *::-webkit-scrollbar,
#main-header *::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

/* --- Top bar (secondary nav) --- */
.site-top-header-wrap {
    background: var(--st-green-900) !important;
}
.site-top-header-wrap .site-header-row-container-inner {
    min-height: 40px;
    padding-top: 0;
    padding-bottom: 0;
}
.site-top-header-wrap .secondary-navigation a {
    color: rgba(255,255,255,0.85) !important;
    font-size: 13px;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.2px;
    transition: color var(--st-transition-fast);
}
.site-top-header-wrap .secondary-navigation a:hover {
    color: #fff !important;
}

/* --- Main header bar --- */
#masthead {
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.site-main-header-wrap .site-header-row-container-inner {
    background: var(--st-white) !important;
}
.site-main-header-inner-wrap {
    min-height: 80px;
}

/* --- Site title / branding --- */
.site-branding .site-title {
    font-family: 'Montserrat', 'Inter', sans-serif !important;
    font-weight: 700 !important;
    font-size: 20px !important;
    color: var(--st-green-900) !important;
    letter-spacing: -0.3px;
    transition: color var(--st-transition-fast);
}
.site-branding a.brand:hover .site-title {
    color: var(--st-green-700) !important;
}

/* --- Primary navigation links --- */
.main-navigation .primary-menu-container > ul > li.menu-item > a {
    font-family: 'Inter', sans-serif !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    color: var(--st-gray-900) !important;
    letter-spacing: 0.1px;
    padding: 0.6em 0.8em !important;
    transition: color 0.15s ease !important;
}
.main-navigation .primary-menu-container > ul > li.menu-item > a:hover {
    color: var(--st-green-700) !important;
}
.main-navigation .primary-menu-container > ul > li.current-menu-item > a,
.main-navigation .primary-menu-container > ul > li.current-menu-ancestor > a {
    color: var(--st-green-700) !important;
    font-weight: 600 !important;
}

/* --- Dropdown menus --- */
.header-navigation .header-menu-container ul ul.sub-menu {
    background: var(--st-green-900) !important;
    border: none !important;
    border-radius: var(--st-radius-md) !important;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15) !important;
    padding: 8px 0 !important;
    min-width: 230px !important;
}
.header-navigation .header-menu-container ul ul.sub-menu li.menu-item {
    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
}
.header-navigation .header-menu-container ul ul.sub-menu li.menu-item:last-child {
    border-bottom: none !important;
}
.header-navigation .header-menu-container ul ul.sub-menu li.menu-item > a {
    color: rgba(255,255,255,0.9) !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    padding: 10px 20px !important;
    transition: background 0.15s ease, color 0.15s ease !important;
    width: auto !important;
}
.header-navigation .header-menu-container ul ul.sub-menu li.menu-item > a:hover {
    color: #fff !important;
    background: var(--st-green-700) !important;
}
.header-navigation .header-menu-container ul ul.sub-menu li.menu-item.current-menu-item > a {
    color: #fff !important;
    background: var(--st-green-700) !important;
    font-weight: 500 !important;
}

/* 3rd-level dropdown */
.header-navigation .header-menu-container ul ul.sub-menu ul.sub-menu {
    top: -8px !important;
    border-radius: var(--st-radius-md) !important;
}

/* Dropdown arrow icon color */
.main-navigation .primary-menu-container > ul > li .dropdown-nav-toggle .kadence-svg-icon {
    color: var(--st-gray-600);
}
.main-navigation .primary-menu-container > ul > li:hover .dropdown-nav-toggle .kadence-svg-icon {
    color: var(--st-green-700);
}

/* ═══════════════════════════════════════════════════════════════
   2. TYPOGRAPHY
   ═══════════════════════════════════════════════════════════════ */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--st-text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.wp-block-heading {
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-weight: 700;
    line-height: 1.25;
    color: var(--st-gray-900);
}

h1, .entry-title { font-size: clamp(24px, 3.5vw, 32px); margin-bottom: 0.5em; }
h2 { font-size: clamp(20px, 2.5vw, 26px); margin-top: 1.5em; margin-bottom: 0.5em; }
h3 { font-size: clamp(16px, 2vw, 20px); margin-top: 1.3em; margin-bottom: 0.4em; }
h4 { font-size: clamp(15px, 1.8vw, 18px); }
h5 { font-size: 15px; }
h6 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.5px; }

p { margin-bottom: 1.2em; color: var(--st-gray-700); }

.entry-content a:not(.wp-block-button__link):not(.st-gost-link):not(.st-calc-cta__btn) {
    color: var(--st-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color var(--st-transition-fast);
}
.entry-content a:not(.wp-block-button__link):not(.st-gost-link):not(.st-calc-cta__btn):hover {
    color: var(--st-accent-hover);
}

blockquote,
.wp-block-quote {
    border-left: 4px solid var(--st-accent);
    padding: var(--st-space-md) var(--st-space-lg);
    background: var(--st-bg-accent);
    border-radius: 0 var(--st-radius-md) var(--st-radius-md) 0;
    margin: var(--st-space-xl) 0;
    font-style: italic;
}
blockquote p { color: var(--st-gray-800); margin-bottom: 0.5em; }

/* ═══════════════════════════════════════════════════════════════
   3. HERO SECTIONS
   ═══════════════════════════════════════════════════════════════ */
.st-hero {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #1a2332 0%, #263548 40%, #2d4156 70%, #34526a 100%);
    color: var(--st-white);
    padding: 52px var(--st-space-lg) 48px;
}
/* Subtle geometric grid overlay */
.st-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}
/* Decorative accent line */
.st-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #e2a000 0%, #e2a000 30%, transparent 100%);
}
.st-hero__content {
    position: relative;
    z-index: 1;
    max-width: var(--st-max-width);
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--st-space-2xl);
    align-items: center;
}
.st-hero__text {
    max-width: 560px;
}
.st-hero__label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #e2a000;
    margin-bottom: var(--st-space-md);
}
.st-hero__label::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 2px;
    background: #e2a000;
}
.st-hero__title {
    font-size: clamp(22px, 3vw, 32px);
    font-weight: 700;
    margin-bottom: 0.5em;
    color: var(--st-white);
    line-height: 1.2;
}
.st-hero__subtitle {
    font-size: clamp(14px, 1.5vw, 15px);
    margin-bottom: var(--st-space-lg);
    line-height: 1.7;
    color: rgba(255,255,255,0.7);
}
.st-hero__actions {
    display: flex;
    gap: var(--st-space-md);
    flex-wrap: wrap;
}
.st-hero__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 24px;
    background: #e2a000;
    color: #1e293b;
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--st-radius-sm);
    text-decoration: none;
    transition: background var(--st-transition-fast), transform var(--st-transition-fast);
    border: none;
}
.st-hero__btn:hover {
    background: #c98e00;
    color: #1e293b;
    transform: translateY(-1px);
}
.st-hero__btn--outline {
    background: transparent;
    color: rgba(255,255,255,0.85);
    border: 1px solid rgba(255,255,255,0.25);
}
.st-hero__btn--outline:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(255,255,255,0.5);
    color: #fff;
    transform: translateY(-1px);
}
/* Right side: stat highlights */
.st-hero__stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--st-space-md);
}
.st-hero__stat {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--st-radius-md);
    padding: var(--st-space-lg) var(--st-space-md);
    text-align: center;
    transition: background var(--st-transition);
}
.st-hero__stat:hover {
    background: rgba(255,255,255,0.1);
}
.st-hero__stat-number {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #e2a000;
    line-height: 1;
    margin-bottom: 4px;
}
.st-hero__stat-label {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    line-height: 1.3;
}

/* ═══════════════════════════════════════════════════════════════
   4. TRUST BAR
   ═══════════════════════════════════════════════════════════════ */
.st-trust-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--st-space-md);
    padding: var(--st-space-lg) var(--st-space-lg);
    max-width: var(--st-max-width);
    margin: 0 auto;
    border-bottom: 1px solid var(--st-border);
}
.st-trust-bar__item {
    text-align: center;
    padding: var(--st-space-md);
}
.st-trust-bar__number {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--st-green-700);
    line-height: 1;
    margin-bottom: var(--st-space-sm);
}
.st-trust-bar__label {
    font-size: 14px;
    color: var(--st-text-secondary);
    line-height: 1.4;
}

/* ═══════════════════════════════════════════════════════════════
   5. PRODUCT CARDS
   ═══════════════════════════════════════════════════════════════ */
.st-product-card {
    background: var(--st-white);
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius-lg);
    overflow: hidden;
    transition: border-color var(--st-transition), box-shadow var(--st-transition);
}
.st-product-card:hover {
    border-color: var(--st-green-400);
    box-shadow: var(--st-shadow-card-hover);
}
.st-product-card__img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    background: var(--st-bg-subtle);
}
.st-product-card__body {
    padding: var(--st-space-md) var(--st-space-lg);
}
.st-product-card__badge {
    display: inline-block;
    padding: 2px 10px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--st-accent);
    background: var(--st-bg-accent);
    border-radius: var(--st-radius-sm);
    margin-bottom: var(--st-space-sm);
}
.st-product-card__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--st-text);
    margin-bottom: var(--st-space-sm);
}
.st-product-card__meta {
    font-size: 13px;
    color: var(--st-text-secondary);
}
.st-product-card__link {
    display: inline-block;
    margin-top: var(--st-space-md);
    font-size: 14px;
    font-weight: 600;
    color: var(--st-accent);
    text-decoration: none;
}
.st-product-card__link:hover { text-decoration: underline; }

/* Similar products grid (from st-ajax-filter) */
.st-similar { margin: 40px 0 20px; padding-top: 30px; border-top: 1px solid var(--st-border); }
.st-similar h2 { font-size: 22px; margin-bottom: 16px; }
.st-similar__list {
    list-style: none; padding: 0; margin: 0;
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
}
.st-similar__list li {
    padding: 10px 14px;
    background: var(--st-gray-50);
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius-sm);
    transition: background var(--st-transition), border-color var(--st-transition);
}
.st-similar__list li:hover { background: var(--st-green-50); border-color: var(--st-green-200); }
.st-similar__list a {
    text-decoration: none; color: var(--st-text);
    font-size: 14px; font-weight: 500;
}
.st-similar__list a:hover { color: var(--st-accent); }

/* ═══════════════════════════════════════════════════════════════
   6. DATA TABLES
   ═══════════════════════════════════════════════════════════════ */
.entry-content table,
.wp-block-table table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 0;
    margin: var(--st-space-xl) 0;
    font-size: 14px;
    border-radius: var(--st-radius-md);
    overflow: hidden;
    box-shadow: var(--st-shadow-sm);
}
.entry-content table thead th,
.wp-block-table table thead th {
    background: var(--st-accent);
    color: var(--st-white);
    font-weight: 600;
    padding: 12px 16px;
    text-align: left;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.entry-content table tbody td,
.wp-block-table table tbody td {
    padding: 11px 16px;
    border-bottom: 1px solid var(--st-gray-200);
    vertical-align: top;
}
.entry-content table tbody tr:nth-child(even),
.wp-block-table table tbody tr:nth-child(even) {
    background: var(--st-gray-50);
}
.entry-content table tbody tr:hover,
.wp-block-table table tbody tr:hover {
    background: var(--st-bg-accent);
}

/* Table scroll wrapper for mobile */
.wp-block-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ═══════════════════════════════════════════════════════════════
   7. CTA BLOCKS
   ═══════════════════════════════════════════════════════════════ */
.st-cta {
    background: var(--st-green-50);
    border: 1px solid var(--st-green-200);
    color: var(--st-text);
    padding: var(--st-space-xl) var(--st-space-xl);
    border-radius: var(--st-radius-lg);
    text-align: center;
    margin: 0 auto;
    max-width: var(--st-max-width);
}
.st-cta h2,
.st-cta h3 {
    color: var(--st-gray-900);
    margin-top: 0;
    margin-bottom: var(--st-space-sm);
    font-size: 20px;
}
.st-cta p {
    color: var(--st-gray-600);
    max-width: 550px;
    margin: 0 auto var(--st-space-lg);
    font-size: 14px;
}
.st-cta__btn {
    display: inline-block;
    padding: 10px 24px;
    background: #e2a000;
    color: #1e293b;
    font-weight: 600;
    font-size: 14px;
    border-radius: var(--st-radius-sm);
    text-decoration: none;
    transition: background var(--st-transition-fast);
    border: none;
}
.st-cta__btn:hover {
    background: #c98e00;
    color: #1e293b;
}

/* Kadence buttons override */
.wp-block-button .wp-block-button__link {
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-weight: 600;
    border-radius: var(--st-radius-md);
    padding: 12px 28px;
    transition: transform var(--st-transition-fast), box-shadow var(--st-transition);
}
.wp-block-button .wp-block-button__link:hover {
    transform: translateY(-1px);
    box-shadow: var(--st-shadow-md);
}

/* ═══════════════════════════════════════════════════════════════
   8. CASE STUDIES
   ═══════════════════════════════════════════════════════════════ */
/* Listing grid (parent page) */
.st-cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 32px 0;
}
.st-case-card {
    background: var(--st-white);
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
    transition: box-shadow var(--st-transition);
}
.st-case-card:hover {
    box-shadow: var(--st-shadow-md);
}
.st-case-card__tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    align-self: flex-start;
}
.st-case-card__tag--kukuruza { background: #FFF3E0; color: #E65100; }
.st-case-card__tag--travy { background: #E8F5E9; color: #2E7D32; }
.st-case-card__tag--gazon { background: #E0F2F1; color: #00695C; }
.st-case-card__tag--medonosy { background: #FFF8E1; color: #F57F17; }
.st-case-card__tag--sideraty { background: #F3E5F5; color: #7B1FA2; }
.st-case-card__title {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 8px;
    color: var(--st-text);
    line-height: 1.3;
}
.st-case-card__region {
    font-size: 13px;
    color: var(--st-text-secondary);
    margin: 0 0 12px;
}
.st-case-card__result {
    background: var(--st-bg-accent);
    border: 1px solid #bbf7d0;
    border-radius: var(--st-radius-md);
    padding: 10px 14px;
    margin-bottom: 16px;
    font-size: 14px;
    flex: 1;
}
.st-case-card__result-label { color: var(--st-text-secondary); }
.st-case-card__result strong { color: #166534; }
.st-case-card__link {
    font-size: 14px;
    font-weight: 600;
    color: var(--st-accent);
    text-decoration: none;
    margin-top: auto;
}
.st-case-card__link:hover { text-decoration: underline; }

/* Individual case page cross-links */
.st-case-products,
.st-case-region-link,
.st-case-articles,
.st-case-other {
    margin: 32px 0 16px;
    padding-top: 24px;
    border-top: 1px solid var(--st-border);
}
.st-case-products h2,
.st-case-other h2 { font-size: 22px; margin-bottom: 16px; }
.st-case-products h3,
.st-case-region-link h3,
.st-case-articles h3 { font-size: 18px; margin-bottom: 12px; }
.st-case-products__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.st-case-products__list li {
    padding: 8px 16px;
    background: var(--st-gray-50);
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius-sm);
}
.st-case-products__list a {
    text-decoration: none;
    color: var(--st-accent);
    font-weight: 500;
    font-size: 14px;
}
.st-case-products__list a:hover { text-decoration: underline; }
.st-case-region-link a,
.st-case-articles a,
.st-case-other a {
    color: var(--st-accent);
    text-decoration: none;
    font-weight: 500;
}
.st-case-region-link a:hover,
.st-case-articles a:hover,
.st-case-other a:hover { text-decoration: underline; }

@media (max-width: 768px) {
    .st-cases-grid { grid-template-columns: 1fr; gap: 16px; }
    .st-case-card { padding: 16px; }
    .st-case-card__title { font-size: 15px; }
}

/* ═══════════════════════════════════════════════════════════════
   9. TIMELINE (История — ID 7)
   ═══════════════════════════════════════════════════════════════ */
.st-timeline {
    position: relative;
    padding-left: 40px;
    margin: var(--st-space-xl) 0;
}
.st-timeline::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, var(--st-green-300), var(--st-green-700));
    border-radius: 2px;
}
.st-timeline__item {
    position: relative;
    margin-bottom: var(--st-space-xl);
    padding-left: var(--st-space-lg);
}
.st-timeline__item::before {
    content: '';
    position: absolute;
    left: -34px;
    top: 4px;
    width: 14px;
    height: 14px;
    background: var(--st-accent);
    border: 3px solid var(--st-white);
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--st-green-200);
}
.st-timeline__year {
    display: inline-block;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--st-accent);
    background: var(--st-bg-accent);
    padding: 2px 12px;
    border-radius: var(--st-radius-sm);
    margin-bottom: var(--st-space-sm);
}
.st-timeline__text {
    font-size: 15px;
    color: var(--st-gray-700);
    line-height: 1.6;
}

/* ═══════════════════════════════════════════════════════════════
   10. PROCESS STEPS (Услуги)
   ═══════════════════════════════════════════════════════════════ */
.st-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--st-space-lg);
    margin: var(--st-space-xl) 0;
    counter-reset: step;
}
.st-steps__item {
    position: relative;
    background: var(--st-white);
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius-lg);
    padding: var(--st-space-xl) var(--st-space-lg);
    text-align: center;
    counter-increment: step;
    transition: border-color var(--st-transition), box-shadow var(--st-transition);
}
.st-steps__item:hover {
    border-color: var(--st-green-300);
    box-shadow: var(--st-shadow-md);
}
.st-steps__item::before {
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    margin: 0 auto var(--st-space-md);
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--st-white);
    background: linear-gradient(135deg, var(--st-green-700), var(--st-green-600));
    border-radius: 50%;
}
.st-steps__title {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--st-text);
    margin-bottom: var(--st-space-sm);
}
.st-steps__desc {
    font-size: 14px;
    color: var(--st-text-secondary);
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════════════
   11. FOOTER — Enterprise info grid
   ═══════════════════════════════════════════════════════════════ */
#colophon {
    background: var(--st-gray-900);
    color: rgba(255,255,255,0.8);
}
#colophon .site-footer-row-container-inner {
    padding-top: 20px;
    padding-bottom: 20px;
}

/* Footer navigation */
#colophon .footer-navigation .footer-menu-container > ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--st-space-sm);
}
#colophon .footer-navigation .footer-menu-container > ul > li > a {
    color: rgba(255,255,255,0.75) !important;
    font-size: 13px;
    transition: color var(--st-transition);
}
#colophon .footer-navigation .footer-menu-container > ul > li > a:hover {
    color: var(--st-white) !important;
}
#colophon .footer-html {
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    text-align: center;
}

/* ═══════════════════════════════════════════════════════════════
   NAVIGATION — CTA, Dropdowns (migrated from st-navigation.php)
   ═══════════════════════════════════════════════════════════════ */
/* CTA button in primary nav */
.primary-menu-container .menu-item-cta > a,
.mobile-menu-container .menu-item-cta > a {
    background: var(--st-accent) !important;
    color: var(--st-white) !important;
    padding: 8px 20px !important;
    border-radius: var(--st-radius-md) !important;
    font-weight: 600 !important;
    transition: background 0.2s ease !important;
    white-space: nowrap !important;
}
.primary-menu-container .menu-item-cta > a:hover,
.mobile-menu-container .menu-item-cta > a:hover {
    background: var(--st-accent-hover) !important;
    color: var(--st-white) !important;
}

/* Navigation styles consolidated in section 1c above */

/* ═══════════════════════════════════════════════════════════════
   FAQ SECTION (migrated from st-faq.php)
   ═══════════════════════════════════════════════════════════════ */
.st-faq { margin: 40px 0 20px; padding-top: 30px; border-top: 1px solid var(--st-border); }
.st-faq h2 { font-size: 24px; margin-bottom: 20px; color: var(--st-text); }
.st-faq__item { margin-bottom: 8px; border: 1px solid var(--st-border); border-radius: var(--st-radius-md); overflow: hidden; }
.st-faq__item[open] { border-color: var(--st-green-500); }
.st-faq__question {
    padding: 16px 20px;
    font-weight: 600;
    font-size: 15px;
    color: var(--st-text);
    cursor: pointer;
    list-style: none;
    position: relative;
    padding-right: 40px;
    transition: background var(--st-transition-fast);
}
.st-faq__question:hover { background: var(--st-gray-100); }
.st-faq__question::-webkit-details-marker { display: none; }
.st-faq__question::after {
    content: "+";
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: 400;
    color: var(--st-green-500);
    transition: transform var(--st-transition);
}
.st-faq__item[open] .st-faq__question::after {
    content: "\2212";
}
.st-faq__answer {
    padding: 0 20px 16px;
    font-size: 14px;
    line-height: 1.6;
    color: var(--st-gray-700);
}
.st-faq__answer p { margin: 0; }

/* ═══════════════════════════════════════════════════════════════
   INTERLINKING BLOCKS
   ═══════════════════════════════════════════════════════════════ */
/* Глоссарий ссылки */
.st-glossary-link {
    color: inherit;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-color: var(--st-gray-400);
    text-underline-offset: 3px;
    cursor: help;
    transition: text-decoration-color 0.15s;
}
.st-glossary-link:hover,
.st-glossary-link--active {
    text-decoration-color: var(--st-accent);
    text-decoration-style: solid;
}

/* Glossary tooltip */
.st-glossary-tooltip {
    position: absolute;
    z-index: 99990;
    max-width: 320px;
    min-width: 200px;
    padding: 12px 16px 10px;
    background: var(--st-white);
    border-radius: 8px;
    border: 1px solid var(--st-gray-200);
    box-shadow: var(--st-shadow-md);
    pointer-events: auto;
}
.st-glossary-tooltip__text {
    display: block;
    font-size: 13px;
    line-height: 1.55;
    color: var(--st-gray-800);
    margin-bottom: 8px;
}
.st-glossary-tooltip__more {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--st-accent);
    text-decoration: none;
}
.st-glossary-tooltip__more:hover {
    text-decoration: underline;
    color: var(--st-accent-hover);
}
/* Arrow — above (default) */
.st-glossary-tooltip--above::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 12px;
    background: var(--st-white);
    border-right: 1px solid var(--st-gray-200);
    border-bottom: 1px solid var(--st-gray-200);
    transform: translateX(-50%) rotate(45deg);
}
/* Arrow — below */
.st-glossary-tooltip--below::after {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    width: 12px;
    height: 12px;
    background: var(--st-white);
    border-left: 1px solid var(--st-gray-200);
    border-top: 1px solid var(--st-gray-200);
    transform: translateX(-50%) rotate(45deg);
}
@media (max-width: 480px) {
    .st-glossary-tooltip {
        max-width: calc(100vw - 32px);
        left: 16px !important;
        right: 16px;
    }
}

/* ГОСТ ссылки */
.st-gost-link {
    color: var(--st-accent);
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 2px;
    white-space: nowrap;
}
.st-gost-link:hover { text-decoration-style: solid; }
.st-gost-link::after { content: ' ↗'; font-size: 0.75em; opacity: 0.6; }

/* Читайте также (блог) */
.st-related-posts { margin: 48px 0 24px; padding-top: 32px; border-top: 1px solid var(--st-border); }
.st-related-posts h2 { font-size: 22px; margin-bottom: 20px; }
.st-related-posts__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.st-related-posts__card {
    display: flex; flex-direction: column;
    text-decoration: none; color: inherit;
    border: 1px solid var(--st-border); border-radius: var(--st-radius-md);
    overflow: hidden; transition: border-color var(--st-transition), box-shadow var(--st-transition);
}
.st-related-posts__card:hover { border-color: var(--st-accent); box-shadow: var(--st-shadow-md); }
.st-related-posts__thumb img { width: 100%; height: 160px; object-fit: cover; }
.st-related-posts__cat {
    display: inline-block; margin: 12px 12px 0;
    font-size: 11px; font-weight: 600; text-transform: uppercase;
    color: var(--st-accent); letter-spacing: 0.5px;
}
.st-related-posts__title { padding: 8px 12px 12px; font-weight: 600; font-size: 15px; color: var(--st-text); }

/* Полезные статьи (продукты) */
.st-edu-content { margin: 40px 0 20px; padding: 24px; background: var(--st-bg-accent); border-radius: var(--st-radius-md); border-left: 4px solid var(--st-accent); }
.st-edu-content h2 { font-size: 18px; margin: 0 0 12px; }
.st-edu-content__list { margin: 0; padding: 0 0 0 20px; }
.st-edu-content__list li { margin-bottom: 8px; font-size: 14px; }
.st-edu-content__list a { color: var(--st-accent); text-decoration: underline; text-underline-offset: 2px; }
.st-edu-content__list a:hover { color: var(--st-accent-hover); }

/* Статьи по теме (категории каталога) */
.st-cat-articles { margin: 40px 0 20px; padding-top: 30px; border-top: 1px solid var(--st-border); }
.st-cat-articles h2 { font-size: 22px; margin-bottom: 16px; }
.st-cat-articles__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.st-cat-articles__card {
    display: flex; flex-direction: column;
    padding: 20px; text-decoration: none; color: inherit;
    border: 1px solid var(--st-border); border-radius: var(--st-radius-md);
    transition: border-color var(--st-transition), box-shadow var(--st-transition);
}
.st-cat-articles__card:hover { border-color: var(--st-accent); box-shadow: var(--st-shadow-md); }
.st-cat-articles__title { font-weight: 600; font-size: 15px; color: var(--st-text); margin-bottom: 8px; }
.st-cat-articles__excerpt { font-size: 13px; color: var(--st-text-secondary); line-height: 1.5; margin-bottom: 12px; }
.st-cat-articles__link { font-size: 13px; color: var(--st-accent); font-weight: 500; }

/* Перекрёстные ссылки (услуги) */
.st-service-links { margin: 24px 0; padding: 20px; background: var(--st-gray-100); border-radius: var(--st-radius-md); }
.st-service-links h3 { font-size: 16px; margin: 0 0 12px; }
.st-service-links ul { margin: 0; padding: 0 0 0 20px; }
.st-service-links li { margin-bottom: 6px; font-size: 14px; }
.st-service-links a { color: var(--st-accent); text-decoration: underline; text-underline-offset: 2px; }
.st-service-links a:hover { color: var(--st-accent-hover); }

/* Кейсы на продуктовых страницах */
.st-product-cases { margin: 32px 0 16px; padding: 24px; background: #FFFDE7; border-radius: var(--st-radius-md); border-left: 4px solid #F9A825; }
.st-product-cases h2 { font-size: 18px; margin: 0 0 12px; }
.st-product-cases ul { margin: 0; padding: 0 0 0 20px; }
.st-product-cases li { margin-bottom: 8px; font-size: 14px; }
.st-product-cases a { color: var(--st-accent); text-decoration: none; font-weight: 500; }
.st-product-cases a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════
   CATALOG FILTER (migrated from st-ajax-filter.php)
   ═══════════════════════════════════════════════════════════════ */
/* Styles handled above in section 5: Product Cards / .st-similar */

/* ═══════════════════════════════════════════════════════════════
   GLOBAL LAYOUT & UTILITY
   ═══════════════════════════════════════════════════════════════ */
html {
    overflow-x: hidden;
}
body {
    overflow-x: hidden;
}
.site-container,
#wrapper {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Kill scrollbar on header/nav */
#masthead,
#masthead * {
    overflow-x: visible;
}
.header-menu-container,
.primary-menu-container {
    overflow: visible !important;
}
.primary-menu-container > ul {
    overflow: visible !important;
    flex-wrap: nowrap;
}

.entry-content {
    max-width: 100%;
}

/* Better list styling */
.entry-content ul:not([class]),
.entry-content ol:not([class]) {
    padding-left: 24px;
    margin-bottom: 1.2em;
}
.entry-content li {
    margin-bottom: 0.4em;
    color: var(--st-gray-700);
}

/* Separator style */
.wp-block-separator {
    border-top: 2px solid var(--st-border);
    margin: var(--st-space-2xl) 0;
}

/* ═══════════════════════════════════════════════════════════════
   12. FEATURED IMAGE — float layout with text wrap
   ═══════════════════════════════════════════════════════════════ */

.st-featured-image {
    float: right;
    max-width: 340px;
    margin: 0 0 var(--st-space-lg) var(--st-space-xl);
    border-radius: var(--st-radius-md);
    overflow: hidden;
    box-shadow: var(--st-shadow-sm);
    background: var(--st-green-50);
    border: 1px solid var(--st-green-100);
}
.st-featured-image a {
    display: block;
    cursor: zoom-in;
    position: relative;
}
.st-featured-image a::after {
    content: "\1F50D";
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-size: 14px;
    padding: 4px 8px;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}
.st-featured-image a:hover::after {
    opacity: 1;
}
.st-featured-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--st-radius-md);
    transition: transform 0.2s ease;
}
.st-featured-image a:hover img {
    transform: scale(1.02);
}

@media (max-width: 768px) {
    .st-featured-image {
        float: none;
        max-width: 100%;
        margin: 0 0 var(--st-space-md) 0;
    }
}

/* ═══════════════════════════════════════════════════════════════
   13. SIDEBAR — Enterprise B2B sidebar
   ═══════════════════════════════════════════════════════════════ */
.primary-sidebar .widget,
#secondary .widget {
    background: #fff;
    border-radius: var(--st-radius-md);
    padding: var(--st-space-lg);
    margin-bottom: var(--st-space-lg);
    box-shadow: var(--st-shadow-sm);
    border: 1px solid var(--st-green-100);
}
.primary-sidebar .widget-title,
#secondary .widget-title,
.primary-sidebar .wp-block-heading,
#secondary .wp-block-heading {
    font-family: 'Montserrat', var(--st-font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--st-green-900);
    margin-bottom: var(--st-space-md);
    padding-bottom: var(--st-space-sm);
    border-bottom: 2px solid var(--st-green-400);
}
.primary-sidebar ul,
#secondary ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.primary-sidebar ul li,
#secondary ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--st-green-50);
    font-size: 14px;
}
.primary-sidebar ul li:last-child,
#secondary ul li:last-child {
    border-bottom: none;
}
.primary-sidebar ul li a,
#secondary ul li a {
    color: var(--st-green-700);
    text-decoration: none;
    transition: color 0.2s ease;
}
.primary-sidebar ul li a:hover,
#secondary ul li a:hover {
    color: var(--st-green-900);
}

/* Sidebar CTA widget */
.st-sidebar-cta {
    background: linear-gradient(135deg, var(--st-green-700), var(--st-green-900)) !important;
    color: #fff;
    text-align: center;
    border: none !important;
}
.st-sidebar-cta .widget-title,
.st-sidebar-cta h3 {
    color: #fff !important;
    border-bottom-color: rgba(255,255,255,0.3) !important;
    font-size: 18px;
}
.st-sidebar-cta p {
    color: rgba(255,255,255,0.9);
    font-size: 14px;
    margin-bottom: var(--st-space-md);
}
.st-sidebar-cta__btn {
    display: inline-block;
    background: #fff;
    color: var(--st-green-700);
    font-weight: 700;
    font-size: 14px;
    font-family: inherit;
    padding: 10px 24px;
    border: 2px solid var(--st-green-200);
    border-radius: var(--st-radius-sm);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}
.st-sidebar-cta__btn:hover {
    background: var(--st-green-700);
    color: #fff;
    transform: translateY(-1px);
}

/* Sidebar links list */
.st-sidebar-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.st-sidebar-links li {
    padding: 8px 0;
    border-bottom: 1px solid var(--st-green-50);
    font-size: 14px;
    line-height: 1.4;
}
.st-sidebar-links li:last-child {
    border-bottom: none;
}
.st-sidebar-links li a {
    color: var(--st-green-700);
    text-decoration: none;
    transition: color 0.2s ease;
}
.st-sidebar-links li a:hover {
    color: var(--st-green-900);
}

/* Sidebar navigation — active item */
.st-sidebar-nav li.current {
    background: var(--st-green-50);
    margin: 0 calc(-1 * var(--st-space-lg));
    padding: 8px var(--st-space-lg);
    border-left: 3px solid var(--st-green-700);
}
.st-sidebar-nav li.current a {
    color: var(--st-green-900);
    font-weight: 600;
}

/* Sidebar specs (product page) */
.st-specs-list {
    margin: 0;
}
.st-specs-list dt {
    font-size: 12px;
    font-weight: 600;
    color: var(--st-gray-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 10px;
}
.st-specs-list dt:first-child {
    margin-top: 0;
}
.st-specs-list dd {
    margin: 2px 0 0 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--st-green-900);
    padding-bottom: 8px;
    border-bottom: 1px solid var(--st-green-50);
}
.st-specs-list dd:last-child {
    border-bottom: none;
}

/* Sidebar category stat */
.st-category-stat {
    text-align: center;
    padding: var(--st-space-sm) 0;
}
.st-category-stat__number {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: var(--st-green-700);
    font-family: 'Montserrat', var(--st-font-heading);
    line-height: 1;
}
.st-category-stat__label {
    display: block;
    font-size: 14px;
    color: var(--st-gray-600);
    margin-top: 4px;
}

/* Sidebar TOC (blog table of contents) */
.st-toc-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    counter-reset: toc;
}
.st-toc-list li {
    counter-increment: toc;
    padding: 6px 0;
    font-size: 13px;
    line-height: 1.4;
    border-bottom: 1px solid var(--st-green-50);
}
.st-toc-list li:last-child {
    border-bottom: none;
}
.st-toc-list li::before {
    content: counter(toc) ". ";
    font-weight: 600;
    color: var(--st-green-700);
}
.st-toc-list li.st-toc-sub {
    padding-left: 16px;
    font-size: 12px;
}
.st-toc-list li a {
    color: var(--st-gray-700);
    text-decoration: none;
}
.st-toc-list li a:hover {
    color: var(--st-green-700);
}

/* Sidebar contacts */
.st-sidebar-contacts p {
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.5;
}
.st-sidebar-contacts a {
    color: var(--st-green-700);
    text-decoration: none;
}
.st-sidebar-contacts a:hover {
    color: var(--st-green-900);
}

/* Sidebar calculator widget */
.st-calc-widget {
    background: var(--st-green-50) !important;
    border-color: var(--st-green-200) !important;
}
.st-calc-widget .widget-title {
    color: var(--st-green-900);
}
.st-calc-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}
.st-calc-links li {
    padding: 10px 0;
    border-bottom: 1px solid var(--st-green-100);
}
.st-calc-links li:last-child {
    border-bottom: none;
}
.st-calc-links li a {
    display: block;
    color: var(--st-green-800);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s ease;
}
.st-calc-links li a::before {
    content: "\25B6";
    display: inline-block;
    font-size: 9px;
    margin-right: 6px;
    color: var(--st-green-600);
    vertical-align: 1px;
}
.st-calc-links li a:hover {
    color: var(--st-green-900);
}
.st-calc-links__desc {
    display: block;
    font-size: 12px;
    color: var(--st-gray-600);
    margin-top: 2px;
    padding-left: 17px;
}

/* Inline calculator CTA (in content) */
.st-calc-cta {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--st-green-50);
    border: 1px solid var(--st-green-200);
    border-left: 4px solid var(--st-green-700);
    padding: 16px 20px;
    border-radius: 8px;
    margin: 28px 0;
}
.st-calc-cta p { margin: 0; padding: 0; }
.st-calc-cta__icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: var(--st-green-700);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    line-height: 1;
    color: #fff;
}
.st-calc-cta__icon::before {
    content: "\1F5A9"; /* calculator glyph */
}
.st-calc-cta__text {
    margin: 0;
    padding: 0;
    flex: 1;
    font-size: 14px;
    line-height: 1.4;
    color: var(--st-green-900);
    font-weight: 500;
    align-self: center;
}
.st-calc-cta__btn {
    display: inline-block;
    flex-shrink: 0;
    padding: 8px 20px;
    background: #fff;
    color: var(--st-green-700);
    border: 2px solid var(--st-green-700);
    font-size: 13px;
    font-weight: 700;
    font-family: 'Montserrat', var(--st-font-heading);
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s, transform 0.15s, color 0.15s;
}
.st-calc-cta__btn:hover {
    background: var(--st-green-700);
    color: #fff;
    transform: translateY(-1px);
}

@media (max-width: 600px) {
    .st-calc-cta {
        flex-direction: column;
        text-align: center;
        gap: 10px;
        padding: 14px 16px;
    }
    .st-calc-cta__icon { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   14. MODAL FORMS & CTA — enterprise modal system
   ═══════════════════════════════════════════════════════════════ */

/* ---- Overlay ---- */
.st-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.st-modal-overlay.st-modal--open {
    display: flex;
}

/* ---- Modal box ---- */
.st-modal {
    background: var(--st-white);
    border-radius: 12px;
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
    animation: stModalIn .2s ease;
}
@keyframes stModalIn {
    from { opacity: 0; transform: translateY(16px) scale(.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---- Close button ---- */
.st-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--st-gray-400);
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background .15s, color .15s;
}
.st-modal__close:hover {
    background: var(--st-gray-100);
    color: var(--st-gray-700);
}

/* ---- Header ---- */
.st-modal__header {
    background: var(--st-green-700);
    padding: 20px 28px 16px;
    border-radius: 12px 12px 0 0;
}
.st-modal__title {
    font-family: 'Montserrat', var(--st-font-heading);
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
}
.st-modal__desc {
    font-size: 13px;
    color: rgba(255,255,255,.8);
    margin: 0;
}

/* ---- Context bar ---- */
.st-modal__context {
    background: var(--st-green-50);
    border-bottom: 1px solid var(--st-green-100);
    padding: 8px 28px;
    font-size: 13px;
    font-weight: 600;
    color: var(--st-green-800);
}

/* ---- Fields grid ---- */
.st-modal__fields {
    display: flex;
    flex-wrap: wrap;
    gap: 0 14px;
    padding: 20px 28px 8px;
}

/* ---- Field ---- */
.st-field {
    width: 100%;
    margin-bottom: 14px;
}
.st-field--half {
    width: calc(50% - 7px);
    flex: 0 0 calc(50% - 7px);
}
.st-field__label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--st-gray-600);
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 4px;
}
.st-req { color: #dc2626; margin-left: 2px; }
.st-field__input {
    display: block;
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--st-gray-300);
    border-radius: 6px;
    font-size: 14px;
    color: var(--st-gray-900);
    background: var(--st-white);
    transition: border-color .15s, box-shadow .15s;
    box-sizing: border-box;
    font-family: inherit;
}
.st-field__input:focus {
    border-color: var(--st-green-600);
    box-shadow: 0 0 0 3px rgba(45,95,45,.08);
    outline: none;
}
.st-field__input::placeholder {
    color: var(--st-gray-400);
    font-size: 13px;
}
.st-field__input.st-field--error {
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220,38,38,.08);
}
.st-field__textarea {
    min-height: 64px;
    resize: vertical;
}
.st-field__file {
    padding: 8px;
    cursor: pointer;
    background: var(--st-gray-100, #f7fafc);
}
.st-field__file::file-selector-button {
    padding: 6px 14px;
    border: 1px solid var(--st-gray-300, #cbd5e0);
    border-radius: 4px;
    background: var(--st-white, #fff);
    color: var(--st-gray-900, #1a202c);
    font-size: 13px;
    font-family: inherit;
    cursor: pointer;
    margin-right: 10px;
    transition: background .15s;
}
.st-field__file::file-selector-button:hover {
    background: var(--st-green-50, #f3f5f8);
}
.st-field__hint {
    display: block;
    margin-top: 4px;
    font-size: 11px;
    color: var(--st-gray-500, #718096);
}
.st-field__select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M5 6L0 0h10z' fill='%234a5568'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 30px;
    cursor: pointer;
}

/* Phone field highlight */
.st-field[data-field="phone"] .st-field__input {
    border-color: var(--st-green-300);
    background: #fafff9;
}
.st-field[data-field="phone"] .st-field__input:focus {
    border-color: var(--st-green-600);
    background: var(--st-white);
}

/* ---- Checkbox chips ---- */
.st-field__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.st-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    background: var(--st-gray-50);
    border: 1px solid var(--st-gray-200);
    border-radius: 20px;
    cursor: pointer;
    transition: all .15s;
    font-size: 13px;
    white-space: nowrap;
}
.st-chip:hover {
    background: var(--st-green-50);
    border-color: var(--st-green-300);
}
.st-chip:has(input:checked) {
    background: var(--st-green-50);
    border-color: var(--st-green-700);
    color: var(--st-green-900);
    font-weight: 600;
}
.st-chip input[type="checkbox"] {
    accent-color: var(--st-green-700);
    width: 14px;
    height: 14px;
    margin: 0;
}
.st-chip span { pointer-events: none; }

/* ---- Footer / submit ---- */
.st-modal__footer {
    padding: 8px 28px 20px;
}
.st-modal__submit {
    display: block;
    width: 100%;
    padding: 12px;
    background: var(--st-green-700);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-family: 'Montserrat', var(--st-font-heading);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, box-shadow .15s;
    text-transform: uppercase;
    letter-spacing: .3px;
}
.st-modal__submit:hover {
    background: var(--st-green-800);
    box-shadow: 0 2px 8px rgba(45,95,45,.25);
}
.st-modal__submit:disabled {
    opacity: .6;
    cursor: not-allowed;
}
.st-modal__consent {
    font-size: 12px;
    color: var(--st-gray-600);
    text-align: left;
    margin: 8px 0 0;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    cursor: pointer;
}
.st-modal__consent input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: var(--st-green-700);
}
.st-modal__consent a { color: var(--st-green-700); }
.st-modal__trust {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 10px;
    font-size: 11px;
    color: var(--st-gray-500);
}

/* ---- Result states ---- */
.st-modal__result {
    padding: 40px 28px;
    text-align: center;
}
.st-modal__result--success { color: var(--st-green-800); }
.st-modal__result--error { color: #dc2626; }
.st-result-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    background: var(--st-green-50);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--st-green-700);
}
.st-modal__result--error .st-result-icon {
    background: #fef2f2;
    color: #dc2626;
}

/* ---- Interlinks section (contextual cross-links) ---- */
.st-interlinks {
    margin-top: 56px;
    padding: 40px 0 0;
    border-top: none;
}
.st-interlinks > .wp-block-group__inner-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.st-interlinks h2 {
    grid-column: 1 / -1;
    font-family: 'Montserrat', var(--st-font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--st-green-900);
    margin: 0 0 4px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--st-green-700);
    display: inline-block;
}
/* Card wrapper for each interlink group */
.st-interlinks .wp-block-group {
    background: var(--st-white, #fff);
    border: 1px solid var(--st-gray-200);
    border-radius: 12px;
    padding: 24px 28px;
    transition: box-shadow .2s, border-color .2s;
}
.st-interlinks .wp-block-group:hover {
    border-color: var(--st-green-600);
    box-shadow: 0 4px 20px rgba(59, 80, 104, .08);
}
.st-interlinks h3 {
    font-family: 'Montserrat', var(--st-font-heading);
    font-size: 16px;
    font-weight: 700;
    color: var(--st-green-800);
    margin: 0 0 12px;
    padding-left: 14px;
    border-left: 3px solid var(--st-amber, #e2a000);
}
.st-interlinks ul {
    margin: 0 0 12px;
    padding: 0;
    list-style: none;
}
.st-interlinks li {
    margin-bottom: 0;
    line-height: 1;
}
.st-interlinks li a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    color: var(--st-green-700);
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 8px;
    transition: background .15s, color .15s;
}
.st-interlinks li a::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--st-green-600);
    flex-shrink: 0;
    opacity: .5;
    transition: opacity .15s, transform .15s;
}
.st-interlinks li a:hover {
    background: var(--st-green-50);
    color: var(--st-green-800);
}
.st-interlinks li a:hover::before {
    opacity: 1;
    transform: scale(1.3);
}
/* Inline CTA inside interlinks — full-width card */
.st-interlinks .st-inline-cta {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, var(--st-green-700), var(--st-green-800));
    border: none;
    border-radius: 12px;
    padding: 28px 32px;
    display: block;
    color: #fff;
}
.st-interlinks .st-inline-cta:hover {
    border-color: transparent;
    box-shadow: 0 6px 24px rgba(45, 58, 78, .2);
}
.st-interlinks .st-inline-cta h3 {
    color: #fff;
    border-left-color: var(--st-amber, #e2a000);
    font-size: 18px;
    margin-bottom: 8px;
}
.st-interlinks .st-inline-cta p {
    margin: 6px 0;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .9);
}
.st-interlinks .st-inline-cta a {
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, .4);
    transition: border-color .15s;
}
.st-interlinks .st-inline-cta a:hover {
    border-bottom-color: #fff;
    background: none;
}
/* Single-column on narrow containers (e.g. cases, blog posts) */
.single-case .st-interlinks > .wp-block-group__inner-container,
.single-post .st-interlinks > .wp-block-group__inner-container {
    grid-template-columns: 1fr;
}
@media (max-width: 768px) {
    .st-interlinks > .wp-block-group__inner-container {
        grid-template-columns: 1fr;
    }
    .st-interlinks .wp-block-group { padding: 20px; }
    .st-interlinks .st-inline-cta { padding: 24px 20px; }
}

/* ---- Inline CTA block (replaces WPForms in content) ---- */
.st-inline-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: linear-gradient(135deg, var(--st-green-700), var(--st-green-800));
    padding: 20px 28px;
    border-radius: 10px;
    margin: 32px 0;
}
.st-inline-cta__text strong {
    display: block;
    color: #fff;
    font-family: 'Montserrat', var(--st-font-heading);
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 2px;
}
.st-inline-cta__text span {
    color: rgba(255,255,255,.85);
    font-size: 13px;
}

/* ---- CTA Button (used everywhere) ---- */
.st-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 24px;
    background: #fff;
    color: var(--st-green-800);
    border: none;
    border-radius: 6px;
    font-family: 'Montserrat', var(--st-font-heading);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s, transform .15s, box-shadow .15s;
    white-space: nowrap;
    text-decoration: none;
}
.st-cta-btn:hover {
    background: var(--st-green-700);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

/* ---- Inline buttons (tables, cards) ---- */
.st-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 20px; background: var(--st-amber, #e2a000); color: #1e293b; border: none; border-radius: 4px; font-family: 'Montserrat', var(--st-font-heading); font-size: 14px; font-weight: 700; cursor: pointer; transition: background .15s, transform .15s; white-space: nowrap; text-decoration: none; }
.st-btn:hover { background: var(--st-amber-hover, #c98e00); transform: translateY(-1px); color: #1e293b; text-decoration: none; }
.st-btn--sm { padding: 5px 14px; font-size: 12px; }
.st-btn--cta { background: var(--st-amber, #e2a000); color: #1e293b; }
.st-btn--cta:hover { background: var(--st-amber-hover, #c98e00); }
.st-btn--accent { background: var(--st-green-700); color: #fff; }
.st-btn--accent:hover { background: var(--st-green-800); color: #fff; }

/* ---- Mobile modal ---- */
@media (max-width: 600px) {
    .st-modal {
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
    }
    .st-modal__header { padding: 16px 20px 12px; border-radius: 0; }
    .st-modal__fields { padding: 14px 20px 4px; }
    .st-modal__footer { padding: 4px 20px 16px; }
    .st-modal__context { padding: 6px 20px; }
    .st-field--half { width: 100%; flex: 0 0 100%; }
    .st-modal__title { font-size: 17px; }
    .st-inline-cta {
        flex-direction: column;
        text-align: center;
        padding: 16px 20px;
    }
    .st-inline-cta__text strong { font-size: 15px; }
}

/* ═══════════════════════════════════════════════════════════════
   15. RESPONSIVE — 375px, 768px, 1024px
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .st-trust-bar {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--st-space-md);
    }
    .st-steps {
        grid-template-columns: repeat(2, 1fr);
    }
    .st-similar__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .st-hero {
        padding: var(--st-space-xl) var(--st-space-md);
    }
    .st-hero__content {
        grid-template-columns: 1fr;
        gap: var(--st-space-lg);
    }
    .st-hero__stats {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--st-space-sm);
    }
    .st-hero__stat {
        padding: var(--st-space-md) var(--st-space-sm);
    }
    .st-hero__stat-number {
        font-size: 22px;
    }
    .st-hero__stat-label {
        font-size: 11px;
    }
    .st-hero__title {
        font-size: 24px;
    }
    .st-trust-bar {
        grid-template-columns: repeat(2, 1fr);
        padding: var(--st-space-lg) var(--st-space-md);
    }
    .st-trust-bar__number {
        font-size: 32px;
    }
    .st-similar__grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .st-related-posts__grid {
        grid-template-columns: 1fr;
    }
    .st-cat-articles__grid {
        grid-template-columns: 1fr;
    }
    .st-steps {
        grid-template-columns: 1fr;
    }
    .st-timeline {
        padding-left: 30px;
    }

    /* Table responsive */
    .entry-content table,
    .wp-block-table table {
        font-size: 13px;
    }
    .entry-content table thead th,
    .wp-block-table table thead th {
        padding: 10px 12px;
    }
    .entry-content table tbody td,
    .wp-block-table table tbody td {
        padding: 9px 12px;
    }
}

@media (max-width: 480px) {
    .st-similar__grid {
        grid-template-columns: 1fr;
    }
    .st-trust-bar {
        grid-template-columns: 1fr;
    }
    .st-cta {
        padding: var(--st-space-xl) var(--st-space-md);
    }
    .st-hero__btn {
        padding: 10px 22px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .st-hero__stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 375px) {
    body {
        font-size: 15px;
    }
    h1, .entry-title {
        font-size: 24px;
    }
    h2 {
        font-size: 20px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   EMKOST: Section wrapper
   ═══════════════════════════════════════════════════════════════ */
.st-section {
    max-width: var(--st-max-width);
    margin: 0 auto;
    padding: var(--st-space-2xl) var(--st-space-lg);
}
.st-section--gray {
    background: var(--st-gray-100);
    max-width: none;
}
.st-section--gray > * {
    max-width: var(--st-max-width);
    margin-left: auto;
    margin-right: auto;
}
.st-section__title {
    text-align: center;
    margin-top: 0;
    margin-bottom: var(--st-space-sm);
    font-size: clamp(20px, 2.5vw, 26px);
}
.st-section__subtitle {
    text-align: center;
    color: var(--st-gray-600);
    font-size: 15px;
    margin-bottom: var(--st-space-xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ═══════════════════════════════════════════════════════════════
   EMKOST: Segment Cards (homepage "Какую задачу решаете?")
   ═══════════════════════════════════════════════════════════════ */
.st-segments {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--st-space-lg);
    max-width: var(--st-max-width);
    margin: var(--st-space-xl) auto var(--st-space-3xl);
    padding: 0 var(--st-space-lg);
}
.st-segment-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--st-space-xl) var(--st-space-lg);
    background: var(--st-white);
    border: 2px solid var(--st-border);
    border-radius: var(--st-radius-lg);
    text-decoration: none;
    color: var(--st-text);
    transition: all var(--st-transition);
}
.st-segment-card:hover {
    border-color: var(--st-green-700);
    box-shadow: var(--st-shadow-card-hover);
    transform: translateY(-2px);
}
.st-segment-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--st-green-700);
    border-radius: var(--st-radius-md);
    margin-bottom: var(--st-space-md);
    color: #fff;
    transition: background var(--st-transition), transform var(--st-transition);
}
.st-segment-card__icon svg {
    width: 32px;
    height: 32px;
    stroke-width: 1.6;
}
.st-segment-card:hover .st-segment-card__icon {
    background: var(--st-green-800);
    transform: scale(1.08);
}
.st-segment-card__title {
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 var(--st-space-sm);
    color: var(--st-gray-900);
}
.st-segment-card__desc {
    font-size: 13px;
    color: var(--st-gray-600);
    margin: 0;
    line-height: 1.5;
}

@media (max-width: 767px) {
    .st-segments {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--st-space-md);
    }
}
@media (max-width: 480px) {
    .st-segments {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════════
   EMKOST: Product Grid
   ═══════════════════════════════════════════════════════════════ */
.st-products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--st-space-lg);
    max-width: var(--st-max-width);
}
.st-products-grid--2col {
    grid-template-columns: repeat(2, 1fr);
}
.st-product-card__count {
    display: block;
    margin-top: auto;
    padding-top: var(--st-space-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--st-green-700);
}
.st-product-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: var(--st-space-lg);
    background: var(--st-white);
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius-lg);
    text-decoration: none;
    color: var(--st-text);
    transition: all var(--st-transition);
}
.st-product-card:hover {
    border-color: var(--st-green-700);
    box-shadow: var(--st-shadow-card-hover);
    transform: translateY(-2px);
}
.st-product-card__icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--st-green-700);
    border-radius: var(--st-radius-md);
    margin-bottom: var(--st-space-md);
    color: #fff;
    transition: background var(--st-transition), transform var(--st-transition);
}
.st-product-card__icon svg {
    width: 30px;
    height: 30px;
    stroke-width: 1.6;
}
.st-product-card:hover .st-product-card__icon {
    background: var(--st-green-800);
    transform: scale(1.08);
}
.st-product-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 var(--st-space-xs);
    color: var(--st-gray-900);
}
.st-product-card p {
    font-size: 13px;
    color: var(--st-gray-600);
    margin: 0;
    line-height: 1.5;
}
.st-product-card__count {
    display: inline-block;
    margin-top: auto;
    padding-top: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--st-accent);
}
@media (max-width: 767px) {
    .st-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--st-space-md);
    }
}
@media (max-width: 480px) {
    .st-products-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════════
   EMKOST: Advantages
   ═══════════════════════════════════════════════════════════════ */
.st-advantages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--st-space-xl);
}
.st-advantage {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.st-advantage__icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--st-green-700);
    border-radius: var(--st-radius-md);
    margin-bottom: var(--st-space-md);
    color: #fff;
    transition: transform var(--st-transition);
}
.st-advantage__icon svg {
    width: 28px;
    height: 28px;
    stroke-width: 1.6;
}
.st-advantage:hover .st-advantage__icon {
    transform: scale(1.08);
}
.st-advantage__title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 var(--st-space-sm);
    color: var(--st-gray-900);
}
.st-advantage__text {
    font-size: 14px;
    color: var(--st-gray-600);
    line-height: 1.6;
    margin: 0;
}
@media (max-width: 767px) {
    .st-advantages {
        grid-template-columns: 1fr;
        gap: var(--st-space-lg);
    }
}

/* ═══════════════════════════════════════════════════════════════
   EMKOST: CTA outline button
   ═══════════════════════════════════════════════════════════════ */
.st-cta__btn--outline {
    background: transparent;
    color: var(--st-green-700);
    border: 1px solid var(--st-green-200);
}
.st-cta__btn--outline:hover {
    border-color: var(--st-green-700);
    background: var(--st-white);
    color: var(--st-green-800);
}

/* ═══════════════════════════════════════════════════════════════
   EMKOST: Amber CTA accent (override green CTA button)
   ═══════════════════════════════════════════════════════════════ */
/* Amber overrides handled inline above — no !important needed */

/* ═══════════════════════════════════════════════════════════════
   CUSTOM TOP BAR
   ═══════════════════════════════════════════════════════════════ */
.st-topbar {
    background: var(--st-green-900);
    padding: 0 var(--st-space-lg);
}
.st-topbar__inner {
    max-width: var(--st-max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 36px;
}
.st-topbar__left {
    display: flex;
    gap: var(--st-space-lg);
}
.st-topbar__link,
.st-topbar__text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,0.8);
    font-size: 13px;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    transition: color 0.15s ease;
}
.st-topbar__link:hover {
    color: #fff;
}
.st-topbar__link svg,
.st-topbar__text svg {
    opacity: 0.7;
}
@media (max-width: 767px) {
    .st-topbar__right { display: none; }
    .st-topbar__left { gap: var(--st-space-md); }
    .st-topbar__link { font-size: 12px; }
}

/* ═══════════════════════════════════════════════════════════════
   CUSTOM FOOTER
   ═══════════════════════════════════════════════════════════════ */
.st-footer {
    background: var(--st-gray-900);
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    line-height: 1.6;
}
.st-footer__inner {
    max-width: var(--st-max-width);
    margin: 0 auto;
    padding: 0 var(--st-space-lg);
}
.st-footer__top {
    padding: var(--st-space-2xl) 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.st-footer__top .st-footer__inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: var(--st-space-2xl);
}
.st-footer__title {
    font-family: 'Montserrat', 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 var(--st-space-md);
}
.st-footer__col p {
    color: rgba(255,255,255,0.65);
    margin-bottom: var(--st-space-sm);
}
.st-footer__col a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.15s ease;
}
.st-footer__col a:hover {
    color: #fff;
}
.st-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.st-footer__links li {
    margin-bottom: 6px;
}
.st-footer__links a {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}
.st-footer__links a:hover {
    color: #fff;
}
.st-footer__bottom {
    padding: var(--st-space-lg) 0;
}
.st-footer__bottom p {
    font-size: 13px;
    color: rgba(255,255,255,0.4);
    margin: 0;
    text-align: center;
}
@media (max-width: 767px) {
    .st-footer__top .st-footer__inner {
        grid-template-columns: 1fr;
        gap: var(--st-space-xl);
    }
}

/* ═══════════════════════════════════════════════════════════════
   MEGA-MENU — multi-column dropdown for "Продукция"
   ═══════════════════════════════════════════════════════════════ */
/* Mega-menu: use CSS class menu-item-4 (Продукция) or custom class */
.header-navigation .header-menu-container ul > li.menu-item-has-children > ul.sub-menu {
    min-width: 220px;
}

/* Продукция mega-dropdown: 2 columns */
#menu-item-4 > ul.sub-menu {
    grid-template-columns: 1fr 1fr;
    min-width: 440px !important;
    padding: 12px !important;
    gap: 0;
}
#menu-item-4:hover > ul.sub-menu,
#menu-item-4.menu-item-active-sub > ul.sub-menu {
    display: grid !important;
}
#menu-item-4 > ul.sub-menu > li.menu-item {
    border-bottom: none !important;
}
#menu-item-4 > ul.sub-menu > li.menu-item > a {
    width: auto !important;
    padding: 8px 14px !important;
    border-radius: var(--st-radius-sm) !important;
    font-size: 13px !important;
}
#menu-item-4 > ul.sub-menu > li.menu-item > a:hover {
    background: var(--st-green-700) !important;
}

/* О компании dropdown */
#menu-item-5 > ul.sub-menu {
    min-width: 200px !important;
}

/* Калькулятор dropdown */
#menu-item-7 > ul.sub-menu {
    min-width: 240px !important;
}

/* ═══════════════════════════════════════════════════════════════
   STICKY HEADER — compact on scroll
   ═══════════════════════════════════════════════════════════════ */
#masthead {
    position: sticky;
    top: 0;
    z-index: 999;
    transition: box-shadow 0.2s ease;
}
#masthead.header-scrolled {
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}
#masthead.header-scrolled .site-main-header-inner-wrap {
    min-height: 60px;
    transition: min-height 0.2s ease;
}
#masthead.header-scrolled .site-branding .site-title {
    font-size: 17px !important;
}
#masthead.header-scrolled .site-top-header-wrap {
    max-height: 0;
    overflow: hidden;
    padding: 0;
    opacity: 0;
    transition: max-height 0.2s ease, opacity 0.2s ease;
}

/* ═══════════════════════════════════════════════════════════════
   COOKIE NOTICE
   ═══════════════════════════════════════════════════════════════ */
.st-cookie-notice {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99998;
    background: var(--st-gray-900);
    color: rgba(255,255,255,0.85);
    padding: var(--st-space-md) var(--st-space-lg);
    box-shadow: 0 -2px 12px rgba(0,0,0,0.15);
}
.st-cookie-notice__inner {
    max-width: var(--st-max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--st-space-lg);
}
.st-cookie-notice__text {
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
    color: rgba(255,255,255,0.75);
}
.st-cookie-notice__text a {
    color: rgba(255,255,255,0.9);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.st-cookie-notice__btn {
    flex-shrink: 0;
    padding: 8px 20px;
    background: var(--st-green-700);
    color: white;
    border: none;
    border-radius: var(--st-radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}
.st-cookie-notice__btn:hover {
    background: var(--st-green-600);
}
@media (max-width: 600px) {
    .st-cookie-notice__inner {
        flex-direction: column;
        text-align: center;
        gap: var(--st-space-md);
    }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE CTA BAR — fixed bottom bar on mobile
   ═══════════════════════════════════════════════════════════════ */
.st-mobile-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99997;
    background: var(--st-white);
    border-top: 1px solid var(--st-border);
    box-shadow: 0 -2px 8px rgba(0,0,0,0.08);
    padding: var(--st-space-sm) var(--st-space-md);
    transform: translateY(100%);
    transition: transform 0.2s ease;
}
.st-mobile-cta--visible {
    transform: translateY(0);
}
.st-mobile-cta__inner {
    display: flex;
    gap: var(--st-space-sm);
    max-width: 480px;
    margin: 0 auto;
}
.st-mobile-cta__btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px;
    border-radius: var(--st-radius-sm);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    border: none;
    cursor: pointer;
}
.st-mobile-cta__btn--call {
    background: var(--st-green-700);
    color: white;
}
.st-mobile-cta__btn--order {
    background: #e2a000;
    color: #1e293b;
}
@media (min-width: 769px) {
    .st-mobile-cta { display: none !important; }
}
@media (max-width: 768px) {
    .st-mobile-cta { display: block; }
    /* Add bottom padding to body so content isn't hidden behind mobile CTA */
    body { padding-bottom: 56px; }
}

/* ── Model card: floated product photo ── */
.single-product .alignright { float: right; margin: 0 0 1rem 1.5rem; max-width: 300px; }
.single-product .alignright img { border-radius: var(--st-radius-md); border: 1px solid var(--st-border); }
@media (max-width: 600px) {
    .single-product .alignright { float: none; margin: 0 auto 1rem; max-width: 100%; }
}
/* ── Breadcrumb-like back link ── */
.st-back-link { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 1rem; font-size: 14px; color: var(--st-green-600); text-decoration: none; }
.st-back-link:hover { color: var(--st-green-700); text-decoration: underline; }
.st-back-link::before { content: '\2190'; }

/* ═══════════════════════════════════════════════════════════════
   PRODUCT GALLERIES — compact thumbnails, lightbox
   ═══════════════════════════════════════════════════════════════ */
.wp-block-gallery {
    gap: 8px !important;
    margin-bottom: var(--st-space-xl);
}
.wp-block-gallery .wp-block-image {
    border-radius: var(--st-radius-md);
    overflow: hidden;
    border: 1px solid var(--st-border);
    transition: box-shadow 0.2s, transform 0.2s;
}
.wp-block-gallery .wp-block-image:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}
.wp-block-gallery .wp-block-image a {
    display: block;
    cursor: zoom-in;
}
.wp-block-gallery .wp-block-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 4/3;
}
/* Limit gallery photos on product cards — prevent stretching full width */
.single-product .wp-block-gallery.has-nested-images .wp-block-image {
    max-width: 280px !important;
    flex-grow: 0 !important;
    flex-basis: 280px !important;
}
/* Lightbox overlay */
.st-lightbox {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 99999;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
    animation: st-fadeIn 0.2s ease;
}
.st-lightbox img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 0 40px rgba(0,0,0,0.5);
}
.st-lightbox__close {
    position: absolute;
    top: 16px; right: 16px;
    width: 40px; height: 40px;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.st-lightbox__close:hover {
    background: rgba(255,255,255,0.3);
}
.st-lightbox__caption {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    text-align: center;
    max-width: 80%;
    padding: 8px 16px;
    background: rgba(0,0,0,0.5);
    border-radius: 4px;
}
.st-lightbox__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px; height: 44px;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50%;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.st-lightbox__nav:hover { background: rgba(255,255,255,0.3); }
.st-lightbox__nav--prev { left: 16px; }
.st-lightbox__nav--next { right: 16px; }
@keyframes st-fadeIn { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 767px) {
    .wp-block-gallery.columns-4 {
        columns: 2 !important;
    }
}

/* ═══════════════════════════════════════════════════════════════
   CALCULATOR PAGES
   ═══════════════════════════════════════════════════════════════ */

.st-calc-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 1rem 2rem;
}

/* Breadcrumbs */
.st-breadcrumbs {
    font-size: 0.85rem;
    color: var(--st-gray-600);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}
.st-breadcrumbs a {
    color: var(--st-accent);
    text-decoration: none;
}
.st-breadcrumbs a:hover {
    text-decoration: underline;
}

/* Intro */
.st-calc-intro {
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--st-gray-800);
    margin-bottom: 2rem;
}
.st-calc-intro p { margin-bottom: 0.75rem; }

/* ═══ Result Card ═══ */
.st-calc-result {
    background: var(--st-green-50);
    border: 1px solid var(--st-green-200);
    border-radius: 8px;
    padding: 1.5rem 2rem;
    margin-bottom: 2.5rem;
}
.st-calc-result__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}
.st-calc-result__header svg {
    color: var(--st-accent);
    flex-shrink: 0;
}
.st-calc-result__header h2 {
    font-size: 1.25rem;
    margin: 0;
}
.st-calc-result__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 2rem;
    margin-bottom: 1.5rem;
}
.st-calc-result__param {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.st-calc-result__label {
    font-size: 0.85rem;
    color: var(--st-gray-600);
}
.st-calc-result__value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--st-gray-900);
}
.st-calc-result__param--accent .st-calc-result__value {
    color: var(--st-accent);
}
.st-calc-result__param--accent .st-calc-result__value a {
    color: var(--st-accent);
    text-decoration: underline;
}
.st-calc-result__param--price .st-calc-result__value {
    font-size: 1.3rem;
    color: #b45309;
}
.st-calc-result__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ═══ Methodology steps ═══ */
.st-calc-method {
    margin-bottom: 2.5rem;
}
.st-calc-method h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

/* ═══ Comparison table ═══ */
.st-calc-table-wrap {
    margin-bottom: 2.5rem;
}
.st-calc-table-wrap h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}
.st-table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.st-calc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.st-calc-table th {
    background: var(--st-green-700);
    color: white;
    font-weight: 600;
    text-align: left;
    padding: 0.6rem 0.75rem;
    white-space: nowrap;
}
.st-calc-table td {
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid var(--st-gray-200);
}
.st-calc-table tr:hover td {
    background: var(--st-green-50);
}
.st-calc-table__current td {
    background: #fef3c7 !important;
    font-weight: 600;
}
.st-calc-table a {
    color: var(--st-accent);
    text-decoration: none;
}
.st-calc-table a:hover {
    text-decoration: underline;
}

/* ═══ Internal links grid ═══ */
.st-calc-links-section {
    margin-bottom: 2.5rem;
}
.st-calc-links-section h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}
.st-calc-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}
.st-calc-link-card {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.85rem 1rem;
    background: var(--st-gray-100);
    border: 1px solid var(--st-gray-200);
    border-radius: 6px;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}
.st-calc-link-card:hover {
    border-color: var(--st-accent);
    background: var(--st-green-50);
}
.st-calc-link-card--current {
    border-color: var(--st-accent);
    background: var(--st-green-50);
}
.st-calc-link-card__title {
    font-weight: 600;
    color: var(--st-gray-900);
    font-size: 0.95rem;
}
.st-calc-link-card__meta {
    font-size: 0.8rem;
    color: var(--st-gray-600);
}

/* ═══ Responsive ═══ */
@media (max-width: 767px) {
    .st-calc-result__grid {
        grid-template-columns: 1fr;
    }
    .st-calc-result {
        padding: 1rem 1.25rem;
    }
    .st-calc-links-grid {
        grid-template-columns: 1fr 1fr;
    }
    .st-calc-result__actions {
        flex-direction: column;
    }
    .st-calc-result__actions .st-btn {
        text-align: center;
    }
}
@media (max-width: 480px) {
    .st-calc-links-grid {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════════════
   CALCULATOR FORMS — interactive inputs
   ═══════════════════════════════════════════════════════════════ */

.st-calc-form-wrap {
    background: var(--st-white);
    border: 2px solid var(--st-accent);
    border-radius: var(--st-radius-lg);
    padding: 1.5rem 2rem;
    margin-bottom: 2.5rem;
}
.st-calc-form-wrap h2 {
    font-size: 1.2rem;
    margin: 0 0 1.25rem;
    color: var(--st-gray-900);
}
.st-calc-form__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.5rem;
}
.st-calc-form__field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}
.st-calc-form__field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--st-gray-800);
}
.st-calc-form__field input,
.st-calc-form__field select {
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--st-gray-200);
    border-radius: var(--st-radius-sm);
    font-size: 0.95rem;
    color: var(--st-gray-900);
    background: var(--st-gray-100);
    transition: border-color 0.15s;
    font-family: 'Inter', sans-serif;
}
.st-calc-form__field input:focus,
.st-calc-form__field select:focus {
    border-color: var(--st-accent);
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 80, 104, 0.1);
}
.st-calc-form__hint {
    font-size: 0.75rem;
    color: var(--st-gray-500);
    line-height: 1.3;
}
@media (max-width: 600px) {
    .st-calc-form__grid {
        grid-template-columns: 1fr;
    }
    .st-calc-form-wrap {
        padding: 1rem 1.25rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   PORTFOLIO — case cards grid + filters
   ═══════════════════════════════════════════════════════════════ */

/* Filters */
.st-portfolio__filters {
    margin-bottom: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}
.st-portfolio__filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.st-portfolio__filter-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--st-gray-600);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.st-portfolio__filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.st-portfolio__filter-btn {
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--st-gray-200);
    border-radius: 20px;
    background: var(--st-white);
    color: var(--st-gray-700);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
.st-portfolio__filter-btn:hover {
    border-color: var(--st-accent);
    color: var(--st-accent);
}
.st-portfolio__filter-btn--active {
    background: var(--st-accent);
    border-color: var(--st-accent);
    color: var(--st-white);
}
.st-portfolio__count {
    font-size: 0.75rem;
    opacity: 0.7;
}
.st-portfolio__filter-select {
    padding: 0.45rem 0.75rem;
    border: 1px solid var(--st-gray-200);
    border-radius: var(--st-radius-sm);
    font-size: 0.85rem;
    color: var(--st-gray-700);
    background: var(--st-white);
    cursor: pointer;
}
.st-portfolio__results-count {
    margin-left: auto;
    font-size: 0.85rem;
    color: var(--st-gray-600);
}

/* Grid */
.st-portfolio__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}

/* Case card */
.st-case-card {
    border: 1px solid var(--st-gray-200);
    border-radius: var(--st-radius-md);
    overflow: hidden;
    background: var(--st-white);
    transition: box-shadow 0.2s, transform 0.2s;
}
.st-case-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
.st-case-card__link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.st-case-card__image {
    aspect-ratio: 3/2;
    overflow: hidden;
    background: var(--st-gray-100);
}
.st-case-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.st-case-card:hover .st-case-card__image img {
    transform: scale(1.05);
}
.st-case-card__body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    flex: 1;
}
.st-case-card__title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--st-gray-900);
    margin: 0;
    line-height: 1.3;
}
.st-case-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: var(--st-gray-600);
}
.st-case-card__cat {
    background: var(--st-green-50);
    color: var(--st-accent);
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.75rem;
}
.st-case-card__city {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.st-case-card__city svg {
    opacity: 0.5;
}
.st-case-card__excerpt {
    font-size: 0.82rem;
    color: var(--st-gray-600);
    line-height: 1.5;
    margin: 0;
}

/* Empty state */
.st-portfolio__empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
    color: var(--st-gray-600);
    font-size: 1rem;
}

/* Load more */
.st-portfolio__load-more {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

/* Loading spinner */
.st-portfolio__loading {
    display: flex;
    justify-content: center;
    padding: 2rem;
}
.st-portfolio__spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--st-gray-200);
    border-top-color: var(--st-accent);
    border-radius: 50%;
    animation: st-spin 0.6s linear infinite;
}
@keyframes st-spin {
    to { transform: rotate(360deg); }
}

/* Single case */
.st-case-single__title {
    font-size: 1.75rem;
    margin: 0 0 0.75rem;
}
.st-case-single__hero {
    float: right;
    margin: 0 0 1rem 1.5rem;
    max-width: 400px;
    width: 40%;
}
.st-case-single__hero img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    cursor: pointer;
}
.st-case-single__hero img:hover {
    opacity: 0.9;
}
.st-case-single__content::after {
    content: "";
    display: table;
    clear: both;
}
@media (max-width: 600px) {
    .st-case-single__hero {
        float: none;
        margin: 0 0 1rem;
        max-width: 100%;
        width: 100%;
    }
}
.st-case-single__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.st-case-single__cat {
    background: var(--st-green-50);
    color: var(--st-accent);
    padding: 4px 12px;
    border-radius: 16px;
    font-weight: 600;
    font-size: 0.85rem;
}
.st-case-single__city {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--st-gray-600);
    font-size: 0.85rem;
}
.st-case-single__gallery {
    margin-top: 2rem;
}
.st-case-single__gallery h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* ============================================
   Blog archive
   ============================================ */
.st-blog-header {
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
}
.st-blog-header__title {
    font-size: 1.75rem;
    margin: 0.5rem 0;
}
.st-blog-header__desc {
    color: var(--st-gray-600);
    margin-bottom: 1.25rem;
    max-width: 700px;
}
.st-blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.st-blog-filters__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--st-gray-600);
    background: var(--st-gray-100);
    text-decoration: none;
    transition: all 0.2s;
}
.st-blog-filters__btn:hover {
    background: var(--st-green-50);
    color: var(--st-accent);
}
.st-blog-filters__btn--active {
    background: var(--st-accent);
    color: #fff;
}
.st-blog-filters__btn--active:hover {
    background: var(--st-accent-hover);
    color: #fff;
}
.st-blog-filters__count {
    font-size: 0.75rem;
    opacity: 0.7;
}

/* Blog grid */
.st-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Blog card */
.st-blog-card {
    background: #fff;
    border-radius: 8px;
    border: 1px solid var(--st-gray-200);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}
.st-blog-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}
.st-blog-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.st-blog-card__thumb {
    aspect-ratio: 3/2;
    overflow: hidden;
    background: var(--st-gray-100);
}
.st-blog-card__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}
.st-blog-card:hover .st-blog-card__thumb img {
    transform: scale(1.03);
}
.st-blog-card__thumb--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--st-gray-200);
}
.st-blog-card__body {
    padding: 1rem 1.25rem 1.25rem;
}
.st-blog-card__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: var(--st-gray-600);
    margin-bottom: 0.5rem;
}
.st-blog-card__cat {
    background: var(--st-green-50);
    color: var(--st-accent);
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.75rem;
}
.st-blog-card__title {
    font-size: 1.05rem;
    line-height: 1.35;
    margin: 0 0 0.5rem;
    color: var(--st-gray-900);
}
.st-blog-card:hover .st-blog-card__title {
    color: var(--st-accent);
}
.st-blog-card__excerpt {
    font-size: 0.875rem;
    color: var(--st-gray-600);
    line-height: 1.5;
    margin: 0;
}

/* Blog pagination */
.st-blog-pagination {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
    text-align: center;
}
.st-blog-pagination .page-numbers {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
}
.st-blog-pagination .page-numbers li {
    display: inline;
}
.st-blog-pagination .page-numbers a,
.st-blog-pagination .page-numbers span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--st-gray-200);
    color: var(--st-gray-600);
    background: #fff;
    transition: all 0.2s;
}
.st-blog-pagination .page-numbers a:hover {
    background: var(--st-green-50);
    color: var(--st-accent);
    border-color: var(--st-accent);
}
.st-blog-pagination .page-numbers .current {
    background: var(--st-accent);
    color: #fff;
    border-color: var(--st-accent);
}
.st-blog-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--st-gray-600);
    font-size: 1.1rem;
}

/* Hide author byline from blog posts */
.posted-by,
.entry-author {
    display: none !important;
}

/* Kadence related posts — fix overflow */
.entry-related-carousel,
.entry-related-carousel .splide__track {
    overflow: hidden;
    max-width: 100%;
}
.entry-related-carousel .splide__list {
    max-width: 100%;
}
.entry-related-carousel .splide__slide {
    min-width: 0;
}
.entry-related-carousel .post-thumbnail-inner {
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.entry-related-carousel .post-thumbnail-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.entry-related-title {
    font-family: 'Montserrat', var(--st-font-heading);
    font-size: 20px;
    font-weight: 700;
    color: var(--st-green-800);
    margin-bottom: 16px;
}
.entry-related-carousel article {
    border: 1px solid var(--st-gray-200);
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow .2s, border-color .2s;
}
.entry-related-carousel article:hover {
    border-color: var(--st-green-600);
    box-shadow: 0 4px 12px rgba(0,0,0,.08);
}
.entry-related-carousel .entry-title {
    font-size: 14px;
    line-height: 1.4;
    padding: 10px 12px;
}
.entry-related-carousel .entry-meta {
    padding: 0 12px 10px;
    font-size: 12px;
    color: var(--st-gray-600);
}

/* Hide Kadence default title on blog archive */
.home .entry-hero-container-inner,
.category .entry-hero-container-inner,
.home .kadence-breadcrumbs,
.category .kadence-breadcrumbs {
    display: none;
}

/* Responsive */
@media (max-width: 900px) {
    .st-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .st-blog-grid {
        grid-template-columns: 1fr;
    }
    .st-blog-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .st-blog-filters::-webkit-scrollbar { display: none; }
    .st-blog-filters__btn { white-space: nowrap; }
}

/* Responsive */
@media (max-width: 900px) {
    .st-portfolio__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .st-portfolio__grid {
        grid-template-columns: 1fr;
    }
    .st-portfolio__filters {
        flex-direction: column;
        align-items: stretch;
    }
    .st-portfolio__results-count {
        margin-left: 0;
    }
}

/* ========== About page ========== */
/* --- About page: Hero with image --- */
.st-about-hero--with-image {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--st-space-xl);
    align-items: center;
}
.st-about-hero__text h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(26px, 3.5vw, 38px);
    font-weight: 800;
    color: var(--st-gray-900);
    margin: 0 0 var(--st-space-md);
    line-height: 1.2;
}
.st-about-hero__lead {
    font-size: 17px;
    line-height: 1.7;
    color: var(--st-gray-600);
}
.st-about-hero__image {
    border-radius: var(--st-radius-lg);
    overflow: hidden;
    box-shadow: var(--st-shadow-card);
}
.st-about-hero__image img {
    width: 100%;
    height: auto;
    display: block;
}
.st-about-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--st-space-sm);
    margin-top: var(--st-space-lg);
}
.st-about-stat {
    text-align: center;
    padding: 12px 8px;
    background: var(--st-green-50);
    border-radius: var(--st-radius-md);
}
.st-about-stat__num {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--st-green-700);
    line-height: 1;
}
.st-about-stat__label {
    display: block;
    font-size: 12px;
    color: var(--st-gray-600);
    margin-top: 4px;
}
/* --- About page: Gallery v2 --- */
.st-about-gallery--v2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--st-space-md);
}
.st-about-gallery--v2 .st-about-gallery__item {
    display: block;
    border-radius: var(--st-radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    height: auto;
}
.st-about-gallery--v2 .st-about-gallery__item:nth-child(4) {
    grid-column: span 1;
}
.st-about-gallery--v2 .st-about-gallery__item:last-child {
    grid-column: span 1;
}
.st-about-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.st-about-gallery__item:hover img {
    transform: scale(1.05);
}
/* --- About page: Spheres --- */
.st-about-spheres {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--st-space-lg);
}
.st-about-sphere {
    background: #fff;
    border-radius: var(--st-radius-lg);
    padding: var(--st-space-lg);
    box-shadow: var(--st-shadow-card);
}
.st-about-sphere h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--st-gray-900);
    margin: 0 0 var(--st-space-sm);
    padding-bottom: var(--st-space-sm);
    border-bottom: 2px solid var(--st-green-700);
}
.st-about-sphere ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.st-about-sphere li {
    font-size: 14px;
    color: var(--st-gray-600);
    padding: 6px 0 6px 16px;
    position: relative;
}
.st-about-sphere li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 6px;
    height: 6px;
    background: var(--st-green-700);
    border-radius: 50%;
}
/* --- About page: Advantages with inline SVG --- */
.st-about-advantages {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--st-space-lg);
}
.st-about-adv {
    display: flex;
    gap: var(--st-space-md);
    align-items: flex-start;
    padding: var(--st-space-lg);
    background: var(--st-green-50);
    border-radius: var(--st-radius-lg);
    border-left: 4px solid var(--st-green-700);
}
.st-about-adv__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--st-green-700);
    border-radius: var(--st-radius-md);
    color: #fff;
}
.st-about-adv__icon svg {
    width: 24px;
    height: 24px;
}
.st-about-adv h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--st-gray-900);
    margin: 0 0 6px;
}
.st-about-adv p {
    font-size: 14px;
    color: var(--st-gray-600);
    line-height: 1.6;
    margin: 0;
}
/* --- About page: Product grid compact --- */
.st-products-grid--compact {
    grid-template-columns: repeat(3, 1fr) !important;
}
/* --- About page: responsive --- */
@media (max-width: 960px) {
    .st-about-hero--with-image {
        grid-template-columns: 1fr;
    }
    .st-about-hero__image {
        order: -1;
    }
    .st-about-advantages {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .st-about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .st-about-gallery--v2 {
        grid-template-columns: 1fr 1fr;
    }
    .st-about-spheres {
        grid-template-columns: 1fr;
    }
    .st-products-grid--compact {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 480px) {
    .st-about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .st-about-gallery--v2 {
        grid-template-columns: 1fr;
    }
    .st-products-grid--compact {
        grid-template-columns: 1fr !important;
    }
    .st-about-adv {
        flex-direction: column;
    }
}

/* ═══ 16: Trust bar — client logos / names ═══ */
.st-trust {
    padding: 48px 0;
    text-align: center;
}
.st-trust__title {
    font-family: var(--st-heading-font, 'Montserrat', sans-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--st-gray-600, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 32px;
}
.st-trust__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 32px 48px;
    max-width: 900px;
    margin: 0 auto;
}
.st-trust__item {
    font-family: var(--st-heading-font, 'Montserrat', sans-serif);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--st-gray-500, #94a3b8);
    padding: 12px 20px;
    border: 1px solid var(--st-gray-200, #e2e8f0);
    border-radius: 8px;
    background: var(--st-white, #fff);
    transition: border-color 0.2s, color 0.2s;
}
.st-trust__item:hover {
    border-color: var(--st-green-600, #527089);
    color: var(--st-green-700, #3b5068);
}
@media (max-width: 768px) {
    .st-trust__grid {
        gap: 16px 24px;
    }
    .st-trust__item {
        font-size: 0.85rem;
        padding: 8px 14px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   COMPARE — Сравнение моделей продукции
   ═══════════════════════════════════════════════════════════════ */

/* Compare toggle button (on product pages) */
.st-compare-btn-wrap {
    margin-bottom: 20px;
}
.st-compare-toggle {
    padding: 8px 20px;
    border: 2px solid var(--st-green-600);
    background: transparent;
    color: var(--st-green-700);
    border-radius: var(--st-radius-md);
    cursor: pointer;
    font-family: Inter, sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background var(--st-transition), color var(--st-transition), border-color var(--st-transition);
    line-height: 1.4;
}
.st-compare-toggle:hover {
    background: var(--st-green-50);
    border-color: var(--st-green-700);
}
.st-compare-toggle.active {
    background: var(--st-green-700);
    color: #fff;
    border-color: var(--st-green-700);
}
.st-compare-toggle.active:hover {
    background: var(--st-green-800);
    border-color: var(--st-green-800);
}

/* Floating compare bar */
.st-compare-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--st-green-900);
    color: #fff;
    padding: 12px 24px;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 12px;
    z-index: 10000;
    box-shadow: 0 -2px 16px rgba(0,0,0,0.2);
    flex-wrap: wrap;
    font-family: Inter, sans-serif;
}
.st-compare-bar__items {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.st-compare-bar__item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.12);
    padding: 4px 10px;
    border-radius: var(--st-radius-sm);
    font-size: 0.82rem;
    white-space: nowrap;
}
.st-compare-bar__remove {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    font-size: 1rem;
    padding: 0 0 0 4px;
    line-height: 1;
}
.st-compare-bar__remove:hover {
    color: #fff;
}
.st-compare-bar__count {
    font-weight: 600;
    font-size: 0.9rem;
    white-space: nowrap;
}
.st-compare-bar__link {
    display: inline-block;
    padding: 8px 24px;
    background: #e2a000;
    color: var(--st-green-900);
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: var(--st-radius-sm);
    text-decoration: none;
    transition: background var(--st-transition);
    white-space: nowrap;
}
.st-compare-bar__link:hover {
    background: #c98e00;
    color: var(--st-green-900);
}
.st-compare-bar__clear {
    background: none;
    border: none;
    color: rgba(255,255,255,0.5);
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    flex-shrink: 0;
}
.st-compare-bar__clear:hover {
    color: #fff;
}

/* Compare page — empty state */
.st-compare-empty {
    text-align: center;
    padding: 60px 20px;
    background: var(--st-bg-subtle);
    border-radius: var(--st-radius-lg);
    border: 1px solid var(--st-border);
}
.st-compare-empty p {
    color: var(--st-text-secondary);
    max-width: 500px;
    margin: 0 auto 20px;
}
.st-compare-empty__link {
    display: inline-block;
    padding: 10px 28px;
    background: var(--st-green-700);
    color: #fff;
    border-radius: var(--st-radius-sm);
    text-decoration: none;
    font-weight: 600;
    transition: background var(--st-transition);
}
.st-compare-empty__link:hover {
    background: var(--st-green-800);
    color: #fff;
}

/* Compare table wrapper (horizontal scroll on mobile) */
.st-compare-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -20px;
    padding: 0 20px;
}

/* Compare table */
.st-compare-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 24px;
    min-width: 600px;
}
.st-compare-table th {
    background: var(--st-green-50);
    padding: 16px;
    text-align: center;
    font-weight: 700;
    border-bottom: 2px solid var(--st-green-700);
    vertical-align: bottom;
}
.st-compare-table td {
    padding: 10px 16px;
    border-bottom: 1px solid var(--st-gray-200);
    text-align: center;
    font-size: 0.95rem;
}
.st-compare-table tr:hover td {
    background: var(--st-green-50);
}
.st-compare-table .st-compare-table__label {
    text-align: left;
    font-weight: 600;
    color: var(--st-gray-700);
    white-space: nowrap;
    background: transparent;
}
.st-compare-table tr:hover .st-compare-table__label {
    background: var(--st-green-50);
}
.st-compare-table .st-compare-table__diff {
    background: #fff8e1;
}
.st-compare-table tr:hover .st-compare-table__diff {
    background: #fff3cd;
}
.st-compare-table img {
    max-width: 120px;
    height: auto;
    border-radius: var(--st-radius-md);
}
.st-compare-table__title {
    font-weight: 700;
    color: var(--st-green-700);
    text-decoration: none;
    font-size: 0.95rem;
}
.st-compare-table__title:hover {
    color: var(--st-green-800);
    text-decoration: underline;
}

/* Mobile: compare bar stacks above mobile CTA */
@media (max-width: 768px) {
    .st-compare-bar {
        bottom: 60px; /* above mobile CTA bar */
        padding: 10px 16px;
        gap: 8px;
    }
    .st-compare-bar__items {
        display: none; /* hide item chips on mobile to save space */
    }
    .st-compare-table img {
        max-width: 80px;
    }
}

/* ═══════════════════════════════════════════════════════════
   QUIZ: Какой тип очистки вам подходит?
   ═══════════════════════════════════════════════════════════ */

.st-quiz-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px;
}

.st-quiz {
    max-width: 680px;
    margin: 0 auto;
    padding: 40px 0;
}

/* Progress bar */
.st-quiz__progress {
    height: 4px;
    background: var(--st-gray-200, #e2e8f0);
    border-radius: 2px;
    margin-bottom: 8px;
    overflow: hidden;
}
.st-quiz__progress-bar {
    height: 100%;
    background: var(--st-amber, #e2a000);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* Step counter */
.st-quiz__counter {
    font-size: 0.85rem;
    color: var(--st-gray-500, #94a3b8);
    margin-bottom: 24px;
    font-weight: 500;
}

/* Steps */
.st-quiz__step {
    display: none;
}
.st-quiz__step.active {
    display: block;
}

/* Slide-in animation */
.st-quiz__step--slide-in {
    animation: stQuizSlideIn 0.3s ease-out;
}
@keyframes stQuizSlideIn {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Question title */
.st-quiz__question {
    font-family: var(--st-heading-font, 'Montserrat', sans-serif);
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--st-gray-900, #1a202c);
    line-height: 1.3;
}

/* Options */
.st-quiz__options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.st-quiz__option {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border: 2px solid var(--st-gray-200, #e2e8f0);
    border-radius: 10px;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    user-select: none;
}
.st-quiz__option:hover {
    border-color: var(--st-green-600, #527089);
    background: var(--st-green-50, #f3f5f8);
}
.st-quiz__option.selected {
    border-color: var(--st-green-700, #3b5068);
    background: var(--st-green-50, #f3f5f8);
}
.st-quiz__option input {
    display: none;
}

/* Custom radio check */
.st-quiz__option-check {
    width: 22px;
    height: 22px;
    min-width: 22px;
    border: 2px solid var(--st-gray-300, #cbd5e1);
    border-radius: 50%;
    position: relative;
    transition: border-color 0.2s;
}
.st-quiz__option.selected .st-quiz__option-check {
    border-color: var(--st-green-700, #3b5068);
}
.st-quiz__option.selected .st-quiz__option-check::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--st-green-700, #3b5068);
}

.st-quiz__option-text {
    font-size: 1rem;
    line-height: 1.4;
}

/* Navigation */
.st-quiz__nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 32px;
}

/* Buttons */
.st-quiz__btn {
    padding: 12px 28px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    font-family: var(--st-body-font, 'Inter', sans-serif);
    transition: background 0.2s, opacity 0.2s;
}
.st-quiz__btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}
.st-quiz__btn--next,
.st-quiz__btn--finish {
    background: var(--st-amber, #e2a000);
    color: var(--st-gray-900, #1e293b);
}
.st-quiz__btn--next:hover:not(:disabled),
.st-quiz__btn--finish:hover:not(:disabled) {
    background: var(--st-amber-hover, #c98e00);
}
.st-quiz__btn--back {
    background: transparent;
    color: var(--st-gray-600, #64748b);
    border: 1px solid var(--st-gray-300, #cbd5e1);
}
.st-quiz__btn--back:hover {
    border-color: var(--st-gray-400, #94a3b8);
    color: var(--st-gray-700, #475569);
}

/* Result */
.st-quiz__result {
    text-align: center;
    padding: 20px 0;
}
.st-quiz__result-icon {
    color: var(--st-green-700, #3b5068);
    margin-bottom: 16px;
}
.st-quiz__result-title {
    font-family: var(--st-heading-font, 'Montserrat', sans-serif);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--st-gray-900, #1a202c);
    line-height: 1.3;
}
.st-quiz__result-desc {
    margin-bottom: 24px;
    color: var(--st-gray-700, #475569);
    line-height: 1.6;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}
.st-quiz__result-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--st-green-700, #3b5068);
    margin-bottom: 24px;
}
.st-quiz__result-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.st-quiz__result-link {
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.2s, color 0.2s;
}
.st-quiz__result-link--primary {
    background: var(--st-green-700, #3b5068);
    color: #fff;
}
.st-quiz__result-link--primary:hover {
    background: var(--st-green-800, #2d3a4e);
    color: #fff;
}
.st-quiz__result-link--secondary {
    background: var(--st-green-50, #f3f5f8);
    color: var(--st-green-700, #3b5068);
    border: 1px solid var(--st-gray-200, #e2e8f0);
}
.st-quiz__result-link--secondary:hover {
    background: var(--st-green-100, #e8ecf1);
    color: var(--st-green-800, #2d3a4e);
}

.st-quiz__result-cta {
    margin-top: 20px;
    margin-bottom: 16px;
}
.st-quiz__btn--cta {
    background: var(--st-amber, #e2a000);
    color: var(--st-gray-900, #1e293b);
    padding: 14px 32px;
    font-size: 1.05rem;
    border-radius: 6px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}
.st-quiz__btn--cta:hover {
    background: var(--st-amber-hover, #c98e00);
}

.st-quiz__result-restart {
    margin-top: 8px;
}
.st-quiz__btn--restart {
    background: transparent;
    color: var(--st-gray-500, #94a3b8);
    border: none;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
    padding: 8px 16px;
}
.st-quiz__btn--restart:hover {
    color: var(--st-gray-700, #475569);
}

/* SEO text below quiz */
.st-quiz-seo {
    max-width: 680px;
    margin: 40px auto 60px;
    padding-top: 32px;
    border-top: 1px solid var(--st-gray-200, #e2e8f0);
}
.st-quiz-seo h2 {
    font-family: var(--st-heading-font, 'Montserrat', sans-serif);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--st-gray-900, #1a202c);
}
.st-quiz-seo h3 {
    font-family: var(--st-heading-font, 'Montserrat', sans-serif);
    font-size: 1.05rem;
    font-weight: 700;
    margin: 20px 0 10px;
    color: var(--st-gray-900, #1a202c);
}
.st-quiz-seo p {
    color: var(--st-gray-600, #64748b);
    line-height: 1.7;
    margin-bottom: 12px;
}
.st-quiz-seo ul {
    color: var(--st-gray-600, #64748b);
    line-height: 1.7;
    padding-left: 20px;
}
.st-quiz-seo li {
    margin-bottom: 8px;
}
.st-quiz-seo a {
    color: var(--st-green-700, #3b5068);
    text-decoration: underline;
}
.st-quiz-seo a:hover {
    color: var(--st-green-800, #2d3a4e);
}

/* Mobile quiz */
@media (max-width: 768px) {
    .st-quiz {
        padding: 24px 0;
    }
    .st-quiz__question {
        font-size: 1.15rem;
    }
    .st-quiz__option {
        padding: 14px 16px;
    }
    .st-quiz__btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    .st-quiz__result-title {
        font-size: 1.25rem;
    }
    .st-quiz__result-links {
        flex-direction: column;
        align-items: center;
    }
    .st-quiz__result-link {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
}

/* ═══════════════════════════════════════════════════════════════
   CHEMICAL RESISTANCE TABLE
   ═══════════════════════════════════════════════════════════════ */

.st-chemresist-page__intro {
    font-size: 1.05rem;
    color: var(--st-gray-700, #4a5568);
    margin-bottom: 24px;
    max-width: 800px;
}

/* Legend */
.st-chemresist__legend {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
    font-size: 0.9rem;
}
.st-chemresist__legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}
.st-chemresist__legend-symbol {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 1rem;
}
.st-chemresist__legend-symbol[data-r="+"] {
    background: #e8f5e9;
    color: #2e7d32;
}
.st-chemresist__legend-symbol[data-r="±"] {
    background: #fff8e1;
    color: #f57f17;
}
.st-chemresist__legend-symbol[data-r="−"] {
    background: #ffebee;
    color: #c62828;
}

/* Filters */
.st-chemresist {
    margin: 32px 0;
}
.st-chemresist__filters {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    align-items: center;
}
.st-chemresist__search {
    padding: 10px 16px;
    border: 2px solid var(--st-gray-200, #e2e8f0);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    width: 300px;
    transition: border-color 0.2s;
}
.st-chemresist__search:focus {
    border-color: var(--st-green-600, #527089);
    outline: none;
}
.st-chemresist__groups {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.st-chemresist__group {
    padding: 6px 14px;
    border: 1px solid var(--st-gray-300, #cbd5e0);
    border-radius: 20px;
    background: #fff;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: inherit;
    transition: all 0.2s;
}
.st-chemresist__group:hover {
    border-color: var(--st-green-600, #527089);
    color: var(--st-green-700, #3b5068);
}
.st-chemresist__group.active {
    background: var(--st-green-700, #3b5068);
    color: #fff;
    border-color: var(--st-green-700, #3b5068);
}

/* Table wrapper */
.st-chemresist__table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--st-gray-200, #e2e8f0);
    border-radius: 8px;
}

/* Table */
.st-chemresist__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.st-chemresist__table th {
    background: var(--st-green-50, #f3f5f8);
    padding: 10px 12px;
    border: 1px solid var(--st-gray-200, #e2e8f0);
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 2;
    white-space: nowrap;
    font-size: 0.85rem;
}
.st-chemresist__th-material {
    text-align: center;
    color: var(--st-green-700, #3b5068);
}
.st-chemresist__th-reagent {
    text-align: left;
    min-width: 240px;
}
.st-chemresist__table td {
    padding: 8px 12px;
    border: 1px solid var(--st-gray-200, #e2e8f0);
    text-align: center;
    font-size: 0.95rem;
    transition: opacity 0.15s;
}
.st-chemresist__td-name {
    text-align: left !important;
    font-weight: 500;
    white-space: nowrap;
}

/* Color-coded cells */
.st-chemresist__table td[data-r="+"] {
    background: #e8f5e9;
    color: #2e7d32;
    font-weight: 700;
}
.st-chemresist__table td[data-r="±"] {
    background: #fff8e1;
    color: #f57f17;
    font-weight: 700;
}
.st-chemresist__table td[data-r="−"] {
    background: #ffebee;
    color: #c62828;
    font-weight: 700;
}

/* Hover & selected row */
.st-chemresist__table tbody tr:hover td {
    opacity: 0.85;
}
.st-chemresist__table tbody tr.st-chemresist__row--selected td {
    outline: 2px solid var(--st-green-700, #3b5068);
    outline-offset: -2px;
}

/* Hidden rows */
.st-chemresist__table tr.hidden {
    display: none;
}

/* Count text */
.st-chemresist__count {
    margin-top: 12px;
    font-size: 0.85rem;
    color: var(--st-gray-600, #64748b);
}

/* SEO text block */
.st-chemresist-seo {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--st-gray-700, #4a5568);
}
.st-chemresist-seo h2 {
    font-size: 1.3rem;
    color: var(--st-gray-900, #1a202c);
    margin-bottom: 16px;
}
.st-chemresist-seo ul {
    padding-left: 20px;
    margin: 16px 0;
}
.st-chemresist-seo li {
    margin-bottom: 8px;
}
.st-chemresist-seo a {
    color: var(--st-green-700, #3b5068);
    text-decoration: underline;
}
.st-chemresist-seo a:hover {
    color: var(--st-green-800, #2d3a4e);
}

/* Mobile */
@media (max-width: 768px) {
    .st-chemresist__search {
        width: 100%;
    }
    .st-chemresist__filters {
        flex-direction: column;
        align-items: stretch;
    }
    .st-chemresist__groups {
        justify-content: flex-start;
    }
    .st-chemresist__td-name {
        min-width: 180px;
        font-size: 0.85rem;
    }
    .st-chemresist__table td,
    .st-chemresist__table th {
        padding: 6px 8px;
        font-size: 0.8rem;
    }
}

/* ═══════════════════════════════════════════════════════════════
   ОПРОСНЫЙ ЛИСТ КНС
   ═══════════════════════════════════════════════════════════════ */
.st-opros__intro { color: var(--st-gray-600); max-width: 720px; margin-bottom: 2rem; }
.st-opros-layout { display: grid; grid-template-columns: 380px 1fr; gap: 2rem; align-items: start; }
.st-opros__schema { position: sticky; top: 100px; }
.st-opros__schema img { width: 100%; max-width: 340px; border: 1px solid var(--st-border); border-radius: var(--st-radius-md); background: #fff; padding: 1rem; }
.st-opros__legend { margin-top: 1rem; font-size: 0.85rem; color: var(--st-gray-600); }
.st-opros__legend ol { padding-left: 1.5rem; margin: 0.5rem 0; }
.st-opros__legend li { margin-bottom: 2px; }
.st-opros__form { }
.st-opros__fieldset { border: 1px solid var(--st-border); border-radius: var(--st-radius-md); padding: 1.25rem; margin-bottom: 1.25rem; }
.st-opros__fieldset legend { font-weight: 700; font-size: 1rem; color: var(--st-green-700); padding: 0 0.5rem; }
.st-opros__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.st-opros__field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 0.75rem; }
.st-opros__field span { font-size: 0.85rem; font-weight: 500; color: var(--st-gray-700); }
.st-opros__field input,
.st-opros__field select,
.st-opros__field textarea { padding: 8px 12px; border: 1px solid var(--st-border); border-radius: var(--st-radius-sm); font-size: 0.95rem; font-family: var(--st-font-body); transition: border-color 0.2s; }
.st-opros__field input:focus,
.st-opros__field select:focus,
.st-opros__field textarea:focus { border-color: var(--st-green-600); outline: none; box-shadow: 0 0 0 3px rgba(59,80,104,0.1); }
.st-opros__checks { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.st-opros__checks label { display: flex; align-items: center; gap: 6px; font-size: 0.9rem; cursor: pointer; }
.st-opros__submit { margin-top: 1.5rem; display: flex; flex-direction: column; gap: 1rem; }
.st-opros__consent { font-size: 0.85rem; display: flex; align-items: center; gap: 6px; }
.st-opros__consent a { color: var(--st-green-600); }
.st-btn--lg { padding: 14px 32px; font-size: 1.05rem; }
.st-opros__status { margin-top: 1rem; padding: 1rem; border-radius: var(--st-radius-md); }
.st-opros__status--ok { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.st-opros__status--err { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.st-opros-seo { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--st-border); max-width: 800px; }
.st-opros-seo h2 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.st-opros-seo p { color: var(--st-gray-600); margin-bottom: 0.75rem; }

@media (max-width: 860px) {
    .st-opros-layout { grid-template-columns: 1fr; }
    .st-opros__schema { position: static; text-align: center; }
    .st-opros__schema img { max-width: 280px; }
    .st-opros__row { grid-template-columns: 1fr; }
    .st-opros__checks { grid-template-columns: 1fr; }
}
