/* =========================================================================
   Yarko Online School — riso-cartoon poster system
   Design language from DESIGN.md (flat fills, thick outlines, pill buttons,
   confetti cards, no soft shadows) adapted to the Yarko yellow + jungle brand.
   ========================================================================= */

/* ----- Tokens ----------------------------------------------------------- */
:root {
  /* Brand stage */
  --sun: #ffd23c;
  --sun-deep: #f7b733;
  --cream: #fbf4e4;
  --paper: #fffdf6;

  /* Jungle */
  --leaf-deep: #274d2b;
  --leaf: #3e7a3e;
  --fern: #6ba84f;
  --moss: #a7c77e;
  --matcha: #b5c995;

  /* Bark */
  --bark: #7a5230;
  --bark-dark: #4a3218;
  --bark-light: #9a6b40;

  /* Ink + confetti accents (from DESIGN.md palette) */
  --ink: #1e1b16;
  --ink-soft: #4a4235;
  --pink: #f5a9b8;
  --magenta: #b24aa0;
  --red: #d64b4b;
  --violet: #8584bd;

  /* Sloth mascot */
  --fur: #9a6636;
  --fur-dark: #6e4526;
  --fur-cream: #f3e1c4;
  --patch: #5a3a22;
  --snout: #37271a;
  --claw: #efe0c6;
  --cheek: #e79a86;

  /* Type */
  --font-display: "Baloo 2", ui-rounded, system-ui, sans-serif;
  --font-body: "Nunito", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  /* Shape + signature hard sticker shadow (riso, not soft blur) */
  --radius-card: 18px;
  --radius-pill: 100px;
  --stroke: 3px;
  --stroke-bold: 5px;
  --shadow-hard: 5px 5px 0 var(--ink);
  --shadow-hard-sm: 3px 3px 0 var(--ink);

  --maxw: 1180px;
  --nav-h: 72px;
  --marquee-h: 32px;
  --marquee-gap: clamp(18px, 2vw, 24px);
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + env(safe-area-inset-top)); }

/* ----- Custom scrollbar ------------------------------------------------- */
html { scrollbar-width: thin; scrollbar-color: var(--bark) transparent; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: color-mix(in srgb, var(--bark-dark) 16%, transparent); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--bark-light), var(--bark) 60%, var(--bark-dark));
  border: 3px solid transparent;
  background-clip: padding-box;
  border-radius: 100px;
}
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, var(--bark), var(--bark-dark)); background-clip: padding-box; }
::-webkit-scrollbar-thumb:active { background: var(--leaf); background-clip: padding-box; }

/* root canvas matches the footer so the bottom overscroll bounce shows no
   light strip below the dark footer; the bounce itself is also suppressed */
html { background: var(--ink); overscroll-behavior-y: none; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  overscroll-behavior-y: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* The `hidden` attribute must always win. Author `display` rules (e.g. the flex
   on `.course`) otherwise override the UA default and defeat JS that toggles
   `el.hidden` — which is exactly what broke the landing-page course filters. */
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.01em;
  margin: 0;
}

.wrap { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }

/* ----- Shared bits ------------------------------------------------------ */
.tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 14px;
  border: 2px solid var(--ink);
  border-radius: var(--radius-pill);
  background: var(--paper);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 26px;
  min-height: 52px;
  border: var(--stroke) solid var(--ink);
  border-radius: var(--radius-pill);
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-hard-sm);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.2s ease;
  touch-action: manipulation;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
.btn--primary { background: var(--ink); color: var(--sun); }
.btn--sun { background: var(--sun); color: var(--ink); }
.btn--lg { font-size: 1.2rem; padding: 18px 34px; min-height: 60px; }

.section { padding: clamp(64px, 9vw, 128px) 0; position: relative; }
.section--viewport {
  /* Keep the next section (including its dark divider) below the fold.
     Content may still make the section taller on compact/mobile screens. */
  min-height: calc(100vh + var(--stroke-bold));
  min-height: calc(100svh + var(--stroke-bold));
  min-height: calc(100dvh + var(--stroke-bold));
  display: grid;
  align-items: center;
}
.section__head { max-width: 720px; margin-bottom: 52px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section__title { font-size: clamp(2.2rem, 5vw, 3.8rem); }
.section__lead { font-size: 1.2rem; color: var(--ink-soft); margin-top: 18px; }

/* Decorative geometry for the mentors section. The shapes live in their own
   reserved rail, so cards and moving content never cross the decoration at
   any viewport width. */
.section--geo {
  isolation: isolate;
  padding-top: clamp(48px, 6vw, 80px);
}
.section-geo {
  width: min(100% - 32px, 1100px);
  height: clamp(64px, 8vw, 96px);
  margin: 0 auto clamp(40px, 5vw, 64px);
  padding-inline: clamp(4px, 3vw, 36px);
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: center;
  pointer-events: none;
  user-select: none;
}
.section-geo__shape {
  --geo-color: var(--sun);
  --geo-y: 0px;
  --geo-rotate: 0deg;
  position: relative;
  display: block;
  justify-self: center;
  overflow: visible;
  opacity: 0.92;
  transform: translateY(var(--geo-y)) rotate(var(--geo-rotate));
  transition:
    transform 0.48s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.32s ease,
    opacity 0.32s ease;
}
.section-geo__shape::before {
  content: attr(data-letter);
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: 1.3em;
  overflow: visible;
  opacity: 0;
  color: var(--geo-color);
  font-family: var(--font-display);
  font-size: clamp(2.15rem, 4.2vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-rendering: optimizeLegibility;
  -webkit-text-stroke: calc(var(--stroke) + 1px) var(--ink);
  paint-order: stroke fill;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transform: translate(-50%, -50%);
  transition: opacity 0.32s ease;
}
.section-geo__shape--circle {
  --geo-y: -8px;
  width: clamp(44px, 5.5vw, 68px);
  aspect-ratio: 1;
  border: var(--stroke) solid var(--ink);
  border-radius: 50%;
  background: var(--geo-color);
}
.section-geo__shape--square {
  --geo-y: 9px;
  --geo-rotate: 12deg;
  width: clamp(39px, 4.8vw, 58px);
  aspect-ratio: 1;
  border: var(--stroke) solid var(--ink);
  border-radius: clamp(8px, 1vw, 12px);
  background: var(--geo-color);
}
.section-geo__shape--triangle {
  --geo-y: -10px;
  --geo-rotate: -5deg;
  width: clamp(44px, 5.2vw, 62px);
  height: clamp(39px, 4.6vw, 55px);
  background: transparent;
}
.section-geo__triangle {
  position: absolute;
  inset: 0;
  display: block;
  background: var(--ink);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  transition: opacity 0.32s ease;
}
.section-geo__triangle::after {
  content: "";
  position: absolute;
  inset: 5px 5px 6px;
  background: var(--geo-color);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}
.section-geo__shape--ring {
  --geo-y: 8px;
  width: clamp(40px, 4.8vw, 58px);
  aspect-ratio: 1;
  border: var(--stroke) solid var(--ink);
  border-radius: 50%;
}
.section-geo__shape--ring::after {
  content: "";
  position: absolute;
  inset: clamp(5px, 0.7vw, 8px);
  border: clamp(4px, 0.55vw, 7px) solid var(--geo-color);
  border-radius: 50%;
  transition: opacity 0.2s ease;
}
.section-geo__shape--diamond {
  --geo-y: -6px;
  --geo-rotate: 45deg;
  width: clamp(30px, 3.6vw, 43px);
  aspect-ratio: 1;
  border: var(--stroke) solid var(--ink);
  border-radius: clamp(6px, 0.8vw, 9px);
  background: var(--geo-color);
}
.section-geo__shape--dot {
  --geo-y: 11px;
  width: clamp(24px, 2.7vw, 32px);
  aspect-ratio: 1;
  border: var(--stroke) solid var(--ink);
  border-radius: 50%;
  background: var(--geo-color);
}

.section-geo--teachers .section-geo__shape--circle { --geo-color: var(--sun); }
.section-geo--teachers .section-geo__shape--square { --geo-color: var(--violet); }
.section-geo--teachers .section-geo__shape--triangle { --geo-color: var(--pink); }
.section-geo--teachers .section-geo__shape--ring { --geo-color: var(--moss); }
.section-geo--teachers .section-geo__shape--diamond { --geo-color: var(--red); }
.section-geo--teachers .section-geo__shape--dot { --geo-color: var(--fern); }

@media (hover: hover) and (pointer: fine) {
  .section-geo { pointer-events: auto; }
  .section-geo:hover .section-geo__shape {
    border-color: transparent;
    background: transparent;
    clip-path: none;
    opacity: 1;
    transform: translateY(0) rotate(0);
  }
  .section-geo:hover .section-geo__shape::before {
    opacity: 1;
  }
  .section-geo:hover .section-geo__triangle,
  .section-geo:hover .section-geo__shape--ring::after {
    opacity: 0;
  }
}

@media (max-width: 720px) {
  .section-geo {
    width: min(100% - 24px, 560px);
    height: 64px;
    margin-bottom: 36px;
    padding-inline: 0;
  }
  .section-geo__shape {
    opacity: 0.88;
  }
}

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--leaf);
  margin: 0 0 22px;
}

/* Accent utility classes for confetti surfaces */
.acc-pink { --acc: var(--pink); --acc-ink: var(--ink); }
.acc-matcha { --acc: var(--matcha); --acc-ink: var(--ink); }
.acc-magenta { --acc: var(--magenta); --acc-ink: var(--paper); }
.acc-red { --acc: var(--red); --acc-ink: var(--paper); }
.acc-violet { --acc: var(--violet); --acc-ink: var(--paper); }
.acc-sun { --acc: var(--sun); --acc-ink: var(--ink); }

/* =========================================================================
   Header / Nav
   ========================================================================= */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  /* With viewport-fit=cover the bar reaches the physical top edge; grow it by the
     notch/status-bar inset and pad the content down so nothing hides under it. */
  height: calc(var(--nav-h) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  display: flex;
  align-items: center;
  color: var(--cream);
  background-color: var(--bark-dark);
  background-image: linear-gradient(
    180deg,
    color-mix(in srgb, var(--bark-dark) 88%, var(--bark-light)) 0%,
    var(--bark-dark) 56%,
    color-mix(in srgb, var(--bark-dark) 90%, var(--ink)) 100%
  );
  border-bottom: var(--stroke) solid var(--ink);
  border-radius: 0;   /* header is always square-cornered on every page */
}
.nav__inner {
  width: min(100% - 40px, var(--maxw));
  margin-inline: auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 800; font-size: 1.55rem; line-height: 1; flex-shrink: 0; color: var(--cream); }
