@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ============================================================
   Школа №25 — базові токени
   ============================================================ */

:root {
  /* Палітра: глибока зелень + золото */
  --pine:        #1E3026;
  --pine-deep:   #16241C;
  --olive:       #38513E;
  --olive-soft:  #5B675E;
  --gold:        #C8963E;
  --gold-bright: #DEAF57;
  --gold-dim:    #A87B2D;
  --parchment:   #F6F4ED;
  --parchment-2: #EFEBE0;
  --card:        #FFFFFF;
  --ink:         #1B211C;
  --ink-muted:   #5B675E;
  --terracotta:  #8A4B2A;

  /* Скляні матеріали */
  --glass-light: rgba(255, 255, 255, .72);
  --glass-dark:  rgba(30, 48, 38, .72);
  --hairline:    rgba(27, 33, 28, .10);
  --hairline-on-dark: rgba(255, 255, 255, .14);

  /* Геометрія */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-sheet: 24px;
  --r-pill: 999px;

  /* Тіні */
  --sh-1: 0 1px 2px rgba(27, 33, 28, .05), 0 4px 12px rgba(27, 33, 28, .05);
  --sh-2: 0 2px 6px rgba(27, 33, 28, .06), 0 12px 32px rgba(27, 33, 28, .09);
  --sh-3: 0 8px 24px rgba(27, 33, 28, .12), 0 32px 64px rgba(27, 33, 28, .18);

  /* Рух */
  --ease-ios: cubic-bezier(.32, .72, 0, 1);
  --t-fast: .2s;
  --t-mid:  .32s;
  --t-slow: .5s;

  /* Розкладка */
  --page: 1180px;
  --gut: 24px;

  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text',
          'Inter', system-ui, 'Segoe UI', Roboto, sans-serif;

  color-scheme: light;
}

/* ============================================================
   Скидання
   ============================================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -.011em;
  color: var(--ink);
  background: var(--parchment);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.022em; line-height: 1.12; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }

a {
  color: var(--olive);
  text-decoration: none;
  transition: color var(--t-fast) var(--ease-ios);
}
a:hover { color: var(--gold-dim); }

button, input, textarea, select {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}
button { border: 0; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }

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

::selection { background: rgba(200, 150, 62, .28); }

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

.wrap {
  width: 100%;
  max-width: var(--page);
  margin-inline: auto;
  padding-inline: var(--gut);
}

.section { padding: clamp(64px, 9vw, 116px) 0; }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }

.section--dark {
  background: var(--pine);
  color: rgba(255, 255, 255, .92);
}
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark a { color: var(--gold-bright); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
}
.section--dark .eyebrow { color: var(--gold-bright); }

.h-lg   { font-size: clamp(30px, 4.4vw, 44px); }
.h-md   { font-size: clamp(24px, 3vw, 32px); }
.h-sm   { font-size: 20px; }

.lede {
  font-size: clamp(17px, 1.5vw, 19px);
  color: var(--ink-muted);
  max-width: 62ch;
}
.section--dark .lede { color: rgba(255, 255, 255, .72); }

.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }

/* ============================================================
   Скляні матеріали (iOS)
   ============================================================ */

.mat-thin,
.mat-regular,
.mat-thick { position: relative; }

.mat-thin {
  background: rgba(246, 244, 237, .72);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
}

.mat-regular {
  background: var(--glass-dark);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--hairline-on-dark);
}

.mat-thick {
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: saturate(180%) blur(40px);
  backdrop-filter: saturate(180%) blur(40px);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .mat-thin   { background: rgba(246, 244, 237, .98); }
  .mat-regular { background: rgba(30, 48, 38, .95); }
  .mat-thick  { background: #fff; }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--r-pill);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.01em;
  white-space: nowrap;
  transition: transform var(--t-fast) var(--ease-ios),
              background-color var(--t-fast) var(--ease-ios),
              box-shadow var(--t-fast) var(--ease-ios),
              color var(--t-fast) var(--ease-ios);
}
.btn:active { transform: scale(.96); }

.btn--gold {
  background: var(--gold);
  color: var(--pine-deep);
  box-shadow: 0 2px 8px rgba(200, 150, 62, .32);
}
.btn--gold:hover { background: var(--gold-bright); color: var(--pine-deep); }

.btn--ghost {
  background: rgba(255, 255, 255, .10);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .28);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .18); color: #fff; }

