/* Labgramm — прототип v2 (/v2/). Лягає поверх styles.css: звідти токени, шапка, кнопки, форма, FAQ.
   Принцип: один екран — одна думка. Величезний заголовок, одне речення, один візуал.
   Єдиний фірмовий прийом — зелена «рукописна» петля навколо одного слова й лінія, що малюється.
   Ритм тем: темний → кремовий → темний… і зелений лише на офері. */

.v2 {
  --fs-mega: clamp(44px, min(9vw, 15.5vh), 148px);
  --fs-mega-2: clamp(34px, 6.4vw, 100px);
  --fs-mega-3: clamp(28px, 4.2vw, 60px);
  --mark: #4ae042;          /* колір петлі та ліній */
  --ink: #0c0d0c;           /* чорнило для товстих обведень і тіней на кремовому */
}
.v2 .theme-dark { --mark: #4ae042; }
.v2 .theme-accent { --mark: #0c0d0c; }
/* кремова тема: як у референсу — тепле світле тло, чорний текст, зелений лише на штрихах */
.theme-cream {
  --bg: #ebe9df; --surface: #f6f5ef; --surface-2: #dedcd0;
  --line: rgba(12,13,12,.12); --line-strong: rgba(12,13,12,.26);
  --text: #0c0d0c; --muted: #454a46; --faint: #5d625e;
  --accent: #1f7a3d; --accent-dim: rgba(31,122,61,.12);
  --bad: #c2412f; --bad-dim: rgba(194,65,47,.14); --warn: #a87400;
  --cta: #0c0d0c; --cta-hover: #262a27; --on-cta: #4ae042;
  --mark: #3fd437;
  background: var(--bg); color: var(--text);
}

/* шапка: лише лого і CTA */
.v2 .site-header { background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom-color: transparent; }

/* ---------- екран ---------- */
.v-scr { position: relative; padding: clamp(88px, 12vw, 168px) 0; overflow-x: clip; border: 0; }
.v-center { text-align: center; }
.v-center .eyebrow { justify-content: center; }
/* мітка над заголовком: поруч із мега-заголовком 12px сірим губилася, тож це «чип» — більший кегль, повний колір, рамка */
.v-scr .eyebrow {
  font-size: clamp(13px, 1.05vw, 15px); font-weight: 600; letter-spacing: .12em;
  color: var(--text);
  padding: 9px 16px 9px 13px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: color-mix(in srgb, var(--text) 4%, transparent);
}
.v-scr .eyebrow::before { width: 9px; height: 9px; border: 0; background: var(--mark); box-shadow: none; }
.v-scr .eyebrow + .v-mega { margin-top: var(--s5); }

.v-mega {
  font-size: var(--fs-mega-2); font-weight: 800; line-height: .94; letter-spacing: -0.045em;
  text-transform: uppercase; text-wrap: balance;
}
.v-mega.is-1 { font-size: var(--fs-mega); line-height: .9; }
.v-mega.is-3 { font-size: var(--fs-mega-3); line-height: 1; }
.v-ln { display: block; }
.v-lead { margin: var(--s6) auto 0; max-width: 620px; font-size: var(--fs-lead); line-height: 1.5; color: var(--muted); }
.v-center .v-lead { text-wrap: balance; }
.v-note { margin-top: var(--s7); font-size: var(--fs-small); color: var(--muted); }
.v-cta { margin-top: var(--s7); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4) var(--s6); }
.v-center.v-cta, .v-center .v-cta { justify-content: center; }
.v-btn-xl { min-height: 64px; padding: 0 var(--s7); font-size: 17px; border-radius: 999px; }
.v-link { color: var(--text); font-weight: 600; text-decoration: none; border-bottom: 1.5px solid var(--mark); padding-bottom: 2px; transition: border-color .2s, color .2s; }
.v-link:hover { border-bottom-color: var(--text); }

/* ---------- рукописна петля навколо слова ---------- */
.v-mark { position: relative; display: inline-block; white-space: nowrap; z-index: 0; }
.v-mark-svg { position: absolute; left: -5%; top: -14%; width: 110%; height: 128%; overflow: visible; pointer-events: none; z-index: -1; }
.v-mark-svg path { fill: none; stroke: var(--mark); stroke-width: max(3px, .045em); stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }

/* загальний штрих, що малюється (айсберг, міні-графіки) */
.v-draw { fill: none; stroke: var(--mark); stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; }

/* ---------- 1. Перший екран ---------- */
.v-hero.hero { padding: clamp(40px, 7vh, 88px) 0 clamp(56px, 9vh, 104px); min-height: calc(100svh - var(--header-h)); display: flex; flex-direction: column; justify-content: center; }
.v-hero .v-mega { margin-top: var(--s5); }
.v-pulse { position: relative; margin: clamp(16px, 3vh, 40px) 0 0; height: clamp(110px, 20vh, 220px); }
.v-pulse-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.v-pulse-svg path { fill: none; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.v-pulse-base { stroke: var(--line-strong); stroke-width: 1.5; }
.v-pulse-line { stroke: var(--mark); stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 0; }
.v-pulse-dot { position: absolute; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; border: 3px solid var(--bg); }
.v-pulse-dot.is-bad { background: var(--bad); box-shadow: 0 0 0 6px var(--bad-dim); }
.v-pulse-dot.is-good { background: var(--mark); box-shadow: 0 0 0 6px var(--accent-dim); }
.v-pulse-legend { margin-top: var(--s4); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2) var(--s6); font-size: var(--fs-small); color: var(--muted); }
.v-pulse-legend li { display: block; }
.v-pulse-legend li::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: var(--s2); border-radius: 50%; vertical-align: 1px; }
.v-pulse-legend b { white-space: nowrap; }
.v-pulse-legend .is-bad::before { background: var(--bad); }
.v-pulse-legend .is-good::before { background: var(--mark); }
.v-pulse-legend b { color: var(--text); font-weight: 600; }
/* дашборд системи під заголовком: напівтемний, донизу розчиняється в тло, текст лягає на згасання */
.v-stage { position: relative; margin-top: clamp(24px, 4.5vh, 56px); }
.v-dash { position: relative; width: min(1120px, calc(100% - 2 * var(--gutter))); height: clamp(190px, 34vh, 400px); margin: 0 auto; overflow: hidden; background: var(--surface); border: 1px solid var(--line-strong); border-bottom: 0; border-radius: 14px 14px 0 0; -webkit-mask-image: linear-gradient(to bottom, #000 15%, transparent 96%); mask-image: linear-gradient(to bottom, #000 15%, transparent 96%); }
.v-dash img { display: block; width: 100%; min-width: 760px; height: auto; opacity: .46; }
.v-stage + .wrap { position: relative; margin-top: calc(-1 * clamp(12px, 3vh, 36px)); }
/* лінія лягає поверх дашборда, ближче до його згасання */
.v-stage .v-pulse { position: absolute; left: 0; right: 0; bottom: 14%; margin: 0; }
.v-hero .v-lead { margin-top: var(--s5); }
.v-hero .v-cta { margin-top: var(--s6); }

/* ---------- 2. Айсберг ---------- */
.v-berg { position: relative; margin: var(--s8) auto 0; max-width: 980px; aspect-ratio: 1000 / 560; }
.v-berg svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.v-berg-ice { fill: var(--surface); stroke: var(--text); stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
/* вода на всю ширину екрана і світлішає донизу — без видимих країв */
.v-water-a { stop-color: var(--text); stop-opacity: .08; }
.v-water-b { stop-color: var(--text); stop-opacity: 0; }
.v-berg-wave { fill: none; stroke: var(--text); stroke-width: 2; vector-effect: non-scaling-stroke; }
.v-berg-dive, .v-berg-loop { stroke-width: 4; }
.v-berg-l { position: absolute; transform: translate(-50%, -50%); font-size: clamp(13px, 1.8vw, 22px); font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; white-space: nowrap; }
.v-berg-l.is-top { transform: translate(0, -50%); display: grid; gap: 2px; }
.v-berg-l.is-top b { font-weight: 800; }
.v-berg-l.is-top, .v-berg-l.is-note, .v-berg-l.is-tag { font-family: var(--mono); font-size: clamp(10px, 1.1vw, 13px); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.v-berg-l.is-top b { font-family: var(--font); font-size: clamp(13px, 1.8vw, 22px); letter-spacing: -0.02em; color: var(--text); }
.v-berg-l.is-note { transform: none; }
.v-berg-l.is-tag { color: var(--text); }

/* ---------- 3. Кейси ---------- */
.v-cases { margin-top: var(--s8); border-top: 1.5px solid var(--line-strong); }
.v-case { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s5) var(--s8); padding: var(--s7) 0; border-bottom: 1.5px solid var(--line-strong); align-items: start; }
.v-case-num { display: grid; gap: var(--s3); }
.v-case-k { font-family: var(--mono); font-size: var(--fs-micro); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.v-case-num b { font-size: clamp(44px, 6.6vw, 104px); font-weight: 800; line-height: .95; letter-spacing: -0.045em; white-space: nowrap; }
.v-case-num b i { font-style: normal; color: var(--mark); }
.v-case-num b small { font-size: .42em; letter-spacing: -0.02em; color: var(--muted); }
.v-spark { width: 120px; height: 48px; }
.v-spark .v-draw { stroke-width: 3; }
.v-case-who { font-weight: 700; font-size: 18px; letter-spacing: -0.01em; }
.v-case dl { margin: var(--s4) 0 var(--s5); display: grid; grid-template-columns: auto 1fr; gap: var(--s2) var(--s4); }
.v-case dt { font-family: var(--mono); font-size: var(--fs-micro); letter-spacing: .06em; text-transform: uppercase; color: var(--faint); padding-top: 4px; }
.v-case dd { margin: 0; color: var(--muted); }

/* ---------- 4. Видимість ---------- */
.v-screen { position: relative; margin: var(--s8) auto 0; max-width: 1040px; }
.v-screen-frame { border-radius: 18px; overflow: hidden; border: 2.5px solid var(--text); background: var(--surface); box-shadow: 14px 14px 0 var(--text); }
.v-screen-bar { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 2px solid var(--text); background: var(--surface); }
.v-screen-bar i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--text); }
.v-screen img { width: 100%; height: auto; }
.v-alerts { position: absolute; left: clamp(-24px, -2vw, 0px); bottom: -28px; display: grid; gap: var(--s2); }
/* чипи завжди темні, тож кольори подій беремо з темної палітри */
.v-alerts { --a-bad: #ff8a7a; --a-good: #4ae042; --a-warn: #f5c451; }
.v-alerts li { display: inline-flex; align-items: center; gap: var(--s2); justify-self: start; padding: 10px 16px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 14px; box-shadow: 0 10px 30px -12px rgba(12,13,12,.5); }
.v-alerts li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; flex: none; }
.v-alerts .is-bad::before { background: var(--a-bad); }
.v-alerts .is-good::before { background: var(--a-good); }
.v-alerts .is-warn::before { background: var(--a-warn); }
.v-alerts b { font-weight: 700; }
.v-points { margin-top: calc(var(--s9) - 8px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); }
.v-points li { border-top: 2.5px solid var(--text); padding-top: var(--s4); }
.v-points span, .v-fit span { font-family: var(--mono); font-size: 13px; color: var(--faint); }
.v-points h3 { margin-top: var(--s3); font-size: clamp(20px, 2vw, 28px); font-weight: 800; letter-spacing: -0.03em; }
.v-points p { margin-top: var(--s2); color: var(--muted); }

/* ---------- 5. Хто ми ---------- */
.v-pillars { margin-top: var(--s8); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); }
.v-pillars h3 { font-size: clamp(22px, 2.3vw, 32px); font-weight: 800; text-transform: uppercase; letter-spacing: -0.035em; line-height: 1; }
.v-pillars p { margin-top: var(--s4); color: var(--muted); }
.v-people { margin-top: var(--s8); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4) var(--s6); }
.v-faces { display: flex; padding-left: 14px; }
.v-faces li { margin-left: -14px; flex: 0 1 60px; min-width: 0; }
/* квадрат за шириною: коли ряд стискається, кола лишаються колами */
.v-faces img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; object-position: 50% 18%; border: 3px solid var(--bg); background: var(--surface-2); transition: transform .25s; }
.v-faces li:hover img { transform: translateY(-6px); }
.v-people p { flex: 1 1 260px; max-width: 420px; color: var(--muted); font-size: var(--fs-small); }
.v-nums { margin-top: var(--s8); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5); border-top: 1.5px solid var(--line-strong); padding-top: var(--s6); }
.v-nums b { display: block; font-size: clamp(34px, 4.2vw, 60px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.v-nums span { display: block; margin-top: var(--s2); font-size: var(--fs-small); color: var(--muted); }
.v-partners { margin-top: var(--s6); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s5); font-size: var(--fs-small); color: var(--muted); }
.v-partners img { height: 40px; width: auto; }

/* ---------- 6. Для кого ---------- */
.v-fit { margin-top: var(--s8); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s7) var(--s8); }
.v-fit li { border-top: 2.5px solid var(--text); padding-top: var(--s4); }
.v-fit h3 { margin-top: var(--s3); font-size: clamp(24px, 3vw, 44px); font-weight: 800; text-transform: uppercase; letter-spacing: -0.04em; line-height: .98; }
.v-fit p { margin-top: var(--s3); max-width: 460px; color: var(--muted); }
.v-honest { margin-top: var(--s8); font-size: var(--fs-lead); font-weight: 600; }

