/**
 * KOSTRYKIN LAW — стилі v7
 * Естетичний напрямок: Art Deco / Luxury Refined
 * Золоті акценти, геометричні патерни, авторитетна типографіка
 * Джерело: docs/DESIGN.md + docs/FRONTEND-GUIDELINES.md
 */

/* === Reset === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* === WP Admin Bar — не фіксувати === */
html { margin-top: 0 !important; }
#wpadminbar { position: static !important; }

/* === Шрифти — docs/DESIGN.md, «Підключення шрифтів» === */
/* Змінні шрифти з теми: один файл на шрифт і набір символів.
   Playfair — лише 400 і 700, як було на Google: товщина 500 малюється як 400 */
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/playfair-display-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/playfair-display-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/playfair-display-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/playfair-display-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Source Serif 4';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/source-serif-4-cyrillic.woff2') format('woff2');
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Source Serif 4';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('../fonts/source-serif-4-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Georgia, підігнана під розміри основних шрифтів: при заміні рядки не стрибають */
@font-face {
    font-family: 'Source Serif 4 Fallback';
    font-weight: 400 500;
    src: local('Georgia');
    size-adjust: 107.8%;
    ascent-override: 96.1%;
    descent-override: 31.1%;
    line-gap-override: 0%;
}
@font-face {
    font-family: 'Source Serif 4 Fallback';
    font-weight: 600 700;
    src: local('Georgia Bold'), local('Georgia-Bold');
    size-adjust: 95.4%;
    ascent-override: 108.5%;
    descent-override: 35.1%;
    line-gap-override: 0%;
}
@font-face {
    font-family: 'Playfair Display Fallback';
    font-weight: 400 500;
    src: local('Georgia');
    size-adjust: 101.3%;
    ascent-override: 106.8%;
    descent-override: 24.8%;
    line-gap-override: 0%;
}
@font-face {
    font-family: 'Playfair Display Fallback';
    font-weight: 600 700;
    src: local('Georgia Bold'), local('Georgia-Bold');
    size-adjust: 91.3%;
    ascent-override: 118.5%;
    descent-override: 27.5%;
    line-gap-override: 0%;
}

/* === CSS-змінні === */
:root {
    /* Кольори — Art Deco палітра */
    --color-primary: #1a2744;
    --color-primary-light: #2d4a7a;
    --color-primary-lighter: #3b5998;
    --color-primary-deep: #0f1a2e;
    --color-accent: #c9a84c;
    --color-accent-hover: #b8922e;
    --color-accent-light: rgba(201, 168, 76, 0.10);
    --color-accent-glow: rgba(201, 168, 76, 0.25);
    /* Золотий текст на світлому: звичайне золото там 2.3:1 (DESIGN.md, «Контраст») */
    --color-accent-text: #7d6420;
    --color-bg: #fefefe;
    --color-bg-alt: #f7f6f3;
    --color-bg-warm: #f9f7f2;
    --color-text: #2d3748;
    --color-text-light: #5f6b7e;
    /* 2.6:1 на білому — тільки для нетекстових елементів (крапка, шеврон) */
    --color-text-muted: #94a3b8;
    --color-border: #e2e0d8;
    --color-success: #059669;
    --color-error: #dc2626;

    /* Шрифти */
    --font-heading: 'Playfair Display', 'Playfair Display Fallback', Georgia, serif;
    --font-body: 'Source Serif 4', 'Source Serif 4 Fallback', Georgia, serif;

    /* Розміри тексту */
    --text-xs: 12px;
    --text-sm: 14px;
    --text-base: 16px;
    --text-md: 17px;
    --text-lg: 19px;
    --text-xl: 22px;
    --text-2xl: 30px;
    --text-3xl: 38px;
    --text-4xl: 48px;

    /* Макет */
    --container-max: 1140px;
    /* Висота шапки = вміст + ці відступи (однакові зверху й знизу) */
    --header-pad: 10px;
    --header-pad-scrolled: 7px;
    --radius: 4px;
    --radius-lg: 8px;

    /* Тіні */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
    --shadow-gold: 0 4px 20px rgba(201, 168, 76, 0.15);

    /* Відступи */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 40px;
    --space-2xl: 64px;
    --space-3xl: 96px;

    /* Переходи */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Base === */
html {
    scroll-behavior: smooth;
    font-size: var(--text-base);
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    line-height: 1.15;
    color: var(--color-primary);
    margin-top: 0;
    font-weight: 700;
}

/* Рядки заголовка приблизно однакові, абзац без одного слова в останньому
   рядку — DESIGN.md, п. 3 */
h1, h2, h3, h4 { text-wrap: balance; }

h1 { font-size: var(--text-4xl); letter-spacing: -0.02em; }
h2 { font-size: var(--text-2xl); margin-bottom: var(--space-md); letter-spacing: -0.01em; }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

p {
    margin-bottom: 1em;
    max-width: 68ch;
    text-wrap: pretty;
}

a {
    color: var(--color-primary-light);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover { color: var(--color-accent); }

img { max-width: 100%; height: auto; }

::selection {
    background: var(--color-accent);
    color: var(--color-primary);
}

/* === Фокус з клавіатури — docs/DESIGN.md, п. 9a === */
:focus-visible {
    outline: 2px solid var(--color-primary-light);
    outline-offset: 2px;
}

/* На темному фоні синя обводка зливається — золота */
.site-header :focus-visible,
.hero :focus-visible,
.section--dark :focus-visible,
.site-footer :focus-visible,
.mobile-footer-bar :focus-visible {
    outline-color: var(--color-accent);
}

/* Картка форми в hero світла — назад до синьої */
.hero-form :focus-visible {
    outline-color: var(--color-primary-light);
}

/* === Layout === */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-2xl) 0;
    position: relative;
}

