/* ==========================================================================
   Садочок розвитку «Абетка» — єдина таблиця стилів обох філій.

   Порядок: шрифти → токени → база → утиліти → компоненти → секції → друк.
   Підхід mobile-first: базові правила описують телефон, медіазапити
   (min-width) додають планшет і десктоп.
   ========================================================================== */

/* ==========================================================================
   1. Шрифти (self-hosted, variable, лише потрібні сабсети)
   ========================================================================== */

@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/nunito-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/nunito-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/nunito-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: 'Nunito';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/nunito-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/inter-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/inter-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/inter-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: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ==========================================================================
   2. Токени дизайн-системи
   ========================================================================== */

:root {
  /* Кольори логотипу */
  --c-orange: #ff6b4a;
  --c-orange-dark: #e8502e;
  --c-green: #9bcc3e;
  --c-green-dark: #7ba828;
  --c-purple: #9966cc;
  --c-purple-dark: #7d4bb3;
  --c-blue: #00a9e0;
  --c-blue-dark: #0089b8;

  /* Мʼякі підкладки під кожен колір */
  --t-orange: #fff1ed;
  --t-green: #f4faE6;
  --t-purple: #f5efFC;
  --t-blue: #e8f7fd;

  /* Нейтральні */
  --ink: #333333;
  --ink-2: #565c66;
  --ink-3: #838a94;
  --line: #e7e9ee;
  --line-soft: #f0f2f5;
  --bg: #ffffff;
  --bg-soft: #f8f9fa;
  --bg-dark: #1f2430;

  /* Типографіка */
  --font-head: 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* Плавні розміри — clamp прибирає потребу в купі медіазапитів */
  --fs-h1: clamp(2.1rem, 1.35rem + 3.2vw, 3.9rem);
  --fs-h2: clamp(1.65rem, 1.2rem + 1.9vw, 2.65rem);
  --fs-h3: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  --fs-lead: clamp(1rem, 0.96rem + 0.3vw, 1.16rem);
  --fs-body: 1rem;
  --fs-sm: 0.9rem;
  --fs-xs: 0.8rem;

  /* Простір */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --section-y: clamp(3.5rem, 2rem + 6vw, 6.5rem);

  /* Форма */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(31, 36, 48, 0.06);
  --shadow-sm: 0 2px 8px rgba(31, 36, 48, 0.07);
  --shadow-md: 0 10px 28px -12px rgba(31, 36, 48, 0.22);
  --shadow-lg: 0 26px 60px -24px rgba(31, 36, 48, 0.32);

  --container: 1200px;
  --header-h: 68px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Активний акцент — перевизначається класом теми філії */
  --accent: var(--c-orange);
  --accent-dark: var(--c-orange-dark);
  --accent-tint: var(--t-orange);
}

@media (min-width: 900px) {
  :root { --header-h: 78px; }
}

/* ==========================================================================
   3. База
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

/* Атрибут hidden має вимикати елемент завжди.
   Без цього будь-яке авторське `display` (напр. `.lightbox { display: grid }`)
   перебиває стиль браузера, і «прихований» оверлей мовчки перехоплює кліки
   по всій сторінці. */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.18;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.015em;
}

