/* === ACE RAID Recovery — Taste Redesign === */
/* Design Read: B2B service landing for enterprise buyers */
/* Dials: VARIANCE=6, MOTION=5, DENSITY=4 */

/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Satoshi:wght@400;500;700;900&family=JetBrains+Mono:wght@400;500&display=swap');
@import url('https://api.fontsource.org/v1/css/font-inter') layer(fonts);

:root {
    /* Core palette — single accent, desaturated, professional B2B */
    --color-primary: #0459a0;
    --color-primary-dark: #0a3460;
    --color-primary-light: #ebf4ff;
    --color-primary-glow: rgba(4, 89, 160, 0.15);
    
    /* Neutrals — single warm-gray family */
    --color-bg: #ffffff;
    --color-bg-alt: #f6f7f9;
    --color-bg-elevated: #ffffff;
    --color-surface: #f0f1f3;
    
    --color-text: #1a1d23;
    --color-text-secondary: #5b5f69;
    --color-text-tertiary: #8b8f98;
    
    --color-border: #e2e4e9;
    --color-border-light: #eef0f3;
    
    /* Dark mode (set by media query) */
    --color-bg-dark: #0e1015;
    --color-bg-alt-dark: #16181e;
    --color-bg-elevated-dark: #1e2028;
    --color-surface-dark: #252830;
    --color-text-dark: #edeeef;
    --color-text-secondary-dark: #9b9ea7;
    --color-text-tertiary-dark: #6b6e78;
    --color-border-dark: #2e313a;
    --color-border-light-dark: #22242c;
    
    /* Typography */
    --font-sans: 'Satoshi', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', Monaco, monospace;
    
    /* Layout */
    --max-width: 1200px;
    --content-width: 65ch;
    
    /* Radii — single system: sharp for containers, soft for interactive */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* Shadows — tinted to background hue */
    --shadow-sm: 0 1px 3px rgba(26, 29, 35, 0.06), 0 1px 2px rgba(26, 29, 35, 0.04);
    --shadow-md: 0 4px 12px rgba(26, 29, 35, 0.08), 0 2px 4px rgba(26, 29, 35, 0.04);
    --shadow-lg: 0 12px 40px rgba(26, 29, 35, 0.10), 0 4px 12px rgba(26, 29, 35, 0.06);
    --shadow-glow: 0 0 0 3px var(--color-primary-glow);
    
    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --duration-fast: 150ms;
    --duration-base: 250ms;
    --duration-slow: 400ms;
}

/* ── Dark Mode ── */
@media (prefers-color-scheme: dark) {
    :root {
        --color-primary-light: #0a2040;
        --color-primary-glow: rgba(4, 89, 160, 0.25);
        
        --color-bg: var(--color-bg-dark);
        --color-bg-alt: var(--color-bg-alt-dark);
        --color-bg-elevated: var(--color-bg-elevated-dark);
        --color-surface: var(--color-surface-dark);
        
        --color-text: var(--color-text-dark);
        --color-text-secondary: var(--color-text-secondary-dark);
        --color-text-tertiary: var(--color-text-tertiary-dark);
        
        --color-border: var(--color-border-dark);
        --color-border-light: var(--color-border-light-dark);
        
        --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.24), 0 1px 2px rgba(0, 0, 0, 0.16);
        --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.32), 0 2px 4px rgba(0, 0, 0, 0.16);
        --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.40), 0 4px 12px rgba(0, 0, 0, 0.24);
    }
}

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ═══════════════════════════════════════
   RESET & BASE
   ═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ═══════════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-sans);
    font-weight: 700;
    color: var(--color-text);
    line-height: 1.2;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.5rem); }
h4 { font-size: clamp(1rem, 1.4vw, 1.2rem); }

p { 
    max-width: var(--content-width);
    margin-bottom: 1rem;
    color: var(--color-text-secondary);
}

p:last-child { margin-bottom: 0; }

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}

a:hover { color: var(--color-primary-dark); }

strong { font-weight: 600; }

small, .text-sm { font-size: 0.875rem; }

.text-mono { font-family: var(--font-mono); }

/* ═══════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════ */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 768px) {
    .container { padding: 0 16px; }
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr min(360px, 30%);
    gap: 48px;
    padding-top: 48px;
    padding-bottom: 64px;
}

@media (max-width: 900px) {
    .content-layout { grid-template-columns: 1fr; gap: 32px; }
}

.content-main {
    min-width: 0;
}

.content-sidebar {
    position: sticky;
    top: 100px;
    align-self: start;
}

@media (max-width: 900px) {
    .content-sidebar { position: static; }
}

/* ═══════════════════════════════════════
   HEADER / NAVIGATION
   ═══════════════════════════════════════ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border-light);
    transition: background var(--duration-base) var(--ease-out);
}

@media (prefers-color-scheme: dark) {
    .site-header {
        background: var(--color-bg);
    }
}

@media (prefers-reduced-transparency: reduce) {
    .site-header {
        background: var(--color-bg);
        backdrop-filter: none;
    }
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 32px;
}

.site-branding {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.site-logo-img {
    height: 56px;
    width: auto;
    display: block;
}

.main-navigation {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text);
    padding: 8px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 10px 16px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    border-radius: var(--radius-md);
    transition: all var(--duration-fast) var(--ease-out);
    white-space: nowrap;
}

.nav-menu a:hover {
    color: var(--color-text);
    background: var(--color-surface);
}

.nav-menu .current-menu-item a,
.nav-menu .current_page_item a {
    color: var(--color-primary);
    font-weight: 600;
}

.header-cta {
    flex-shrink: 0;
}

.phone-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    background: var(--color-primary);
    border-radius: var(--radius-full);
    transition: all var(--duration-base) var(--ease-out);
    letter-spacing: -0.01em;
}

.phone-btn:hover {
    background: var(--color-primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
    color: #fff;
}

.phone-btn:active {
    transform: translateY(0);
    scale: 0.98;
}

.phone-btn::before {
    content: "←";
    font-size: 0.8rem;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .site-header .container { height: 60px; }
    .main-navigation { justify-content: flex-end; }
    .menu-toggle { display: block; }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-bg);
        border-bottom: 1px solid var(--color-border);
        flex-direction: column;
        padding: 8px;
        gap: 2px;
        box-shadow: var(--shadow-lg);
    }
    
    .nav-menu.active { display: flex; }
    .nav-menu a { padding: 12px 16px; }
    .phone-btn { padding: 8px 16px; font-size: 0.8rem; }
}

/* ═══════════════════════════════════════
   HERO SECTIONS
   ═══════════════════════════════════════ */
.page-hero {
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border-light);
    padding: 80px 0 64px;
}

@media (prefers-color-scheme: dark) {
    .page-hero {
        border-bottom-color: var(--color-border);
    }
}

.page-hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

/* Homepage hero override */
.hero-section {
    position: relative;
    padding: 100px 0 80px;
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, #051a30 100%);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 80% 60% at 10% 20%, rgba(4, 89, 160, 0.3) 0%, transparent 60%),
        radial-gradient(ellipse 60% 50% at 90% 80%, rgba(4, 89, 160, 0.15) 0%, transparent 50%);
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

@media (max-width: 768px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .hero-section { padding: 64px 0 56px; }
    .page-hero { padding: 48px 0 40px; }
}

.hero-content h1 {
    color: #fff;
    margin-bottom: 1rem;
    text-wrap: pretty;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    line-height: 1.7;
    max-width: 480px;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .hero-content p { margin-left: auto; margin-right: auto; }
}

.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-visual-placeholder {
    width: 100%;
    max-width: 480px;
    aspect-ratio: 4/3;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.3);
    font-family: var(--font-mono);
    font-size: 0.875rem;
}

/* ═══════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════ */
.btn {
    display: inline-flex;
    margin-top: 16px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--duration-base) var(--ease-out);
    text-decoration: none;
    white-space: nowrap;
}

.btn:active {
    transform: scale(0.97);
}

.btn-primary {
    background: var(--color-primary);
    color: #fff;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: #fff;
}

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border: 1.5px solid var(--color-border);
}

.btn-secondary:hover {
    border-color: var(--color-text);
    color: var(--color-text);
    transform: translateY(-1px);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
    border-radius: var(--radius-lg);
}

/* Featured pricing card — выделена, в фирменных цветах */
.card-pricing.featured {
    border: 2px solid var(--color-primary);
    background: linear-gradient(180deg, var(--color-primary-light) 0%, var(--color-bg-elevated) 120px);
    box-shadow: 0 12px 40px var(--color-primary-glow), var(--shadow-lg);
}

/* Pricing Options: все кнопки синие; в featured-карточке — оранжевая как в hero */
.card-pricing.featured .btn {
    background: #ff7a1a;
    color: #14213d;
    border: none;
    box-shadow: 0 4px 24px rgba(255,122,26,0.45);
}

.card-pricing.featured .btn:hover {
    background: #ff8c33;
    color: #14213d;
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════ */
.section-padding {
    padding: 80px 0;
}

.section {
    padding-top: 80px;
}

#how-it-works {
    padding: 40px 0 0;
}

@media (max-width: 768px) {
    .section-padding { padding: 48px 0; }
    .section { padding-top: 48px; }
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-header h2 {
    margin-bottom: 0.75rem;
}

.section-header p {
    margin: 0 auto;
    max-width: 600px;
    color: var(--color-text-secondary);
}

/* ═══════════════════════════════════════
   CARDS
   ═══════════════════════════════════════ */
.card-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}

.card-grid > * {
    flex: 0 1 calc((100% - 48px) / 3);
}

@media (max-width: 900px) {
    .card-grid > * { flex: 0 1 calc((100% - 24px) / 2); }
}

@media (max-width: 600px) {
    .card-grid > * { flex: 0 1 100%; }
}

.card {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--duration-base) var(--ease-out);
    display: flex;
    flex-direction: column;
}

.card:hover {
    border-color: var(--color-border);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}


.card-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
    line-height: 1;
}

.card-icon svg {
    width: 25%;
    height: auto;
}

.card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
}

.card p {
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    flex: 1;
    margin-bottom: 0;
}