.section--alt {
    background: var(--color-bg-alt);
}

.section--dark {
    background: var(--color-primary);
    color: #fff;
}

.section--dark h2,
.section--dark h3 {
    color: #fff;
}

.section__header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

/* Золота геометрична лінія під заголовком */
.section__header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    margin: 16px auto 0;
}

.section--dark .section__header h2::after {
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
}

.section__subtitle {
    color: var(--color-text-light);
    font-size: var(--text-md);
    margin-top: var(--space-sm);
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

/* === Scroll Reveal Animations === */
/* Ховає елементи сам main.js (клас `reveal--pending`) і тільки ті, що нижче
   екрана: без JS усе видно (docs/DESIGN.md, п. 9) */
.reveal,
.reveal-stagger > * {
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.reveal--pending,
.reveal-stagger.reveal--pending > * {
    opacity: 0;
    transform: translateY(24px);
}

/* Затримки — лише на час появи: main.js знімає клас, щоб ховер карток
   не запізнювався */
.reveal-stagger--visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger--visible > *:nth-child(3) { transition-delay: 0.2s; }
.reveal-stagger--visible > *:nth-child(4) { transition-delay: 0.3s; }
.reveal-stagger--visible > *:nth-child(5) { transition-delay: 0.4s; }
.reveal-stagger--visible > *:nth-child(6) { transition-delay: 0.5s; }

/* === Header === */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-primary);
    padding: var(--header-pad) 0;
    transition: box-shadow var(--transition), background var(--transition), padding var(--transition);
}

.site-header--scrolled {
    padding: var(--header-pad-scrolled) 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    background: var(--color-primary-deep);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: 0.02em;
}

/* Файл 90x126 — утричі більший за показ. Ширину не задаємо: пропорцію
   тримають атрибути width/height у <img>, вони ж резервують місце до
   завантаження, щоб шапка не смикалась */
.site-logo__mark {
    height: 42px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

/* Підкреслення чіпляється до тексту, а не до всього блока: під емблемою
   золота риска читається як випадкова лінія */
.site-logo__text {
    position: relative;
}

.site-logo__text::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, var(--color-accent), transparent);
    opacity: 0.5;
}

.site-logo:hover { color: var(--color-accent); }

.site-nav { flex: 1; }

.site-nav__list {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
    justify-content: center;
}

.site-nav__list li a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    white-space: nowrap;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 4px 0;
    border-bottom: 1px solid transparent;
    transition: color var(--transition), border-color var(--transition);
}

.site-nav__list li a:hover,
.site-nav__list li.current-menu-item a {
    color: #fff;
    border-bottom-color: var(--color-accent);
}

.header-contacts {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-shrink: 0;
}

.header-phone {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--text-sm);
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.header-phone:hover { color: var(--color-accent); }

.burger-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.burger-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    margin: 5px 0;
    transition: transform 0.3s, opacity 0.3s;
}

.site-main {
    padding-top: 0;
}

/* === Hero === */
.hero {
    background: linear-gradient(160deg, var(--color-primary) 0%, var(--color-primary-deep) 60%, #0a1220 100%);
    color: #fff;
    padding: var(--space-2xl) 0;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Висота hero не обмежується: усередині стоїть форма, і при max-height її
   нижні поля просто зрізало б (docs/DESIGN.md, «Hero головної») */

/* Noise texture overlay */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse at 15% 85%, rgba(201, 168, 76, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 15%, rgba(201, 168, 76, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.02) 0%, transparent 80%);
    pointer-events: none;
}

/* Геометричний Art Deco акцент — подвійне коло */
.hero::after {
    content: '';
    position: absolute;
    right: -80px;
    top: -80px;
    width: 450px;
    height: 450px;
    border: 1px solid rgba(201, 168, 76, 0.12);
    border-radius: 50%;
    pointer-events: none;
    box-shadow: inset 0 0 0 40px transparent, 0 0 0 1px rgba(201, 168, 76, 0.06);
}

.hero .container {
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Дві колонки: цінність ліворуч, форма праворуч */
.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(380px, 0.85fr);
    gap: var(--space-2xl);
    align-items: center;
}

.hero__label {
    display: inline-block;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--color-accent);
    margin-bottom: var(--space-lg);
    padding: 8px 24px;
    border: 1px solid rgba(201, 168, 76, 0.35);
    position: relative;
}

