/* =========================================================
   Биолекторий — основной стиль
   ========================================================= */

@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url("../fonts/unbounded-cyrillic-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url("../fonts/unbounded-latin-wght-normal.woff2") format("woff2-variations");
  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: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/manrope-cyrillic-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("../fonts/manrope-latin-wght-normal.woff2") format("woff2-variations");
  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 {
  --ink: #0c2618;
  --ink-2: #123822;
  --ink-3: #1b4a2f;
  --leaf: #7cc242;
  --leaf-2: #9bd65f;
  --leaf-d: #3f9a2d;
  --sun: #ffd23f;
  --sun-2: #ffe27a;
  --coral: #ff7a59;
  --sky: #5ec8e5;
  --paper: #f5f1e6;
  --paper-2: #ece6d6;
  --card: #fffdf7;
  --text: #13251b;
  --muted: #5d6c62;
  --line: rgb(19 37 27 / .12);
  --on-dark: #eef5e9;
  --on-dark-muted: rgb(238 245 233 / .66);

  --f-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --r-sm: 12px;
  --r: 22px;
  --r-lg: 34px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1320px;
  --header-h: 76px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow: 0 1px 2px rgb(12 38 24 / .06), 0 12px 32px -12px rgb(12 38 24 / .22);
  --shadow-lg: 0 30px 80px -30px rgb(12 38 24 / .45);

  color-scheme: light;
  interpolate-size: allow-keywords;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
html:not(.lenis) { scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  font-size: clamp(1rem, .96rem + .2vw, 1.0625rem);
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
svg { fill: currentColor; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
p a, .faq__hint a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 600; line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
p { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--sun); color: var(--ink); }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 1000;
  background: var(--sun); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.skip-link:focus { top: 16px; }

/* ---------- типографика ---------- */
.h2 { font-size: clamp(2rem, 1.2rem + 3.6vw, 4.2rem); }
.h3 { font-size: clamp(1.4rem, 1.1rem + 1.3vw, 2.1rem); }
.h4 { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); }
.h2 em, .h3 em, .hero__title em, .page-hero__title em, .booking em {
  font-style: normal;
  color: var(--leaf-d);
  background: linear-gradient(transparent 72%, rgb(124 194 66 / .28) 72% 92%, transparent 92%);
  padding-inline: .06em;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--f-body); font-weight: 700; font-size: .8rem;
  text-transform: uppercase; letter-spacing: .14em; color: var(--leaf-d);
  margin-bottom: 1.1rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow svg { width: 18px; height: 18px; }
.eyebrow--light { color: var(--leaf-2); }

.section-head { max-width: 820px; margin-bottom: clamp(2.2rem, 5vw, 4rem); }
.section-head__lead { margin-top: 1.2rem; font-size: 1.125rem; color: var(--muted); max-width: 620px; }

.statement {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(1.45rem, 1rem + 2vw, 2.6rem);
  line-height: 1.22; letter-spacing: -.02em;
}
.statement--sm { font-size: clamp(1.2rem, 1rem + 1.1vw, 1.9rem); font-weight: 400; line-height: 1.35; }
.statement .w { transition: color .2s; }

/* ---------- кнопки ---------- */
.btn {
  --bg: var(--ink); --fg: var(--paper); --bd: transparent;
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: .8em 1.5em;
  background: var(--bg); color: var(--fg); border: 1.5px solid var(--bd);
  border-radius: 999px; font-weight: 700; line-height: 1.1; white-space: nowrap;
  transition: transform .5s var(--ease), background-color .3s, color .3s, border-color .3s;
}
.btn svg { width: 1.2em; height: 1.2em; flex: none; transition: transform .4s var(--ease); }
.btn:hover svg:last-child { transform: translateX(4px); }
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--hover, rgb(255 255 255 / .18));
  transform: translateY(101%); border-radius: inherit;
  transition: transform .5s var(--ease);
}
.btn:hover::after { transform: translateY(0); }
.btn--accent { --bg: var(--sun); --fg: var(--ink); --hover: var(--sun-2); box-shadow: 0 10px 30px -10px rgb(255 210 63 / .7); }
.btn--dark { --bg: var(--ink); --fg: var(--paper); --hover: var(--ink-3); }
.btn--glass { --bg: rgb(255 255 255 / .08); --fg: var(--on-dark); --bd: rgb(255 255 255 / .22); backdrop-filter: blur(10px); }
.btn--ghost { --bg: transparent; --fg: currentColor; --bd: currentColor; --hover: rgb(124 194 66 / .16); }
.btn--sm { min-height: 40px; padding: .55em 1.1em; font-size: .92rem; }
.btn--lg { min-height: 58px; padding: 1em 1.9em; font-size: 1.05rem; }
.btn--block { width: 100%; }

.link-arrow { display: inline-flex; align-items: center; gap: .5em; font-weight: 700; }
.link-arrow svg { width: 1.2em; height: 1.2em; transition: transform .4s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }
.link-btn { text-decoration: underline; text-underline-offset: 3px; font-weight: 700; }

.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  color: var(--on-dark); background: rgb(255 255 255 / .08); transition: background .3s, color .3s;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { background: var(--leaf); color: var(--ink); }

