/* ═══════════════════════════════════════════════════════════════════
   Whole House Cleaning — стилі лендінга
   Mobile-first. Без зовнішніх шрифтів і CDN: кожен зайвий мережевий
   запит уповільнює перший екран, а це напряму б'є по конверсії.
   ═══════════════════════════════════════════════════════════════════ */

/* ─────────────── ДИЗАЙН-ТОКЕНИ ───────────────
   Уся палітра тут. Щоб перебрендувати сайт — міняти лише цей блок. */
:root {
  /* ─── КОЛІР ───
     Правило: жодного чистого #000 чи #fff — тінт і є підписом.
     Уся гама тепла (жовтуватий бік), бо холодний сірий у побутових
     послугах читається як клініка, а не як дім.
     Кожна пара текст/тло перевірена на WCAG AA (≥4.5). */

  --ink:        #1a1713;   /* теплий near-black — 17.4:1 на канві */
  --dark:       #181613;   /* темна смуга «Why choose us» */
  --dark-soft:  #262119;   /* межі всередині темної смуги */

  /* Сірі — рівно ТРИ сходинки. Четвертої не вигадувати. */
  --body:       #544c42;   /* основний текст — 8.2:1  */
  --muted:      #6f665a;   /* другорядний    — 5.5:1  (було #8a8a8a = 3.4, провал) */

  /* Золото. Розділене за роллю, бо одне значення не може бути
     і читабельним текстом, і світлою декоративною лінією. */
  --gold:       #8a6a24;   /* ТЕКСТ і заливка CTA — 5.0:1 білим (було 3.16) */
  --gold-dk:    #6f5419;   /* ховер                                        */
  --gold-lt:    #d4b573;   /* золото на темному тлі — 9.2:1                 */
  --gold-line:  #a07a2e;   /* ЛИШЕ лінії та контури іконок, не текст         */
  --gold-soft:  #f3ead9;   /* підкладка                                     */

  --bg:         #fdfcfa;   /* тепле молочне, не чисте біле */
  --cream:      #f7f3ec;   /* друга поверхня — крок значення, не тінь */
  --border:     #e8e1d5;
  --border-str: #d3c9b8;

  --success:    #2f7a4f;
  --danger:     #b5341f;

  /* Типографіка.
     Georgia — системна, є на всіх платформах, 0 запитів. Дає той самий
     елегантний serif-характер, що й у референсі.
     Хочеш саме Playfair Display — self-host, не Google Fonts (див. README). */
  --serif: Georgia, 'Times New Roman', Times, serif;
  --sans:  -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
           'Helvetica Neue', Arial, sans-serif;

  /* Скейл відступів */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  /* ─── ФОРМА ───
     Словник радіусів БІМОДАЛЬНИЙ: або гострі 4px, або повне коло.
     Нічого посередині. Проміжне значення (8, 12, 16px) — саме те,
     що робить сторінку схожою на шаблон; воно нічого не заявляє.
     Був ще radius-lg (6px) — мертвий токен, ніде не вживався. */
  --radius: 4px;      /* уся структура: картки, поля, кнопки */
  --round:  999px;    /* єдиний округлий жест: бейдж «Most popular» */

  /* ─── ГЛИБИНА ───
     Декоративних тіней НЕМАЄ навмисно. Глибину дають:
       1. крок значення між поверхнями (--bg → --cream)
       2. волосяна межа 1px (--border)
     Тінь лишилась рівно одна — фокусне кільце, і це доступність,
     а не оздоблення. */

  --header-h: 74px;
}

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

/* Атрибут hidden мусить перемагати завжди. Без !important секція відгуків
   лишалась би видимою: display:grid у .reviews перебиває типовий hidden. */
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px); /* якір не ховається під хедером */
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Вага 400 на серифі — навмисно. Bold на дисплейному кеглі читається
   як лендінг-кіт; 400 на 60px читається як упевненість. Ця вага —
   єдина для всіх заголовків, відхилень немає. */