/* Маленькі декоративні кутики на лейблі */
.hero__label::before,
.hero__label::after {
    content: '';
    position: absolute;
    width: 8px;
    height: 8px;
    border-color: var(--color-accent);
    opacity: 0.6;
}

.hero__label::before {
    top: -1px;
    left: -1px;
    border-top: 1px solid;
    border-left: 1px solid;
}

.hero__label::after {
    bottom: -1px;
    right: -1px;
    border-bottom: 1px solid;
    border-right: 1px solid;
}

.hero__title {
    font-size: clamp(28px, 3.4vw, 44px);
    color: #fff;
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.hero__subtitle {
    font-family: var(--font-body);
    font-size: var(--text-md);
    opacity: 0.85;
    margin-bottom: var(--space-lg);
    line-height: 1.6;
}

.hero__benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-lg);
    display: grid;
    gap: var(--space-sm);
}

.hero__benefits li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: var(--text-base);
    color: rgba(255, 255, 255, 0.92);
}

.hero__benefits svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--color-accent);
}

/* Вирівнювання іконки — у `.btn--icon`: правило `.btn` описане нижче
   й з такою самою специфічністю перекрило б тут `display` */
.hero__call {
    font-size: var(--text-md);
}

/* Картка форми на темному фоні hero */
.hero-form {
    background: var(--color-bg);
    border: 1px solid var(--color-accent);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    box-shadow: var(--shadow-lg);
    color: var(--color-text);
}

.hero-form__title {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
}

.hero-form__text {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
}

.hero-form .form-group {
    margin-bottom: var(--space-sm);
}

/* === Trust Bar === */
.trust-bar {
    background: var(--color-bg-warm);
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--color-border);
}

.trust-bar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    flex-wrap: wrap;
}

.trust-bar__item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    color: var(--color-text-light);
    font-size: var(--text-sm);
    font-weight: 600;
}

.trust-bar__icon {
    width: 20px;
    height: 20px;
    color: var(--color-accent);
    flex-shrink: 0;
}

/* === Buttons === */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all var(--transition);
    line-height: 1;
    position: relative;
}

/* Текст темно-синій: білий на золоті — 2.3:1 (DESIGN.md, «Контраст») */
.btn--primary {
    background: var(--color-accent);
    color: var(--color-primary);
    box-shadow: var(--shadow-sm);
}

.btn--primary:hover {
    background: var(--color-accent-hover);
    box-shadow: var(--shadow-gold);
    color: var(--color-primary);
    transform: translateY(-2px);
}

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

.btn--secondary:hover {
    background: var(--color-primary);
    color: #fff;
}

.btn--ghost {
    background: transparent;
    color: var(--color-primary-light);
    padding: 0;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
}

.btn--ghost:hover {
    color: var(--color-accent);
}

.btn--white {
    background: #fff;
    color: var(--color-primary);
}

.btn--white:hover {
    background: var(--color-bg-alt);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Кнопка з іконкою — docs/DESIGN.md, п. 4.1.
   Має стояти після базового `.btn`, інакше його `display: inline-block`
   переб'є флекс і іконка сяде на базову лінію тексту */
.btn--icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    text-transform: none;
    letter-spacing: 0.02em;
}

.btn--icon svg {
    flex-shrink: 0;
}

.btn--sm {
    padding: 10px 22px;
    font-size: var(--text-xs);
}

/* === Cards === */
.card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: var(--space-lg) var(--space-lg) var(--space-md);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

/* Золота верхня лінія — завжди видима, тонка */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    opacity: 0.3;
    transition: opacity var(--transition);
}

.card:hover::before {
    opacity: 1;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(201, 168, 76, 0.2);
}

.card__icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-accent-light), rgba(201, 168, 76, 0.05));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    color: var(--color-accent);
    font-size: 22px;
    border: 1px solid rgba(201, 168, 76, 0.15);
}