.tag {
  display: inline-flex; align-items: center; gap: .4em; width: fit-content;
  padding: .3em .8em; border-radius: 999px; font-size: .75rem; font-weight: 700;
  letter-spacing: .02em; background: rgb(124 194 66 / .16); color: var(--leaf-d);
}
.tag--game { background: rgb(255 122 89 / .16); color: #c24a2c; }
.tag--cycle { background: rgb(94 200 229 / .18); color: #1f7f98; }
.tag--interactive { background: rgb(255 210 63 / .3); color: #7a5b00; }

.age-pill {
  display: inline-grid; place-items: center; vertical-align: middle;
  padding: .15em .6em; border-radius: 999px; font-size: .6em; background: var(--sun); color: var(--ink);
}

/* ---------- прогресс прокрутки ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 200; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--leaf), var(--sun)); transform-origin: 0 50%; transform: scaleX(0); }
@supports (animation-timeline: scroll()) {
  .progress span { animation: progress linear both; animation-timeline: scroll(root); }
  @keyframes progress { to { transform: scaleX(1); } }
}

/* ---------- шапка ---------- */
.header {
  position: fixed; inset: 12px 0 auto; z-index: 100;
  padding-inline: var(--gutter);
  transform: translate3d(0, 0, 0);
  will-change: transform;
  transition: transform .45s var(--ease);
}
.header.is-hidden { transform: translate3d(0, calc(-100% - 20px), 0); }
.header__inner {
  max-width: var(--maxw); margin-inline: auto;
  display: flex; align-items: center; gap: 1.5rem;
  height: calc(var(--header-h) - 12px); padding: 0 10px 0 18px;
  border-radius: 999px; color: var(--on-dark);
  background: rgb(12 38 24 / .55);
  border: 1px solid rgb(255 255 255 / .1);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  transition: background .4s, box-shadow .4s;
}
.header.is-scrolled .header__inner { background: rgb(12 38 24 / .86); box-shadow: 0 16px 40px -18px rgb(0 0 0 / .5); }

.brand { display: inline-flex; align-items: center; gap: .7rem; flex: none; }
.brand__logo { display: block; height: 50px; width: auto; transition: transform .6s var(--ease); }
.brand:hover .brand__logo { transform: rotate(-3deg) scale(1.04); }
.brand__logo--lg { height: 84px; }

.nav { display: flex; gap: .3rem; margin-inline: auto; }
.nav a {
  position: relative; padding: .5em .9em; border-radius: 999px; font-weight: 600; font-size: .95rem;
  color: var(--on-dark-muted); transition: color .3s, background .3s;
}
.nav a:hover, .nav a[aria-current] { color: var(--on-dark); background: rgb(255 255 255 / .08); }
.header__actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }

.burger { display: none; width: 44px; height: 44px; border-radius: 50%; background: rgb(255 255 255 / .1); position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--on-dark); border-radius: 2px; transition: transform .4s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { bottom: 17px; }

.mobile-menu {
  inset: 0; width: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; border: 0;
  padding: calc(var(--header-h) + 20px) var(--gutter) 32px;
  background: var(--ink); color: var(--on-dark);
  display: none; flex-direction: column; justify-content: space-between;
  opacity: 0; transform: translateY(-2%);
  transition: opacity .4s var(--ease), transform .5s var(--ease), overlay .5s allow-discrete, display .5s allow-discrete;
}
.mobile-menu:popover-open { display: flex; opacity: 1; transform: none; }
@starting-style { .mobile-menu:popover-open { opacity: 0; transform: translateY(-2%); } }
.mobile-menu nav { display: grid; gap: .2rem; }
.mobile-menu nav a { font-family: var(--f-display); font-size: clamp(1.8rem, 8vw, 2.6rem); font-weight: 500; padding: .2em 0; border-bottom: 1px solid rgb(255 255 255 / .08); }
.mobile-menu nav a:hover { color: var(--leaf-2); }
.mobile-menu__cta { color: var(--sun) !important; }
.mobile-menu__close { position: absolute; top: 22px; right: var(--gutter); width: 48px; height: 48px; border-radius: 50%; background: rgb(255 255 255 / .1); display: grid; place-items: center; }
.mobile-menu__close svg { width: 24px; height: 24px; }
.mobile-menu__foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; color: var(--on-dark-muted); }

.socials { display: flex; gap: .5rem; }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgb(255 255 255 / .08); color: var(--on-dark); transition: background .3s, color .3s, transform .4s var(--ease); }
.socials a:hover { background: var(--leaf); color: var(--ink); transform: translateY(-3px); }
.socials svg { width: 22px; height: 22px; }
.socials--lg a { width: 52px; height: 52px; }

/* ---------- декоративные пятна ---------- */
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; will-change: transform; }
.blob--1 { width: 46vw; height: 46vw; left: -12vw; top: -10vw; background: radial-gradient(circle, #2f8a3b, transparent 65%); animation: drift 18s ease-in-out infinite alternate; }
.blob--2 { width: 38vw; height: 38vw; right: -8vw; top: 20%; background: radial-gradient(circle, #1f6f7a, transparent 65%); animation: drift 22s ease-in-out infinite alternate-reverse; }
.blob--3 { width: 30vw; height: 30vw; left: 35%; bottom: -12vw; background: radial-gradient(circle, rgb(255 210 63 / .55), transparent 65%); animation: drift 26s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate3d(6vw, 4vw, 0) scale(1.15); } }

.grain::after, .hero::after, .page-hero::after, .hscroll::after, .booking::after, .footer::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: .09; mix-blend-mode: overlay;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  min-height: max(100svh, 720px);
  display: grid; grid-template-rows: 1fr auto;
  padding-top: calc(var(--header-h) + 40px);
  background: radial-gradient(120% 90% at 70% 10%, #164a2c 0%, var(--ink) 55%, #081a10 100%);
  color: var(--on-dark);
}
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.hero__eyebrow .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--leaf-2); box-shadow: 0 0 0 0 rgb(155 214 95 / .7); animation: pulse 2s infinite; }
.hero__eyebrow::before { display: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgb(155 214 95 / 0); } 100% { box-shadow: 0 0 0 0 rgb(155 214 95 / 0); } }

.hero__title, .page-hero__title {
  font-size: clamp(2.3rem, .8rem + 3.9vw, 4.9rem);
  font-weight: 600; line-height: .98; letter-spacing: -.035em;
}
.hero__title .line, .page-hero__title .line, .lecture__title .line, .nf__code .line { display: block; overflow: clip; padding-bottom: .06em; }
.hero__title em, .page-hero__title em { color: var(--sun); background: none; padding: 0; position: relative; }
.hero__title em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.08em; height: .18em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 20' preserveAspectRatio='none'%3E%3Cpath d='M3 14 C 60 4, 120 4, 170 10 S 260 17, 297 6' fill='none' stroke='%237cc242' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% no-repeat;
  transform-origin: left; animation: draw 1.4s 1s var(--ease) both;
}
@keyframes draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
/* плашка онлайн-анонса на первом экране */
.announce { margin-bottom: 1.6rem; }
.announce__link {
  display: inline-flex; align-items: center; gap: .8rem; flex-wrap: nowrap; max-width: 100%;
  padding: .45rem .5rem .45rem .45rem; border-radius: 999px;
  background: rgb(255 255 255 / .08); border: 1px solid rgb(255 210 63 / .35);
  backdrop-filter: blur(10px); color: var(--on-dark); font-size: .92rem; line-height: 1.25;
  transition: background .3s, border-color .3s, transform .5s var(--ease);
}
.announce__link:hover { background: rgb(255 255 255 / .14); border-color: var(--sun); transform: translateY(-2px); }
.announce__badge { display: inline-flex; align-items: center; gap: .45rem; padding: .35em .8em; border-radius: 999px; background: var(--sun); color: var(--ink); font-weight: 800; font-size: .78rem; white-space: nowrap; }
.announce__badge .pulse { width: 7px; height: 7px; border-radius: 50%; background: #e0322b; box-shadow: 0 0 0 0 rgb(224 50 43 / .6); animation: pulse 2s infinite; }
.announce__text { min-width: 0; }
.announce__text b { font-weight: 800; }
.announce__date { color: var(--on-dark-muted); margin-left: .3em; }
.announce__cta { display: inline-flex; align-items: center; gap: .35rem; padding-right: .6rem; font-weight: 800; color: var(--sun); white-space: nowrap; }
.announce__cta svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }
.announce__link:hover .announce__cta svg { transform: translateX(4px); }
@media (max-width: 640px) {
  .announce__link { flex-wrap: wrap; border-radius: 20px; gap: .4rem .6rem; padding: .6rem .8rem; }
  .announce__date { display: block; margin-left: 0; }
}
.hero__lead { margin-top: 1.6rem; max-width: 540px; font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); color: var(--on-dark-muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }

.hero__stage { position: relative; height: min(68vh, 640px); min-height: 460px; }
.specimen {
  position: absolute; display: block; will-change: transform;
  transition: filter .4s;
}
.specimen__img {
  display: block; overflow: hidden; border-radius: 22px;
  box-shadow: 0 30px 60px -20px rgb(0 0 0 / .6), 0 0 0 1px rgb(255 255 255 / .08);
  transform: rotate(var(--rot, 0deg)); transition: transform .7s var(--ease);
}
.specimen__img img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: var(--ar, 4 / 5); transition: transform 1s var(--ease); }
.specimen:hover .specimen__img { transform: rotate(0deg) scale(1.04); }
.specimen:hover .specimen__img img { transform: scale(1.08); }
.specimen__label {
  position: absolute; left: 12px; bottom: -14px; z-index: 2;
  display: grid; padding: .45em .8em; border-radius: 10px;
  background: var(--paper); color: var(--ink); box-shadow: 0 10px 20px -8px rgb(0 0 0 / .5);
  font-size: .72rem; line-height: 1.2; transform: rotate(calc(var(--rot, 0deg) * -.6));
}
.specimen__label b { font-weight: 800; }
.specimen__label i { color: var(--muted); font-family: Georgia, "Times New Roman", serif; font-size: .95em; }
.specimen--1 { --rot: -6deg; --ar: 4 / 5; left: 2%; top: 2%; width: 34%; z-index: 6; }
.specimen--2 { --rot: 5deg; --ar: 1 / 1; right: 4%; top: 0; width: 34%; z-index: 3; }
.specimen--3 { --rot: -2deg; --ar: 16 / 10; left: 26%; top: 40%; width: 50%; z-index: 4; }
.specimen--4 { --rot: 7deg; --ar: 5 / 4; left: -2%; bottom: 2%; width: 32%; z-index: 5; }
.specimen--5 { --rot: -8deg; --ar: 1 / 1; right: 0; bottom: 4%; width: 28%; z-index: 5; }
.specimen--6 { --rot: 10deg; --ar: 4 / 5; right: -3%; top: 34%; width: 20%; z-index: 1; filter: saturate(.9); }

.hero__facts {
  position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; gap: .8rem 2.4rem;
  padding-block: 2.2rem 2.6rem; margin-top: 2rem;
  border-top: 1px solid rgb(255 255 255 / .1);
  color: var(--on-dark-muted); font-size: .95rem;
}
.hero__facts b { font-family: var(--f-display); font-weight: 600; color: var(--on-dark); font-size: 1.25rem; margin-right: .35em; }

.scroll-hint { position: absolute; right: var(--gutter); bottom: 34px; z-index: 2; width: 26px; height: 42px; border: 2px solid rgb(255 255 255 / .35); border-radius: 20px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--sun); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- бегущая строка ---------- */
.marquee { position: relative; z-index: 2; padding-block: 1.2rem; margin-top: -2.2rem; overflow: clip; }
.marquee__row { transform: rotate(-2deg); background: var(--sun); color: var(--ink); padding-block: .9rem; margin-inline: -2vw; box-shadow: 0 20px 40px -20px rgb(0 0 0 / .4); }
.marquee__row--rev { transform: rotate(1.5deg); background: var(--leaf); margin-top: -.6rem; }
.marquee__track { display: flex; align-items: center; gap: 1.6rem; width: max-content; animation: marquee 60s linear infinite; }
.marquee__row--rev .marquee__track { animation-direction: reverse; animation-duration: 70s; }
.marquee__track span { font-family: var(--f-display); font-weight: 600; font-size: clamp(1rem, .8rem + .8vw, 1.5rem); white-space: nowrap; letter-spacing: -.01em; }
.marquee__track svg { width: 22px; height: 22px; flex: none; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* =========================================================
   О НАС + цифры
   ========================================================= */
.about { padding-block: clamp(5rem, 10vw, 9rem) clamp(4rem, 8vw, 7rem); }
.about__grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.about__p { margin-top: 1.4rem; color: var(--muted); max-width: 600px; font-size: 1.08rem; }
.about__text .statement { margin-bottom: 2rem; }
.about__links { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.8rem; margin-top: 2.2rem; }
.about__media { position: relative; min-height: 560px; }
.about__img { position: absolute; overflow: hidden; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.about__img img { width: 100%; height: 100%; object-fit: cover; }
.about__img--a { inset: 0 18% 14% 0; }
.about__img--b { right: 0; bottom: 0; width: 46%; aspect-ratio: 1; border: 8px solid var(--paper); }
.about__badge {
  position: absolute; left: -26px; bottom: 6%; z-index: 2;
  width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; text-align: center;
  background: var(--sun); color: var(--ink); font-weight: 800; font-size: .82rem; line-height: 1.15; text-transform: uppercase; letter-spacing: .04em;
  box-shadow: var(--shadow);
}
.about__badge svg { position: absolute; top: 14px; width: 18px; height: 18px; animation: spin 8s linear infinite; }
@keyframes spin { to { rotate: 360deg; } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: clamp(4rem, 8vw, 7rem); }
.stat { padding: 1.8rem 1.6rem; border-radius: var(--r); background: var(--card); box-shadow: var(--shadow); border: 1px solid var(--line); }
.stat__value { white-space: nowrap; font-family: var(--f-display); font-weight: 600; font-size: clamp(1.7rem, 1rem + 2.4vw, 3.4rem); line-height: 1; letter-spacing: -.04em; color: var(--ink); }
.stat__label { margin-top: .6rem; color: var(--muted); font-weight: 600; }
.stat:nth-child(2) .stat__value { color: var(--leaf-d); }
.stat:nth-child(3) { background: var(--ink); }
.stat:nth-child(3) .stat__value { color: var(--sun); }
.stat:nth-child(3) .stat__label { color: var(--on-dark-muted); }

/* =========================================================
   ФОРМАТЫ (бенто)
   ========================================================= */
.formats { padding-block: clamp(3rem, 7vw, 6rem) clamp(5rem, 10vw, 9rem); }
.bento { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(210px, 24vw); gap: 14px; }
.bento__item {
  position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-lg);
  display: flex; align-items: flex-end; padding: clamp(1.2rem, 2.4vw, 2rem);
  color: #fff; background: var(--ink);
  transform: perspective(900px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg));
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.bento__item:hover { box-shadow: var(--shadow-lg); }
.bento__item--1 { grid-column: span 7; grid-row: span 2; }
.bento__item--2 { grid-column: span 5; }
.bento__item--3 { grid-column: span 5; }
.bento__item--4 { grid-column: span 4; }
.bento__item--5 { grid-column: span 4; }
.bento__item--6 { grid-column: span 4; }
.bento__img { position: absolute; inset: 0; z-index: -2; }
.bento__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.4s var(--ease); }
.bento__item:hover .bento__img img { transform: scale(1.1); }
.bento__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(8 26 16 / 0) 25%, rgb(8 26 16 / .88) 100%); transition: background .5s; }
.bento__item:hover .bento__shade { background: linear-gradient(180deg, rgb(8 26 16 / .1) 0%, rgb(8 26 16 / .92) 100%); }
.bento__body { display: grid; gap: .45rem; max-width: 560px; }
.bento__count { width: fit-content; padding: .3em .8em; border-radius: 999px; background: rgb(255 255 255 / .16); backdrop-filter: blur(8px); font-size: .78rem; font-weight: 700; }
.bento__title { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.25rem, 1rem + 1vw, 1.8rem); line-height: 1.08; letter-spacing: -.02em; }
.bento__item--1 .bento__title { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 3rem); }
.bento__lead { color: rgb(255 255 255 / .78); font-size: .95rem; }
.bento__go { position: absolute; top: 18px; right: 18px; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--sun); color: var(--ink); transform: scale(.8) rotate(-45deg); opacity: .0; transition: transform .6s var(--ease), opacity .4s; }
.bento__go svg { width: 22px; height: 22px; }
.bento__item:hover .bento__go { opacity: 1; transform: scale(1) rotate(0); }