h1, h2, h3 { font-family: var(--serif); color: var(--ink); line-height: 1.15; font-weight: 400; }
img, svg { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip-link {
  position: absolute; top: -100px; left: var(--s-4); z-index: 200;
  padding: var(--s-3) var(--s-4); background: var(--ink); color: #fff;
  transition: top .2s;
}
.skip-link:focus { top: var(--s-3); }

/* ─────────────── ЛЕЙАУТ ─────────────── */
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--s-4); }

.section { padding-block: var(--s-8); }
.section--cream { background: var(--cream); }

.section__head { text-align: center; max-width: 640px; margin: 0 auto var(--s-7); }
/* 28–40px → -.02em за драбиною трекінгу */
.section__title { font-size: clamp(28px, 5vw, 40px); letter-spacing: -.02em; }
.section__sub { font-size: 16px; color: var(--muted); margin-top: var(--s-4); }

/* Золота риска під заголовком секції — фірмовий елемент референсу */
.rule { display: block; width: 54px; height: 2px; background: var(--gold-line); margin: var(--s-4) auto 0; }

/* Золотий фрагмент у двоколірних заголовках */
.gold { color: var(--gold); }

/* ─────────────── EYEBROW ─────────────── */
.eyebrow {
  font-family: var(--sans);
  font-size: 12px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--s-3);
}
.eyebrow--gold { color: var(--gold-lt); }

/* ─────────────── КНОПКИ ─────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-3);
  /* Розміри на сітці 8px; min-height 44px — мінімальний тап-таргет. */
  padding: 16px 32px;
  min-height: 44px;
  font-family: var(--sans);
  font-size: 13px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;   /* щоб ghost не стрибав по висоті */
  white-space: nowrap;
  transition: background .18s, color .18s, border-color .18s, transform .12s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: var(--gold-dk); }

.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--gold); }

/* Другорядна дія. Правило: залита кнопка ніколи не стоїть сама —
   пара «залита + контурна» і є одиницею. І не більше однієї залитої
   на секцію: рідкість — це і є сигнал. */
.btn--ghost {
  background: transparent; color: var(--ink); border-color: var(--border-str);
}
.btn--ghost:hover { border-color: var(--ink); background: var(--gold-soft); }

.btn--arrow svg { width: 17px; height: 17px; transition: transform .18s; }
.btn--arrow:hover svg { transform: translateX(4px); }

.btn--sm   { padding: 12px 24px; min-height: 44px; font-size: 12px; }
.btn--lg   { padding: 20px 40px; min-height: 56px; font-size: 14px; }
.btn--full { width: 100%; }

/* ─────────────── HEADER ─────────────── */
.header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(253,252,250,.94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
/* Прилиплий хедер відділяємо волосяною межею, а не тінню. */
.header.is-stuck { border-bottom-color: var(--border); }

.header__inner { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: var(--s-4); }

/* Логотип: іконка + двоярусний текст (як у референсі) */
.logo { display: inline-flex; align-items: center; gap: var(--s-3); flex-shrink: 0; color: var(--gold); }
.logo:hover { text-decoration: none; }
.logo__mark { width: 34px; height: 34px; flex-shrink: 0; }
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__line1 {
  font-family: var(--sans); font-size: 15px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
}
.logo__line2 {
  font-family: var(--sans); font-size: 10px; font-weight: 600;
  letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
}
.logo--light .logo__line1 { color: #fff; }
.logo--light .logo__line2 { color: rgba(255,255,255,.55); }

.nav { display: none; gap: var(--s-5); }
.nav a {
  font-size: 12.5px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink);
  padding-block: var(--s-2); position: relative;
}
.nav a:hover, .nav a.is-active { color: var(--gold); text-decoration: none; }
.nav a::after {
  content: ''; position: absolute; left: 0; bottom: 2px;
  width: 0; height: 1.5px; background: var(--gold); transition: width .2s;
}
.nav a:hover::after, .nav a.is-active::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: var(--s-3); }

/* Бургер.
   min 44×44 — мінімальний тап-таргет за Apple HIG. Без цього кнопка
   виходила 38×32 і в неї доводилось цілитись. */
