/* ==========================================================================
   Get Job Now! — лендинг програми

   1. Токени          — колір, типографіка, простір, форма, шари, рух
   2. База            — скидання, елементи за замовчуванням
   3. Утиліти         — доступність, фокус
   4. Розкладка       — shell, секції, декор
   5. Компоненти      — у тому ж порядку, що й секції в index.html
   6. Адаптація       — 1080 / 950 / 800 / 720 / 600 / 420px
   7. Налаштування    — зменшена анімація, друк

   Домовленість про токени: змінна заводиться тоді, коли значення або
   повторюється, або кодує рішення, яке варто назвати (ритм секції, гутер,
   колонка акордеона). Поодинокі відступи лишаються числом — зайва
   непряма адресація читається гірше за літерал.
   ========================================================================== */

/* ==========================================================================
   1. Токени
   ========================================================================== */

:root {
  /* ── Колір: поверхні ─────────────────────────────────────────────────── */
  --bg: #f1ece2;
  --bg-hover: #eae4d6;
  --surface: #ffffff;
  --surface-blur: rgba(255, 255, 255, 0.86);

  /* ── Колір: текст ────────────────────────────────────────────────────── */
  --ink: #26301d;
  --ink-soft: #3d4636;
  --muted: #5f6850;

  /* ── Колір: зелений (основний) ───────────────────────────────────────── */
  --green: #4f6b33;
  --green-dark: #3b5124;
  --green-tint: #e2ead2;

  /* ── Колір: рожевий (акцент) ─────────────────────────────────────────── */
  --pink: #e88fb2;
  --pink-hover: #f5c4d8;
  --pink-soft: #f8e2ea;
  --pink-tint: var(--pink-hover);
  --pink-ink: #953661; /* єдиний рожевий, що проходить AA на світлому */

  /* ── Колір: лінії ────────────────────────────────────────────────────── */
  --line: #ded7c8;
  --line-soft: #eae7dc;
  --line-header: #e8e5da;
  --line-pink: #f0d3df;

  /* ── Колір: підвал (на темно-зеленому тлі) ───────────────────────────── */
  --footer-ink: #e6e2d5;
  --footer-ink-muted: #c9c8ba;
  --footer-ink-dim: #b3c19f;
  --footer-line: #4b6330;
  --footer-accent: #f2b6ce;

  /* ── Гарнітури й насиченість ─────────────────────────────────────────── */
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;

  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;

  /* ── Кегль: назви за роллю, значення один в один з макета ────────────── */
  --text-badge: 11px; /* мітка AMA */
  --text-micro: 12px; /* заголовки колонок підвалу */
  --text-label: 13px; /* капслок-мітки, бігучий рядок */
  --text-caption: 14px; /* примітки, мала кнопка */
  --text-nav: 14.5px; /* навігація, підвал */
  --text-ui: 15px; /* кнопки, текстові посилання */
  --text-ui-lg: 15.5px; /* пункти чеклиста, роль експертки */
  --text-body: 16px; /* основний текст */
  --text-body-lg: 16.5px; /* картки результатів */
  --text-subhead: 17px; /* вступ секції, питання FAQ */
  --text-title-sm: 17.5px; /* заголовок воркшопу */
  --text-lede: 18px; /* лід-абзац */
  --text-title: 19px; /* логотип, назва тарифу */
  --text-title-lg: 22px; /* логотип підвалу, іконка акордеона */
  --text-name: 24px; /* ім'я експертки */
  --text-price: 30px;
  --text-h2: clamp(28px, 3.4vw, 42px);
  --text-cta: clamp(32px, 5vw, 64px);
  --text-hero: clamp(54px, 9.4vw, 140px);

  /* ── Міжрядковий інтервал ────────────────────────────────────────────── */
  --leading-hero: 0.9;
  --leading-cta: 1.05;
  --leading-tight: 1.15;
  --leading-ui: 1.2; /* кнопки */
  --leading-snug: 1.35;
  --leading-normal: 1.5;
  --leading-relaxed: 1.6;
  --leading-body: 1.65;
  --leading-loose: 1.7;

  /* ── Трекінг ─────────────────────────────────────────────────────────── */
  --tracking-hero: -0.045em;
  --tracking-cta: -0.03em;
  --tracking-tight: -0.02em;
  --tracking-badge: 0.06em;
  --tracking-wide: 0.08em;
  --tracking-wider: 0.13em;
  --tracking-caps: 0.14em;

  /* ── Простір: загальна шкала (крок 4px) ──────────────────────────────── */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 20px;
  --space-2xl: 24px;
  --space-3xl: 32px;
  --space-4xl: 40px;

  /* ── Простір: структурний ритм ───────────────────────────────────────── */
  --section-space: 88px;
  --section-space-sm: 56px; /* мобільний і підвал */
  --cta-space: 96px;
  --card-space: 26px; /* внутрішній відступ картки тарифу */
  --card-space-sm: 20px;
  --stack-space: 14px; /* між абзацами всередині блока */
  --grid-gap: 12px; /* між картками в сітці */

  /* ── Форма: радіуси ──────────────────────────────────────────────────── */
  --radius-sm: 6px; /* чекбокс */
  --radius-md: 14px; /* виноска */
  --radius-lg: 16px; /* картка чеклиста */
  --radius-xl: 18px; /* акордеон, картка результату */
  --radius-2xl: 20px; /* картка тарифу, tally */
  --radius-pill: 999px;
  --radius-circle: 50%;

  /* ── Форма: товщина ліній ────────────────────────────────────────────── */
  --border-hairline: 1px;
  --border-base: 1.5px;
  --border-strong: 2px;

  /* ── Тіні ────────────────────────────────────────────────────────────── */
  --shadow: 3px 3px 3px rgba(0, 0, 0, 0.15), 7px 7px 7px rgba(0, 0, 0, 0.2);
  --shadow-hover: 5px 5px 5px rgba(0, 0, 0, 0.25), 9px 9px 9px rgba(0, 0, 0, 0.35);
  /* ── Шари ────────────────────────────────────────────────────────────── */
  --z-decor: 0;
  --z-content: 2;
  --z-header: 60;
  --z-skip: 100;

  /* ── Рух ─────────────────────────────────────────────────────────────── */
  --marquee-duration: 26s;
  --nav-duration: 200ms;
  --collapse-duration: 300ms;
  interpolate-size: allow-keywords;

  /* ── Розкладка ───────────────────────────────────────────────────────── */
  --shell: 1512px;
  --hero-min-height: 75svh;
  --gutter: max(22px, 4vw, (100vw - var(--shell)) / 2);
  --plate-space: 40px;
  --header-offset: 90px; /* відступ прокрутки під липкою шапкою */

  /* ── Розміри компонентів ─────────────────────────────────────────────── */
  --photo-size: 250px;
  --photo-radius: 50%; /* 50% — коло, 140px 140px 20px 20px — арка, 20px — квадрат */
  --checkbox-size: 20px;
  --mark-size: 34px;
  --cta-measure: 620px;

  /* Колонка нумерації акордеона: .acc-body рахує свій лівий padding із цих
     трьох значень, тому вирівнювання під заголовком тримається саме.
     Нижче 600px відступ перевизначено плоским — там calc() не діє. */
  --acc-space: 22px;
  --acc-num-width: 40px;
  --acc-gap: 16px;

  /* ── Фокус ───────────────────────────────────────────────────────────── */
  --focus-width: 3px;
  --focus-offset: 3px;
}