.btn--pine {
  background: var(--pine);
  color: #fff;
}
.btn--pine:hover { background: var(--olive); color: #fff; }

.btn--sm { padding: 10px 18px; font-size: 15px; }
.btn--block { width: 100%; }

/* ============================================================
   Шапка
   ============================================================ */

.hdr {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 90;
  padding: 14px var(--gut) 0;
  padding-top: max(14px, env(safe-area-inset-top));
  transition: padding var(--t-mid) var(--ease-ios);
}

.hdr__bar {
  max-width: var(--page);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 10px 12px 10px 18px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  transition: background-color var(--t-mid) var(--ease-ios),
              border-color var(--t-mid) var(--ease-ios),
              box-shadow var(--t-mid) var(--ease-ios),
              -webkit-backdrop-filter var(--t-mid) var(--ease-ios),
              backdrop-filter var(--t-mid) var(--ease-ios);
}

.hdr.is-stuck .hdr__bar {
  background: rgba(30, 48, 38, .68);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-color: rgba(255, 255, 255, .12);
  box-shadow: 0 6px 24px rgba(22, 36, 28, .22);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .hdr.is-stuck .hdr__bar { background: rgba(30, 48, 38, .96); }
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  flex-shrink: 0;
}
.brand:hover { color: #fff; }
.brand__mark { width: 37px; height: 41px; color: var(--gold); flex-shrink: 0; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-size: 16px; font-weight: 700; letter-spacing: -.02em; }
.brand__sub {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .58);
}

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav__link {
  padding: 8px 13px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, .82);
  transition: background-color var(--t-fast) var(--ease-ios), color var(--t-fast) var(--ease-ios);
}
.nav__link:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.hdr__cta { flex-shrink: 0; }

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .12);
  align-items: center;
  justify-content: center;
  margin-left: auto;
  transition: transform var(--t-fast) var(--ease-ios), background-color var(--t-fast) var(--ease-ios);
}
.burger:active { transform: scale(.92); }
.burger__box { position: relative; width: 18px; height: 12px; }
.burger__box span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform var(--t-mid) var(--ease-ios), opacity var(--t-fast) var(--ease-ios);
}
.burger__box span:nth-child(1) { top: 0; }
.burger__box span:nth-child(2) { top: 5px; }
.burger__box span:nth-child(3) { top: 10px; }
.burger[aria-expanded="true"] .burger__box span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] .burger__box span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] .burger__box span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Мобільне меню */
.mnav {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 96px var(--gut) 40px;
  background: rgba(22, 36, 28, .88);
  -webkit-backdrop-filter: saturate(180%) blur(28px);
  backdrop-filter: saturate(180%) blur(28px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-mid) var(--ease-ios), visibility var(--t-mid) var(--ease-ios);
}
.mnav.is-open { opacity: 1; visibility: visible; }

.mnav__link {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -.02em;
  color: #fff;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .10);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--t-mid) var(--ease-ios), transform var(--t-mid) var(--ease-ios);
}
.mnav__link:hover { color: var(--gold-bright); }
.mnav.is-open .mnav__link { opacity: 1; transform: none; }
.mnav__cta { margin-top: 26px; opacity: 0; transform: translateY(18px); transition: opacity var(--t-mid) var(--ease-ios), transform var(--t-mid) var(--ease-ios); }
.mnav.is-open .mnav__cta { opacity: 1; transform: none; }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .mnav { background: rgba(22, 36, 28, .99); }
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--pine-deep);
  isolation: isolate;
}

.hero__layer {
  position: absolute;
  inset: -8% -2%;
  z-index: -3;
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.hero__layer--front {
  z-index: -2;
  /* Нічний знімок фасаду. Портретний кадр: 56% по вертикалі тримає
     будівлю (34–74% висоти) у видимій смузі на широких екранах. */
  background-image: url('../assets/night.jpg');
  background-position: center 56%;
  filter: saturate(1.05) brightness(.92);
}
.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Ліва половина — під текст, права лишає видимою крону й тепле листя. */
  background:
    linear-gradient(180deg, rgba(22, 36, 28, .70) 0%, rgba(22, 36, 28, .16) 30%, rgba(22, 36, 28, .28) 60%, rgba(22, 36, 28, .92) 100%),
    linear-gradient(90deg,  rgba(22, 36, 28, .86) 0%, rgba(22, 36, 28, .60) 40%, rgba(22, 36, 28, .18) 70%, rgba(22, 36, 28, .04) 100%);
}

.hero__inner {
  width: 100%;
  padding-top: 168px;
  padding-bottom: clamp(48px, 7vw, 84px);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .85fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: end;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 9px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .20);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, .90);
  margin-bottom: 22px;
}
.hero__badge b { color: var(--gold-bright); font-weight: 600; }
.hero__badge-dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--pine-deep);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700;
}

.hero__title {
  font-size: clamp(34px, 5.6vw, 62px);
  line-height: 1.05;
  letter-spacing: -.03em;
  color: #fff;
  margin-bottom: 20px;
  text-wrap: balance;
}
.hero__title em {
  font-style: normal;
  color: var(--gold-bright);
}

.hero__sub {
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.5;
  color: rgba(255, 255, 255, .78);
  max-width: 56ch;
  margin-bottom: 30px;
}

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__card {
  padding: 22px;
  border-radius: var(--r-lg);
  color: #fff;
}
.hero__card-h {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 16px;
}
.hero__card-list { display: grid; gap: 13px; }
.hero__card-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.hero__card-row:last-child { padding-bottom: 0; border-bottom: 0; }
.hero__card-k { font-size: 14px; color: rgba(255, 255, 255, .66); flex-shrink: 0; }
.hero__card-v { font-size: 17px; font-weight: 600; text-align: right; }
.hero__card-list [data-count] { font-variant-numeric: tabular-nums; }

