/* =========================================================
   Дарья Морозова — психолог онлайн
   Dark base · saturated accents · scroll parallax
   ========================================================= */

/* Fonts are self-hosted: no requests to Google (GDPR). Both are SIL OFL 1.1. */
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/onest-normal-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/onest-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url("fonts/playfair-display-italic-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
  src: url("fonts/playfair-display-italic-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/playfair-display-normal-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/playfair-display-normal-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* surfaces */
  --ink: #100c14;
  --ink-2: #1a1320;
  --ink-3: #251b2c;
  --plum: #2a0f34;
  --dusk: #5a1a4a;      /* wine end of the «Сумерки» gradient on the big CTA blocks */

  /* text */
  --paper: #f7efe6;
  --paper-dim: #c8bbc8;
  --paper-faint: rgba(247, 239, 230, 0.2);
  --line: rgba(247, 239, 230, 0.14);

  /* accents (all pass 4.5:1 with --ink text on top) */
  --ember: #ff5a2c;
  --ember-hot: #ff7445;
  --rose: #ff80ad;
  --saffron: #ffc23d;
  --lagoon: #25c7b3;
  --sky: #6ab8ff;       /* Telegram button only */
  --mint: #4fd68a;      /* WhatsApp button only */

  /* type */
  --font-display: "Playfair Display", "Georgia", serif;
  --font-body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-body: 1.0625rem;
  --fs-lead: clamp(1.125rem, 1rem + 0.5vw, 1.3125rem);
  --fs-h2: clamp(2.25rem, 1.5rem + 3.4vw, 4.5rem);
  --fs-hero: clamp(2rem, 1.1rem + 5vw, 3.75rem);

  /* spacing (8pt) */
  --gutter: clamp(1rem, 4vw, 3rem);
  --section: clamp(5rem, 3rem + 8vw, 10rem);

  --radius: 20px;
  --radius-lg: 32px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --dur-fast: 180ms;
  --dur: 420ms;
  --dur-slow: 900ms;

  --z-deco: 0;
  --z-content: 10;
  --z-dock: 40;
  --z-nav: 50;
  --z-grain: 100;

  color-scheme: dark;
}

/* ---------- base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* film grain over everything */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }

em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
}

:focus-visible {
  outline: 3px solid var(--saffron);
  outline-offset: 3px;
  border-radius: 6px;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: 0.75rem; left: 0.75rem;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--saffron);
  color: var(--ink);
  font-weight: 600;
  border-radius: 12px;
  transform: translateY(-200%);
  transition: transform var(--dur-fast) var(--ease-out);
}
.skip-link:focus { transform: none; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon--lg { width: 2.5rem; height: 2.5rem; }
.icon--xl { width: clamp(4.5rem, 3rem + 5vw, 7rem); height: auto; aspect-ratio: 1; stroke-width: 1.4; }
.icon--step { width: 2rem; height: 2rem; }

/* ---------- type helpers ---------- */
.kicker {
  margin: 0 0 1.25rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--saffron);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--paper-dim);
}
.eyebrow::before {
  content: "";
  width: 2rem;
  height: 1px;
  background: var(--ember);
}