p { margin: 0 0 var(--sp-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

img, picture, svg { max-width: 100%; }
img { height: auto; display: block; }

ul, ol { margin: 0; padding: 0; list-style: none; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--c-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--c-orange); color: #fff; }

section[id], main[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

/* Дрібний елемент, який зустрічається всюди */
.icon { flex: none; }

/* ── Курсори ──────────────────────────────────────────────────────────────
   Правило одне на весь сайт: якщо на елемент можна натиснути — курсор
   перетворюється на «руку». Браузери роблять так не для всього (наприклад,
   <button> за замовчуванням лишається стрілкою), тож задаємо явно.
   ───────────────────────────────────────────────────────────────────────── */

a[href],
button,
label[for],
summary,
select,
[role='button'],
[role='tab'],
[onclick],
input[type='submit'],
input[type='button'],
input[type='checkbox'],
input[type='radio'] {
  cursor: pointer;
}

/* Іконка чи текст усередині кнопки не має «повертати» стрілку */
button *, a[href] * { cursor: inherit; }

/* Текстові поля — каретка, а не рука */
input[type='text'], input[type='tel'], input[type='email'], textarea { cursor: text; }

/* Неактивні елементи чесно показують, що натискати марно */
button:disabled, [aria-disabled='true'], .btn:disabled { cursor: not-allowed; }

/* Спеціальні випадки */
.gallery__btn { cursor: zoom-in; }
.lightbox__backdrop { cursor: zoom-out; }
/* Поточна філія — це <span>, а не посилання: натискати нема куди.
   Активна вкладка розкладу навпаки лишається кнопкою з «рукою». */
.city-switch__opt.is-current,
[aria-current='page'] { cursor: default; }

/* На сенсорних екранах курсора немає — прибираємо затримку підсвітки
   і власний колір тапу, щоб натискання відчувалось миттєвим. */
@media (hover: none) {
  a[href], button, [role='button'], .chip, .tab, .choice, .gallery__btn {
    -webkit-tap-highlight-color: rgba(255, 107, 74, 0.18);
    touch-action: manipulation;
  }
}

/* ==========================================================================
   4. Утиліти
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}
.container--narrow { max-width: 820px; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0; left: 50%;
  transform: translate(-50%, -120%);
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1.4rem;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  text-decoration: none;
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); color: #fff; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 var(--sp-3);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: var(--r-pill);
  background: var(--t-orange);
  color: var(--c-orange-dark);
}
.eyebrow--green { background: var(--t-green); color: var(--c-green-dark); }
.eyebrow--purple { background: var(--t-purple); color: var(--c-purple-dark); }
.eyebrow--blue { background: var(--t-blue); color: var(--c-blue-dark); }
.eyebrow--hero { background: #fff; box-shadow: var(--shadow-sm); }
.eyebrow--light { background: rgba(255, 255, 255, 0.18); color: #fff; }

.note {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  margin-top: var(--sp-6);
  padding: var(--sp-4) var(--sp-5);
  background: var(--bg-soft);
  border-radius: var(--r-md);
  color: var(--ink-2);
  font-size: var(--fs-sm);
}
.note .icon { color: var(--c-green-dark); margin-top: 2px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-head);
  font-weight: 700;
  text-decoration: none;
  color: var(--c-orange-dark);
}
.link-arrow .icon { transition: transform 0.25s var(--ease); }
.link-arrow:hover { color: var(--c-orange-dark); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ── Кнопки ──────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-body);
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
              background-color 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn--primary {
  background: var(--c-orange);
  color: #fff;
  box-shadow: 0 10px 22px -10px rgba(255, 107, 74, 0.85);
}
.btn--primary:hover {
  background: var(--c-orange-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 28px -12px rgba(232, 80, 46, 0.9);
}

.btn--ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-xs);
}
.btn--ghost:hover { border-color: var(--c-orange); color: var(--c-orange-dark); transform: translateY(-2px); }

.btn--sm { padding: 0.5rem 1rem; font-size: var(--fs-sm); }
.btn--lg { padding: 0.95rem 1.9rem; font-size: 1.05rem; }
.btn--block { width: 100%; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--bg-soft);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.icon-btn:hover { background: var(--line); }

/* ── Чипи (фільтр галереї) ───────────────────────────────────────────── */

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: var(--sp-6);
}
.chip {
  padding: 0.5rem 1.1rem;
  border: 2px solid var(--line);
  border-radius: var(--r-pill);
  background: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.chip:hover { border-color: var(--c-blue); color: var(--c-blue-dark); }
.chip.is-active {
  background: var(--c-blue);
  border-color: var(--c-blue);
  color: #fff;
  box-shadow: 0 8px 18px -10px rgba(0, 169, 224, 0.9);
}

/* ==========================================================================
   5. Шапка, навігація, логотип
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.header.is-scrolled {
  border-bottom-color: var(--line-soft);
  box-shadow: var(--shadow-sm);
}

.header__progress {
  position: absolute;
  left: 0; bottom: -1px;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--c-orange), var(--c-green), var(--c-blue), var(--c-purple));
  border-radius: 0 3px 3px 0;
  transition: width 0.1s linear;
}

.header__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  min-height: var(--header-h);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-left: auto;
}
.header__call { display: none; }

/* ── Логотип ─────────────────────────────────────────────────────────── */

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  flex: none;
}
.logo__mark {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  width: 34px; height: 34px;
  padding: 3px;
  border-radius: 11px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: transform 0.4s var(--ease-out);
}
.logo:hover .logo__mark { transform: rotate(-8deg) scale(1.06); }
.logo__tile { border-radius: 4px; }
.logo__tile--orange { background: var(--c-orange); }
.logo__tile--green { background: var(--c-green); }
.logo__tile--purple { background: var(--c-purple); }
.logo__tile--blue { background: var(--c-blue); }

.logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.logo__word {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.28rem;
  letter-spacing: 0.02em;
}
.logo__letter--orange { color: var(--c-orange); }
.logo__letter--green { color: var(--c-green-dark); }
.logo__letter--purple { color: var(--c-purple); }
.logo__letter--blue { color: var(--c-blue); }
.logo__city {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.logo--compact .logo__word { font-size: 1.1rem; }

/* ── Основне меню (десктоп) ──────────────────────────────────────────── */

.nav { display: none; }
.nav__list { display: flex; gap: 0.15rem; }
.nav__link {
  position: relative;
  display: block;
  padding: 0.5rem 0.7rem;
  border-radius: var(--r-sm);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.nav__link::after {
  content: '';
  position: absolute;
  left: 50%; bottom: 4px;
  width: 0; height: 3px;
  border-radius: 3px;
  background: var(--c-orange);
  transform: translateX(-50%);
  transition: width 0.25s var(--ease);
}
.nav__link:hover { color: var(--ink); background: var(--bg-soft); }
.nav__link.is-current { color: var(--ink); }
.nav__link.is-current::after { width: 22px; }

/* ── Перемикач філії ─────────────────────────────────────────────────── */

.city-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.4rem 0.3rem 0.7rem;
  border: 2px solid var(--line);
  border-radius: var(--r-pill);
  background: #fff;
  font-size: var(--fs-sm);
}
.city-switch__label {
  display: none;
  align-items: center;
  gap: 0.3rem;
  color: var(--ink-3);
  font-weight: 600;
}
.city-switch__label .icon { color: var(--c-purple); }
.city-switch__opts { display: inline-flex; gap: 2px; }

/* Обидва міста — клікабельні перемикачі; активне підсвічене */
.city-switch__opt {
  display: inline-block;
  padding: 0.3rem 0.85rem;
  border-radius: var(--r-pill);
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.city-switch__opt:hover {
  background: var(--t-purple);
  color: var(--c-purple-dark);
}
.city-switch__opt.is-current {
  background: var(--c-purple);
  color: #fff;
  cursor: default;
  box-shadow: 0 6px 14px -8px rgba(153, 102, 204, 0.95);
}

.city-switch--block {
  display: flex;
  width: 100%;
  justify-content: center;
  margin-bottom: var(--sp-3);
}
.city-switch--block .city-switch__opts { flex: 1; }
.city-switch--block .city-switch__opt { flex: 1; text-align: center; }

/* У шапці перемикач зʼявляється, щойно для нього є місце; на вузьких
   екранах його роль виконує такий самий блок у мобільному меню. */
.header__actions .city-switch { display: none; }
@media (min-width: 620px) {
  .header__actions .city-switch { display: inline-flex; }
  .city-switch__label { display: inline-flex; }
}

/* ── Бургер ──────────────────────────────────────────────────────────── */

.burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  padding: 0;
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  cursor: pointer;
}
.burger__box { position: relative; display: block; width: 20px; height: 14px; }
.burger__line, .burger__box::before, .burger__box::after {
  position: absolute;
  left: 0;
  width: 100%; height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.burger__box::before { content: ''; top: 0; }
.burger__line { top: 50%; margin-top: -1.25px; }
.burger__box::after { content: ''; bottom: 0; }
.burger[aria-expanded='true'] .burger__box::before { transform: translateY(5.75px) rotate(45deg); }
.burger[aria-expanded='true'] .burger__line { opacity: 0; }
.burger[aria-expanded='true'] .burger__box::after { transform: translateY(-5.75px) rotate(-45deg); }

/* ── Мобільне меню ───────────────────────────────────────────────────── */

.menu {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(31, 36, 48, 0.45);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.menu.is-open { opacity: 1; }

.menu__panel {
  position: absolute;
  top: 0; right: 0;
  display: flex;
  flex-direction: column;
  width: min(360px, 88vw);
  height: 100%;
  padding: var(--sp-4) var(--sp-5) calc(var(--sp-5) + env(safe-area-inset-bottom));
  background: #fff;
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  transition: transform 0.32s var(--ease-out);
  overflow-y: auto;
}
.menu.is-open .menu__panel { transform: translateX(0); }

.menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--line-soft);
}
.menu__list { margin: var(--sp-4) 0; }
.menu__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 0.25rem;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
}
.menu__list a .icon { color: var(--ink-3); transition: transform 0.2s var(--ease); }
.menu__list a:hover { color: var(--c-orange-dark); }
.menu__list a:hover .icon { transform: translateX(4px); color: var(--c-orange); }

.menu__foot { margin-top: auto; padding-top: var(--sp-4); }
.menu__address {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: var(--sp-3) 0 0;
  font-size: var(--fs-sm);
  color: var(--ink-3);
}

/* ==========================================================================
   6. Головний екран
   ========================================================================== */

.hero {
  position: relative;
  padding-top: clamp(2rem, 1rem + 4vw, 4rem);
  padding-bottom: var(--sp-6);
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
}
.blob--1 { width: 420px; height: 420px; top: -120px; left: -140px; background: var(--t-orange); }
.blob--2 { width: 380px; height: 380px; top: 40px; right: -160px; background: var(--t-blue); }
.blob--3 { width: 320px; height: 320px; bottom: -140px; left: 35%; background: var(--t-green); }

.hero__inner {
  display: grid;
  gap: var(--sp-6);
  align-items: center;
}

.hero__title { font-size: var(--fs-h1); margin-bottom: var(--sp-4); }
.hero__accent {
  position: relative;
  color: var(--c-orange);
  white-space: nowrap;
}
.hero__accent::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0.05em;
  height: 0.28em;
  background: var(--c-green);
  opacity: 0.32;
  border-radius: var(--r-pill);
  z-index: -1;
}
.hero__lead {
  font-size: var(--fs-lead);
  color: var(--ink-2);
  max-width: 52ch;
  margin-bottom: var(--sp-5);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.hero__note {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: var(--sp-5);
  font-size: var(--fs-sm);
  color: var(--ink-3);
}
.hero__note .icon { color: var(--c-orange); }
.hero__note a { font-weight: 600; }

.hero__media { position: relative; }
.hero__picture { display: block; }
.hero__picture img {
  width: 100%;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
  aspect-ratio: 16 / 11;
}
.hero__card {
  position: absolute;
  left: -6px; bottom: -18px;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1.1rem;
  border-radius: var(--r-md);
  background: #fff;
  box-shadow: var(--shadow-md);
  font-size: var(--fs-sm);
  line-height: 1.3;
}
.hero__card-icon {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: var(--r-pill);
  background: var(--t-green);
  color: var(--c-green-dark);
}
.hero__card strong { font-family: var(--font-head); }

/* ── Смуга показників ────────────────────────────────────────────────── */

.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: var(--sp-7);
}
.stat {
  padding: var(--sp-4);
  border-radius: var(--r-md);
  background: var(--bg-soft);
  text-align: center;
}
.stat__value, .stat__suffix {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem);
  line-height: 1.1;
  color: var(--c-orange);
}
.stat:nth-child(2) .stat__value, .stat:nth-child(2) .stat__suffix { color: var(--c-green-dark); }
.stat:nth-child(3) .stat__value, .stat:nth-child(3) .stat__suffix { color: var(--c-purple); }
.stat:nth-child(4) .stat__value, .stat:nth-child(4) .stat__suffix { color: var(--c-blue); }
.stat__suffix { font-size: 1rem; }
.stat__label {
  display: block;
  margin-top: 0.2rem;
  font-size: var(--fs-xs);
  color: var(--ink-3);
  line-height: 1.35;
}

