/* Happy Student — shared styles. Tokens live in tokens.css. */

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--lh-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
  margin: 0;
  overflow-wrap: anywhere;
  min-width: 0;
}
h3, h4 { line-height: var(--lh-snug); letter-spacing: -0.015em; }
p, figure, blockquote { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2.5rem); }
.section { padding-block: clamp(3.5rem, 8vw, var(--space-4xl)); }
.section--tight { padding-block: clamp(2.5rem, 6vw, var(--space-3xl)); }
.stack > * + * { margin-top: var(--space-md); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-body); font-weight: 700;
  font-size: var(--text-sm); letter-spacing: .02em;
  color: var(--lav-deep);
  padding: .34rem .8rem .34rem .6rem;
  background: var(--lav-tint);
  border-radius: var(--radius-pill);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad-brand); }

.section-head { position: relative; margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head h2 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.5rem); margin-top: var(--space-sm); }
.section-head .lede { color: var(--ink-2); font-size: var(--text-lg); margin-top: var(--space-md); max-width: 54ch; }
.section-head.center .lede { margin-inline: auto; }
.lede { color: var(--ink-2); }
.center { text-align: center; margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  --_bg: var(--ink); --_fg: var(--on-dark);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-body); font-weight: 700; font-size: var(--text-base);
  line-height: 1; white-space: nowrap;
  padding: .95rem 1.5rem; border: 0; border-radius: var(--radius-pill);
  background: var(--_bg); color: var(--_fg); cursor: pointer;
  transition: transform var(--dur) var(--ease-spring), box-shadow var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 1.15em; height: 1.15em; }
.btn--lime { --_bg: var(--lime); --_fg: var(--on-lime); box-shadow: var(--shadow-lime); }
.btn--lime:hover { box-shadow: 0 22px 50px -18px oklch(70% 0.18 128 / .7); }
.btn--ink:hover { box-shadow: var(--shadow-md); }
.btn--ghost {
  --_bg: transparent; --_fg: var(--ink);
  border: 1.5px solid var(--rule); padding-block: calc(.95rem - 1.5px);
}
.btn--ghost:hover { --_bg: var(--paper-2); border-color: var(--ink); box-shadow: none; }
.btn--lg { padding: 1.1rem 1.8rem; font-size: var(--text-lg); }
.btn--block { width: 100%; }

.textlink { font-weight: 700; color: var(--lav-deep); display: inline-flex; align-items: center; gap: .35rem; }
.textlink svg { width: 1em; height: 1em; transition: transform var(--dur) var(--ease-out); }
.textlink:hover svg { transform: translateX(3px); }

/* ---------- Header / nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: oklch(98.6% 0.006 300 / .78);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.nav.is-stuck { border-color: var(--rule); box-shadow: 0 6px 24px -20px oklch(50% 0.09 292 / .6); }
.nav__row { display: flex; align-items: center; gap: var(--space-lg); min-height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.brand img { height: 40px; width: auto; border-radius: 12px; }
.nav__links { display: flex; align-items: center; gap: .35rem; margin-left: auto; }
.nav__links a {
  font-weight: 600; font-size: var(--text-sm); color: var(--ink-2);
  padding: .55rem .8rem; border-radius: var(--radius-pill);
  transition: color var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}
.nav__links a:hover { color: var(--ink); background: var(--paper-2); }
.nav__links a[aria-current="page"] { color: var(--ink); background: var(--lav-tint); }
.nav__cta { margin-left: .4rem; }
.nav__panel { display: none; }
.nav__burger {
  display: none; margin-left: auto; width: 46px; height: 46px;
  border: 1px solid var(--rule); border-radius: var(--radius-md);
  background: var(--paper); cursor: pointer; align-items: center; justify-content: center;
}
.nav__burger span, .nav__burger span::before, .nav__burger span::after {
  content: ""; display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--ink);
  transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out);
}
.nav__burger span::before { transform: translateY(-6px); }
.nav__burger span::after  { transform: translateY(4px); }
body.menu-open .nav__burger span { background: transparent; }
body.menu-open .nav__burger span::before { transform: rotate(45deg); }
body.menu-open .nav__burger span::after  { transform: rotate(-45deg) translateY(-1px); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: clip; }
.hero__aura {
  position: absolute; inset: -20% -10% auto -10%; height: 130%;
  background: var(--grad-aura); filter: blur(30px); opacity: .9;
  z-index: 0; pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero__head { padding-top: clamp(1.5rem, 2.6vw, 2.25rem); }
/* align-items:start — текст іде одразу під заголовком, а не центрується по високій ілюстрації:
   так рядок довіри (40 000+ студентів…) лишається на першому екрані */
.hero__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 4.5rem); align-items: start; padding-block: clamp(1.5rem, 2.6vw, 2.25rem) clamp(2.5rem, 5vw, 4rem); }
.hero__grid > *, .split > * { min-width: 0; }
/* min(): на вузьких екранах слово «консультант» має вміщатись у рядок, а не рватись посередині */
.hero h1 { font-size: min(var(--display), calc((100vw - 2.4rem) / 7.85)); letter-spacing: -0.035em; }
/* двоколонковий екран (ноутбуки 961–1200px): заголовок має лягати рівно у два рядки — без «—» окремим рядком.
   13 — відношення ширини довшого рядка («від теми до захисту» з підкресленням) до розміру шрифту, із запасом */
@media (min-width: 961px) { .hero h1 { font-size: min(var(--display), calc((100vw - 4.5rem) / 13)); } }
.hero h1 .hl { color: var(--lav-deep); }
.hero__lede { font-size: var(--text-xl); color: var(--ink-2); font-weight: 500; line-height: 1.4; margin-top: 0; max-width: 46ch; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm); margin-top: var(--space-xl); }
.hero .hero__cta { margin-top: 1.75rem; }   /* лише перший екран головної; інші блоки з .hero__cta без змін */
.hero__trust { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; margin-top: 1.5rem; color: var(--muted); font-size: var(--text-sm); font-weight: 600; }
.hero__trust b { color: var(--ink); }