.section-head { max-width: 40rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

.section-title {
  font-family: var(--font-display);
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.section-title em { color: var(--ember); }

.section-lead {
  margin-top: 1.5rem;
  font-size: var(--fs-lead);
  color: var(--paper-dim);
  max-width: 34rem;
}

/* ---------- buttons ---------- */
.btn {
  --bg: transparent;
  --fg: var(--paper);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3rem;
  padding: 0.8rem 1.5rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font: 600 1rem/1.2 var(--font-body);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition:
    transform var(--dur-fast) var(--ease-out),
    background-color var(--dur-fast) ease,
    box-shadow var(--dur) var(--ease-out),
    color var(--dur-fast) ease;
}
.btn:active { transform: scale(0.97); }

.btn--ember { --bg: var(--ember); --fg: var(--ink); box-shadow: 0 0 0 0 rgba(255, 90, 44, 0); }
.btn--ember:hover { --bg: var(--ember-hot); box-shadow: 0 12px 40px -8px rgba(255, 90, 44, 0.65); }

.btn--ink { --bg: var(--ink); --fg: var(--paper); }
.btn--ink:hover { --bg: var(--ink-3); }

/* contact buttons on the ember CTA band: ink fill, no border, text + icon in the service's hue
   (rose Instagram, sky Telegram, mint WhatsApp, saffron e-mail); all ≥ 8:1 on --ink */
.btn--contact { --bg: var(--ink); --fg: var(--hue); }
.btn--contact:hover { --bg: var(--ink-3); }
.btn--ig { --hue: var(--rose); }
.btn--tg { --hue: var(--sky); }
.btn--wa { --hue: var(--mint); }
.btn--mail { --hue: var(--saffron); }

.btn--outline-ink { --fg: var(--ink); border-color: var(--ink); }
.btn--outline-ink:hover { --bg: rgba(16, 12, 20, 0.1); }

.btn--ghost { --fg: var(--paper); border-color: var(--line); margin-top: 2rem; }
.btn--ghost:hover { border-color: var(--paper); }

.btn--small { min-height: 2.5rem; padding: 0.5rem 1.1rem; font-size: 0.9375rem; }
.btn--lg { min-height: 3.5rem; padding: 1rem 1.9rem; font-size: 1.0625rem; }
.btn--block { width: 100%; }

.btn__arrow {
  width: 1.25rem; height: 1.25rem;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform var(--dur) var(--ease-spring);
}
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-nav);
  padding-top: env(safe-area-inset-top);
  transition: background-color var(--dur) ease, border-color var(--dur) ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(16, 12, 20, 0.88);
  border-bottom-color: var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 4.5rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
/* brand mark «Восход», two colours only: saffron sun, rays and reflection; grey horizon (paper at 55%).
   The half disc sits on top of the horizon stroke (base y 19.7 = 20.5 − half the 1.6 stroke), not cut by it */
.wordmark__mark {
  flex: none;
  width: 1.79em; height: 1.79em;
  overflow: visible;
  /* lift the horizon (the sun's centre line, y 20.5/32) to the middle of the lowercase letters:
     measured against the Playfair baseline and x-height (≈0.55em); in em, so it holds in the nav and the footer */
  transform: translateY(-0.12em);
}
.wordmark__ray,
.wordmark__horizon,
.wordmark__glint {
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
}
.wordmark__sun { fill: var(--saffron); }
.wordmark__horizon { stroke: var(--paper); opacity: 0.55; }
.wordmark__ray,
.wordmark__glint { stroke: var(--saffron); }

.nav__links {
  display: none;
  gap: 0.25rem;
  margin-left: auto;
}
.nav__links a {
  display: block;
  padding: 0.5rem 0.85rem;
  font-size: 0.9375rem;
  color: var(--paper-dim);
  text-decoration: none;
  border-radius: 999px;
  transition: color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.nav__links a:hover { color: var(--paper); background: rgba(247, 239, 230, 0.06); }

.nav__cta { display: none; }

.nav__toggle {
  margin-left: auto;
  width: 2.75rem; height: 2.75rem;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
}
.nav__burger,
.nav__burger::before {
  display: block;
  width: 1.1rem; height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform var(--dur) var(--ease-out);
}
.nav__burger { position: relative; transform: translateY(-3px); }
.nav__burger::before { content: ""; position: absolute; top: 6px; }
.nav__toggle[aria-expanded="true"] .nav__burger { transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__burger::before { transform: translateY(-6px) rotate(-90deg); }

.nav-sheet {
  position: fixed;
  inset: calc(4.5rem + env(safe-area-inset-top)) 0 0;
  padding: 2rem var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--ink);
  animation: sheet-in var(--dur) var(--ease-out);
}
.nav-sheet[hidden] { display: none; }
.nav-sheet a:not(.btn) {
  display: block;
  padding: 0.6rem 0;
  font-family: var(--font-display);
  font-size: 2.25rem;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}
@keyframes sheet-in { from { opacity: 0; transform: translateY(-12px); } }

@media (min-width: 960px) {
  .nav__links, .nav__cta { display: flex; }
  .nav__cta { margin-left: 0.5rem; }
  .nav__toggle, .nav-sheet { display: none !important; }
}

/* ---------- hero ---------- */
/* RULE: on the first screen nothing may overlap the nav row. --nav-clear is the band the
   scene must stay below (nav row + air); every hero decoration is positioned against it. */
.hero {
  --nav-clear: calc(4.5rem + env(safe-area-inset-top) + 1.5rem);
  --sun: min(26vw, 6rem);
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: calc(var(--nav-clear) + var(--sun)) 0 2rem;
  overflow: hidden;
  isolation: isolate;
}

.hero__scene {
  position: absolute;
  inset: 0;
  z-index: var(--z-deco);
  pointer-events: none;
  /* parallax pushes the sun down while scrolling: let it dissolve into the page
     instead of being cut by the hero's bottom edge */
  --fade: linear-gradient(to bottom, #000 calc(100% - 12rem), rgba(0, 0, 0, 0.92) calc(100% - 9rem),
    rgba(0, 0, 0, 0.65) calc(100% - 6rem), rgba(0, 0, 0, 0.28) calc(100% - 3rem), transparent);
  -webkit-mask-image: var(--fade);
  mask-image: var(--fade);
}

.sun {
  position: absolute;
  top: calc(var(--nav-clear) - 1rem);
  right: -1.75rem;
  width: var(--sun);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #ffb27a 0%, var(--ember) 38%, #e2306f 78%, #a3125a 100%);
  box-shadow: 0 0 120px 10px rgba(255, 90, 44, 0.35);
  will-change: transform;
}

/* the moon only fits beside the sun on wide screens; on phones it crowds the headline */
.moon {
  display: none;
  position: absolute;
  top: 9rem;
  right: calc(var(--sun) * 0.9 - 12vw);
  width: 6vw;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--saffron);
  box-shadow: 0 0 60px rgba(255, 194, 61, 0.45);
  will-change: transform;
}

.hero__content { position: relative; z-index: var(--z-content); }

/* the H1 (who and what, for search engines) sits above the quote as a kicker */
.hero__kicker { margin-bottom: 0.875rem; }

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.025em;
  text-wrap: pretty;
}
.hero__title em { color: var(--saffron); }
.hero__cite {
  margin: 1rem 0 0;
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  color: var(--paper-dim);
}

