/* zip.carfst.ru — стиль семейства carfst.ru (см. docs/STYLE_GUIDE_CARFST.md) */
:root {
    /* Brand (carfst.ru Source of truth) */
    --brand-primary: #c41e3a;
    --brand-primary-dark: #a01830;
    --primary: var(--brand-primary);
    --primary-dark: var(--brand-primary-dark);
    --secondary: #1a1a1a;
    /* Background & Surface */
    --bg: #ffffff;
    --surface: #ffffff;
    --surface-2: #f8f9fa;
    --bg-alt: #f5f5f5;
    /* Text */
    --text: #1a1a1a;
    --text-muted: #666666;
    /* Border & Shadow */
    --border: #e0e0e0;
    --divider: #e0e0e0;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-banner: 0 -2px 12px rgba(0, 0, 0, 0.08);
    --shadow: var(--shadow-sm);
    /* Focus (A11y) */
    --focus-ring: 2px solid var(--brand-primary);
    --focus-offset: 2px;
    /* Components */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius: var(--radius-md);
    /* Layout */
    --container: 1200px;
    --container-max: var(--container);
    --gutter: 1rem;
    /* Footer on dark */
    --footer-muted: rgba(255, 255, 255, 0.72);
    --footer-divider: rgba(255, 255, 255, 0.18);
    /* Spacing scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-section: 2rem;
    --space-block: var(--space-4);
    /* Typography */
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-size-base: 16px;
    --line-height-base: 1.5;
    --line-height-tight: 1.35;
    /* Semantic (alerts/badges) — только токены */
    --success-bg: #d4edda;
    --success-text: #155724;
    --warning-bg: #fff3cd;
    --warning-text: #856404;
    --danger-bg: #f8d7da;
    --danger-text: #721c24;
    --info-bg: #e8f4f8;
    --info-border: #b8d4e0;
    --alert-warning-border: #e6d9b8;
    --alert-error-border: #e0b8b8;
    --msg-info-bg: #d1ecf1;
    --msg-info-text: #0c5460;
    /* Legacy aliases */
    --red: var(--primary);
    --red-hover: var(--primary-dark);
    --black: var(--text);
    --white: var(--bg);
    --gray: var(--bg-alt);
    --gray-dark: var(--text-muted);
    --card-bg: var(--surface);
    --card-border: var(--border);
    --alert-info-bg: var(--info-bg);
    --alert-info-border: var(--info-border);
    --alert-warning-bg: var(--warning-bg);
    --alert-error-bg: var(--danger-bg);
    --badge-instock: var(--success-bg);
    --badge-outofstock: var(--danger-bg);
    --badge-instock-text: var(--success-text);
    --badge-outofstock-text: var(--danger-text);
    --msg-success-bg: var(--success-bg);
    --msg-success-text: var(--success-text);
    --msg-error-bg: var(--danger-bg);
    --msg-error-text: var(--danger-text);
}

* { box-sizing: border-box; }

:root {
    --transition: 0.18s ease;
    --transition-fast: 0.15s ease;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    color: var(--text);
    background: var(--bg);
}

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding-left: var(--gutter);
    padding-right: var(--gutter);
}

/* ——— Section titles & typography (carfst.ru rhythm) ——— */
.section-title { font-size: 1.375rem; line-height: var(--line-height-tight); font-weight: 600; margin: 0 0 0.75rem; }
.section-subtitle { font-size: 1.125rem; line-height: var(--line-height-tight); font-weight: 600; margin: 0 0 0.5rem; }
.section-note { font-size: 0.875rem; color: var(--text-muted); margin: 0.5rem 0 0; line-height: 1.45; }
.section-intro { margin-bottom: var(--space-block); }
.section-intro .section-title { margin-bottom: 0.25rem; }
.section-intro .section-note { margin-top: 0; }
.micro { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.4; }
.muted { color: var(--text-muted); }

/* ——— Vertical rhythm: единые отступы внутри секций ——— */
.section .container > * + * { margin-top: var(--space-block); }
.section .container > .section-title:first-child { margin-top: 0; }
.section .container > .section-title:first-child + * { margin-top: 0.75rem; }