.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: 24px; height: 38px;
  border: 1.5px solid rgba(255, 255, 255, .38);
  border-radius: var(--r-pill);
  display: grid;
  place-items: start center;
  padding-top: 7px;
  z-index: 2;
}
.hero__scroll::after {
  content: '';
  width: 3px; height: 7px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .72);
  animation: scrollHint 1.8s var(--ease-ios) infinite;
}
@keyframes scrollHint {
  0%, 100% { transform: translateY(0); opacity: 1; }
  60%      { transform: translateY(12px); opacity: 0; }
}

/* ============================================================
   Смуга фактів
   ============================================================ */

.facts {
  background: var(--pine);
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.facts__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, .10);
  border-radius: var(--r-md);
  overflow: hidden;
}
.fact {
  background: var(--pine);
  padding: 26px 20px;
  text-align: center;
}
/* Цифра завжди окремим рядком, підпис — під нею. */
.fact__n {
  display: block;
  font-size: clamp(30px, 3.6vw, 44px);
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--gold-bright);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.fact__l {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.35;
  color: rgba(255, 255, 255, .64);
  text-wrap: balance;
}

/* ============================================================
   Картки
   ============================================================ */

.cards {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  padding: 26px;
  box-shadow: var(--sh-1);
  transition: transform var(--t-mid) var(--ease-ios), box-shadow var(--t-mid) var(--ease-ios);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--sh-2); }

.section--dark .card {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .12);
  box-shadow: none;
  color: rgba(255, 255, 255, .78);
}
.section--dark .card:hover { background: rgba(255, 255, 255, .09); transform: translateY(-3px); }

.card__icon {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(200, 150, 62, .14);
  color: var(--gold-dim);
  margin-bottom: 16px;
}
.section--dark .card__icon { background: rgba(200, 150, 62, .18); color: var(--gold-bright); }
.card__icon svg { width: 23px; height: 23px; }

.card__t { font-size: 18px; font-weight: 600; margin-bottom: 8px; letter-spacing: -.015em; }
.card__d { font-size: 15px; line-height: 1.5; color: var(--ink-muted); }
.section--dark .card__d { color: rgba(255, 255, 255, .70); }

.card__list { margin-top: 14px; display: grid; gap: 9px; }
.card__list li {
  position: relative;
  padding-left: 20px;
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-muted);
}
.section--dark .card__list li { color: rgba(255, 255, 255, .70); }
.card__list li::before {
  content: '';
  position: absolute;
  left: 3px; top: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
}

/* ============================================================
   Таймлайн
   ============================================================ */

.tl { position: relative; margin-top: 8px; }
.tl__track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.tl__track::before {
  content: '';
  position: absolute;
  top: 13px; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), rgba(200, 150, 62, .18));
  border-radius: 2px;
}
.tl__item { position: relative; padding-top: 40px; }
.tl__item::before {
  content: '';
  position: absolute;
  top: 6px; left: 0;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--parchment);
  border: 3px solid var(--gold);
  box-shadow: 0 0 0 5px var(--parchment);
  transition: transform var(--t-mid) var(--ease-ios), background-color var(--t-mid) var(--ease-ios);
}
.tl__item:hover::before { transform: scale(1.22); background: var(--gold); }
.tl__y {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--pine);
  margin-bottom: 7px;
}
.tl__d { font-size: 15px; line-height: 1.5; color: var(--ink-muted); }

/* ============================================================
   Before / After
   ============================================================ */

.ba {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-2);
  background: var(--pine-deep);
  /* 3:2 близьке до пропорцій обох знімків — мінімум зайвого обрізання. */
  aspect-ratio: 3 / 2;
  cursor: ew-resize;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

/* ── Кадрування знімків ──────────────────────────────────────
   Знімки зроблені з різної відстані й під різним кутом, тож
   суміщаємо будівлю вручну. Чотири ручки на кожне фото:
     --ba-y  вертикальне положення кадру (object-position)
     --ba-z  масштаб: більше = ближче, більше відрізає з країв
     --ba-x  центр масштабування по горизонталі
     --ba-oy центр масштабування по вертикалі
   Збільшення --ba-z прибирає стовп і водяний знак на архівному
   фото та ринкові намети на сучасному.
   ──────────────────────────────────────────────────────────── */
.ba__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% var(--ba-y, 0%);
  transform: scale(var(--ba-z, 1.3));
  transform-origin: var(--ba-x, 48%) var(--ba-oy, 44%);
  pointer-events: none;
}