.brand__word {
  position: relative;
  display: inline-flex;
  align-items: baseline;
}
.brand__letters {
  display: inline-flex;
}
.brand__letters i {
  display: inline-block;
  font-style: normal;
}
.brand__drawn {
  position: absolute;
  inset: 0 auto auto 0;
  color: var(--cream);
  pointer-events: none;
}
.brand__drawn i {
  opacity: 0;
  transform: translateY(0.18em) scale(0.72);
}
.brand__dot {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin-left: 0.04em;
  color: var(--sun);
  transform-origin: 50% 100%;
}
@keyframes brand-word-hide {
  0%, 4% { opacity: 1; }
  10%, 100% { opacity: 0; }
}
@keyframes brand-letter-draw {
  0% { opacity: 0; transform: translateY(0.18em) scale(0.72); }
  64% { opacity: 1; transform: translateY(-0.08em) scale(1.08); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes brand-dot-write {
  0% { transform: translate(0, 0) scale(1); }
  12% { transform: translate(-3.05em, -0.72em) scale(0.92); }
  18% { transform: translate(-3.05em, -0.08em) scale(1.04, 0.94); }
  28% { transform: translate(-2.45em, -0.5em) scale(0.94, 1.04); }
  34% { transform: translate(-2.35em, -0.04em) scale(1.04, 0.94); }
  44% { transform: translate(-1.82em, -0.48em) scale(0.94, 1.04); }
  50% { transform: translate(-1.72em, -0.04em) scale(1.04, 0.94); }
  60% { transform: translate(-1.25em, -0.5em) scale(0.94, 1.04); }
  66% { transform: translate(-1.13em, -0.04em) scale(1.04, 0.94); }
  76% { transform: translate(-0.62em, -0.48em) scale(0.94, 1.04); }
  82% { transform: translate(-0.52em, -0.04em) scale(1.04, 0.94); }
  91% { transform: translate(-0.22em, -0.72em) scale(0.94); }
  100% { transform: translate(0, 0) scale(1); }
}
@media (hover: hover) and (pointer: fine) {
  .brand:hover .brand__original { animation: brand-word-hide 1.8s ease-out 1 both; }
  .brand:hover .brand__dot { animation: brand-dot-write 1.8s ease-in-out 1 both; }
  .brand:hover .brand__drawn i { animation: brand-letter-draw 0.22s ease-out 1 forwards; }
  .brand:hover .brand__drawn i:nth-child(1) { animation-delay: 0.34s; }
  .brand:hover .brand__drawn i:nth-child(2) { animation-delay: 0.63s; }
  .brand:hover .brand__drawn i:nth-child(3) { animation-delay: 0.92s; }
  .brand:hover .brand__drawn i:nth-child(4) { animation-delay: 1.21s; }
  .brand:hover .brand__drawn i:nth-child(5) { animation-delay: 1.5s; }
}
.brand__logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex-shrink: 0;
  transform: none;
  transform-origin: 50% 82%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
@keyframes brand-logo-wave {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0); }
  50% { transform: translate3d(0, -1px, 0) rotate(-3deg); }
}
@keyframes brand-logo-peek {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, -2px, 0) scale(1.015); }
}
@keyframes brand-logo-bow {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0); }
  50% { transform: translate3d(0, 1px, 0) rotate(2.5deg); }
}
@keyframes brand-logo-breathe {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, 1px, 0) scale(1.018, 0.985); }
}
@keyframes brand-logo-enter {
  from { opacity: 0; transform: translateY(3px) scale(0.94); }
  to { opacity: 1; transform: none; }
}
@media (hover: hover) and (pointer: fine) {
  .brand:hover .brand__logo { will-change: transform; }
  .brand:hover .brand__logo[src*="yarko-logo-1.webp"] {
    animation: brand-logo-wave 0.86s cubic-bezier(0.45, 0, 0.55, 1) 1 both;
  }
  .brand:hover .brand__logo[src*="yarko-logo-2.webp"] {
    animation: brand-logo-peek 0.82s cubic-bezier(0.45, 0, 0.55, 1) 1 both;
  }
  .brand:hover .brand__logo[src*="yarko-logo-3.webp"] {
    animation: brand-logo-bow 0.84s cubic-bezier(0.45, 0, 0.55, 1) 1 both;
  }
  .brand:hover .brand__logo[src*="yarko-logo-4.webp"] {
    animation: brand-logo-breathe 0.9s cubic-bezier(0.45, 0, 0.55, 1) 1 both;
  }
}
@media (hover: none) and (pointer: coarse) {
  .brand__logo {
    animation: brand-logo-enter 0.48s ease-out 1 both;
  }
}

/* menu = links + cta, kept on one baseline */
.nav__menu {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav__menu > nav { display: contents; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  display: inline-flex;
  align-items: center;
  height: 40px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.005em;
  padding: 0 14px;
  color: color-mix(in srgb, var(--cream) 90%, transparent);
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav__links a:hover { background: color-mix(in srgb, var(--cream) 14%, transparent); color: var(--cream); }
.nav__links a.is-active { background: var(--sun); color: var(--ink); }
.nav__links a:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
}

/* compact CTA that matches the nav rhythm */
.nav__cta.btn {
  height: 44px;
  min-height: 0;
  padding: 0 22px;
  font-size: 0.98rem;
  box-shadow: var(--shadow-hard-sm);
  flex-shrink: 0;
}
.nav__burger {
  display: none;
  margin-left: auto;
  min-width: 104px;
  height: 48px;
  padding: 0 14px;
  gap: 9px;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: var(--stroke) solid var(--ink);
  border-radius: var(--radius-pill);
  background: var(--sun);
  color: var(--ink);
  box-shadow: var(--shadow-hard-sm);
  touch-action: manipulation;
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background 0.2s ease;
}
.nav__burger:active {
  transform: translate(3px, 3px);
  box-shadow: 0 0 0 var(--ink);
}
.nav__burger:focus-visible {
  outline: 3px solid var(--violet);
  outline-offset: 4px;
}
.nav__burger-icon,
.nav__burger-icon::before,
.nav__burger-icon::after {
  content: "";
  display: block;
  width: 24px;
  height: 3px;
  background: var(--ink);
  border-radius: 3px;
  position: relative;
  transition:
    width 0.2s ease,
    transform 0.24s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.2s ease,
    background 0.2s ease;
}
.nav__burger-icon {
  flex: 0 0 24px;
  width: 24px;
}
.nav__burger-icon::before {
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
}
.nav__burger-icon::after {
  position: absolute;
  top: 7px;
  left: 50%;
  transform: translateX(-50%);
}
.nav__burger-text {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1;
}
body.nav-open .nav__burger { background: var(--paper); }
body.nav-open .nav__burger-icon { background: transparent; }
body.nav-open .nav__burger-icon::before {
  transform: translate(-50%, 7px) rotate(45deg);
}
body.nav-open .nav__burger-icon::after {
  transform: translate(-50%, -7px) rotate(-45deg);
}
@media (hover: hover) and (pointer: fine) {
  .nav__burger:hover {
    background: var(--sun);
    transform: translate(-1px, -1px);
    box-shadow: 5px 5px 0 var(--ink);
  }
  body.nav-open .nav__burger:hover { background: var(--paper); }
}

/* =========================================================================
   Hero
   ========================================================================= */
.hero {
  position: relative;
  /* Full screen — nothing else peeks at the fold; the ticker lives in the catalog.
     lvh (large viewport = the toolbar-collapsed height, like desktop 100vh) so the
     marquee can never peek in when Safari retracts its toolbar. svh would leave the
     hero too short and the ticker showed on load. */
  min-height: 100vh;
  min-height: 100lvh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: calc(var(--nav-h) + 32px) 20px 70px;
  background:
    radial-gradient(120% 90% at 50% -10%, #fddc63 0%, var(--sun) 34%, var(--sun-deep) 72%, #ef9f22 100%);
  border-bottom: var(--stroke-bold) solid var(--ink);
  overflow: hidden;
}

/* --- Canopy of descending 3D vines --- */
.canopy { position: absolute; inset: 0 0 auto 0; height: 100%; pointer-events: none; overflow: hidden; }
.canopy--back { z-index: 1; }   /* far, hazy — behind the text */
.canopy--front { z-index: 2; }  /* mid — frames the edges, behind text */
.canopy--fore { z-index: 4; }   /* near — above the text, extreme edges only */

.vine {
  position: absolute;
  top: -14px;
  height: auto;
  overflow: visible;
}
/* three balanced depths: near = crisp, mid = calm, far = soft haze */
.canopy--front .vine { filter: brightness(0.9) saturate(0.95); }
.canopy--back .vine  { filter: brightness(0.86) saturate(0.7) blur(3px); opacity: 0.26; }
.canopy--fore .vine  { filter: brightness(1.03) saturate(1.06) drop-shadow(3px 5px 4px rgba(10, 28, 9, 0.2)); }
/* the far layer is blurred & isolated (paint containment keeps it off the
   nav's layer so it can't leave the fixed header transparent on bfcache restore).
   Its gentle self-sway is driven in app.js (see the canopy sim). */
.canopy--back { contain: paint; }
.canopy--back .vine { transform-origin: top center; will-change: transform; }

/* leaves that shake loose and flutter down when you rustle a vine */
.leaf-fall {
  position: absolute;
  width: 27px; height: auto;
  z-index: 2;
  overflow: visible;
  pointer-events: none;
  will-change: transform, opacity;
  /* softer + lighter: lift toward the vine green and drop the heavy dark shadow */
  filter: brightness(1.22) saturate(0.9) drop-shadow(1px 2px 1px rgba(10, 28, 9, 0.12));
  animation: leaffall var(--dur, 3s) cubic-bezier(0.45, 0.05, 0.55, 0.95) forwards;
}
/* leaves shaken from the far vines share the back-vine haze/depth preset */
.leaf-fall--back {
  z-index: 1;
  width: 22px;
  filter: brightness(1.12) saturate(0.72) blur(3px);
}
@keyframes leaffall {
  0%   { transform: translate(0, 0) rotate(0deg); opacity: 0; }
  12%  { opacity: 0.5; }
  90%  { opacity: 0.5; }
  100% { transform: translate(var(--dx, 0), var(--y1, 320px)) rotate(var(--rot, 360deg)); opacity: 0; }
}

/* --- Centered hero copy (pyplata-style middle placement) --- */
.hero__center {
  position: relative;
  z-index: 3;
  width: min(760px, 92vw);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero__badge { margin-bottom: 24px; background: color-mix(in srgb, var(--paper) 78%, transparent); }
.hero__title {
  font-size: clamp(2.7rem, 8vw, 6.4rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
}
.hero__title .u { color: var(--leaf-deep); position: relative; white-space: nowrap; display: inline-block; padding-bottom: 0.16em; }
.hero__title .u::after {
  content: "";
  position: absolute; left: 4%; right: 4%; bottom: 0;
  height: clamp(3px, 0.4vw, 5px);
  background: linear-gradient(90deg, var(--fern), var(--leaf) 45%, var(--leaf-deep));
  border-radius: 100px;
}
.hero__sub {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  max-width: 40ch;
  margin: 26px auto 34px;
  color: var(--ink);
  font-weight: 600;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: center; }
.hero__note { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-soft); margin-top: 24px; }

/* scroll cue — hidden until the visitor lingers on the hero for a while */
.hero__scroll {
  position: absolute; z-index: 3; bottom: 26px; left: 50%; transform: translateX(-50%);
  width: 30px; height: 50px; border: 3px solid var(--ink); border-radius: 100px;
  display: grid; place-items: start center; padding-top: 8px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.7s ease;
}
.hero__scroll.is-shown { opacity: 0.4; pointer-events: auto; }
.hero__scroll.is-shown:hover { opacity: 0.7; }
.hero__scroll span { width: 5px; height: 10px; border-radius: 5px; background: var(--ink); animation: scrolldot 1.5s ease-in-out infinite; }
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(-4px); } 40% { opacity: 1; } 80%,100% { opacity: 0; transform: translateY(12px); } }

/* Marquee strip under hero */
.marquee {
  background: var(--ink);
  color: var(--sun);
  overflow: hidden;
  height: var(--marquee-h);
  display: flex;
  align-items: center;
  line-height: 1;
}
.marquee__row {
  display: flex;
  align-items: center;
  gap: var(--marquee-gap);
  width: max-content;
  height: 100%;
  white-space: nowrap;
  animation: slide 30s linear infinite;
}
.marquee span {
  display: inline-flex;
  align-items: center;
  gap: var(--marquee-gap);
  height: 100%;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.625rem;
  line-height: 1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
/* the catalog opens with the ticker as a full-bleed band */
.catalog { padding-top: 0; }
.catalog > .marquee { margin-bottom: clamp(48px, 7vw, 90px); }
.marquee__item { white-space: nowrap; font-weight: 700; }
.marquee .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--sun); flex-shrink: 0; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 620px) {
  .marquee { height: 30px; }
}

