/* SMatrix Archetypes — стилі.
   Кольори й шрифти задані один раз нижче (:root) — змінюйте тут, і вони зміняться на всьому сайті. */

/* Layout: одна колонка на телефоні, на комп'ютері — тексти зліва, ілюстрації справа; багато повітря, тонкі лінії. */
:root {
  --bg: #fefdfc;          /* фон сторінки */
  --ink: #3a120c;         /* заголовки */
  --text: #4b2a22;        /* основний текст */
  --muted: #866a60;       /* дрібний текст */
  --line: #e7d9d0;        /* тонкі лінії */
  --accent: #5e3328;      /* кнопки */
  --accent-hover: #4a261c;
  --cream: #f8efe6;       /* світлі блоки */
  --beige: #f4e8dd;       /* картка «Занурення» */
  --dark: #48261b;        /* картка PRO Я */
  --on-dark: #fbf3ec;

  --f-display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --f-body: "Spectral", Georgia, "Times New Roman", serif;

  --gutter: 20px;
  --radius: 14px;
  --sec-pad: clamp(56px, 9vw, 112px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-body);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
/* малюнки «зливаються» з фоном сторінки */
.arch-img img, .ripple img, .program-media img, .final-media img, .hero-media img, .about-media img { mix-blend-mode: multiply; }
.pay-deco, .faq-deco, .sheet-img img { -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 55%, transparent 100%); mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 55%, transparent 100%); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0; font-size: 13px;}
h1, h2, h3 { margin: 0; font-weight: 500; }
em { font-style: italic; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.wrap.narrow { max-width: 760px; }
.center { display: flex; justify-content: center; }
.only-desk { display: none; }

/* ---------- Типографіка ---------- */
.eyebrow {
  font-family: var(--f-body);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 14px;
}
.eyebrow-line { display: flex; align-items: center; gap: 14px; }
.eyebrow-line::after { content: ""; width: 56px; height: 1px; background: var(--line); }

.h2 {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(36px, 9vw, 64px);
  line-height: 1.02;
  letter-spacing: -.01em;
  color: var(--ink);
  text-wrap: balance;
  font-weight:bold;
}
.h2 em { font-weight: 400; }
.h2-xl { font-size: clamp(42px, 11vw, 84px); }
.lead { font-size: 17px; line-height: 1.5; color: var(--text); margin-top: 16px; max-width: 45ch; }
.note { font-size: 14px; color: var(--muted); }
.sub-sans { font-size: 15px; letter-spacing: .02em; color: var(--accent); margin-top: 14px; }
.rule-top { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 22px; }
.short-rule { display: block; width: 64px; height: 1px; background: var(--accent); opacity: .5; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px;
  padding: 12px 32px;
  border-radius: 999px;
  font-family: var(--f-body);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.2;
  transition: background-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; transition: transform .25s var(--ease); }
.btn-primary { background: var(--accent); color: var(--on-dark); box-shadow: 0 8px 22px -12px rgba(72, 38, 27, .55); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn:hover .i-arrow { transform: translate(2px, -2px); }
.btn:hover .i-down { transform: translateY(2px); }
.btn-light { background: var(--on-dark); color: var(--dark); }
.btn-light:hover { background: #fff; }
.btn-block { width: 100%; }
.btn-lg { font-size: 22px; min-height: 60px; padding-inline: 48px; }

.link-down { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--text); }
.link-down svg, .to-top svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.link-down:hover svg { animation: nudge .8s var(--ease) infinite alternate; }
@keyframes nudge { to { transform: translateY(3px); } }

.round-btn {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-grid; place-items: center;
  color: var(--ink); background: var(--bg);
  transition: border-color .2s, background-color .2s, opacity .2s;
}
.round-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.round-btn:hover { border-color: var(--accent); }
.round-btn:disabled { opacity: .35; cursor: default; }

.pill {
  display: inline-block; margin-top: 18px;
  border: 1px solid var(--accent); border-radius: 999px;
  padding: 7px 18px; font-size: 14px; color: var(--ink);
}

/* ---------- Шапка й меню ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--bg); }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(254, 253, 252, 0);
  transition: background-color .3s, box-shadow .3s;
}
.site-header.scrolled { background: rgba(254, 253, 252, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-family: var(--f-display); font-size: 26px; font-weight: 500; color: var(--ink); letter-spacing: -.01em; }
.menu-btn {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-content: center; gap: 4px; background: var(--bg);
  position: relative; z-index: 2;
}
.menu-btn span { display: block; width: 14px; height: 1.3px; background: var(--ink); transition: transform .3s var(--ease); }
.menu-open .menu-btn span:first-child { transform: translateY(2.6px) rotate(45deg); }
.menu-open .menu-btn span:last-child { transform: translateY(-2.6px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--bg);
  padding-top: calc(env(safe-area-inset-top, 0px) + 88px);
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
  overflow-y: auto;
}
.menu-open .menu { opacity: 1; visibility: visible; }
.menu-inner { display: flex; flex-direction: column; gap: 6px; }
.menu-inner a:not(.btn) {
  font-family: var(--f-display); font-size: 34px; color: var(--ink); line-height: 1.2;
  padding: 6px 0; border-bottom: 1px solid var(--line);
  transform: translateY(12px); opacity: 0; transition: transform .45s var(--ease), opacity .45s var(--ease);
}
.menu-open .menu-inner a:not(.btn) { transform: none; opacity: 1; }
.menu-inner a:nth-child(2) { transition-delay: .03s; } .menu-inner a:nth-child(3) { transition-delay: .06s; }
.menu-inner a:nth-child(4) { transition-delay: .09s; } .menu-inner a:nth-child(5) { transition-delay: .12s; }
.menu-inner a:nth-child(6) { transition-delay: .15s; } .menu-inner a:nth-child(7) { transition-delay: .18s; }
.menu-inner .btn { margin-top: 28px; align-self: flex-start; }
body.menu-open { overflow: hidden; }

/* ---------- Головний екран ---------- */
.hero { padding-top: 8px; }
.hero-grid { display: grid; grid-template-areas: "brand" "media" "copy"; }
.hero-brand { grid-area: brand; }
.hero-kicker { font-family: var(--f-display); font-size: 26px; color: var(--ink); line-height: 1;     font-style: italic;}
.hero-title {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(56px, 16vw, 112px); line-height: .9; letter-spacing: -.025em;
  color: var(--ink); margin-top: 2px;
}
.hero-sub { font-size: 13px; letter-spacing: .14em; color: var(--text); margin-top: 12px; }
.hero-media { grid-area: media; position: relative; margin: 18px -8px 0; }
.hero-media img { width: 100%; max-width: 520px; margin: 0 auto; }
.hero-media::after { /* м'яке розчинення низу фото */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 34%;
  background: linear-gradient(to bottom, rgba(254,253,252,0), var(--bg) 88%);
  pointer-events: none;
}
.hero-copy { grid-area: copy; display: flex; flex-direction: column; align-items: center; text-align: center; margin-top: -84px; position: relative; z-index: 1; gap: 14px; }
.hero-lead { font-family: var(--f-display); font-size: clamp(34px, 9vw, 52px); line-height: 1.08; color: var(--ink); font-weight: 500; }
.hero-lead em { font-weight: 400; }
.hero-date { font-size: 14px; letter-spacing: .14em; color: var(--text); }
.hero-date .d-long { display: none; }
.hero-copy .btn { width: 100%; max-width: 380px; margin-top: 6px; }
.hero-nav { display: none; }

/* ---------- Секції ---------- */
.section { padding-block: var(--sec-pad); position: relative; }
.section-line > .wrap { position: relative; }
.section-line::before {
  content: ""; top: 0; height: 1px; background: var(--line);
  left: max(var(--gutter), env(safe-area-inset-left, 0px)); right: max(var(--gutter), env(safe-area-inset-right, 0px));
  max-width: 1120px; margin: 0 auto;
}
.band-cream { background: var(--cream); }

/* 01 Архетипи */
.sec-head { display: flex; justify-content: space-between; gap: 24px; }
.sec-head .note { margin-top: 10px; }
.aside-italic { display: none; font-family: var(--f-display); font-style: italic; font-size: 20px; color: var(--accent); white-space: nowrap; }

.carousel { margin-top: 28px; }
.carousel-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 44%;
  gap: 14px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none;
  margin-inline: calc(-1 * max(var(--gutter), env(safe-area-inset-left, 0px)));
  padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px));
  scroll-padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px));
  outline-offset: -2px;
}
.carousel-track::-webkit-scrollbar { display: none; }
.arch {
  scroll-snap-align: start;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding-bottom: 6px;
  cursor: pointer;
}
.arch-img { width: 100%; aspect-ratio: 1 / 1.1; max-width: 100%; display: grid; place-items: end center; overflow: hidden; }
.arch-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .7s var(--ease); }
.arch:hover .arch-img img, .arch:focus-visible .arch-img img { transform: scale(1.04) translateY(-4px); }
.arch-ph { /* заглушка, поки немає малюнка */
  width: 72%; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; margin-bottom: 10%;
  font-family: var(--f-display); font-style: italic; font-size: 28px; color: var(--muted);
  background: radial-gradient(circle, var(--cream) 0%, var(--bg) 70%);
}
.arch-name { font-family: var(--f-display); font-size: 22px; color: var(--ink); margin-top: 10px; line-height: 1.1; }
.arch-animal { font-size: 13px; color: var(--muted); }