.card__title {
    font-family: var(--font-heading);
    font-size: var(--text-lg);
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.card__desc {
    color: var(--color-text-light);
    font-size: var(--text-sm);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}

.card__link {
    color: var(--color-accent-text);
    font-weight: 700;
    font-size: var(--text-sm);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.card__link:hover { color: var(--color-primary); }

.card__link::after {
    content: '→';
    transition: transform var(--transition);
    font-size: 1.1em;
}

.card__link:hover::after {
    transform: translateX(4px);
}

/* Кликабельна картка */
a.card--link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

a.card--link:hover { color: inherit; }
a.card--link:hover .card__title { color: var(--color-primary-light); }
a.card--link:hover .card__link { color: var(--color-primary); }

/* === Grid === */
.grid {
    display: grid;
    gap: var(--space-lg);
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* === Контакти: мапа + форма === */
/* Мапа ширша за форму: адреса читається як орієнтир на місцевості.
   Колонки однакової висоти — мапа добирає залишок під адресою (DESIGN.md) */
.contacts-map-row {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(360px, 1fr);
    gap: var(--space-xl);
    align-items: stretch;
}

.contacts-map-row__map-col {
    display: flex;
    flex-direction: column;
}

.contacts-map-row__address {
    font-size: 20px;
    margin-bottom: var(--space-xs);
}

/* Посилання на точку в Google Maps (docs/DESIGN.md, «Мапа й форма
   на «Контактах»»): без підкреслення, клікабельність показують колір і стрілка */
.contacts-map-row__map-link {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    /* Зона натискання не менше 44px (touch-цілі), видимі відступи — як без неї */
    padding: 9px 0;
    margin: -9px 0 calc(var(--space-lg) - 9px);
    font-size: 16px;
    color: var(--color-primary-light);
}

.contacts-map-row__map-link:hover { color: var(--color-accent); }

.contacts-map-row__map-link-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.contacts-map {
    flex: 1 1 auto;
    min-height: 460px;
    max-height: 620px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.contacts-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: inherit;
    border: 0;
}

/* === Contacts row === */
/* Блок контактів: неповний останній ряд лишається по центру сторінки */
.contacts-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-lg);
}

.contacts-row > * {
    flex: 1 1 260px;
    max-width: 340px;
    text-align: center;
}

/* === Stats === */
.stats {
    display: flex;
    justify-content: center;
    gap: var(--space-2xl);
    flex-wrap: wrap;
}

.stat {
    text-align: center;
    position: relative;
}

/* Золотий розділювач між статами */
.stat + .stat::before {
    content: '';
    position: absolute;
    left: calc(var(--space-2xl) / -2);
    top: 10%;
    height: 80%;
    width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(201, 168, 76, 0.3), transparent);
}

.stat__number {
    font-family: var(--font-heading);
    /* Маюскульні: старостильні робили «1 000» дрібнішим за «500» — DESIGN.md, п. 3 */
    font-variant-numeric: lining-nums;
    font-size: var(--text-3xl);
    color: var(--color-accent);
    line-height: 1;
    margin-bottom: var(--space-xs);
}

.stat__label {
    font-size: var(--text-sm);
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

/* === Testimonials === */
.testimonial {
    background: var(--color-bg);
    border-radius: var(--radius);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
    position: relative;
}

/* Золота акцентна лінія зверху */
.testimonial::before {
    content: '';
    position: absolute;
    top: 0;
    left: var(--space-lg);
    width: 32px;
    height: 2px;
    background: var(--color-accent);
}

.testimonial__text {
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-style: italic;
    line-height: 1.7;
    margin-bottom: var(--space-md);
    color: var(--color-text);
    padding-top: var(--space-sm);
}

.testimonial__text::before {
    content: "«";
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    color: var(--color-accent);
    line-height: 0;
    position: relative;
    top: 8px;
    margin-right: 2px;
}

.testimonial__text::after {
    content: "»";
}

.testimonial__author {
    font-weight: 700;
    font-size: var(--text-sm);
    color: var(--color-primary);
    letter-spacing: 0.02em;
}

/* === Forms === */
.form-group {
    margin-bottom: var(--space-md);
}

.form-group label {
    display: block;
    margin-bottom: var(--space-xs);
    font-weight: 700;
    color: var(--color-text);
    font-size: var(--text-sm);
    letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: var(--text-base);
    font-family: var(--font-body);
    font-weight: 500;
    background: var(--color-bg);
    color: var(--color-text);
    height: 46px;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group textarea {
    height: auto;
    min-height: 110px;
    resize: vertical;
}

/* Індикатор фокусу поля — темно-синя рамка: золота на білому майже
   не відрізнялась від звичайної (DESIGN.md, п. 4.3) */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary-light);
    box-shadow: 0 0 0 3px rgba(45, 74, 122, 0.2);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
    border-color: var(--color-error);
}

.form-group input.error:focus,
.form-group select.error:focus,
.form-group textarea.error:focus {
    border-color: var(--color-error);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

/* Select: власна стрілка замість системної — docs/DESIGN.md, п. 4.3.
   Системну не відсунути від правого краю, а успадкований від body
   line-height 1.65 не влазить у висоту поля й ріже текст знизу */
.form-group select {
    appearance: none;
    -webkit-appearance: none;
    line-height: 1.2;
    padding-right: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 12px 8px;
    cursor: pointer;
}

/* Помилка під полем — тексти в docs/FORMS.md */
.form-error {
    margin: var(--space-xs) 0 0;
    color: var(--color-error);
    font-size: var(--text-xs);
    line-height: 1.4;
}

/* Пастка для ботів — docs/FORMS.md, «Захист від ботів».
   Зсув за екран, а не display:none: приховане так поле частина ботів
   пропускає, а зсунуте для них лишається звичайним полем форми */
.form-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Згода на обробку персональних даних — обов'язковий чекбокс перед кнопкою */
/* Повітря з обох боків: чекбокс не має злипатися ні з полем над ним,
   ні з кнопкою під ним — інакше читається як частина кнопки.
   Зверху саме padding, а не margin: margin згорнувся б із нижнім відступом
   поля над чекбоксом (8px у hero, 16px на сторінках) і повітря не додав би.
   Селектор із двох класів: одинарний `.form-consent` програє
   `.hero-form .form-group` (0-2-0), і в hero-формі відступи не діяли б */
.form-group.form-consent {
    padding-top: var(--space-sm);
    margin-bottom: var(--space-md);
}

/* Селектор із двох класів навмисно: одинарний `.form-consent__label`
   програє загальному `.form-group label` — той теж має специфічність 0-1-1,
   але стоїть вище й робить підпис жирним, темним і на розмір більшим */
.form-consent .form-consent__label {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-bottom: 0;
    font-weight: 500;
    font-size: var(--text-xs);
    line-height: 1.5;
    /* Звичайний колір тексту, не сірий: це умова, яку приймають, а не примітка
       (docs/DESIGN.md, п. 4.3) */
    color: var(--color-text);
    cursor: pointer;
}

/* Скидаємо загальні правила полів: там width 100% і height 46px */
.form-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
    padding: 0;
    accent-color: var(--color-accent);
    cursor: pointer;
}