.hero__lead {
  max-width: 34rem;
  margin: 1.25rem 0 1.5rem;
  font-size: var(--fs-lead);
  color: var(--paper-dim);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}
.hero__actions .btn { width: 100%; padding-inline: 1rem; font-size: 1rem; }
.hero__note { width: 100%; margin: 0; font-size: 0.9375rem; color: var(--paper-dim); text-align: center; }

/* phones: the sun is a small static disc under the nav; parallax would lift it into the nav row */
@media (max-width: 959.98px) {
  .sun { transform: none !important; }
}

@media (min-width: 640px) {
  .hero__actions .btn { width: auto; padding-inline: 1.9rem; font-size: 1.0625rem; }
  /* the note sits beside the button from here on, so it goes back to the left */
  .hero__note { width: auto; text-align: left; }
}

@media (min-width: 960px) {
  /* full-screen cover: the sun is centred on the screen height, but never higher than the nav
     clearance (the moon's top may touch --nav-clear at most); --sun is also capped by the viewport
     height so the disc never outgrows the screen */
  .hero {
    --sun: min(36vw, 575px, calc(100svh - var(--nav-clear) - 5rem));
    justify-content: center;
    padding: 7rem 0 4rem;
  }
  .sun {
    top: max(calc(var(--nav-clear) + var(--sun) * 0.08), calc(50% - var(--sun) * 0.5));
    right: -7vw;
    width: var(--sun);
  }
  .moon {
    display: block;
    top: max(var(--nav-clear), calc(50% - var(--sun) * 0.58));
    left: auto;
    right: calc(var(--sun) * 0.94 - 7vw);
    width: calc(var(--sun) * 0.12);
  }
  /* the copy takes the left ~55% of the screen; the lead stays at a readable measure */
  .hero__kicker { margin-bottom: 1.25rem; }
  .hero__title { max-width: 56vw; }
  .hero__cite { margin-top: 1.25rem; }
  .hero__lead { max-width: 40rem; margin: 1.75rem 0 2.25rem; }
}

/* ---------- recognition ---------- */
.recognize { padding: calc(var(--section) * 0.6) 0 calc(var(--section) * 0.75); }

.recognize__list { display: grid; gap: clamp(1.25rem, 3vw, 2.25rem); }

.recognize__line {
  font-family: var(--font-display);
  /* desktop: every quote fits one line. The longest is ~25.2em wide and the container tops out at
     1144px, so 3.5vw / 2.75rem always fits from 960px up (nowrap below is just a safety net) */
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--paper-faint);
  transition: color var(--dur-slow) var(--ease-out);
}
.recognize__line span {
  font-style: italic;
  transition: color var(--dur-slow) var(--ease-out);
}
.recognize__line.is-lit { color: var(--paper); }
@media (min-width: 960px) {
  .recognize__line { white-space: nowrap; }
}
.recognize__line.is-lit span { color: var(--c); }
.recognize__answer {
  max-width: 34rem;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding-left: 1.25rem;
  border-left: 2px solid var(--ember);
  font-size: var(--fs-lead);
  color: var(--paper-dim);
}


/* ---------- approach ---------- */
.approach {
  position: relative;
  padding: var(--section) 0;
  background: var(--plum);
  overflow: clip;
  isolation: isolate;
}
.approach__deco { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  will-change: transform;
}
.blob--a { width: 60vw; aspect-ratio: 1; top: -15%; right: -25%; background: #6b1a6e; }
.blob--b { width: 50vw; aspect-ratio: 1; bottom: 5%; left: -25%; background: #3c1b8a; }

.approach .section-title em { color: var(--rose); }

.cards { display: grid; gap: 1.25rem; }

.card {
  --tone: var(--saffron);
  position: relative;
  display: grid;
  gap: 1.75rem;
  padding: clamp(1.5rem, 1rem + 2.5vw, 3.25rem);
  border-radius: var(--radius-lg);
  background: var(--tone);
  color: var(--ink);
  transform-origin: 50% 0;
}
.card--saffron { --tone: var(--saffron); }
.card--rose { --tone: var(--rose); }
.card--lagoon { --tone: var(--lagoon); }

/* dims a card as the next one slides over it */
.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--ink);
  opacity: var(--dim, 0);
  pointer-events: none;
}