/* =========================================================================
   The Tree Journey (scroll-driven transformation) — signature section
   ========================================================================= */
.journey { position: relative; background: linear-gradient(180deg, var(--sun-deep) 0%, var(--leaf) 42%, var(--leaf-deep) 100%); }

.journey__scroll { position: relative; height: 380vh; }

.tree-scene {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
}

/* Central trunk runs the full height */
.tree-scene__trunk {
  position: absolute;
  top: -4%;
  left: 50%;
  transform: translateX(-50%);
  width: clamp(150px, 20vw, 260px);
  height: 108%;
  z-index: 1;
}
.tree-scene__trunk svg { width: 100%; height: 100%; }

/* Ferns framing left & right — parallax via --p */
.tree-scene__fern {
  position: absolute;
  width: clamp(240px, 34vw, 460px);
  z-index: 4;
  color: var(--leaf-deep);
  will-change: transform;
}
.tree-scene__fern--tl { top: -40px; left: -60px; transform: rotate(8deg) translateY(calc(var(--p, 0) * -40px)); }
.tree-scene__fern--tr { top: -60px; right: -70px; transform: scaleX(-1) rotate(8deg) translateY(calc(var(--p, 0) * -60px)); }
.tree-scene__fern--bl { bottom: -80px; left: -80px; transform: rotate(-160deg) translateY(calc(var(--p, 0) * 30px)); color: var(--leaf); }
.tree-scene__fern--br { bottom: -60px; right: -80px; transform: scaleX(-1) rotate(-160deg) translateY(calc(var(--p, 0) * 50px)); color: var(--leaf); }

/* Growing progress vine on the trunk */
.tree-scene__vine {
  position: absolute;
  top: 8%; left: 50%;
  transform: translateX(-50%);
  width: 10px; height: 84%;
  z-index: 2;
  border-radius: 100px;
  background: color-mix(in srgb, var(--leaf-deep) 60%, black);
  overflow: hidden;
}
.tree-scene__vine i {
  position: absolute; inset: 0 0 auto 0;
  height: calc(var(--p, 0) * 100%);
  background: linear-gradient(180deg, var(--moss), var(--fern));
}

/* Mascot pinned in the centre of the scene */
.tree-scene__sloth {
  position: relative;
  z-index: 6;
  width: clamp(220px, 30vw, 360px);
  aspect-ratio: 1 / 1.15;
  filter: drop-shadow(6px 8px 0 rgba(20, 15, 8, 0.28));
}
.tree-scene__sloth .sloth-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tree-scene__sloth .prop {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; transform: scale(0.8) translateY(10px);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.tree-scene[data-stage="0"] .prop--wave,
.tree-scene[data-stage="1"] .prop--book,
.tree-scene[data-stage="2"] .prop--laptop,
.tree-scene[data-stage="3"] .prop--grad { opacity: 1; transform: scale(1) translateY(0); }

/* little celebratory sparkles on final stage */
.tree-scene__spark { position: absolute; z-index: 5; opacity: 0; transition: opacity 0.4s ease; }
.tree-scene[data-stage="3"] .tree-scene__spark { opacity: 1; }
.tree-scene__spark--1 { top: 26%; left: 30%; animation: twinkle 1.4s ease-in-out infinite; }
.tree-scene__spark--2 { top: 32%; right: 28%; animation: twinkle 1.4s ease-in-out infinite 0.5s; }
.tree-scene__spark--3 { top: 60%; left: 34%; animation: twinkle 1.4s ease-in-out infinite 0.9s; }
@keyframes twinkle { 0%, 100% { transform: scale(0.7); opacity: 0.4; } 50% { transform: scale(1.1); opacity: 1; } }

/* Stage caption panels */
.tree-scene__panels { position: absolute; inset: 0; z-index: 7; pointer-events: none; }
.stage-panel {
  position: absolute;
  top: 50%;
  width: min(38vw, 380px);
  transform: translateY(-50%);
  background: var(--paper);
  border: var(--stroke) solid var(--ink);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-hard);
  padding: 24px 26px;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: auto;
}
.stage-panel--left { left: 4vw; transform: translate(-30px, -50%); }
.stage-panel--right { right: 4vw; transform: translate(30px, -50%); }
.tree-scene[data-stage="0"] #panel-0,
.tree-scene[data-stage="1"] #panel-1,
.tree-scene[data-stage="2"] #panel-2,
.tree-scene[data-stage="3"] #panel-3 { opacity: 1; transform: translate(0, -50%); }
.stage-panel__kicker { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--magenta); font-weight: 700; }
.stage-panel h3 { font-size: 1.9rem; margin: 8px 0 12px; }
.stage-panel p { font-size: 1.02rem; color: var(--ink-soft); margin: 0 0 14px; }
.stage-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.stage-panel li { font-family: var(--font-mono); font-size: 0.82rem; display: flex; gap: 8px; align-items: flex-start; }
.stage-panel li::before { content: "✦"; color: var(--leaf); }

/* progress rail of stage dots */
.tree-scene__dots {
  position: absolute; z-index: 8; right: 22px; top: 50%; transform: translateY(-50%);
  display: grid; gap: 12px;
}
.tree-scene__dots b {
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid var(--paper); background: transparent; transition: background 0.2s ease, transform 0.2s ease;
}
.tree-scene[data-stage="0"] .tree-scene__dots b:nth-child(1),
.tree-scene[data-stage="1"] .tree-scene__dots b:nth-child(2),
.tree-scene[data-stage="2"] .tree-scene__dots b:nth-child(3),
.tree-scene[data-stage="3"] .tree-scene__dots b:nth-child(4) { background: var(--sun); transform: scale(1.4); }

.journey__hint {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  z-index: 8; font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.14em;
  color: var(--paper); text-transform: uppercase; display: flex; align-items: center; gap: 8px;
  opacity: var(--hint-op, 1); transition: opacity 0.3s ease;
}
.journey__hint::after { content: "↓"; animation: nudge 1.4s ease-in-out infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

/* =========================================================================
   Courses
   ========================================================================= */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter {
  font-family: var(--font-mono); font-weight: 700; font-size: 0.85rem;
  /* explicit ink colour — iOS Safari otherwise paints <button> text system-blue */
  color: var(--ink);
  padding: 10px 18px; border: var(--stroke) solid var(--ink);
  border-radius: var(--radius-pill); background: var(--paper);
  transition: background 0.15s ease, transform 0.1s ease;
  -webkit-appearance: none; appearance: none;
}
.filter:hover { transform: translateY(-2px); }
.filter.is-active { background: var(--ink); color: var(--sun); }

.course-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.course {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--paper);
  border: var(--stroke) solid var(--ink);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-hard);
  overflow: hidden;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.course:hover { transform: translate(-2px, -3px); box-shadow: 8px 9px 0 var(--ink); }