/* Посилання на політику: підкреслення плюс колір — на звичайному кольорі
   тексту самого лише кольору мало, щоб рядок прочитався як клікабельний */
.form-consent__label a {
    color: var(--color-primary-light);
    text-decoration: underline;
}

.form-consent__label a:hover { color: var(--color-accent); }

.form-consent input[type="checkbox"].error {
    outline: 2px solid var(--color-error);
    outline-offset: 2px;
}

/* Рамки в чекбокса немає — загальне `.form-group input:focus` прибрало б
   обводку й нічого не показало натомість */
.form-consent input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--color-primary-light);
    outline-offset: 2px;
}

/* Загальна помилка над формою (чужий origin, ліміт частоти) */
.form-alert {
    margin: 0 0 var(--space-md);
    padding: 12px 16px;
    border: 1px solid var(--color-error);
    border-left-width: 3px;
    border-radius: var(--radius);
    background: rgba(220, 38, 38, 0.06);
    color: var(--color-error);
    font-size: var(--text-sm);
    line-height: 1.5;
}

.form-privacy {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    color: var(--color-text-light);
    font-size: var(--text-xs);
    margin-top: var(--space-md);
    line-height: 1.5;
}

.form-privacy svg {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    margin-top: 2px;
}

/* === Booking Success === */
.booking-success {
    text-align: center;
    padding: var(--space-lg);
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 1px solid #86efac;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 24px rgba(34, 197, 94, 0.12);
    max-width: 520px;
    margin: 0 auto;
}

/* Тільки прямий нащадок: інакше кругла підкладка й padding дістаються
   іконкам у пігулках каналів і зводять площу малюнка до нуля */
.booking-success > svg {
    color: #16a34a;
    margin-bottom: var(--space-sm);
    background: rgba(22, 163, 74, 0.1);
    border-radius: 50%;
    padding: 10px;
    width: 44px;
    height: 44px;
}

.booking-success h3 {
    font-family: var(--font-heading);
    color: #15803d;
    margin-bottom: var(--space-xs);
    font-size: var(--text-lg);
}

.booking-success p {
    color: #4b5563;
    margin: 0 auto;
    font-size: var(--text-sm);
    line-height: 1.5;
}

/* Строк відповіді — головне, що людина шукає очима після відправки */
.booking-success__eta {
    font-weight: 600;
    color: #15803d;
}

.booking-success .contact-channels--compact {
    margin-top: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid rgba(22, 163, 74, 0.2);
}

/* Стислі канали для екрана подяки: підпис над сіткою пігулок */
.contact-channels--compact {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.contact-channels__label {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--color-text-light);
}

/* Три рівні колонки: краї пігулок збігаються по всій ширині блока */
.contact-channels--compact .contact-channels__list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xs);
    width: 100%;
    max-width: 320px;
}

/* Телефон — над месенджерами на всю ширину сітки */
.contact-channels--compact .channel-pill--phone {
    grid-column: 1 / -1;
}

.contact-channels--compact .channel-pill {
    /* Іконка й підпис по одній осі та по центру пігулки */
    justify-content: center;
    min-height: 34px;
    padding: 0 var(--space-xs);
    font-size: var(--text-xs);
    gap: 6px;
    background: rgba(255, 255, 255, 0.7);
    /* Номер телефону не можна розривати на два рядки */
    white-space: nowrap;
}

.contact-channels--compact .channel-pill svg {
    width: 16px;
    height: 16px;
}

.channel-pill--phone {
    font-weight: 700;
    color: var(--color-primary);
}