.card__top { display: flex; align-items: flex-start; justify-content: space-between; }
.card__num {
  font-family: var(--font-display);
  font-size: clamp(3rem, 2rem + 4vw, 5.5rem);
  font-style: italic;
  line-height: 0.8;
}
.card__title {
  margin-bottom: 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.card__body p { max-width: 36rem; font-size: 1.0625rem; }

.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.tags li {
  padding: 0.35rem 0.85rem;
  border: 1.5px solid rgba(16, 12, 20, 0.5);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
}

/* icon stroke draw-in */
.card .icon path,
.card .icon circle {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.6s var(--ease-out) 0.25s;
}
.card.is-in .icon path,
.card.is-in .icon circle { stroke-dashoffset: 0; }

@media (min-width: 900px) {
  .cards { gap: 2rem; }
  .card {
    position: sticky;
    top: calc(6rem + var(--i, 0) * 1.5rem);
    grid-template-columns: 1fr 1.6fr;
    align-items: start;
    min-height: 26rem;
  }
  .card:nth-child(1) { --i: 0; }
  .card:nth-child(2) { --i: 1; }
  .card:nth-child(3) { --i: 2; }
  .card__top { flex-direction: column; gap: 2.5rem; height: 100%; justify-content: space-between; }
  .card .icon--xl { order: -1; }
}

/* ---------- bilateral moment ---------- */
.bilateral {
  padding: clamp(4.5rem, 8vw, 7rem) 0;
  text-align: center;
  border-bottom: 1px solid var(--line);
  /* the dot's full-width wrapper travels sideways; keep it from widening the page */
  overflow-x: clip;
}
.bilateral__title {
  max-width: 22ch;
  margin: 0 auto;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.5rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.2;
}
/* a comfortable eye-movement range: the text column on phones, at most 40rem wide, centred */
.bilateral__track {
  position: relative;
  width: min(100%, 40rem);
  height: 2px;
  margin: clamp(3rem, 6vw, 4.5rem) auto;
  background: linear-gradient(90deg, transparent, var(--line) 6%, var(--line) 94%, transparent);
}
/* the wrapper is one dot narrower than the track, so translateX(100%) lands the dot at the right end */
.bilateral__dot {
  position: absolute;
  inset: -10px 22px auto 0;
  height: 22px;
  animation: bilateral 1.15s cubic-bezier(0.45, 0, 0.55, 1) infinite alternate;
  animation-play-state: paused;
}
/* pinned to the wrapper's left edge: without left/top Safari puts it at the static position, which the
   section's text-align: center moves to the middle, so the dot would travel centre → right instead of edge → edge */
.bilateral__dot::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--lagoon);
  box-shadow: 0 0 0 8px rgba(37, 199, 179, 0.16), 0 0 40px 6px rgba(37, 199, 179, 0.5);
}
.bilateral.is-in .bilateral__dot { animation-play-state: running; }
@keyframes bilateral {
  from { transform: translateX(0); }
  to { transform: translateX(100%); }
}
.bilateral__caption {
  max-width: 34rem;
  margin: 0 auto;
  color: var(--paper-dim);
}

/* ---------- note: a soft plaque with a line icon (topics, education) ---------- */
.note {
  display: flex;
  gap: 0.85rem;
  max-width: 44rem;
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius);
  background: var(--note-bg, var(--ink-2));
  color: var(--paper);
  font-size: 1.0625rem;
}
.note .icon { flex: none; margin-top: 0.1rem; color: var(--note-icon, var(--saffron)); }

/* ---------- topics ---------- */
.topics { padding: var(--section) 0; }
/* same dark background as the quotes above: one gap, not two stacked section paddings */
.recognize + .topics { padding-top: calc(var(--section) * 0.4); }
.topics { padding-bottom: calc(var(--section) * 0.5); }
.topics .section-title em { color: var(--saffron); }
.topics .section-head { max-width: none; }
/* one line on every screen: the phrase is ~9.8em wide, so the size is also capped by the viewport */
.topics .section-title { white-space: nowrap; font-size: min(var(--fs-h2), calc((100vw - 2 * var(--gutter)) / 10.2)); }

.chips { display: flex; flex-wrap: wrap; gap: 0.625rem; }
.chips li {
  --c: var(--ember);
  padding: 0.7rem 1.15rem;
  border: 1.5px solid var(--c);
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.3;
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.chips li:nth-child(4n + 2) { --c: var(--saffron); }
.chips li:nth-child(4n + 3) { --c: var(--rose); }
.chips li:nth-child(4n + 4) { --c: var(--lagoon); }
@media (hover: hover) {
  .chips li:hover { background: var(--c); color: var(--ink); }
}

.topics__note { margin: clamp(2.5rem, 5vw, 3.5rem) auto 0; --note-icon: var(--rose); }
/* a line break only where the text is wide enough: one sentence per line, no lonely "Я" */
.br-wide { display: none; }
@media (min-width: 700px) { .br-wide { display: inline; } }

/* three themed columns; each column has one accent, so its chips read as a group */
.topics__cols { display: grid; gap: 2.5rem; }
.topics__col--rose { --col: var(--rose); }
.topics__col--saffron { --col: var(--saffron); }
.topics__col--lagoon { --col: var(--lagoon); }
.topics__col .chips li:nth-child(n) { --c: var(--col); }
.topics__group {
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem);
  line-height: 1.15;
  color: var(--col);
}

.topics__col .chips { gap: 0.5rem; }
.topics__col .chips li { padding: 0.45rem 0.85rem; font-size: 0.875rem; }
/* a break inside a group heading is only for the three-column row (e.g. «Жизненные / кризисы») */
.topics__group br { display: none; }

@media (min-width: 960px) {
  .topics__cols { grid-template-columns: repeat(3, 1fr); gap: 0 2rem; }
  .topics__group br { display: inline; }
  /* headings share one row, so the chips of all three columns start on the same line */
  .topics__col { display: grid; grid-row: span 2; grid-template-rows: subgrid; }
  .topics__col .chips { align-self: start; }
}

/* ---------- process ---------- */
.process {
  padding: var(--section) 0;
  background: var(--ink-2);
}
.process .section-title em { color: var(--lagoon); }

.steps-wrap { position: relative; }
.steps { counter-reset: step; display: grid; gap: 2.75rem; }