.card .card-cta {
    margin-top: 16px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
}

/* ── Location Cards ── */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 768px) {
    .locations-grid { grid-template-columns: 1fr; }
}

.location-card {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    transition: all var(--duration-base) var(--ease-out);
}

.location-card:hover {
    border-color: var(--color-border);
    box-shadow: var(--shadow-sm);
}

.location-card h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--color-primary);
}

.location-card p {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

/* ═══════════════════════════════════════
   SECTIONS - Alternating Layout
   ═══════════════════════════════════════ */
.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 64px;
}

.feature-row:last-child { margin-bottom: 0; }

.feature-row.reverse {
    direction: rtl;
}

.feature-row.reverse > * {
    direction: ltr;
}

@media (max-width: 768px) {
    .feature-row { grid-template-columns: 1fr; gap: 24px; }
    .feature-row.reverse { direction: ltr; }
}

.feature-content h3 {
    margin-bottom: 12px;
}

.feature-content p {
    font-size: 0.9375rem;
    margin-bottom: 1.25rem;
}

.feature-visual {
    background: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border-light);
}

/* ═══════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════ */
.sidebar-widget {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
}

.sidebar-widget:last-child { margin-bottom: 0; }

.sidebar-widget h3 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--color-text);
}

.sidebar-widget p {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.sidebar-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-widget ul li {
    padding: 8px 0;
    border-bottom: 1px solid var(--color-border-light);
}

.sidebar-widget ul li:last-child { border-bottom: none; }

.sidebar-widget ul a {
    font-size: 0.875rem;
    font-weight: 500;
}

/* ═══════════════════════════════════════
   WORK ORDER FORM (CF7)
   ═══════════════════════════════════════ */
.wo-form-wrap {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-xl);
    padding: 40px;
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .wo-form-wrap { padding: 24px; }
}

.wo-form-wrap h2 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.wo-subtitle {
    color: var(--color-text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
}

.wo-form-fields .wo-section {
    border: none;
    margin-bottom: 24px;
    padding: 0;
}

.wo-form-fields .wo-section > legend {
    display: block;
    width: 100%;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-tertiary);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--color-border-light);
}

.wo-form-fields .wo-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.wo-form-fields .wo-field.wo-full {
    grid-column: 1 / -1;
}

.wo-form-fields .wo-field.wo-half {
    grid-column: span 1;
}

/* Responsive form rows */
@media (max-width: 768px) {
    .wo-form-fields .wo-row { 
        grid-template-columns: 1fr; 
        gap: 0;
    }
    .wo-form-fields .wo-field.wo-half { grid-column: 1 / -1; }
}

.wo-form-fields label {
    display: block;
    font-weight: 600;
    font-size: 0.8125rem;
    margin-bottom: 4px;
    color: var(--color-text);
}

.wo-form-fields input[type="text"],
.wo-form-fields input[type="email"],
.wo-form-fields input[type="tel"],
.wo-form-fields select,
.wo-form-fields textarea {
    width: 100%;
    padding: 10px 14px;
    background: var(--color-bg);
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    color: var(--color-text);
    transition: all var(--duration-fast) var(--ease-out);
    outline: none;
}

@media (prefers-color-scheme: dark) {
    .wo-form-fields input,
    .wo-form-fields select,
    .wo-form-fields textarea {
        background: var(--color-surface);
        border-color: var(--color-border);
    }
}

.wo-form-fields input:focus,
.wo-form-fields select:focus,
.wo-form-fields textarea:focus {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow);
}

.wo-form-fields textarea {
    min-height: 80px;
    resize: vertical;
}

.wo-form-fields .wpcf7-radio {
    display: flex;
    gap: 20px;
    padding: 6px 0;
}

.wo-form-fields .wpcf7-radio label {
    font-weight: 400;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.wo-form-fields .wpcf7-acceptance label {
    font-weight: 400;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    cursor: pointer;
}

.wo-form-fields input[type="submit"],
.wpcf7-form input[type="submit"],
.btn-primary.wo-submit {
    width: 100%;
    padding: 14px 24px;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--duration-base) var(--ease-out);
    letter-spacing: -0.01em;
}

.wo-form-fields input[type="submit"]:hover,
.wpcf7-form input[type="submit"]:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.wo-form-fields input[type="submit"]:active,
.wpcf7-form input[type="submit"]:active {
    transform: scale(0.98);
}

/* WP CF7 defaults overrides */
.wpcf7 form .wpcf7-response-output {
    margin: 16px 0;
    padding: 12px 16px;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
}

.wpcf7 form .wpcf7-response-output.wpcf7-mail-sent-ok {
    border-color: #2e7d32;
    color: #2e7d32;
    background: #edf7ed;
}

.wpcf7 form .wpcf7-response-output.wpcf7-validation-errors {
    border-color: #d32f2f;
    color: #d32f2f;
    background: #fdeded;
}

@media (prefers-color-scheme: dark) {
    .wpcf7 form .wpcf7-response-output.wpcf7-mail-sent-ok {
        background: rgba(46, 125, 50, 0.15);
        color: #81c784;
    }
    .wpcf7 form .wpcf7-response-output.wpcf7-validation-errors {
        background: rgba(211, 47, 47, 0.15);
        color: #ef9a9a;
    }
}

.wpcf7 .wpcf7-not-valid-tip {
    font-size: 0.8125rem;
    color: #d32f2f;
    margin-top: 4px;
}

.wpcf7 .wpcf7-not-valid {
    border-color: #d32f2f !important;
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.site-footer {
    background: var(--color-bg-alt);
    border-top: 1px solid var(--color-border-light);
    margin-top: 0;
}

.footer-main {
    padding: 48px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 40px;
}

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

.footer-col h4 {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text);
    margin-bottom: 16px;
}

.footer-col p,
.footer-col li {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 8px;
}

.footer-links a {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    transition: color var(--duration-fast) var(--ease-out);
}

.footer-links a:hover {
    color: var(--color-primary);
}

.footer-phone {
    margin-top: 8px;
}

.footer-phone a {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-text);
}

.footer-phone a:hover {
    color: var(--color-primary);
}

.footer-bottom {
    border-top: 1px solid var(--color-border-light);
    padding: 20px 0;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--color-text-tertiary);
    margin: 0;
    max-width: none;
}

/* ═══════════════════════════════════════
   BLOG / CONTENT PAGES
   ═══════════════════════════════════════ */
.entry-content {
    font-size: 1rem;
    line-height: 1.8;
}

.entry-content p {
    margin-bottom: 1.25rem;
}

/* ═══════════════════════════════════════
   TABLE
   ═══════════════════════════════════════ */
.content-main table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.content-main th,
.content-main td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--color-border-light);
    font-size: 0.9375rem;
}

.content-main th {
    background: var(--color-bg-alt);
    font-weight: 600;
    color: var(--color-text);
}

/* ═══════════════════════════════════════
   FAQ
   ═══════════════════════════════════════ */
.faq-item {
    border-bottom: 1px solid var(--color-border-light);
    padding: 20px 0;
}

.faq-item:first-child { padding-top: 0; }

.faq-question {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 4px 0;
    user-select: none;
}

.faq-question::after {
    content: '+';
    font-size: 1.25rem;
    color: var(--color-text-tertiary);
    flex-shrink: 0;
    transition: transform var(--duration-base) var(--ease-out);
}

.faq-item.active .faq-question::after {
    content: '−';
}

.faq-answer {
    padding-top: 12px;
    font-size: 0.9375rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* ═══════════════════════════════════════
   UTILITY
   ═══════════════════════════════════════ */
.text-center { text-align: center; }
.text-primary { color: var(--color-primary); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* Error pages */
.error-404 {
    text-align: center;
    padding: 100px 0;
}

.error-404 h1 {
    font-size: 6rem;
    font-weight: 800;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
    line-height: 1;
}

.error-404 h2 {
    margin-bottom: 1rem;
}

.error-404 p {
    margin: 0 auto 1.5rem;
}

/* ═══════════════════════════════════════
   CHAT / ESTIMATE WIDGET
   ═══════════════════════════════════════ */
.chat-box {
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--color-bg);
}

.chat-box-header {
    padding: 14px 18px;
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border-light);
    font-weight: 600;
    font-size: 0.875rem;
}

.chat-box-messages {
    padding: 16px;
    max-height: 320px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-msg-operator,
.chat-msg-user {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    line-height: 1.5;
}

.chat-msg-operator {
    align-self: flex-start;
    background: var(--color-bg-alt);
    color: var(--color-text);
    border-bottom-left-radius: var(--radius-sm);
}

.chat-msg-user {
    align-self: flex-end;
    background: var(--color-primary);
    color: #fff;
    border-bottom-right-radius: var(--radius-sm);
}

.chat-box-input {
    display: flex;
    border-top: 1px solid var(--color-border-light);
    padding: 10px 14px;
    gap: 8px;
}

.chat-box-input input {
    flex: 1;
    border: 1.5px solid var(--color-border);
    border-radius: var(--radius-full);
    padding: 10px 16px;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    outline: none;
    transition: border-color var(--duration-fast) var(--ease-out);
}

.chat-box-input input:focus {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-glow);
}

.chat-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: var(--color-primary);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--duration-fast) var(--ease-out);
    flex-shrink: 0;
}

.chat-send:hover {
    background: var(--color-primary-dark);
    transform: scale(1.05);
}

.chat-send:active {
    transform: scale(0.95);
}