/* ==========================================================================
   2. База
   ========================================================================== */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--green);
  text-decoration: none;
}
a:hover {
  color: var(--green-dark);
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0 0 0 var(--space-xl);
}

img {
  max-width: 100%;
}

.accent {
  color: var(--pink);
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

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

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: var(--z-skip);
  background: var(--surface);
  color: var(--ink);
  font-weight: var(--weight-bold);
  padding: var(--space-md) var(--space-xl);
  border-radius: 0 0 var(--radius-md) 0;
}
.skip-link:focus {
  left: 0;
}

/* Єдиний видимий індикатор фокуса на всю сторінку.
   border-radius тут НЕ задаємо: :where() має нульову вагу, тож правило
   перебивало б власний радіус елемента (скидало .skip-link на 4px саме
   тоді, коли той стає видимим). outline і так повторює форму елемента. */
:where(a, button, summary, input, [tabindex]):focus-visible {
  outline: var(--focus-width) solid var(--ink);
  outline-offset: var(--focus-offset);
}
.acc-head:focus-visible {
  outline-offset: calc(-1 * var(--focus-offset));
}
.site-footer :where(a, button):focus-visible {
  outline-color: var(--bg);
}

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

.shell {
  padding-inline: var(--gutter);
}

/* Обгортка, що обрізає декоративні хвилі по горизонталі (як у дизайні) */
.page {
  overflow-x: clip;
}

/* Кожна секція адресується своїм id. Спільна поведінка — списком селекторів,
   персональні правки — окремим блоком нижче за текстом. */
#top,
#about,
#for-whom,
#details,
#schedule,
#results,
#early-offer,
#contribution,
#experts,
#pricing,
#faq,
#cta {
  position: relative;
}

/* Секція на всю ширину з білим тлом */
#experts,
#cta {
  background: var(--surface);
  border-block: var(--border-hairline) solid var(--line);
  overflow: hidden;
}
#for-whom > .shell,
#experts > .shell,
#cta > .cta-inner {
  padding-block: var(--section-space);
}

/* Секції без власного тла. Longhand — інакше shorthand padding скидав би
   padding-inline у персональних правилах нижче. */
#about,
#details,
#schedule,
#results,
#early-offer,
#contribution,
#pricing,
#faq {
  padding-block: var(--section-space);
  padding-inline: var(--gutter);
}
#about,
#details,
#results,
#contribution,
#pricing {
  background: var(--surface);
}
#early-offer {
  background: var(--pink-soft);
  border-block: var(--border-hairline) solid var(--line-pink);
}

/* Контент над декоративними хвилями */
.layer {
  position: relative;
  z-index: var(--z-content);
}

