/*
 Theme Name:   Kadence Child — Семстанция
 Theme URI:    https://semena-trav.ru
 Description:  Enterprise B2B design system for СПССК «Семстанция по травам»
 Author:       Semena-Trav Team
 Template:     kadence
 Version:      1.0.0
 Text Domain:  kadence-child
*/

/* ═══════════════════════════════════════════════════════════════
   1. DESIGN TOKENS — CSS Custom Properties
   ═══════════════════════════════════════════════════════════════ */
:root {
    /* Brand greens */
    --st-green-900: #1B3D1B;
    --st-green-800: #234B23;
    --st-green-700: #2D5F2D;
    --st-green-600: #3A7A3A;
    --st-green-500: #4a7c23;
    --st-green-400: #66BB6A;
    --st-green-300: #81C784;
    --st-green-200: #A5D6A7;
    --st-green-100: #C8E6C9;
    --st-green-50:  #E8F5E9;

    /* 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: #2D5F2D;
    --global-palette2: #234B23;
    --global-palette3: #1a202c;
    --global-palette4: #4a5568;
    --global-palette5: #1a202c;
    --global-palette6: #64748b;
    --global-palette7: #E8F5E9;
    --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 — reduce top gap between header and content
   ═══════════════════════════════════════════════════════════════ */
.content-area {
    margin-top: 1.5rem;
}
@media (max-width: 1024px) {
    .content-area { margin-top: 1rem; }
}
@media (max-width: 767px) {
    .content-area { margin-top: 0.5rem; }
}

/* ═══════════════════════════════════════════════════════════════
   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(28px, 4vw, 40px); margin-bottom: 0.5em; }
h2 { font-size: clamp(22px, 3vw, 32px); margin-top: 1.5em; margin-bottom: 0.5em; }
h3 { font-size: clamp(18px, 2.5vw, 24px); margin-top: 1.3em; margin-bottom: 0.4em; }
h4 { font-size: clamp(16px, 2vw, 20px); }
h5 { font-size: 16px; }
h6 { font-size: 14px; 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;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, var(--st-green-900) 0%, var(--st-green-700) 100%);
    color: var(--st-white);
    text-align: center;
    padding: var(--st-space-3xl) var(--st-space-lg);
}
.st-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('') center/cover no-repeat;
    opacity: 0.15;
}
.st-hero__content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}
.st-hero__title {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 800;
    margin-bottom: 0.4em;
    color: var(--st-white);
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.st-hero__subtitle {
    font-size: clamp(16px, 2vw, 20px);
    opacity: 0.9;
    margin-bottom: var(--st-space-xl);
    line-height: 1.5;
}
.st-hero__btn {
    display: inline-block;
    padding: 14px 36px;
    background: var(--st-white);
    color: var(--st-green-700);
    font-weight: 700;
    font-size: 16px;
    border-radius: var(--st-radius-md);
    text-decoration: none;
    transition: transform var(--st-transition-fast), box-shadow var(--st-transition);
}
.st-hero__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    color: var(--st-green-800);
}

/* ═══════════════════════════════════════════════════════════════
   4. TRUST BAR
   ═══════════════════════════════════════════════════════════════ */
.st-trust-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--st-space-lg);
    padding: var(--st-space-2xl) var(--st-space-lg);
    max-width: var(--st-max-width);
    margin: 0 auto;
}
.st-trust-bar__item {
    text-align: center;
    padding: var(--st-space-lg);
}
.st-trust-bar__number {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 40px;
    font-weight: 800;
    color: var(--st-accent);
    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: linear-gradient(135deg, var(--st-green-700) 0%, var(--st-green-800) 100%);
    color: var(--st-white);
    padding: var(--st-space-2xl) var(--st-space-xl);
    border-radius: var(--st-radius-lg);
    text-align: center;
    margin: var(--st-space-2xl) 0;
}
.st-cta h2,
.st-cta h3 {
    color: var(--st-white);
    margin-top: 0;
    margin-bottom: var(--st-space-md);
}
.st-cta p {
    color: rgba(255,255,255,0.85);
    max-width: 600px;
    margin: 0 auto var(--st-space-lg);
}
.st-cta__btn {
    display: inline-block;
    padding: 12px 32px;
    background: var(--st-white);
    color: var(--st-accent);
    font-weight: 700;
    font-size: 15px;
    border-radius: var(--st-radius-md);
    text-decoration: none;
    transition: transform var(--st-transition-fast), box-shadow var(--st-transition);
}
.st-cta__btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    color: var(--st-accent-hover);
}

/* 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__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;
}

/* ---- 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);
}

/* ---- 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 {
        min-height: 320px;
        padding: var(--st-space-2xl) var(--st-space-md);
    }
    .st-hero__title {
        font-size: 28px;
    }
    .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: 12px 28px;
        font-size: 14px;
    }
}

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