.chat-send:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.chat-benefits {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.chat-benefits span {
    font-size: 0.75rem;
    padding: 4px 10px;
    background: var(--color-bg-alt);
    border-radius: var(--radius-full);
    color: var(--color-text-secondary);
}

/* ═══════════════════════════════════════
   BRAND LOGOS
   ═══════════════════════════════════════ */
.brands-two-rows {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.brand-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px 32px;
}

.brand-row img {
    height: 32px;
    width: auto;
    opacity: 0.5;
    filter: grayscale(1);
    transition: all var(--duration-base) var(--ease-out);
}

.brand-row img:hover {
    opacity: 0.8;
    filter: grayscale(0);
}

@media (prefers-color-scheme: dark) {
    .brand-row img { opacity: 0.4; }
    .brand-row img:hover { opacity: 0.9; }
}

/* ═══════════════════════════════════════
   ANIMATIONS (Entry)
   ═══════════════════════════════════════ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .hero-section .hero-content {
        animation: fadeInUp 0.6s var(--ease-out) both;
    }
    
    .hero-section .hero-visual {
        animation: fadeInScale 0.6s 0.2s var(--ease-out) both;
    }
    
    .card {
        animation: fadeInUp 0.5s var(--ease-out) both;
    }
    
    .card:nth-child(1) { animation-delay: 0s; }
    .card:nth-child(2) { animation-delay: 0.1s; }
    .card:nth-child(3) { animation-delay: 0.2s; }
    .card:nth-child(4) { animation-delay: 0.3s; }
    .card:nth-child(5) { animation-delay: 0.4s; }
    .card:nth-child(6) { animation-delay: 0.5s; }
}

/* ═══════════════════════════════════════
   MISC OVERRIDES
   ═══════════════════════════════════════ */
/* Remove old accent color references */
[class*="accent"] { color: inherit; }

/* Contact form wrap */
.contact-form-wrap {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: none;
}

/* Image alignment */
.aligncenter {
    display: block;
    margin: 24px auto;
}

/* Map section */
.map-section {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.map-wrapper iframe {
    display: block;
    width: 100%;
}

/* Contact grid */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════
   RESPONSIVE FALLBACKS
   ═══════════════════════════════════════ */
@media (max-width: 1200px) {
    .footer-grid { gap: 24px; }
    .feature-row { gap: 32px; }
}

@media (max-width: 768px) {
    .section-header { margin-bottom: 32px; }
    .page-hero-title { text-align: left; }
    .locations-grid { gap: 16px; }
    .location-card { padding: 20px; }
    .feature-row { margin-bottom: 40px; }
    .site-footer .footer-main { padding: 32px 0; }
}

/* Print */
@media print {
    .site-header { position: static; }
    .site-footer { break-inside: avoid; }
    .chat-box, .sidebar-form { display: none; }
}

/* ═══════════════════════════════════════
   THEME TOGGLE
   ═══════════════════════════════════════ */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    border: 1.5px solid var(--color-border-light);
    border-radius: var(--radius-full);
    background: var(--color-bg);
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-out);
    font-size: 1.125rem; line-height: 1;
    flex-shrink: 0; margin-left: 8px;
}
.theme-toggle:hover {
    border-color: var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
    transform: scale(1.05);
}
.theme-toggle:active { transform: scale(0.95); }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: inline; }
.theme-toggle .icon-sun { display: none; }

/* GSAP animation placeholders — скрываем контент ТОЛЬКО когда html.gsap-ready (JS+GSAP реально загружен).
   Если GSAP/CDN недоступен или отключены анимации (prefers-reduced-motion), контент виден сразу. */
html.gsap-ready .gsap-reveal { opacity: 0; transform: translateY(40px); }
html.gsap-ready .gsap-reveal.is-visible { opacity: 1; transform: translateY(0); }
html.gsap-ready .gsap-stagger-item { opacity: 0; transform: translateY(30px); }
html.gsap-ready .gsap-scale-in { opacity: 0; transform: scale(0.9); }

/* Hero image-backed */
.hero-image-section {
    position: relative;
    min-height: 85dvh;
    display: flex; align-items: center;
    overflow: hidden; isolation: isolate;
}
.hero-image-section::before {
    content: '';
    position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(135deg, rgba(10,52,96,0.30) 0%, rgba(14,16,21,0.20) 100%),
        image-set(
            url('/wp-content/themes/ace-raid-recovery/assets/img/lab-bg.webp') type('image/webp'),
            url('/wp-content/themes/ace-raid-recovery/assets/img/lab-bg.jpg') type('image/jpeg')
        ) center/cover no-repeat;
}
@media (prefers-color-scheme: dark) {
    .hero-image-section::before {
        background:
            linear-gradient(135deg, rgba(0,0,0,0.35) 0%, rgba(10,52,96,0.20) 100%),
            image-set(
            url('/wp-content/themes/ace-raid-recovery/assets/img/lab-bg.webp') type('image/webp'),
            url('/wp-content/themes/ace-raid-recovery/assets/img/lab-bg.jpg') type('image/jpeg')
        ) center/cover no-repeat;
    }
}
.hero-image-section .container { position: relative; z-index: 1; width: 100%; }
.hero-image-section .hero-content { max-width: 640px; }
.hero-image-section h1 {
    color: rgba(255,255,255,0.93); font-size: clamp(2.25rem,5vw,4rem); font-weight: 900;
    letter-spacing: -0.03em; line-height: 1.05; margin-bottom: 1.25rem;
}
.hero-image-section p {
    color: rgba(255,255,255,0.66);
    font-size: clamp(1rem,1.5vw,1.2rem); line-height: 1.7;
    max-width: 520px; margin-bottom: 2rem;
}
.hero-image-section .hero-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.hero-image-section .btn-primary {
    background: #ff7a1a; color: #14213d; border: none;
    padding: 16px 32px; font-size: 1rem; font-weight: 800;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 24px rgba(255,122,26,0.45);
    transition: all var(--duration-base) var(--ease-out);
}
.hero-image-section .btn-primary:hover {
    background: #ff8c33; color: #14213d;
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(255,122,26,0.55);
}
.hero-image-section .btn-ghost {
    color: rgba(255,255,255,0.8); font-weight: 600;
    font-size: 0.9375rem; padding: 16px 24px;
    transition: color var(--duration-fast) var(--ease-out);
}
.hero-image-section .btn-ghost:hover { color: #fff; }
.hero-stats {
    display: flex; gap: 40px; margin-top: 48px;
    padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-stat-number {
    font-size: clamp(1.5rem,2.5vw,2.25rem); font-weight: 900;
    color: rgba(255,255,255,0.93); letter-spacing: -0.02em;
    line-height: 1; margin-bottom: 4px;
}
.hero-stat-label { font-size: 0.8125rem; color: rgba(255,255,255,0.55); font-weight: 500; }
@media (max-width: 768px) {
    .hero-image-section { min-height: 70dvh; }
    .hero-stats { gap: 24px; flex-wrap: wrap; }
    .hero-stat { flex: 1; min-width: 100px; }
    .hero-image-section .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-image-section .btn-primary { text-align: center; }
}

/* Stats grid */
.stats-grid {
    display: grid; grid-template-columns: repeat(4,1fr); gap: 2px;
    background: var(--color-border-light);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg); overflow: hidden;
}
@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2,1fr); } }
.stat-card { background: var(--color-bg-elevated); padding: 32px 24px; text-align: center; transition: background var(--duration-base) var(--ease-out); }
.stat-card:hover { background: var(--color-bg-alt); }
.stat-number {
    font-size: clamp(1.75rem,3vw,2.75rem); font-weight: 900;
    color: var(--color-primary); letter-spacing: -0.03em;
    line-height: 1; margin-bottom: 6px;
}
.stat-label { font-size: 0.875rem; color: var(--color-text-secondary); font-weight: 500; }

/* Testimonials */
.testimonial-section { background: var(--color-bg-alt); }
.testimonial-card { max-width: 720px; margin: 0 auto; text-align: center; padding: 0 24px; }
.testimonial-card blockquote {
    font-size: clamp(1.05rem,1.8vw,1.35rem); line-height: 1.7;
    color: var(--color-text); font-weight: 500; margin-bottom: 24px;
    font-style: normal; quotes: none;
}
.testimonial-card blockquote::before {
    content: '\201C'; display: block; font-size: 4rem;
    color: var(--color-primary); opacity: 0.2;
    font-weight: 900; line-height: 0.5; margin-bottom: 16px;
}
.testimonial-author { display: flex; align-items: center; justify-content: center; gap: 12px; }
.testimonial-author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.testimonial-author-name { font-size: 0.9375rem; font-weight: 700; color: var(--color-text); }
.testimonial-author-role { font-size: 0.8125rem; color: var(--color-text-tertiary); }