/* Архівний знімок: ширший кадр, стовп справа, водяний знак знизу зліва. */
.ba__img--old { --ba-y: 0%;  --ba-z: 1.30; --ba-x: 45%; --ba-oy: 46%; }
/* Сучасне фото: будівля далі, знизу намети й авто. */
.ba__img--new { --ba-y: 0%;  --ba-z: 1.30; --ba-x: 51%; --ba-oy: 39%; }
.ba__clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-clip-path: inset(0 50% 0 0);
  clip-path: inset(0 50% 0 0);
}
.ba__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: rgba(255, 255, 255, .9);
  transform: translateX(-1px);
  pointer-events: none;
  box-shadow: 0 0 12px rgba(0, 0, 0, .35);
}
.ba__knob {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .30);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  backdrop-filter: blur(14px) saturate(180%);
  border: 1.5px solid rgba(255, 255, 255, .70);
  display: grid; place-items: center;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .28);
  transition: transform var(--t-fast) var(--ease-ios);
}
.ba:active .ba__knob { transform: translate(-50%, -50%) scale(1.1); }
.ba__tag {
  position: absolute;
  bottom: 16px;
  padding: 6px 13px;
  border-radius: var(--r-pill);
  background: rgba(22, 36, 28, .62);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .18);
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  pointer-events: none;
}
.ba__tag--l { left: 16px; }
.ba__tag--r { right: 16px; }

.ba-caption { margin-top: 14px; font-size: 14px; color: var(--ink-muted); }

/* ============================================================
   Segmented control (iOS)
   ============================================================ */

.seg {
  position: relative;
  display: inline-flex;
  padding: 3px;
  border-radius: var(--r-pill);
  background: rgba(27, 33, 28, .07);
  gap: 2px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.seg::-webkit-scrollbar { display: none; }
.section--dark .seg { background: rgba(255, 255, 255, .10); }

.seg__pill {
  position: absolute;
  top: 3px; bottom: 3px;
  border-radius: var(--r-pill);
  background: #fff;
  box-shadow: 0 1px 3px rgba(27, 33, 28, .12), 0 3px 8px rgba(27, 33, 28, .08);
  transition: transform var(--t-mid) var(--ease-ios), width var(--t-mid) var(--ease-ios);
  pointer-events: none;
  left: 0;
}
.section--dark .seg__pill { background: var(--gold); }

.seg__btn {
  position: relative;
  z-index: 1;
  padding: 9px 18px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-muted);
  white-space: nowrap;
  transition: color var(--t-mid) var(--ease-ios), transform var(--t-fast) var(--ease-ios);
}
.seg__btn:active { transform: scale(.95); }
.seg__btn[aria-selected="true"] { color: var(--pine); }
.section--dark .seg__btn { color: rgba(255, 255, 255, .68); }
.section--dark .seg__btn[aria-selected="true"] { color: var(--pine-deep); }

/* Панелі дня */
.day { display: grid; gap: 28px; }
.day__panels { position: relative; }
.day__panel {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  padding: clamp(24px, 3vw, 34px);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
}
.day__panel[hidden] { display: none; }
.day__panel.is-entering { animation: fadeSlide var(--t-mid) var(--ease-ios); }
@keyframes fadeSlide {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
.day__time {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}
.day__label { margin-top: 8px; font-size: 15px; color: rgba(255, 255, 255, .58); }
.day__t { font-size: clamp(20px, 2.4vw, 26px); color: #fff; margin-bottom: 10px; }
.day__d { font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, .74); }

/* ============================================================
   Педагоги
   ============================================================ */

.lead {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(22px, 3vw, 40px);
  align-items: stretch;
  margin-bottom: 44px;
}

.lead__main {
  display: grid;
  grid-template-columns: minmax(200px, .78fr) minmax(0, 1.22fr);
  gap: clamp(20px, 2.6vw, 32px);
  align-items: center;
  padding: clamp(22px, 2.6vw, 32px);
  border-radius: var(--r-lg);
  background: var(--card);
  border: 1px solid var(--hairline);
  box-shadow: var(--sh-2);
}
.lead__photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--parchment-2);
}
.lead__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.lead__role {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 8px;
}
.lead__name { font-size: clamp(21px, 2.3vw, 27px); margin-bottom: 16px; }
.lead__quote {
  position: relative;
  padding-left: 18px;
  border-left: 3px solid var(--gold);
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink-muted);
}

.lead__side { display: grid; gap: 18px; align-content: start; }
.dep {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: var(--r-md);
  background: var(--card);
  border: 1px solid var(--hairline);
  box-shadow: var(--sh-1);
  transition: transform var(--t-mid) var(--ease-ios), box-shadow var(--t-mid) var(--ease-ios);
}
.dep:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.dep__name { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.015em; }
.dep__role { display: block; font-size: 14px; line-height: 1.4; color: var(--ink-muted); margin-top: 3px; }

/* Фото педагога з плейсхолдером.
   Форма та пропорції — як у картки директора (4:5, скруглений прямокутник). */
.ava {
  position: relative;
  flex-shrink: 0;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--olive);
  color: rgba(255, 255, 255, .88);
  display: grid;
  place-items: center;
  font-weight: 600;
  letter-spacing: .02em;
}
/* Приблизно половина від фото директора. */
.ava--staff { width: 112px; font-size: 26px; }
.ava--dep   { width: 132px; font-size: 30px; }
.ava__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  /* Портрети на повний зріст: тримаємо обличчя в колі, а не груди. */
  object-position: 50% 22%;
  background: var(--olive);
}
.ava__img.is-missing { display: none; }