/* =========================================================
   ГОРИЗОНТАЛЬНАЯ ГАЛЕРЕЯ
   ========================================================= */
.hscroll { position: relative; isolation: isolate; background: var(--ink); color: var(--on-dark); overflow: clip; }
.hscroll__pin { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; gap: clamp(2rem, 4vh, 3rem); padding-block: clamp(4rem, 10vh, 6rem); }
.hscroll__head .h2 em { color: var(--sun); background: none; }
.hscroll__track {
  display: flex; gap: clamp(14px, 2vw, 26px); width: max-content;
  padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter)));
  will-change: transform;
}
.feature {
  position: relative; isolation: isolate; overflow: hidden; flex: none;
  width: clamp(270px, 30vw, 440px); height: clamp(360px, 58vh, 560px);
  border-radius: var(--r-lg); display: flex; flex-direction: column; justify-content: flex-end; padding: 1.6rem;
  background: var(--ink-2);
}
.feature__img { position: absolute; inset: 0; z-index: -2; }
.feature__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.feature:hover .feature__img img { transform: scale(1.07); }
.feature::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgb(6 20 12 / .92)); }
.feature__num { position: absolute; top: 1.2rem; left: 1.4rem; font-family: var(--f-display); font-weight: 700; font-size: 3.4rem; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px rgb(255 255 255 / .8); }
.feature__body { display: grid; gap: .5rem; }
.feature__age { width: fit-content; padding: .2em .7em; border-radius: 999px; background: var(--sun); color: var(--ink); font-weight: 800; font-size: .8rem; }
.feature__title { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.3rem, 1rem + .9vw, 1.8rem); line-height: 1.08; }
.feature__text { font-size: .92rem; color: rgb(255 255 255 / .74); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.feature--all { background: var(--leaf); color: var(--ink); justify-content: space-between; }
.feature--all::before { display: none; }
.feature__all-num { font-family: var(--f-display); font-weight: 700; font-size: clamp(5rem, 10vw, 9rem); line-height: .9; letter-spacing: -.05em; }
.feature__all-text { font-family: var(--f-display); font-weight: 600; font-size: 1.6rem; line-height: 1.1; }
.feature--all svg { width: 64px; height: 64px; padding: 16px; border-radius: 50%; background: var(--ink); color: var(--sun); transition: transform .5s var(--ease); }
.feature--all:hover svg { transform: translateX(8px) rotate(-10deg); }

/* =========================================================
   ШАГИ
   ========================================================= */
.steps { padding-block: clamp(5rem, 10vw, 9rem); }
.steps__list { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2vw, 2rem); }
.steps__line { position: absolute; left: 30px; right: 30px; top: 30px; height: 2px; background: var(--line); }
.steps__line span { display: block; height: 100%; background: linear-gradient(90deg, var(--leaf), var(--sun)); transform-origin: left; transform: scaleX(var(--p, 1)); }
.step { position: relative; }
.step__num {
  position: relative; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: var(--card); border: 2px solid var(--leaf); color: var(--ink);
  font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; margin-bottom: 1.4rem; box-shadow: var(--shadow);
}
.step:last-child .step__num { background: var(--sun); border-color: var(--sun); }
.step__title { font-size: 1.3rem; margin-bottom: .6rem; }
.step p { color: var(--muted); }

/* =========================================================
   ОНЛАЙН
   ========================================================= */
