/* ============================================================
   Когітос — дизайн-система
   Палітра: індиго (основний) + бурштин (акцент) + темна ніч (hero/footer)
   ============================================================ */

:root {
  /* Поверхні */
  --bg: #ffffff;
  --bg-tint: #f4f6fc;
  --bg-deep: #0b1230;
  --bg-deep-2: #16215a;

  /* Текст */
  --ink: #0e1428;
  --ink-2: #47506b;
  --ink-3: #737d99;
  --on-dark: #ffffff;
  --on-dark-2: #b9c2e6;

  /* Бренд */
  --brand: #2b46c6;
  --brand-dark: #1d3096;
  --brand-light: #eef1fd;
  --brand-line: #cdd6f8;

  /* Акцент */
  --accent: #f5a524;
  --accent-dark: #c47e0c;
  --accent-soft: #fdf3e0;

  /* Службові */
  --line: #e5e9f2;
  --ok-bg: #e9f7ef;
  --ok-ink: #1a6b3c;
  --err-bg: #fdecec;
  --err-ink: #98252b;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(14, 20, 40, .06), 0 2px 6px rgba(14, 20, 40, .04);
  --shadow: 0 2px 6px rgba(14, 20, 40, .05), 0 14px 34px rgba(14, 20, 40, .08);
  --shadow-lg: 0 30px 70px rgba(11, 18, 48, .35);

  --wrap: 1160px;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Manrope", var(--sans);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.68;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }

h1, h2, h3, h4 {
  font-family: var(--display);
  line-height: 1.15;
  margin: 0 0 .5em;
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--ink);
}
h1 { font-size: clamp(2.15rem, 4.8vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3.3vw, 2.4rem); }
h3 { font-size: 1.12rem; font-weight: 700; letter-spacing: -.015em; }
p { margin: 0 0 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 92px 0; }
.section--tint { background: var(--bg-tint); }
.section--line { border-top: 1px solid var(--line); }