/* Hero cast: people illustration + floating work-type tags, soft glow only */
.hero__cast { position: relative; min-height: 300px; }
/* ілюстрація не вища за екран: на невисоких ноутбуках вона інакше виштовхувала низ блока за згин */
.hero__cast .scene--hero img { display: block; width: auto; max-width: 100%; height: auto; max-height: clamp(340px, 58vh, 620px); margin-inline: auto; position: relative; z-index: 2; }
.hero__cast::before {
  content: ""; position: absolute; inset: -14% -10%;
  background:
    radial-gradient(46% 42% at 32% 34%, oklch(85% 0.185 128 / .5), transparent 70%),
    radial-gradient(44% 46% at 74% 62%, oklch(72% 0.135 292 / .48), transparent 70%);
  filter: blur(14px); z-index: 0; pointer-events: none;
}
.hero__cast .cast-svg { position: relative; z-index: 1; display: block; width: min(100%, 620px); margin-inline: auto; color: var(--ink); }
.float-tag {
  position: absolute; z-index: 2;
  animation: doodle-float 6s var(--ease-in-out) infinite;
}
@media (prefers-reduced-motion: reduce) { .float-tag { animation: none; } }
@media (max-width: 680px) { .float-tag--desk { display: none; } }

/* ---- Illustrated scenes (Open Doodles, CC0) ---- */
.scene { position: relative; z-index: 1; width: 100%; aspect-ratio: 15 / 11; }
.scene--hero { aspect-ratio: auto; }
.scene__fig { position: absolute; display: block; height: auto; }
.scene__fig--main { left: 2%; bottom: 0; width: 76%; z-index: 2; }
.scene__fig--side { right: 1%; bottom: 0; width: 36%; z-index: 3; }
@media (max-width: 720px) {
  .scene { aspect-ratio: 13 / 11; }
}

/* Composite scene: figure + hand-drawn prop */
.duo { position: relative; display: block; width: 100%; }
.duo img { position: absolute; display: block; height: auto; }

/* ---- People (Open Peeps, CC0) ---- */
.peeps-row { position: relative; z-index: 1; width: 100%; aspect-ratio: 16 / 11; }
.peep { position: absolute; bottom: 0; display: block; height: auto; }
.peep-single { display: block; width: 100%; height: auto; position: relative; z-index: 1; }
@media (max-width: 720px) {
  .peeps-row { aspect-ratio: 14 / 11; }
  .peeps-row img:nth-child(1), .peeps-row img:nth-child(5) { display: none; }
  .peeps-row img:nth-child(2) { left: 0 !important;  width: 40% !important; }
  .peeps-row img:nth-child(3) { left: 27% !important; width: 45% !important; }
  .peeps-row img:nth-child(4) { left: 58% !important; width: 40% !important; }
}
.peep-ondark { filter: drop-shadow(0 0 26px oklch(100% 0 0 / .5)) drop-shadow(0 0 60px oklch(100% 0 0 / .3)); }
.review__av--img { overflow: hidden; padding: 0; }
.review__av--img img { width: 100%; height: 100%; object-fit: cover; }

/* Inline character slots in sections */
.cast-svg { display: block; width: 100%; }
.cast-svg > svg { display: block; width: 100%; height: auto; }
.cast-slot { position: relative; }
.cast-slot .cast-svg { display: block; width: 100%; color: var(--ink); position: relative; z-index: 1; }
.cast-slot::before {
  content: ""; position: absolute; inset: -8%;
  background: radial-gradient(50% 46% at 50% 55%, oklch(89% 0.065 292 / .55), transparent 72%);
  filter: blur(10px); z-index: 0; pointer-events: none;
}
.cast-slot--lime::before { background: radial-gradient(50% 46% at 50% 55%, oklch(93% 0.10 128 / .6), transparent 72%); }
.cast-side { position: absolute; z-index: 1; pointer-events: none; }
@media (max-width: 1060px) { .cast-side { display: none; } }

/* icon default */
.i { width: 1.25rem; height: 1.25rem; flex-shrink: 0; }

/* ---------- Hero order-card (signature CSS art) ---------- */
.ordercard { position: relative; justify-self: end; width: min(100%, 420px); }
.ordercard__card {
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius-xl);
  padding: clamp(1.3rem, 3vw, 1.8rem); box-shadow: var(--shadow-lg);
}
.ordercard__chip {
  position: absolute; z-index: 2; font-weight: 700; font-size: var(--text-sm);
  padding: .55rem .9rem; border-radius: var(--radius-pill); box-shadow: var(--shadow-md);
  animation: float 5s var(--ease-in-out) infinite;
}
.ordercard__chip--lime { top: -18px; right: 8%; background: var(--lime); color: var(--ink); }
.ordercard__chip--lav  { bottom: -16px; left: 4%; background: var(--lav); color: var(--on-dark); animation-delay: -2.5s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (prefers-reduced-motion: reduce) { .ordercard__chip { animation: none; } }
.oc-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.oc-tag { font-weight: 700; font-size: var(--text-sm); color: var(--lav-deep); background: var(--lav-tint); padding: .3rem .7rem; border-radius: var(--radius-pill); }
.oc-status { font-size: var(--text-xs); font-weight: 700; color: var(--lime-deep); display: inline-flex; align-items: center; gap: .4rem; }
.oc-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); }
.oc-title { font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); letter-spacing: -.02em; margin: var(--space-md) 0 var(--space-md); }
.oc-bar { height: 8px; border-radius: var(--radius-pill); background: var(--paper-3); overflow: hidden; }
.oc-bar i { display: block; height: 100%; border-radius: var(--radius-pill); background: var(--grad-brand); }
.oc-meta { display: flex; justify-content: space-between; margin-top: .55rem; color: var(--muted); font-size: var(--text-xs); font-weight: 600; }
.oc-people { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; margin: var(--space-lg) 0; }
.oc-av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: .8rem; color: var(--ink); margin-left: -8px; border: 2px solid var(--paper); }
.oc-av:first-child { margin-left: 0; }
.oc-av--n { background: var(--paper-3); color: var(--ink-2); }
.oc-people__t { margin-left: .5rem; min-width: 0; flex: 1; font-size: var(--text-xs); color: var(--muted); font-weight: 600; }
.oc-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-top: var(--space-md); border-top: 1px solid var(--rule-2); }
.oc-from { font-size: var(--text-xs); color: var(--muted); font-weight: 600; }
.oc-price { font-family: var(--font-display); font-weight: 700; font-size: var(--text-xl); letter-spacing: -.02em; }
.oc-price span { font-size: var(--text-sm); color: var(--muted); }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(.8rem, 1.4vw, 1.15rem); }
.tile {
  position: relative; overflow: hidden;
  background: var(--paper); border: 1px solid var(--rule);
  border-radius: var(--radius-lg); padding: clamp(1.3rem, 2.2vw, 1.9rem);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.tile--hover:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.tile--lime { background: var(--lime-tint); border-color: transparent; }
.tile--lav  { background: var(--lav-tint);  border-color: transparent; }
.tile--grad { background: var(--grad-soft); border-color: transparent; }
.tile--ink  { background: var(--paper-ink); color: var(--on-dark); border-color: transparent; }
.tile--ink h3, .tile--ink .stat__num { color: var(--on-dark); }
.tile--ink .stat__label { color: var(--on-dark-2); }
.col-3 { grid-column: span 3; } .col-4 { grid-column: span 4; }
.col-5 { grid-column: span 5; } .col-6 { grid-column: span 6; }
.col-7 { grid-column: span 7; } .col-8 { grid-column: span 8; }
.col-12 { grid-column: span 12; }

.stat__num { font-family: var(--font-display); font-weight: 700; font-size: var(--text-3xl); letter-spacing: -0.03em; line-height: 1; color: var(--ink); }
.stat__num .u { color: var(--lav-deep); }
.stat__label { color: var(--ink-2); font-size: var(--text-sm); font-weight: 600; margin-top: .5rem; }

/* icon chip */
.ichip { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--paper-2); color: var(--lav-deep); margin-bottom: var(--space-md); }
.ichip svg { width: 24px; height: 24px; }
.tile--lime .ichip { background: oklch(85% 0.185 128 / .35); color: var(--lime-deep); }
.tile--lav .ichip  { background: oklch(72% 0.135 292 / .28); color: var(--lav-deep); }
.tile h3 { font-size: var(--text-xl); margin-bottom: .5rem; }
.tile p { color: var(--ink-2); font-size: var(--text-base); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 1.5rem); counter-reset: step; }
.step { position: relative; padding-top: var(--space-lg); }
.step__n {
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-2xl);
  width: 58px; height: 58px; border-radius: var(--radius-md); display: grid; place-items: center;
  background: var(--grad-soft); color: var(--lav-deep); margin-bottom: var(--space-md);
  border: 1px solid var(--rule-2);
}
.step h3 { font-size: var(--text-lg); margin-bottom: .4rem; }
.step p { color: var(--ink-2); font-size: var(--text-base); }