/* ==========================================================================
   7. Загальний каркас секцій
   ========================================================================== */

.section { padding-block: var(--section-y); }
.section--about { background: var(--bg); }
.section--team { background: var(--bg-soft); }
.section--gallery { background: var(--bg); }
.section--pricing { background: var(--bg-soft); }
.section--schedule { background: var(--bg); }
.section--faq { background: var(--bg-soft); }
.section--contacts { background: var(--bg); }

.section__head { margin-bottom: var(--sp-7); }
.section__head--center { text-align: center; }
.section__head--center .section__lead { margin-inline: auto; }
.section__title { font-size: var(--fs-h2); }
.section__lead {
  margin-top: var(--sp-4);
  max-width: 62ch;
  font-size: var(--fs-lead);
  color: var(--ink-2);
}

/* ==========================================================================
   8. Про садочок
   ========================================================================== */

.about__grid { display: grid; gap: var(--sp-6); }
.about__text p { color: var(--ink-2); }

.mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}
.mosaic__item { margin: 0; }
.mosaic__item img {
  width: 100%;
  height: 100%;
  border-radius: var(--r-lg);
  object-fit: cover;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-sm);
  transition: transform 0.45s var(--ease-out);
}
.mosaic__item:hover img { transform: scale(1.03); }
.mosaic__item--1 { border-radius: var(--r-lg); }
.mosaic__item--2 { margin-top: var(--sp-5); }
.mosaic__item--3 { margin-top: calc(var(--sp-5) * -1); }