.steps__track {
  position: absolute;
  top: 0.5rem; bottom: 0.5rem;
  left: 1.25rem;
  width: 2px;
  background: var(--line);
  border-radius: 2px;
}
.steps__fill {
  position: absolute;
  inset: 0;
  background: linear-gradient(var(--ember), var(--saffron), var(--lagoon));
  transform-origin: top;
  transform: scaleY(var(--p, 0));
  border-radius: inherit;
}

.step {
  position: relative;
  padding-left: 4.25rem;
  counter-increment: step;
}
.step .icon--step {
  position: absolute;
  left: 0; top: -0.2rem;
  width: 2.6rem; height: 2.6rem;
  padding: 0.5rem;
  border-radius: 50%;
  background: var(--ink-2);
  border: 1.5px solid var(--line);
  color: var(--paper);
  transition: border-color var(--dur) ease, color var(--dur) ease, background-color var(--dur) ease;
}
.step.is-in .icon--step { border-color: var(--saffron); color: var(--saffron); }
.step h3 {
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem);
}
.step h3::before {
  content: counter(step, decimal-leading-zero) " ";
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--paper-dim);
  vertical-align: 0.5em;
  margin-right: 0.35rem;
}
.step p { color: var(--paper-dim); max-width: 32rem; }
.step .todo { color: var(--saffron); border-bottom: 1px dashed var(--saffron); }

@media (min-width: 960px) {
  .process__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 5rem; }
  .process__head { position: sticky; top: 7rem; align-self: start; }
  .steps { gap: 4rem; }
}

/* ---------- about ---------- */
.about { padding: var(--section) 0; }
/* same background as the topics above: one moderate gap while scrolling on */
.topics + .about { padding-top: calc(var(--section) * 0.4); }
.about__grid { display: grid; gap: 3rem; }

.portrait { margin: 0; max-width: 26rem; }
.portrait__frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px var(--radius-lg) var(--radius-lg);
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, var(--rose), var(--ember) 55%, var(--plum) 100%);
}
.portrait__img {
  position: absolute;
  inset: -6% 0;
  width: 100%;
  height: 112%;
  object-fit: cover;
  z-index: 1;
  will-change: transform;
}
.portrait__fallback { position: absolute; inset: 0; }
.portrait__fallback span {
  position: absolute;
  top: 36%;
  width: 44%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid var(--ink);
}
.portrait__fallback span:first-child { left: 18%; }
.portrait__fallback span:last-child { left: 38%; }
.about .section-title { margin-bottom: 2rem; }
.about .section-title em { color: var(--rose); }
.prose { max-width: 36rem; font-size: 1.0625rem; color: var(--paper-dim); }
.prose p:first-child { color: var(--paper); font-size: var(--fs-lead); }

.creds {
  --creds-pad: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  margin-top: clamp(4rem, 8vw, 6.5rem);
  padding: var(--creds-pad);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--ink-2);
}
.creds__title {
  margin-bottom: 2rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.5rem);
}
.creds__list { display: grid; gap: 0; }
.creds__list li {
  display: grid;
  gap: 0.25rem;
  align-content: start;
  padding: 1.1rem 0 1.1rem 1.75rem;
  border-top: 1px solid var(--line);
  position: relative;
}
.creds__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 1.55rem;
  width: 0.65rem; height: 0.65rem;
  border-radius: 50%;
  background: var(--c);
}
.creds__list strong { font-weight: 600; }
.creds__list span { color: var(--paper-dim); font-size: 0.975rem; }
.creds__list .todo { color: var(--saffron); border-bottom: 1px dashed var(--saffron); justify-self: start; }
/* the card is --ink-2 already, so the plaque steps one tone lighter */
.creds__note { width: fit-content; margin: 2rem auto 0; --note-bg: var(--ink-3); }
.creds__date { margin-top: 0.15rem; font-size: 0.875rem; font-variant-numeric: tabular-nums; }