.burger {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; min-width: 44px; min-height: 44px; margin-right: -10px;
}
.burger span { width: 22px; height: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav.is-open {
  display: flex; flex-direction: column; gap: 0;
  position: fixed; top: var(--header-h); left: 0; right: 0;
  background: #fff; padding: var(--s-3) var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--border-str);
}
.nav.is-open a { padding: var(--s-4) 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.nav.is-open a::after { display: none; }

/* ─────────────── HERO ─────────────── */
.hero { background: var(--cream); }
.hero__grid { display: grid; }

.hero__copy { display: flex; align-items: center; padding: var(--s-8) var(--s-4); }
.hero__copy-inner { max-width: 520px; margin-inline: auto; width: 100%; }

.hero__title {
  font-size: clamp(38px, 8.5vw, 62px);
  /* >56px → -.03em, і міжрядковий стискається до ~1.0:
     на дисплейному кеглі 1.15 лишає діру між рядками. */
  letter-spacing: -.03em;
  line-height: 1.0;
  margin-bottom: var(--s-4);
}
.hero__sub { font-size: 16.5px; margin-bottom: var(--s-6); max-width: 400px; }

.hero__media { position: relative; min-height: 280px; }
.hero__photo { width: 100%; height: 100%; object-fit: cover; }

/* ─────────────── SERVICES ───────────────
   5 колонок з вертикальними розділювачами, як у референсі. */
.services { display: grid; gap: var(--s-5); }

.service { text-align: center; padding-inline: var(--s-4); }

.service__icon { display: grid; place-items: center; margin-bottom: var(--s-4); height: 52px; }
.service__icon svg {
  width: 46px; height: 46px;
  fill: none; stroke: var(--gold); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.service__icon svg .fill { fill: var(--gold); stroke: none; }

.service h3 { font-family: var(--sans); font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: var(--s-2); }
.service p { font-size: 13.5px; color: var(--muted); line-height: 1.6; }

/* ─────────────── WHY US (темна смуга) ─────────────── */
.why { background: var(--dark); padding-block: var(--s-8); }
.why__inner { display: grid; gap: var(--s-7); }

.why__title { font-size: clamp(26px, 4.4vw, 36px); color: #fff; margin-bottom: var(--s-4); }
.why__sub { color: rgba(255,255,255,.6); font-size: 15px; max-width: 300px; }

.why__grid { display: grid; gap: var(--s-6); }

.why__item { text-align: center; }
.why__icon { display: grid; place-items: center; margin-bottom: var(--s-3); }
.why__icon svg {
  width: 36px; height: 36px;
  fill: none; stroke: var(--gold-lt); stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.why__icon svg .stem { stroke: var(--gold-lt); }

.why__item h3 { font-family: var(--sans); font-size: 14px; font-weight: 700; color: #fff; margin-bottom: var(--s-2); }
.why__item p { font-size: 13px; color: rgba(255,255,255,.55); line-height: 1.6; }

/* ─────────────── PRICING ─────────────── */
.prices { display: grid; gap: var(--s-5); }

.price {
  background: #fff;
  border: 1px solid var(--border);
  padding: var(--s-7) var(--s-5) var(--s-5);
  text-align: center;
  position: relative;
  transition: transform .2s, border-color .2s, background .2s;
}
/* Ховер і виділення — крок значення + межа, без відриву від сторінки. */
.price:hover { transform: translateY(-3px); border-color: var(--gold); }

.price--featured { border-color: var(--gold); border-width: 2px; }

.price__badge {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
  background: var(--gold); color: #fff;
  font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  padding: 5px 14px; border-radius: var(--round); white-space: nowrap;
}

/* Золоте коло з іконкою — як у референсі */
.price__icon {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--gold); color: #fff;
  display: grid; place-items: center;
  margin: 0 auto var(--s-4);
}
.price__icon svg { width: 26px; height: 26px; }

.price h3 { font-family: var(--sans); font-size: 16px; font-weight: 700; color: var(--ink); margin-bottom: var(--s-3); }
.price__from { font-size: 13px; color: var(--muted); }
.price__amount { font-family: var(--serif); font-size: 40px; color: var(--ink); line-height: 1.1; margin-bottom: var(--s-4); }

.price__specs { display: grid; gap: 4px; margin-bottom: var(--s-5); }
.price__specs li { font-size: 13.5px; color: var(--muted); }

.prices__note { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: var(--s-5); }

/* ─────────────── REVIEWS ─────────────── */
.reviews { display: grid; gap: var(--s-5); }

/* Вліво: цитата — основний текст, а він ніколи не центрується. */
.review { padding: var(--s-5) var(--s-4); text-align: left; }

.stars { display: flex; gap: 3px; margin-bottom: var(--s-3); }
.stars svg { width: 15px; height: 15px; fill: var(--gold); }

.review blockquote p {
  font-size: 14.5px; color: var(--body); line-height: 1.7;
  font-style: italic; margin-bottom: var(--s-4);
}

.review figcaption { display: flex; align-items: center; gap: var(--s-3); }
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--gold-soft); color: var(--gold-dk);
  display: grid; place-items: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.review__who { font-size: 13px; color: var(--muted); font-weight: 600; }

/* Розділювачі між відгуками на десктопі */
@media (min-width: 900px) {
  .review { border-left: 1px solid var(--border); }
  .review:first-child { border-left: none; }
}

/* ─────────────── BOOKING ─────────────── */
.book { display: grid; gap: var(--s-6); align-items: start; }

.book__side h3 { font-size: 24px; margin-bottom: var(--s-3); }
.book__side-lead { font-size: 15px; margin-bottom: var(--s-5); }

.book__phone {
  display: inline-flex; align-items: center; gap: var(--s-3);
  font-family: var(--serif); font-size: 26px; color: var(--ink);
  margin-bottom: var(--s-6);
}
.book__phone svg { width: 22px; height: 22px; fill: var(--gold); flex-shrink: 0; }
.book__phone:hover { color: var(--gold); text-decoration: none; }

.book__perks { display: grid; gap: var(--s-3); margin-bottom: var(--s-6); }
.book__perks li { display: flex; align-items: flex-start; gap: var(--s-3); font-size: 14.5px; color: var(--body); }
.book__perks svg { width: 19px; height: 19px; fill: var(--gold); flex-shrink: 0; margin-top: 2px; }

.book__hours { border-top: 1px solid var(--border); padding-top: var(--s-4); }
.book__hours-label {
  font-size: 11px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); margin-bottom: var(--s-3);
}
.book__hours p { display: flex; justify-content: space-between; gap: var(--s-4); font-size: 14px; padding-block: 3px; }
.book__hours span:first-child { color: var(--ink); font-weight: 600; }

/* ─────────────── ФОРМА ─────────────── */
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  padding: var(--s-5);
}

.field { margin-bottom: var(--s-4); }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.req { color: var(--danger); }
.opt { color: var(--muted); font-weight: 400; }

.field input, .field textarea, .field select {
  width: 100%;
  padding: 12px 14px;
  font-family: var(--sans);
  font-size: 16px; /* 16px обов'язково: менше — iOS зумить сторінку при фокусі */
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--border-str);
  border-radius: var(--radius);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 82px; }
.field input::placeholder, .field textarea::placeholder { color: #b3aca0; }

.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(178,139,60,.15);
}

/* Стан помилки — вішає form.js */
.field input.is-invalid, .field textarea.is-invalid, .field select.is-invalid {
  border-color: var(--danger); background: #fdf5f4;
}
.field input.is-invalid:focus, .field select.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(181,52,31,.13);
}