.paper {
  position: relative;
  overflow: hidden;
  background-color: var(--surface);
}

.paper::before {
  content: "";
  position: absolute;
  inset: -60px;
  z-index: var(--z-decor);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='10'%3E%3Cpath d='M0 5 Q14 2 28 5 T56 5' fill='none' stroke='%23dde0d8' stroke-width='2'/%3E%3C/svg%3E");
  pointer-events: none;
}

.wave-divider {
  background-color: var(--surface);
  height: 50px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='10'%3E%3Cpath d='M0 5 Q14 2 28 5 T56 5' fill='none' stroke='%23dde0d8' stroke-width='2'/%3E%3C/svg%3E");
  pointer-events: none;
}

.plate {
  position: relative;
  border-radius: var(--radius-2xl);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.6),
    rgba(255, 255, 255, 0.38) 45%,
    rgba(248, 226, 234, 0.32)
  );
  -webkit-backdrop-filter: blur(10px) saturate(150%) brightness(1.03);
  backdrop-filter: blur(10px) saturate(150%) brightness(1.03);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    inset 0 -1px 0 rgba(255, 255, 255, 0.3),
    0 24px 48px -24px rgba(38, 48, 29, 0.25);
}

.plate::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    140deg,
    rgba(255, 255, 255, 0.95),
    rgba(255, 255, 255, 0.1) 38%,
    rgba(232, 143, 178, 0.3) 62%,
    rgba(255, 255, 255, 0.75)
  );
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.plate::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  padding: 14px;
  -webkit-backdrop-filter: blur(7px) saturate(180%) brightness(1.06);
  backdrop-filter: blur(7px) saturate(180%) brightness(1.06);
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.plate-warp {
  position: absolute;
  inset: -24px;
  z-index: -1;
  clip-path: inset(24px round var(--radius-2xl));
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='10'%3E%3Cpath d='M0 5 Q14 2 28 5 T56 5' fill='none' stroke='%23dde0d8' stroke-width='2'/%3E%3C/svg%3E");
  filter: url("#gjn-warp");
  opacity: 0.55;
  mask: radial-gradient(closest-side at 50% 45%, transparent 40%, #000 100%);
  pointer-events: none;
}

#experts,
#cta {
  border-block-color: var(--line-soft);
}

.error-page {
  padding-block: var(--section-space);
  padding-inline: var(--gutter);
}

/* ==========================================================================
   5. Компоненти
   ========================================================================== */

/* ── Типографіка ───────────────────────────────────────────────────────── */

.section-num {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-subhead);
  color: var(--pink-ink);
  margin: 0 0 var(--space-sm);
}

.h2 {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-h2);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin: 0 0 10px;
  text-wrap: pretty;
}
.h2--spaced {
  margin-bottom: var(--space-4xl);
}
.h2--spaced-sm {
  margin-bottom: 28px;
}

.lede {
  font-size: var(--text-lede);
  line-height: var(--leading-body);
  color: var(--ink-soft);
}
.h2 + .lede {
  margin-top: 22px;
}
.lede + .lede {
  margin-top: 18px;
}
.lede--strong {
  font-weight: var(--weight-semibold);
  color: var(--ink);
}

.brand-inline {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-tight);
  color: var(--green);
  white-space: nowrap;
}

.section-intro {
  font-size: var(--text-subhead);
  line-height: var(--leading-relaxed);
  color: var(--ink-soft);
  margin: 0 0 28px;
}

.section-sub {
  font-size: var(--text-subhead);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-relaxed);
  color: var(--muted);
  margin: 0 0 28px;
}
.section-sub--green {
  color: var(--green);
}
.section-sub--pink {
  color: var(--pink-ink);
}

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

/* Рамка тримає нетекстовий контраст (WCAG 1.4.11): сама заливка --pink дає
   лише 1.98:1 до тла сторінки, --pink-ink — 5.99:1. Вертикальний і
   горизонтальний padding зменшено рівно на товщину рамки, тому габарит
   кнопки лишився тим самим, що й до правки. */
.btn {
  display: inline-block;
  background: var(--pink-hover);
  color: var(--ink);
  font-family: inherit;
  font-weight: var(--weight-bold);
  font-size: var(--text-ui);
  line-height: var(--leading-ui);
  padding: 12px 26px; /* 14/28 мінус 2px рамки */
  border: var(--border-strong) solid var(--pink-hover);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow);
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 200ms ease,
    box-shadow 200ms ease,
    border-color 200ms ease;
}
.btn:hover {
  background: var(--pink-hover);
  color: var(--ink);
  transform: translateY(-2px);
  border-color: var(--pink-ink);
  box-shadow: var(--shadow-hover);
}
.btn.is-hidden {
  display: none;
}

.btn--sm {
  font-size: var(--text-caption);
  padding: 9px 20px; /* 11/22 мінус рамка */
}
.btn--lg {
  font-size: var(--text-body);
  padding: 14px 30px; /* 16/32 мінус рамка */
}

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: var(--text-ui);
  font-weight: var(--weight-bold);
  color: var(--green);
  cursor: pointer;
}
.link-btn:hover {
  color: var(--green-dark);
}
.link-btn-icon {
  margin-left: 0.35em;
}