/* ---------- certificates: a native scroll-snap slider, one certificate in focus ---------- */
.certs {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}
.certs__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.certs__title { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; }
.certs__count { font-size: 0.875rem; color: var(--paper-dim); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* the track bleeds to the card's edges so the neighbours still peek beside the enlarged centre slide;
   --content is the card's inner width, the slide sizes are measured from it */
.certs__track {
  --bleed: var(--creds-pad, 0px);
  --content: calc(100% - 2 * var(--bleed));
  --slide: calc(var(--content) * 0.912);
  --gap: 1rem;
  position: relative;
  display: flex;
  gap: var(--gap);
  margin: 1rem calc(-1 * var(--bleed)) 0;
  padding: 1rem 0 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  border-radius: var(--radius);
}
.certs__track::-webkit-scrollbar { display: none; }
/* spacers so the first and the last certificate can sit in the centre too */
.certs__track::before,
.certs__track::after { content: ""; flex: 0 0 calc((100% - var(--slide)) / 2 - var(--gap)); }
.certs__track:focus-visible { outline: 3px solid var(--saffron); outline-offset: 4px; }

/* the slide itself is never transformed: it is the scroll-snap area, and Chrome snaps to the transformed box,
   so a scaled slide would stop short of the centre and then jump. Scale and shift live on .cert__inner */
.cert {
  flex: 0 0 var(--slide);
  scroll-snap-align: center;
  cursor: pointer;
}
/* main.js sets transform and opacity on .cert__inner every frame from the scroll position (no CSS transition:
   the look follows the distance travelled); without JS nothing sets them and every slide stays at full size */
.cert__inner { margin: 0; }
.cert.is-active { cursor: default; }

/* every scan sits in the same box (square on phones, 4:3 wider up): portrait ones narrower, landscape ones wider, none cropped */
.cert__paper {
  position: relative;
  display: block;
  aspect-ratio: 1;
  border-radius: 6px;
}
/* absolutely placed so a tall scan shrinks into the box instead of stretching it */
.cert__paper img {
  position: absolute;
  inset: 0;
  margin: auto;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  border-radius: 4px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.cert__paper:focus-visible { outline: 3px solid var(--saffron); outline-offset: 4px; }
.cert.is-active .cert__paper { cursor: zoom-in; }

.cert__caption { display: grid; gap: 0.15rem; margin-top: 1rem; text-align: center; }
.cert__caption strong { font-weight: 600; }
.cert__caption span { font-size: 0.875rem; color: var(--paper-dim); }
.cert__caption .todo { color: var(--saffron); border-bottom: 1px dashed var(--saffron); }

.certs__controls { display: flex; align-items: center; justify-content: center; gap: 0.25rem; }
.certs__controls[hidden], .certs__count[hidden] { display: none; }
.certs__arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--paper);
  cursor: pointer;
  transition: border-color var(--dur-fast) ease;
}
.certs__arrow:hover { border-color: var(--paper-dim); }
.certs__arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.certs__dots { display: flex; }
.certs__dots button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.certs__dots button::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--paper-faint);
  transition: width var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
}
.certs__dots button[aria-current="true"]::before { width: 24px; background: var(--ember); }

/* ---------- lightbox: full-screen viewer for the certificates (native <dialog>) ---------- */
html.lb-open { overflow: hidden; }
.lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(16, 12, 20, 0.96);
  color: var(--paper);
  overscroll-behavior: contain;
}
.lightbox[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.lightbox__main { position: relative; display: grid; min-height: 0; }
.lightbox::backdrop { background: rgba(16, 12, 20, 0.6); }
.lightbox__top,
.lightbox__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: max(0.75rem, env(safe-area-inset-top)) var(--gutter) 0.75rem;
}
.lightbox__bottom { justify-content: center; padding: 0.75rem var(--gutter) max(1rem, env(safe-area-inset-bottom)); }
.lightbox__count { font-size: 0.9375rem; color: var(--paper-dim); font-variant-numeric: tabular-nums; }
.lightbox__tools { display: flex; gap: 0.5rem; }
.lightbox__btn {
  display: grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--ink-2);
  color: var(--paper);
  cursor: pointer;
  transition: border-color var(--dur-fast) ease;
}
.lightbox__btn:hover { border-color: var(--paper-dim); }
.lightbox__btn:focus-visible { outline: 3px solid var(--saffron); outline-offset: 3px; }
.lightbox__btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__btn[aria-pressed="true"] [data-lb-plus] { display: none; }
/* prev / next sit at the vertical middle of the stage: over the scan's edges on phones, beside it from 700px */
.lightbox__nav {
  position: absolute;
  top: 50%;
  z-index: 1;
  transform: translateY(-50%);
  background: rgba(16, 12, 20, 0.7);
}
.lightbox__nav--prev { left: var(--gutter); }
.lightbox__nav--next { right: var(--gutter); }
.lightbox__caption { margin: 0; text-align: center; font-size: 0.9375rem; line-height: 1.45; }
.lightbox__caption strong { display: block; font-weight: 600; }
.lightbox__caption span { color: var(--paper-dim); }

.lightbox__stage {
  position: relative;
  min-height: 0;
  overflow: hidden;
  touch-action: none;
  cursor: zoom-in;
}
.lightbox__stage.is-zoomed { cursor: grab; }
.lightbox__stage.is-dragging { cursor: grabbing; }
/* absolutely placed and auto-margined: always fits the stage, whatever the scan's orientation */
.lightbox__img {
  position: absolute;
  inset: 0;
  margin: auto;
  max-width: calc(100% - 2 * var(--gutter));
  max-height: 100%;
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  user-select: none;
  -webkit-user-drag: none;
  transform-origin: center;
  transition: transform 260ms var(--ease-out);
  will-change: transform;
}
.lightbox__stage.is-dragging .lightbox__img { transition: none; }
@media (min-width: 700px) {
  .lightbox__img { max-width: calc(100% - 2 * (var(--gutter) + 48px + 1rem)); }
  .lightbox__nav { background: var(--ink-2); }
}
@media (prefers-reduced-motion: reduce) {
  .lightbox__img { transition: none; }
}