.course__top { background: var(--acc, var(--matcha)); color: var(--acc-ink, var(--ink)); padding: 20px 22px; border-bottom: var(--stroke) solid var(--ink); position: relative; }
.course__badge { position: absolute; top: 14px; right: 14px; background: var(--ink); color: var(--sun); font-family: var(--font-mono); font-weight: 700; font-size: 0.66rem; letter-spacing: 0.1em; padding: 4px 10px; border-radius: 100px; text-transform: uppercase; }
.course__aud { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.85; }
.course__title { font-size: 1.5rem; margin: 8px 0 6px; }
.course__tagline { font-size: 0.95rem; font-weight: 600; }
.course__body { padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.course__desc { color: var(--ink-soft); font-size: 0.98rem; margin: 0; }
.course__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.course__meta span { font-family: var(--font-mono); font-size: 0.72rem; padding: 5px 10px; border: 2px solid var(--ink); border-radius: 100px; }
.course__foot { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; border-top: var(--stroke) solid var(--ink); background: var(--cream); }
.course__price b { font-family: var(--font-display); font-size: 1.4rem; }
.course__price small { display: block; font-family: var(--font-mono); font-size: 0.68rem; color: var(--ink-soft); }
.course__pick { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; padding: 10px 18px; border: var(--stroke) solid var(--ink); border-radius: 100px; background: var(--sun); transition: transform 0.1s ease; }
.course__pick:hover { transform: translateY(-2px); }

/* =========================================================================
   How it works
   ========================================================================= */
.how { background: var(--paper); border-block: var(--stroke-bold) solid var(--ink); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.step { position: relative; padding: 26px 24px; border: var(--stroke) solid var(--ink); border-radius: var(--radius-card); background: var(--cream); }
.step:nth-child(1) { background: var(--pink); }
.step:nth-child(2) { background: var(--moss); }
.step:nth-child(3) { background: var(--sun); }
.step:nth-child(4) { background: var(--violet); color: var(--paper); }
.step__n { font-family: var(--font-mono); font-weight: 700; font-size: 0.9rem; letter-spacing: 0.1em; }
.step h3 { font-size: 1.35rem; margin: 12px 0 8px; }
.step p { margin: 0; font-size: 0.98rem; }
.step:nth-child(4) p { color: color-mix(in srgb, var(--paper) 85%, transparent); }

/* Stats band */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; margin-top: 60px; }
.stat { text-align: center; padding: 26px 16px; border: var(--stroke) solid var(--ink); border-radius: var(--radius-card); background: var(--paper); box-shadow: var(--shadow-hard-sm); }
.stat b { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); color: var(--leaf-deep); }
.stat span { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-soft); }

/* =========================================================================
   Teachers
   ========================================================================= */
.teacher-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 24px; }
.teacher { border: var(--stroke) solid var(--ink); border-radius: var(--radius-card); background: var(--paper); box-shadow: var(--shadow-hard); overflow: hidden; }
.teacher__ava {
  position: relative;
  background: var(--acc, var(--matcha));
  border-bottom: var(--stroke) solid var(--ink);
  display: grid; place-items: center; padding: 28px 22px;
  background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--ink) 14%, transparent) 1.5px, transparent 0);
  background-size: 14px 14px;
}
/* placeholder avatar (real photos will be added later via the admin panel) */
.teacher__avatar {
  width: 108px; height: 108px; border-radius: 50%;
  border: var(--stroke) solid var(--ink);
  background: var(--paper);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 2.4rem;
  color: var(--ink); box-shadow: var(--shadow-hard-sm);
  text-transform: uppercase;
}
.teacher__ava svg { width: 120px; }
/* real photo drops into the same circle the initials placeholder used */
.teacher__ava-img {
  width: 108px; height: 108px; border-radius: 50%;
  object-fit: cover; object-position: center; display: block;
  border: var(--stroke) solid var(--ink);
  /* backing matches the accent circle, so a transparent PNG or the anti-aliased
     edge never shows a white stripe inside the frame */
  background: var(--acc, var(--matcha)); box-shadow: var(--shadow-hard-sm);
}
.footer__brand-img { width: 42px; height: 42px; object-fit: contain; }
img.cta__mascot { height: auto; object-fit: contain; }
.tree-scene__sloth img.prop { width: 100%; height: 100%; object-fit: contain; }
.teacher__body { padding: 20px 22px; }
.teacher__name { font-size: 1.35rem; }
.teacher__subject { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--magenta); font-weight: 700; margin: 4px 0 10px; }
.teacher__cred { font-family: var(--font-mono); font-size: 0.76rem; color: var(--ink-soft); margin: 0 0 12px; }
.teacher__bio { font-size: 0.98rem; margin: 0; color: var(--ink); }

/* =========================================================================
   Reviews
   ========================================================================= */
.reviews {
  background: var(--leaf-deep);
  color: var(--paper);
  border-block: var(--stroke-bold) solid var(--ink);
}
.reviews .section__title, .reviews .eyebrow { color: var(--sun); }
.reviews .section__lead { color: color-mix(in srgb, var(--paper) 80%, transparent); }
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.review { background: var(--acc, var(--matcha)); color: var(--acc-ink, var(--ink)); border: var(--stroke) solid var(--ink); border-radius: var(--radius-card); box-shadow: var(--shadow-hard); padding: 26px 24px; }
.review__quote { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; line-height: 1.4; margin: 0 0 18px; }
.review__who { display: flex; align-items: center; gap: 12px; }
.review__badge { font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 10px; border: 2px solid currentColor; border-radius: 100px; }
.review__name { font-family: var(--font-mono); font-weight: 700; font-size: 0.86rem; }

/* =========================================================================
   Pricing
   ========================================================================= */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; border: var(--stroke) solid var(--ink); border-radius: var(--radius-card); background: var(--paper); box-shadow: var(--shadow-hard); overflow: hidden; }
.plan--hl { background: var(--sun); }
/* corner badge — matches the course "Хит" badge; keeps every header the same height so the dividers align */
.plan__flag {
  position: absolute; top: 14px; right: 14px; z-index: 1;
  font-family: var(--font-mono); font-weight: 700; font-size: 0.66rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--ink); color: var(--sun); padding: 4px 10px; border-radius: 100px;
}
.plan__head { padding: 26px 24px; border-bottom: var(--stroke) solid var(--ink); }
.plan__name { font-family: var(--font-mono); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.85rem; padding-right: 84px; min-height: 1.2em; }
.plan__price { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; line-height: 1; margin-top: 12px; }
.plan__period { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-soft); margin-top: 4px; }
.plan__list { list-style: none; margin: 0; padding: 24px; display: grid; gap: 12px; flex: 1; }
.plan__list li { display: flex; gap: 10px; font-size: 0.96rem; }
.plan__list li::before { content: "✓"; font-weight: 800; color: var(--leaf); }
.plan .btn { margin: 0 24px 26px; justify-content: center; }

/* =========================================================================
   CTA + form
   ========================================================================= */
.cta { background: radial-gradient(120% 90% at 20% 0%, var(--sun) 0%, var(--sun-deep) 70%, #ef9f22 100%); border-block: var(--stroke-bold) solid var(--ink); }
.cta__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.cta h2 { font-size: clamp(2.4rem, 6vw, 4.4rem); }
.cta p:not(.eyebrow) { font-size: 1.2rem; font-weight: 600; max-width: 40ch; margin: 18px 0 0; }
.cta__mascot { width: clamp(220px, 24vw, 320px); height: auto; margin: 34px auto 0; display: block; filter: drop-shadow(6px 8px 0 rgba(30, 27, 22, 0.14)); }

.form { background: var(--paper); border: var(--stroke) solid var(--ink); border-radius: var(--radius-card); box-shadow: var(--shadow-hard); padding: 30px; }
.form h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; letter-spacing: -0.01em; margin-bottom: 6px; }
.form__hint { font-family: var(--font-body); font-size: 0.98rem; color: var(--ink-soft); margin: 0 0 24px; }
/* selected-tariff chip shown when the visitor arrived from a pricing card */
.form__plan {
  display: flex; align-items: center; gap: 8px; margin: 0 0 20px;
  padding: 10px 14px; border: 2px solid var(--ink); border-radius: 14px;
  background: color-mix(in srgb, var(--leaf) 16%, var(--paper));
  font-family: var(--font-body); font-size: 0.95rem;
}
.form__plan.is-hidden { display: none; }
.form__plan span { color: var(--ink-soft); }
.form__plan b { font-weight: 800; }
.form__plan-clear {
  margin-left: auto; width: 24px; height: 24px; flex: none;
  border: 2px solid var(--ink); border-radius: 50%; background: var(--paper);
  color: var(--ink); font-size: 1rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
}
.form__plan-clear:hover { background: var(--ink); color: var(--paper); }
.field { margin-bottom: 18px; }
.field label {
  display: block; font-family: var(--font-body); font-weight: 800; font-size: 0.9rem;
  letter-spacing: 0.005em; color: var(--ink); margin-bottom: 8px;
}
.field__label-row {
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
.field__label-row label { margin-bottom: 0; }
.field__optional {
  color: var(--ink-soft); font-weight: 700; text-transform: none;
}
.field-tip { position: relative; display: inline-flex; flex: none; }
.field-tip__trigger {
  position: relative; display: grid; place-items: center;
  width: 24px; height: 24px; padding: 0;
  border: 2px solid var(--ink); border-radius: 50%;
  background: var(--sun); color: var(--ink);
  font-family: var(--font-body); font-size: 0.82rem; font-weight: 900; line-height: 1;
  cursor: help;
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}
.field-tip__trigger::before { content: ""; position: absolute; inset: -10px; }
.field-tip__trigger:hover { background: var(--ink); color: var(--sun); }
.field-tip__trigger:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--leaf) 35%, transparent);
}
.field-tip__bubble {
  position: fixed; z-index: 1000; left: 12px; top: 12px;
  width: min(320px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  padding: 12px 14px; overflow: auto;
  border: 2px solid var(--ink); border-radius: 13px;
  background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 0.86rem; font-weight: 700; line-height: 1.4;
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
}
.field-tip__bubble.is-open {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.field input, .field select, .field textarea {
  width: 100%; min-height: 58px;
  font-family: var(--font-body); font-weight: 600; font-size: 1.02rem; line-height: 1.35;
  padding: 15px 18px;
  border: var(--stroke) solid var(--ink); border-radius: 13px; background: var(--cream); color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 52px;
  border-radius: 13px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--ink) 50%),
    linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position:
    calc(100% - 23px) calc(50% - 2px),
    calc(100% - 17px) calc(50% - 2px);
  background-repeat: no-repeat;
  background-size: 7px 7px;
}
.field select::-ms-expand { display: none; }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--ink-soft) 70%, transparent); font-weight: 500; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--leaf);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--leaf) 30%, transparent);
}
.field textarea { resize: vertical; min-height: 92px; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field--consent { margin: 4px 0 18px; }
.field--consent-optional { margin-top: -8px; }
.field .consent {
  display: grid; grid-template-columns: 24px minmax(0, 1fr); align-items: start; gap: 10px;
  margin: 0; font-size: 0.84rem; font-weight: 650; line-height: 1.45;
  color: var(--ink-soft); cursor: pointer; text-transform: none;
}
.field .consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  min-height: 24px;
  margin: 0;
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 7px;
  background-color: var(--paper);
  background-image: none;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 16px 16px;
  box-shadow: none;
  cursor: pointer;
  flex: none;
  color-scheme: light;
  transition:
    background-color 0.16s ease,
    border-color 0.16s ease,
    transform 0.12s ease,
    box-shadow 0.16s ease;
}
.field .consent input[type="checkbox"]:checked {
  border-color: var(--ink);
  background-color: var(--leaf-deep);
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2016%2016'%3E%3Cpath%20d='M3%208.5%206.5%2012%2013%204.5'%20fill='none'%20stroke='%23fffdf6'%20stroke-width='2.6'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E");
}
.field .consent input[type="checkbox"]:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: none;
}
.field .consent input[type="checkbox"]:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--leaf) 70%, var(--paper));
  outline-offset: 3px;
}
.field .consent input[type="checkbox"]:active {
  transform: scale(0.92);
}
.field .consent input[type="checkbox"]:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
@media (hover: hover) and (pointer: fine) {
  .field .consent input[type="checkbox"]:not(:checked):hover {
    border-color: var(--leaf-deep);
    background-color: color-mix(in srgb, var(--moss) 24%, var(--paper));
  }
  .field .consent input[type="checkbox"]:checked:hover {
    background-color: var(--leaf);
  }
}
.consent a {
  color: var(--leaf-deep); font-weight: 800; text-decoration: underline;
  text-decoration-thickness: 1.5px; text-underline-offset: 2px;
}
.consent a:hover { color: var(--leaf); }
.field--consent.is-invalid .consent { color: var(--red); }
.field--consent.is-invalid .consent input[type="checkbox"] {
  border-color: var(--red);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 20%, transparent);
}