/* CTA */
.cta-section {
    background: linear-gradient(135deg, var(--color-primary-dark) 0%, #051a30 100%);
    text-align: center; padding: 80px 0;
    margin-top: 80px;
}
.cta-section h2 { color: rgba(255,255,255,0.93); font-size: clamp(1.5rem,3vw,2.5rem); margin-bottom: 1rem; }
.cta-section p { color: rgba(255,255,255,0.60); margin: 0 auto 2rem; max-width: 520px; }
.cta-section .cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.cta-section .btn-primary { background: #ff7a1a; color: #14213d; }
.cta-section .btn-primary:hover { background: #ff8c33; color: #14213d; transform: translateY(-2px); box-shadow: 0 8px 32px rgba(255,122,26,0.45); }
.cta-section .btn-ghost-light {
    color: rgba(255,255,255,0.8); border: 1.5px solid rgba(255,255,255,0.25);
    padding: 16px 32px; border-radius: var(--radius-md); font-weight: 600;
    transition: all var(--duration-base) var(--ease-out);
}
.cta-section .btn-ghost-light:hover { border-color: rgba(255,255,255,0.5); color: #fff; }

/* Process steps */
.process-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; counter-reset: step; }
@media (max-width: 900px) { .process-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 600px) { .process-grid { grid-template-columns: 1fr; } }
.process-step { text-align: center; padding: 32px 20px; position: relative; }
.process-step::before {
    counter-increment: step; content: counter(step);
    display: flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; margin: 0 auto 16px;
    background: var(--color-primary-light); color: var(--color-primary);
    font-weight: 800; font-size: 1.25rem; border-radius: 50%; line-height: 1;
}
.process-step h3 { font-size: 1rem; margin-bottom: 8px; }
.process-step p { font-size: 0.875rem; margin: 0; color: var(--color-text-secondary); }

/* Custom scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--color-bg-alt); }
::-webkit-scrollbar-thumb { background: var(--color-border); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--color-text-tertiary); }

/* ═══════════════════════════════════════
   MOBILE OPTIMIZATION — comprehensive fixes
   ═══════════════════════════════════════ */

/* Large touch targets for mobile */
@media (pointer: coarse) {
    .nav-menu a,
    .footer-links a,
    .btn,
    .phone-btn,
    .theme-toggle,
    .chat-send,
    .wo-form-fields input[type="submit"],
    .wpcf7-form input[type="submit"] {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    .wo-form-fields input,
    .wo-form-fields select,
    .wo-form-fields textarea,
    .wpcf7-form input,
    .wpcf7-form select,
    .wpcf7-form textarea {
        font-size: 16px !important; /* prevents iOS zoom on focus */
    }
}

/* ── Navigation mobile ── */
@media (max-width: 768px) {
    .main-navigation {
        position: static;
    }
    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: none;
        border: 1.5px solid var(--color-border-light);
        border-radius: var(--radius-md);
        font-size: 1.25rem;
        cursor: pointer;
        color: var(--color-text);
        padding: 0;
        transition: all var(--duration-fast) var(--ease-out);
        margin-right: 8px;
    }
    .menu-toggle:hover {
        border-color: var(--color-border);
        background: var(--color-surface);
    }
    .menu-toggle .hamburger-icon {
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding: 6px;
    }
    .menu-toggle .hamburger-icon span {
        display: block;
        width: 18px;
        height: 2px;
        background: var(--color-text);
        border-radius: 2px;
        transition: all var(--duration-fast) var(--ease-out);
    }
    .menu-toggle.active .hamburger-icon span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }
    .menu-toggle.active .hamburger-icon span:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .hamburger-icon span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }
    
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 100;
        background: var(--color-bg);
        border-bottom: 1px solid var(--color-border);
        flex-direction: column;
        padding: 8px 16px 16px;
        gap: 2px;
        box-shadow: var(--shadow-lg);
        max-height: 80dvh;
        overflow-y: auto;
    }
    .nav-menu.active {
        display: flex;
    }
    .nav-menu a {
        padding: 14px 16px;
        font-size: 1rem;
        border-radius: var(--radius-md);
        width: 100%;
    }
    
    .header-inner {
        gap: 0;
    }
    .header-cta {
        display: flex;
        align-items: center;
        gap: 4px;
    }
    .phone-btn {
        padding: 8px 14px;
        font-size: 0.8rem;
        white-space: nowrap;
    }
    .phone-btn::before {
        display: none;
    }
    .site-logo-img {
        height: 40px;
    }
}

/* ── Hero mobile ── */
@media (max-width: 768px) {
    .hero-image-section {
        min-height: 80dvh;
        padding: 80px 0 40px;
    }
    .hero-image-section h1 {
        font-size: clamp(1.75rem, 6vw, 2.25rem);
        letter-spacing: -0.02em;
    }
    .hero-image-section p {
        font-size: 0.9375rem;
        margin-bottom: 1.5rem;
        max-width: 100%;
    }
    .hero-image-section .hero-actions {
        flex-direction: column;
        gap: 12px;
    }
    .hero-image-section .btn-primary {
        width: 100%;
        text-align: center;
        padding: 14px 24px;
        justify-content: center;
    }
    .hero-image-section .btn-ghost {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
        justify-content: center;
    }
    .hero-stats {
        flex-wrap: wrap;
        gap: 16px;
        margin-top: 32px;
        padding-top: 24px;
    }
    .hero-stat {
        flex: 0 0 calc(50% - 8px);
        text-align: center;
    }
    .hero-stat-number {
        font-size: clamp(1.25rem, 4vw, 1.75rem);
    }
    .hero-stat-label {
        font-size: 0.75rem;
    }
}

/* ── Stats grid mobile ── */
@media (max-width: 600px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1px;
        border-radius: var(--radius-md);
    }
    .stat-card {
        padding: 20px 16px;
    }
    .stat-number {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
    .stat-label {
        font-size: 0.8125rem;
    }
}

/* ── Page hero mobile ── */
@media (max-width: 768px) {
    .page-hero {
        padding: 48px 0 32px;
    }
    .page-hero-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
        text-align: left;
    }
}

/* ── Cards mobile ── */
@media (max-width: 600px) {
    .card {
        padding: 24px 20px;
    }
    .card h3 {
        font-size: 1.05rem;
    }
    .card p {
        font-size: 0.875rem;
    }
    .location-card {
        padding: 18px;
    }
    .location-card h4 {
        font-size: 0.9375rem;
    }
}

/* ── Process steps mobile ── */
@media (max-width: 600px) {
    .process-step {
        padding: 24px 16px;
    }
    .process-step::before {
        width: 40px;
        height: 40px;
        font-size: 1.05rem;
    }
    .process-step h3 {
        font-size: 0.9375rem;
    }
    .process-step p {
        font-size: 0.8125rem;
    }
}