/* ---------- Feature / split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; padding: .55rem 0; font-weight: 500; }
.checklist li + li { border-top: 1px solid var(--rule-2); }
.checklist .ok { flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; background: var(--lime); color: var(--ink); display: grid; place-items: center; margin-top: 1px; }
.checklist .ok svg { width: 15px; height: 15px; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.5rem); align-items: start; }
.price-card { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: clamp(1.5rem, 2.5vw, 2rem); transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out); }
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.price-card--featured { background: var(--paper-ink); color: var(--on-dark); border-color: transparent; box-shadow: var(--shadow-lg); }
.price-card--featured .price__cur, .price-card--featured h3 { color: var(--on-dark); }
.price-card--featured .price__from, .price-card--featured .price__unit, .price-card--featured li { color: var(--on-dark-2); }
.price-card--featured .checklist li { border-color: var(--rule-dark); }
.price__tag { display: inline-block; font-size: var(--text-xs); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); background: var(--lime); padding: .3rem .7rem; border-radius: var(--radius-pill); margin-bottom: var(--space-md); }
.price-card h3 { font-size: var(--text-xl); }
.price__from { color: var(--muted); font-size: var(--text-sm); font-weight: 600; margin-top: var(--space-md); }
.price__val { display: flex; align-items: baseline; gap: .3rem; margin-top: .2rem; }
.price__cur { font-family: var(--font-display); font-weight: 700; font-size: var(--text-2xl); letter-spacing: -.03em; color: var(--ink); white-space: nowrap; }
.price__unit { color: var(--muted); font-weight: 600; }
.price-card .checklist { margin: var(--space-lg) 0; }
.price-card .btn { margin-top: var(--space-sm); }

/* ---------- Price table ---------- */
.ptable { width: 100%; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.prow { display: grid; grid-template-columns: 46px 1fr auto; gap: var(--space-md); align-items: center; padding: 1.1rem clamp(1rem, 2.5vw, 1.6rem); }
.prow + .prow { border-top: 1px solid var(--rule-2); }
.prow:hover { background: var(--paper-2); }
.prow__ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--lav-tint); color: var(--lav-deep); }
.prow__ic svg { width: 22px; height: 22px; }
.prow__name { font-weight: 700; font-size: var(--text-lg); font-family: var(--font-body); }
.prow__desc { color: var(--muted); font-size: var(--text-sm); font-weight: 500; }
.prow__price { text-align: right; }
.prow__price b { font-family: var(--font-display); font-weight: 700; font-size: var(--text-lg); letter-spacing: -.02em; white-space: nowrap; }
.prow__price span { display: block; color: var(--muted); font-size: var(--text-xs); font-weight: 600; }

/* ---------- Info / feature grid ---------- */
.info3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
.subjects { display: flex; flex-wrap: wrap; gap: .6rem; }
.subjects span { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius-pill); padding: .55rem 1rem; font-weight: 600; font-size: var(--text-sm); color: var(--ink-2); }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.5rem); }
.review { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius-lg); padding: clamp(1.4rem, 2.2vw, 1.8rem); display: flex; flex-direction: column; gap: var(--space-md); }
.review__stars { color: var(--lime-deep); display: flex; gap: 2px; }
.review__stars svg { width: 18px; height: 18px; }
.review p { color: var(--ink); font-size: var(--text-base); line-height: 1.55; }
.review__who { display: flex; align-items: center; gap: .7rem; margin-top: auto; }
.review__av { width: 40px; height: 40px; border-radius: 50%; background: var(--grad-brand); display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: var(--text-base); }
.review__name { font-weight: 700; font-size: var(--text-sm); }
.review__meta { color: var(--muted); font-size: var(--text-xs); }

/* ---------- FAQ ---------- */
.faq { max-width: 60rem; margin-inline: auto; }
.qa { border-bottom: 1px solid var(--rule); }
.qa__q { list-style: none; width: 100%; text-align: left; background: none; border: 0; cursor: pointer; padding: 1.35rem 3rem 1.35rem 0; position: relative; font-family: var(--font-body); font-weight: 700; font-size: var(--text-lg); color: var(--ink); }
.qa__q::-webkit-details-marker { display: none; }
.qa__q::after { content: ""; position: absolute; right: .3rem; top: 50%; width: 13px; height: 13px; border-right: 2.5px solid var(--lav-deep); border-bottom: 2.5px solid var(--lav-deep); transform: translateY(-70%) rotate(45deg); transition: transform var(--dur) var(--ease-out); }
.qa[open] .qa__q::after { transform: translateY(-30%) rotate(225deg); }
.qa__a { padding: 0 3rem 1.5rem 0; color: var(--ink-2); font-size: var(--text-base); line-height: 1.6; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--paper-ink); color: var(--on-dark); border-radius: var(--radius-2xl); padding: clamp(2.5rem, 6vw, 4.5rem); text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: var(--grad-aura); opacity: .5; }
.cta-band > * { position: relative; }
.cta-band h2 { color: var(--on-dark); font-size: var(--text-3xl); margin-inline: auto; }
.cta-band p { color: var(--on-dark-2); font-size: var(--text-lg); margin: var(--space-md) auto var(--space-xl); max-width: 46ch; }