@media (forced-colors: active) {
  .field .consent input[type="checkbox"] {
    appearance: auto;
    -webkit-appearance: auto;
    accent-color: Highlight;
    background: Canvas;
    forced-color-adjust: auto;
  }
}

/* inline validation */
.field__error { display: none; margin-top: 7px; font-family: var(--font-body); font-weight: 700; font-size: 0.82rem; color: var(--red); }
.field.is-invalid input, .field.is-invalid select { border-color: var(--red); background: color-mix(in srgb, var(--red) 6%, var(--cream)); }
.field.is-invalid input:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--red) 28%, transparent); }
.field.is-invalid .field__error { display: block; }
.field.is-valid input { border-color: var(--leaf); }

.form__submit { width: 100%; justify-content: center; margin-top: 6px; }
.form__status { margin-top: 16px; font-family: var(--font-body); font-weight: 700; font-size: 0.9rem; min-height: 1.2em; }
.form__status.ok { color: var(--leaf); }
.form__status.err { color: var(--red); }
.form__ok {
  display: none; text-align: center; padding: 20px;
  border: var(--stroke) dashed var(--leaf); border-radius: var(--radius-card); background: color-mix(in srgb, var(--moss) 40%, var(--paper));
}
.form.is-done .form__body { display: none; }
.form.is-done .form__ok { display: block; }
.form__ok svg { width: 90px; margin: 0 auto 12px; }

/* =========================================================================
   Footer
   ========================================================================= */
/* Bottom inset keeps the dark footer painted into the iOS home-indicator strip
   (and behind the iOS 26 floating tab bar), so no light bar shows below it. */
.footer { background: var(--ink); color: var(--cream); padding: 60px 0 max(30px, env(safe-area-inset-bottom)); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer__brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; color: var(--sun); }
.footer__brand svg { width: 42px; }
.footer p { color: color-mix(in srgb, var(--cream) 70%, transparent); font-size: 0.95rem; max-width: 34ch; }
.footer h4 { font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sun); margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { font-size: 0.92rem; color: color-mix(in srgb, var(--cream) 82%, transparent); }
.footer a:hover { color: var(--sun); }
.footer__bottom { margin-top: 46px; padding-top: 22px; border-top: 2px solid color-mix(in srgb, var(--cream) 24%, transparent); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-family: var(--font-mono); font-size: 0.76rem; color: color-mix(in srgb, var(--cream) 60%, transparent); }

/* =========================================================================
   404 page
   ========================================================================= */
.notfound {
  /* lvh, not svh: on short pages svh let the cream body show below the footer
     once Safari's toolbar retracted (the "white bar at the bottom"). */
  min-height: 100vh;
  min-height: 100lvh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: calc(var(--nav-h) + 40px) 20px 80px;
  background: radial-gradient(120% 90% at 50% -10%, #fddc63 0%, var(--sun) 34%, var(--sun-deep) 72%, #ef9f22 100%);
}
.notfound__inner { width: min(640px, 92vw); }
.notfound__mascot { width: clamp(150px, 40vw, 220px); margin: 0 auto 6px; filter: drop-shadow(5px 7px 0 rgba(30, 27, 22, 0.16)); }
.notfound__mascot--health,
.notfound__mascot--error { width: clamp(220px, 48vw, 320px); height: auto; margin-bottom: 12px; }
.notfound__title { font-size: clamp(2.4rem, 7vw, 4.6rem); line-height: 0.95; letter-spacing: -0.02em; margin-top: 6px; }
.notfound__title--status { position: relative; display: inline-block; max-width: 100%; padding-bottom: 0.16em; }
.notfound__title--status span:not(.title-line) { color: var(--leaf-deep); }
.notfound__title--status::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(3px, 0.4vw, 5px);
  border-radius: 100px;
  background: linear-gradient(90deg, var(--fern), var(--leaf) 45%, var(--leaf-deep));
}
.notfound__title .u { color: var(--leaf-deep); position: relative; white-space: nowrap; display: inline-block; padding-bottom: 0.16em; }
.notfound__title .u::after {
  content: ""; position: absolute; left: 4%; right: 4%; bottom: 0;
  height: clamp(3px, 0.4vw, 5px); border-radius: 100px;
  background: linear-gradient(90deg, var(--fern), var(--leaf) 45%, var(--leaf-deep));
}
.notfound__text { font-size: 1.15rem; font-weight: 600; color: var(--ink); max-width: 42ch; margin: 20px auto 30px; }
.notfound__actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.status-kicker { width: fit-content; display: flex; align-items: center; gap: 10px; margin: 0 auto 22px; color: var(--leaf-deep); }
.status-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--leaf); border: 2px solid var(--leaf-deep); vertical-align: middle; margin-right: 6px; animation: statusPulse 1.6s ease-in-out infinite; }
.status-kicker .status-dot { flex: none; margin: 0; vertical-align: initial; }
@keyframes statusPulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--leaf) 60%, transparent); } 50% { box-shadow: 0 0 0 6px transparent; } }

/* =========================================================================
   Carousel (reviews / plans) — swipe, drag, arrows, keyboard
   ========================================================================= */
.carousel { position: relative; --arrow-gap: clamp(48px, 6vw, 66px); --shadow-pad: 14px; }
.carousel__viewport {
  container-type: inline-size;      /* cells sized against the viewport width */
  margin: 0 var(--arrow-gap);       /* leave room for arrows on both sides */
  padding: 6px var(--shadow-pad) 18px;  /* room for the cards' hard shadow (right + down) */
  scroll-padding-inline: var(--shadow-pad);
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; -ms-overflow-style: none;
  cursor: grab; -webkit-overflow-scrolling: touch;
}
.carousel__viewport::-webkit-scrollbar { display: none; }
.carousel.is-drag .carousel__viewport { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
/* only suppress text selection while dragging — NOT pointer-events, which would
   swallow clicks on the cards' buttons (a real drag is caught in JS instead) */
.carousel.is-drag .carousel__cell { user-select: none; }
.carousel__track { position: relative; display: flex; gap: 24px; width: max-content; }
/* trailing spacer: browsers drop a scroll container's padding-right at the scroll
   end, which clipped the LAST card's hard shadow — this guarantees room for it */
.carousel__track::after { content: ""; flex: 0 0 var(--shadow-pad); align-self: stretch; }
.carousel__cell { flex: 0 0 auto; scroll-snap-align: start; display: flex; }
.carousel__cell > * { width: 100%; }
/* show a WHOLE number of cards per view (container queries) — never a cut edge */
.carousel__cell--review, .carousel__cell--plan { width: 100cqw; }
@container (min-width: 560px) {
  .carousel__cell--review, .carousel__cell--plan { width: calc((100cqw - 24px) / 2); }
}
@container (min-width: 900px) {
  .carousel__cell--review, .carousel__cell--plan { width: calc((100cqw - 48px) / 3); }
}

.carousel__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  width: 50px; height: 50px; border-radius: 50%;
  border: var(--stroke) solid var(--ink); background: var(--paper); color: var(--ink);
  font-size: 1.7rem; line-height: 1; font-weight: 700; cursor: pointer;
  display: grid; place-items: center; box-shadow: var(--shadow-hard-sm);
  touch-action: manipulation;
  transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.2s ease, background 0.2s ease;
}
.carousel__arrow:hover { background: var(--sun); transform: translateY(-50%) scale(1.06); }
.carousel__arrow:active:not(:disabled) {
  transform: translate(3px, calc(-50% + 3px));
  box-shadow: none;
}
.carousel__arrow:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
/* arrows live in the reserved side gutters — never over the cards */
.carousel__arrow--prev { left: 0; }
.carousel__arrow--next { right: 0; }
.carousel__arrow[disabled] { opacity: 0; pointer-events: none; }
.reviews .carousel__arrow { background: var(--sun); }
.reviews .carousel__arrow:hover { background: var(--paper); }

@media (max-width: 620px) {
  .carousel { --arrow-gap: 42px; --shadow-pad: 10px; }
  .carousel__arrow { width: 38px; height: 38px; font-size: 1.3rem; }
}

