:root {
  --sand: #f7f0e6;
  --sand-2: #efe3d3;
  --paper: #fffaf3;
  --peach: #f3d5c3;
  --coral: #d9705f;
  --coral-dark: #c25a4a;
  --ocean: #2f5d62;
  --ocean-2: #4f8a8b;
  --sea: #cfe3e0;
  --ink: #2e2a26;
  --muted: #6d645b;
  --line: #e6d8c6;
  --radius: 22px;
  --shadow: 0 18px 40px -26px rgba(46, 42, 38, .45);
  --serif: "Lora", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, sans-serif;
  --hand: "Caveat", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font: 17px/1.6 var(--sans);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -.01em; line-height: 1.2; margin: 0; }
h1 { font-size: clamp(32px, 5vw, 52px); }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: 21px; }
p { margin: 0 0 1em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
section { padding: 72px 0; }
.eyebrow {
  display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ocean);
}
.pill {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--ocean); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
}
.wave { display: block; width: 110px; height: 14px; margin: 14px 0 0; color: var(--ocean-2); }
.wave.coral { color: var(--coral); }
.lead { font-size: 19px; color: var(--muted); max-width: 600px; }
.muted { color: var(--muted); }
.hand { font-family: var(--hand); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 26px; border-radius: 999px; border: 0; cursor: pointer;
  font: 700 16px/1.2 var(--sans); text-decoration: none; text-align: center;
  transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-main { background: var(--coral); color: #fff; box-shadow: var(--shadow); }
.btn-main:hover { background: var(--coral-dark); }
.btn-ghost { background: transparent; color: var(--ocean); border: 1.5px solid rgba(47, 93, 98, .35); }
.btn-ghost:hover { background: rgba(47, 93, 98, .07); }
.btn-ocean { background: var(--ocean); color: #fff; }
.btn small { font-weight: 500; opacity: .9; }

/* header */
.top {
  position: sticky; top: 0; z-index: 20;
  background: rgba(247, 240, 230, .9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.logo { text-decoration: none; line-height: 1.15; }
.logo b { display: block; font: 600 19px var(--serif); }
.logo span { font-size: 13px; color: var(--muted); }
.nav { display: flex; gap: 26px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.top .btn { padding: 11px 18px; font-size: 14px; }
@media (max-width: 900px) { .nav { display: none; } }
@media (max-width: 420px) { .top .btn { padding: 10px 14px; font-size: 13px; } .logo span { display: none; } }

/* hero */
.hero { padding: 56px 0 72px; background: linear-gradient(160deg, var(--paper) 0%, var(--sand) 45%, var(--peach) 120%); }
.hero .hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { margin: 14px 0 0; }
.hero .lead { margin: 22px 0 30px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 14px; font-size: 14px; color: var(--muted); }
.photo { position: relative; max-width: 430px; justify-self: end; width: 100%; }
.photo img { width: 100%; height: auto; aspect-ratio: 4/5; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow); }
.photo .sticker {
  position: absolute; top: 18px; left: -14px; transform: rotate(-4deg);
  background: var(--peach); padding: 8px 18px; border-radius: 16px; box-shadow: var(--shadow);
  font: 600 27px var(--hand); color: var(--ink);
}
.photo .belka {
  position: absolute; right: -10px; bottom: 22px; transform: rotate(3deg);
  background: #fff; padding: 10px 16px; border-radius: 16px; box-shadow: var(--shadow);
  font-size: 14px; max-width: 220px;
}
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 56px; }
.fact { background: rgba(255, 250, 243, .8); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; font-size: 14px; color: var(--muted); }
.fact b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }
@media (max-width: 900px) {
  .hero .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .photo { max-width: 420px; margin: 0 auto; width: 100%; }
  .facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) { .hero .photo { order: -1; max-width: 340px; justify-self: start; } .hero .photo img { aspect-ratio: 1/1; object-position: 50% 12%; } .hero .photo .sticker { top: auto; bottom: 14px; font-size: 23px; } }
@media (max-width: 520px) { .facts { grid-template-columns: 1fr; } .photo .sticker { left: 8px; } .photo .belka { right: 8px; } }

/* cards */
.head { max-width: 720px; margin-bottom: 36px; }
.head h2 { margin-top: 10px; }
.head p { margin-top: 14px; color: var(--muted); }
.grid { display: grid; gap: 16px; }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .g4, .g3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .g4, .g3, .g2 { grid-template-columns: 1fr; } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }
.topic { background: var(--paper); border-radius: 18px; padding: 20px 22px; border-left: 4px solid var(--ocean-2); }
.topic b { display: block; font-size: 16px; margin-bottom: 4px; }
.topic span { font-size: 14px; color: var(--muted); }
.topic a { font-size: 14px; color: var(--coral-dark); font-weight: 700; text-decoration: none; display: inline-block; margin-top: 8px; }

.band-white { background: var(--paper); }
.band-sea { background: var(--sea); }
.band-ocean { background: var(--ocean); color: #fff; }
.band-ocean .muted, .band-ocean .head p { color: rgba(255, 255, 255, .82); }
.band-ocean .eyebrow { color: var(--peach); }

/* about */
.about { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: start; }
.about img { border-radius: 24px; aspect-ratio: 4/5; object-fit: cover; box-shadow: var(--shadow); }
.about blockquote {
  margin: 26px 0; padding: 20px 24px; border-radius: 18px; background: var(--sand);
  font: italic 20px/1.45 var(--serif);
}
.timeline { margin-top: 26px; display: grid; gap: 10px; }
.timeline div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.timeline b { color: var(--coral-dark); font-family: var(--serif); }
@media (max-width: 800px) { .about { grid-template-columns: 1fr; } .about img { max-width: 360px; } .timeline div { grid-template-columns: 1fr; gap: 2px; } }

/* steps */
.steps { counter-reset: s; }
.step { position: relative; padding-top: 58px; }
.step::before {
  counter-increment: s; content: counter(s);
  position: absolute; top: 20px; left: 24px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--coral); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 15px;
}
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
@media (max-width: 700px) { .split { grid-template-columns: 1fr; } }

/* price */
.prices { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.price { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 28px; }
.price .sum { font: 600 34px var(--serif); margin: 10px 0 4px; }
.price .sum small { font: 500 17px var(--sans); color: var(--muted); }
.price ul { margin: 16px 0 22px; padding-left: 18px; color: var(--muted); font-size: 15px; }
.price li { margin-bottom: 6px; }
.price.free { background: var(--peach); }
@media (max-width: 700px) { .prices { grid-template-columns: 1fr; } }

/* teens */
.teens { background: var(--peach); border-radius: 28px; padding: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.teens h2 { font-size: clamp(24px, 3vw, 32px); }
.qa b { display: block; margin-top: 14px; }
.qa span { color: var(--ink); opacity: .8; font-size: 15px; }
@media (max-width: 800px) { .teens { grid-template-columns: 1fr; padding: 28px 22px; } }

/* articles */
.post { background: var(--paper); border-radius: var(--radius); overflow: hidden; text-decoration: none; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .15s; }
.post:hover { transform: translateY(-2px); }
.post img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.post div { padding: 18px 20px 22px; }
.post h3 { font-size: 18px; }
.post p { font-size: 14px; color: var(--muted); margin: 8px 0 0; }

/* faq */
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--coral); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 12px 0 0; color: var(--muted); font-size: 15px; }

/* form */
.book { display: grid; grid-template-columns: 1.15fr .85fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .book { grid-template-columns: 1fr; } }
form.lead-form { background: #fff; border-radius: 26px; padding: 30px; box-shadow: var(--shadow); color: var(--ink); }
.field { margin-bottom: 16px; }
.field > label, .field > .lbl { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.field input[type=text], .field input[type=tel], .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper);
  font: 16px var(--sans); color: var(--ink);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ocean-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 10px 16px; border-radius: 999px; background: var(--sand); font-size: 15px; cursor: pointer; border: 1.5px solid transparent; }
.chips input:checked + span { background: var(--ocean); color: #fff; }
.chips input:focus-visible + span { border-color: var(--coral); }
.hint { font-size: 13px; color: var(--muted); margin-top: 6px; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 6px 0 18px; }
.agree input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--ocean); flex: none; }
.form-msg { margin-top: 12px; font-size: 15px; }
.form-msg.err { color: var(--coral-dark); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.done { text-align: center; padding: 30px 10px; }
.done h3 { font-size: 26px; margin-bottom: 10px; }
.direct { background: rgba(255, 255, 255, .1); border-radius: 22px; padding: 24px; }
.direct a { color: #fff; font-weight: 700; }
.direct p { margin: 0 0 10px; }
.crisis { margin-top: 16px; font-size: 14px; background: rgba(255, 255, 255, .08); border-radius: 18px; padding: 18px; color: rgba(255, 255, 255, .85); }

/* footer */
footer { background: var(--sand-2); padding: 44px 0 30px; font-size: 15px; }
footer .wrap > div:first-child { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 28px; }
footer h4 { margin: 0 0 10px; font: 600 17px var(--serif); }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 6px; }
footer a { text-decoration: none; color: var(--muted); }
footer a:hover { color: var(--ink); }
footer .small { margin-top: 28px; font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { footer .wrap > div:first-child { grid-template-columns: 1fr; } }

/* article page */
.article { max-width: 720px; margin: 0 auto; padding: 48px 20px 24px; }
.article .crumbs { font-size: 14px; color: var(--muted); }
.article .crumbs a { color: var(--ocean); }
.article h1 { font-size: clamp(30px, 4.4vw, 44px); margin: 16px 0 22px; }
.article .cover { border-radius: 22px; margin-bottom: 30px; aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.article-body p { font-size: 18px; line-height: 1.75; }
.article-body b { color: var(--ink); }
.author { display: flex; gap: 18px; align-items: center; background: var(--paper); border-radius: 22px; padding: 22px; margin: 40px 0; border: 1px solid var(--line); }
.author img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; flex: none; }
.author p { margin: 0 0 10px; font-size: 15px; color: var(--muted); }
.author .btn { padding: 11px 18px; font-size: 14px; }
@media (max-width: 520px) { .author { flex-direction: column; align-items: flex-start; } }
.more h2 { font-size: 26px; margin-bottom: 18px; }

/* mobile sticky cta */
.mcta { display: none; }
@media (max-width: 700px) {
  .mcta { display: block; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; transition: transform .2s; }
  .mcta .btn { width: 100%; }
  .mcta.hide { transform: translateY(120%); }
  body { padding-bottom: 76px; }
}

.legal { max-width: 760px; margin: 0 auto; padding: 48px 20px; }
.legal h1 { font-size: 34px; margin-bottom: 20px; }
.legal h2 { font-size: 22px; margin: 28px 0 10px; }
.legal p, .legal li { color: var(--muted); }

/* дипломы */
.diplomas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.diplomas a { text-decoration: none; display: block; }
.diplomas a[hidden] { display: none; }
.diplomas img { width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: top; border-radius: 12px; border: 1px solid var(--line); transition: transform .15s; }
.diplomas a:hover img { transform: translateY(-2px); }
.diplomas span { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.3; }
@media (max-width: 700px) { .diplomas { grid-template-columns: 1fr 1fr; } }
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(30, 26, 22, .9); display: none; align-items: center; justify-content: center; flex-direction: column; padding: 56px 12px 20px; touch-action: pan-y; }
.lb.open { display: flex; }
.lb img { max-width: min(96vw, 1400px); max-height: calc(100vh - 150px); border-radius: 10px; user-select: none; -webkit-user-drag: none; }
.lb p { color: #fff; font-size: 14px; margin: 12px 8px 0; text-align: center; max-width: 900px; }
.lb .x, .lb .nav-b { position: absolute; background: #fff; border: 0; border-radius: 50%; width: 44px; height: 44px; font-size: 24px; line-height: 1; cursor: pointer; color: var(--ink); box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.lb .x { top: 12px; right: 14px; }
.lb .nav-b { top: 50%; transform: translateY(-50%); }
.lb .prev { left: 14px; }
.lb .next { right: 14px; }
.lb .count { position: absolute; top: 22px; left: 0; right: 0; text-align: center; color: rgba(255,255,255,.8); font-size: 14px; }
body.lb-lock { overflow: hidden; }
@media (max-width: 600px) { .lb .nav-b { top: auto; bottom: 14px; transform: none; } .lb { padding-bottom: 76px; } }

/* памятка */
.promo { background: var(--sea); border-radius: 28px; padding: 40px; display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: center; }
.promo-pdf { display: block; transform: rotate(-3deg); }
.promo-pdf img { width: 100%; border-radius: 10px; box-shadow: var(--shadow); }
.promo .btn { margin-top: 20px; }
@media (max-width: 760px) { .promo { grid-template-columns: 1fr; padding: 28px 22px; gap: 24px; } .promo-pdf { max-width: 170px; } }
.promo-inline { display: block; margin: 30px 0 0; padding: 18px 22px; border-radius: 18px; background: var(--sea); text-decoration: none; font-size: 16px; color: var(--ink); }
.promo-inline b { color: var(--ocean); }