.link-muted {
  font-size: var(--text-ui);
  font-weight: var(--weight-semibold);
  color: var(--muted);
}

.collapse-all {
  display: block;
  margin: 0 0 var(--space-md) auto;
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: var(--text-caption);
  font-weight: var(--weight-semibold);
  color: var(--muted);
  cursor: pointer;
}
.collapse-all:hover {
  color: var(--green-dark);
}

.to-top {
  position: fixed;
  right: var(--space-2xl);
  bottom: var(--space-2xl);
  z-index: var(--z-header);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  background: var(--surface);
  color: var(--green);
  border: var(--border-base) solid var(--green);
  border-radius: var(--radius-circle);
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition:
    opacity var(--nav-duration) ease,
    transform var(--nav-duration) ease;
}
.to-top[hidden] {
  display: none;
}
.to-top.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.to-top:hover {
  background: var(--green);
  color: var(--surface);
}

/* ── Шапка ─────────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--surface-blur);
  backdrop-filter: blur(14px);
  border-bottom: var(--border-hairline) solid var(--line-header);
}

.header-inner {
  padding-block: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2xl);
}

.logo {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-title);
  letter-spacing: var(--tracking-tight);
  color: var(--green);
  flex-shrink: 0;
}

.site-nav-list {
  display: flex;
  gap: var(--space-lg);
  font-size: var(--text-nav);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.01em;
}

.site-nav a.is-active {
  color: var(--green-dark);
}

@media (min-width: 1081px) {
  .site-nav a {
    position: relative;
  }
  .site-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: var(--border-hairline);
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--nav-duration) ease;
  }
  .site-nav a:hover::after,
  .site-nav a.is-active::after {
    transform: scaleX(1);
  }
}

.nav-toggle {
  display: none;
  position: relative;
  flex: none;
  width: 40px;
  height: 40px;
  padding: 0;
  background: none;
  border: 0;
  color: var(--green);
  cursor: pointer;
}

.nav-toggle-bar {
  position: absolute;
  left: 9px;
  width: 22px;
  height: 2px;
  background: currentColor;
  border-radius: var(--radius-pill);
  transition:
    transform var(--nav-duration) ease,
    opacity var(--nav-duration) ease;
}
.nav-toggle-bar:nth-child(1) {
  top: 13px;
}
.nav-toggle-bar:nth-child(2) {
  top: 19px;
}
.nav-toggle-bar:nth-child(3) {
  top: 25px;
}

.is-nav-open .nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.is-nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}
.is-nav-open .nav-toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ── Герой ─────────────────────────────────────────────────────────────── */

#top {
  display: grid;
  align-content: center;
  min-height: var(--hero-min-height);
  border-bottom: var(--border-hairline) solid var(--line-soft);
  overflow: hidden;
}

.hero-inner {
  margin-inline: var(--gutter);
  padding-inline: var(--plate-space);
  padding-block: var(--section-space) 64px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-hero);
  line-height: var(--leading-hero);
  letter-spacing: var(--tracking-hero);
  color: var(--green);
  text-align: center;
  margin: 0;
  text-wrap: balance;
}

.hero-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-2xl);
  margin-top: 52px;
  flex-wrap: wrap;
}

.hero-kicker {
  flex: 1;
  min-width: 200px;
  font-size: var(--text-label);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  line-height: var(--leading-relaxed);
  color: var(--green);
}

.pill {
  flex: none;
  border: var(--border-base) solid var(--green);
  border-radius: var(--radius-pill);
  padding: 11px var(--space-2xl);
  font-size: var(--text-ui);
  font-weight: var(--weight-semibold);
  color: var(--green);
  white-space: nowrap;
}

.hero-cta {
  flex: 1;
  min-width: 200px;
  display: flex;
  justify-content: flex-end;
}

/* ── Біжучий рядок ─────────────────────────────────────────────────────── */

.marquee {
  position: relative;
  background: var(--pink-soft);
  border-block: var(--border-hairline) solid var(--line-pink);
  overflow: hidden;
  padding: 14px 0;
}

.marquee-track {
  --marquee-copies: 2;
  display: flex;
  width: max-content;
  font-size: var(--text-label);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--green);
  white-space: nowrap;
}

/* Анімацію вмикає скрипт: копії треку теж рахує він, без JS рядок статичний */
.marquee-track.is-animated {
  animation: gjn-marquee var(--marquee-duration) linear infinite;
}

.marquee-group {
  flex: none;
  display: flex;
  gap: 28px;
  padding-right: 28px;
}

@keyframes gjn-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-100% / var(--marquee-copies)));
  }
}

/* ── Для кого: чеклист ─────────────────────────────────────────────────── */

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