/* “see all” buttons under limited sections */
.see-all { display: flex; justify-content: center; margin-top: 44px; }
.see-all .btn { background: var(--paper); }
.reviews .see-all .btn { background: var(--sun); }

/* friendly empty-state banner (no courses / plans / reviews / teachers yet) */
.empty-state {
  text-align: center;
  max-width: 540px;
  margin: 8px auto 0;
  padding: clamp(28px, 5vw, 46px) 28px;
  border: var(--stroke) solid var(--ink);
  border-radius: var(--radius-card);
  background: var(--paper);
  box-shadow: var(--shadow-hard);
}
.empty-state__emoji { font-size: 2.8rem; line-height: 1; display: block; margin-bottom: 12px; }
.empty-state__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 8px; }
.empty-state__text { color: var(--ink-soft); font-size: 1.02rem; margin: 0 auto; max-width: 40ch; }
.empty-state .btn { margin-top: 22px; }

/* the "by pyplata" link matches the small text next to it (overrides .footer a) */
.footer__by, .footer__by a, .pubfoot__copy .footer__by { color: inherit; font-size: inherit; text-decoration: none; }
.footer__by a:hover { color: var(--sun); }

/* =========================================================================
   Sub-pages (/courses /teachers /reviews)
   ========================================================================= */
.subpage { padding: calc(var(--nav-h) + 48px) 0 90px; min-height: 100vh; min-height: 100lvh; background: var(--cream); }
.subpage--reviews {
  background: var(--leaf-deep);
  color: var(--paper);
}
.subpage--reviews .subpage__back {
  color: color-mix(in srgb, var(--paper) 76%, transparent);
}
.subpage--reviews .subpage__back:hover { color: var(--sun); }
.subpage--reviews .section__title,
.subpage--reviews .eyebrow { color: var(--sun); }
.subpage--reviews .section__lead {
  color: color-mix(in srgb, var(--paper) 82%, transparent);
}
.subpage--reviews .pagination__nav,
.subpage--reviews .pagination__page { background: var(--sun); }
.subpage--reviews .pagination__page.is-current {
  background: var(--ink);
  color: var(--sun);
}
.subpage--reviews .pagination__summary {
  color: color-mix(in srgb, var(--paper) 72%, transparent);
}
.subpage-foot { background: var(--ink); color: color-mix(in srgb, var(--cream) 72%, transparent); border-top: var(--stroke-bold) solid var(--ink); }
.subpage-foot .wrap { padding: 26px 0; text-align: center; font-family: var(--font-mono); font-size: 0.8rem; line-height: 1.6; }
.subpage__back { display: inline-block; font-family: var(--font-mono); font-weight: 700; font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 24px; text-decoration: none; }
.subpage__back:hover { color: var(--ink); }
.subpage .section__title { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.review-grid--all { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.review-grid--all .review { background: var(--acc, var(--matcha)); color: var(--acc-ink, var(--ink)); border: var(--stroke) solid var(--ink); border-radius: var(--radius-card); box-shadow: var(--shadow-hard); padding: 26px 24px; }
[data-paginated-list] > [hidden] { display: none !important; }

/* Pagination — hard-shadow pills from the same riso component family */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: clamp(42px, 6vw, 68px);
}
.pagination[hidden],
.pagination__summary[hidden] { display: none; }
.pagination__pages { display: flex; align-items: center; justify-content: center; gap: 8px; }
.pagination__nav,
.pagination__page {
  min-width: 48px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  border: var(--stroke) solid var(--ink);
  border-radius: var(--radius-pill);
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow-hard-sm);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
  touch-action: manipulation;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.18s ease;
}
.pagination__page { padding-inline: 12px; }
.pagination__nav:hover:not(:disabled),
.pagination__page:hover:not(:disabled) {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ink);
  background: var(--sun);
}
.pagination__nav:active:not(:disabled),
.pagination__page:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: none; }
.pagination__nav:focus-visible,
.pagination__page:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
.pagination__page.is-current {
  background: var(--ink);
  color: var(--sun);
  box-shadow: none;
  transform: translate(3px, 3px);
  cursor: default;
  opacity: 1;
}
.pagination__nav:disabled { opacity: 0.38; cursor: default; box-shadow: none; }
.pagination__ellipsis {
  min-width: 28px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--ink-soft);
}
.pagination__mobile-current {
  display: none;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding-inline: 14px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}
.pagination__summary {
  margin: 18px 0 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ink-soft);
}

@media (max-width: 560px) {
  .pagination { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; gap: 10px; }
  .pagination__pages { display: none; }
  .pagination__mobile-current { display: flex; }
  .pagination__nav { width: 48px; padding: 0; }
  .pagination__nav-label { display: none; }
}

/* =========================================================================
   Footers: legal links + public footer
   ========================================================================= */
.footer__legal { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 40px; }
.footer__legal a { font-family: var(--font-mono); font-size: 0.82rem; color: color-mix(in srgb, var(--cream) 80%, transparent); text-decoration: underline; text-underline-offset: 3px; }
.footer__legal a:hover { color: var(--sun); }