.pillars {
  display: grid;
  gap: var(--sp-4);
  margin-top: var(--sp-7);
}
.pillar {
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  background: #fff;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-xs);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pillar__icon {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  margin-bottom: var(--sp-4);
  border-radius: var(--r-md);
}
.pillar--orange .pillar__icon { background: var(--t-orange); color: var(--c-orange-dark); }
.pillar--green .pillar__icon { background: var(--t-green); color: var(--c-green-dark); }
.pillar--purple .pillar__icon { background: var(--t-purple); color: var(--c-purple-dark); }
.pillar--blue .pillar__icon { background: var(--t-blue); color: var(--c-blue-dark); }
.pillar__title { font-size: var(--fs-h3); margin-bottom: var(--sp-2); }
.pillar__text { color: var(--ink-2); font-size: var(--fs-sm); margin: 0; }

/* ==========================================================================
   9. Команда
   ========================================================================== */

.teachers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: var(--sp-5);
}
.teacher {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.teacher:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.teacher__photo { position: relative; }
.teacher__photo img {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  object-position: center 22%;
}
.teacher__years {
  position: absolute;
  left: 0.85rem; bottom: 0.85rem;
  padding: 0.28rem 0.7rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.94);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-xs);
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}
.teacher__body { padding: var(--sp-4) var(--sp-5) var(--sp-5); }
.teacher__name { font-size: var(--fs-h3); }
.teacher__role {
  margin: 0.15rem 0 var(--sp-3);
  font-size: var(--fs-sm);
  font-weight: 600;
}
.teacher--orange .teacher__role { color: var(--c-orange-dark); }
.teacher--green .teacher__role { color: var(--c-green-dark); }
.teacher--purple .teacher__role { color: var(--c-purple-dark); }
.teacher--blue .teacher__role { color: var(--c-blue-dark); }
.teacher__bio { margin: 0; font-size: var(--fs-sm); color: var(--ink-2); }