/* ---------- Заголовки секцій ---------- */
.section__head { max-width: 680px; margin-bottom: 46px; }
.section__head p { color: var(--ink-2); margin: 0; font-size: 1.04rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--display); font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--brand);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 2px; background: var(--accent); border-radius: 2px;
}
.eyebrow--light { color: var(--accent); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--display); font-weight: 700; font-size: .98rem; letter-spacing: -.01em;
  padding: 14px 26px; border-radius: 12px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .18s ease, border-color .18s ease, color .18s ease,
              transform .12s ease, box-shadow .18s ease;
}
.btn svg { width: 17px; height: 17px; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(43, 70, 198, .28); }
.btn--primary:hover { background: var(--brand-dark); color: #fff; box-shadow: 0 10px 26px rgba(43, 70, 198, .34); }
.btn--accent { background: var(--accent); color: #2a1c00; box-shadow: 0 6px 18px rgba(245, 165, 36, .3); }
.btn--accent:hover { background: #ffb43f; color: #2a1c00; }
.btn--outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--outline:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-light); }
.btn--onDark { background: rgba(255, 255, 255, .09); color: #fff; border-color: rgba(255, 255, 255, .26); }
.btn--onDark:hover { background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .5); }
.btn--sm { padding: 10px 18px; font-size: .9rem; border-radius: 10px; }
.btn--wide { width: 100%; padding: 16px 24px; }

/* ---------- Верхня смуга ---------- */
.topbar {
  background: var(--bg-deep); color: var(--on-dark-2);
  font-size: .85rem; letter-spacing: .01em;
}
.topbar__inner { display: flex; align-items: center; gap: 18px; min-height: 38px; }
.topbar b { color: #fff; font-weight: 600; }
.topbar__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: none; }
.topbar a { color: var(--on-dark-2); text-decoration: none; margin-left: auto; }
.topbar a:hover { color: #fff; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.is-stuck { border-bottom-color: var(--line); box-shadow: 0 6px 24px rgba(14, 20, 40, .07); }
.site-header__inner { display: flex; align-items: center; gap: 22px; min-height: 74px; }

.logo {
  display: inline-flex; align-items: center; gap: 11px; text-decoration: none;
  font-family: var(--display); font-weight: 800; font-size: 1.24rem;
  letter-spacing: -.03em; color: var(--ink); flex: none;
}
.logo__mark {
  width: 36px; height: 36px; border-radius: 11px; flex: none;
  background: linear-gradient(140deg, var(--brand) 0%, #4a63e8 60%, var(--accent) 190%);
  display: grid; place-items: center; box-shadow: 0 4px 12px rgba(43, 70, 198, .3);
}
.logo__mark svg { width: 20px; height: 20px; }
.logo small {
  display: block; font-family: var(--sans); font-size: .68rem; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-top: -3px;
}
.logo--light, .logo--light small { color: #fff; }
.logo--light small { color: var(--on-dark-2); }

.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav a {
  position: relative; color: var(--ink-2); text-decoration: none;
  font-size: .95rem; font-weight: 500; padding: 9px 13px; border-radius: 9px;
  transition: color .15s ease, background .15s ease;
}
.nav a:hover { color: var(--ink); background: var(--bg-tint); }
.nav a.is-active { color: var(--brand); }
.nav a.is-active::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 3px;
  height: 2px; border-radius: 2px; background: var(--accent);
}
.nav .btn { margin-left: 10px; }
.nav .btn::after { display: none; }
.nav a.btn--primary, .nav a.btn--primary:hover { color: #fff; background: var(--brand); }
.nav a.btn--primary:hover { background: var(--brand-dark); }

.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 40px; padding: 0;
  border: 1px solid var(--line); background: #fff; border-radius: 11px; cursor: pointer;
}
.nav-toggle i, .nav-toggle i::before, .nav-toggle i::after {
  display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
  margin: 0 auto; position: relative; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle i::before, .nav-toggle i::after { content: ""; position: absolute; left: 0; }
.nav-toggle i::before { top: -6px; }
.nav-toggle i::after { top: 6px; }
.nav-toggle[aria-expanded="true"] i { background: transparent; }
.nav-toggle[aria-expanded="true"] i::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] i::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--on-dark);
  background: linear-gradient(160deg, #0b1230 0%, #16215a 55%, #1d2f7a 100%);
  padding: 84px 0 0;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(ellipse 80% 65% at 30% 25%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 30% 25%, #000 20%, transparent 75%);
}
.hero::after {
  content: ""; position: absolute; width: 620px; height: 620px; right: -180px; top: -220px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(245, 165, 36, .22) 0%, transparent 62%);
}
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.08fr .92fr; gap: 60px; align-items: start; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__lead { color: var(--on-dark-2); font-size: 1.12rem; max-width: 52ch; margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 13px; margin-bottom: 30px; }

.pill {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 22px;
  padding: 7px 15px 7px 9px; border-radius: 99px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
  font-size: .84rem; color: #e7ebff; font-weight: 500;
}
.pill b {
  background: var(--accent); color: #2a1c00; font-size: .72rem; font-weight: 700;
  padding: 3px 9px; border-radius: 99px; letter-spacing: .02em;
}

.hero__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hero__list li { display: flex; gap: 12px; align-items: flex-start; color: var(--on-dark-2); font-size: .98rem; }
.hero__list svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--accent); }

/* Панель з цитатами */
.quotes {
  background: rgba(255, 255, 255, .97); color: var(--ink);
  border-radius: var(--r-lg); padding: 28px 28px 12px; box-shadow: var(--shadow-lg);
}
.quotes__head { display: flex; align-items: center; gap: 11px; margin-bottom: 20px; }
.quotes__head h2 { font-size: 1.06rem; margin: 0; }
.quotes__head span {
  width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: var(--brand-light); color: var(--brand); display: grid; place-items: center;
}
.quotes__head svg { width: 18px; height: 18px; }
.quotes ul { list-style: none; margin: 0; padding: 0; }
.quotes li {
  position: relative; padding: 0 0 0 17px; margin-bottom: 17px;
  color: var(--ink-2); font-size: .95rem; line-height: 1.55;
}
.quotes li::before {
  content: ""; position: absolute; left: 0; top: 7px; bottom: 4px; width: 3px;
  border-radius: 3px; background: var(--brand-line);
}
.quotes li:nth-child(2n)::before { background: var(--accent); opacity: .55; }