@media (min-width: 700px) {
  .certs__track { --slide: min(calc(var(--content) * 0.72), 39rem); --gap: 2.5rem; }
  .cert__paper { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) {
  .certs__dots button::before { transition: none; }
}

@media (min-width: 900px) {
  /* bottom-aligned: the last line of the text never drops below the photo's lower edge */
  .about__grid { grid-template-columns: 5fr 7fr; gap: 5rem; align-items: end; }
  .about .portrait { max-width: 28rem; }
  .creds__list { grid-template-columns: 1fr 1fr; column-gap: 3rem; }
}

/* ---------- price ---------- */
.price { padding: var(--section) 0; background: var(--ink-2); }
.price .section-title em { color: var(--saffron); }

.offers { display: grid; gap: 1.25rem; }
.offer {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border-radius: var(--radius-lg);
  background: var(--ink-3);
  border: 1px solid var(--line);
}
.offer p { color: var(--paper-dim); }
.offer__label {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.offer .offer__label { color: var(--lagoon); }
.offer__title { font-family: var(--font-display); font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); line-height: 1.1; }
.offer__meta { margin: 0.5rem 0 1.25rem; font-size: 0.9375rem; }
.offer .offer__price {
  margin-bottom: 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  line-height: 1;
  color: var(--paper);
  font-variant-numeric: tabular-nums;
}
.offer .btn { margin-top: auto; }
.offer p:not(:last-child) + .btn { margin-top: 1.5rem; }

/* «Сумерки»: dark plum → wine, the ember button is the only bright spot on the card */
.offer--hot { background: linear-gradient(160deg, var(--plum) 0%, var(--dusk) 100%); border-color: var(--ember); }
.offer--hot .offer__label { color: var(--ember); }

/* «Что понадобится»: title, then the camera icon beside the text; from 700px a strip — title | line | icon + text */
.offer--plain { background: transparent; border-style: dashed; }
.offer--plain .offer__title { margin-bottom: 1rem; }
.offer__need { display: flex; align-items: flex-start; gap: 1rem; }
.offer__need .icon { flex: none; color: var(--lagoon); }

/* the section is --ink-2 already, so the plaque steps one tone lighter */
.price__note { width: fit-content; margin: clamp(2.5rem, 5vw, 3.5rem) auto 0; --note-bg: var(--ink-3); --note-icon: var(--lagoon); }

@media (min-width: 700px) {
  .offers { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  /* no vertical padding on the card itself, so the dividing line runs from its top edge to its bottom edge */
  .offer--plain {
    --pad: clamp(1.5rem, 1rem + 2vw, 2.5rem);
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    padding-block: 0;
  }
  .offer--plain .offer__title { margin: 0; padding: var(--pad) var(--pad) var(--pad) 0; white-space: nowrap; }
  .offer__need {
    align-self: stretch;
    align-items: center;
    gap: 1.25rem;
    padding: var(--pad) 0 var(--pad) var(--pad);
    border-left: 1px dashed var(--line);
  }
}

/* ---------- faq ---------- */
.faq { padding: var(--section) 0; }
.faq .section-title em { color: var(--lagoon); }

.faq__list { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.4rem 0;
  min-height: 3rem;
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  transition: color var(--dur-fast) ease;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--saffron); }
.qa__icon {
  position: relative;
  flex: none;
  width: 2.25rem; height: 2.25rem;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  transition: transform var(--dur) var(--ease-spring), background-color var(--dur) ease, border-color var(--dur) ease;
}
.qa__icon::before,
.qa__icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 0.8rem; height: 1.5px;
  margin: -0.75px 0 0 -0.4rem;
  background: currentColor;
}
.qa__icon::after { transform: rotate(90deg); }
.qa[open] .qa__icon { transform: rotate(45deg); background: var(--saffron); border-color: var(--saffron); color: var(--ink); }
.qa__body { padding: 0 3.5rem 1.6rem 0; color: var(--paper-dim); max-width: 44rem; }
.qa[open] .qa__body { animation: qa-in var(--dur) var(--ease-out); }
@keyframes qa-in { from { opacity: 0; transform: translateY(-6px); } }

@media (min-width: 960px) {
  .faq__grid { display: grid; grid-template-columns: 5fr 7fr; gap: 5rem; align-items: start; }
  .faq__grid .section-head { position: sticky; top: 7rem; }
}

/* ---------- start / final CTA ---------- */
.start {
  position: relative;
  padding: var(--section) 0;
  /* «Сумерки»: the sky right after sunset, from the page's ink down to wine */
  background: linear-gradient(180deg, var(--ink) 0%, var(--plum) 45%, var(--dusk) 100%);
  color: var(--paper);
  overflow: clip;
  isolation: isolate;
}
.start__deco { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.start__ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(247, 239, 230, 0.16);
  will-change: transform;
}
.start__ring--a { width: 70vw; max-width: 760px; aspect-ratio: 1; top: -20%; right: -18%; }
.start__ring--b { width: 52vw; max-width: 560px; aspect-ratio: 1; bottom: -55%; right: -6%; border-color: rgba(255, 90, 44, 0.85); border-width: 3px; }

.start__inner { position: relative; }
/* always two lines: «Первый шаг —» / «просто знакомство» (<br> in the markup). The longer italic line is ~8.7em
   wide, so the size is also capped by the viewport to keep it on one line on narrow phones */
.start__title {
  white-space: nowrap;
  font-family: var(--font-display);
  font-size: min(clamp(2.75rem, 1.5rem + 6vw, 7rem), calc((100vw - 2 * var(--gutter)) / 9));
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.025em;
}
.start__title em { color: var(--ember); }
.start__lead { max-width: 34rem; margin: 1.75rem 0 2.5rem; font-size: var(--fs-lead); }