.teacher--orange { border-top: 4px solid var(--c-orange); }
.teacher--green { border-top: 4px solid var(--c-green); }
.teacher--purple { border-top: 4px solid var(--c-purple); }
.teacher--blue { border-top: 4px solid var(--c-blue); }

/* ==========================================================================
   10. Галерея та лайтбокс
   ========================================================================== */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--sp-4);
}
.gallery__item.is-hidden { display: none; }

.gallery__btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-soft);
  cursor: zoom-in;
}
.gallery__btn img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.gallery__btn:hover img { transform: scale(1.06); }
.gallery__overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(180deg, rgba(31, 36, 48, 0) 40%, rgba(31, 36, 48, 0.45));
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.gallery__btn:hover .gallery__overlay,
.gallery__btn:focus-visible .gallery__overlay { opacity: 1; }

.gallery__empty { margin-top: var(--sp-5); text-align: center; color: var(--ink-3); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.lightbox.is-open { opacity: 1; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(20, 23, 31, 0.9); cursor: zoom-out; }

.lightbox__dialog {
  position: relative;
  width: min(1100px, 94vw);
  max-height: 92vh;
  display: grid;
  place-items: center;
}
.lightbox__figure { margin: 0; text-align: center; }
.lightbox__figure img {
  max-width: 100%;
  max-height: 74vh;
  width: auto;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
}
.lightbox__figure figcaption {
  margin-top: var(--sp-4);
  color: #fff;
  font-size: var(--fs-sm);
  opacity: 0.9;
}
.lightbox__close { position: absolute; top: -8px; right: 0; background: rgba(255, 255, 255, 0.14); color: #fff; }
.lightbox__close:hover { background: rgba(255, 255, 255, 0.26); }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
.lightbox__nav:hover { background: rgba(255, 255, 255, 0.26); }
.lightbox__nav--prev { left: -6px; }
.lightbox__nav--next { right: -6px; }
.lightbox__counter {
  position: absolute;
  bottom: -30px; left: 50%;
  transform: translateX(-50%);
  margin: 0;
  color: rgba(255, 255, 255, 0.65);
  font-size: var(--fs-xs);
}

/* ==========================================================================
   11. Прайс-лист
   ========================================================================== */

.prices { display: grid; gap: var(--sp-5); }

.price-card {
  padding: var(--sp-5);
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
  border-top: 5px solid var(--c-orange);
}
.price-card--green { border-top-color: var(--c-green); }
.price-card--purple { border-top-color: var(--c-purple); }
.price-card--blue { border-top-color: var(--c-blue); }

.price-card__head {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}
.price-card__icon {
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  border-radius: var(--r-md);
  background: var(--t-orange);
  color: var(--c-orange-dark);
}
.price-card--green .price-card__icon { background: var(--t-green); color: var(--c-green-dark); }
.price-card--purple .price-card__icon { background: var(--t-purple); color: var(--c-purple-dark); }
.price-card--blue .price-card__icon { background: var(--t-blue); color: var(--c-blue-dark); }
.price-card__title { font-size: var(--fs-h3); }
.price-card__subtitle { margin: 0; font-size: var(--fs-sm); color: var(--ink-3); }

.price-table__wrap + .price-table__wrap { margin-top: var(--sp-5); }
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.price-table caption {
  text-align: left;
  padding-bottom: var(--sp-3);
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--ink);
}
.price-table thead th {
  padding: 0.6rem 0.75rem;
  text-align: left;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  border-bottom: 2px solid var(--line);
}
.price-table thead th + th { text-align: right; }
.price-table tbody th,
.price-table tbody td {
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--line-soft);
}
.price-table tbody th { text-align: left; font-weight: 500; color: var(--ink); }
.price-table tbody td { text-align: right; font-family: var(--font-head); font-weight: 700; white-space: nowrap; }
.price-table tbody tr:last-child th,
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table tbody tr:hover { background: var(--bg-soft); }
.price-table tr.is-best th,
.price-table tr.is-best td { background: var(--t-green); }
.price-table tr.is-best td { color: var(--c-green-dark); }
.price-table tr.is-best th::after {
  content: 'вигідно';
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.1rem 0.5rem;
  border-radius: var(--r-pill);
  background: var(--c-green);
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

/* Мобільна форма таблиці: рядки перетворюються на картки */
@media (max-width: 560px) {
  .price-table thead { display: none; }
  .price-table, .price-table tbody, .price-table tr, .price-table th, .price-table td { display: block; }
  .price-table tr {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--line-soft);
  }
  .price-table tbody th, .price-table tbody td { border: 0; padding: 0.15rem 0; text-align: left; }
  .price-table tbody th { font-family: var(--font-head); font-weight: 700; }
  .price-table tbody td::before {
    content: attr(data-label) ': ';
    font-family: var(--font-body);
    font-weight: 400;
    color: var(--ink-3);
  }
}