/* ---------- 7. Відгуки ---------- */
.v-quotes { margin-top: var(--s8); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
.v-quote { margin: 0; display: flex; flex-direction: column; gap: var(--s5); padding: var(--s6); border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.v-quote blockquote { margin: 0; font-size: 18px; line-height: 1.45; letter-spacing: -0.01em; }
.v-quote figcaption { margin-top: auto; display: grid; gap: 2px; font-size: var(--fs-small); }
.v-quote figcaption span { color: var(--muted); }

/* ---------- 8. Офер ---------- */
.v-offer { margin-top: var(--s8); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s8); }
.v-offer-h { font-family: var(--mono); font-size: var(--fs-micro); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.v-gets { margin-top: var(--s4); border-top: 2.5px solid var(--text); }
.v-gets li { padding: var(--s4) 0; border-bottom: 1.5px solid var(--line-strong); font-size: clamp(20px, 2.2vw, 30px); letter-spacing: -0.03em; line-height: 1.15; }
.v-gets b { font-weight: 800; }
.v-offer-note { margin-top: var(--s4); color: var(--muted); }
.v-steps { margin-top: var(--s4); border-top: 2.5px solid var(--text); }
.v-steps li { display: grid; grid-template-columns: 40px 1fr; gap: var(--s3); padding: var(--s4) 0; border-bottom: 1.5px solid var(--line-strong); }
.v-steps span { font-family: var(--mono); font-size: 13px; padding-top: 3px; }
.v-steps b { font-weight: 800; }
.v-prices { margin-top: var(--s8); border-top: 2.5px solid var(--text); border-bottom: 1.5px solid var(--line-strong); }
.v-prices summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--s2) var(--s5); padding: var(--s5) 0; font-weight: 800; font-size: 18px; }
.v-prices summary::-webkit-details-marker { display: none; }
.v-prices summary::after { content: "+"; width: 32px; height: 32px; display: grid; place-items: center; border: 1.5px solid var(--text); border-radius: 50%; font-family: var(--mono); }
.v-prices[open] summary::after { content: "−"; }
.v-prices-sum { margin-left: auto; font-weight: 500; font-size: var(--fs-small); color: var(--muted); }
.v-pkgs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); padding-bottom: var(--s5); }
.v-pkg { display: grid; align-content: start; gap: var(--s3); padding: var(--s5); border-radius: 16px; background: var(--surface); }
.v-pkg.is-main { background: var(--text); color: var(--bg); --mark: var(--bg); }
.v-pkg.is-main .v-link { color: var(--bg); }
.v-pkg-k { font-family: var(--mono); font-size: var(--fs-micro); letter-spacing: .08em; text-transform: uppercase; }
.v-pkg-p { font-size: 36px; font-weight: 800; letter-spacing: -0.04em; }
.v-pkg-p small { font-size: 15px; font-weight: 500; letter-spacing: 0; }
.v-pkg-p s { font-size: 18px; font-weight: 500; opacity: .6; }
.v-pkg p:not([class]) { font-size: var(--fs-small); }
.v-pkg .v-link { justify-self: start; margin-top: var(--s2); font-size: var(--fs-small); }
.v-pkgs-note { padding-bottom: var(--s5); font-size: var(--fs-small); color: var(--muted); }