.start__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.start__actions .btn { width: 100%; }
.start__fine { margin-top: 1.5rem; font-size: 0.9375rem; color: var(--paper-dim); }
/* contact buttons sit on a dark gradient here: lift them one step and outline them */
.start .btn--contact { --bg: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line); }
.start .btn--contact:hover { --bg: var(--ink); }

.booking {
  margin-bottom: 2rem;
  min-height: 640px;
  border-radius: var(--radius-lg);
  background: var(--paper);
  overflow: hidden;
}
.booking[hidden] { display: none; }

@media (min-width: 640px) {
  .start__actions .btn { width: auto; }
}

/* ---------- footer ---------- */
.footer {
  padding: 4rem 0 calc(3rem + env(safe-area-inset-bottom));
  font-size: 0.9375rem;
}
.footer__grid { display: grid; gap: 2rem; }
.wordmark--footer { font-size: 1.5rem; margin-bottom: 0.5rem; }
.footer__muted { color: var(--paper-dim); }
.footer__links { display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.footer__links a {
  display: inline-block;
  padding: 0.5rem 0;
  color: var(--paper-dim);
  text-decoration: none;
  transition: color var(--dur-fast) ease;
}
.footer__links a:hover { color: var(--paper); }
.footer__crisis {
  max-width: 40rem;
  padding: 1rem 1.25rem;
  border-left: 2px solid var(--lagoon);
  background: var(--ink-2);
  border-radius: 0 12px 12px 0;
  color: var(--paper-dim);
}
.footer__crisis a { color: var(--paper); font-weight: 600; white-space: nowrap; }

@media (min-width: 960px) {
  .footer__grid { grid-template-columns: 1fr auto; align-items: start; }
  .footer__links { justify-self: end; }
  .footer__crisis { grid-column: 1; }
  .footer__copy { grid-column: 2; grid-row: 2; align-self: end; justify-self: end; }
}

/* ---------- mobile dock ---------- */
.dock {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--z-dock);
  padding: 0.75rem var(--gutter) calc(0.75rem + env(safe-area-inset-bottom));
  background: linear-gradient(transparent, rgba(16, 12, 20, 0.92) 35%);
  transform: translateY(110%);
  transition: transform var(--dur) var(--ease-out);
}
.dock.is-visible { transform: none; }
.dock .btn { min-height: 3.25rem; box-shadow: 0 10px 30px -6px rgba(255, 90, 44, 0.6); }
@media (min-width: 960px) { .dock { display: none; } }

/* ---------- reveal ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
  transition-delay: calc(var(--stagger, 0) * 60ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  .bilateral__dot { animation: none; transform: translateX(50%); }
  .js [data-reveal] { opacity: 1; transform: none; }
  .card .icon path, .card .icon circle { stroke-dashoffset: 0; }
}

/* ---------- secondary pages (Impressum, Datenschutz, 404) ---------- */
.nav--static { background: rgba(16, 12, 20, 0.88); border-bottom-color: var(--line); }
.nav__back {
  margin-left: auto;
  padding: 0.5rem 0.85rem;
  font-size: 0.9375rem;
  color: var(--paper-dim);
  text-decoration: none;
  border-radius: 999px;
  transition: color var(--dur-fast) ease;
}
.nav__back:hover { color: var(--paper); }

.legal { padding: calc(4.5rem + var(--section) * 0.6) 0 var(--section); }
.legal__inner { max-width: 46rem; }
.legal h1 {
  margin-bottom: 2.5rem;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.8rem + 3vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.legal h2 {
  margin: 2.75rem 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem);
  line-height: 1.2;
}
.legal h3 { margin: 1.75rem 0 0.5rem; font-size: 1.0625rem; font-weight: 600; }
.legal p,
.legal li { color: var(--paper-dim); }
.legal ul { margin: 0 0 1em; padding-left: 1.25rem; list-style: disc; }
.legal li { margin-bottom: 0.35rem; }
.legal a { color: var(--paper); text-underline-offset: 3px; }
.legal address { font-style: normal; color: var(--paper); margin-bottom: 1em; }
.legal .todo { color: var(--saffron); border-bottom: 1px dashed var(--saffron); }
.legal__date { margin-top: 3rem; font-size: 0.9375rem; }

.lost {
  position: relative;
  min-height: 100svh;
  display: grid;
  place-items: start center;
  padding: 18svh 0 6rem;
  overflow: hidden;
  text-align: center;
  isolation: isolate;
}
.lost__sun {
  --d: min(60vw, 440px);
  position: absolute;
  left: 50%;
  /* only the top cap rises above the horizon, well below the copy */
  top: calc(82% - var(--d) * 0.42);
  width: var(--d);
  aspect-ratio: 1;
  margin-left: calc(var(--d) / -2);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffb27a 0%, var(--ember) 38%, #e2306f 78%, #a3125a 100%);
  z-index: -2;
}
.lost::after {
  content: "";
  position: absolute;
  inset: 82% 0 0;
  background: var(--ink);
  border-top: 1px solid var(--paper-faint);
  z-index: -1;
}
.lost h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.5rem + 5vw, 5rem);
  line-height: 1;
  margin-bottom: 1.25rem;
}
.lost h1 em { color: var(--saffron); }
.lost p { color: var(--paper-dim); margin-bottom: 2rem; }