/* ——— Cards & Alerts ——— */
.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--space-block);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition-fast);
}
.card:hover { box-shadow: var(--shadow-md); }
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius);
    border: 1px solid;
    border-left: 4px solid;
    margin-bottom: var(--space-block);
}
.alert-info { background: var(--info-bg); border-color: var(--info-border); border-left-color: var(--info-border); color: var(--text); }
.alert-warning { background: var(--warning-bg); border-color: var(--alert-warning-border); border-left-color: var(--warning-text); color: var(--text); }
.alert-error { background: var(--danger-bg); border-color: var(--alert-error-border); border-left-color: var(--danger-text); color: var(--text); }
.alert h2, .alert h3 { margin: 0 0 0.5rem; font-size: 1.125rem; font-weight: 600; line-height: var(--line-height-tight); }
.alert p { margin: 0 0 0.5rem; line-height: 1.5; }
.alert p:last-of-type { margin-bottom: 0; }
.alert .cta-buttons { justify-content: flex-start; margin-top: var(--space-4); }
.empty-state-alert.alert-info { border-left-width: 4px; }
.badge { display: inline-block; padding: 0.25rem 0.5rem; border-radius: var(--radius-sm); font-size: 0.875rem; font-weight: 500; }
.badge-instock { background: var(--success-bg); color: var(--success-text); }
.badge-outofstock { background: var(--danger-bg); color: var(--danger-text); }
.badge-neutral { background: var(--bg-alt); color: var(--text-muted); }

/* ——— Top-bar (контакты) ——— */
.top-bar {
    background: var(--bg-alt);
    color: var(--text-muted);
    font-size: 0.875rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--divider);
}
.top-bar .container,
.top-bar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
}
.top-bar a { color: var(--text); text-decoration: none; transition: color var(--transition); }
.top-bar a:hover { color: var(--primary); }
.top-bar a:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }
.top-bar .btn { margin-left: 0; }
.top-bar-fallback { color: var(--text-muted); margin-right: 0.25rem; }
.messenger-link { font-weight: 500; }

/* ——— Header ——— */
.header {
    background: var(--secondary);
    color: var(--white);
    padding: 0.75rem 0;
}
.header .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.logo {
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.03em;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    min-height: 2.5rem;
}
.logo:hover { color: var(--white); }
.logo-img { max-height: 2.5rem; width: auto; height: auto; object-fit: contain; vertical-align: middle; display: block; }
.logo-fallback { display: none; }
.logo.logo-img-failed .logo-img { display: none; }
.logo.logo-img-failed .logo-fallback { display: inline; }

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--white);
    padding: 0.5rem;
    cursor: pointer;
    font-size: 1.5rem;
}
.nav-toggle:focus { outline: none; }
.nav-toggle:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }
@media (max-width: 767px) {
    .nav-toggle { display: block; }
    .nav { display: none; width: 100%; }
    .nav.is-open { display: flex; flex-direction: column; align-items: flex-start; padding-top: 0.5rem; gap: 0.25rem; }
    .nav a { margin-left: 0; margin-bottom: 0.25rem; padding: 0.35rem 0; }
}
@media (min-width: 768px) {
    .nav { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
}
.nav a {
    color: var(--white);
    text-decoration: none;
    transition: color var(--transition);
}
.nav a:hover { color: var(--primary); text-decoration: underline; }
.nav a:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }
.nav-search { display: flex; gap: var(--space-2); align-items: center; }
.nav-search .search-input { min-width: 120px; }
.header { min-height: 3.5rem; display: flex; align-items: center; position: sticky; top: 0; z-index: 100; transition: box-shadow var(--transition-fast); }
.header.is-stuck { box-shadow: var(--shadow-sm); }

/* ——— Main ——— */
.main { min-height: 60vh; padding-top: var(--space-section); padding-bottom: var(--space-section); }
.messages { list-style: none; padding: 0; margin: 0 0 var(--space-block); }
.message { padding: 0.5rem 1rem; margin-bottom: 0.25rem; border-radius: var(--radius); }
.message-success { background: var(--msg-success-bg); color: var(--msg-success-text); }
.message-error { background: var(--msg-error-bg); color: var(--msg-error-text); }
.message-info { background: var(--msg-info-bg); color: var(--msg-info-text); }