/* ==========================================================================
   12. Розклад
   ========================================================================== */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: var(--sp-6);
}
.tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0.6rem 1.2rem;
  border: 2px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: all 0.2s var(--ease);
}
.tab__name { font-family: var(--font-head); font-weight: 800; }
.tab__age { font-size: var(--fs-xs); color: var(--ink-3); }
.tab:hover { border-color: var(--c-green); }
.tab.is-active {
  border-color: var(--c-green);
  background: var(--t-green);
}
.tab.is-active .tab__name { color: var(--c-green-dark); }

.sched__wrap {
  overflow-x: auto;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-xs);
  background: #fff;
  -webkit-overflow-scrolling: touch;
}
.sched {
  width: 100%;
  min-width: 660px;
  border-collapse: collapse;
  font-size: var(--fs-sm);
}
.sched thead th {
  position: sticky;
  top: 0;
  padding: 0.75rem 0.8rem;
  background: var(--bg-soft);
  font-family: var(--font-head);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
  text-align: left;
  border-bottom: 2px solid var(--line);
}
.sched thead th abbr { text-decoration: none; }
.sched__time {
  width: 130px;
  padding: 0.7rem 0.8rem;
  text-align: left;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  vertical-align: top;
}
.sched__lesson-name {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-xs);
  color: var(--ink-3);
}
.sched td { padding: 0.7rem 0.8rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.sched tr { border-bottom: 1px solid var(--line-soft); }
.sched__routine td {
  color: var(--ink-2);
  font-style: italic;
  background: #fcfcfd;
}
.sched__routine.is-accent td {
  font-style: normal;
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--c-green-dark);
  background: var(--t-green);
}
.sched--blue .sched__routine.is-accent td { color: var(--c-blue-dark); background: var(--t-blue); }
.sched--purple .sched__routine.is-accent td { color: var(--c-purple-dark); background: var(--t-purple); }
.sched__lesson td { font-weight: 500; }
.sched__lesson:hover td { background: var(--bg-soft); }

/* ==========================================================================
   13. FAQ
   ========================================================================== */

.faq { display: grid; gap: 0.6rem; }
.faq__item {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.faq__item:has(.faq__btn[aria-expanded='true']) {
  border-color: var(--c-purple);
  box-shadow: var(--shadow-sm);
}
.faq__q { margin: 0; font-size: inherit; }
.faq__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  width: 100%;
  padding: var(--sp-4) var(--sp-5);
  border: 0;
  background: none;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.02rem;
  line-height: 1.4;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
}
.faq__btn:hover { color: var(--c-purple-dark); }
.faq__chevron { color: var(--c-purple); transition: transform 0.3s var(--ease); }
.faq__btn[aria-expanded='true'] .faq__chevron { transform: rotate(180deg); }
.faq__a { padding: 0 var(--sp-5) var(--sp-5); color: var(--ink-2); }
.faq__a p { margin: 0; }

/* ==========================================================================
   14. Форма запису
   ========================================================================== */

.section--enroll { padding-block: var(--section-y); background: var(--bg); }
.enroll {
  display: grid;
  gap: 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.enroll__aside {
  padding: var(--sp-6) var(--sp-5);
  background: linear-gradient(150deg, var(--c-orange), #ff8f5e 55%, var(--c-purple));
  color: #fff;
}
.enroll__title { color: #fff; font-size: var(--fs-h2); margin-bottom: var(--sp-4); }
.enroll__lead { color: rgba(255, 255, 255, 0.9); }
.enroll__phone {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: var(--sp-4);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.3rem;
  color: #fff;
  text-decoration: none;
}
.enroll__phone:hover { color: #fff; text-decoration: underline; }
.enroll__addr {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: var(--sp-3);
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.85);
}

.enroll__form {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  padding: var(--sp-6) var(--sp-5);
  background: #fff;
}
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); }
.req { color: var(--c-orange); }
.field input, .field select, .field textarea {
  padding: 0.7rem 0.9rem;
  border: 2px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #d7dbe2; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--c-blue);
  box-shadow: 0 0 0 4px rgba(0, 169, 224, 0.14);
}
.field textarea { resize: vertical; min-height: 88px; }
.field.has-error input, .field.has-error select { border-color: var(--c-orange); }
.field__error { margin: 0; font-size: var(--fs-xs); color: var(--c-orange-dark); min-height: 0; }
.field__error:empty { display: none; }

.enroll__consent { margin: var(--sp-3) 0 0; font-size: var(--fs-xs); color: var(--ink-3); text-align: center; }
.form-status { margin: 0; font-size: var(--fs-sm); }
.form-status.is-ok { color: var(--c-green-dark); font-weight: 600; }
.form-status.is-error { color: var(--c-orange-dark); font-weight: 600; }

/* Honeypot — приманка для ботів, від людей прихована */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ==========================================================================
   15. Контакти й карта
   ========================================================================== */

.contacts { display: grid; gap: var(--sp-6); }
.contacts__list { display: grid; gap: var(--sp-5); margin-bottom: var(--sp-5); }
.contacts__row { display: flex; gap: var(--sp-4); }
.contacts__row h3 { font-size: var(--fs-h3); margin-bottom: 0.2rem; }
.contacts__row p { margin: 0; color: var(--ink-2); }
.contacts__hint { margin-top: 0.35rem !important; font-size: var(--fs-xs); color: var(--ink-3); }
.contacts__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px; height: 48px;
  border-radius: var(--r-md);
}
.contacts__icon--orange { background: var(--t-orange); color: var(--c-orange-dark); }
.contacts__icon--green { background: var(--t-green); color: var(--c-green-dark); }
.contacts__icon--purple { background: var(--t-purple); color: var(--c-purple-dark); }