/* ---------- 9. Питання ---------- */
.v-faq-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--s8); align-items: start; }
.v-faq-wrap .faq { max-width: none; }

/* ---------- 10. Форма ---------- */
.v2 .lead { border-top: 0; }
.v-lead-h { margin-bottom: var(--s8); }
.v2 .lead-intro > p:not(.eyebrow) { margin-top: var(--s4); }
.v2 .lead .lead-form .form { box-shadow: 14px 14px 0 var(--ink); border-color: var(--ink); }

/* ---------- рух ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* перший екран: лінія і петля малюються за часом, одразу після завантаження */
  html.js .v-pulse-line { animation: v-draw 2.6s cubic-bezier(.45,0,.25,1) .3s both; }
  html.js .v-pulse-dot { animation: v-pop .5s cubic-bezier(.3,1.6,.5,1) both; animation-delay: var(--t); }
  html.js .v-pulse-legend li { animation: v-fade .6s ease-out both; animation-delay: var(--t); }
  html.js .v-hero .v-mark-svg path { animation: v-draw 1.1s cubic-bezier(.6,0,.3,1) .5s both; }
  html.js .v-dash { animation: v-rise 1.1s cubic-bezier(.2,.7,.2,1) .15s both; }

  /* далі — прив'язка до прокрутки, де браузер це вміє */
  @supports (animation-timeline: view()) {
    .v-scr:not(.v-hero) .v-mark, .v-tl { view-timeline: --v block; }
    .v-scr:not(.v-hero) .v-mark-svg path { animation: v-draw linear both; animation-timeline: --v; animation-range: entry 90% cover 42%; }
    .v-tl .v-draw { animation: v-draw linear both; animation-timeline: --v; animation-range: cover var(--r0, 18%) cover var(--r1, 44%); }
  }
  /* резерв: main.js додає .in блокам з data-reveal — тоді штрих домальовується */
  html.io .v-scr:not(.v-hero) .v-mark-svg path, html.io .v-tl .v-draw { stroke-dashoffset: 1; transition: stroke-dashoffset 1.1s cubic-bezier(.6,0,.3,1) .45s; }
  html.io .in .v-mark-svg path, html.io .v-tl.in .v-draw { stroke-dashoffset: 0; }
  html.io .v-tl.in .v-berg-loop { transition-delay: 1.3s; }
}
@keyframes v-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes v-pop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: none; } }
@keyframes v-rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes v-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ---------- вузькі екрани ---------- */
@media (max-width: 960px) {
  .v-case { grid-template-columns: 1fr; }
  .v-points, .v-pillars { grid-template-columns: 1fr; gap: var(--s6); }
  .v-nums { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s6); }
  .v-quotes { grid-template-columns: 1fr 1fr; }
  .v-offer, .v-faq-wrap { grid-template-columns: 1fr; gap: var(--s7); }
  .v-pkgs { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .v-fit, .v-quotes { grid-template-columns: 1fr; gap: var(--s6); }
  .v-btn-xl { width: 100%; padding: 0 var(--s5); }
  .v-berg { margin-top: var(--s6); }
  .v-berg-l.is-top { left: 64% !important; }
  .v-berg-l.is-top span, .v-berg-l.is-note { display: none; }
  .v-alerts { position: static; margin-top: var(--s5); }
  .v-screen-frame { box-shadow: 8px 8px 0 var(--text); }
  .v-faces li { margin-left: -12px; flex-basis: 48px; }
  .v-hide-sm { display: none; }
  .v-pulse-legend { flex-direction: column; align-items: center; gap: var(--s2); }
  .v-case dl { grid-template-columns: 1fr; gap: 2px; }
  .v-case dd + dt { margin-top: var(--s2); }
}