/* ---------- Footer ---------- */
.footer { background: var(--paper-2); border-top: 1px solid var(--rule); padding-block: clamp(2.5rem, 5vw, 4rem) 2rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-xl); }
.footer__brand img { height: 44px; width: auto; border-radius: 12px; margin-bottom: var(--space-md); }
.footer__brand p { color: var(--ink-2); font-size: var(--text-sm); max-width: 34ch; }
.footer h4 { font-family: var(--font-body); font-size: var(--text-sm); font-weight: 700; letter-spacing: .02em; color: var(--muted); text-transform: uppercase; margin-bottom: var(--space-md); }
.footer__col a { display: block; padding: .35rem 0; color: var(--ink-2); font-weight: 600; font-size: var(--text-sm); transition: color var(--dur) var(--ease-out); }
.footer__col a:hover { color: var(--lav-deep); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-md); margin-top: var(--space-2xl); padding-top: var(--space-lg); border-top: 1px solid var(--rule); color: var(--muted); font-size: var(--text-xs); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: clip; padding-block: clamp(3rem, 6vw, 5rem) clamp(2rem, 4vw, 3rem); }
.page-hero__aura { position: absolute; inset: -40% -10% auto auto; width: 60%; height: 120%; background: var(--grad-aura); filter: blur(30px); opacity: .7; z-index: 0; }
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: var(--display-s); letter-spacing: -.03em; }
.page-hero .lede { font-size: var(--text-xl); color: var(--ink-2); font-weight: 500; margin-top: var(--space-md); max-width: 50ch; }

/* ================= Hand-drawn layer ================= */
/* Handwriting accents */
.hand { font-family: var(--font-hand); font-weight: 600; line-height: .95; color: var(--lav-deep); letter-spacing: .01em; }
.hand--lime { color: var(--lime-deep); }
.hand--note { display: inline-block; font-family: var(--font-hand); font-weight: 600; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.9rem); color: var(--lav-deep); }
.note-rot { transform: rotate(-4deg); }

/* small handwritten label with a drawn arrow next to a target */
.scribble {
  position: relative; display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--font-hand); font-weight: 600; color: var(--lav-deep);
  font-size: clamp(1.3rem, 1.05rem + 1vw, 1.75rem);
}
.scribble svg { width: 2.4em; height: 1.4em; color: var(--lav); flex-shrink: 0; }

/* Squiggle underline drawn under a word (wrap-safe, per line) */
.squiggle {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8 C 18 2 30 11 46 6 S 84 2 102 8 118 5 118 5' fill='none' stroke='%23bff06a' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 0 100%; background-size: 100% .34em;
  padding-bottom: .18em;
}
.squiggle--lav {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8 C 18 2 30 11 46 6 S 84 2 102 8 118 5 118 5' fill='none' stroke='%23a79df0' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
}
/* Highlighter marker swipe behind a word (student's text marker) */
.marker { position: relative; white-space: nowrap; z-index: 0; }
.marker::before {
  content: ""; position: absolute; inset: .06em -.18em -.02em -.14em; z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 60' preserveAspectRatio='none'%3E%3Cpath d='M7 16C52 8 148 6 194 11L191 47C142 55 44 54 6 49Z' fill='%23bff06a' fill-opacity='.75'/%3E%3C/svg%3E");
  background-size: 100% 100%; transform: rotate(-1.2deg);
}
.marker--lav::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 60' preserveAspectRatio='none'%3E%3Cpath d='M7 16C52 8 148 6 194 11L191 47C142 55 44 54 6 49Z' fill='%23b7aef2' fill-opacity='.7'/%3E%3C/svg%3E");
}

/* Hand-drawn circle around a word */
.circled { position: relative; }
.circled::after {
  content: ""; position: absolute; inset: -6% -12% -16% -12%; z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 90'%3E%3Cpath d='M100 6 C 44 4 12 22 10 46 8 74 60 86 108 84 158 82 192 66 190 42 188 16 140 4 96 8' fill='none' stroke='%23a79df0' stroke-width='3.4' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 100% 100%;
}

/* Floating doodles (decorative) */
.doodle { position: absolute; z-index: 1; color: var(--ink); pointer-events: none; }
.doodle svg { width: 100%; height: 100%; overflow: visible; }
.doodle--lav { color: var(--lav-deep); }
.doodle--lime { color: var(--lime-deep); }
@keyframes doodle-float { 0%,100% { transform: translateY(0) rotate(var(--r,0deg)); } 50% { transform: translateY(-8px) rotate(var(--r,0deg)); } }
.doodle--float { animation: doodle-float 6s var(--ease-in-out) infinite; }
@media (prefers-reduced-motion: reduce) { .doodle--float { animation: none; } }

/* Periwinkle glow icon (line-art over a soft radial glow) */
.blobicon { position: relative; width: 76px; height: 76px; margin-bottom: var(--space-lg); display: grid; place-items: center; }
.blobicon::before {
  content: ""; position: absolute; width: 80px; height: 80px; border-radius: 50%;
  background: radial-gradient(circle, var(--lav-soft) 10%, transparent 72%);
  top: -2px; left: -6px; z-index: 0;
}
.blobicon.is-lime::before { background: radial-gradient(circle, var(--lime-soft) 10%, transparent 72%); }
.blobicon svg { position: relative; z-index: 1; width: 40px; height: 40px; color: var(--ink); transform: rotate(-4deg); }
.tile--lime .blobicon::before, .tile--lav .blobicon::before, .tile--grad .blobicon::before { background: radial-gradient(circle, oklch(100% 0 0 / .75) 10%, transparent 72%); }

/* Section-head with a hand accent */
.kicker-hand { display: inline-block; font-family: var(--font-hand); font-weight: 700; font-size: clamp(1.9rem, 1.4rem + 2vw, 2.9rem); color: var(--lav-deep); transform: rotate(-2deg); margin-bottom: .35rem; }