.carousel-bar { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; gap: 16px; }
.carousel-count { font-size: 13px; letter-spacing: .08em; color: var(--text); display: flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.carousel-count .c-range { display: none; }
.c-line { display: inline-block; position: relative; width: 64px; height: 1px; background: var(--line); margin-left: 14px; }
.c-line b { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); width: 0; transition: width .4s var(--ease); }
.carousel-arrows { display: flex; gap: 10px; }
.carousel-hint { font-size: 13px; font-style: italic; color: var(--muted); margin-top: 10px; }

/* 02 Метод */
.method-grid { display: grid; grid-template-areas: "eyebrow" "copy" "media"; }
.method-eyebrow { grid-area: eyebrow; }
.method-copy { grid-area: copy; }
.method-copy .h2 { margin-bottom: 18px; }
.method-copy p:not(.note) { margin-top: 10px; max-width: 46ch; }
.method-media { grid-area: media; margin: 28px 0 0; text-align: center; }
.method-media figcaption { font-size: 14px; color: var(--text); margin-top: 6px; }
.ripple { position: relative; max-width: 420px; margin: 0 auto; }
.ripple img { width: 100%; animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.03); } }
.ring {
  position: absolute; left: 50%; top: 68%; width: 20%; aspect-ratio: 3.6 / 1;
  border: 1px solid rgba(94, 51, 40, .35); border-radius: 50%;
  transform: translate(-50%, -50%) scale(.2); opacity: 0;
  animation: ripple 6s ease-out infinite;
}
.ring.r2 { animation-delay: 2s; } .ring.r3 { animation-delay: 4s; }
@keyframes ripple { 0% { transform: translate(-50%, -50%) scale(.2); opacity: .9; } 100% { transform: translate(-50%, -50%) scale(4.6); opacity: 0; } }