/* ── Testimonial mobile ── */
@media (max-width: 768px) {
    .testimonial-section {
        padding: 48px 0;
    }
    .testimonial-card blockquote {
        font-size: 0.9375rem;
        line-height: 1.6;
    }
    .testimonial-card blockquote::before {
        font-size: 3rem;
        margin-bottom: 12px;
    }
    .testimonial-author {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    .testimonial-author-info {
        text-align: center;
    }
}

/* ── CTA section mobile ── */
@media (max-width: 768px) {
    .cta-section {
        padding: 48px 24px;
        margin-top: 48px;
    }
    .cta-section h2 {
        font-size: 1.5rem;
    }
    .cta-section p {
        font-size: 0.9375rem;
    }
    .cta-section .cta-actions {
        flex-direction: column;
        gap: 12px;
    }
    .cta-section .btn-primary,
    .cta-section .btn-ghost-light {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

/* ── Section padding mobile ── */
@media (max-width: 768px) {
    .section-padding {
        padding: 40px 0;
    }
    .section-header {
        margin-bottom: 28px;
    }
    .section-header h2 {
        font-size: 1.35rem;
    }
    .section-header p {
        font-size: 0.875rem;
    }
}

/* ── Footer mobile ── */
@media (max-width: 600px) {
    .footer-main {
        padding: 32px 0;
    }
    .footer-col {
        text-align: center;
    }
    .footer-col h4 {
        margin-bottom: 12px;
    }
    .footer-phone {
        text-align: center;
    }
    .footer-bottom {
        text-align: center;
    }
}

/* ── Sidebar mobile ── */
@media (max-width: 900px) {
    .sidebar-widget {
        padding: 20px;
    }
}

/* ── Form mobile ── */
@media (max-width: 768px) {
    .wo-form-wrap {
        padding: 20px;
    }
    .wo-form-wrap h2 {
        font-size: 1.25rem;
    }
    .wo-form-fields label {
        font-size: 0.8125rem;
    }
}

/* ── Error page mobile ── */
@media (max-width: 768px) {
    .error-404 {
        padding: 60px 24px;
    }
    .error-404 h1 {
        font-size: 4rem;
    }
}

/* ── Content area mobile ── */
@media (max-width: 768px) {
    .content-layout {
        padding-top: 24px;
        padding-bottom: 40px;
    }
    .content-main table {
        font-size: 0.8125rem;
    }
    .content-main th,
    .content-main td {
        padding: 8px 10px;
    }
}

/* ── Brands mobile ── */
@media (max-width: 600px) {
    .brand-row {
        gap: 16px 20px;
    }
    .brand-row img {
        height: 24px;
    }
}

/* ── Hide WordPress admin bar artifacts ── */
@media (max-width: 600px) {
    #wpadminbar { display: none !important; }
    html { margin-top: 0 !important; }
}

/* ── Smooth scrolling on mobile ── */
@supports (-webkit-overflow-scrolling: touch) {
    .chat-box-messages {
        -webkit-overflow-scrolling: touch;
    }
    .nav-menu {
        -webkit-overflow-scrolling: touch;
    }
}

/* ── Prevent horizontal overflow ── */
img, video, iframe, svg {
    max-width: 100%;
    height: auto;
}
.site {
    overflow-x: hidden;
}

/* ===== Плитки услуг в стиле 8089 (белые карточки, тень, компактные иконки) ===== */
.services-section .card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    text-align: left;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.services-section .card:hover {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    transform: translateY(-3px);
}
.services-section .card-icon {
    display: block;
    margin-bottom: 15px;
    line-height: 1;
}
.services-section .card-icon svg {
    width: 44px;
    height: 44px;
    color: var(--color-primary, #0459a0);
    display: block;
}
.services-section .card h3 {
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}
.services-section .card h3 a {
    color: var(--color-text, #1a1d23);
    text-decoration: none;
    transition: color 0.2s ease;
}
.services-section .card h3 a:hover {
    color: var(--color-primary, #0459a0);
}
.services-section .card p {
    color: #666666;
    font-size: 0.95rem;
    margin-bottom: 0;
}
@media (max-width: 768px) {
    .services-section .card { padding: 24px 20px; }
}

/* ===== Версия сайта ===== */
.site-version-badge {
    display: inline-block;
    margin-left: 10px;
    padding: 2px 8px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--color-text-tertiary, #8b8f98);
    background: var(--color-surface, #f0f1f3);
    border: 1px solid var(--color-border, #e2e4e9);
    border-radius: 999px;
    vertical-align: middle;
    white-space: nowrap;
}
.footer-version {
    font-size: 0.8rem;
    color: var(--color-text-tertiary, #8b8f98);
}

/* ===== Case studies: карточки ===== */
.case-studies-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 28px;
    margin-top: 28px;
}

.case-studies-grid > * {
    flex: 0 1 calc((100% - 56px) / 3);
    min-width: 320px;
}
.case-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.case-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.14);
}
.case-card-img {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #0a1a2f;
}
.case-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.case-card:hover .case-card-img img { transform: scale(1.04); }
.case-card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.case-card-title {
    font-size: 1.1rem;
    margin: 0 0 10px;
    line-height: 1.35;
}
.case-card-title a {
    color: var(--color-text, #1a1d23);
    text-decoration: none;
    transition: color 0.2s ease;
}
.case-card-title a:hover { color: var(--color-primary, #0459a0); }
.case-card-excerpt {
    color: #666666;
    font-size: 0.95rem;
    margin: 0 0 18px;
    flex: 1;
}
.case-studies-intro {
    font-size: 1.05rem;
    color: var(--color-text-secondary, #5b5f69);
    margin: 0 0 8px;
}
/* Картинка в начале страницы кейса */
.case-hero-img { margin: 0 0 24px; }
.case-hero-img img {
    width: 100%;
    border-radius: 12px;
    display: block;
}

/* === Tap to Call — sticky mobile bar (CTA по фон Ресторффу) === */
.tap-to-call-bar {
    display: none;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    z-index: 9999;
    background: #ff7a1a;
    color: #14213d;
    font-weight: 800;
    font-size: 1.05rem;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.25);
}
.tap-to-call-bar svg { width: 20px; height: 20px; flex: 0 0 20px; }
.tap-to-call-bar:hover { background: #ff8c33; color: #14213d; }
@media (max-width: 768px) {
    .tap-to-call-bar { display: flex; }
    body { padding-bottom: 62px; }
}

/* === Touch targets: минимум 44x44 на мобильных (WCAG 2.5.5) === */
@media (max-width: 768px) {
    .btn, .btn-primary, .btn-secondary, .btn-ghost, .btn-ghost-light, .btn-outline,
    .phone-btn, .menu-toggle, .tap-to-call-bar,
    .nav-menu a, .footer-links a, .card h3 a, .location-phone a, .location-city a {
        min-height: 44px;
        min-width: 44px;
    }
    .nav-menu a, .footer-links a, .card h3 a, .location-phone a, .location-city a {
        display: inline-flex;
        align-items: center;
    }
    .phone-btn, .menu-toggle { padding-left: 14px; padding-right: 14px; }
}

/* === Hero microcopy + smooth anchors === */
html { scroll-behavior: smooth; }
#how-it-works { scroll-margin-top: 24px; }
.hero-microcopy {
    margin: 1rem 0 0;
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
    gap: 8px;
}
.hero-microcopy::before {
    content: "\2713";
    color: #7fe0a5;
    font-weight: 800;
}

.card-grid .section-cta {
    margin: 0 auto;
    width: 100%;
}
/* ═══════════════════════════════════════
   FAQ PAGE — ACCORDION (v1.46)
   Компактные плашки + иконка раскрытия справа;
   заголовки разделов — цветные баннеры-лейблы
   ═══════════════════════════════════════ */
.faq-section,
.faq-item,
.faq-cta {
    max-width: 680px;
}

.faq-section {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 48px 0 14px;
    padding: 9px 14px;
    border-left: 4px solid var(--color-primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: var(--color-primary-light);
    font-size: 1.05rem;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-primary);
}
.faq-section:first-child { margin-top: 0; }
.faq-section::after {
    content: '';
    flex: 1 1 auto;
    height: 1px;
    background: var(--color-border);
}
/* В системной тёмной теме primary (#0459a0) на primary-light (#0a2040) слишком
   тёмный — используем светлый синий. Селектор только media: переменные темы
   переключаются по системной схеме (data-theme на переменные не влияет). */
@media (prefers-color-scheme: dark) {
    .faq-section { color: #8ab6e8; }
}

.faq-item {
    padding: 0;                     /* перекрывает старый .faq-item { padding: 20px 0 } */
    margin-bottom: 8px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg-elevated);
    overflow: hidden;
    transition: border-color var(--duration-fast) var(--ease-out),
                box-shadow var(--duration-fast) var(--ease-out);
}
.faq-item[open] {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 16px;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.35;
    color: var(--color-text);
    user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover {
    background: var(--color-bg-alt);
    color: var(--color-primary);
}
.faq-item[open] summary { color: var(--color-primary); }

.faq-q {
    flex: 1 1 auto;
    min-width: 0;
}

/* иконка «+» справа (становится «−» при открытии) */
.faq-icon {
    position: relative;
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    background: var(--color-primary-light);
}
.faq-icon::before,
.faq-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    background: var(--color-primary);
    border-radius: 2px;
}
.faq-icon::before {
    width: 10px;
    height: 2px;
    transform: translate(-50%, -50%);
}
.faq-icon::after {
    width: 2px;
    height: 10px;
    transform: translate(-50%, -50%);
    transition: opacity var(--duration-base) var(--ease-out),
                transform var(--duration-base) var(--ease-out);
}
.faq-item[open] .faq-icon::after {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-answer {
    padding: 0 16px 13px;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
    overflow: hidden;               /* нужно для анимации высоты (JS) */
}
.faq-answer p { margin: 0; }
.faq-answer a {
    color: var(--color-primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
}
/* Плавное раскрытие/закрытие анимирует JS: assets/js/faq-accordion.js
   (анимация height + opacity через Web Animations API).
   Без JS аккордеон работает как обычный <details>. */

.faq-cta {
    margin-top: 32px;
    padding: 22px 26px;
    border: 1px solid var(--color-border-light);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius-md);
    background: var(--color-bg-alt);
}
.faq-cta-title {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--color-text);
}
.faq-cta-text {
    color: var(--color-text-secondary);
    line-height: 1.7;
}
.faq-cta-text strong { color: var(--color-text); }
.faq-cta-text a {
    color: var(--color-primary);
    font-weight: 600;
}
.faq-cta-text a:hover { text-decoration: underline; }
.faq-cta-tel {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--color-primary);
    text-decoration: none;
    white-space: nowrap;
}
.faq-cta-tel:hover { text-decoration: underline; }

@media (max-width: 768px) {
    .faq-section { font-size: 0.92rem; letter-spacing: 0.05em; margin: 34px 0 12px; padding: 8px 12px; }
    .faq-item summary { padding: 10px 14px; font-size: 0.95rem; }
    .faq-icon { width: 18px; height: 18px; border-radius: 5px; }
    .faq-answer { padding: 0 14px 12px; font-size: 0.9rem; }
    .faq-cta { padding: 18px 20px; }
}

/* ═══════════════════════════════════════
   CARD ICONS — светлая подложка, насыщенная иконка (v1.52)
   Крупный размер сохранён (72px чип / 34px иконка).
   При наведении — мини-анимация «отрисовки линии» (JS задаёт --icon-len).
   ═══════════════════════════════════════ */
.card-icon,
.services-section .card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    margin-bottom: 20px;
    border-radius: 18px;
    border: 1px solid rgba(4, 89, 160, 0.22);
    background: linear-gradient(140deg, var(--color-primary-light) 0%, rgba(4, 89, 160, 0.16) 100%);
    color: #0a5eb8;
    line-height: 1;
    box-shadow: 0 4px 14px rgba(4, 89, 160, 0.12),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: transform var(--duration-base) var(--ease-out),
                box-shadow var(--duration-base) var(--ease-out),
                border-color var(--duration-base) var(--ease-out);
}

.card-icon svg,
.services-section .card-icon svg {
    width: 34px;
    height: 34px;
    display: block;
    color: inherit;
    filter: drop-shadow(0 1px 1px rgba(4, 89, 160, 0.18));
}

/* единая толщина линий и скругления */
.card-icon svg,
.card-icon svg * {
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ── мини-анимация: отрисовка линии при наведении ── */
.card-icon svg * {
    stroke-dasharray: var(--icon-len, 200);
    stroke-dashoffset: 0;
}
.card:hover .card-icon svg * {
    animation: icon-draw 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-delay: calc(var(--icon-i, 0) * 110ms);
}
@keyframes icon-draw {
    from { stroke-dashoffset: var(--icon-len, 200); }
    to   { stroke-dashoffset: 0; }
}

.card:hover .card-icon {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 10px 24px rgba(4, 89, 160, 0.22),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border-color: rgba(4, 89, 160, 0.38);
}

@media (prefers-color-scheme: dark) {
    .card-icon,
    .services-section .card-icon {
        border-color: rgba(138, 182, 232, 0.26);
        background: linear-gradient(140deg, rgba(138, 182, 232, 0.20) 0%, rgba(138, 182, 232, 0.07) 100%);
        color: #8ab6e8;
        box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3),
                    inset 0 1px 0 rgba(255, 255, 255, 0.08);
    }
    .card:hover .card-icon {
        box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4),
                    inset 0 1px 0 rgba(255, 255, 255, 0.08);
        border-color: rgba(138, 182, 232, 0.42);
    }
}

@media (max-width: 768px) {
    .card-icon,
    .services-section .card-icon {
        width: 60px;
        height: 60px;
        border-radius: 15px;
        margin-bottom: 16px;
    }
    .card-icon svg,
    .services-section .card-icon svg {
        width: 28px;
        height: 28px;
    }
}

/* ═══════════════════════════════════════
   PAGE BLOCKS — лендинги (v1.53+)
   Общие классы .pg-*: лид, шаги, заголовки секций, опции,
   предупреждение, CTA, локации. Используются на how-it-works, pricing и др.
   ═══════════════════════════════════════ */

/* — лид — */
.pg-lead {
    max-width: 680px;
    margin-bottom: 34px;
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--color-text-secondary);
}
.pg-lead strong, .pg-lead a { color: var(--color-primary); }

/* — шаги 1–4: карточки — */
.pg-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 34px;
}
.pg-step {
    padding: 22px 22px 20px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg-elevated);
    box-shadow: var(--shadow-sm);
    transition: border-color var(--duration-base) var(--ease-out),
                box-shadow var(--duration-base) var(--ease-out),
                transform var(--duration-base) var(--ease-out);
}
.pg-step:hover {
    border-color: rgba(4, 89, 160, 0.32);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}
.pg-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
    border-radius: 13px;
    border: 1px solid rgba(4, 89, 160, 0.22);
    background: linear-gradient(140deg, var(--color-primary-light) 0%, rgba(4, 89, 160, 0.16) 100%);
    font-size: 1.25rem;
    font-weight: 800;
    color: #0a5eb8;
    line-height: 1;
}
.pg-step-title {
    margin-bottom: 8px;
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--color-text);
}
.pg-step p {
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--color-text-secondary);
}
.pg-step p:last-child { margin-bottom: 0; }
.pg-step strong { color: var(--color-text); }
.pg-step a { color: var(--color-primary); font-weight: 600; }
.pg-step-note {
    padding-left: 12px;
    border-left: 3px solid var(--color-primary-light);
    font-size: 0.88rem !important;
    font-style: italic;
}

/* — сроки: акцентная полоса — */
.pg-callout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 26px;
    margin-bottom: 34px;
    padding: 20px 24px;
    border-left: 4px solid var(--color-primary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    background: linear-gradient(120deg, var(--color-primary-light) 0%, rgba(4, 89, 160, 0.07) 100%);
}
.pg-callout-item { display: flex; flex-direction: column; }
.pg-callout-num {
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1.1;
    color: #0a5eb8;
    letter-spacing: -0.02em;
}
.pg-callout-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-secondary);
}
.pg-callout-note {
    grid-column: 1 / -1;
    padding-top: 10px;
    border-top: 1px solid rgba(4, 89, 160, 0.16);
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

/* — заголовок секции (как на FAQ) — */
.pg-h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 40px 0 14px;
    padding: 9px 14px;
    border-left: 4px solid var(--color-primary);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: var(--color-primary-light);
    font-size: 1.05rem;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #0a5eb8;
}
.pg-h2::after {
    content: '';
    flex: 1 1 auto;
    height: 1px;
    background: var(--color-border);
}