/* Margin note card (sticky-note feel, no shadow overload) */
.margin-note {
  position: relative; font-family: var(--font-hand); font-weight: 600;
  font-size: clamp(1.3rem, 1.05rem + .9vw, 1.7rem); color: var(--ink);
  background: var(--lime-tint); border: 1.5px dashed var(--lime-deep);
  border-radius: var(--radius-md); padding: .8rem 1.1rem; transform: rotate(-1.5deg);
  line-height: 1.05;
}
.margin-note--lav { background: var(--lav-tint); border-color: var(--lav-deep); }

/* Glassmorphism panels (frosted over bright blobs) */
.glass {
  background: oklch(100% 0 0 / .5);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border: 1px solid oklch(100% 0 0 / .7);
  box-shadow: var(--shadow-md), inset 0 1px 0 oklch(100% 0 0 / .6);
}
.glass--dark {
  background: oklch(28% 0.03 292 / .42); border-color: oklch(100% 0 0 / .14);
  box-shadow: var(--shadow-lg), inset 0 1px 0 oklch(100% 0 0 / .12);
}
.glass-chip {
  display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; font-size: var(--text-sm);
  padding: .55rem .95rem; border-radius: var(--radius-pill);
  background: oklch(100% 0 0 / .55); backdrop-filter: blur(14px) saturate(1.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  border: 1px solid oklch(100% 0 0 / .7); box-shadow: var(--shadow-sm);
}

/* Scattered accent dots */
.dot { position: absolute; border-radius: 50%; z-index: 1; pointer-events: none; }
.dot--lime { background: var(--lime); } .dot--lav { background: var(--lav); }

/* Line-art default sizing */
.art { width: 100%; height: 100%; }

/* Decorative layer behind content (keeps doodles from causing overflow) */
.deco { position: absolute; inset: 0; overflow: clip; z-index: 0; pointer-events: none; }
.deco .doodle { position: absolute; }

/* Decorative color glows (soft gradients only — no hard-edged shapes) */
.blob-bg { position: absolute; border-radius: 50%; z-index: 0; pointer-events: none; }
.blob-bg--lav { background: radial-gradient(circle, oklch(72% 0.135 292 / .55) 0%, oklch(72% 0.135 292 / 0) 68%); }
.blob-bg--lime { background: radial-gradient(circle, oklch(85% 0.185 128 / .6) 0%, oklch(85% 0.185 128 / 0) 68%); }
.blob-bg--soft { background: radial-gradient(circle, oklch(89% 0.065 292 / .65) 0%, oklch(89% 0.065 292 / 0) 70%); }

/* Illustration on a soft glow */
.illo { position: relative; display: inline-grid; place-items: center; }
.illo__blob { position: absolute; border-radius: 50%; z-index: 0; background: radial-gradient(circle, var(--illo-c, var(--lav-soft)) 0%, transparent 70%) !important; }
.illo svg.art { position: relative; z-index: 1; color: var(--ink); }

/* Hero stage holds the card + floating doodles */
.hero__stage { position: relative; padding: 3.2rem 2.6rem 3rem; }
.hero__stage .doodle { z-index: 3; }
.hero__stage .ordercard { position: relative; z-index: 2; margin-inline: auto; width: min(100%, 420px); }

/* Big expressive display option (sized to hold the H1 in exactly 2 lines on desktop) */
.display-xl { font-size: clamp(2.6rem, 1.5rem + 4.6vw, 5.9rem); line-height: .96; letter-spacing: -.04em; }

/* Marquee ribbon (bold moving band) */
.ribbon { overflow: hidden; background: var(--ink); color: var(--on-dark); padding: .9rem 0; transform: rotate(-1.4deg); }
.ribbon__track { display: inline-flex; gap: 2.5rem; white-space: nowrap; animation: marquee 26s linear infinite; will-change: transform; }
.ribbon__track span { font-family: var(--font-display); font-weight: 600; font-size: var(--text-lg); letter-spacing: -.01em; display: inline-flex; align-items: center; gap: 2.5rem; }
.ribbon__track span::after { content: "✦"; color: var(--lime); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ribbon__track { animation: none; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .tile, .price-card, .review { transition: none; }
  * { animation-duration: .01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .price-grid, .reviews { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .col-3, .col-4, .col-5, .col-6, .col-7, .col-8 { grid-column: span 6; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: span 2; }
  .info3 { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .prow { grid-template-columns: 40px 1fr; align-items: start; row-gap: .35rem; }
  .prow__ic { grid-row: span 2; }
  .prow__price { text-align: left; grid-column: 2; }
  .prow__price span { display: inline; margin-left: .4rem; }
}
@media (max-width: 780px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: inline-flex; }
  .nav__panel {
    position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 49;
    background: var(--paper); border-bottom: 1px solid var(--rule);
    padding: var(--space-md) clamp(1.1rem, 4vw, 2.5rem) var(--space-xl);
    display: none; box-shadow: var(--shadow-lg);
  }
  body.menu-open .nav__panel { display: block; }
  .nav__panel a { display: block; padding: .9rem .2rem; font-weight: 700; font-size: var(--text-lg); border-bottom: 1px solid var(--rule-2); }
  .nav__panel .btn { margin-top: var(--space-md); }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-12 { grid-column: span 6; }
  .steps { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__brand { grid-column: span 1; }
  .hero__cta .btn { width: 100%; }
}

/* ---------- Answer block (GEO: перший абзац, який цитує AI) ---------- */
.answer {
  background: var(--lime-tint); border-left: 5px solid var(--lime);
  border-radius: var(--radius-md); padding: clamp(1.1rem, 2.2vw, 1.6rem) clamp(1.2rem, 2.5vw, 1.8rem);
  font-size: var(--text-lg); line-height: 1.55; color: var(--ink);
  max-width: 68ch; margin-top: var(--space-lg);
}
.answer b, .answer strong { font-weight: 800; }
.answer--lav { background: var(--lav-tint); border-left-color: var(--lav); }

/* breadcrumbs */
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center;
  font-size: var(--text-sm); color: var(--muted); padding-top: var(--space-md); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--lav-deep); text-decoration: underline; }
.crumbs span[aria-current] { color: var(--ink-2); font-weight: 600; }

/* оновлено на сторінці */
.updated { color: var(--muted); font-size: var(--text-sm); margin-top: var(--space-md); }

/* ================= Автори / виконавці ================= */
.authors {
  position: relative; overflow: hidden;
  background: var(--paper-ink); color: var(--on-dark);
  border-radius: var(--radius-2xl);
  padding: clamp(2.2rem, 5vw, 4rem) clamp(1.2rem, 3vw, 3rem);
}
.authors::before {
  content: ""; position: absolute; inset: 0;
  background: var(--grad-aura); opacity: .38; pointer-events: none;
}
.authors > * { position: relative; z-index: 1; }
.authors h2 { color: var(--on-dark); font-size: clamp(2rem, 1.4rem + 2.4vw, 3.2rem); max-width: 18ch; }
.authors__lede { color: var(--on-dark-2); font-size: var(--text-lg); line-height: 1.55; max-width: 62ch; margin-top: var(--space-md); }

.authors__chips { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: var(--space-xl); }
.spec-chip {
  font-family: var(--font-body); font-weight: 600; font-size: var(--text-sm);
  color: var(--on-dark); background: transparent;
  border: 1.5px solid oklch(100% 0 0 / .32); border-radius: var(--radius-pill);
  padding: .55rem 1.05rem; cursor: pointer; white-space: nowrap;
  transition: background var(--dur) var(--ease-out), color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.spec-chip:hover { background: oklch(100% 0 0 / .12); border-color: oklch(100% 0 0 / .55); }
.spec-chip.is-active { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.authors__more { color: var(--on-dark-2); font-size: var(--text-sm); font-weight: 600; margin-left: .3rem; }

.authors__cta { margin-top: var(--space-lg); display: flex; flex-wrap: wrap; gap: var(--space-sm); }

/* стрічка карток */
.authors__list {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(272px, 300px); align-items: stretch;
  gap: clamp(.8rem, 1.6vw, 1.15rem);
  margin-top: var(--space-xl); padding-block: .5rem .8rem;
  overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: thin; scrollbar-color: oklch(100% 0 0 / .3) transparent;
}
.authors__list::-webkit-scrollbar { height: 8px; }
.authors__list::-webkit-scrollbar-thumb { background: oklch(100% 0 0 / .28); border-radius: 99px; }
/* сітка — на сторінці авторів */
.authors--grid .authors__list {
  grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  grid-auto-columns: auto; overflow: visible; scroll-snap-type: none;
}

.author {
  position: relative; scroll-snap-align: start; height: 100%;
  display: flex; flex-direction: column; gap: .7rem;
  padding: 1rem 1.1rem 1.15rem;
  border-radius: var(--radius-lg);
  background: oklch(100% 0 0 / .06); border: 1px solid oklch(100% 0 0 / .13);
  backdrop-filter: blur(8px);
  transition: transform var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.author[hidden] { display: none; }
.author:hover { transform: translateY(-3px); background: oklch(100% 0 0 / .1); border-color: oklch(100% 0 0 / .22); }
.author__head { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.author__ava {
  width: 48px; height: 48px; flex: none; border-radius: 50%; object-fit: cover;
  border: 2px solid oklch(100% 0 0 / .25); background: var(--paper-3);
}
.author__id { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: .28rem; }
.author__name {
  font-family: var(--font-display); font-weight: 700; font-size: var(--text-base);
  letter-spacing: -.02em; color: var(--on-dark); white-space: nowrap;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis;
}
.author__rate {
  display: inline-flex; align-items: center; gap: .2rem; flex: none;
  font-weight: 800; font-size: var(--text-xs); color: var(--ink);
  background: var(--lime); border-radius: var(--radius-pill); padding: .2rem .5rem;
}
.author__rate svg { width: 12px; height: 12px; }
.author__spec {
  align-self: flex-start; max-width: 100%;
  font-size: var(--text-xs); font-weight: 600; color: var(--on-dark-2);
  background: oklch(100% 0 0 / .08); border-radius: var(--radius-pill); padding: .28rem .7rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.author__stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: .55rem .9rem;
  margin-top: auto; padding-top: .85rem; border-top: 1px solid oklch(100% 0 0 / .1);
}
.author__stats span { display: flex; flex-direction: column; font-size: 10.5px; line-height: 1.3; color: var(--on-dark-2); }
.author__stats b { font-size: var(--text-lg); font-weight: 800; color: var(--on-dark); line-height: 1.1; letter-spacing: -.02em; }

.authors__note { margin-top: var(--space-md); text-align: right; font-size: var(--text-xs); color: var(--on-dark-2); font-style: italic; }

@media (max-width: 560px) {
  .authors__list { grid-auto-columns: minmax(236px, 76vw); }
  .authors--grid .authors__list { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
}
@media (max-width: 560px) {
  .authors__cta { flex-direction: column; align-items: stretch; }
  .authors__cta .btn { width: 100%; white-space: normal; text-align: center; }
}

/* ============ Заявка: Telegram — головний CTA, форма — додатковий канал ============ */
.lead > * { min-width: 0; }
.lead { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; text-align: left; }
.lead h2 { margin-inline: 0; font-size: clamp(2rem, 1.2rem + 2.3vw, 3.3rem); }
.lead .lead__main p { margin-inline: 0; }
.lead__main .hero__cta { margin-top: 0; }
.lead__points { display: grid; gap: .6rem; margin: 0 0 var(--space-xl); padding: 0; list-style: none; color: var(--on-dark); font-weight: 600; }
.lead__points li { display: flex; gap: .6rem; align-items: center; }
.lead__points .i { width: 1.1rem; height: 1.1rem; color: var(--lime); flex: none; }
.lead__alt { font-size: var(--text-sm) !important; margin: var(--space-md) 0 0 !important; color: var(--on-dark-2); }
.lead__alt a { color: var(--on-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
/* картка з конструктором висока — ілюстрація заповнює вільне місце під кнопкою, а не губиться */
.lead__art { display: block; width: min(100%, clamp(300px, 32vw, 480px)); height: auto; margin-top: var(--space-xl); }
.btn .i-tg { width: 1.25em; height: 1.25em; }

.lead__card { background: var(--paper); color: var(--ink); border-radius: var(--radius-xl); padding: clamp(1.25rem, 2.6vw, 2rem); box-shadow: 0 30px 80px -40px oklch(10% 0.03 292 / .8); }
.lead__card h3 { font-family: var(--font-display); font-size: var(--text-xl); line-height: 1.15; }
.lead__card > p { color: var(--ink-2) !important; font-size: var(--text-base) !important; margin: .4rem 0 var(--space-lg) !important; max-width: none !important; }

.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.lead-form { align-items: start; }
.lead-form .field { display: grid; gap: .35rem; align-content: start; min-width: 0; margin: 0; padding: 0; border: 0; }
.lead-form p { margin: 0; max-width: none; }
.lead-form .field--full { grid-column: 1 / -1; }
.lead-form label, .lead-form legend { font-size: var(--text-sm); font-weight: 700; color: var(--ink); padding: 0; }
.lead-form input[type="text"], .lead-form input[type="tel"], .lead-form select {
  width: 100%; height: 52px; padding: 0 .95rem; font: 500 var(--text-base)/1 var(--font-body); color: var(--ink);
  background: var(--paper-2); border: 1.5px solid var(--rule); border-radius: var(--radius-md);
  transition: border-color .15s var(--ease-out), box-shadow .15s var(--ease-out), background-color .15s;
}
.lead-form select { appearance: none; padding-right: 2.4rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23483f63' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .85rem center; background-size: 18px; }
.lead-form textarea { width: 100%; padding: .75rem .95rem; font: 500 var(--text-base)/1.45 var(--font-body); color: var(--ink); background: var(--paper-2); border: 1.5px solid var(--rule); border-radius: var(--radius-md); resize: vertical; transition: border-color .15s var(--ease-out), box-shadow .15s var(--ease-out), background-color .15s; }
.lead-form textarea:focus { outline: none; background: var(--paper); border-color: var(--lav); box-shadow: 0 0 0 4px var(--lav-tint); }
.lead-form input::placeholder, .lead-form textarea::placeholder { color: var(--muted); }
.lead-form input:hover, .lead-form select:hover { border-color: var(--lav-soft); }
.lead-form input:focus, .lead-form select:focus { outline: none; background-color: var(--paper); border-color: var(--lav); box-shadow: 0 0 0 4px var(--lav-tint); }
.lead-form .field__err { display: none; margin: 0 !important; max-width: none !important; text-align: left; font-size: var(--text-xs) !important; font-weight: 600; color: oklch(52% 0.19 25) !important; }
.lead-form .field.is-invalid input, .lead-form .field.is-invalid select { border-color: oklch(62% 0.19 25); background-color: oklch(97% 0.02 25); }
.lead-form .field.is-invalid .field__err { display: block; }

.lead-form .chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.lead-form .chip { position: relative; }
.lead-form .chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.lead-form .chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1.1rem; border-radius: var(--radius-pill); border: 1.5px solid var(--rule); background: var(--paper-2); font-weight: 700; font-size: var(--text-sm); transition: all .15s var(--ease-out); }
.lead-form .chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.lead-form .chip input:focus-visible + span { box-shadow: 0 0 0 4px var(--lav-soft); }

.lead-form .btn { grid-column: 1 / -1; margin-top: .3rem; }
.lead-form .btn[disabled] { opacity: .7; cursor: progress; }
.lead-form .consent { display: flex; gap: .6rem; align-items: flex-start; font-size: var(--text-sm); font-weight: 500; color: var(--ink-2); line-height: 1.45; cursor: pointer; }
.lead-form .consent input { flex: none; width: 20px; height: 20px; margin: .1rem 0 0; accent-color: var(--ink); cursor: pointer; }
.lead-form .consent a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.lead-form .field.is-invalid .consent { color: oklch(52% 0.19 25); }

/* Заявку прийнято */
.lead-done { display: grid; gap: .75rem; justify-items: start; }
.lead-done__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--lime); color: var(--ink); }
.lead-done__icon .i { width: 26px; height: 26px; }
.lead-done h3 { font-family: var(--font-display); font-size: var(--text-2xl); line-height: 1.1; margin-top: .25rem; }
.lead-done p { color: var(--ink-2) !important; margin: 0 0 .5rem !important; max-width: none !important; font-size: var(--text-base) !important; }
.lead-form__status { grid-column: 1 / -1; margin: 0 !important; font-size: var(--text-sm) !important; font-weight: 600; text-align: center; color: var(--ink-2) !important; }
.lead-form__status:empty { display: none; }
.lead-form__status.is-error { color: oklch(52% 0.19 25) !important; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (min-width: 961px) and (max-width: 1200px) {
  .lead-form { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .lead { grid-template-columns: minmax(0, 1fr); }
  .lead__art { display: none; }
}
@media (max-width: 520px) {
  .lead { padding: 2.25rem 1rem 1rem; border-radius: var(--radius-xl); }
  .lead__card { margin-inline: -.25rem; padding: 1.35rem 1rem 1.1rem; }
  .lead-form { grid-template-columns: minmax(0, 1fr); }
  .lead__main .btn { width: 100%; }
}


/* ============ Спливаюче сповіщення «нове звернення» ============ */
.notice {
  position: fixed; z-index: 60; right: var(--space-lg); bottom: var(--space-lg);
  display: flex; align-items: center; gap: .7rem;
  width: min(320px, calc(100vw - 2 * var(--space-md)));
  padding: .8rem .9rem;
  background: oklch(100% 0 0 / .86); backdrop-filter: blur(14px);
  border: 1px solid var(--rule); border-radius: var(--radius-md);
  box-shadow: 0 18px 46px -22px oklch(30% 0.06 292 / .55);
  opacity: 0; transform: translateY(14px);
  transition: opacity .26s var(--ease-out), transform .26s var(--ease-out);
}
.notice.is-in { opacity: 1; transform: none; }
.notice__icon {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: 50%; background: var(--lime); color: var(--ink);
}
.notice__icon svg { width: 17px; height: 17px; }
.notice__body { min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.notice__title { font-size: var(--text-sm); font-weight: 700; color: var(--ink); line-height: 1.25; }
.notice__meta { font-size: var(--text-xs); color: var(--muted); white-space: pre-line; }
.notice__x {
  flex: none; margin-left: auto; width: 26px; height: 26px; border: 0; border-radius: 50%;
  background: transparent; color: var(--muted); font-size: 17px; line-height: 1; cursor: pointer;
}
.notice__x:hover { background: var(--paper-2); color: var(--ink); }
@media (max-width: 520px) {
  .notice { right: var(--space-md); left: var(--space-md); bottom: var(--space-md); width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .notice { transition: none; }
}

/* ============ Форма відгуку ============ */
.review-cta { margin-top: var(--space-xl); display: flex; flex-direction: column; align-items: center; gap: .6rem; }
.review-cta__hint { font-size: var(--text-sm); color: var(--muted); }
.rev {
  width: min(560px, 100%); margin-inline: auto; text-align: left;
  display: grid; gap: .9rem; padding: clamp(1.1rem, 2.4vw, 1.6rem);
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.rev .field { display: grid; gap: .35rem; }
.rev label { font-size: var(--text-sm); font-weight: 700; color: var(--ink); }
.rev__opt { margin-left: .35rem; font-weight: 500; color: var(--muted); }
.rev input[type="text"], .rev select, .rev textarea {
  width: 100%; padding: .7rem .9rem; font: 500 var(--text-base)/1.45 var(--font-body); color: var(--ink);
  background: var(--paper-2); border: 1.5px solid var(--rule); border-radius: var(--radius-md);
  transition: border-color .15s var(--ease-out), box-shadow .15s var(--ease-out), background-color .15s;
}
.rev input[type="text"], .rev select { height: 48px; padding-block: 0; }
.rev textarea { resize: vertical; }
.rev input:focus, .rev select:focus, .rev textarea:focus {
  outline: none; background: var(--paper); border-color: var(--lav); box-shadow: 0 0 0 4px var(--lav-tint);
}
.rev .field.is-invalid input, .rev .field.is-invalid textarea { border-color: oklch(62% 0.19 25); background: oklch(97% 0.02 25); }
.rev .field__err { display: none; margin: 0; font-size: var(--text-xs); font-weight: 600; color: oklch(52% 0.19 25); }
.rev .field.is-invalid .field__err { display: block; }
.rev__row { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.rev__label { font-size: var(--text-sm); font-weight: 700; }
.rev__stars { display: flex; gap: .2rem; }
.rev__star {
  width: 34px; height: 34px; display: grid; place-items: center; padding: 0;
  border: 0; border-radius: var(--radius-sm); background: transparent;
  color: var(--rule); cursor: pointer; transition: color .12s var(--ease-out), transform .12s var(--ease-out);
}
.rev__star svg { width: 24px; height: 24px; }
.rev__star:hover { transform: scale(1.08); }
.rev__star.is-on { color: var(--lime-deep); }
.rev__grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.rev__note { margin: 0; font-size: var(--text-xs); color: var(--muted); text-align: center; }
.rev__status { margin: 0; font-size: var(--text-sm); font-weight: 600; text-align: center; color: var(--ink-2); }
.rev__status:empty { display: none; }
.rev__status.is-error { color: oklch(52% 0.19 25); }
.rev-done {
  width: min(560px, 100%); margin-inline: auto; display: grid; justify-items: center; gap: .6rem;
  padding: clamp(1.4rem, 3vw, 2rem); text-align: center;
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
.rev-done__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--lime); color: var(--ink); }
.rev-done__icon svg { width: 25px; height: 25px; }
.rev-done h3 { font-family: var(--font-display); font-size: var(--text-xl); line-height: 1.2; max-width: 22ch; }
.rev-done p { color: var(--ink-2); font-size: var(--text-sm); margin: 0; }
.rev-done .btn { margin-top: .4rem; }
@media (max-width: 520px) { .rev__grid { grid-template-columns: 1fr; } }

/* ============ Юридичні сторінки ============ */
.legal { max-width: 74ch; margin-inline: auto; font-size: var(--text-base); line-height: 1.65; color: var(--ink-2); }
.legal h2 { font-size: var(--text-xl); color: var(--ink); margin: var(--space-xl) 0 var(--space-sm); }
.legal p { margin: 0 0 .7rem; }
.legal ul { margin: 0 0 .9rem 1.2rem; padding: 0; }
.legal li { margin-bottom: .35rem; }
.legal__n { color: var(--ink); font-weight: 700; margin-right: .2rem; }

/* ---------- Відео «про нас» ---------- */
.split--video { grid-template-columns: auto minmax(0, 1fr); }
.vid {
  position: relative; width: min(100%, 300px); margin-inline: auto; aspect-ratio: 9 / 16;
  border-radius: var(--radius-xl); overflow: hidden; background: oklch(97.5% 0.018 90);
  border: 1px solid var(--rule); box-shadow: var(--shadow-lg);
}
.vid__el { display: block; width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.vid__sound {
  position: absolute; left: 0; right: 0; bottom: 14px; margin-inline: auto;
  width: -webkit-max-content; width: max-content; max-width: calc(100% - 24px);
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem; white-space: nowrap;
  padding: .55rem .95rem; border: 0; border-radius: var(--radius-pill); cursor: pointer;
  background: var(--paper-ink); color: var(--on-dark); font: 700 var(--text-sm)/1 var(--font-body, inherit);
  box-shadow: var(--shadow-md);
}
.vid__sound svg { width: 18px; height: 18px; flex-shrink: 0; }
.vid__sound .vid__wave { display: none; }
.vid__sound[aria-pressed="true"] .vid__wave { display: inline; }
.vid__sound[aria-pressed="true"] .vid__mute { display: none; }
.vid__play {
  position: absolute; inset: 0; margin: auto; width: 68px; height: 68px; display: none; place-items: center;
  border: 0; border-radius: 50%; cursor: pointer; background: var(--lime); color: var(--ink); box-shadow: var(--shadow-lime);
}
.vid__play svg { width: 30px; height: 30px; margin-left: 3px; }
.vid.is-paused .vid__play { display: grid; }
.vid__sound:focus-visible, .vid__play:focus-visible { outline: 3px solid var(--lav-deep); outline-offset: 3px; }
.vid-h { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.5rem); margin-top: var(--space-sm); }
.vid-lede { font-size: var(--text-lg); margin: var(--space-md) 0 var(--space-lg); max-width: 46ch; }
/* Відео — головне; скриншот Instagram менший, злегка нахилений і визирає з-за відео зліва */
.vid-pair { --card-h: clamp(380px, 37vw, 533px); display: flex; align-items: center; }
.vid-pair .vid { position: relative; z-index: 2; flex: none; width: auto; height: var(--card-h); margin: 0; }
.insta {
  position: relative; z-index: 1; flex: none; display: block;
  height: calc(var(--card-h) * .74); aspect-ratio: 600 / 1165;
  order: -1;                                  /* скриншот ліворуч і позаду — відео ближче до тексту й центру екрана */
  margin-right: -1.6rem; transform: rotate(-5deg); transform-origin: 70% 60%;
  border-radius: var(--radius-lg); overflow: hidden; background: #0c0f14;
  border: 1px solid var(--rule); box-shadow: var(--shadow-md);
}
.insta img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 960px) {
  .split--video { grid-template-columns: 1fr; text-align: center; }
  .split--video .vid-lede { margin-inline: auto; }
  .vid-pair { --card-h: 460px; justify-content: center; }
}
@media (max-width: 560px) {
  /* на телефоні обидві картки вміщаються в ширину екрана: відео велике, скриншот малий позаду */
  .vid-pair { --card-h: 400px; }
  .insta { height: calc(var(--card-h) * .7); margin-right: -2.6rem; }
}

/* ---------- Конструктор замовлення (iframe з CRM) ---------- */
.lead-order { min-height: 420px; }                 /* місце під iframe, щоб картка не стрибала */
.lead-order iframe { border-radius: var(--radius-md); }
.lead-order:has(.lead-order__fail) { min-height: 0; }
.lead-order__fail { color: var(--ink-2); margin-bottom: var(--space-md); }