.pubfoot { background: var(--ink); color: color-mix(in srgb, var(--cream) 72%, transparent); border-top: var(--stroke-bold) solid var(--ink); }
.pubfoot .wrap { padding: 30px 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.pubfoot__links { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.pubfoot__legal { font-family: var(--font-mono); font-weight: 700; font-size: 0.82rem; color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }
.pubfoot__legal:hover { color: var(--sun); }
.pubfoot__copy { margin: 0; font-family: var(--font-mono); font-size: 0.78rem; }

/* "О нас" link in the compact sub-page header */
.nav__solo { font-family: var(--font-body); font-weight: 800; font-size: 1rem; color: var(--cream); text-decoration: none; }
.nav__solo:hover { color: var(--sun); }

/* =========================================================================
   About page (/about) — full-bleed static frame + cursor-local animation layer
   ========================================================================= */
.aboutpage {
  margin-top: var(--nav-h); /* clear the fixed header */
  background: var(--sun);
}

.about__stage {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - var(--nav-h));
  min-height: calc(100dvh - var(--nav-h));
  overflow: hidden;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: clamp(86px, 12vh, 120px) clamp(20px, 5vw, 72px) clamp(28px, 5vh, 56px);
  background: #ffd43b;
}

.about__media,
.about__frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.about__media { z-index: 0; pointer-events: none; }
.about__frame {
  z-index: 0;
  display: block;
  max-width: none;
  object-fit: cover;
  object-position: center;
}
.about__reveal {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: block;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}
.about__stage.is-revealing .about__reveal { opacity: 1; }

/* The video is a decoding source only. Rendering it directly would leak motion
   through the PNG's transparent centre; JS copies only the cursor-local crop. */
.about__video {
  position: fixed;
  top: -10000px;
  left: -10000px;
  width: 2px;
  height: 2px;
  pointer-events: none;
}

/* The copy is an excluded pointer zone in the frame's empty centre. */
.about__inner {
  position: relative;
  z-index: 2;
  width: min(520px, 42vw);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(8px, 1.3vh, 14px);
  padding: 0;
}
.aboutpage .eyebrow { margin-bottom: 2px; font-size: clamp(0.7rem, 1.2vw, 0.82rem); }
.about__title { margin: 0; font-family: var(--font-display); font-weight: 800; line-height: 1.02; color: var(--ink); font-size: clamp(2rem, 4.1vw, 3.35rem); }
.about__text { margin: 0; color: var(--ink); line-height: 1.45; max-width: 40ch; font-size: clamp(0.9rem, 1.25vw, 1.05rem); }
.about__cta { margin-top: clamp(4px, 1vh, 10px); justify-content: center; }

/* Short laptop screens: keep all copy above the illustrated bottom band. */
@media (min-width: 681px) and (max-height: 720px) {
  .about__stage { padding-block: 76px 18px; }
  .about__inner { width: min(500px, 43vw); gap: 7px; }
  .aboutpage .eyebrow { font-size: 0.68rem; }
  .about__title { font-size: clamp(1.75rem, 3.6vw, 2.7rem); }
  .about__text { font-size: clamp(0.82rem, 1.1vw, 0.94rem); line-height: 1.35; }
  .about__cta { min-height: 46px; padding-block: 9px; font-size: 0.95rem; }
}

/* Phones and portrait tablets keep one continuous illustrated scene. The PNG
   stays behind the copy and its transparent centre becomes the text safe zone;
   no opaque band can cut through the artwork. */
@media (max-width: 820px),
       (max-aspect-ratio: 5 / 4),
       (max-width: 1023px) and (max-height: 620px) {
  .about__stage {
    display: grid;
    align-items: start;
    justify-items: center;
    padding: clamp(72px, 10vh, 96px) clamp(20px, 6vw, 48px) 24px;
    overflow: hidden;
  }
  .about__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
  .about__frame {
    object-fit: cover;
    object-position: center bottom;
  }
  .about__inner {
    width: min(520px, 100%);
    gap: 12px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
  }
  .aboutpage .eyebrow { font-size: 0.76rem; }
  .about__title { font-size: clamp(1.85rem, 7.5vw, 2.8rem); }
  .about__text { max-width: 38ch; font-size: clamp(1rem, 2.8vw, 1.02rem); line-height: 1.48; }
  .about__video,
  .about__reveal { display: none; }
}

/* Short landscape screens cannot fit the full copy in one viewport without
   sacrificing readability. Give them a clean scrollable scene instead of
   allowing the bottom artwork to enter the text zone. */
@media (max-height: 620px) {
  .about__stage { min-height: max(calc(100dvh - var(--nav-h)), 520px); }
  .about__inner { gap: 8px; }
  .about__title { font-size: clamp(1.8rem, 5vw, 2.5rem); }
  .about__text { font-size: 1rem; line-height: 1.4; }
  .about__cta { min-height: 46px; padding-block: 9px; font-size: 1rem; }
}

@media (max-width: 1023px) and (max-height: 620px) {
  .about__stage { min-height: 620px; padding-top: 72px; }
}

@media (max-width: 480px) {
  .about__stage { min-height: max(calc(100dvh - var(--nav-h)), 720px); padding-top: clamp(64px, 9vh, 76px); }
  .about__inner { gap: 10px; }
  .about__title { font-size: clamp(1.75rem, 9vw, 2.25rem); }
  .about__text { font-size: 1rem; line-height: 1.45; }
  .about__cta { width: 100%; min-height: 50px; padding: 11px 18px; font-size: 1rem; }
}

@media (hover: none), (pointer: coarse) {
  .about__video,
  .about__reveal { display: none; }
}

/* =========================================================================
   Contacts page (/contacts) — flat riso poster + illustrated contact cards
   ========================================================================= */
.contactpage { background: var(--violet); }
.contact-hero {
  position: relative;
  isolation: isolate;
  /* Never reveal the dark divider/next section in the initial viewport.
     min-height, rather than height, keeps short and mobile screens scroll-safe. */
  min-height: calc(100vh + var(--stroke-bold));
  min-height: calc(100svh + var(--stroke-bold));
  min-height: calc(100dvh + var(--stroke-bold));
  display: grid;
  align-items: center;
  padding: calc(var(--nav-h) + clamp(58px, 8vw, 104px)) 0 clamp(72px, 9vw, 116px);
  overflow: hidden;
  background: var(--violet);
  border-bottom: var(--stroke-bold) solid var(--ink);
}
.contact-hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: clamp(42px, 7vw, 92px);
  align-items: center;
}
.contact-kicker {
  margin: 0 0 22px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream);
}
.contact-hero__title {
  max-width: 7ch;
  font-size: clamp(4.5rem, 9.2vw, 8.4rem);
  line-height: 0.78;
  letter-spacing: -0.045em;
  color: var(--sun);
}
.contact-hero__title span:not(.title-line) { color: var(--cream); }
.contact-hero__lead {
  max-width: 37ch;
  margin: 34px 0 0;
  font-size: clamp(1.08rem, 1.6vw, 1.32rem);
  font-weight: 700;
  line-height: 1.52;
  color: var(--cream);
}
.contact-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 26px; margin-top: 34px; }
.contact-hero__phone {
  justify-content: center;
  min-width: 250px;
  color: var(--sun);
  white-space: nowrap;
}
.contact-hero__phone:hover { color: var(--sun); }
.contact-hero__phone:focus-visible { color: var(--sun); outline-color: var(--sun); }
.contact-hero__art {
  min-height: clamp(430px, 44vw, 580px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
}
.contact-hero__mascot {
  width: min(100%, 580px);
  height: auto;
  object-fit: contain;
  object-position: center bottom;
  filter: drop-shadow(6px 8px 0 rgba(30, 27, 22, 0.14));
}
.contact-bubble {
  position: relative;
  z-index: 2;
  flex: none;
  margin: 0 0 clamp(10px, 1.5vw, 18px);
  padding: 13px 18px;
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 800;
  line-height: 1.05;
  background: var(--paper);
  border: var(--stroke) solid var(--ink);
  border-radius: 16px;
  transform: rotate(3deg);
}
.contact-bubble::after {
  content: "";
  position: absolute;
  left: 20px;
  bottom: -10px;
  width: 17px;
  height: 17px;
  background: var(--paper);
  border-right: var(--stroke) solid var(--ink);
  border-bottom: var(--stroke) solid var(--ink);
  transform: rotate(45deg);
}

.contact-channels {
  padding: clamp(76px, 10vw, 126px) 0;
  background: var(--cream);
}
.contact-channels__head { max-width: 790px; margin-bottom: 50px; }
.contact-channels__head .eyebrow { margin-bottom: 18px; }
.contact-channels__head h2 { font-size: clamp(2.5rem, 6vw, 5rem); line-height: 0.9; }
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-card {
  position: relative;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 26px;
  overflow: hidden;
  background: var(--paper);
  border: var(--stroke) solid var(--ink);
  border-radius: var(--radius-card);
  transition: transform 0.15s ease, background 0.15s ease;
}
.contact-card:hover { transform: translateY(-5px); }
.contact-card--mail:hover { background: color-mix(in srgb, var(--pink) 36%, var(--paper)); }
.contact-card--phone:hover { background: color-mix(in srgb, var(--matcha) 48%, var(--paper)); }
.contact-card--telegram { color: var(--cream); background: var(--violet); }
.contact-card--telegram:hover { background: color-mix(in srgb, var(--violet) 84%, var(--ink)); }
.contact-card__icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  margin-bottom: 30px;
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 800;
  border: var(--stroke) solid var(--ink);
  border-radius: 50%;
  background: var(--pink);
}
.contact-card--phone .contact-card__icon { background: var(--matcha); }
.contact-card--telegram .contact-card__icon { color: var(--ink); background: var(--sun); }
.contact-card--telegram .contact-card__icon svg { width: 58%; height: 58%; }
.contact-card--telegram .contact-card__label,
.contact-card--telegram .contact-card__note { color: var(--cream); }
.contact-card__label {
  margin-bottom: 9px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.contact-card strong { max-width: 16ch; font-family: var(--font-display); font-size: clamp(1.35rem, 2.2vw, 1.7rem); line-height: 1.08; }
.contact-card__note { max-width: 30ch; margin-top: auto; padding-top: 24px; font-size: 0.94rem; font-weight: 700; line-height: 1.45; color: var(--ink-soft); }
.contact-card__arrow { position: absolute; top: 25px; right: 25px; font-size: 1.5rem; font-weight: 800; }

.contact-poster {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr auto;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  margin-top: clamp(38px, 5vw, 60px);
  padding: clamp(28px, 5vw, 52px);
  background: var(--sun);
  border: var(--stroke) solid var(--ink);
  border-radius: var(--radius-card);
}
.contact-poster__label { margin: 0 0 14px; font-family: var(--font-mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.contact-poster h2 { font-size: clamp(2.2rem, 4.8vw, 4.4rem); line-height: 0.86; }
.contact-poster > p { max-width: 34ch; margin: 0; font-size: 1.08rem; font-weight: 700; line-height: 1.48; }
.contact-poster .btn { white-space: nowrap; }

@media (max-width: 900px) {
  .contact-hero__grid { grid-template-columns: 1fr; }
  .contact-hero__copy { max-width: 720px; }
  .contact-hero__art { width: min(540px, 100%); min-height: auto; margin-inline: auto; }
  .contact-cards { grid-template-columns: 1fr; }
  .contact-card { min-height: 250px; }
  .contact-poster { grid-template-columns: 1fr; }
  .contact-poster .btn { width: fit-content; }
}

@media (max-width: 560px) {
  .contact-hero { padding-top: calc(var(--nav-h) + 48px); }
  .contact-hero__title { font-size: clamp(3.7rem, 20vw, 5.5rem); }
  .contact-hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    align-items: center;
    gap: 12px;
    width: 100%;
  }
  .contact-hero__actions .btn {
    width: 100%;
    min-width: 0;
    min-height: 52px;
    justify-content: center;
    padding: 12px clamp(12px, 4vw, 18px);
    font-size: clamp(0.86rem, 4.2vw, 1rem);
    white-space: nowrap;
  }
  .contact-hero__art { width: min(370px, 100%); }
  .contact-channels { padding-block: 72px; }
  .contact-channels__head h2 { font-size: clamp(2.4rem, 12vw, 3.4rem); }
  .contact-card { min-height: 280px; padding: 23px; }
  .contact-bubble { margin-right: 4px; }
  .contact-poster { padding: 28px 22px; }
  .contact-poster .btn { width: 100%; justify-content: center; white-space: normal; }
}

@media (max-width: 360px) {
  .contact-hero { padding-top: calc(var(--nav-h) + 38px); }
  .contact-hero__lead { margin-top: 26px; font-size: 1rem; }
  .contact-hero__actions { margin-top: 28px; }
  .contact-hero__actions .btn { padding-inline: 10px; font-size: 0.82rem; }
  .contact-bubble { padding: 10px 14px; font-size: 1rem; }
  .contact-channels__head { margin-bottom: 34px; }
  .contact-card { min-height: 250px; padding: 20px; }
}

@media (min-width: 561px) and (max-width: 900px) {
  .contact-hero__art { margin-top: 8px; }
  .contact-bubble { margin-right: 5%; }
}

@media (min-width: 901px) and (max-height: 720px) {
  .contact-hero { padding-bottom: 54px; }
  .contact-hero__art { min-height: 500px; }
  .contact-hero__mascot { max-height: 430px; width: auto; }
}

/* =========================================================================
   Legal pages (/agreement /privacy)
   ========================================================================= */
.legal { padding: calc(var(--nav-h) + 44px) 0 80px; min-height: 100vh; min-height: 100lvh; background: var(--paper); }
.wrap--narrow { width: min(100% - 40px, 760px); margin-inline: auto; }
.legal__title { font-family: var(--font-display); font-weight: 800; font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.01em; margin: 8px 0 6px; }
.legal__meta { font-family: var(--font-mono); font-size: 0.85rem; color: var(--ink-soft); margin: 0 0 34px; }
.legal h2 { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; margin: 30px 0 10px; }
.legal p { font-size: 1.02rem; line-height: 1.7; color: var(--ink); margin: 0 0 14px; max-width: 68ch; }
.legal a { color: var(--leaf); text-decoration: underline; }
.legal__contacts { font-family: var(--font-mono); font-size: 0.92rem; line-height: 1.9; }

/* =========================================================================
   Catalog tools (search + filters on /courses) and review buttons
   ========================================================================= */
.catalog-tools { display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; justify-content: space-between; margin-bottom: 34px; }
.catalog-tools .filters { margin: 0; }
.search { flex: 1 1 260px; max-width: 420px; }
.search input {
  width: 100%; font-family: var(--font-body); font-weight: 600; font-size: 1rem;
  padding: 13px 18px; border: var(--stroke) solid var(--ink); border-radius: var(--radius-pill);
  background: var(--paper); color: var(--ink);
}
.search input:focus { outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--leaf) 30%, transparent); }

.subpage__head { max-width: none; }
.subpage__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px 28px;
}
.subpage__head .section__lead { max-width: 720px; }
.subpage__action { flex: none; }

.reviews__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 28px; flex-wrap: wrap; max-width: none; }
.reviews__head > div { max-width: 640px; }
.reviews__add { flex-shrink: 0; margin-bottom: 6px; }
@media (max-width: 620px) {
  .reviews__head { align-items: stretch; }
  .reviews__add { width: 100%; justify-content: center; }
  .subpage__title-row { align-items: stretch; }
  .subpage__action { width: 100%; justify-content: center; }
}