/* Смуга фактів */
.stats {
  position: relative; z-index: 2; margin-top: 74px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: grid; grid-template-columns: repeat(4, 1fr);
}
.stats div { padding: 26px 26px 30px; border-right: 1px solid rgba(255, 255, 255, .12); }
.stats div:last-child { border-right: 0; }
.stats b {
  display: block; font-family: var(--display); font-size: 1.85rem; font-weight: 800;
  letter-spacing: -.03em; color: #fff; line-height: 1.1;
}
.stats span { font-size: .89rem; color: var(--on-dark-2); }

/* ---------- Принципи ---------- */
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.principle { background: var(--bg); padding: 30px 30px 28px; }
.principle__no {
  font-family: var(--display); font-size: .82rem; font-weight: 800; color: var(--brand);
  letter-spacing: .08em; display: block; margin-bottom: 12px;
}
.principle h3 { margin-bottom: 7px; }
.principle p { color: var(--ink-2); font-size: .96rem; margin: 0; }

/* ---------- Картки дисциплін ---------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.subject {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 24px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.subject:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-line); }
.subject__ico {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: var(--brand-light); color: var(--brand); margin-bottom: 16px;
}
.subject:nth-child(4n+2) .subject__ico { background: var(--accent-soft); color: var(--accent-dark); }
.subject__ico svg { width: 23px; height: 23px; }
.subject h3 { margin-bottom: 7px; }
.subject p { color: var(--ink-2); font-size: .93rem; margin: 0; line-height: 1.6; }

/* ---------- Таймлайн ---------- */
.timeline { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.timeline::before {
  content: ""; position: absolute; top: 23px; left: 8%; right: 8%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--brand-line) 0 8px, transparent 8px 16px);
}
.tstep { position: relative; }
.tstep__no {
  width: 46px; height: 46px; border-radius: 50%; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-family: var(--display); font-weight: 800;
  font-size: 1.05rem; margin-bottom: 20px; position: relative; z-index: 2;
  box-shadow: 0 0 0 7px var(--bg-tint), 0 6px 16px rgba(43, 70, 198, .28);
}
.tstep:last-child .tstep__no { background: var(--accent); color: #2a1c00; box-shadow: 0 0 0 7px var(--bg-tint), 0 6px 16px rgba(245, 165, 36, .3); }
.tstep h3 { margin-bottom: 8px; }
.tstep p { color: var(--ink-2); font-size: .94rem; margin: 0; }

.callout {
  margin-top: 42px; display: flex; gap: 18px; align-items: flex-start;
  background: var(--bg); border: 1px solid var(--brand-line); border-left: 4px solid var(--brand);
  border-radius: var(--r); padding: 24px 26px; box-shadow: var(--shadow-sm);
}
.callout svg { width: 24px; height: 24px; color: var(--brand); flex: none; margin-top: 3px; }
.callout p { margin: 0; color: var(--ink-2); font-size: .97rem; }
.callout strong { color: var(--ink); }

/* ---------- Формати ---------- */
.format {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 24px; display: flex; flex-direction: column; gap: 10px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.format:hover { border-color: var(--brand-line); box-shadow: var(--shadow); }
.format__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.format h3 { margin: 0; }
.format__badge {
  font-family: var(--display); font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--brand); background: var(--brand-light);
  padding: 5px 10px; border-radius: 99px; white-space: nowrap;
}
.format p { color: var(--ink-2); font-size: .94rem; margin: 0; }

/* ---------- Кому підходить ---------- */
.fit { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.fit__col {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 30px;
}
.fit__col--no { background: var(--bg-tint); }
.fit__col h3 { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; font-size: 1.16rem; }
.fit__col h3 span { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.fit__col h3 svg { width: 17px; height: 17px; }
.fit__col--yes h3 span { background: var(--ok-bg); color: var(--ok-ink); }
.fit__col--no h3 span { background: #fdecec; color: var(--err-ink); }
.fit__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; }
.fit__col li { position: relative; padding-left: 26px; color: var(--ink-2); font-size: .96rem; }
.fit__col li::before {
  content: ""; position: absolute; left: 4px; top: .62em; width: 9px; height: 9px;
  border-radius: 3px; background: var(--brand);
}
.fit__col--no li::before { background: var(--ink-3); }

/* ---------- Ціни ---------- */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price {
  position: relative; background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 32px 28px; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.price--best { border: 2px solid var(--brand); box-shadow: 0 24px 54px rgba(43, 70, 198, .16); }
.price__flag {
  position: absolute; top: -13px; left: 28px; background: var(--accent); color: #2a1c00;
  font-family: var(--display); font-size: .74rem; font-weight: 800; letter-spacing: .07em;
  text-transform: uppercase; padding: 5px 13px; border-radius: 99px;
}
.price__name { font-family: var(--display); font-weight: 700; font-size: 1.05rem; margin-bottom: 4px; }
.price__desc { color: var(--ink-3); font-size: .89rem; margin-bottom: 20px; }
.price__sum {
  font-family: var(--display); font-size: 2.35rem; font-weight: 800; letter-spacing: -.035em;
  line-height: 1.1; margin-bottom: 22px;
}
.price__sum small { font-size: .92rem; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.price ul { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 12px; }
.price li { position: relative; padding-left: 27px; font-size: .94rem; color: var(--ink-2); }
.price li svg { position: absolute; left: 0; top: .28em; width: 17px; height: 17px; color: var(--brand); }
.price .btn { margin-top: auto; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r);
  padding: 2px 24px; transition: border-color .2s ease, box-shadow .2s ease;
}
.faq details[open] { border-color: var(--brand-line); box-shadow: var(--shadow-sm); }
.faq summary {
  cursor: pointer; padding: 19px 0; list-style: none; font-family: var(--display);
  font-weight: 700; font-size: 1.02rem; letter-spacing: -.015em;
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: var(--brand-light) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232b46c6' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 13px no-repeat;
  transition: transform .22s ease;
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details p { margin: 0 0 19px; color: var(--ink-2); font-size: .97rem; }

/* ---------- Форма ---------- */
.cta { background: linear-gradient(155deg, #0b1230 0%, #16215a 70%, #23348a 100%); color: var(--on-dark); position: relative; overflow: hidden; }
.cta::after {
  content: ""; position: absolute; width: 560px; height: 560px; left: -200px; bottom: -260px;
  border-radius: 50%; background: radial-gradient(circle, rgba(245, 165, 36, .18) 0%, transparent 65%);
}
.cta__grid { position: relative; z-index: 2; display: grid; grid-template-columns: .92fr 1.08fr; gap: 56px; align-items: start; }
.cta h2 { color: #fff; }
.cta__side > p { color: var(--on-dark-2); }
.cta__side ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 15px; }
.cta__side li { display: flex; gap: 13px; align-items: flex-start; color: var(--on-dark-2); font-size: .96rem; }
.cta__side svg { width: 21px; height: 21px; color: var(--accent); flex: none; margin-top: 2px; }
.cta__contact {
  margin-top: 30px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: .94rem; color: var(--on-dark-2);
}
.cta__contact a { color: #fff; }

.form { background: #fff; border-radius: var(--r-lg); padding: 32px; box-shadow: var(--shadow-lg); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 17px; }
.field label { display: block; font-size: .88rem; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; font: inherit; font-size: .97rem; color: var(--ink);
  background: var(--bg-tint); border: 1.5px solid var(--line); border-radius: var(--r-sm);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field textarea { min-height: 108px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: #fff; border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(43, 70, 198, .12);
}
.field--check { display: flex; gap: 11px; align-items: flex-start; font-size: .87rem; color: var(--ink-2); margin-bottom: 22px; }
.field--check input { width: 17px; height: 17px; margin-top: 3px; accent-color: var(--brand); flex: none; }
.field--check label { font-weight: 400; font-size: .87rem; color: var(--ink-2); margin: 0; line-height: 1.55; }
.form__status { margin: 16px 0 0; font-size: .94rem; padding: 14px 16px; border-radius: var(--r-sm); display: none; }
.form__status.is-ok { display: block; background: var(--ok-bg); color: var(--ok-ink); }
.form__status.is-err { display: block; background: var(--err-bg); color: var(--err-ink); }
.form__note { font-size: .83rem; color: var(--ink-3); margin: 15px 0 0; text-align: center; }

/* ---------- Підвал ---------- */
.site-footer { background: var(--bg-deep); color: var(--on-dark-2); padding: 62px 0 28px; }
.site-footer a { color: #dfe5ff; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 38px; }
.footer__about { max-width: 32ch; font-size: .93rem; margin-top: 16px; color: #93a0cf; }
.site-footer h4 {
  color: #fff; font-family: var(--display); font-size: .82rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; font-size: .93rem; }
.footer__bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1);
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  font-size: .85rem; color: #7b88b8;
}

/* ---------- Юридичні сторінки ---------- */
.page-head {
  background: linear-gradient(160deg, #0b1230 0%, #16215a 100%); color: #fff; padding: 56px 0 52px;
}
.page-head h1 { color: #fff; font-size: clamp(1.9rem, 3.6vw, 2.6rem); margin-bottom: 10px; }
.page-head p { color: var(--on-dark-2); margin: 0; font-size: .96rem; }
.crumbs { font-size: .86rem; color: var(--on-dark-2); margin-bottom: 18px; }
.crumbs a { color: var(--on-dark-2); text-decoration: none; }
.crumbs a:hover { color: #fff; }

.legal { padding: 56px 0 84px; }
.legal__inner { max-width: 800px; }
.legal__intro { font-size: 1.03rem; color: var(--ink-2); }
.legal h2 {
  font-size: 1.4rem; margin-top: 46px; padding-top: 26px; border-top: 1px solid var(--line);
}
.legal h2:first-of-type { border-top: 0; padding-top: 0; }
.legal h3 { font-size: 1.05rem; margin-top: 26px; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul, .legal ol { padding-left: 24px; }
.legal li { margin-bottom: 9px; }
.legal li::marker { color: var(--brand); font-weight: 600; }
.toc {
  background: var(--bg-tint); border: 1px solid var(--line); border-radius: var(--r);
  padding: 24px 28px; margin: 30px 0 8px;
}
.toc h2 {
  font-size: .82rem !important; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand); margin: 0 0 14px !important; padding: 0 !important; border: 0 !important;
}
.toc ol { margin: 0; columns: 2; column-gap: 34px; }
.toc li { margin-bottom: 7px; break-inside: avoid; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.legal__foot {
  margin-top: 52px; padding: 24px 26px; background: var(--brand-light);
  border-radius: var(--r); font-size: .95rem; color: var(--ink-2);
}
.legal__foot p:last-child { margin: 0; }

/* ---------- Поява при скролі ---------- */
/* Ховаємо лише коли JS увімкнено — без нього контент видно одразу */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Адаптив ---------- */
@media (max-width: 1024px) {
  .hero__inner, .cta__grid { grid-template-columns: 1fr; gap: 42px; }
  .hero h1 { max-width: 20ch; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .timeline::before { display: none; }
  .prices { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 56px; }
  .stats div:nth-child(2) { border-right: 0; }
  .stats div:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .12); }
}
@media (max-width: 820px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; display: none;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 18px 20px; box-shadow: var(--shadow);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 10px; }
  .nav a.is-active::after { display: none; }
  .nav .btn { margin: 10px 0 0; }
  .topbar span.hide-sm { display: none; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .section { padding: 62px 0; }
  .hero { padding-top: 56px; }
  .grid--2, .grid--3, .grid--4, .principles, .fit, .timeline { grid-template-columns: 1fr; }
  .principles { gap: 1px; }
  .form { padding: 24px 20px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .toc ol { columns: 1; }
  .stats { grid-template-columns: 1fr; }
  .stats div { border-right: 0 !important; border-bottom: 1px solid rgba(255, 255, 255, .12); padding: 20px 0 22px; }
  .callout { flex-direction: column; gap: 12px; }
}