.field-row { display: grid; grid-template-columns: 1fr; }

/* Кастомна стрілка для select */
.select-wrap { position: relative; }
.select-wrap::after {
  content: ''; position: absolute; right: 15px; top: 50%;
  width: 7px; height: 7px; pointer-events: none;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: translateY(-70%) rotate(45deg);
}
.select-wrap select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 38px; }

.err { font-size: 12.5px; color: var(--danger); margin-top: 5px; font-weight: 600; }
.err:empty { display: none; }
.err--consent { margin: -8px 0 var(--s-3); }

/* Honeypot: приховуємо від людей, залишаємо доступним ботам.
   display:none НЕ підходить — розумні боти його ігнорують. */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Консент */
.consent { display: flex; gap: var(--s-3); align-items: flex-start; margin-bottom: var(--s-4); }
.consent input { width: 17px; height: 17px; flex-shrink: 0; margin-top: 2px; accent-color: var(--gold); cursor: pointer; }
.consent label { font-size: 11px; line-height: 1.55; color: var(--muted); cursor: pointer; }
.consent a { text-decoration: underline; }
.consent input.is-invalid { outline: 2px solid var(--danger); outline-offset: 2px; }

/* Кнопка сабміту + спінер */
#submitBtn { position: relative; }
.btn__spinner {
  display: none; width: 16px; height: 16px;
  border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff;
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
#submitBtn.is-loading { pointer-events: none; opacity: .8; }
#submitBtn.is-loading .btn__spinner { display: block; }

.form-foot { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 11.5px; color: var(--muted); margin-top: var(--s-3); }
.form-foot svg { width: 13px; height: 13px; fill: var(--success); flex-shrink: 0; }

.form-status { margin-top: var(--s-4); padding: var(--s-4); border-radius: var(--radius); font-size: 14px; display: none; }
.form-status.is-visible { display: block; }
.form-status.is-success { background: #eef7f1; color: var(--success); border: 1px solid #bfe0cc; }
.form-status.is-error   { background: #fdf2f0; color: var(--danger);  border: 1px solid #f0cdc6; }
.form-status strong { display: block; margin-bottom: 3px; font-size: 15px; }

/* Успішна відправка — ховаємо поля, лишаємо повідомлення */
.form-card.is-done form > *:not(.form-status) { display: none; }

/* ─────────────── CTA BAND ─────────────── */
.cta { background: var(--gold-soft); padding-block: var(--s-6); }
.cta__inner { display: grid; gap: var(--s-5); justify-items: center; text-align: center; }
.cta__left { display: flex; align-items: center; gap: var(--s-4); text-align: left; }

.cta__icon {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: grid; place-items: center; flex-shrink: 0;
}
.cta__icon svg { width: 26px; height: 26px; }

.cta h2 { font-size: 24px; margin-bottom: 2px; }
.cta p { font-size: 14.5px; color: var(--body); }

/* ─────────────── FOOTER ─────────────── */
.footer { background: var(--dark); color: rgba(255,255,255,.6); padding-block: var(--s-7) var(--s-5); }
.footer__grid { display: grid; gap: var(--s-6); margin-bottom: var(--s-6); }

.footer__tagline { margin-top: var(--s-4); font-size: 14px; max-width: 240px; line-height: 1.7; }

.footer__col { display: flex; flex-direction: column; gap: var(--s-2); }
.footer__col h3 {
  font-family: var(--sans); font-size: 12px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: #fff; margin-bottom: var(--s-3);
}
.footer__col a { color: rgba(255,255,255,.6); font-size: 14px; }
.footer__col a:hover { color: var(--gold-lt); }

.footer__contact { display: flex; align-items: center; gap: var(--s-3); font-size: 14px; color: rgba(255,255,255,.6); }
.footer__contact svg { width: 15px; height: 15px; fill: var(--gold); flex-shrink: 0; }

.footer__social { display: flex; gap: var(--s-3); margin-top: var(--s-3); }
.footer__social a {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--dark-soft);
  display: grid; place-items: center;
  transition: background .18s;
}
.footer__social a:hover { background: var(--gold); }
.footer__social svg { width: 16px; height: 16px; fill: rgba(255,255,255,.75); }
.footer__social a:hover svg { fill: #fff; }

.footer__hours { font-size: 14px; display: flex; flex-direction: column; }
.footer__hours span { color: #fff; font-weight: 600; }

.footer__bar {
  border-top: 1px solid var(--dark-soft); padding-top: var(--s-5);
  display: grid; gap: var(--s-3); justify-items: center; text-align: center;
}
.footer__bar p { font-size: 12.5px; }
.footer__legal { display: flex; gap: var(--s-4); }
.footer__legal a { color: rgba(255,255,255,.6); font-size: 12.5px; }
.footer__legal a:hover { color: var(--gold-lt); }

/* ═══════════════════════════════════════════════════════════════════
   АДАПТИВ
   ═══════════════════════════════════════════════════════════════════ */

/* ── Планшет ── */
@media (min-width: 640px) {
  .field-row { grid-template-columns: 1.3fr 1fr; gap: var(--s-3); }
  .services  { grid-template-columns: repeat(3, 1fr); gap: var(--s-6) var(--s-3); }
  .prices    { grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
  .reviews   { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .why__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__bar  { grid-template-columns: auto auto; justify-content: space-between; justify-items: start; }
  .form-card { padding: var(--s-6); }
  .cta__inner { grid-template-columns: auto auto; justify-content: space-between; align-items: center; }
}

/* ── Десктоп ── */
@media (min-width: 900px) {
  .section { padding-block: var(--s-9); }

  .nav { display: flex; }
  .burger { display: none; }

  /* Hero: текст ліворуч, фото праворуч на всю висоту */
  .hero__grid { grid-template-columns: 1fr 1fr; min-height: 560px; }
  .hero__copy { padding: var(--s-9) var(--s-6); }
  .hero__copy-inner { margin-right: 0; }

  /* 5 колонок із вертикальними розділювачами */
  .services { grid-template-columns: repeat(5, 1fr); gap: 0; }
  .service  { border-left: 1px solid var(--border); }
  .service:first-child { border-left: none; }

  /* Копірайт ліворуч, 3 переваги праворуч
     (було 4, але картку «Licensed & Insured» прибрано) */
  .why__inner { grid-template-columns: minmax(240px, 1fr) 2.1fr; gap: var(--s-8); align-items: center; }
  .why__grid  { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .why__item  { border-left: 1px solid var(--dark-soft); padding-inline: var(--s-4); }
  .why__item:first-child { border-left: none; }

  .prices { gap: var(--s-5); }

  /* Контакти ліворуч, форма праворуч */
  .book { grid-template-columns: 1fr 1.15fr; gap: var(--s-8); }

  .footer__grid { grid-template-columns: 1.5fr 1fr 1.3fr 1fr; }
}

/* ─────────────── АНІМАЦІЯ ПОЯВИ ───────────────
   Клас .reveal вішає main.js через IntersectionObserver. */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease-out, transform .5s ease-out; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Повага до системного налаштування «менше руху» */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ─────────────── ДРУК ─────────────── */
@media print {
  .header, .cta, .burger, .hero__media { display: none; }
  body { color: #000; }
}

/* ═══════════════════════════════════════════════════════════════════
   ЮРИДИЧНА СТОРІНКА (privacy.html)
   ═══════════════════════════════════════════════════════════════════ */
.legal { padding-block: var(--s-7) var(--s-8); }

.legal__head { padding-bottom: var(--s-5); margin-bottom: var(--s-6); border-bottom: 1px solid var(--border); }
.legal__head h1 { font-size: clamp(28px, 5vw, 40px); margin-bottom: var(--s-3); }
.legal__updated { font-size: 14px; color: var(--muted); }

.container--narrow { max-width: 780px; }

.legal__toc { background: var(--cream); border: 1px solid var(--border); padding: var(--s-4) var(--s-5); margin-bottom: var(--s-6); }
.legal__toc h2 { font-family: var(--sans); font-size: 12px; text-transform: uppercase; letter-spacing: .14em; margin-bottom: var(--s-3); color: var(--muted); }
.legal__toc ol { list-style: decimal; margin-left: var(--s-4); display: grid; gap: 6px; }
.legal__toc a { font-size: 14.5px; }

.legal__body h2 { font-size: 21px; margin: var(--s-6) 0 var(--s-3); }
.legal__body h3 { font-family: var(--sans); font-size: 15.5px; font-weight: 700; color: var(--ink); margin: var(--s-4) 0 var(--s-2); }
.legal__body p { margin-bottom: var(--s-3); font-size: 15px; }
.legal__body ul, .legal__body ol { margin: 0 0 var(--s-3) var(--s-5); }
.legal__body ul { list-style: disc; }
.legal__body ol { list-style: decimal; }
.legal__body li { margin-bottom: var(--s-2); font-size: 15px; }
.legal__body a { text-decoration: underline; }

.legal__contact { background: var(--cream); border: 1px solid var(--border); padding: var(--s-4) var(--s-5); margin-top: var(--s-5); }
.legal__contact p { margin-bottom: var(--s-1); }