/* старі якорі попередньої головної (#approach, #system, #pricing…) — щоб зовнішні посилання вели на відповідний екран */
.v-anchor { display: block; height: 0; }

/* ---------- шапка: підпис біля лого ---------- */
.v2 .site-header .logo { align-items: center; gap: var(--s3); }
.logo-sub { padding-left: var(--s3); border-left: 1px solid var(--line-strong); font-size: 13px; font-weight: 500; line-height: 1.25; color: var(--muted); white-space: nowrap; }
@media (max-width: 640px) {
  .v2 .site-header .logo { flex-direction: column; align-items: flex-start; gap: 2px; }
  .logo-sub { padding-left: 0; border-left: 0; font-size: 10.5px; letter-spacing: .01em; }
  .v2 .site-header .wrap { gap: var(--s3); }
  .v2 .site-header .btn { white-space: nowrap; }
}

/* ---------- шапка: меню на вузьких екранах ---------- */
/* у рядок з лого й кнопкою три пункти не влазять, тож під ними — другий рядок на всю ширину */
@media (max-width: 960px) {
  :root { --header-h: 104px; }   /* 64 рядок лого + 40 меню; від цього рахуються scroll-padding і висота героя */
  /* сітка, а не flex-wrap: на вузькому вікні кнопка не переноситься й не виштовхує меню за межі шапки */
  .v2 .site-header .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: 64px 40px; column-gap: var(--s3); row-gap: 0; }
  .v2 .site-header .logo { min-width: 0; }
  .v2 .site-header .logo-sub { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .v2 .nav {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; grid-column: 1 / -1; grid-row: 2; align-self: stretch;
    margin-inline: calc(var(--gutter) * -1);
    border-top: 1px solid var(--line);
  }
  .v2 .nav a { display: flex; align-items: center; justify-content: center; padding: 0; font-size: 14px; }
  .v2 .nav a.is-active::after { left: 50%; right: auto; width: 28px; margin-left: -14px; bottom: 5px; }
}
/* на зовсім вузьких екранах підпис біля лого не влазить поруч із кнопкою */
@media (max-width: 359px) { .v2 .site-header .logo-sub { display: none; } }