.online { padding-block: clamp(3.5rem, 7vw, 6rem) 0; }
.online__card {
  display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(1.2rem, 3vw, 2.4rem); border-radius: 44px;
  background: linear-gradient(135deg, #e3f3d1, #fdf3c8);
  max-width: calc(var(--maxw) - 2 * var(--gutter));
}
.online__media { overflow: hidden; border-radius: 32px; aspect-ratio: 1; }
.online__media--blend img { mix-blend-mode: multiply; object-fit: contain; height: 100%; }
.online__media img { width: 100%; height: 115%; object-fit: cover; }
.online__body { padding-right: clamp(0rem, 3vw, 2rem); }
.online__body .h3 { margin-bottom: 1rem; }
.online__date { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; margin-bottom: .8rem; }
.online__date svg { width: 20px; height: 20px; color: var(--leaf-d); }
.online__body p { color: #3a4a40; }
.online__cta { display: flex; flex-wrap: wrap; gap: .8rem 1.4rem; align-items: center; margin-top: 1.8rem; }

/* =========================================================
   ЦЕНЫ
   ========================================================= */
.price { padding-bottom: clamp(5rem, 10vw, 9rem); }
.price__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.pcard {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(1.6rem, 3vw, 2.4rem); border-radius: var(--r-lg);
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow);
  transform: perspective(900px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg));
  transition: transform .6s var(--ease);
}
.pcard--featured { background: var(--ink); color: var(--on-dark); border-color: transparent; }
.pcard__badge { position: absolute; top: 20px; right: 20px; padding: .35em .9em; border-radius: 999px; background: var(--sun); color: var(--ink); font-weight: 800; font-size: .78rem; }
.pcard__icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: rgb(124 194 66 / .16); color: var(--leaf-d); margin-bottom: 1.4rem; }
.pcard--featured .pcard__icon { background: rgb(255 210 63 / .16); color: var(--sun); }
.pcard__icon svg { width: 28px; height: 28px; }
.pcard__title { font-size: 1.4rem; margin-bottom: 1.2rem; }
.pcard__rows { display: grid; gap: 0; margin-bottom: auto; }
.pcard__rows li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-block: .85rem; border-bottom: 1px dashed var(--line); }
.pcard--featured .pcard__rows li { border-color: rgb(255 255 255 / .14); }
.pcard__rows span { color: var(--muted); }
.pcard--featured .pcard__rows span { color: var(--on-dark-muted); }
.pcard__rows b { font-family: var(--f-display); font-weight: 600; font-size: 1.2rem; white-space: nowrap; text-align: right; display: grid; }
.pcard__rows small { font-family: var(--f-body); font-weight: 600; font-size: .72rem; color: var(--muted); }
.pcard--featured .pcard__rows small { color: var(--on-dark-muted); }
.pcard__note { margin-top: 1.4rem; font-weight: 700; font-size: .92rem; color: var(--leaf-d); }
.pcard--featured .pcard__note { color: var(--leaf-2); }

.rules { margin-top: 16px; padding: clamp(1.6rem, 3vw, 2.4rem); border-radius: var(--r-lg); background: var(--paper-2); display: grid; grid-template-columns: 260px 1fr; gap: 2rem; }
.rules__title { font-size: 1.3rem; }
.rules ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem 2rem; }
.rules li { display: flex; gap: .7rem; align-items: flex-start; }
.rules li svg { flex: none; width: 22px; height: 22px; padding: 3px; border-radius: 50%; background: var(--leaf); color: var(--ink); margin-top: 2px; }

/* =========================================================
   FAQ
   ========================================================= */
.faq { padding-bottom: clamp(5rem, 10vw, 9rem); }
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.faq__aside { position: sticky; top: calc(var(--header-h) + 30px); }
.faq__hint { color: var(--muted); max-width: 360px; }
.faq__list { display: grid; gap: 10px; }
.qa { border-radius: var(--r); background: var(--card); border: 1px solid var(--line); transition: background .3s, box-shadow .3s; }
.qa[open] { background: #fff; box-shadow: var(--shadow); }
.qa summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.25rem 1.4rem; font-weight: 700; font-size: 1.05rem;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary i { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--paper-2); transition: background .3s, transform .5s var(--ease); }
.qa summary i::before, .qa summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: var(--ink); border-radius: 2px; transition: transform .5s var(--ease); }
.qa summary i::after { transform: rotate(90deg); }
.qa[open] summary i { background: var(--leaf); transform: rotate(180deg); }
.qa[open] summary i::after { transform: rotate(0); }
.qa__a { padding: 0 1.4rem 1.3rem; color: var(--muted); }
.qa::details-content { block-size: 0; overflow: clip; transition: block-size .5s var(--ease), content-visibility .5s allow-discrete; }
.qa[open]::details-content { block-size: auto; }

/* =========================================================
   ФОРМА
   ========================================================= */