/* Пошук */
.staff__tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.search {
  position: relative;
  flex: 1 1 260px;
  max-width: 380px;
}
.search__icon {
  position: absolute;
  left: 13px; top: 50%;
  transform: translateY(-50%);
  width: 17px; height: 17px;
  color: var(--olive-soft);
  pointer-events: none;
}
.search__input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  padding: 11px 14px 11px 38px;
  border-radius: var(--r-sm);
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, .78);
  font-size: 16px;
  transition: border-color var(--t-fast) var(--ease-ios), box-shadow var(--t-fast) var(--ease-ios);
}
.search__input::placeholder { color: var(--olive-soft); }
.search__input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(200, 150, 62, .16);
}

.staff__count { font-size: 14px; color: var(--ink-muted); }

/* Grouped inset list */
.glist { display: grid; gap: 26px; }
.glist__group-t {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--olive-soft);
  padding: 0 6px 10px;
}
.glist__box {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 14px;
}
.glist__row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  box-shadow: var(--sh-1);
  transition: transform var(--t-mid) var(--ease-ios), box-shadow var(--t-mid) var(--ease-ios);
}
.glist__row:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
/* Без min-width:0 flex-елемент не стискається і довгі ПІБ ламають картку. */
.glist__row > span:last-child { min-width: 0; overflow-wrap: break-word; }
.glist__name { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.015em; }
.glist__role { display: block; font-size: 14px; line-height: 1.4; color: var(--ink-muted); margin-top: 2px; }
.glist__group[hidden], .glist__row[hidden] { display: none; }

.staff__empty {
  padding: 34px;
  text-align: center;
  color: var(--ink-muted);
  font-size: 16px;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
}
.staff__empty[hidden] { display: none; }

/* ============================================================
   FAQ
   ============================================================ */

.faq { max-width: 860px; }
.faq__box {
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--sh-1);
}
.faq__item { position: relative; }
.faq__item + .faq__item::before {
  content: '';
  position: absolute;
  top: 0; left: 22px; right: 0;
  height: 1px;
  background: var(--hairline);
}
.faq__q {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 22px;
  text-align: left;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -.015em;
  color: var(--ink);
  transition: background-color var(--t-fast) var(--ease-ios);
}
.faq__q:hover { background: rgba(200, 150, 62, .06); }
.faq__chev {
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 3px;
  margin-left: auto;
  color: var(--olive-soft);
  transition: transform var(--t-mid) var(--ease-ios), color var(--t-mid) var(--ease-ios);
}
.faq__q[aria-expanded="true"] .faq__chev { transform: rotate(90deg); color: var(--gold-dim); }
.faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--t-mid) var(--ease-ios);
}
.faq__q[aria-expanded="true"] + .faq__a { grid-template-rows: 1fr; }
.faq__a-inner { overflow: hidden; }
.faq__a-body {
  padding: 0 22px 20px 22px;
  font-size: 16px;
  line-height: 1.62;
  color: var(--ink-muted);
}
.faq__a-body p + p, .faq__a-body ul { margin-top: 10px; }
.faq__a-body li {
  position: relative;
  padding-left: 18px;
  margin-top: 6px;
}
.faq__a-body li::before {
  content: '';
  position: absolute;
  left: 2px; top: 9px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
}
.faq__a-body b { color: var(--ink); font-weight: 600; }

/* ============================================================
   Контакти
   ============================================================ */

.contacts {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
}
.clist__box {
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r-md);
  overflow: hidden;
}
.clist__row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 18px;
  position: relative;
  color: rgba(255, 255, 255, .92);
  transition: background-color var(--t-fast) var(--ease-ios);
}
a.clist__row:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.clist__row + .clist__row::before {
  content: '';
  position: absolute;
  top: 0; left: 62px; right: 0;
  height: 1px;
  background: rgba(255, 255, 255, .10);
}
.clist__ico {
  width: 32px; height: 32px;
  flex-shrink: 0;
  border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(200, 150, 62, .18);
  color: var(--gold-bright);
}
.clist__ico svg { width: 17px; height: 17px; }
.clist__k { display: block; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: rgba(255, 255, 255, .52); }
.clist__v { display: block; font-size: 16px; font-weight: 500; margin-top: 1px; }

.map {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: var(--sh-3);
  background: var(--pine-deep);
  min-height: 340px;
}
.map iframe { display: block; width: 100%; height: 100%; min-height: 340px; border: 0; filter: saturate(.85); }

/* ============================================================
   Футер
   ============================================================ */