/* === CTA Section === */
.cta-section {
    background: linear-gradient(160deg, var(--color-primary) 0%, var(--color-primary-deep) 100%);
    color: #fff;
    text-align: center;
    padding: var(--space-2xl) 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(ellipse at 50% 50%, rgba(201, 168, 76, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

/* Декоративні геометричні лінії */
.cta-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    opacity: 0.3;
}

.cta-section .container { position: relative; z-index: 1; }

.cta-section h2 {
    color: #fff;
    margin-bottom: var(--space-sm);
    font-size: var(--text-2xl);
}

.cta-section h2::after { display: none; }

.cta-section p {
    color: rgba(255, 255, 255, 0.75);
    font-size: var(--text-md);
    margin: 0 auto var(--space-lg);
    max-width: 480px;
}

/* === Blockquote (цитати з Біблії) === */
.bible-quote {
    text-align: center;
    padding: var(--space-xl) 0;
    position: relative;
}

/* Декоративний золотий ромб */
.bible-quote::before {
    content: '◆';
    display: block;
    color: var(--color-accent);
    font-size: 10px;
    margin-bottom: var(--space-lg);
    letter-spacing: 12px;
}

.bible-quote blockquote {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-style: italic;
    color: var(--color-primary);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.5;
}

.bible-quote cite {
    display: block;
    color: var(--color-text-light);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-style: normal;
    margin-top: var(--space-md);
    letter-spacing: 0.04em;
}

/* === Section divider === */
.section-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--color-border), transparent);
    border: none;
    margin: 0;
}

/* === Footer === */
.site-footer {
    background: var(--color-primary);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--space-2xl) 0 0;
    font-size: var(--text-sm);
    position: relative;
}

/* Золота лінія зверху футера */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    opacity: 0.4;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color var(--transition);
}

.site-footer a:hover { color: var(--color-accent); }

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--space-xl);
    padding-bottom: var(--space-xl);
}

.footer-col__title {
    color: #fff;
    font-family: var(--font-heading);
    font-size: var(--text-md);
    margin-bottom: var(--space-md);
    position: relative;
    padding-bottom: var(--space-sm);
}

.footer-col__title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--color-accent);
}

.footer-col p,
.footer-col li {
    font-size: var(--text-sm);
    line-height: 1.8;
}

.footer-col ul { list-style: none; }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: var(--space-md) 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--text-xs);
    color: rgba(255, 255, 255, 0.4);
}

/* === FAQ Accordion === */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    max-width: 760px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.faq-item:has(.faq-item__question[aria-expanded="true"]) {
    border-color: rgba(201, 168, 76, 0.3);
    box-shadow: 0 2px 12px rgba(201, 168, 76, 0.08);
}

.faq-item__question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--color-primary);
    text-align: left;
    line-height: 1.4;
    transition: color var(--transition);
}

.faq-item__question:hover {
    color: var(--color-primary-light);
}

/* Обводка всередину: `.faq-item` з overflow: hidden обрізає зовнішню */
.faq-item__question:focus-visible {
    outline-offset: -2px;
}

.faq-item__chevron {
    flex-shrink: 0;
    transition: transform 0.3s;
    color: var(--color-text-muted);
}

.faq-item__question[aria-expanded="true"] .faq-item__chevron {
    transform: rotate(180deg);
    color: var(--color-accent);
}

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item__answer p {
    padding: 0 var(--space-lg) var(--space-md);
    color: var(--color-text-light);
    font-size: var(--text-base);
    line-height: 1.7;
    margin: 0;
}

/* === Placeholder === */
.placeholder {
    color: var(--color-text-light);
    font-style: italic;
    padding: var(--space-xl);
    border: 1px dashed var(--color-border);
    border-radius: var(--radius);
    text-align: center;
    font-size: var(--text-sm);
}

/* === Mobile sticky footer bar === */
.mobile-footer-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-primary-deep);
    z-index: 90;
    padding: var(--space-sm);
    border-top: 1px solid rgba(201, 168, 76, 0.2);
}

.mobile-footer-bar__inner {
    display: flex;
    gap: var(--space-sm);
}

.mobile-footer-bar a {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: var(--text-xs);
    padding: 12px;
    border-radius: var(--radius);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.mobile-footer-bar__icon {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

.mobile-footer-bar a.btn--call {
    background: rgba(255, 255, 255, 0.1);
}

.mobile-footer-bar a.btn--book {
    background: var(--color-accent);
    color: var(--color-primary);
}

/* === Inline helpers === */
.text-center { text-align: center; }
.text-muted { color: var(--color-text-light); }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mx-auto { margin-left: auto; margin-right: auto; }
.max-w-sm { max-width: 540px; }
.max-w-md { max-width: 640px; }
.max-w-lg { max-width: 760px; }

/* === Статус агентства (docs/DESIGN.md, п. 4.5) === */
.office-status {
    --office-status-dot: 8px;
    --office-status-line: 1.5;
    display: flex;
    /* По верху, не по центру: у hero й на «Контактах» текст переноситься на
       два рядки, і центрування по блоку кидало крапку в проміжок між ними */
    align-items: flex-start;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    line-height: var(--office-status-line);
    color: var(--color-text-light);
    margin-top: var(--space-sm);
}

.office-status__dot {
    flex-shrink: 0;
    width: var(--office-status-dot);
    height: var(--office-status-dot);
    border-radius: 50%;
    background: var(--color-text-muted);
    /* Центр першого рядка: половина висоти рядка мінус свій радіус */
    margin-top: calc((var(--office-status-line) * 1em - var(--office-status-dot)) / 2);
}

.office-status--open .office-status__dot {
    background: var(--color-success);
}

/* На темному фоні — світлий текст */
.office-status--light {
    color: rgba(255, 255, 255, 0.75);
}

/* === Канали зв'язку (docs/DESIGN.md, п. 4.4) === */
.contact-channels {
    margin-top: var(--space-lg);
}

.contact-channels__title {
    font-size: var(--text-lg);
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
}

.contact-channels__text {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    margin-bottom: var(--space-md);
}

.contact-channels__list {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

/* Вигляд — у `.btn--icon`; тут лише поведінка в ряду каналів */
.contact-channels__call {
    flex-shrink: 0;
}

.channel-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    min-height: 44px;
    padding: 0 var(--space-md);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-bg);
    color: var(--color-text);
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition);
}