.check {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--surface);
  border: var(--border-base) solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  --shadow-hover: 5px 5px 5px rgba(0, 0, 0, 0.25), 9px 9px 9px rgba(0, 0, 0, 0.35);
  padding: var(--space-lg) 18px;
  cursor: pointer;
  font-size: var(--text-ui-lg);
  line-height: var(--leading-normal);
  user-select: none;
  transition:
    transform 200ms ease,
    box-shadow 200ms ease;
}
.check:hover,
.check:has(.check-input:checked) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.check-text {
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% var(--border-hairline);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size 200ms ease;
}
.check:hover .check-text {
  background-size: 100% var(--border-hairline);
}

/* Нативний чекбокс — доступний з клавіатури, стан читає скрін-рідер */
.check-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.check-box {
  flex: none;
  width: var(--checkbox-size);
  height: var(--checkbox-size);
  border-radius: var(--radius-sm);
  border: var(--border-strong) solid var(--green);
  background: transparent;
  margin-top: 1px;
}

.check:has(.check-input:checked) {
  border-color: var(--green);
}
.check:has(.check-input:checked) .check-box {
  background: var(--green);
}
.check:has(.check-input:focus-visible) {
  outline: var(--focus-width) solid var(--ink);
  outline-offset: var(--focus-offset);
}

.tally {
  margin-top: 22px;
  background: var(--pink-soft);
  border-radius: var(--radius-2xl);
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

.tally-title {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-subhead);
  color: var(--ink);
}

.tally-note {
  font-size: var(--text-ui);
  color: var(--ink-soft);
  margin-top: var(--space-xs);
}

/* ── Акордеон: програма + FAQ ──────────────────────────────────────────── */

.timeline {
  border-left: 5px solid var(--pink-ink);
  padding-left: var(--space-2xl);
  display: flex;
  flex-direction: column;
  gap: var(--grid-gap);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--grid-gap);
}

.acc {
  background: var(--surface);
  border: var(--border-hairline) solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
}
.acc--ama {
  background: var(--pink-soft);
  border-color: var(--line-pink);
}

.acc-head {
  display: flex;
  align-items: center;
  gap: var(--acc-gap);
  padding: var(--space-xl) var(--acc-space);
  cursor: pointer;
  list-style: none;
}
.acc-head::-webkit-details-marker {
  display: none;
}
.acc-head::marker {
  content: "";
}

/* Фіксована ширина колонки — щоб .acc-body вирівнювався під заголовком
   незалежно від тексту («01» проти «AMA») і від завантаження Unbounded. */
.acc-num {
  flex: none;
  width: var(--acc-num-width);
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-label);
  color: var(--pink-ink);
}
.acc--ama .acc-num {
  font-size: var(--text-badge);
  letter-spacing: var(--tracking-badge);
}

.acc-title {
  flex: 1;
  font-family: var(--font-display);
  font-weight: var(--weight-medium);
  font-size: var(--text-title-sm);
  line-height: var(--leading-snug);
  margin: 0;
}
.acc-title--q {
  font-size: var(--text-subhead);
}

.acc-icon {
  flex: none;
  font-size: var(--text-title-lg);
  line-height: 1; /* рівно висота гліфа, щоб не роздувати шапку акордеона */
  color: var(--green);
}
.acc-icon::before {
  content: "+";
}
.acc[open] .acc-icon::before {
  content: "–";
}
.acc--ama .acc-icon {
  color: var(--pink-ink);
}

.acc::details-content {
  block-size: 0;
  overflow: clip;
  transition:
    block-size var(--collapse-duration) ease,
    content-visibility var(--collapse-duration) allow-discrete;
}
.acc[open]::details-content {
  block-size: auto;
}

/* Лівий відступ рахується з тих самих токенів, що й шапка акордеона */
.acc-body {
  padding: 0 var(--acc-space) var(--space-2xl)
    calc(var(--acc-space) + var(--acc-num-width) + var(--acc-gap));
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--ink-soft);
}
.acc-body--q {
  padding-left: var(--acc-space);
}

.acc-body > * + * {
  margin-top: var(--stack-space);
}
.acc-body > ul {
  margin-top: 10px;
}

.callout {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: var(--space-lg) 18px;
}
.callout ul {
  margin-top: var(--space-sm);
}

.schedule {
  --schedule-week-col: 90px;
  --schedule-cols: 150px 150px 1fr 170px;
  background: var(--surface);
  border: var(--border-hairline) solid var(--line);
  border-radius: var(--radius-xl);
}

.schedule-head,
.schedule-row {
  display: grid;
  grid-template-columns: var(--schedule-cols);
  gap: var(--space-lg);
}

.schedule-head {
  grid-template-columns: var(--schedule-week-col) var(--schedule-cols);
  position: sticky;
  top: 71px;
  z-index: 2;
  background: var(--surface);
  padding-inline: var(--card-space);
  border-bottom: var(--border-hairline) solid var(--line);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  font-size: var(--text-label);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--muted);
}
.schedule-head > * {
  padding-block: var(--space-lg) var(--space-md);
}
.schedule-head > :not(:last-child) {
  border-right: var(--border-hairline) solid var(--line);
}

.schedule-week {
  border-bottom: var(--border-hairline) solid var(--line);
  display: grid;
  grid-template-columns: calc(var(--card-space) + var(--schedule-week-col)) minmax(0, 1fr);
}
.schedule-week:last-child {
  border-bottom: 0;
}

.schedule-week-title {
  grid-row: 1 / span 3;
  border-right: var(--border-hairline) solid var(--line);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-subhead);
  line-height: var(--leading-tight);
  color: var(--green);
  margin: 0;
}

.schedule-row {
  grid-column: 2;
  padding-left: var(--space-lg);
  padding-right: var(--card-space);
}
.schedule-row + .schedule-row {
  border-top: var(--border-hairline) solid var(--line);
}
.schedule-row > * {
  padding-block: var(--space-lg);
}
.schedule-row > :not(:last-child) {
  border-right: var(--border-hairline) solid var(--line);
}

.schedule-date-day,
.schedule-date-weekday {
  display: block;
}

.schedule-date-day {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-subhead);
  line-height: var(--leading-tight);
  color: var(--ink);
}

.schedule-date-weekday {
  margin-top: var(--space-xs);
  font-size: var(--text-caption);
  color: var(--muted);
}

.schedule-time {
  font-size: var(--text-ui);
  line-height: var(--leading-normal);
  color: var(--ink-soft);
}

.schedule-event {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-sm);
}

.schedule-event-name {
  font-size: var(--text-body);
  font-weight: var(--weight-medium);
  line-height: var(--leading-snug);
  color: var(--ink);
}

.schedule-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: var(--border-hairline);
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}
.schedule-link:hover {
  color: var(--green-dark);
  text-decoration-color: currentColor;
}

.schedule-badge {
  background: var(--surface);
  border: var(--border-hairline) solid var(--line);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  font-size: var(--text-badge);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-badge);
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.schedule-badge--workshop {
  background: var(--green-tint);
  border-color: var(--green-tint);
  color: var(--green-dark);
}
.schedule-badge--ama {
  background: var(--pink-soft);
  border-color: var(--pink-soft);
  color: var(--pink-ink);
}

.schedule-host {
  font-size: var(--text-ui);
  line-height: var(--leading-normal);
  color: var(--muted);
}

.schedule-host--tba,
.schedule-row--async .schedule-host--tba {
  color: var(--pink-ink);
}

/* ── Результати ────────────────────────────────────────────────────────── */

.outcomes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  list-style: none;
  padding: 0;
}

.outcome {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  font-family: var(--font-display);
  font-weight: var(--weight-medium);
  font-size: var(--text-body-lg);
  line-height: var(--leading-snug);
  border: var(--border-hairline) solid var(--line);
  box-shadow: var(--shadow);
  --shadow-hover: 5px 5px 5px rgba(0, 0, 0, 0.25), 9px 9px 9px rgba(0, 0, 0, 0.35);
}
.outcome--pink {
  background: var(--pink-soft);
}

.outcome-mark {
  width: var(--mark-size);
  height: var(--mark-size);
  border-radius: var(--radius-circle);
  background: var(--green-tint);
  color: var(--green);
  border: var(--border-base) solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: var(--text-body);
  margin-bottom: var(--stack-space);
}
.outcome--pink .outcome-mark {
  background: var(--surface);
  color: var(--pink-ink);
}

/* ── Експертки ─────────────────────────────────────────────────────────── */

.expert {
  display: flex;
  gap: var(--space-4xl);
  align-items: flex-start;
  flex-wrap: wrap;
  padding: var(--card-space);
  margin-bottom: 44px;
}
.expert:last-child {
  margin-bottom: 0;
}

.expert-photo {
  flex: none;
  width: var(--photo-size);
  height: var(--photo-size);
  object-fit: cover;
  border-radius: var(--photo-radius);
  background: var(--bg);
}

/* Фото вже квадратні й кадровані під обличчя, тому object-position не потрібен */

/* min-width: 0 обов'язковий — інакше блок не стискається вужче за 300px
   і текст біо обрізається на вузьких екранах. */
.expert-body {
  flex: 1 1 300px;
  min-width: 0;
  font-size: var(--text-body);
  line-height: var(--leading-body);
  color: var(--ink-soft);
}

.expert-name {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-name);
  color: var(--ink);
  margin: 0 0 6px;
}

.expert-role {
  font-size: var(--text-ui-lg);
  font-weight: var(--weight-bold);
  color: var(--green);
  margin-bottom: var(--stack-space);
}

.expert-more {
  display: grid;
  grid-template-rows: 0fr;
  visibility: hidden;
  transition:
    grid-template-rows var(--collapse-duration) ease,
    visibility var(--collapse-duration);
}
.expert-more.is-open {
  grid-template-rows: 1fr;
  visibility: visible;
}

.expert-more-inner {
  min-height: 0;
  overflow: hidden;
}
.expert-more-inner > p {
  margin-top: var(--stack-space);
}

.expert-actions {
  display: flex;
  gap: var(--space-xl);
  align-items: center;
  margin-top: var(--space-lg);
}

/* ── Тарифи ────────────────────────────────────────────────────────────── */

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: var(--space-lg);
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: var(--border-hairline) solid var(--line);
  border-radius: var(--radius-2xl);
  padding: var(--card-space);
}
/* Той самий --pink-ink, що й у рамці кнопки: 1.4.11 для стану «виділений» */
.plan--featured {
  border: var(--border-strong) solid var(--pink-ink);
}

.plan-name {
  font-family: var(--font-display);
  font-weight: var(--weight-semibold);
  font-size: var(--text-title);
  margin: 0 0 6px;
}
.plan-name + .plan-list {
  margin-top: var(--space-lg);
}

.plan-list {
  flex: 1;
  font-size: var(--text-ui);
  line-height: var(--leading-relaxed);
  color: var(--ink-soft);
}

/* Колір позиції показує, з якого тарифу вона прийшла: базовий — Standard,
   рожевий — Guided, зелений — Premium. Маркер списку успадковує той самий колір.
   Напівжирність — другий сигнал: --green надто близький до --ink-soft на 15px. */
.plan-item--guided,
.plan-item--premium {
  font-weight: var(--weight-semibold);
}
.plan-item--guided {
  color: var(--pink-ink);
}
.plan-item--premium {
  color: var(--green);
}

.plan-price {
  margin-top: var(--space-xl);
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-price);
  color: var(--green);
}

.plan-note {
  font-size: var(--text-caption);
  color: var(--muted);
  margin-top: var(--space-xs);
}

.plan-btn {
  margin-top: 18px;
  text-align: center;
  white-space: normal;
}

/* ── Фінальний заклик ──────────────────────────────────────────────────── */

/* Відступ секції відсуває плитку від країв, як у героя; padding самої плитки —
   її внутрішнє поле. Без першого плитка тягнеться на всю висоту секції. */
#cta {
  border-bottom: 0;
  padding-block: var(--section-space);
}
#cta > .cta-inner {
  padding-block: var(--cta-space);
}
.cta-inner {
  margin-inline: var(--gutter);
  padding-inline: var(--plate-space);
  text-align: center;
}

.cta-title {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-cta);
  line-height: var(--leading-cta);
  letter-spacing: var(--tracking-cta);
  color: var(--green);
  margin: 0 0 var(--space-xl);
  text-wrap: balance;
}

.cta-text {
  font-size: var(--text-lede);
  line-height: var(--leading-relaxed);
  color: var(--ink-soft);
  max-width: var(--cta-measure);
  margin: 0 auto var(--space-3xl);
}

#cta .btn--lg {
  font-size: var(--text-subhead);
  padding: 16px 38px; /* 18/40 мінус рамка */
}

/* ── Підвал ────────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--green-dark);
  color: var(--footer-ink);
}

.footer-inner {
  padding-inline: var(--gutter);
  padding-block: var(--section-space-sm);
  display: flex;
  gap: var(--space-4xl);
  justify-content: space-between;
  flex-wrap: wrap;
}

.footer-brand {
  min-width: 240px;
}

.footer-logo {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-title-lg);
  color: var(--bg);
}
.footer-accent {
  color: var(--footer-accent);
}

.footer-tagline {
  font-size: var(--text-nav);
  line-height: var(--leading-loose);
  margin-top: var(--space-md);
  color: var(--footer-ink-muted);
}

.footer-col {
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  font-size: var(--text-nav);
}
.footer-col a {
  color: var(--footer-ink);
}
.footer-col a:hover {
  color: var(--surface);
}
.footer-col--muted {
  min-width: 200px;
  color: var(--footer-ink-muted);
}

.footer-heading {
  font-size: var(--text-micro);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--footer-ink-dim);
  margin: 0 0 var(--space-xs);
}

.footer-bottom {
  border-top: var(--border-hairline) solid var(--footer-line);
  padding-block: var(--space-xl);
  padding-inline: var(--gutter);
  font-size: var(--text-label);
  color: var(--footer-ink-dim);
}

/* ==========================================================================
   6. Адаптація — 1080 / 950 / 800 / 720 / 600 / 420px
   ========================================================================== */

/* Поля сторінки. Поріг навмисно окремий від порогу меню (1080px): гутер
   тримає ширину контенту, меню — свою розкладку, і міняються вони незалежно. */
@media (max-width: 950px) {
  :root {
    --gutter: 22px;
  }
}