.ftr {
  position: relative;
  background: var(--pine-deep);
  color: rgba(255, 255, 255, .62);
  padding: clamp(48px, 6vw, 72px) 0 0;
  overflow: hidden;
  isolation: isolate;
}
.ftr__bg {
  position: absolute;
  right: -60px; top: 50%;
  transform: translateY(-50%);
  width: min(460px, 52vw);
  z-index: -1;
  opacity: .16;
  mix-blend-mode: screen;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 55%, transparent 100%);
}
.ftr__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(2, minmax(0, 1fr));
  gap: clamp(26px, 4vw, 52px);
  padding-bottom: 42px;
}
.ftr__brand { display: flex; align-items: center; gap: 12px; color: #fff; margin-bottom: 16px; }
.ftr__brand .brand__mark { width: 43px; height: 47px; }
.ftr__about { font-size: 15px; line-height: 1.6; max-width: 44ch; }
.ftr__h {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .42);
  margin-bottom: 14px;
}
.ftr__list { display: grid; gap: 10px; font-size: 15px; }
.ftr__list a { color: rgba(255, 255, 255, .72); }
.ftr__list a:hover { color: var(--gold-bright); }
.ftr__pass { display: grid; gap: 12px; font-size: 14px; line-height: 1.5; }
.ftr__pass dt { font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: rgba(255, 255, 255, .40); }
.ftr__pass dd { margin: 3px 0 0; color: rgba(255, 255, 255, .78); }
.ftr__bar {
  border-top: 1px solid rgba(255, 255, 255, .10);
  padding: 20px 0 calc(20px + env(safe-area-inset-bottom));
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255, 255, 255, .44);
}

.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
  width: 40px; height: 40px;
  border-radius: 13px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .82);
  transition: transform var(--t-fast) var(--ease-ios), background-color var(--t-fast) var(--ease-ios), color var(--t-fast) var(--ease-ios);
}
.socials a:hover { background: var(--gold); color: var(--pine-deep); }
.socials a:active { transform: scale(.92); }
.socials svg { width: 19px; height: 19px; }

/* ============================================================
   Bottom sheet (форма)
   ============================================================ */

.page-shell {
  transition: transform var(--t-slow) var(--ease-ios), filter var(--t-slow) var(--ease-ios);
  transform-origin: 50% 0;
}
body.sheet-open .page-shell {
  transform: scale(.94) translateY(10px);
  border-radius: var(--r-sheet);
  overflow: hidden;
  filter: brightness(.72);
}

.sheet {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  visibility: hidden;
}
.sheet.is-open { visibility: visible; }

.sheet__scrim {
  position: absolute;
  inset: 0;
  background: rgba(11, 18, 14, .42);
  opacity: 0;
  transition: opacity var(--t-mid) var(--ease-ios);
}
.sheet.is-open .sheet__scrim { opacity: 1; }

.sheet__panel {
  position: relative;
  width: min(560px, 100%);
  max-height: 92svh;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-sheet) var(--r-sheet) 0 0;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: saturate(180%) blur(40px);
  backdrop-filter: saturate(180%) blur(40px);
  box-shadow: 0 -8px 40px rgba(11, 18, 14, .28);
  transform: translateY(100%);
  transition: transform var(--t-slow) var(--ease-ios);
  padding-bottom: env(safe-area-inset-bottom);
}
.sheet.is-open .sheet__panel { transform: translateY(0); }
.sheet__panel.is-dragging { transition: none; }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .sheet__panel { background: #fff; }
}

@media (min-width: 640px) {
  .sheet { align-items: center; }
  .sheet__panel {
    border-radius: var(--r-lg);
    max-height: 88svh;
    transform: translateY(24px) scale(.96);
    opacity: 0;
    transition: transform var(--t-slow) var(--ease-ios), opacity var(--t-mid) var(--ease-ios);
  }
  .sheet.is-open .sheet__panel { transform: none; opacity: 1; }
}

.sheet__grab {
  padding: 10px 0 4px;
  display: grid;
  place-items: center;
  cursor: grab;
  touch-action: none;
  flex-shrink: 0;
}
.sheet__grab::before {
  content: '';
  width: 38px; height: 5px;
  border-radius: 3px;
  background: rgba(27, 33, 28, .20);
}
.sheet__head {
  padding: 8px 24px 16px;
  flex-shrink: 0;
}
.sheet__title { font-size: 22px; margin-bottom: 6px; }
.sheet__sub { font-size: 15px; color: var(--ink-muted); }
.sheet__close {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(27, 33, 28, .08);
  color: var(--ink-muted);
  display: grid; place-items: center;
  transition: transform var(--t-fast) var(--ease-ios), background-color var(--t-fast) var(--ease-ios);
}
.sheet__close:hover { background: rgba(27, 33, 28, .14); }
.sheet__close:active { transform: scale(.9); }
.sheet__close svg { width: 15px; height: 15px; }

.sheet__body {
  padding: 0 24px 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.field { margin-bottom: 15px; }
.field__l {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--olive-soft);
  margin-bottom: 6px;
}
.field__i {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--hairline);
  background: rgba(255, 255, 255, .80);
  font-size: 16px;
  transition: border-color var(--t-fast) var(--ease-ios), box-shadow var(--t-fast) var(--ease-ios);
}
.field__i:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(200, 150, 62, .16);
}
textarea.field__i { resize: vertical; min-height: 88px; }