.channel-pill:hover {
    border-color: var(--color-accent);
    color: var(--color-primary);
    background: var(--color-accent-light);
}

.channel-pill svg {
    color: var(--color-accent);
    flex-shrink: 0;
}

/* === «Що буде далі» (docs/DESIGN.md, п. 4.6) === */
.next-steps {
    background: var(--color-bg-alt);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
}

.next-steps__title {
    font-size: var(--text-lg);
    color: var(--color-primary);
    margin-bottom: var(--space-md);
}

.next-steps__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: var(--space-md);
}

.next-steps__item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    font-size: var(--text-sm);
    color: var(--color-text-light);
    line-height: 1.6;
}

.next-steps__item strong {
    display: block;
    color: var(--color-text);
    font-size: var(--text-base);
}

.next-steps__num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--color-accent-light);
    color: var(--color-accent-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: var(--text-sm);
    font-variant-numeric: lining-nums;
}

/* === Секція «Записатися»: форма + пояснення === */
.booking-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-2xl);
    align-items: start;
    max-width: 980px;
    margin: 0 auto;
}

/* === Як ми працюємо === */
.process {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-lg);
    counter-reset: process;
}

.process__item {
    position: relative;
    padding-top: var(--space-sm);
}

.process__num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-accent);
    border-radius: 50%;
    color: var(--color-accent-text);
    font-family: var(--font-heading);
    /* Маюскульні цифри: у Playfair Display за замовчуванням мінускульні,
       3 і 4 звисають під базову лінію й стоять нижче за 1 і 2 — DESIGN.md, п. 3 */
    font-variant-numeric: lining-nums;
    font-size: var(--text-lg);
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.process__title {
    font-size: var(--text-md);
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
}

.process__text {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    line-height: 1.6;
}

/* === Врізка з телефоном усередині тексту === */
.inline-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    flex-wrap: wrap;
    margin-top: var(--space-xl);
    padding: var(--space-lg);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-left: 3px solid var(--color-accent);
    border-radius: var(--radius);
}

.inline-cta__title {
    font-size: var(--text-md);
    color: var(--color-primary);
    margin-bottom: var(--space-xs);
}

.inline-cta__text {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    margin: 0;
}

.inline-cta .btn {
    text-transform: none;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* === Дії у шапці сторінки послуги === */

/* === Кнопка на всю ширину форми === */
.btn--block {
    display: block;
    width: 100%;
}

/* === Телефон і статус у шапці === */
.header-phone-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.2;
}

.header-phone-block .office-status {
    margin-top: 2px;
    /* Глобальний margin-bottom для <p> додавав блоку 12px знизу — через це
       телефон і статус стояли вище центру шапки */
    margin-bottom: 0;
    font-size: var(--text-xs);
    white-space: nowrap;
}

/* Контакти у висувному меню — тільки мобільна версія */
.site-nav__contacts { display: none; }

/* ===========================
   RESPONSIVE
   =========================== */

/* Нижче ширини контейнера (1140px) — мобільна версія повністю */
/* === Юридичний текст: політика конфіденційності (docs/PRIVACY.md) === */
/* Сторінка суцільного тексту — єдина на сайті. Тут не «дизайн», а читаність:
   довші відступи між розділами, ніж усередині розділу, і жодних карток. */
.legal {
    font-size: var(--text-md);
    color: var(--color-text);
}

.legal h2 {
    font-size: var(--text-xl);
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border);
}

.legal h2:first-of-type { margin-top: var(--space-xl); }

.legal p { margin-bottom: var(--space-md); max-width: none; }

.legal ul {
    margin: 0 0 var(--space-md);
    padding-left: var(--space-lg);
    list-style: disc;
}

.legal li { margin-bottom: var(--space-sm); }

.legal a { text-decoration: underline; }

/* Дата редакції: чинність політики визначає саме вона */
.legal__date {
    font-size: var(--text-sm);
    color: var(--color-text-light);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: var(--space-lg);
}

/* Витяг на початку — відповідь для тих, хто далі читати не буде */
.legal__lead {
    padding: var(--space-md) var(--space-lg);
    border-left: 3px solid var(--color-accent);
    background: var(--color-bg-warm);
    font-size: var(--text-lg);
    line-height: 1.6;
}