@media (max-width: 1080px) {
  .nav-toggle {
    display: block;
    margin-left: auto;
  }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
    background: var(--surface);
    transition:
      grid-template-rows var(--nav-duration) ease,
      visibility var(--nav-duration);
  }
  .site-header.is-nav-open .site-nav {
    grid-template-rows: 1fr;
    visibility: visible;
    border-bottom: var(--border-hairline) solid var(--line-header);
  }
  .site-nav-list {
    flex-direction: column;
    gap: 0;
    min-height: 0;
    overflow: hidden;
    padding-inline: var(--gutter);
    font-size: var(--text-ui);
  }
  .site-nav-list a {
    padding-block: var(--space-md);
  }
  .schedule {
    --schedule-week-col: 100px;
    --schedule-cols: 120px 120px 1fr 140px;
  }
  .outcomes {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 800px) {
  .schedule-head {
    display: none;
  }
  .schedule-week {
    display: block;
  }
  .schedule-week-title {
    display: block;
    border-right: 0;
    margin: 0 0 var(--space-sm);
    padding-block: var(--space-md) 0;
    padding-inline: var(--card-space);
  }
  .schedule-week-title::after {
    content: " тиждень";
  }
  .schedule-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "date time"
      "event event"
      "host host";
    gap: var(--space-sm) var(--space-lg);
    padding-block: 14px;
    padding-inline: var(--card-space);
    border-top: var(--border-hairline) solid var(--line);
  }
  .schedule-row > * {
    padding-block: 0;
  }
  .schedule-row > :not(:last-child) {
    border-right: 0;
  }
  .schedule-date {
    grid-area: date;
  }
  .schedule-time {
    grid-area: time;
    text-align: right;
  }
  .schedule-event {
    grid-area: event;
  }
  .schedule-host {
    grid-area: host;
  }
}

@media (max-width: 720px) {
  .header-inner {
    gap: var(--space-lg);
    padding-block: var(--space-md);
  }
  .logo {
    font-size: var(--text-subhead);
  }
  .btn--sm {
    font-size: var(--text-label);
    padding: 8px 14px;
  }
}

@media (max-width: 600px) {
  :root {
    --plate-space: var(--space-xl);
    --photo-size: 180px;
    --acc-num-width: 32px;
    --card-space: var(--card-space-sm);
  }

  #for-whom > .shell,
  #experts > .shell,
  #about,
  #details,
  #schedule,
  #results,
  #early-offer,
  #contribution,
  #pricing,
  #faq {
    padding-block: var(--section-space-sm);
  }
  #cta {
    padding-block: var(--section-space-sm);
  }
  #cta > .cta-inner {
    padding-block: 64px;
  }
  .hero-inner {
    padding-block: var(--section-space-sm) 44px;
  }
  .hero-meta {
    margin-top: 36px;
  }

  .expert {
    gap: var(--space-2xl);
    margin-bottom: 36px;
  }
  .footer-brand,
  .footer-col {
    min-width: 0;
  }
  .footer-inner {
    gap: var(--space-3xl);
    padding-block: 44px;
  }

  .timeline {
    padding-left: 14px;
  }
  .acc-head {
    padding: var(--space-lg);
    gap: var(--space-md);
  }
  .acc-title {
    font-size: var(--text-body-lg);
  }
  .acc-body,
  .acc-body--q {
    padding: 0 var(--space-lg) var(--space-xl);
  }

  .outcomes {
    grid-template-columns: 1fr;
  }
  .outcome {
    padding: var(--card-space-sm);
  }
  .tally {
    padding: 18px var(--space-xl);
  }
}

@media (max-width: 420px) {
  :root {
    --header-offset: 120px;
  }
  .header-inner {
    flex-wrap: wrap;
    row-gap: var(--space-md);
  }
  .header-inner .btn {
    width: 100%;
    text-align: center;
  }
}

/* Розворот блока експертки лише там, де вони справді стоять в один рядок —
   інакше при переносі елементи пакуються від правого краю і збивають гутер. */
@media (min-width: 720px) {
  .expert--reverse {
    flex-direction: row-reverse;
  }
}

/* ==========================================================================
   7. Налаштування користувача
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  /* Специфічність (0,2,0) — щоб перебити .marquee-track.is-animated */
  .marquee-track.is-animated {
    animation: none;
  }
  .acc::details-content {
    transition-duration: 0.01ms !important;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .plate {
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .plate::before,
  .plate-warp {
    display: none;
  }
}

@media print {
  .site-header,
  .marquee,
  .btn,
  .link-btn,
  .collapse-all,
  .skip-link,
  .to-top,
  .wave-divider {
    display: none !important;
  }

  body {
    background: var(--surface);
  }
  #top {
    min-height: 0;
  }
  .paper::before {
    display: none;
  }
  #early-offer {
    background: none;
    border-block: 0;
  }
  .plate {
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: none;
  }
  .plate::before,
  .plate::after,
  .plate-warp {
    display: none;
  }
  #for-whom > .shell,
  #experts > .shell,
  #about,
  #details,
  #schedule,
  #results,
  #early-offer,
  #contribution,
  #pricing,
  #faq,
  #cta,
  #cta > .cta-inner {
    padding-block: var(--space-lg);
  }

  /* script.js розкриває всі <details> перед друком */
  .acc::details-content {
    block-size: auto;
    content-visibility: visible;
    transition: none;
  }
  .expert-more {
    grid-template-rows: 1fr;
    visibility: visible;
    transition: none;
  }

  /* Кнопки на папері марні, але фінальний заклик лишаємо разом з адресою
     форми — інакше з роздруківки не дізнатися, куди подавати заявку. */
  #cta .btn {
    display: inline !important;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink);
    white-space: normal;
  }
  .cta .btn::after {
    content: " — " attr(href);
    font-weight: var(--weight-medium);
  }

  .acc,
  .plan,
  .outcome,
  .expert {
    break-inside: avoid;
  }
}