/* 03 Шлях */
.band-cream .h2 { margin-bottom: 28px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; position: relative; }
.steps li { display: grid; grid-template-columns: 52px 1fr; position: relative; }
.steps::before { content: ""; position: absolute; left: 4px; top: 10px; bottom: 30px; width: 1px; background: var(--line); }
.step-n { font-size: 14px; color: var(--ink); position: relative; padding-left: 22px; line-height: 1.6; }
.step-n::before { content: ""; position: absolute; left: 0; top: 7px; width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--accent); background: var(--cream); }
.steps h3 { font-family: var(--f-display); font-size: 22px; color: var(--ink); line-height: 1.15; }
.steps p { font-size: 14px; color: var(--text); margin-top: 4px; max-width: 34ch; }
.band-cream .center { margin-top: 34px; }
.band-cream .center .btn { width: 100%; max-width: 380px; }

/* 04 Програма */
.program-grid { display: grid; grid-template-columns: 1fr 38%; grid-template-areas: "head media" "acc acc"; column-gap: 12px; }
.program-head { grid-area: head; align-self: start; }
.program-head .h2-xl { font-size: clamp(40px, 11vw, 84px); }
.program-media { grid-area: media; }
.program-media img { width: 100%; max-height: 340px; object-fit: contain; object-position: top; }
.program-acc { grid-area: acc; margin-top: 18px; }