select.field__i {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 40px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235B675E' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 17px;
}

.field__err {
  display: none;
  margin-top: 6px;
  font-size: 13px;
  color: var(--terracotta);
}
.field.is-invalid .field__i { border-color: var(--terracotta); box-shadow: 0 0 0 4px rgba(138, 75, 42, .12); }
.field.is-invalid .field__err { display: block; }

.field__row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }

.sheet__note { margin-top: 12px; font-size: 13px; line-height: 1.5; color: var(--ink-muted); text-align: center; }

.sheet__done {
  padding: 20px 24px 34px;
  text-align: center;
}
.sheet__done[hidden] { display: none; }
.done__ico {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: rgba(56, 81, 62, .12);
  color: var(--olive);
  display: grid; place-items: center;
  animation: pop var(--t-slow) var(--ease-ios);
}
.done__ico svg { width: 30px; height: 30px; }
.done__ico path {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: draw .5s var(--ease-ios) .15s forwards;
}
@keyframes pop {
  from { transform: scale(.4); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.done__t { font-size: 21px; margin-bottom: 8px; }
.done__d { font-size: 15px; color: var(--ink-muted); max-width: 38ch; margin: 0 auto 20px; }

/* ============================================================
   Поява при скролі
   ============================================================ */

/* Ховаємо тільки якщо JS живий — інакше блок лишиться назавжди невидимим. */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--t-slow) var(--ease-ios), transform var(--t-slow) var(--ease-ios);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   Адаптив
   ============================================================ */

@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; align-items: start; }
  .hero__card { max-width: 520px; }
  .facts__grid { grid-template-columns: repeat(3, 1fr); }
  .lead { grid-template-columns: 1fr; }
  .lead__side { grid-template-columns: 1fr 1fr; display: grid; }
  .contacts { grid-template-columns: 1fr; }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
  .ftr__brand-col { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav, .hdr__cta { display: none; }
  .burger { display: flex; }
  .tl__track { grid-template-columns: 1fr 1fr; row-gap: 30px; }
  .tl__track::before { display: none; }
  .tl__item { padding-top: 34px; }
  .day__panel { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --gut: 18px; }
  body { font-size: 16px; }
  html { scroll-padding-top: 84px; }
  .facts__grid { grid-template-columns: 1fr 1fr; }
  .fact { padding: 20px 14px; }
  .lead__main { grid-template-columns: 1fr; }
  .lead__photo { max-width: 260px; aspect-ratio: 1 / 1; }
  .lead__side { grid-template-columns: 1fr; }
  .ftr__grid { grid-template-columns: 1fr; }
  .field__row { grid-template-columns: 1fr; }
  .ba { aspect-ratio: 4 / 3; }
  .ava--staff { width: 92px; font-size: 22px; }
  .ava--dep   { width: 104px; font-size: 24px; }
  .brand__sub { display: none; }
}

@media (max-width: 420px) {
  .tl__track { grid-template-columns: 1fr; }
  .facts__grid { grid-template-columns: 1fr; }
  .hero__cta .btn { width: 100%; }
}

/* ============================================================
   Зменшений рух
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal, .js .reveal { opacity: 1; transform: none; }
  .hero__layer { transform: none !important; }
  body.sheet-open .page-shell { transform: none; filter: brightness(.72); }
}

/* ============================================================
   Друк
   ============================================================ */