/* Дві вирівняні колонки: дні ліворуч, час праворуч.
   `display: contents` на <li> віддає комірки сітці, тож колонки збігаються
   між рядками — на відміну від space-between, де вони «пливуть». */
.hours {
  display: grid;
  grid-template-columns: auto auto;
  justify-content: start;
  column-gap: var(--sp-5);
  row-gap: 0.3rem;
  margin-top: 0.3rem;
  font-size: var(--fs-sm);
}
.hours li { display: contents; }
.hours span { color: var(--ink-2); }
.hours strong { font-family: var(--font-head); white-space: nowrap; }

.map {
  position: relative;
  min-height: 320px;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--bg-soft);
}
.map iframe { display: block; width: 100%; height: 100%; min-height: 320px; border: 0; }
.map__facade {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: var(--sp-5);
  border: 0;
  background: var(--bg-soft);
  cursor: pointer;
  text-align: center;
}
.map__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.9;
}
.map__pin {
  position: relative;
  display: grid;
  place-items: center;
  width: 62px; height: 62px;
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--c-orange);
  box-shadow: var(--shadow-md);
}
.map__cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.3rem;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
}
.map__facade:hover .map__cta { background: var(--c-orange); }
.map__hint { position: relative; max-width: 34ch; font-size: var(--fs-xs); color: var(--ink-3); }

/* ==========================================================================
   16. Підвал
   ========================================================================== */

.footer {
  padding-top: var(--sp-7);
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.72);
}
.footer a { color: rgba(255, 255, 255, 0.9); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer .logo__city { color: rgba(255, 255, 255, 0.55); }
.footer .logo__mark { background: rgba(255, 255, 255, 0.1); box-shadow: none; }

.footer__inner { display: grid; gap: var(--sp-6); padding-bottom: var(--sp-6); }
.footer__about { margin-top: var(--sp-4); font-size: var(--fs-sm); max-width: 46ch; }
.footer__title {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: var(--sp-3);
}
.footer__nav ul { display: grid; gap: 0.45rem; font-size: var(--fs-sm); }
.footer__contact p { margin: 0 0 0.35rem; font-size: var(--fs-sm); }

.footer__branches { display: grid; gap: var(--sp-4); font-size: var(--fs-sm); }
.footer__branch { display: grid; gap: 0.15rem; }
.footer__branch strong { font-family: var(--font-head); color: #fff; }
.footer__branch-name { display: flex; align-items: center; gap: 0.45rem; }
.footer__branch span { color: rgba(255, 255, 255, 0.6); }
.footer__branch-link {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--c-green) !important;
}
.footer__branch-link:hover { color: #fff !important; }
.footer__badge {
  padding: 0.05rem 0.5rem;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75) !important;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  justify-content: space-between;
  padding-block: var(--sp-4);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--fs-xs);
  color: rgba(255, 255, 255, 0.5);
}
.footer__bottom p { margin: 0; }

/* ==========================================================================
   17. Плаваючі кнопки
   ========================================================================== */

.fab {
  position: fixed;
  right: clamp(0.9rem, 3vw, 1.6rem);
  bottom: calc(clamp(0.9rem, 3vw, 1.6rem) + env(safe-area-inset-bottom));
  z-index: 90;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.6rem;
}

.fab__top {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink-2);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  transform: translateY(8px) scale(0.9);
  pointer-events: none;
  transition: all 0.25s var(--ease);
}
.fab.is-visible .fab__top { opacity: 1; transform: none; pointer-events: auto; }
.fab__top:hover { color: var(--ink); border-color: var(--c-orange); }