/* Акордеон (програма і питання) */
.acc-item { border-bottom: 1px solid var(--line); }
.acc-btn { width: 100%; display: flex; align-items: center; gap: 18px; text-align: left; padding: 15px 2px; min-height: 52px; }
.acc-n { font-size: 15px; color: var(--accent); width: 26px; flex: none; font-variant-numeric: tabular-nums; }
.acc-title { flex: 1; min-width: 0; font-family: var(--f-display);    font-weight: bold; font-size: 21px; color: var(--ink); line-height: 1.2; }
.acc-plus { position: relative; width: 16px; height: 16px; flex: none; }
.acc-plus::before, .acc-plus::after, .acc-circle::before, .acc-circle::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 1.2px; background: currentColor;
  transform: translate(-50%, -50%); transition: transform .35s var(--ease), opacity .35s;
}
.acc-plus, .acc-circle { color: var(--accent); }
.acc-plus::after, .acc-circle::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc-item.open .acc-plus::after, .acc-item.open .acc-circle::after { transform: translate(-50%, -50%) rotate(0deg); opacity: 0; }
.acc-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.acc-body > div { overflow: hidden; }
.acc-body p { padding: 0 34px 18px 44px; color: var(--text); font-size: 15px; max-width: 60ch; opacity: 0; transform: translateY(-6px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.acc-item.open .acc-body { grid-template-rows: 1fr; }
.acc-item.open .acc-body p { opacity: 1; transform: none; transition-delay: .08s; }

.faq { margin-top: 26px; }
.faq .acc-btn { padding: 16px 18px; }
.faq .acc-title { font-size: 20px; }
.acc-circle { position: relative; width: 34px; height: 34px; flex: none; border-radius: 50%; border: 1px solid var(--accent); transition: background-color .3s, color .3s; }
.acc-circle::before, .acc-circle::after { width: 12px; }
.faq .acc-item.open { background: var(--cream); border-radius: var(--radius); border-bottom-color: transparent; }
.faq .acc-item.open .acc-circle { background: var(--accent); color: var(--on-dark); }
.faq .acc-body p { padding: 0 18px 20px; }
.faq .acc-item { transition: background-color .35s; }

/* 05 Формат */
.facts { display: grid; margin-top: 22px; }
.facts > div { padding-block: 14px; border-bottom: 1px solid var(--line); }
.facts h3 { font-family: var(--f-display); font-size: 26px; color: var(--ink); line-height: 1.1; }
.facts p { font-size: 14px; color: var(--text); margin-top: 2px; }
#format .rule-top { border-top: 0; margin-top: 8px; padding-top: 8px; }

/* 06 Для кого */
.cap-mob { text-transform: uppercase; }
.for-list { list-style: none; padding: 0; margin: 20px 0 14px; }
.for-list li { font-family: var(--f-display); font-size: 21px; color: var(--ink); padding-block: 10px; border-bottom: 1px solid var(--line); line-height: 1.25; }

/* 07 Про мене */
.about-grid { display: grid; grid-template-areas: "head" "media" "copy"; }
.about-media { grid-area: media; margin: 22px auto 0; max-width: 420px; }
.about-copy { grid-area: copy; margin-top: 18px; }
.about-copy .short-rule { display: none; }
.about-copy > p { font-size: 17px; max-width: 42ch; }
.stats { margin: 20px 0 0; }
.stats > div { display: grid; grid-template-columns: 112px 1fr; align-items: center; gap: 18px; padding-block: 10px; border-bottom: 1px solid var(--line); }
.stats dt { font-family: var(--f-display); font-size: 34px; color: var(--ink); line-height: 1; white-space: nowrap; font-variant-numeric: tabular-nums; }
.stats dd { margin: 0; font-size: 14px; color: var(--text); border-left: 1px solid var(--line); padding-left: 18px; line-height: 1.35; }

/* 08 Тарифи */
#tariffs .h2 { margin-bottom: 28px; }
.plans { display: grid; gap: 18px; }
.plan {
  position: relative;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 22px 22px;
  background: var(--bg);
  display: flex; flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.plan:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -28px rgba(72, 38, 27, .45); }
.plan-beige { background: var(--beige); border-color: #ead9cb; }
.plan-dark { background: var(--dark); border-color: var(--dark); color: var(--on-dark); }
.plan-tag { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); }
.plan-dark .plan-tag { color: var(--on-dark); opacity: .85; }
.plan-icon { position: absolute; top: 18px; right: 18px; width: 52px; height: 52px; fill: none; stroke: var(--ink); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.plan-dark .plan-icon { stroke: var(--on-dark); }
.plan-icon .dot { fill: var(--on-dark); }
.plan-name { font-family: var(--f-display); font-size: 40px; color: var(--ink); line-height: 1; margin-top: 18px; }
.plan-dark .plan-name { color: var(--on-dark); }
.plan-motto { font-family: var(--f-display); font-style: italic; font-size: 20px; margin-top: 6px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.plan-dark .plan-motto { border-color: rgba(251, 243, 236, .3); }
.plan-price { padding-block: 16px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.plan-dark .plan-price { border-color: rgba(251, 243, 236, .3); }
.plan-price s { font-family: var(--f-display); font-size: 26px; color: var(--muted); line-height: 1; text-decoration-thickness: 1px; }
.plan-price strong { font-family: var(--f-display); font-weight: 500; font-size: 60px; line-height: 1; color: var(--ink); letter-spacing: -.02em; }
.plan-dark .plan-price strong { color: var(--on-dark); margin-top: 8px; }
.plan-price span { font-size: 17px; margin-top: 6px; }
.checks { list-style: none; padding: 0; margin: 16px 0 20px; display: grid; gap: 8px; flex: 1; }
.checks li { position: relative; padding-left: 28px; font-size: 15px; line-height: 1.4; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 4px; width: 11px; height: 6px; border-left: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(-45deg); }
.seats { align-self: flex-start; border: 1px solid rgba(251, 243, 236, .7); border-radius: 999px; padding: 6px 16px; font-size: 14px; margin: -6px 0 16px; }

.bonus { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; background: var(--cream); border-radius: var(--radius); padding: 18px 20px; margin-top: 25px; }
.bonus .bonus-date { font-family: var(--f-display); font-size: 44px; color: var(--ink); line-height: 1; padding-right: 18px; border-right: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.bonus h3 { font-family: var(--f-display); font-size: 20px; color: var(--ink); line-height: 1.15; }
.bonus p { font-size: 12px; margin-top: 10px; }
.bonus .note { font-size: 13px; }

/* 09 Оплата */
.pay-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.pay-head .h2 { font-size: clamp(34px, 8.5vw, 60px); }
.pay-deco { width: 120px; flex: none; margin-top: 10px; mix-blend-mode: multiply; }
.faq-deco { width: 92px; flex: none; mix-blend-mode: multiply; }
.pay-label { font-size: 16px; font-weight: 500; color: var(--ink); margin-top: 26px; }
.seg {
  position: relative; display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid #d9bfb3; border-radius: 999px; padding: 4px; margin-top: 10px;
}
.seg button { position: relative; z-index: 1; min-height: 44px; border-radius: 999px; font-size: 16px; color: var(--ink); transition: color .35s var(--ease); }
.seg button[aria-selected="true"] { color: var(--on-dark); }
.seg-thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 3);
  background: var(--accent); border-radius: 999px;
  transition: transform .45s var(--ease);
}
.pay-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; margin-top: 18px; }
.pay-name { font-family: var(--f-display); font-size: 40px; color: var(--ink); line-height: 1; }
.pay-total-label { font-size: 13px; color: var(--text); margin-top: 8px; }
.pay-total { font-family: var(--f-display); font-size: 52px; color: var(--ink); line-height: 1; margin-top: 2px; font-variant-numeric: tabular-nums; }
.pay-steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 22px; position: relative; }
.pay-steps::before { content: ""; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 1px; background: #dcbfb2; }
.pay-steps li { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 14px; }
.pay-dot { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #d8b8aa; background: var(--cream); display: grid; place-items: center; font-size: 14px; color: var(--ink); position: relative; z-index: 1; }
.pay-when { font-size: 14px; color: var(--ink); }
.pay-amt { font-family: var(--f-display); font-size: 30px; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.pay-sum { font-size: 13px; color: var(--muted); text-align: center; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.pay-steps.swap li { animation: swapIn .5s var(--ease) both; }
.pay-steps.swap li:nth-child(2) { animation-delay: .06s; } .pay-steps.swap li:nth-child(3) { animation-delay: .12s; } .pay-steps.swap li:nth-child(4) { animation-delay: .18s; }
.swap-text { animation: swapIn .45s var(--ease) both; }
@keyframes swapIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.pay-warn { background: var(--cream); border-radius: var(--radius); padding: 20px 22px; margin-top: 18px; }
.pay-warn h3 {     font-family: var(--f-body);
    font-weight: 500;
    font-size: 18px;
    color: var(--ink);
    margin-bottom: 10px;
    border: 1px white solid;
    border-radius: 10px;
    padding: 5px 10px; }
.pay-warn p { font-size: 15px; margin-top: 6px; }
.pay-warn strong { font-weight: 500; color: var(--ink); }

/* Фінал */
.final-grid { display: grid; grid-template-areas: "copy" "media" "cta"; }
.final-title { font-family: var(--f-display); font-weight: 500; font-size: clamp(44px, 12vw, 92px); line-height: 1; color: var(--ink); letter-spacing: -.015em; }
.final-title em { font-weight: 400; }
.final-sub { font-family: var(--f-display); font-size: clamp(24px, 6vw, 34px); color: var(--accent); margin-top: 10px; line-height: 1.15; }
.final-media { grid-area: media; margin: 4px 0 0; position: relative; }
.final-media img { width: 100%; max-width: 480px; margin-left: auto; }
.final-media figcaption { position: absolute; right: 4px; bottom: 6%; font-size: 13px; color: var(--muted); }
.final-cta { grid-area: cta; display: flex; flex-direction: column; gap: 14px; }
.final-date { font-family: var(--f-display); font-size: 26px; color: var(--ink); }
.final-cta .btn { width: 100%; }
.final-cta .note { text-align: center; }

/* Підвал */
.footer { padding-block: 0 calc(96px + env(safe-area-inset-bottom, 0px)); }
.footer-row { display: grid; grid-template-columns: 1fr auto; gap: 8px 20px; border-top: 1px solid var(--line); padding-top: 22px; }
.footer-brand { font-family: var(--f-display); font-size: 22px; color: var(--ink); grid-column: 1; }
.footer-links { grid-column: 1; display: flex; flex-direction: column; font-size: 15px; }
.footer-links a:hover, .to-top:hover { color: var(--accent); }
.to-top { grid-column: 2; grid-row: 1 / span 2; align-self: center; display: inline-flex; gap: 8px; align-items: center; font-size: 16px; }
.footer-bottom { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); margin-top: 22px; }

/* Плаваюча кнопка (тільки телефон) */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 10px max(var(--gutter), env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(var(--gutter), env(safe-area-inset-left, 0px));
  background: linear-gradient(to top, var(--bg) 60%, rgba(254,253,252,0));
  transform: translateY(110%); transition: transform .45s var(--ease);
}
.sticky-cta.show { transform: none; }

/* Вікно архетипу */
.sheet { position: fixed; inset: 0; z-index: 70; visibility: hidden; }
.sheet.open { visibility: visible; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(58, 18, 12, .35); opacity: 0; transition: opacity .35s; }
.sheet.open .sheet-backdrop { opacity: 1; }
.sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: var(--bg); border-radius: 22px 22px 0 0;
  padding: 26px max(22px, env(safe-area-inset-right, 0px)) calc(22px + env(safe-area-inset-bottom, 0px)) max(22px, env(safe-area-inset-left, 0px));
  max-height: 88vh; overflow-y: auto;
  transform: translateY(100%); transition: transform .45s var(--ease);
  text-align: center;
}
.sheet.open .sheet-panel { transform: none; }
.sheet-close { position: absolute; top: 14px; right: max(14px, env(safe-area-inset-right, 0px)); }
.sheet-img { width: 170px; margin: 0 auto 10px; }
.sheet-img img { width: 100%; mix-blend-mode: multiply; }
.sheet-img .arch-ph { width: 120px; margin: 10px auto 18px; }
.sheet .eyebrow { margin-bottom: 4px; }
.sheet-name { font-family: var(--f-display); font-size: 40px; color: var(--ink); line-height: 1; }
.sheet-animal { color: var(--muted); font-size: 15px; margin-top: 4px; }
.sheet-text { font-size: 16px; margin: 16px auto 22px; max-width: 42ch; text-align: left; }

/* ---------- Анімація появи ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .hero-brand, .js .hero-media, .js .hero-copy > *, .js .hero-nav { animation: heroIn 1.1s var(--ease) both; }
.js .hero-media { animation-name: heroImg; animation-duration: 1.6s; animation-delay: .15s; }
.js .hero-copy > *:nth-child(1) { animation-delay: .35s; } .js .hero-copy > *:nth-child(2) { animation-delay: .5s; }
.js .hero-copy > *:nth-child(3) { animation-delay: .62s; } .js .hero-copy > *:nth-child(4) { animation-delay: .74s; }
.js .hero-nav { animation-delay: .9s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes heroImg { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }

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

/* ============ Планшет ============ */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .carousel-track { grid-auto-columns: 30%; gap: 20px; }
  .plans { grid-template-columns: 1fr 1fr; }
  .plan-dark { grid-column: 1 / -1; }
  .facts { grid-template-columns: repeat(3, 1fr); }
  .facts > div { border-bottom: 0; border-left: 1px solid var(--line); padding: 4px 22px; }
  .facts > div:first-child { border-left: 0; padding-left: 0; }
  .for-list { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 26px; }
  .for-list li { border-bottom: 0; border-left: 1px solid var(--line); padding: 2px 22px; }
  .for-list li:first-child { border-left: 0; padding-left: 0; }
  .pay-deco { width: 170px; }
  .faq-deco { width: 120px; }
}

/* ============ Комп'ютер ============ */
@media (min-width: 960px) {
  .only-desk { display: initial; }
  .cap-mob { text-transform: none; }
  .header-inner { height: 76px; }
  .logo { font-size: 30px; }
  .menu-btn { width: 44px; height: 44px; }

  .hero { padding-top: 0; }
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "brand media" "copy media";
    grid-template-rows: auto 1fr;
    column-gap: 24px;
    padding-left: max(var(--gutter), 9%);
  }
  .hero-brand { padding-top: 92px; }
  .hero-media { margin: 0; }
  .hero-media::after { height: 22%; }
  .hero-copy { margin-top: 64px; align-items: flex-start; text-align: left; gap: 18px; }
  .hero-date { letter-spacing: 0; font-size: 18px; margin-top: 40px; }
  .hero-date .d-long { display: inline; } .hero-date .d-short { display: none; }
  .hero-copy .btn { width: auto; margin-top: 0; }
  .hero-nav { display: flex; justify-content: center; align-items: center; gap: 26px; font-size: 14px; color: var(--text); margin-top: 36px; position: relative; }
  .hero-nav a:hover { color: var(--accent); }
  .hero-nav i { width: 28px; height: 1px; background: var(--line); }

  .aside-italic { display: block; margin-top: 30px; }
  .lead { font-size: 18px; }
  .carousel-track { grid-auto-columns: calc((100% - 40px) / 3); margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; gap: 20px; }
  .arch-img { aspect-ratio: 1 / .9; }
  .arch-img img { width: 76%; }
  .arch-name { font-size: 26px; }
  .carousel-count .c-range { display: inline; }
  .carousel-arrows .round-btn { width: 52px; height: 52px; }
  .carousel-hint { display: none; }

  .method-grid { grid-template-columns: 1fr 1fr; grid-template-areas: "eyebrow eyebrow" "media copy"; column-gap: 56px; align-items: center; }
  .method-media { margin: 0; }
  .method-copy p:not(.note) { font-size: 18px; }
  .method-copy .h2 { font-size: clamp(40px, 4.2vw, 56px); }

  .band-cream .h2 { margin-bottom: 40px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .steps::before { display: none; }
  .steps li { grid-template-columns: 56px 1fr; gap: 20px; padding-right: 24px; }
  .steps li + li { border-left: 1px solid var(--line); padding-left: 28px; }
  .steps li > div { border-left: 1px solid var(--line); padding-left: 22px; }
  .step-n { font-size: 20px; padding-left: 0; }
  .step-n::before { display: none; }
  .steps h3 { font-size: 24px; }
  .band-cream .center .btn { width: auto; padding-inline: 40px; }

  .program-grid { grid-template-columns: 1.6fr 1fr; grid-template-areas: "head media" "acc media"; column-gap: 40px; }
  .program-media { align-self: center; }
  .program-media img { max-height: 640px; }
  .program-acc { margin-top: 30px; border-top: 1px solid var(--line); }
  .acc-btn { padding-block: 20px; }
  .acc-title { font-size: 25px; }
  .acc-n { font-size: 18px; width: 40px; }
  .acc-body p { padding-left: 58px; font-size: 16px; }

  .facts h3 { font-size: 32px; }
  .facts p { font-size: 16px; }

  .for-list li { font-size: 24px; }

  .about-grid { grid-template-columns: 1fr 1fr; grid-template-areas: "media head" "media copy"; grid-template-rows: auto 1fr; column-gap: 56px; }
  .about-head { padding-top: 40px; }
  .about-head .h2-xl { font-size: clamp(48px, 5.4vw, 76px); }
  .about-media { margin: 0; max-width: none; }
  .about-copy { margin-top: 0; }
  .about-copy .short-rule { display: block; margin: 24px 0; }
  .about-copy > p { font-size: 15px; }
  .stats > div { grid-template-columns: 170px 1fr; border-bottom: 0; padding-block: 12px; }
  .stats dt { font-size: 48px; }
  .stats dd { font-size: 17px; }

  .plans { grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
  .plan-dark { grid-column: auto; }
  .plan { padding: 30px 28px 28px; }
  .plan-name { font-size: 46px; }
  .plan-price strong { font-size: 72px; }
  .bonus { padding: 22px 32px; gap: 32px; }
  .bonus .bonus-date { font-size: 62px; padding-right: 32px; }
  .bonus h3 { font-size: 26px; }
  .bonus p { font-size: 16px; }

  .pay-card { padding: 30px 32px; }
  .pay-steps { grid-template-columns: repeat(var(--n, 3), 1fr); gap: 0; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
  .pay-steps::before { left: calc(50% / var(--n, 3)); right: calc(50% / var(--n, 3)); top: 42px; bottom: auto; width: auto; height: 1px; }
  .pay-steps li { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 10px; }
  .pay-dot { width: 44px; height: 44px; }
  .pay-when { font-size: 16px; margin-top: 6px; }
  .pay-amt { font-size: 36px; }

  .faq .acc-title { font-size: 23px; }

  .final-grid { grid-template-columns: 1.05fr 1fr; grid-template-areas: "copy media" "cta media"; grid-template-rows: auto 1fr; column-gap: 24px; align-items: start; }
  .final-media { margin: 0; }
  .final-title { font-size: clamp(56px, 5.8vw, 82px); }
  .final-cta { margin-top: 28px; gap: 18px; }
  .final-cta .btn { width: auto; align-self: flex-start; min-width: 380px; }
  .final-cta .note { text-align: left; }

  .footer { padding-bottom: 40px; }
  .footer-row { grid-template-columns: auto 1fr auto; align-items: center; padding-top: 28px; }
  .footer-brand { border-right: 1px solid var(--line); padding-right: 40px; }
  .footer-links { grid-column: 2; flex-direction: row; gap: 40px; justify-content: center; font-size: 17px; }
  .to-top { grid-column: 3; grid-row: 1; border-left: 1px solid var(--line); padding-left: 40px; }
  .footer-bottom { flex-direction: row; justify-content: space-between; }

  .sticky-cta { display: none; }

  .sheet-panel { left: 50%; right: auto; bottom: 50%; width: min(520px, 92vw); border-radius: 22px; transform: translate(-50%, 60%); opacity: 0; transition: transform .45s var(--ease), opacity .35s; padding: 34px; }
  .sheet.open .sheet-panel { transform: translate(-50%, 50%); opacity: 1; }
}