/* — опции: 4 карточки — */
.pg-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 34px;
}
.pg-option {
    padding: 16px 18px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg-elevated);
    transition: border-color var(--duration-base) var(--ease-out),
                box-shadow var(--duration-base) var(--ease-out);
}
.pg-option:hover {
    border-color: rgba(4, 89, 160, 0.32);
    box-shadow: var(--shadow-sm);
}
.pg-option-name {
    margin-bottom: 5px;
    font-size: 1rem;
    font-weight: 800;
    color: #0a5eb8;
}
.pg-option p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

/* — предупреждение — */
.pg-warning {
    margin-bottom: 34px;
    padding: 22px 24px;
    border: 1px solid rgba(180, 83, 9, 0.28);
    border-left: 4px solid #b45309;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.10) 0%, rgba(180, 83, 9, 0.05) 100%);
}
.pg-warning-title {
    margin-bottom: 12px;
    font-size: 1.05rem;
    font-weight: 800;
    color: #92400e;
}
.pg-warning-list { list-style: none; }
.pg-warning-list li {
    position: relative;
    margin-bottom: 9px;
    padding-left: 26px;
    font-size: 0.93rem;
    line-height: 1.6;
    color: var(--color-text);
}
.pg-warning-list li:last-child { margin-bottom: 0; }
.pg-warning-list li::before {
    content: '✕';
    position: absolute;
    left: 0;
    top: 0;
    width: 17px;
    height: 17px;
    margin-top: 4px;
    border-radius: 50%;
    background: rgba(180, 83, 9, 0.14);
    color: #b45309;
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 17px;
    text-align: center;
}
.pg-warning-do {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(180, 83, 9, 0.22);
    font-size: 0.93rem;
    font-weight: 600;
    color: var(--color-text);
}
.pg-warning-do a { color: #b45309; font-weight: 800; text-decoration: none; }
.pg-warning-do a:hover { text-decoration: underline; }

/* — CTA — */
.pg-cta {
    margin-bottom: 34px;
    padding: 28px 28px 26px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #1e7ac4 0%, #0b62b0 45%, #0a3460 100%);
    color: #fff;
    text-align: center;
    box-shadow: 0 10px 30px rgba(4, 89, 160, 0.28);
}
.pg-cta-title {
    margin-bottom: 8px;
    font-size: 1.35rem;
    font-weight: 800;
    color: #fff;
}
.pg-cta p {
    margin-bottom: 6px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}
.pg-cta a { color: #fff; font-weight: 700; }
.pg-cta-note {
    font-size: 0.9rem !important;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75) !important;
}
.pg-cta-btn {
    display: inline-block;
    margin-top: 14px;
    padding: 13px 30px;
    border-radius: var(--radius-full);
    background: #fff;
    color: #0a3460 !important;
    font-size: 1rem;
    font-weight: 800;
    text-decoration: none;
    transition: transform var(--duration-base) var(--ease-out),
                box-shadow var(--duration-base) var(--ease-out);
}
.pg-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

/* — локации — */
.pg-locations {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}
.pg-loc {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 14px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg-alt);
}
.pg-loc-city {
    font-size: 1rem;
    font-weight: 800;
    color: var(--color-text);
}
.pg-loc-addr {
    font-size: 0.86rem;
    line-height: 1.5;
    color: var(--color-text-secondary);
}

/* — тёмная тема — */
@media (prefers-color-scheme: dark) {
    .pg-step-num,
    .pg-h2 {
        background: linear-gradient(140deg, rgba(138, 182, 232, 0.18) 0%, rgba(138, 182, 232, 0.07) 100%);
        color: #8ab6e8;
        border-color: rgba(138, 182, 232, 0.26);
    }
    .pg-h2 { background: rgba(138, 182, 232, 0.14); border-color: rgba(138, 182, 232, 0.26); }
    .pg-step-num { color: #8ab6e8; }
    .pg-callout-num,
    .pg-option-name { color: #8ab6e8; }
    .pg-callout {
        background: linear-gradient(120deg, rgba(138, 182, 232, 0.14) 0%, rgba(138, 182, 232, 0.04) 100%);
        border-left-color: #8ab6e8;
    }
    .pg-warning {
        border-color: rgba(245, 158, 11, 0.30);
        border-left-color: #d97706;
        background: linear-gradient(135deg, rgba(180, 83, 9, 0.20) 0%, rgba(180, 83, 9, 0.08) 100%);
    }
    .pg-warning-title { color: #fbbf24; }
    .pg-warning-list li::before { background: rgba(245, 158, 11, 0.20); color: #fbbf24; }
    .pg-warning-do a { color: #fbbf24; }
    .pg-cta { background: linear-gradient(135deg, #1668ac 0%, #0a4f95 45%, #062646 100%); }
    .pg-cta-btn { background: #e8f1fb; color: #062646 !important; }
}

/* — мобильные — */
@media (max-width: 768px) {
    .pg-steps, .pg-options { grid-template-columns: 1fr; gap: 14px; }
    .pg-callout { grid-template-columns: 1fr; gap: 14px; padding: 18px 18px; }
    .pg-callout-num { font-size: 1.6rem; }
    .pg-locations { grid-template-columns: 1fr; }
    .pg-step { padding: 18px 16px; }
    .pg-cta { padding: 22px 18px; }
    .pg-cta-title { font-size: 1.15rem; }
}


/* ── Факторы цены (страница pricing) ── */
.pg-factors {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 34px;
}
.pg-factor {
    padding: 16px 18px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg-elevated);
    transition: border-color var(--duration-base) var(--ease-out),
                box-shadow var(--duration-base) var(--ease-out);
}
.pg-factor:hover {
    border-color: rgba(4, 89, 160, 0.32);
    box-shadow: var(--shadow-sm);
}
.pg-factor-name {
    margin-bottom: 5px;
    font-size: 1rem;
    font-weight: 800;
    color: #0a5eb8;
}
.pg-factor p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

/* ── Диапазоны цен ── */
.pg-prices {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 18px;
}
.pg-price {
    padding: 20px 20px 18px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg-elevated);
}
.pg-price.featured {
    border-color: rgba(4, 89, 160, 0.34);
    background: linear-gradient(140deg, var(--color-primary-light) 0%, rgba(4, 89, 160, 0.06) 100%);
    box-shadow: 0 6px 18px rgba(4, 89, 160, 0.10);
}
.pg-price-name {
    margin-bottom: 7px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--color-text);
}
.pg-price-amount {
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: #0a5eb8;
}
.pg-price-note {
    margin-top: 3px;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
}
.pg-note {
    margin-bottom: 34px;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

/* ── Гарантия ── */
.pg-guarantee {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 34px;
    padding: 22px 24px;
    border: 1px solid rgba(4, 89, 160, 0.22);
    border-radius: var(--radius-md);
    background: linear-gradient(120deg, var(--color-primary-light) 0%, rgba(4, 89, 160, 0.08) 100%);
}
.pg-guarantee-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 17px;
    background: linear-gradient(140deg, #2b8ee0 0%, #0b62b0 48%, #0a3460 100%);
    color: #fff;
    font-size: 1.4rem;
    font-weight: 800;
    box-shadow: 0 6px 16px rgba(4, 89, 160, 0.28);
}
.pg-guarantee-title {
    margin-bottom: 5px;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-text);
}
.pg-guarantee p {
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--color-text-secondary);
}

/* ── Что входит (галочки) ── */
.pg-checklist {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 20px;
    margin-bottom: 34px;
    list-style: none;
}
.pg-checklist li {
    position: relative;
    padding-left: 30px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text);
}
.pg-checklist li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    margin-top: 3px;
    border-radius: 50%;
    background: rgba(4, 89, 160, 0.12);
    color: #0a5eb8;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 20px;
    text-align: center;
}

/* ── Вопрос-ответ ── */
.pg-faq { margin-bottom: 34px; }
.pg-faq-item {
    margin-bottom: 10px;
    padding: 16px 18px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg-elevated);
}
.pg-faq-item:last-child { margin-bottom: 0; }
.pg-faq-q {
    margin-bottom: 5px;
    font-size: 1rem;
    font-weight: 800;
    color: #0a5eb8;
}
.pg-faq-a {
    font-size: 0.93rem;
    line-height: 1.65;
    color: var(--color-text-secondary);
}

/* ── тёмная тема для pricing-блоков ── */
@media (prefers-color-scheme: dark) {
    .pg-factor-name,
    .pg-price-amount,
    .pg-checklist li::before,
    .pg-faq-q { color: #8ab6e8; }
    .pg-price.featured {
        border-color: rgba(138, 182, 232, 0.30);
        background: linear-gradient(140deg, rgba(138, 182, 232, 0.14) 0%, rgba(138, 182, 232, 0.04) 100%);
    }
    .pg-guarantee {
        border-color: rgba(138, 182, 232, 0.24);
        background: linear-gradient(120deg, rgba(138, 182, 232, 0.16) 0%, rgba(138, 182, 232, 0.05) 100%);
    }
    .pg-checklist li::before { background: rgba(138, 182, 232, 0.16); }
}

/* ── мобильные ── */
@media (max-width: 768px) {
    .pg-factors, .pg-prices, .pg-checklist { grid-template-columns: 1fr; }
    .pg-guarantee { flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px; }
    .pg-price-amount { font-size: 1.35rem; }
}

/* ── Карточки кейсов (страница case-studies) ── */
.pg-cases {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 34px;
}
.pg-case {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 18px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: var(--color-bg-elevated);
    transition: border-color var(--duration-base) var(--ease-out),
                box-shadow var(--duration-base) var(--ease-out),
                transform var(--duration-base) var(--ease-out);
}
.pg-case:hover {
    border-color: rgba(4, 89, 160, 0.32);
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}
.pg-case-title {
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.4;
    color: #0a5eb8;
    text-decoration: none;
}
.pg-case-title:hover { text-decoration: underline; text-underline-offset: 2px; }
.pg-case-text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--color-text-secondary);
}