.legal__signature {
    margin-top: var(--space-2xl);
    padding-top: var(--space-md);
    border-top: 1px solid var(--color-border);
    font-size: var(--text-sm);
    color: var(--color-text-light);
}

@media (max-width: 1139.98px) {
    :root {
        --text-4xl: 32px;
        --text-3xl: 26px;
        --text-2xl: 22px;
        --text-xl: 19px;
        --space-2xl: 48px;
        --space-3xl: 64px;
    }

    body { font-size: 15px; }
    .container { padding: 0 var(--space-md); }
    .section { padding: var(--space-xl) 0; }

    /* Header */
    .site-header { padding: var(--header-pad-scrolled) 0; }
    .site-main { padding-top: 0; }
    .site-logo__mark { height: 40px; }
    /* Телефон і статус переїжджають у висувне меню та hero — у шапці лишається
       лого й бургер, інакше статус дублюється двічі на одному екрані */
    .header-contacts { display: none; }
    .burger-toggle { display: block; }

    .site-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 300px;
        height: 100vh;
        background: var(--color-primary-deep);
        padding: var(--space-3xl) var(--space-lg);
        /* Закрите меню приховане, а не лише зсунуте: інакше Tab заходить
           у невидимі посилання. visibility перемикається після виїзду */
        visibility: hidden;
        transition: right 0.3s, visibility 0s 0.3s;
        z-index: 200;
        border-left: 1px solid rgba(201, 168, 76, 0.15);
    }

    .site-nav--open {
        right: 0;
        visibility: visible;
        transition: right 0.3s, visibility 0s;
    }

    .site-nav__list {
        flex-direction: column;
        gap: var(--space-md);
    }

    .site-nav__list li a {
        font-size: var(--text-md);
    }

    .nav-overlay {
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 190;
    }

    .nav-overlay--visible { display: block; }

    .site-nav {
        z-index: 200;
    }

    /* Hero: текст із кнопкою дзвінка, одразу під ним — картка форми */
    .hero { padding: var(--space-xl) 0; }
    .hero::after { width: 250px; height: 250px; right: -60px; top: -60px; }

    .hero__inner {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    /* Кнопка дзвінка схована: така сама висить у sticky-барі внизу екрана,
       а два дзвінки на одному екрані — це повтор прохання (docs/UX.md, п. 2.6) */
    .hero__call { display: none; }

    .hero-form { padding: var(--space-md); }

    /* Та сама причина, що й у `.hero__call`: дзвінок уже є в sticky-барі,
       тому в екрані подяки лишаються тільки месенджери (docs/UX.md, п. 2.6) */
    .booking-success .channel-pill--phone { display: none; }

    /* Переваги ховаємо: одразу під hero йде панель довіри з тими самими
       сигналами, а форма має бути якомога вище (docs/UX.md, п. 2.2) */
    .hero__benefits { display: none; }

    /* Секція запису та кроки — в одну колонку */
    .booking-layout {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .process { grid-template-columns: 1fr; gap: var(--space-md); }
    .process__num { width: 32px; height: 32px; font-size: var(--text-base); margin-bottom: var(--space-sm); }

    /* Канали зв'язку: дзвінок на всю ширину, месенджери по два в ряд */
    .contact-channels__call { width: 100%; justify-content: center; }
    .channel-pill { flex: 1 1 40%; justify-content: center; }

    /* Врізка на сторінці послуги */
    .inline-cta { flex-direction: column; align-items: stretch; }
    .inline-cta .btn { text-align: center; }

    /* Контакти у висувному меню */
    .site-nav__contacts {
        display: block;
        margin-top: var(--space-xl);
        padding-top: var(--space-lg);
        border-top: 1px solid rgba(201, 168, 76, 0.2);
    }

    .site-nav__phone {
        display: block;
        color: #fff;
        font-size: var(--text-lg);
        font-weight: 700;
        text-decoration: none;
    }

    /* Grids */
    .grid--2,
    .grid--3,
    .grid--4 {
        grid-template-columns: 1fr;
    }

    /* Контакти: мапа над формою, фіксована висота — тягнути її нема за чим */
    .contacts-map-row {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .contacts-map {
        flex: 0 0 auto;
        min-height: 0;
        max-height: none;
        height: 320px;
    }

    .contacts-map-row__address { font-size: 18px; }

    /* Stats */
    .stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: var(--space-lg);
    }

    .stat + .stat::before { display: none; }
    .stat__number { font-size: var(--text-2xl); }

    /* Footer */
    .footer-grid { grid-template-columns: 1fr; gap: var(--space-lg); }
    .footer-bottom { flex-direction: column; gap: var(--space-xs); text-align: center; }

    /* Mobile elements */
    .mobile-footer-bar { display: block; }
    .site-footer { padding-bottom: 72px; }
}

/* === Менше руху — docs/DESIGN.md, п. 9 === */
/* Поява й лічильники вимикаються в main.js; тут — плавний скрол, переходи
   й підйом карток і кнопок на ховері */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

    .card:hover,
    .btn:hover {
        transform: none;
    }
}