/* ——— Buttons (carfst.ru: 44–48px height, radius, focus) ——— */
.btn {
    display: inline-block;
    padding: 0.625rem 1.25rem;
    border-radius: var(--radius);
    text-decoration: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.35;
    transition: background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.btn:focus { outline: none; }
.btn:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; pointer-events: none; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); }
.btn-primary:active { background: var(--primary-dark); }
.btn-secondary { background: var(--secondary); color: var(--white); }
.btn-secondary:hover { background: var(--text-muted); color: var(--white); }
.btn-outline { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }
.btn-outline:active { background: var(--primary-dark); border-color: var(--primary-dark); }
.btn-ghost { background: transparent; color: var(--text-muted); }
.btn-ghost:hover { color: var(--primary); }
.btn-sm { padding: 0.375rem 0.75rem; font-size: 0.875rem; }
.btn-cta { margin-left: 0.25rem; }

/* ——— Hero (carfst.ru: витрина, декоративный фон) ——— */
.hero {
    background-color: var(--bg-alt);
    background-image: url("hero-art.2d9ac90d422d.svg"), linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--brand-primary) 5%, transparent) 50%, transparent 100%);
    background-size: 80px 80px, 100% 100%;
    background-position: 0 0, 0 0;
    background-repeat: repeat, no-repeat;
    padding: var(--space-section) 0;
    text-align: center;
    position: relative;
}
.hero::before {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%);
    opacity: 0.35;
}
.hero h1 { margin: 0 0 var(--space-2); font-size: 1.75rem; line-height: var(--line-height-tight); font-weight: 700; letter-spacing: 0.01em; }
.tagline { margin: 0 0 var(--space-6); color: var(--text-muted); font-size: 1rem; line-height: 1.5; }
.hero-search-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: var(--space-6);
    margin: 0 auto var(--space-4);
    max-width: 32rem;
    position: relative;
    z-index: 1;
}
.search-form { display: flex; gap: var(--space-2); justify-content: center; flex-wrap: wrap; margin-bottom: var(--space-4); }
.search-form.inline { justify-content: flex-start; }
.search-input {
    padding: 0.5rem 0.75rem;
    min-height: 2.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    min-width: 200px;
    background: var(--surface);
    transition: border-color var(--transition), box-shadow var(--transition);
    box-sizing: border-box;
}
.search-input::placeholder { color: var(--text-muted); }
.search-input:focus { outline: none; }
.search-input:focus-visible { outline: var(--focus-ring); outline-offset: 0; border-color: var(--primary); }
.cta-buttons { margin-top: var(--space-4); display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: center; align-items: center; }
.cta-buttons .btn { margin: 0; min-height: 2.75rem; }
.cta-or { margin: 0 var(--space-2); color: var(--text-muted); align-self: center; }
.hero-example-badges { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: center; margin-top: var(--space-2); }
.hero-example-badges a { text-decoration: none; }
.hero-example-badges .badge { transition: background var(--transition), color var(--transition); }
.hero-example-badges .badge:hover { background: var(--border); color: var(--text); }
.hero-example-badges .badge:active { opacity: 0.9; }
.hero-trust-row { margin-top: var(--space-4); font-size: 0.875rem; color: var(--text-muted); line-height: 1.5; }
.hero-trust-sep { margin: 0 0.25rem; color: var(--border); }
.hero-trust-item { white-space: nowrap; }
.hero-quick-contacts { margin-top: var(--space-3); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-2); }
.hero-quick-contacts a { font-size: 0.875rem; padding: 0.35rem 0.75rem; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none; transition: border-color var(--transition), color var(--transition), background var(--transition); }
.hero-quick-contacts a:hover { border-color: var(--primary); color: var(--primary); background: var(--surface); }
.hero-quick-contacts a:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }
@media (max-width: 767px) { .hero-quick-contacts { display: none; } }

/* ——— Sections ——— */
.section { padding-top: var(--space-section); padding-bottom: var(--space-section); }
.section-alt { background: var(--surface-2); }
.section h2 { font-size: 1.375rem; font-weight: 600; margin: 0 0 0.75rem; }
.steps { padding-left: 1.25rem; margin: 0; }
.steps li { margin-bottom: 0.25rem; }
.steps-numbered { list-style: none; padding: 0; margin: 0; }
.steps-numbered li { display: flex; align-items: flex-start; gap: 0.75rem; margin-bottom: 1rem; line-height: 1.45; }
.step-num { flex-shrink: 0; font-weight: 700; color: var(--primary); font-size: 0.875rem; min-width: 2rem; }
.trust-cards { display: grid; gap: var(--space-block); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: stretch; }
.trust-card { display: flex; flex-direction: column; gap: var(--space-2); min-height: 100%; padding: var(--space-4); }
.trust-card:hover { box-shadow: var(--shadow-md); }
.trust-card-icon { color: var(--primary); line-height: 0; flex-shrink: 0; }
.trust-card .section-subtitle { margin: 0; }
.cta-banner { text-align: center; padding: var(--space-6); box-shadow: var(--shadow-md); }
.cta-banner .cta-buttons { justify-content: center; margin-top: 1rem; }
.directions-cards { display: grid; gap: var(--space-block); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); align-items: stretch; }
.direction-card { text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 0.25rem; padding: var(--space-4); transition: box-shadow var(--transition), border-color var(--transition); min-height: 100%; }
.direction-card:hover { box-shadow: var(--shadow-md); border-color: var(--primary); }
.direction-card-title { font-weight: 600; }
.faq-list { display: flex; flex-direction: column; gap: 0.5rem; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.faq-item summary { padding: var(--space-3) var(--space-4); cursor: pointer; font-weight: 500; list-style: none; transition: background var(--transition); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; color: var(--text-muted); }
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:hover { background: var(--surface-2); }
.faq-item summary:focus-visible { outline: var(--focus-ring); outline-offset: -2px; }
.faq-item[open] summary { border-bottom: 1px solid var(--border); }
.faq-item p { margin: 0; padding: 0 var(--space-4) var(--space-4); color: var(--text-muted); font-size: 0.875rem; line-height: 1.45; }

/* ——— Search / empty state ——— */
.page-search .search-form { margin-bottom: 1.5rem; }
.search-hint, .no-results { color: var(--text-muted); }
.search-examples { font-size: 0.875rem; color: var(--text-muted); margin-top: 0.5rem; }
.product-list { list-style: none; padding: 0; }
.product-list li { margin-bottom: 0.5rem; }
.product-list a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
.product-list a:hover { text-decoration: underline; }
.product-list a:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }
.empty-state { padding: 1.5rem 0; text-align: center; }
.empty-state .no-results { margin-bottom: 0.5rem; }
.no-offers-block { text-align: left; }
.no-offers { font-weight: 600; color: var(--text-muted); }
.search-badge-norm { margin-bottom: 0.75rem; }
.search-example-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.5rem 0 0.75rem; }
.search-example-badges a.badge { text-decoration: none; }
.search-example-badges a.badge:hover { background: var(--border); }
.empty-state-alert { margin-top: 1rem; }
.empty-state-alert .cta-buttons { margin-top: 1rem; flex-wrap: wrap; gap: 0.5rem; }
.disclaimer-micro { margin-top: 1.5rem; }
.hero-examples { font-size: 0.875rem; color: var(--text-muted); margin-top: 0.5rem; }
.hero-examples code { background: var(--bg-alt); padding: 0.1rem 0.35rem; border-radius: var(--radius-sm); }

/* ——— Part card / offers ——— */
.part-info { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 1rem; margin-bottom: 1.5rem; }
.part-info dt { color: var(--text-muted); }
.offers-wrapper { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: var(--space-4); }
.offers-by-manufacturer h2 { font-size: 1.125rem; font-weight: 600; margin-bottom: var(--space-3); }
.offer-blocks { display: grid; gap: var(--space-block); }
.offer-block { padding: var(--space-block); border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.offers-table { width: 100%; border-collapse: collapse; margin-bottom: 0; }
.offers-table th, .offers-table td { padding: var(--space-2) var(--space-3); text-align: left; border-bottom: 1px solid var(--border); }
.offers-table th { background: var(--bg-alt); font-weight: 600; }
.offers-table .availability-badge { display: inline-block; }
.offers-table tbody tr { transition: background var(--transition-fast); }
.offers-table tbody tr:hover { background: var(--surface-2); }
@media (min-width: 768px) {
    .offers-table tbody tr { border-left: 2px solid transparent; }
    .offers-table tbody tr:hover { border-left-color: var(--primary); }
}
.part-card .part-subtitle { color: var(--text-muted); font-size: 0.9375rem; margin: 0 0 1rem; }
.vin-cta-block { margin-top: 1.5rem; padding: 1rem; background: var(--bg-alt); border-radius: var(--radius); border-left: 4px solid var(--primary); }
.part-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; }
.inline-form { display: inline; }

/* Offers: mobile — stacked cards */
@media (max-width: 767px) {
    .offers-table, .offers-table thead, .offers-table tbody, .offers-table tr, .offers-table th, .offers-table td { display: block; }
    .offers-table thead { display: none; }
    .offers-table tbody tr {
        display: block;
        margin-bottom: var(--space-block);
        padding: 1rem;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius);
        box-shadow: var(--shadow-sm);
    }
    .offers-table tbody tr:hover { background: var(--surface); }
    .offers-table td {
        border: none;
        padding: 0.25rem 0;
        display: flex;
        flex-wrap: wrap;
        gap: 0.25rem 0.5rem;
    }
    .offers-table td::before {
        content: attr(data-label);
        font-weight: 600;
        min-width: 6rem;
        color: var(--text-muted);
    }
    .offers-table td:last-child { margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid var(--border); }
    .offers-table td:last-child::before { display: none; content: none; }
}

/* Checkout / forms (carfst.ru: border, focus, placeholder) ——— */
.checkout-form label { display: block; margin-bottom: 0.25rem; font-weight: 500; }
.checkout-form .form-row { margin-bottom: 1rem; }
.checkout-form .form-row-checkbox label { display: flex; align-items: center; gap: 0.5rem; font-weight: 400; }
.checkout-form .form-row-checkbox input[type="checkbox"] { width: auto; }
.checkout-form input[type="text"],
.checkout-form input[type="tel"],
.checkout-form input[type="email"],
.checkout-form textarea,
.checkout-form select {
    width: 100%;
    max-width: 400px;
    min-height: 2.75rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    background: var(--surface);
}
.checkout-form textarea { min-height: 5rem; }
.checkout-form input::placeholder,
.checkout-form textarea::placeholder { color: var(--text-muted); }
.checkout-form input:focus,
.checkout-form textarea:focus,
.checkout-form select:focus { outline: none; }
.checkout-form input:focus-visible,
.checkout-form textarea:focus-visible,
.checkout-form select:focus-visible {
    outline: var(--focus-ring);
    outline-offset: 0;
}
.checkout-form input,
.checkout-form textarea,
.checkout-form select { transition: border-color var(--transition); }
.checkout-form input.error, .checkout-form textarea.error { border-color: var(--danger-text); }
.form-error { font-size: 0.875rem; color: var(--danger-text); margin-top: 0.25rem; }
.form-links { font-size: 0.875rem; margin-top: 0.5rem; }
.form-links a { color: var(--primary); }
.form-links a:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }
.article-badge { display: inline-block; padding: 0.25rem 0.5rem; background: var(--bg-alt); border-radius: var(--radius); margin-bottom: 1rem; font-weight: 600; }

/* Cart ——— */
.cart-table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; }
.cart-table th, .cart-table td { padding: 0.5rem; border-bottom: 1px solid var(--border); }
.cart-table th { background: var(--bg-alt); }
.cart-total { font-size: 1.125rem; margin-bottom: 1rem; }

/* ——— Footer (carfst.ru: grid, surface/dark) ——— */
.footer {
    background: var(--secondary);
    color: var(--white);
    padding: 1.5rem 0;
    margin-top: var(--space-section);
    font-size: 0.875rem;
}
.footer .container { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-grid { display: flex; flex-direction: column; gap: 1rem; }
@media (min-width: 640px) {
    .footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 1rem 2rem; align-items: start; }
}
.footer-col p { margin: 0.25rem 0; }
.footer-col-contacts { display: flex; flex-direction: column; gap: 0.25rem; }
.footer a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
.footer a:hover { text-decoration: underline; }
.footer a:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }
.footer p { margin: 0.25rem 0; }
.footer-contacts { display: flex; flex-wrap: wrap; align-items: center; gap: 0 0.75rem; }
.footer-contacts a + a { margin-left: 0.25rem; }
.footer-links { margin-top: 0.5rem; }
.footer-links a { margin-right: 1rem; }
.footer-bottom {
    margin-top: var(--space-6);
    padding-top: var(--space-3);
    border-top: 1px solid var(--footer-divider);
    font-size: 0.8125rem;
    display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4);
}
.footer .footer-bottom { color: var(--footer-muted); }
.footer-bottom a { color: var(--primary); }
.footer-copy { margin-right: var(--space-2); }

/* ——— Contact quick block (card) ——— */
.contact-quick {
    margin-top: var(--space-6);
    padding: var(--space-4);
    background: var(--surface);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.contact-quick h3, .contact-quick h2 { font-size: 1rem; font-weight: 600; margin: 0 0 0.5rem; }
.contact-quick-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin-top: 0.5rem; }
.contact-quick-links a { text-decoration: none; }
.contact-quick-links .btn { margin-right: 0.25rem; }
.micro-note { font-size: 0.875rem; color: var(--text-muted); margin-top: 1rem; line-height: 1.45; }

/* ——— Success page ——— */
.page-success h1 { margin-bottom: 0.5rem; }
.success-next { margin-top: 1.5rem; padding: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.success-next h2 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; }
.success-contact { margin-top: 1.5rem; }

/* ——— 404 page ——— */
.page-404 h1 { margin-bottom: var(--space-2); }
.page-404 p { margin-bottom: var(--space-3); }
.page-404 .search-form { margin: var(--space-4) 0; }
.page-404-search { margin: var(--space-4) 0; }
.page-404-actions .cta-buttons { margin-top: var(--space-4); flex-wrap: wrap; gap: var(--space-2); }
.page-404 .btn { margin-right: var(--space-2); margin-bottom: var(--space-2); }
.search-empty-card { margin-top: var(--space-4); }

/* ——— Static pages ——— */
.page-static h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; }
.page-static p { margin-bottom: 0.75rem; }
.page-static ul { margin-bottom: 0.75rem; }
.static-date { font-size: 0.875rem; color: var(--text-muted); }
.contact-section { margin-bottom: 1.5rem; }
.contact-section h2 { font-size: 1.125rem; font-weight: 600; margin: 1rem 0 0.5rem; }
.contact-section:first-of-type h2 { margin-top: 0; }

.requisites-content { margin-top: 0.5rem; }
.requisites-empty { padding: var(--space-6); }
.requisites-empty p { margin: 0 0 var(--space-2); }
.requisites-empty .micro-note { margin-top: var(--space-2); margin-bottom: 0; }

@media (min-width: 640px) {
    .hero h1 { font-size: 2rem; }
    .search-input { min-width: 280px; }
}

/* ——— Cookie banner (carfst.ru parity) ——— */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-banner);
    padding: var(--space-3) 0;
    transition: transform var(--transition), opacity var(--transition);
}
.cookie-banner.is-hidden,
html.cookie-consent-given .cookie-banner {
    display: none;
}
.cookie-banner-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3) var(--space-4);
}
.cookie-banner-text {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text);
    line-height: 1.45;
    flex: 1 1 280px;
}
.cookie-banner-text a {
    color: var(--primary);
    text-decoration: none;
}
.cookie-banner-text a:hover { text-decoration: underline; }
.cookie-banner-text a:focus-visible { outline: var(--focus-ring); outline-offset: var(--focus-offset); }
.cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
}
.cookie-banner-actions .btn { margin: 0; }
.cookie-settings {
    display: none;
    width: 100%;
    margin-top: var(--space-2);
    padding-top: var(--space-2);
    border-top: 1px solid var(--border);
}
.cookie-settings.is-open {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-2);
}
.cookie-settings-row {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.875rem;
    font-weight: 400;
    cursor: pointer;
}
.cookie-settings-row input { width: auto; }

/* ——— Sticky CTA bar (mobile, P1: search + part) ——— */
/* P0: пока cookie-баннер видим — CTA-полоса скрыта; после выбора (cookie-consent-given) — CTA показывается */
.cta-bar-mobile {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: var(--shadow-banner);
    padding: var(--space-2) var(--gutter);
    gap: var(--space-2);
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    transition: opacity var(--transition), transform var(--transition);
}
@media (max-width: 767px) {
    .cta-bar-mobile {
        display: none;
    }
    html.cookie-consent-given .cta-bar-mobile {
        display: flex;
    }
}
.cta-bar-mobile .btn { margin: 0; white-space: nowrap; }
body.has-cta-bar-mobile { padding-bottom: 0; }
@media (max-width: 767px) {
    body.has-cta-bar-mobile { padding-bottom: 0; }
    html.cookie-consent-given body.has-cta-bar-mobile { padding-bottom: 4.5rem; }
}