.booking { position: relative; isolation: isolate; overflow: clip; background: var(--ink); color: var(--on-dark); padding-block: clamp(5rem, 10vw, 8rem); }
.booking__grid { position: relative; z-index: 1; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.booking .h2 em { color: var(--sun); background: none; }
.booking__lead { margin-top: 1.2rem; color: var(--on-dark-muted); max-width: 460px; font-size: 1.08rem; }
.booking__contacts { margin-top: 2rem; display: grid; gap: .8rem; }
.booking__contacts a { display: inline-flex; align-items: center; gap: .7rem; font-weight: 700; font-size: 1.1rem; }
.booking__contacts a:hover { color: var(--leaf-2); }
.booking__contacts svg { width: 22px; height: 22px; color: var(--leaf-2); }
.booking__contacts .socials { margin-top: .4rem; }
.booking__contacts .socials a { display: grid; place-items: center; gap: 0; padding: 0; }
.booking__contacts .socials a svg { color: inherit; }
.booking__photo { margin-top: 2.6rem; max-width: 380px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r-lg); rotate: -3deg; box-shadow: 0 30px 60px -30px #000; }
.booking__photo img { width: 100%; height: 100%; object-fit: cover; }

.form { padding: clamp(1.4rem, 3.4vw, 2.8rem); border-radius: var(--r-lg); background: var(--paper); color: var(--text); display: grid; gap: 1.1rem; box-shadow: 0 40px 80px -40px #000; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field__label { font-weight: 700; font-size: .88rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: .8rem 1rem; border-radius: 14px;
  border: 1.5px solid var(--line); background: var(--card);
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' fill='none' stroke='%2313251b' stroke-width='2'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 42px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgb(19 37 27 / .3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--leaf-d); box-shadow: 0 0 0 4px rgb(124 194 66 / .22); background: #fff; }
.field__error { display: none; color: #c0392b; font-size: .82rem; font-weight: 700; }
.was-validated .field input:invalid { border-color: #e06050; }
.was-validated .field input:invalid ~ .field__error { display: block; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.check { display: flex; gap: .8rem; align-items: flex-start; cursor: pointer; font-size: .92rem; color: var(--muted); }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid rgb(19 37 27 / .35); background: var(--card); transition: background .25s, border-color .25s; margin-top: 1px; }
.check__box svg { width: 16px; height: 16px; color: var(--ink); opacity: 0; transform: scale(.4); transition: opacity .25s, transform .35s var(--ease); }
.check input:checked + .check__box { background: var(--leaf); border-color: var(--leaf); }
.check input:checked + .check__box svg { opacity: 1; transform: none; }
.check input:focus-visible + .check__box { outline: 3px solid var(--sun); outline-offset: 2px; }
.was-validated .check input:invalid + .check__box { border-color: #e06050; }
.form__submit { justify-self: start; }
.form__submit.is-loading { pointer-events: none; opacity: .75; }
.form__submit.is-loading svg { animation: spin 1s linear infinite; }
.form__status { font-weight: 700; min-height: 1.5em; }
.form__status.is-ok { color: var(--leaf-d); }
.form__status.is-error { color: #c0392b; }
.form.is-sent > :not(.form__done) { display: none; }
.form__done { display: grid; gap: 1rem; justify-items: start; padding-block: 1rem; }
.form__done-icon { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--leaf); }
.form__done-icon svg { width: 40px; height: 40px; color: var(--ink); }

/* =========================================================
   ПОДВАЛ
   ========================================================= */
.footer { position: relative; isolation: isolate; overflow: clip; background: #081a10; color: var(--on-dark); padding-block: clamp(4rem, 8vw, 7rem) 2rem; }
.footer .container { position: relative; z-index: 1; }
.footer__cta { padding-bottom: clamp(3rem, 6vw, 5rem); border-bottom: 1px solid rgb(255 255 255 / .1); }
.footer__big {
  display: flex; flex-wrap: wrap; align-items: center; column-gap: .3em;
  font-family: var(--f-display); font-weight: 600; font-size: clamp(2.2rem, 1rem + 6vw, 7rem); line-height: .98; letter-spacing: -.04em;
  transition: color .4s;
}
.footer__big span:nth-child(2) { color: var(--leaf-2); }
.footer__big:hover { color: var(--sun); }
.footer__arrow { width: .8em; height: .8em; padding: .14em; border-radius: 50%; background: var(--sun); color: var(--ink); transition: transform .6s var(--ease); }
.footer__big:hover .footer__arrow { transform: rotate(-45deg) scale(1.08); }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2rem; padding-block: 3rem; }
.footer__col { display: grid; gap: .6rem; align-content: start; }
.footer__col h3 { font-family: var(--f-body); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: .4rem; }
.footer__col > a:not(.brand):not(.footer__pdf) { color: var(--on-dark); opacity: .88; width: fit-content; }
.footer__col > a:not(.brand):hover { color: var(--leaf-2); opacity: 1; }
.footer__muted { color: var(--on-dark-muted); font-size: .92rem; max-width: 320px; }
.footer__pdf { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1rem; font-weight: 700; color: var(--sun); }
.footer__pdf svg { width: 20px; height: 20px; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem; padding-top: 1.6rem; border-top: 1px solid rgb(255 255 255 / .08); color: var(--on-dark-muted); font-size: .88rem; }

/* ---------- кнопка «Наверх» ---------- */
.to-top {
  --p: 0;
  position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 90;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  color: var(--sun); background: rgb(12 38 24 / .82);
  backdrop-filter: blur(12px) saturate(1.4); -webkit-backdrop-filter: blur(12px) saturate(1.4);
  box-shadow: 0 14px 34px -12px rgb(0 0 0 / .55), inset 0 0 0 1px rgb(255 255 255 / .1);
  opacity: 0; visibility: hidden; transform: translateY(18px) scale(.8);
  transition: opacity .45s var(--ease), transform .55s var(--ease), visibility .45s, background .3s, color .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--sun); color: var(--ink); }
.to-top:active { transform: scale(.92); }
.to-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); pointer-events: none; }
.to-top__ring circle { fill: none; stroke-width: 3; }
.to-top__track { stroke: rgb(255 255 255 / .12); }
.to-top__bar { stroke: var(--leaf); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p) * 100); transition: stroke-dashoffset .15s linear; }
.to-top:hover .to-top__bar { stroke: var(--ink); }
.to-top__icon { position: relative; width: 22px; height: 22px; }
.to-top:hover .to-top__icon { animation: hop .7s var(--ease) infinite alternate; }
@keyframes hop { to { transform: translateY(-4px); } }
.to-top.is-tucked { opacity: 0; visibility: hidden; transform: translateY(18px) scale(.8); }

/* =========================================================
   ВНУТРЕННИЕ СТРАНИЦЫ
   ========================================================= */
.page-hero {
  position: relative; isolation: isolate; overflow: clip;
  padding: calc(var(--header-h) + clamp(3rem, 8vw, 6rem)) 0 clamp(3rem, 7vw, 5.5rem);
  background: radial-gradient(120% 120% at 80% 0%, #164a2c 0%, var(--ink) 60%, #081a10 100%);
  color: var(--on-dark);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.page-hero__lead { margin-top: 1.4rem; max-width: 620px; font-size: 1.15rem; color: var(--on-dark-muted); }
.page-hero--full { min-height: 100svh; display: grid; align-items: center; }
.page-hero--image { min-height: min(78svh, 720px); display: flex; align-items: flex-end; }
.page-hero__media, .lecture__media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.page-hero__media img, .lecture__media img { width: 100%; height: 118%; object-fit: cover; will-change: transform; }
.page-hero__media::after, .lecture__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(8 26 16 / .55) 0%, rgb(8 26 16 / .1) 35%, rgb(8 26 16 / .9) 100%); }
.page-hero--image .page-hero__title { font-size: clamp(2.2rem, 1rem + 4.6vw, 5.2rem); max-width: 16ch; }

.crumbs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.6rem; font-size: .88rem; color: var(--on-dark-muted); }
.crumbs a:hover { color: var(--sun); }
.crumbs span:last-child { color: var(--on-dark); }