/* мітка-чип на телефоні: компактніша, а якщо все ж переноситься — заокруглена плашка, а не роздута пігулка */
@media (max-width: 640px) {
  .v-scr .eyebrow { font-size: 12px; letter-spacing: .08em; gap: var(--s2); padding: 8px 14px 8px 12px; border-radius: 18px; text-wrap: balance; }
  .v-scr .eyebrow::before { flex: none; }
}

/* ---------- перший екран: канали ---------- */
.v-ch { margin-top: clamp(20px, 3.4vh, 36px); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s2) var(--s3); }
.v-ch li { display: inline-flex; align-items: center; gap: var(--s2); padding: 7px 14px 7px 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: var(--fs-small); font-weight: 600; color: var(--text); background: color-mix(in srgb, var(--surface) 70%, transparent); }
.v-ch svg { width: 16px; height: 16px; flex: none; fill: currentColor; opacity: .85; }
@media (max-width: 640px) {
  .v-ch { gap: var(--s2); }
  .v-ch li { padding: 5px 11px 5px 9px; font-size: 13px; }
  .v-ch svg { width: 14px; height: 14px; }
}

/* ---------- 1б. Офер одразу після першого екрана: три картки, деталі в <details> ---------- */
/* темна петля на зеленому зливається з чорними літерами; світла лягає під них і читається */
.v2 .v-audit { --mark: #f6f5ef; }
.v-gift { margin-top: var(--s8); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); align-items: start; text-align: left; }
.v-gift > li { display: flex; flex-direction: column; padding: var(--s5); border-radius: 20px; background: var(--surface); }
.v-gift-n { display: flex; gap: var(--s2); font-family: var(--mono); font-size: var(--fs-micro); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.v-gift-big { margin-top: var(--s5); padding-bottom: var(--s4); border-bottom: 2.5px solid var(--text); font-size: clamp(28px, 2.8vw, 40px); font-weight: 800; line-height: 1; letter-spacing: -0.045em; text-transform: uppercase; }
.v-gift h3 { margin-top: var(--s4); font-size: clamp(18px, 1.5vw, 21px); font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
.v-gift > li > p:not([class]) { margin-top: var(--s2); font-size: var(--fs-small); line-height: 1.5; color: var(--muted); }
.v-gift details { padding-top: var(--s5); }
.v-gift summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s3); padding-top: var(--s3); border-top: 1.5px solid var(--line-strong); font-size: var(--fs-small); font-weight: 700; }
.v-gift summary::-webkit-details-marker { display: none; }
.v-gift summary::after { content: "+"; flex: none; width: 26px; height: 26px; display: grid; place-items: center; border: 1.5px solid var(--text); border-radius: 50%; font-family: var(--mono); font-weight: 500; }
.v-gift details[open] summary::after { content: "−"; }
.v-gift details ul { margin-top: var(--s3); display: grid; gap: var(--s2); font-size: var(--fs-small); line-height: 1.45; }
.v-gift details li { position: relative; padding-left: var(--s4); }
.v-gift details li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--text); }
.v-gift details p { margin-top: var(--s3); font-size: var(--fs-small); font-weight: 600; }
.v-audit .v-cta { flex-direction: column; gap: var(--s3); }
.v-gift-note { font-size: var(--fs-small); color: var(--muted); }
@media (max-width: 960px) { .v-gift { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }
