/* Таро и восковые отливки — Катерина. Тема: пчелиный воск, свеча, соты. См. DESIGN.md */
:root {
  --bg: oklch(17.5% 0.012 62);
  --surface: oklch(21.5% 0.016 62);
  --surface-2: oklch(25% 0.02 64);
  --ink: oklch(93% 0.018 82);
  --ink-soft: oklch(77% 0.022 76);
  --line: oklch(34% 0.022 66);
  --honey: oklch(79% 0.13 78);
  --honey-hover: oklch(84% 0.12 82);
  --honey-ink: oklch(20% 0.03 62);
  --ember: oklch(66% 0.14 42);

  --font-head: "Prata", Georgia, "Times New Roman", serif;
  --font-body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;

  --s1: .25rem; --s2: .5rem; --s3: .75rem; --s4: 1rem; --s5: 1.5rem;
  --s6: 2rem; --s7: 3rem; --s8: 4.5rem; --s9: 7rem;
  --radius: 8px;
  --wrap: 74rem;
  --measure: 38rem;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font-body);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--honey); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--honey-hover); }
:focus-visible { outline: 2px solid var(--honey); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 400; line-height: 1.15; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 1.5rem + 3vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.5rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 var(--s4); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.measure { max-width: var(--measure); }
.muted { color: var(--ink-soft); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: var(--s4); top: var(--s4); background: var(--surface); color: var(--ink); padding: var(--s2) var(--s4); z-index: 20; }

/* Hex mark — the honeycomb from her wax podcast, used only as a small marker */
.hex { display: inline-block; width: .8em; height: .92em; background: currentColor; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); flex: none; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: var(--s5); padding-block: var(--s4); flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: var(--s3); color: var(--ink); text-decoration: none; }
.brand .hex { color: var(--honey); font-size: 1.3rem; }
.brand span { font-family: var(--font-head); font-size: 1.25rem; line-height: 1.1; }
.brand small { display: block; font-family: var(--font-body); font-size: .82rem; color: var(--ink-soft); }
.nav { display: flex; gap: var(--s5); margin-left: auto; flex-wrap: wrap; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-size: .98rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--honey); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); padding: .85rem 1.4rem; border-radius: 999px; font: 500 1rem/1.2 var(--font-body); text-decoration: none; border: 1px solid transparent; transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.btn-primary { background: var(--honey); color: var(--honey-ink); }
.btn-primary:hover { background: var(--honey-hover); color: var(--honey-ink); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--honey); color: var(--honey); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); }

/* Sections */
section { padding-block: var(--s8); }
section + section { border-top: 1px solid var(--line); }
.section-head { max-width: 44rem; margin-bottom: var(--s6); }
.section-head p { color: var(--ink-soft); margin-top: var(--s3); }

/* Hero */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: var(--s7); align-items: center; }
.hero .lead { font-size: 1.2rem; color: var(--ink-soft); margin-block: var(--s5) var(--s6); max-width: 35rem; }
.hero .trust { margin-top: var(--s5); display: flex; gap: var(--s3); align-items: center; color: var(--ink-soft); font-size: .95rem; }
.hero .trust img { width: 3.25rem; height: 3.25rem; border-radius: 50%; object-fit: cover; }

.facts { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s5); }
.facts h2 { font-size: 1.25rem; margin-bottom: var(--s4); }
.facts dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: var(--s2) var(--s4); font-size: .98rem; }
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; }

/* Offer list: rows, priced, varying weight */
.offers { display: grid; gap: 0; }
.offer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s2) var(--s6); padding-block: var(--s5); border-top: 1px solid var(--line); align-items: baseline; }
.offer:last-child { border-bottom: 1px solid var(--line); }
.offer h3 { display: flex; align-items: center; gap: var(--s3); }
.offer h3 .hex { color: var(--honey); font-size: .7rem; }
.offer p { color: var(--ink-soft); grid-column: 1; max-width: 42rem; margin: 0; }
.offer .price { grid-column: 2; grid-row: 1; font-weight: 500; white-space: nowrap; text-align: right; }
.offer .price small { display: block; font-weight: 400; color: var(--ink-soft); font-size: .88rem; }
.offer.featured { background: var(--surface); border: 1px solid var(--honey); border-radius: var(--radius); padding: var(--s5); margin-block: var(--s4); }
.offer.featured + .offer { border-top: 0; }
.tag { display: inline-block; font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--honey); margin-bottom: var(--s2); }

/* Feature split (wax teaser) */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s7); align-items: start; }
.checklist { list-style: none; margin: var(--s5) 0 0; padding: 0; display: grid; gap: var(--s3); }
.checklist li, .creds li { position: relative; padding-left: 1.4rem; }
.checklist li .hex, .creds li .hex { position: absolute; left: 0; top: .55em; color: var(--honey); font-size: .6rem; }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s6); }
.panel h3 { margin-bottom: var(--s4); }

/* Steps (real sequence) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s6); counter-reset: s; }
.steps li { counter-increment: s; border-top: 1px solid var(--honey); padding-top: var(--s4); }
.steps li::before { content: counter(s); display: block; font-family: var(--font-head); font-size: 2rem; color: var(--honey); line-height: 1; margin-bottom: var(--s3); }
.steps h3 { font-size: 1.15rem; margin-bottom: var(--s2); }
.steps p { color: var(--ink-soft); font-size: .98rem; }

/* Cases & reviews */
.cases { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--s6); }
.case { margin: 0; padding: var(--s5) 0; border-top: 1px solid var(--line); }
.case blockquote { margin: 0; }
.case p { font-family: var(--font-head); font-size: 1.3rem; line-height: 1.45; }
.case figcaption { margin-top: var(--s3); color: var(--ink-soft); font-size: .95rem; }
.case.big p { font-size: clamp(1.4rem, 1.15rem + 1vw, 1.85rem); }

/* About */
.about { display: grid; grid-template-columns: 10rem minmax(0, 1fr); gap: var(--s6); align-items: start; }
.avatar { width: 10rem; height: 10rem; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.creds { list-style: none; margin: var(--s5) 0 0; padding: 0; display: grid; gap: var(--s2); }

/* FAQ */
.faq { max-width: 50rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: var(--s4) 0; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: var(--s4); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--honey); font-size: 1.3rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding-bottom: var(--s5); color: var(--ink-soft); max-width: var(--measure); }

/* CTA band */
.cta { background: var(--surface); }
.cta .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: var(--s6); align-items: center; }

/* Course blocks */
.course { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: var(--s7); }
.course + .course { margin-top: var(--s8); padding-top: var(--s8); border-top: 1px solid var(--line); }
.course .meta { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); color: var(--ink-soft); margin-block: var(--s4) var(--s5); font-size: .98rem; }
.program { list-style: none; margin: 0; padding: 0; }
.program li { padding: var(--s3) 0; border-top: 1px solid var(--line); }
.program li strong { font-weight: 500; }
.program li span { display: block; color: var(--ink-soft); font-size: .95rem; }

/* Article */
.crumbs { font-size: .92rem; color: var(--ink-soft); padding-top: var(--s5); }
.crumbs a { color: var(--ink-soft); }
.page-hero { padding-block: var(--s6) var(--s8); }
.page-hero h1 { max-width: 48rem; }
.page-hero .lead { font-size: 1.2rem; color: var(--ink-soft); margin-block: var(--s5) var(--s6); max-width: 40rem; }
.prose { max-width: var(--measure); }
.prose h2 { margin: var(--s7) 0 var(--s4); }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: var(--s2); }

/* Footer */
.site-footer { padding-block: var(--s7) var(--s9); border-top: 1px solid var(--line); font-size: .95rem; color: var(--ink-soft); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s6); }
.site-footer h2 { font-family: var(--font-body); font-size: .95rem; font-weight: 600; color: var(--ink); margin-bottom: var(--s3); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.site-footer a { color: var(--ink-soft); }
.site-footer a:hover { color: var(--honey); }
.disclaimer { margin-top: var(--s6); padding-top: var(--s5); border-top: 1px solid var(--line); font-size: .9rem; max-width: 52rem; }

/* Mobile sticky booking bar */
.mbar { display: none; }

@media (max-width: 900px) {
  .hero-grid, .split, .cases, .course, .cta .wrap, .footer-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  section { padding-block: var(--s7); }
}
@media (max-width: 600px) {
  body { font-size: 1rem; }
  .nav { gap: var(--s4); margin-left: 0; width: 100%; }
  .nav .btn { display: none; }
  .steps { grid-template-columns: 1fr; }
  .offer { grid-template-columns: 1fr; }
  .offer .price { grid-column: 1; grid-row: auto; text-align: left; }
  .about { grid-template-columns: 1fr; }
  .avatar { width: 7.5rem; height: 7.5rem; }
  .mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; gap: var(--s2); padding: var(--s3) 1.25rem calc(var(--s3) + env(safe-area-inset-bottom)); background: var(--bg); border-top: 1px solid var(--line); }
  .mbar .btn { flex: 1; padding: .75rem 1rem; }
}

/* ===== v2: продукты, демо, тарифы, карусели, видео ===== */
.hero-photo { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.hero .sub { color: var(--ink-soft); margin-top: var(--s5); font-size: .98rem; }

/* Two ways: personal readings vs courses */
.paths { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s6); }
.path { padding: var(--s6); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; gap: var(--s4); }
.path.alt { background: var(--surface); }
.path p { color: var(--ink-soft); margin: 0; }
.path .btn { align-self: flex-start; margin-top: auto; }

/* Product rows on home / catalog */
.products { display: grid; }
.product { display: grid; grid-template-columns: 11rem minmax(0, 1fr) auto; gap: var(--s5); padding-block: var(--s5); border-top: 1px solid var(--line); align-items: center; }
.product:last-child { border-bottom: 1px solid var(--line); }
.product img { width: 11rem; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 6px; }
.product h3 { margin-bottom: var(--s2); }
.product h3 a { color: var(--ink); text-decoration: none; }
.product h3 a:hover { color: var(--honey); }
.product p { color: var(--ink-soft); margin: 0; }
.product .meta { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); font-size: .92rem; color: var(--ink-soft); margin-top: var(--s2); }
.product .go { text-align: right; white-space: nowrap; }
.product .go strong { display: block; font-weight: 500; margin-bottom: var(--s2); }

/* Demo block */
.demo { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--s6); align-items: start; }
.player { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; aspect-ratio: 16 / 9; }
.player.vertical { aspect-ratio: 9 / 16; max-width: 22rem; }
.player img, .player iframe, .player video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.player > button { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; background: transparent; cursor: pointer; color: var(--ink); font: inherit; }
.player .play { position: absolute; left: 50%; top: 50%; width: 4.5rem; height: 4.5rem; margin: -2.25rem 0 0 -2.25rem; border-radius: 50%; background: var(--honey); display: grid; place-items: center; }
.player .play::before { content: ""; border-style: solid; border-width: .75rem 0 .75rem 1.2rem; border-color: transparent transparent transparent var(--honey-ink); margin-left: .25rem; }
.player .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: var(--s3) var(--s4); background: oklch(15% 0.01 62 / .85); font-size: .92rem; text-align: left; }
.soon { margin-top: var(--s3); padding: var(--s3) var(--s4); border: 1px solid var(--honey); border-radius: 6px; font-size: .95rem; color: var(--ink); }
.audio-card { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s5); background: var(--surface); }
.audio-card .row { display: grid; grid-template-columns: 3.5rem 1fr; gap: var(--s4); align-items: center; }
.audio-card .play-sm { width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--honey); border: 0; cursor: pointer; display: grid; place-items: center; }
.audio-card .play-sm::before { content: ""; border-style: solid; border-width: .55rem 0 .55rem .9rem; border-color: transparent transparent transparent var(--honey-ink); margin-left: .2rem; }
.audio-card small { display: block; color: var(--ink-soft); }
.excerpt { border-left: 2px solid var(--honey); padding-left: var(--s5); }
.excerpt h3 { margin-bottom: var(--s3); }
.excerpt p { color: var(--ink-soft); }
.excerpt .fade { position: relative; max-height: 24rem; overflow: hidden; }
.excerpt .fade::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6rem; background: linear-gradient(to bottom, oklch(17.5% 0.012 62 / 0), var(--bg)); }
.unlock { margin-top: var(--s6); padding: var(--s5) var(--s6); border: 1px solid var(--honey); border-radius: var(--radius); display: flex; flex-wrap: wrap; gap: var(--s4); align-items: center; justify-content: space-between; }
.unlock p { margin: 0; max-width: 34rem; }

/* Tariffs */
.tariffs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s5); align-items: stretch; }
.tariff { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s6) var(--s5); display: flex; flex-direction: column; gap: var(--s4); }
.tariff.best { border-color: var(--honey); background: var(--surface); }
.tariff h3 { font-size: 1.3rem; }
.tariff .amount { font-family: var(--font-head); font-size: 2.4rem; line-height: 1; }
.tariff .amount small { font-family: var(--font-body); font-size: .95rem; color: var(--ink-soft); margin-left: var(--s2); }
.tariff ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.tariff li { position: relative; padding-left: 1.3rem; color: var(--ink-soft); }
.tariff li .hex { position: absolute; left: 0; top: .55em; color: var(--honey); font-size: .55rem; }
.tariff li strong { color: var(--ink); font-weight: 500; }
.tariff .btn { margin-top: auto; }
.lang-note { margin-top: var(--s5); color: var(--ink-soft); font-size: .95rem; max-width: 46rem; }

/* Compare table */
.table-scroll { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; min-width: 34rem; max-width: 56rem; }
.compare th, .compare td { padding: var(--s3); border-bottom: 1px solid var(--line); text-align: center; vertical-align: top; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { font-weight: 500; }
.compare td { color: var(--ink-soft); }
.compare .yes { color: var(--honey); }

/* Screenshot carousel */
.shots-nav { display: flex; gap: var(--s2); justify-content: flex-end; margin-bottom: var(--s4); }
.shots-nav button { width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink); font-size: 1.2rem; cursor: pointer; }
.shots-nav button:hover { border-color: var(--honey); color: var(--honey); }
.shots { list-style: none; margin: 0; padding: 0 0 var(--s4); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(13rem, 15rem); gap: var(--s4); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.shots li { scroll-snap-align: start; }
.shots a { display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.shots img { width: 100%; aspect-ratio: 9 / 19.5; object-fit: cover; object-position: top; }

/* Video review */
.video-review { display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: var(--s7); align-items: center; }

@media (max-width: 900px) {
  .paths, .demo, .video-review { grid-template-columns: 1fr; }
  .tariffs { grid-template-columns: 1fr; }
  .product { grid-template-columns: 8rem minmax(0, 1fr); }
  .product img { width: 8rem; }
  .product .go { grid-column: 1 / -1; text-align: left; display: flex; align-items: center; gap: var(--s4); }
  .product .go strong { margin: 0; }
  .player.vertical { margin-inline: auto; width: 100%; }
}
@media (max-width: 600px) {
  .product { grid-template-columns: 1fr; }
  .product img { width: 100%; }
}

/* ===== Лайтбокс для каруселей ===== */
html.lb-open { overflow: hidden; }
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: var(--s7) var(--s8); border: 0; background: oklch(12% 0.01 62 / .92); color: oklch(96% 0.01 80); }
.lightbox::backdrop { background: oklch(12% 0.01 62 / .6); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: var(--s3); max-height: 100%; }
.lightbox img { max-width: min(92vw, 60rem); max-height: calc(100vh - 8rem); width: auto; height: auto; object-fit: contain; border-radius: 6px; }
.lightbox figcaption { white-space: pre-line; max-width: 40rem; text-align: center; font-size: .95rem; line-height: 1.45; }
.lightbox button { position: fixed; width: 3rem; height: 3rem; border-radius: 50%; border: 1px solid oklch(96% 0.01 80 / .35); background: oklch(12% 0.01 62 / .6); color: inherit; font-size: 1.3rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { border-color: oklch(96% 0.01 80 / .8); }
.lightbox button[hidden] { display: none; }
.lightbox .lb-close { top: var(--s4); right: var(--s4); font-size: 1.6rem; }
.lightbox .lb-prev { left: var(--s4); top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: var(--s4); top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: fixed; top: var(--s5); left: 50%; transform: translateX(-50%); font-size: .9rem; opacity: .8; }
.shots a, .gallery a { cursor: zoom-in; }
@media (max-width: 600px) {
  .lightbox { padding: var(--s8) var(--s3); }
  .lightbox img { max-width: 100%; max-height: calc(100vh - 9rem); }
  .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: var(--s4); transform: none; }
}