@media print {
  .hdr, .mnav, .sheet, .hero__scroll, .ba__knob { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ============================================================
   Чекліст готовності до школи
   ============================================================ */

.ck {
  position: relative;
  background: var(--card);
  border: 1px solid var(--hairline);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
  padding: clamp(20px, 3vw, 34px);
  max-width: 860px;
  margin-inline: auto;
}

/* Прогрес */
.ck__progress { margin-bottom: 22px; }
.ck__progress-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.ck__progress-label { font-weight: 600; font-size: 15px; color: var(--ink); }
.ck__progress-pct {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--gold-dim);
  font-variant-numeric: tabular-nums;
  transition: color var(--t-mid) var(--ease-ios);
}
.ck__bar {
  height: 12px;
  border-radius: var(--r-pill);
  background: rgba(27, 33, 28, .08);
  overflow: hidden;
}
.ck__bar-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-bright));
  transition: width var(--t-slow) var(--ease-ios);
}
.ck__progress-note { margin-top: 9px; font-size: 13px; color: var(--ink-muted); }
.ck.is-complete .ck__progress-pct { color: #2e7d46; }
.ck.is-complete .ck__bar-fill { background: linear-gradient(90deg, #2e7d46, #4faa6b); }

/* Кроки (seg) */
.ck__seg { display: flex; width: 100%; margin-bottom: 22px; }
.ck__seg .seg__btn { flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.ck__seg-n {
  display: inline-grid;
  place-items: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(27, 33, 28, .10);
  color: var(--ink-muted);
  font-size: 12px; font-weight: 700;
  transition: background var(--t-mid) var(--ease-ios), color var(--t-mid) var(--ease-ios);
}
.ck__seg .seg__btn[aria-selected="true"] .ck__seg-n { background: var(--gold); color: var(--pine-deep); }
.ck__seg .seg__btn.is-done .ck__seg-n { background: #2e7d46; color: #fff; }

/* Панелі */
.ck__panels { position: relative; }
.ck__panel { animation: none; }
.ck__panel[hidden] { display: none; }
.ck__panel.is-entering { animation: fadeSlide var(--t-mid) var(--ease-ios); }

.ck__phead { display: flex; gap: 14px; align-items: center; margin-bottom: 18px; }
.ck__pico {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(200, 150, 62, .14);
  color: var(--gold-dim);
}
.ck__pico svg { width: 24px; height: 24px; }
.ck__pt { font-size: clamp(17px, 2.3vw, 20px); font-weight: 700; letter-spacing: -.015em; }
.ck__pd { font-size: 14px; color: var(--ink-muted); margin-top: 3px; }

/* Список чекбоксів */
.ck__list { display: grid; gap: 10px; }
.ck__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 4px 4px;
  border: 1px solid var(--hairline);
  border-radius: var(--r-sm);
  background: var(--parchment);
  transition: border-color var(--t-fast) var(--ease-ios), background var(--t-fast) var(--ease-ios);
}
.ck__item:has(input:checked) { border-color: rgba(46, 125, 70, .38); background: rgba(46, 125, 70, .07); }
.ck__check {
  display: flex;
  align-items: center;
  gap: 13px;
  flex: 1 1 auto;
  min-height: 44px;
  padding: 6px 4px 6px 8px;
  cursor: pointer;
}
.ck__check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ck__box {
  flex: none;
  width: 26px; height: 26px;
  border-radius: 8px;
  border: 2px solid var(--olive-soft);
  display: grid; place-items: center;
  color: #fff;
  background: transparent;
  transition: background var(--t-fast) var(--ease-ios), border-color var(--t-fast) var(--ease-ios), transform var(--t-fast) var(--ease-ios);
}
.ck__box svg { width: 17px; height: 17px; opacity: 0; transform: scale(.4); transition: opacity var(--t-fast) var(--ease-ios), transform var(--t-fast) var(--ease-ios); }
.ck__check input:checked + .ck__box { background: #2e7d46; border-color: #2e7d46; }
.ck__check input:checked + .ck__box svg { opacity: 1; transform: none; }
.ck__check input:focus-visible + .ck__box { outline: 2px solid var(--gold); outline-offset: 3px; }
.ck__check:active .ck__box { transform: scale(.9); }
.ck__txt { font-size: 15px; line-height: 1.4; }
.ck__check input:checked ~ .ck__txt { color: var(--ink-muted); }

.ck__dl {
  flex: none;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: rgba(200, 150, 62, .14);
  color: var(--gold-dim);
  font-size: 13px; font-weight: 600;
  transition: background var(--t-fast) var(--ease-ios), color var(--t-fast) var(--ease-ios);
}
.ck__dl svg { width: 15px; height: 15px; }
.ck__dl:hover { background: var(--gold); color: var(--pine-deep); }

/* Підказка */
.ck__hint {
  display: flex; gap: 11px;
  margin-top: 18px;
  padding: 13px 16px;
  border-radius: var(--r-sm);
  background: rgba(30, 48, 38, .05);
  border-left: 3px solid var(--gold);
  font-size: 14px; line-height: 1.5; color: var(--ink-muted);
}
.ck__hint svg { flex: none; width: 20px; height: 20px; color: var(--gold-dim); margin-top: 1px; }
.ck__hint b { color: var(--ink); font-weight: 600; }

/* Навігація кроків */
.ck__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }
.ck__next-i { transform: translateX(1px); }
.ck__nav .btn:disabled { opacity: .4; pointer-events: none; }

/* Фінал */
.ck__foot {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--hairline);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.ck__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.ck__reset {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; color: var(--ink-muted);
  padding: 8px 4px;
  transition: color var(--t-fast) var(--ease-ios);
}
.ck__reset svg { width: 16px; height: 16px; }
.ck__reset:hover { color: var(--terracotta); }

/* Конфеті */
.ck__confetti {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 3;
}

@media (max-width: 560px) {
  .ck__seg .seg__btn { padding: 8px 10px; font-size: 13px; }
  .ck__item { flex-wrap: wrap; }
  .ck__nav .btn { flex: 1; }
  .ck__foot { flex-direction: column; align-items: stretch; }
  .ck__cta .btn { width: 100%; }
  .ck__reset { align-self: center; }
}

@media print {
  #checklist .ck__seg, #checklist .ck__nav, #checklist .ck__foot,
  #checklist .ck__confetti, #checklist .ck__dl { display: none !important; }
  #checklist .ck__panel[hidden] { display: block !important; }
  #checklist .ck { box-shadow: none; border: none; }
}