/* ── Обычный текст страницы ── */
.pg-prose {
    max-width: 680px;
    margin-bottom: 22px;
    font-size: 1rem;
    line-height: 1.75;
    color: var(--color-text-secondary);
}

/* ── Вариант акцентной полосы на 3 колонки ── */
.pg-callout--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (prefers-color-scheme: dark) {
    .pg-case-title { color: #8ab6e8; }
}

@media (max-width: 768px) {
    .pg-cases { grid-template-columns: 1fr; }
    .pg-callout--3 { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════
   CASE STUDIES — в системе блоков (v1.57)
   Карточки кейсов на переменных темы + ссылки-стрелки
   ═══════════════════════════════════════ */
.case-card {
    background: var(--color-bg-elevated);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.case-card:hover { box-shadow: var(--shadow-md); }
.case-card-title a { color: var(--color-text); }
.case-card-title a:hover { color: #0a5eb8; }
.case-card-excerpt { color: var(--color-text-secondary); }
.case-card-link {
    margin-top: auto;
    font-size: 0.93rem;
    font-weight: 700;
    color: #0a5eb8;
    text-decoration: none;
}
.case-card-link:hover { text-decoration: underline; text-underline-offset: 2px; }
.case-card-link span {
    display: inline-block;
    transition: transform var(--duration-fast) var(--ease-out);
}
.case-card:hover .case-card-link span { transform: translateX(3px); }

/* карточка «Industry research» — без картинки, на всю ширину */
.case-card--research { margin-bottom: 34px; }

@media (prefers-color-scheme: dark) {
    .case-card-title a:hover,
    .case-card-link { color: #8ab6e8; }
}

@media (max-width: 768px) {
    .case-studies-grid > * { flex: 1 1 100%; min-width: 0; }
}

/* ═══════════════════════════════════════
   CASE STUDIES — журнальная сетка (v1.58)
   Ровные ряды: широкая карточка + пары
   ═══════════════════════════════════════ */
.case-studies-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin: 0 0 34px;
}
.case-studies-grid > * { flex: none; min-width: 0; }

.case-card--wide { grid-column: 1 / -1; flex-direction: row; }
.case-card--wide .case-card-img {
    flex: 0 0 44%;
    aspect-ratio: auto;
    align-self: stretch;
}
.case-card--wide .case-card-img img { height: 100%; }
.case-card--wide .case-card-body { padding: 26px 28px; }
.case-card--wide .case-card-title { font-size: 1.25rem; }

@media (max-width: 768px) {
    .case-studies-grid { grid-template-columns: 1fr; gap: 18px; }
    .case-card--wide { flex-direction: column; }
    .case-card--wide .case-card-img { flex: none; aspect-ratio: 16 / 9; }
    .case-card--wide .case-card-body { padding: 20px; }
    .case-card--wide .case-card-title { font-size: 1.1rem; }
}

/* ═══════════════════════════════════════
   HERO SUBTITLE (v1.59)
   Подзаголовок под заголовком страницы — в стиле лида
   ═══════════════════════════════════════ */
.page-hero-sub {
    max-width: 680px;
    margin: 16px auto 0;
    font-size: 1.1rem;
    line-height: 1.7;
    text-align: center;
    color: var(--color-text-secondary);
}
@media (max-width: 768px) {
    .page-hero-sub { font-size: 1rem; margin-top: 12px; }
}

/* ═══════════════════════════════════════
   SERVICES PAGES — таблицы, списки, примечания (v1.60)
   ═══════════════════════════════════════ */

/* таблица внутри карточки */
.pg-table-wrap {
    max-width: 100%;
    margin: 0 0 34px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow-x: auto;
    background: var(--color-bg-elevated);
}
.pg-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.93rem;
}
.pg-table th {
    padding: 12px 16px;
    text-align: left;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #0a5eb8;
    background: var(--color-primary-light);
    border-bottom: 1px solid var(--color-border);
}
.pg-table td {
    padding: 12px 16px;
    vertical-align: top;
    line-height: 1.55;
    color: var(--color-text-secondary);
    border-bottom: 1px solid var(--color-border-light);
}
.pg-table td:first-child { font-weight: 700; color: var(--color-text); }
.pg-table tbody tr:last-child td { border-bottom: none; }
.pg-table tbody tr:hover td { background: var(--color-bg-alt); }
.pg-table a { color: #0a5eb8; font-weight: 600; text-decoration: none; }
.pg-table a:hover { text-decoration: underline; text-underline-offset: 2px; }

/* список в карточке с акцентными маркерами */
.pg-list {
    margin: 0 0 34px;
    padding: 18px 24px 18px 42px;
    border: 1px solid var(--color-border);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius-md);
    background: var(--color-bg-elevated);
    list-style: none;
}
.pg-list li {
    position: relative;
    margin-bottom: 9px;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text);
}
.pg-list li:last-child { margin-bottom: 0; }
.pg-list li::before {
    content: '';
    position: absolute;
    left: -19px;
    top: 0.58em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #0a5eb8;
}

/* карточка «Real example» */
.pg-case--note {
    margin-bottom: 34px;
    border-left: 4px solid var(--color-primary);
    background: linear-gradient(120deg, var(--color-primary-light) 0%, rgba(4, 89, 160, 0.05) 100%);
}
.pg-case--note .pg-case-text {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-text);
}
.pg-case--note strong { color: #0a5eb8; }

@media (prefers-color-scheme: dark) {
    .pg-table th { color: #8ab6e8; background: rgba(138, 182, 232, 0.14); }
    .pg-table a,
    .pg-list li::before,
    .pg-case--note strong { color: #8ab6e8; }
    .pg-list li::before { background: #8ab6e8; }
    .pg-case--note {
        background: linear-gradient(120deg, rgba(138, 182, 232, 0.14) 0%, rgba(138, 182, 232, 0.04) 100%);
        border-left-color: #8ab6e8;
    }
}

@media (max-width: 768px) {
    .pg-table { font-size: 0.87rem; }
    .pg-table th, .pg-table td { padding: 10px 12px; }
    .pg-list { padding: 16px 18px 16px 34px; }
}

/* ═══════════════════════════════════════
   PAGE HERO — тематические иллюстрации (v1.63)
   Тёмно-синий hero с фоновой иллюстрацией по теме страницы.
   Текст — белый, с тенью; поверх — градиент затемнения для читаемости.
   ═══════════════════════════════════════ */
.page-hero {
    position: relative;
    padding: 88px 0 72px;
    border-bottom: none;
    background-color: #07203a;
    background-image: linear-gradient(118deg, #0f6fc0 0%, #0a3460 50%, #051a30 100%);
    background-size: cover;
    color: #fff;
    overflow: hidden;
    isolation: isolate;
}

/* фоновая иллюстрация темы */
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: var(--hero-art, none);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    opacity: 1;
    pointer-events: none;
    z-index: 0;
}

/* затемнение под текстом — читаемость заголовка */
.page-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
                rgba(5, 26, 48, 0.88) 0%,
                rgba(5, 26, 48, 0.52) 45%,
                rgba(5, 26, 48, 0.88) 100%);
    pointer-events: none;
    z-index: 1;
}

.page-hero > .container { position: relative; z-index: 2; }

.page-hero-title {
    color: #fff;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55), 0 1px 3px rgba(0, 0, 0, 0.45);
}

.page-hero-sub {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}

/* ── тематика иллюстраций по страницам ── */
body.page-id-5  .page-hero,
body.page-id-6  .page-hero,
body.page-id-19 .page-hero, body.page-id-20 .page-hero, body.page-id-21 .page-hero,
body.page-id-22 .page-hero, body.page-id-23 .page-hero, body.page-id-24 .page-hero,
body.page-id-25 .page-hero, body.page-id-26 .page-hero, body.page-id-27 .page-hero,
body.page-id-28 .page-hero, body.page-id-29 .page-hero, body.page-id-30 .page-hero,
body.page-id-31 .page-hero, body.page-id-32 .page-hero { --hero-art: url('../img/heroes/storage.svg'); }

body.page-id-8  .page-hero { --hero-art: url('../img/heroes/form.svg'); }
body.page-id-10 .page-hero { --hero-art: url('../img/heroes/process.svg'); }
body.page-id-11 .page-hero { --hero-art: url('../img/heroes/pricing.svg'); }
body.page-id-12 .page-hero { --hero-art: url('../img/heroes/faq.svg'); }
body.page-id-16 .page-hero { --hero-art: url('../img/heroes/cases.svg'); }
body.page-id-33 .page-hero { --hero-art: url('../img/heroes/vm.svg'); }
body.page-id-34 .page-hero { --hero-art: url('../img/heroes/emergency.svg'); }
body.page-id-35 .page-hero { --hero-art: url('../img/heroes/remote.svg'); }

body.page-template-page-locations .page-hero { --hero-art: url('../img/heroes/locations.svg'); }
body.page-template-page-contact   .page-hero { --hero-art: url('../img/heroes/form.svg'); }

/* лёгкое затемнение сверху/снизу, чтобы иллюстрация не «вылезала» за границы */
@media (max-width: 900px) {
    .page-hero { padding: 64px 0 52px; }
    .page-hero::before { background-size: auto 130%; }
}
@media (max-width: 768px) {
    .page-hero { padding: 52px 0 44px; }
    .page-hero::after { background: linear-gradient(180deg, rgba(5,26,48,0.9) 0%, rgba(5,26,48,0.78) 50%, rgba(5,26,48,0.9) 100%); }
}

/* ═══════════════════════════════════════
   HOME — кнопка «What is my next step?» (v1.65)
   По центру, яркая оранжевая, со стрелкой
   ═══════════════════════════════════════ */
.section-cta-center {
    text-align: center;
    width: 100%;
    margin: 2.75rem auto 0;
}
.home-next-step {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 17px 36px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #14213d;
    background: linear-gradient(135deg, #ff7a1a 0%, #ff9d3d 100%);
    border: none;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(255, 122, 26, 0.42);
    text-decoration: none;
}
.home-next-step:hover,
.home-next-step:focus {
    color: #14213d;
    background: linear-gradient(135deg, #ff8c33 0%, #ffab55 100%);
    transform: translateY(-2px);
    box-shadow: 0 14px 40px rgba(255, 122, 26, 0.55);
}
.home-next-step span {
    transition: transform var(--duration-base) var(--ease-out);
}
.home-next-step:hover span {
    transform: translateX(4px);
}
@media (max-width: 560px) {
    .home-next-step {
        width: 100%;
        justify-content: center;
        padding: 16px 20px;
    }
}

/* ═══════════════════════════════════════
   BLOG — карточки «ошибок» с янтарными номерами (v1.66)
   ═══════════════════════════════════════ */
.pg-steps--warn .pg-step {
    border-left: 4px solid #ffb020;
}
.pg-steps--warn .pg-step:hover {
    border-color: rgba(214, 137, 0, 0.45);
}
.pg-steps--warn .pg-step-num {
    border-color: rgba(214, 137, 0, 0.30);
    background: linear-gradient(140deg, #fff2d6 0%, rgba(255, 176, 32, 0.30) 100%);
    color: #a86400;
}
@media (prefers-color-scheme: dark) {
    .pg-steps--warn .pg-step-num {
        background: linear-gradient(140deg, rgba(255, 176, 32, 0.24) 0%, rgba(255, 176, 32, 0.10) 100%);
        color: #ffcf70;
        border-color: rgba(255, 207, 112, 0.32);
    }
}

/* ── иллюстрации hero для блога (v1.68) ── */
body.page-id-9  .page-hero,
body.page-id-17 .page-hero,
body.page-id-18 .page-hero,
body.page-id-48 .page-hero,
body.page-id-49 .page-hero,
body.page-id-50 .page-hero,
body.page-id-51 .page-hero { --hero-art: url('../img/heroes/cases.svg'); }

/* ═══════════════════════════════════════
   REPORT PAGE — шапка отчёта, подзаголовки, фигуры (v1.69)
   ═══════════════════════════════════════ */
.pg-report-head {
    margin: 0 0 28px;
    padding-bottom: 20px;
    border-bottom: 3px solid var(--color-primary);
}
.pg-report-title {
    margin: 0 0 14px;
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    font-weight: 800;
    line-height: 1.28;
    letter-spacing: -0.02em;
    color: var(--color-text);
}
.pg-report-meta {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--color-text-secondary);
}
.pg-report-meta strong { color: var(--color-text); }

.pg-h3 {
    margin: 28px 0 10px;
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.4;
    color: var(--color-text);
}
.pg-h3::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 0.95em;
    margin-right: 9px;
    vertical-align: -0.08em;
    border-radius: 2px;
    background: #0a5eb8;
}

.pg-figure { margin: 20px 0 28px; }
.pg-figure img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: #fff;
}
.pg-figure figcaption {
    margin-top: 8px;
    font-size: 0.86rem;
    line-height: 1.5;
    color: var(--color-text-secondary);
}

@media (prefers-color-scheme: dark) {
    .pg-h3::before { background: #8ab6e8; }
    .pg-figure img { border-color: rgba(138, 182, 232, 0.3); }
}
@media (max-width: 768px) {
    .pg-report-head { margin-bottom: 22px; padding-bottom: 16px; }
    .pg-h3 { margin-top: 22px; }
}

/* ═══════════════════════════════════════
   HEADER — центрирование и компактность (v1.70)
   Лого слева, меню строго по центру, телефон справа.
   Раньше суммарная ширина (лого 175 + меню 893 + телефон 212 + отступы 64 = 1344)
   превышала доступные 1152px, телефон уезжал за край и вся группа казалась сдвинутой вправо.
   ═══════════════════════════════════════ */
.header-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: 20px;
}
.site-branding { justify-self: start; min-width: 0; }
.main-navigation {
    justify-self: center;
    justify-content: center;
    flex: none;
}
.header-cta { justify-self: end; }

/* компактнее, чтобы всё гарантированно помещалось в контейнер */
.site-logo-img { height: 46px; }
.nav-menu { gap: 2px; }
.nav-menu a { padding: 10px 11px; font-size: 0.95rem; }
.phone-btn { padding: 10px 16px; font-size: 0.85rem; }

/* планшет: ещё компактнее (до появления бургера на 768px) */
@media (max-width: 1120px) {
    .nav-menu a { padding: 9px 8px; font-size: 0.86rem; }
    .site-logo-img { height: 42px; }
    .phone-btn { padding: 9px 12px; font-size: 0.8rem; }
    .header-inner { column-gap: 14px; }
}
@media (max-width: 980px) {
    .nav-menu a { padding: 8px 6px; font-size: 0.8rem; }
    .site-logo-img { height: 38px; }
}

/* мобильные: возвращаем прежнюю flex-раскладку с бургером */
@media (max-width: 768px) {
    .header-inner {
        display: flex;
        justify-content: space-between;
    }
    .site-logo-img { height: 44px; }
    .main-navigation { justify-content: flex-end; }
}

/* узкие планшеты (до появления бургера на 768px) — чтобы меню тоже помещалось */
@media (max-width: 860px) and (min-width: 769px) {
    .nav-menu a { padding: 8px 5px; font-size: 0.75rem; }
    .site-logo-img { height: 34px; }
    .phone-btn { padding: 8px 10px; font-size: 0.75rem; }
    .header-inner { column-gap: 10px; }
}

/* ═══════════════════════════════════════
   HEADER v1.72 — по правкам заказчика:
   1) хедер на всю ширину окна (не по ширине контентного контейнера)
   2) лого возвращено в исходный размер 56px
   3) телефон и кнопка темы — в одну строку (были друг над другом)
   ═══════════════════════════════════════ */
.site-header .container {
    max-width: none;      /* хедер больше не вжимается в 1200px контента */
    width: 100%;
    padding: 0 40px;      /* аккуратные отступы от краёв окна */
}
.site-logo-img { height: 56px; }

/* телефон + переключатель темы всегда в одну строку */
.header-cta {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-self: end;
    white-space: nowrap;
    width: auto;
}

/* на узких экранах пропорционально уменьшаем, иначе меню не поместится */
@media (max-width: 1240px) {
    .nav-menu a { padding: 9px 9px; font-size: 0.9rem; }
}
@media (max-width: 1120px) {
    .site-logo-img { height: 48px; }
    .nav-menu a { padding: 8px 7px; font-size: 0.84rem; }
    .phone-btn { padding: 9px 12px; font-size: 0.8rem; }
}
@media (max-width: 980px) {
    .site-logo-img { height: 44px; }
    .nav-menu a { padding: 7px 5px; font-size: 0.78rem; }
    .phone-btn { padding: 8px 10px; font-size: 0.76rem; }
}
@media (max-width: 860px) and (min-width: 769px) {
    .site-logo-img { height: 40px; }
    .nav-menu a { padding: 6px 4px; font-size: 0.72rem; }
    .phone-btn { padding: 8px 8px; font-size: 0.72rem; }
    .header-inner { column-gap: 8px; }
}
@media (max-width: 768px) {
    .site-header .container { padding: 0 20px; }
    .site-logo-img { height: 44px; }
}

/* v1.73: меню — строго по центру окна.
   Крайние колонки делаем строго равными (1fr), а правый блок не даёт растягивать колонку (width: max-content),
   иначе телефон с темой шире лого и меню уезжает влево. */
.header-inner {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}
.site-branding,
.header-cta { min-width: 0; }
.header-cta { width: max-content; }

/* ═══════════════════════════════════════
   v1.75 — пункт меню «Start a Case» выделен акцентным цветом (CTA-стиль сайта)
   ═══════════════════════════════════════ */
.nav-menu > li.menu-item-60 > a,
.nav-menu > li:last-child > a {
    padding: 10px 16px;
    color: #14213d;
    font-weight: 700;
    background: linear-gradient(135deg, #ff7a1a 0%, #ff9d3d 100%);
    box-shadow: 0 4px 14px rgba(255, 122, 26, 0.30);
}
.nav-menu > li.menu-item-60 > a:hover,
.nav-menu > li:last-child > a:hover {
    color: #14213d;
    background: linear-gradient(135deg, #ff8c33 0%, #ffab55 100%);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255, 122, 26, 0.45);
}

/* компенсируем выросшую ширину акцентного пункта, чтобы меню по-прежнему помещалось */
.nav-menu a { padding-left: 10px; padding-right: 10px; }
@media (max-width: 1240px) {
    .nav-menu a { padding: 9px 8px; }
    .nav-menu > li.menu-item-60 > a,
    .nav-menu > li:last-child > a { padding: 9px 13px; }
}
@media (max-width: 1120px) {
    .nav-menu > li.menu-item-60 > a,
    .nav-menu > li:last-child > a { padding: 8px 12px; }
}
@media (max-width: 980px) {
    .nav-menu > li.menu-item-60 > a,
    .nav-menu > li:last-child > a { padding: 7px 10px; }
}
@media (max-width: 768px) {
    .nav-menu > li.menu-item-60 > a,
    .nav-menu > li:last-child > a { display: inline-block; }
}