/* =========================================================================
   Review modal
   ========================================================================= */
.rmodal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.rmodal[hidden] { display: none; }
.rmodal__backdrop { position: absolute; inset: 0; background: rgba(20, 15, 8, 0.55); backdrop-filter: blur(2px); }
.rmodal__card {
  position: relative; z-index: 1; width: min(480px, 100%); max-height: 92svh; overflow: auto;
  background: var(--paper); border: var(--stroke) solid var(--ink); border-radius: var(--radius-card);
  box-shadow: var(--shadow-hard); padding: 30px;
  animation: rmodal-in 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes rmodal-in { from { transform: translateY(14px) scale(0.97); opacity: 0; } to { transform: none; opacity: 1; } }
.rmodal__x { position: absolute; top: 12px; right: 14px; width: 38px; height: 38px; border: 2px solid var(--ink); border-radius: 50%; background: var(--cream); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.rmodal__x:hover { background: var(--sun); }
.rmodal h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; margin: 0 0 6px; }
.rmodal__submit { width: 100%; justify-content: center; margin-top: 4px; }
.rmodal__ok { display: none; text-align: center; padding: 12px 0; }
.rmodal__ok svg { width: 84px; margin: 0 auto 12px; }
.rmodal.is-done .rmodal__body { display: none; }
.rmodal.is-done .rmodal__ok { display: block; }

/* =========================================================================
   Reveal-on-scroll
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.is-in { opacity: 1; transform: none; }

/* Headings enter once, line by line where the copy already contains <br>.
   JavaScript adds the ready state, so text remains visible if scripts fail. */
.title-line {
  display: block;
  opacity: 1;
  transform: none;
}
.title-lines--ready .title-line {
  opacity: 0;
  transform: translateY(0.24em);
}
.title-lines--ready.is-title-in .title-line {
  animation: title-line-enter 0.44s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--title-line-index, 0) * 70ms);
}
@keyframes title-line-enter {
  from {
    opacity: 0;
    transform: translateY(0.24em);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================================
   Responsive
   ========================================================================= */
/* tighten the nav a little before it collapses, so links never crowd the CTA */
@media (max-width: 1120px) and (min-width: 961px) {
  .nav__menu { gap: 10px; }
  .nav__links a { padding: 0 10px; font-size: 0.78rem; }
  .nav__cta.btn { padding: 0 18px; }
}

@media (max-width: 960px) {
  .nav__menu { display: none; }
  .nav__burger { display: inline-flex; }
  body.nav-open .nav__menu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    margin: 0;
    position: fixed;
    top: calc(var(--nav-h) + env(safe-area-inset-top) + 10px);
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    max-height: calc(100vh - var(--nav-h) - 24px);
    max-height: calc(100svh - var(--nav-h) - 24px);
    max-height: calc(100dvh - var(--nav-h) - 24px);
    overflow-y: auto;
    background: var(--cream);
    border: var(--stroke) solid var(--ink);
    border-radius: 22px;
    box-shadow: none;
    padding: 16px 16px max(20px, env(safe-area-inset-bottom));
    z-index: 99;
    animation: drawerIn 0.28s cubic-bezier(0.22, 1, 0.36, 1);
    scrollbar-width: thin;
    scrollbar-color: var(--leaf) transparent;
  }
  body.nav-open .nav__menu::before {
    content: "Куда отправимся?";
    display: block;
    padding: 0 4px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--leaf-deep);
  }
  body.nav-open .nav__menu > nav { display: block; }
  @keyframes drawerIn {
    from { opacity: 0; transform: translateY(-10px) scale(0.985); }
    to { opacity: 1; transform: none; }
  }
  body.nav-open .nav__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 11px;
  }
  body.nav-open .nav__links li { --menu-accent: var(--sun); }
  body.nav-open .nav__links a {
    display: grid;
    grid-template-columns: 14px minmax(0, 1fr) auto;
    gap: 11px;
    height: 58px;
    padding: 0 15px;
    justify-content: stretch;
    border: var(--stroke) solid var(--ink);
    border-radius: 16px;
    background: var(--paper);
    color: var(--ink);
    box-shadow: none;
    font-family: var(--font-display);
    font-size: 1.04rem;
    font-weight: 800;
    transition:
      transform 0.16s ease,
      background 0.2s ease,
      border-color 0.2s ease;
  }
  body.nav-open .nav__links a::before {
    content: "";
    width: 12px;
    height: 12px;
    border: 2px solid var(--ink);
    border-radius: 50%;
    background: var(--menu-accent);
  }
  body.nav-open .nav__links a::after {
    content: "→";
    font-family: var(--font-mono);
    font-size: 1rem;
    transition: transform 0.16s ease;
  }
  body.nav-open .nav__links a:hover {
    border-color: var(--ink);
    background: color-mix(in srgb, var(--menu-accent) 22%, var(--paper));
    color: var(--ink);
  }
  body.nav-open .nav__links a:hover::after { transform: translateX(3px); }
  body.nav-open .nav__links a:active {
    transform: scale(0.985);
    background: color-mix(in srgb, var(--menu-accent) 32%, var(--paper));
  }
  body.nav-open .nav__links a:focus-visible {
    outline: 3px solid var(--sun);
    outline-offset: 3px;
  }
  /* each item gets its own confetti accent — colourful & lively */
  body.nav-open .nav__links li:nth-child(6n+1) { --menu-accent: var(--fern); }
  body.nav-open .nav__links li:nth-child(6n+2) { --menu-accent: var(--sun); }
  body.nav-open .nav__links li:nth-child(6n+3) { --menu-accent: var(--pink); }
  body.nav-open .nav__links li:nth-child(6n+4) { --menu-accent: var(--violet); }
  body.nav-open .nav__links li:nth-child(6n+5) { --menu-accent: var(--magenta); }
  body.nav-open .nav__links li:nth-child(6n+6) { --menu-accent: var(--red); }
  body.nav-open .nav__links a.is-active {
    background: var(--sun);
    color: var(--ink);
    border-color: var(--ink);
    box-shadow: none;
  }
  body.nav-open .nav__cta.btn {
    width: 100%;
    height: 60px;
    margin-top: 1px;
    justify-content: center;
    background: var(--ink);
    color: var(--sun);
    box-shadow: none;
    font-size: 1.12rem;
  }
  body.nav-open .nav__cta.btn:hover {
    background: var(--leaf-deep);
    color: var(--cream);
    box-shadow: none;
    transform: none;
  }
  body.nav-open .nav__cta.btn:active {
    background: var(--ink);
    color: var(--sun);
    box-shadow: none;
    transform: scale(0.985);
  }
  body.nav-open .nav__cta.btn::after {
    content: "→";
    font-family: var(--font-mono);
    font-size: 1rem;
  }

  /* trim the vine layers as space tightens: keep the edge-framing front vines */
  .canopy--fore { display: none; }
  .canopy--back { display: none; }
  .vine--inner { display: none; }

  .cta__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  /* keep the two outer + two mid vines (4 total), short, framing the top corners */
  .vine { width: 56px !important; opacity: 0.95; }
  .vine--mid { display: block; }

  /* On small screens the pinned journey becomes a simple stacked story */
  .journey__scroll { height: auto; }
  .tree-scene { position: relative; height: auto; padding: 60px 0; display: block; }
  .tree-scene__trunk, .tree-scene__vine, .tree-scene__dots, .journey__hint, .tree-scene__fern--bl, .tree-scene__fern--br { display: none; }
  .tree-scene__sloth { margin: 0 auto 24px; width: 220px; }
  .tree-scene__sloth .prop { opacity: 1 !important; transform: none !important; position: absolute; }
  .tree-scene__sloth .prop--wave, .tree-scene__sloth .prop--book, .tree-scene__sloth .prop--laptop { display: none; }
  .tree-scene__panels { position: static; }
  .stage-panel { position: static; width: auto; transform: none !important; opacity: 1 !important; margin: 0 20px 20px; }
  .field--row { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  body.nav-open .nav__menu { gap: 11px; }
  body.nav-open .nav__links {
    grid-template-columns: 1fr;
    gap: 8px;
  }
  body.nav-open .nav__links a {
    height: 54px;
    font-size: 1rem;
  }
  body.nav-open .nav__cta.btn { height: 56px; }
}

@media (max-width: 480px) {
  .nav__inner { width: min(100% - 24px, var(--maxw)); }
  .nav__burger {
    min-width: 50px;
    width: 50px;
    height: 48px;
    padding: 0;
    border-radius: 15px;
  }
  .nav__burger-icon { margin-right: 0; }
  .nav__burger-text { display: none; }
  body.nav-open .nav__menu {
    left: max(8px, env(safe-area-inset-left));
    right: max(8px, env(safe-area-inset-right));
    padding: 14px 12px max(17px, env(safe-area-inset-bottom));
    border-radius: 18px;
    box-shadow: none;
  }
  .form { padding: 24px 18px; }
  .field input, .field select, .field textarea { min-height: 56px; padding: 14px 16px; }
  .field select {
    padding-right: 48px;
    background-position:
      calc(100% - 22px) calc(50% - 2px),
      calc(100% - 16px) calc(50% - 2px);
  }
}

/* =========================================================================
   Reduced motion
   ========================================================================= */
/* Reduced motion: we keep the brand's gentle looping motion (marquee ticker,
   soft bob, scene cross-fades) because they are low-amplitude and non-vestibular.
   We only skip the entrance reveals so nothing stays hidden. */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .title-lines--ready .title-line,
  .title-lines--ready.is-title-in .title-line {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .brand:hover .brand__original { opacity: 1; animation: none; }
  .brand:hover .brand__dot { animation: none; transform: none; }
  .brand:hover .brand__drawn i { opacity: 0; animation: none; }
  .brand__logo,
  .brand:hover .brand__logo { animation: none; transform: none; }
  .section-geo__shape,
  .section-geo__shape::before,
  .section-geo__shape::after,
  .section-geo__triangle { transition: none; }
  .field-tip__bubble { transition: none; }
  .nav__burger,
  .nav__burger-icon,
  .nav__burger-icon::before,
  .nav__burger-icon::after,
  body.nav-open .nav__menu,
  body.nav-open .nav__links a,
  body.nav-open .nav__links a::after { transition: none; animation: none; }
  .about__video,
  .about__reveal { display: none; }
}