/* каталог */
.catalog { padding-bottom: clamp(5rem, 10vw, 8rem); }
.filters { position: sticky; top: calc(var(--header-h) + 8px); z-index: 50; padding-block: 12px; margin-bottom: 1.6rem; pointer-events: none; }
.filters__inner {
  pointer-events: auto; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center;
  padding: 12px; border-radius: 26px; max-width: calc(var(--maxw) - 2 * var(--gutter));
  background: rgb(255 253 247 / .82); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.search { position: relative; flex: 1 1 240px; }
.search svg { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; translate: 0 -50%; color: var(--muted); }
.search input { width: 100%; height: 46px; padding: 0 14px 0 44px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; }
.search input:focus { outline: none; border-color: var(--leaf-d); box-shadow: 0 0 0 4px rgb(124 194 66 / .2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.chips__label { font-size: .82rem; font-weight: 700; color: var(--muted); margin-right: 2px; }
.chip { height: 40px; padding: 0 14px; border-radius: 999px; font-weight: 700; font-size: .88rem; border: 1.5px solid var(--line); background: #fff; transition: background .25s, color .25s, border-color .25s, transform .3s var(--ease); }
.chip sup { font-size: .68em; opacity: .6; margin-left: 1px; }
.chip:hover { border-color: var(--leaf-d); }
.chip.is-active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.chip:active { transform: scale(.95); }
.chip--sm { height: 34px; padding: 0 11px; font-size: .82rem; }
.catalog__count { font-weight: 700; color: var(--muted); margin-bottom: 1rem; }
.catalog__heading { margin-bottom: 1.6rem; }
.catalog--section { padding-top: 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.lcard {
  border-radius: var(--r); background: var(--card); border: 1px solid var(--line); overflow: hidden;
  box-shadow: 0 1px 2px rgb(12 38 24 / .04);
  transform: perspective(900px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg)) translateY(var(--ty, 0));
  transition: transform .6s var(--ease), box-shadow .5s var(--ease);
}
.lcard:hover { --ty: -6px; box-shadow: var(--shadow-lg); }
.lcard.is-hidden { display: none; }
.lcard__link { display: flex; flex-direction: column; height: 100%; }
.lcard__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.lcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.lcard:hover .lcard__media img { transform: scale(1.08); }
.lcard__age { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; min-width: 48px; height: 48px; padding: 0 8px; border-radius: 999px; background: var(--sun); color: var(--ink); font-family: var(--f-display); font-weight: 700; font-size: .95rem; box-shadow: 0 8px 20px -8px rgb(0 0 0 / .5); }
.lcard__body { display: flex; flex-direction: column; gap: .6rem; padding: 1.2rem 1.3rem 1.3rem; flex: 1; }
.lcard__title { font-size: 1.18rem; line-height: 1.15; }
.lcard__text { color: var(--muted); font-size: .93rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lcard__more { margin-top: auto; padding-top: .4rem; display: inline-flex; align-items: center; gap: .4rem; font-weight: 800; font-size: .9rem; color: var(--leaf-d); }
.lcard__more svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.lcard:hover .lcard__more svg { transform: translateX(5px); }
.empty { text-align: center; padding: 4rem 1rem; color: var(--muted); }
.empty .h3 { color: var(--text); margin-bottom: .6rem; }

/* раздел */
.section-intro { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-intro__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.section-intro__img { overflow: hidden; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); background: #fff; }
.section-intro__img img { width: 100%; }
.other-sections { padding-bottom: clamp(5rem, 10vw, 8rem); }
.other-sections .h3 { margin-bottom: 1.4rem; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-link { display: inline-flex; align-items: center; gap: .6rem; padding: .9rem 1.2rem; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 700; transition: background .3s, color .3s, transform .4s var(--ease); }
.pill-link sup { font-size: .7em; color: var(--muted); }
.pill-link svg { width: 18px; height: 18px; }
.pill-link:hover { background: var(--ink); color: var(--paper); transform: translateY(-3px); }
.pill-link:hover sup { color: var(--sun); }

/* лекция */
.lecture__hero { position: relative; isolation: isolate; overflow: clip; min-height: min(86svh, 820px); display: flex; align-items: flex-end; color: #fff; padding: calc(var(--header-h) + 3rem) 0 clamp(2.4rem, 5vw, 4rem); background: var(--ink); }
.lecture__head { position: relative; z-index: 1; }
.lecture__img { view-transition-name: lecture-hero; }
.lecture__title { font-size: clamp(2.2rem, 1rem + 5vw, 5.6rem); line-height: 1; letter-spacing: -.035em; max-width: 18ch; }
.lecture__facts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 1.6rem; }
.lecture__facts li { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1rem; border-radius: 999px; background: rgb(255 255 255 / .14); backdrop-filter: blur(10px); border: 1px solid rgb(255 255 255 / .18); font-weight: 700; font-size: .92rem; }
.lecture__facts li:first-child { background: var(--sun); color: var(--ink); border-color: transparent; }
.lecture__facts svg { width: 18px; height: 18px; }
.lecture__body { display: grid; grid-template-columns: 1fr 380px; gap: clamp(2rem, 6vw, 6rem); padding-block: clamp(3rem, 7vw, 5.5rem); align-items: start; }
.lecture__sub { font-weight: 700; color: var(--leaf-d); margin-bottom: 1.4rem; }
.lecture__lead { font-family: var(--f-display); font-weight: 400; font-size: clamp(1.2rem, 1rem + .9vw, 1.75rem); line-height: 1.4; letter-spacing: -.01em; }
.lecture__more { margin-top: 2.6rem; padding: 1.6rem 1.8rem; border-radius: var(--r); background: var(--paper-2); }
.lecture__more .h4 { margin-bottom: .6rem; }
.lecture__more p { color: var(--muted); }
.lecture__aside { position: sticky; top: calc(var(--header-h) + 24px); }
.order-card { display: grid; gap: .8rem; padding: 1.8rem; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.order-card__label { font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.order-card__price { font-family: var(--f-display); font-weight: 600; font-size: 2.2rem; line-height: 1; display: grid; gap: .3rem; }
.order-card__price small { font-family: var(--f-body); font-size: .88rem; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.order-card__hint { color: var(--muted); font-size: .9rem; margin-bottom: .6rem; }
.order-card .btn--ghost { color: var(--ink); }
.related { padding-bottom: clamp(5rem, 10vw, 8rem); }
.related__head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }

/* контакты */
.contacts { padding-block: clamp(3rem, 7vw, 5rem); }
.contacts__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ccard {
  position: relative; display: grid; gap: .3rem; padding: 1.6rem; border-radius: var(--r); background: var(--card); border: 1px solid var(--line);
  transform: perspective(900px) rotateX(var(--ry, 0deg)) rotateY(var(--rx, 0deg));
  transition: transform .6s var(--ease), box-shadow .5s, background .3s;
}
a.ccard:hover { box-shadow: var(--shadow-lg); }
.ccard svg { width: 30px; height: 30px; color: var(--leaf-d); margin-bottom: .8rem; }
.ccard__label { font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ccard__value { font-family: var(--f-display); font-weight: 500; font-size: 1.15rem; word-break: break-word; }
.ccard--wa svg { color: #25a244; }
.ccard--tg svg { color: #229ed9; }
.ccard--vk svg { color: #2787f5; }
.map { margin-top: 14px; }
.map iframe { width: 100%; height: clamp(320px, 45vw, 480px); border: 0; border-radius: var(--r-lg); background: var(--paper-2); }
.team { padding-block: clamp(3rem, 7vw, 6rem) clamp(5rem, 10vw, 8rem); }
.team__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.person { border-radius: var(--r-lg); overflow: hidden; background: var(--card); border: 1px solid var(--line); }
.person__img { aspect-ratio: 2.3 / 1; overflow: hidden; }
.person__img img { width: 100%; height: 100%; object-fit: cover; }
.person__body { padding: 1.6rem 1.8rem 2rem; display: grid; gap: .7rem; }
.person__body p:not(.tag) { color: var(--muted); }

/* 404 */
.nf { text-align: left; }
.nf__code { font-family: var(--f-display); font-weight: 700; font-size: clamp(7rem, 24vw, 18rem); line-height: .85; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 2px var(--leaf-2); }
.nf .h2 { margin-top: 1rem; max-width: 18ch; }

/* =========================================================
   АНИМАЦИИ (включаются, только если GSAP загрузился)
   ========================================================= */
/* начальное состояние действует только до появления: после анимации JS ставит .is-in */
.gsap [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(40px); }
.gsap [data-clip] { clip-path: inset(12% 12% 12% 12% round var(--r-lg)); }
.gsap [data-hero-title] .line > span { display: inline-block; transform: translateY(110%); }
.gsap [data-hero-fade]:not(.is-in) { opacity: 0; transform: translateY(24px); }
.gsap .specimen { opacity: 0; }

::view-transition-old(root), ::view-transition-new(root) { animation-duration: .45s; }
@view-transition { navigation: auto; }
::view-transition-group(lecture-hero) { animation-duration: .6s; animation-timing-function: cubic-bezier(.22, 1, .36, 1); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee__track { animation: none; }
  @view-transition { navigation: none; }
}

/* =========================================================
   АДАПТИВ
   ========================================================= */
@media (max-width: 1100px) {
  .nav { display: none; }
  .burger { display: block; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .rules { grid-template-columns: 1fr; gap: 1.2rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .lecture__body { grid-template-columns: 1fr 330px; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }
  .hero { min-height: auto; padding-top: calc(var(--header-h) + 36px); }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__stage { height: 440px; min-height: 0; margin-top: 1rem; }
  .specimen--6 { display: none; }
  .scroll-hint { display: none; }
  .about__grid, .booking__grid, .faq__grid, .section-intro__grid, .online__card { grid-template-columns: 1fr; }
  .about__media { min-height: 440px; }
  .faq__aside { position: static; }
  .steps__list { grid-template-columns: 1fr 1fr; gap: 2.4rem 1.4rem; }
  .steps__line { display: none; }
  .price__grid { grid-template-columns: 1fr; }
  .rules ul { grid-template-columns: 1fr; }
  .bento { grid-auto-rows: 240px; }
  .bento__item--1 { grid-column: span 12; grid-row: span 2; }
  .bento__item--2, .bento__item--3, .bento__item--4, .bento__item--5, .bento__item--6 { grid-column: span 6; }
  .bento__go { opacity: 1; transform: none; width: 42px; height: 42px; }
  .hscroll__pin { min-height: 0; }
  .hscroll__track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 6px; }
  .hscroll__track::-webkit-scrollbar { display: none; }
  .feature { scroll-snap-align: center; width: 78vw; height: 440px; }
  .lecture__body { grid-template-columns: 1fr; }
  .lecture__aside { position: static; }
  .contacts__grid { grid-template-columns: 1fr 1fr; }
  .team__grid { grid-template-columns: 1fr; }
  .online__media { aspect-ratio: 16 / 10; }
  .booking__photo { display: none; }
}

@media (max-width: 640px) {
  .hide-sm { display: none !important; }
  .to-top { width: 48px; height: 48px; right: 14px; bottom: 14px; }
  .to-top__icon { width: 20px; height: 20px; }
  .header { inset: 8px 0 auto; padding-inline: 8px; }
  .header__inner { padding-left: 12px; gap: .6rem; }
  /* на телефонах сильное размытие под фиксированной панелью подтормаживает прокрутку */
  .header__inner { backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); background: rgb(12 38 24 / .78); }
  .brand__logo { height: 42px; }
  .hero__stage { height: 380px; }
  .specimen__label { font-size: .64rem; }
  .specimen--1 { width: 44%; }
  .specimen--2 { width: 40%; }
  .specimen--3 { width: 62%; left: 18%; top: 34%; }
  .specimen--4 { width: 38%; }
  .specimen--5 { width: 34%; }
  .hero__facts { gap: .6rem 1.4rem; font-size: .88rem; }
  .hero__cta .btn { flex: 1 1 100%; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { padding: 1.3rem 1.1rem; }
  .bento { grid-auto-rows: 220px; gap: 10px; }
  .bento__item { grid-column: span 12 !important; grid-row: span 1 !important; }
  .steps__list { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .form__submit { justify-self: stretch; }
  .contacts__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .about__media { min-height: 360px; }
  .about__badge { left: -6px; width: 108px; height: 108px; font-size: .7rem; }
  .filters { position: relative; top: auto; }
  .filters__inner { border-radius: 20px; padding: 10px; }
  .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -4px; padding-inline: 4px; width: 100%; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .grid--scroll { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
  .grid--scroll > * { scroll-snap-align: start; }
  .lecture__hero { min-height: 72svh; }

  /* компактные карточки в каталоге: картинка слева, текст справа */
  .grid:not(.grid--scroll) { gap: 10px; }
  .grid:not(.grid--scroll) .lcard__link { flex-direction: row; }
  .grid:not(.grid--scroll) .lcard__media { flex: none; width: 36%; aspect-ratio: auto; min-height: 150px; }
  .grid:not(.grid--scroll) .lcard__age { top: 8px; right: auto; left: 8px; min-width: 38px; height: 30px; font-size: .78rem; }
  .grid:not(.grid--scroll) .lcard__body { padding: .9rem 1rem; gap: .35rem; }
  .grid:not(.grid--scroll) .lcard__title { font-size: 1rem; }
  .grid:not(.grid--scroll) .lcard__text { font-size: .84rem; -webkit-line-clamp: 2; }
  .grid:not(.grid--scroll) .tag { font-size: .68rem; }
  .grid:not(.grid--scroll) .lcard__more { font-size: .82rem; }
}