.fab__call {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--r-pill);
  background: var(--c-orange);
  color: #fff;
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 800;
  box-shadow: 0 14px 30px -12px rgba(232, 80, 46, 0.95);
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease);
}
.fab__call:hover { background: var(--c-orange-dark); color: #fff; transform: translateY(-2px); }
.fab__label { display: none; }
.fab__pulse {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--c-orange);
  opacity: 0.55;
  animation: fab-pulse 2.6s var(--ease) infinite;
  z-index: -1;
}
@keyframes fab-pulse {
  0% { transform: scale(1); opacity: 0.5; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { transform: scale(1.35); opacity: 0; }
}

/* ==========================================================================
   18. Сторінка вибору філії (index.html і 404.html)
   ========================================================================== */

.page-choice {
  display: grid;
  place-items: center;
  min-height: 100vh;
  background: radial-gradient(1200px 600px at 20% -10%, var(--t-orange), transparent),
              radial-gradient(1000px 500px at 90% 10%, var(--t-blue), transparent),
              var(--bg);
  padding: var(--sp-6) var(--sp-4);
}
.choice-wrap { width: 100%; max-width: 780px; text-align: center; }
.choice__mark {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  width: 62px; height: 62px;
  margin: 0 auto var(--sp-5);
  padding: 5px;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-md);
}
.choice__mark .logo__tile { border-radius: 7px; }
.choice__title { font-size: var(--fs-h1); margin-bottom: var(--sp-3); }
.choice__title span { color: var(--c-orange); }
.choice__lead { color: var(--ink-2); font-size: var(--fs-lead); margin-bottom: var(--sp-6); }
.choices { display: grid; gap: var(--sp-4); }
.choice {
  position: relative;
  display: grid;
  gap: 0.2rem;
  padding: var(--sp-5);
  border-radius: var(--r-lg);
  background: #fff;
  border: 2px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-xs);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.choice:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); color: var(--ink); }
.choice--green:hover { border-color: var(--c-green); }
.choice--blue:hover { border-color: var(--c-blue); }
.choice__city { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; }
.choice__addr, .choice__phone { font-size: var(--fs-sm); color: var(--ink-2); }
.choice__go {
  margin-top: var(--sp-3);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: var(--fs-sm);
  color: var(--c-orange-dark);
}
.choice__note { margin-top: var(--sp-6); font-size: var(--fs-sm); color: var(--ink-3); }

/* Філія, яку відвідувач обирав минулого разу */
.choice.is-remembered { border-color: var(--c-orange); box-shadow: var(--shadow-md); }
.choice__badge {
  position: absolute;
  top: -11px; left: 50%;
  transform: translateX(-50%);
  padding: 0.15rem 0.75rem;
  border-radius: var(--r-pill);
  background: var(--c-orange);
  color: #fff;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

/* ==========================================================================
   19. Поява під час скролу
   ========================================================================== */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   20. Адаптив: планшет і десктоп
   ========================================================================== */

@media (min-width: 560px) {
  .enroll__form { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
  .fab__label { display: inline; }
}

@media (min-width: 700px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .contacts { grid-template-columns: 1fr 1fr; align-items: start; }
  .choices { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 2fr 1fr 1fr; }
  .prices { grid-template-columns: repeat(2, 1fr); }
  /* Блок режимів найважливіший — віддаємо йому всю ширину рядка */
  #price-modes, #price-studios { grid-column: 1 / -1; }
}

@media (min-width: 900px) {
  .about__grid { grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: var(--sp-7); }
  .hero__inner { grid-template-columns: 1.05fr 0.95fr; }
  .pillars { grid-template-columns: repeat(4, 1fr); }
  .enroll { grid-template-columns: 0.85fr 1.15fr; }
  .enroll__aside { padding: var(--sp-7) var(--sp-6); }
  .enroll__form { padding: var(--sp-7) var(--sp-6); }
  .nav { display: block; margin-left: var(--sp-5); }
  .burger { display: none; }
  .header__call { display: inline-flex; }
  .lightbox__nav--prev { left: -60px; }
  .lightbox__nav--next { right: -60px; }
  .lightbox__close { top: -46px; right: -6px; }
}

@media (min-width: 1100px) {
  /* Дві таблиці режимів стають поруч усередині однієї картки */
  #price-modes { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5) var(--sp-6); }
  #price-modes .price-card__head { grid-column: 1 / -1; margin-bottom: 0; }
  #price-modes .price-table__wrap + .price-table__wrap { margin-top: 0; }
}

/* ==========================================================================
   21. Доступність: менше руху
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ==========================================================================
   22. Друк
   ========================================================================== */

@media print {
  .header, .menu, .fab, .lightbox, .map, .chips, .enroll__form, .skip-link { display: none !important; }
  body { color: #000; }
  .section { padding-block: 1rem; break-inside: avoid; }
  .hero__media, .gallery, .mosaic { display: none; }
  a[href^='http']::after { content: ' (' attr(href) ')'; font-size: 0.75em; color: #555; }
  .sched, .price-table { font-size: 11px; }
  .sched__wrap { overflow: visible; }
  .sched { min-width: 0; }
}
