/* =========================================================
   Сфера — интеллект-клуб VeritasGroup · v2
   Все цвета, шрифты, размеры и отступы — токены в :root.
   Анимации — только transform / opacity; при
   prefers-reduced-motion всё статично.
   ========================================================= */

:root {
  /* Цвета */
  --navy: #0B2A4A;
  --navy-deep: #071B31;
  --navy-soft: #123B66;
  --ivory: #FAF8F3;
  --tint: #F3EFE6;
  --white: #FFFFFF;
  --ink: #1F2937;
  --grey: #6B7280;
  --line: #E4DFD4;
  --gold: #D4A017;
  --gold-light: #F2D27A;
  --gold-soft: #FBF3DC;
  --gold-text: #8A6508;          /* золото для мелкого текста на светлом фоне */
  --error: #C2352B;
  --error-bg: #FDF1EF;
  --on-dark: #FAF8F3;
  --on-dark-muted: rgba(250, 248, 243, 0.74);
  --on-dark-line: rgba(250, 248, 243, 0.14);
  --gold-line: rgba(212, 160, 23, 0.55);
  --backdrop: rgba(7, 27, 49, 0.66);
  --header-bg: rgba(11, 42, 74, 0.97);
  --gold-highlight: #FFF4C9;
  --gold-shadow: #6E4E05;
  --gold-lat: #FFF1C2;
  --shine: rgba(255, 255, 255, 0.45);
  --shine-strong: rgba(255, 255, 255, 0.7);
  --tile-fill: rgba(250, 248, 243, 0.05);
  --person-fill: rgba(250, 248, 243, 0.28);
  --focus-soft: rgba(11, 42, 74, 0.16);

  /* Шрифты */
  --f-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --f-sans: "Inter", "Helvetica Neue", Arial, sans-serif;

  /* Типографика (mobile-first; текст не меньше 17px) */
  --fs-body: 1.0625rem;   /* 17 */
  --lh-body: 1.65;
  --fs-lg: 1.125rem;      /* 18 */
  --lh-lg: 1.6;
  --fs-caption: 0.875rem; /* 14 — только надзаголовки и бейджи */
  --fs-h1: 3rem;          /* 48 */
  --lh-h1: 1.17;
  --fs-h2: 1.875rem;      /* 30 → 36 на десктопе */
  --lh-h2: 1.22;
  --fs-h3: 1.5rem;        /* 24 → 28 */
  --lh-h3: 1.29;
  --fs-hero: 4.25rem;
  --fs-tagline: 1.5rem;

  /* Отступы 4/8/12/16/24/32 + крупные */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --section-py: 4.5rem;
  --gutter: 1rem;
  --container: 80rem;

  /* Формы */
  --r-sm: 0.5rem;
  --r-md: 0.875rem;
  --r-lg: 1.5rem;
  --r-pill: 999px;
  --btn-h: 3.25rem;       /* 52 */
  --btn-h-lg: 3.5rem;
  --bar-h: 4.5rem;
  --banner-h: 1.75rem;
  --shadow-sm: 0 1px 2px rgba(11, 42, 74, 0.06);
  --shadow-md: 0 18px 40px -18px rgba(11, 42, 74, 0.28);
  --shadow-lg: 0 30px 80px -20px rgba(7, 27, 49, 0.45);
  --ring: 0 0 0 3px var(--ivory), 0 0 0 5px var(--navy);
  --ring-dark: 0 0 0 3px var(--navy), 0 0 0 5px var(--gold-light);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --t-fast: 180ms;
  --t-mid: 350ms;
}

@media (min-width: 48rem) {
  :root {
    --fs-h2: 2.25rem;     /* 36/44 */
    --fs-h3: 1.75rem;     /* 28/36 */
    --fs-hero: 7rem;
    --fs-tagline: 1.875rem;
    --section-py: 7rem;
    --gutter: 2rem;
    --bar-h: 5rem;
  }
}
@media (min-width: 90rem) { :root { --fs-hero: 8.5rem; } }

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + var(--sp-4)); }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: var(--f-sans); font-size: var(--fs-body); line-height: var(--lh-body); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: var(--navy); text-underline-offset: 0.2em; }
button { font: inherit; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-sm); }
[tabindex="-1"]:focus { box-shadow: none; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: fixed; left: var(--sp-4); top: -5rem; z-index: 200; padding: var(--sp-3) var(--sp-4); background: var(--gold); color: var(--navy); border-radius: var(--r-sm); font-weight: 600; }
.skip-link:focus { top: var(--sp-4); }
.icon { width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Типографика ---------- */
.eyebrow { font-size: var(--fs-caption); font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-text); }
.eyebrow--light { color: var(--gold); }
.h2 { font-family: var(--f-serif); font-weight: 600; font-size: var(--fs-h2); line-height: var(--lh-h2); color: var(--navy); margin-top: var(--sp-3); }
.h2--light { color: var(--on-dark); }
.h3 { font-family: var(--f-serif); font-weight: 600; font-size: var(--fs-h3); line-height: var(--lh-h3); color: var(--navy); }
.text-lg { font-size: var(--fs-lg); line-height: var(--lh-lg); }
.section-head { max-width: 44rem; }
.section-head__sub { margin-top: var(--sp-4); color: var(--grey); }

/* ---------- Мини-сфера (лого, лоадер, акценты) ---------- */
.mini-sphere { position: relative; display: inline-block; flex: none; width: 0.9em; height: 0.9em; border-radius: 50%; background: radial-gradient(circle at 34% 30%, var(--gold-highlight) 0, var(--gold-light) 18%, var(--gold) 48%, var(--gold-shadow) 100%); vertical-align: middle; }
.mini-sphere::before { content: ""; position: absolute; inset: -38%; border-radius: 50%; border: 1px solid var(--gold-line); transform: rotate(-20deg) scaleY(0.38); }
.mini-sphere::after { content: ""; position: absolute; inset: -38%; border-radius: 50%; background: radial-gradient(circle at 50% 2%, var(--gold-light) 0 7%, transparent 9%); animation: spin 5s linear infinite; }
.mini-sphere--lg { width: 0.7em; height: 0.7em; }
.mini-sphere--loader { display: none; width: 1.1rem; height: 1.1rem; margin-right: var(--sp-2); }
.is-busy .mini-sphere--loader { display: inline-block; }
.is-busy .mini-sphere--loader::after { animation-duration: 1.1s; }

/* ---------- Кнопки ---------- */
.btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2); min-height: var(--btn-h); padding: 0 var(--sp-6); border: 1.5px solid transparent; border-radius: var(--r-pill); font-family: var(--f-sans); font-size: var(--fs-body); font-weight: 600; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer; transition: background-color var(--t-mid) var(--ease), color var(--t-mid) var(--ease), border-color var(--t-mid) var(--ease), transform var(--t-fast) var(--ease); }
.btn::after { content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: -60%; width: 45%; background: linear-gradient(100deg, transparent, var(--shine), transparent); transform: translateX(0) skewX(-20deg); opacity: 0; pointer-events: none; }
.btn:hover::after { opacity: 1; transform: translateX(420%) skewX(-20deg); transition: transform 0.8s var(--ease), opacity 0.2s; }
.btn:active { transform: scale(0.98); }
.btn--lg { min-height: var(--btn-h-lg); padding: 0 var(--sp-7); font-size: var(--fs-lg); }
.btn--primary { background: var(--gold); color: var(--navy); }
.btn--primary:hover { background: var(--navy); color: var(--on-dark); }
.btn--secondary { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--secondary:hover { background: var(--navy); color: var(--on-dark); }
.btn--navy { background: var(--navy); color: var(--on-dark); }
.btn--navy:hover { background: var(--gold); color: var(--navy); }
.btn--pill-light { min-height: 3rem; padding: 0 var(--sp-5); background: var(--white); color: var(--navy); }
.btn--pill-light:hover { background: var(--gold); color: var(--navy); }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.hero .btn--primary:hover, .site-footer .btn--primary:hover, .site-header .btn--primary:hover { background: var(--white); color: var(--navy); }
.hero :focus-visible, .site-header :focus-visible, .site-footer :focus-visible, .band :focus-visible { box-shadow: var(--ring-dark); }

/* ---------- Шапка ---------- */
.site-header { position: fixed; z-index: 50; top: 0; left: 0; right: 0; color: var(--on-dark); transition: transform var(--t-mid) var(--ease); }
.site-header.is-scrolled { transform: translateY(calc(-1 * var(--banner-h))); }
.test-banner { height: var(--banner-h); display: flex; align-items: center; justify-content: center; padding: 0 var(--gutter); background: var(--navy-deep); color: var(--gold-light); font-size: var(--fs-caption); letter-spacing: 0.04em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-bottom: 1px solid var(--on-dark-line); }
.site-header__bar { position: relative; }
.site-header__bar::before { content: ""; position: absolute; inset: 0; background: var(--header-bg); box-shadow: var(--shadow-md); opacity: 0; transition: opacity var(--t-mid) var(--ease); }
.site-header.is-scrolled .site-header__bar::before, .site-header.nav-open .site-header__bar::before { opacity: 1; }
.site-header__inner { position: relative; display: flex; align-items: center; gap: var(--sp-4); height: var(--bar-h); }
.wordmark { display: inline-flex; align-items: center; gap: 0.45em; margin-right: auto; color: var(--on-dark); text-decoration: none; font-family: var(--f-serif); font-size: 1.625rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; }
.wordmark .mini-sphere { width: 0.62em; height: 0.62em; }
.site-header__cta { display: none; }
@media (min-width: 30rem) { .site-header__cta { display: inline-flex; } }

/* Бургер */
.burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 6px; width: 3rem; height: 3rem; padding: 0 var(--sp-3); border: 1px solid var(--on-dark-line); border-radius: 50%; background: transparent; color: var(--on-dark); cursor: pointer; }
.burger__line { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform var(--t-mid) var(--ease), opacity var(--t-fast); }
.nav-open .burger__line:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-open .burger__line:nth-child(2) { opacity: 0; }
.nav-open .burger__line:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* Навигация: мобильная — выпадающая панель */
.site-nav { position: absolute; top: 100%; left: 0; right: 0; padding: var(--sp-4) var(--gutter) var(--sp-6); background: var(--header-bg); border-top: 1px solid var(--on-dark-line); box-shadow: var(--shadow-lg); visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity var(--t-mid) var(--ease), transform var(--t-mid) var(--ease), visibility 0s linear var(--t-mid); }
.nav-open .site-nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.site-nav__list { display: grid; }
.site-nav__link { position: relative; display: flex; align-items: center; min-height: 3.25rem; color: var(--on-dark); text-decoration: none; font-size: var(--fs-lg); border-bottom: 1px solid var(--on-dark-line); }
.site-nav__link::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 100%; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform var(--t-mid) var(--ease); }
.site-nav__link:hover, .site-nav__link.is-active { color: var(--gold-light); }
.site-nav__link.is-active::after { transform: scaleX(1); }
.site-nav__cta { width: 100%; margin-top: var(--sp-5); }

@media (min-width: 68rem) {
  .burger, .site-nav__cta { display: none; }
  .site-nav { position: static; padding: 0; background: none; border: 0; box-shadow: none; visibility: visible; opacity: 1; transform: none; }
  .site-nav__list { display: flex; gap: var(--sp-6); }
  .site-nav__link { min-height: 3rem; font-size: var(--fs-body); border: 0; color: var(--on-dark-muted); }
  .site-nav__link::after { bottom: 0.4rem; height: 1.5px; }
  .site-nav__link:hover::after { transform: scaleX(1); }
  .site-header__cta { margin-left: var(--sp-5); }
}

/* ---------- Звёзды (canvas) ---------- */
.stars { position: absolute; inset: -24px; width: calc(100% + 48px); height: calc(100% + 48px); pointer-events: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; color: var(--on-dark); background: radial-gradient(70% 60% at 78% 42%, var(--navy-soft) 0%, var(--navy) 48%, var(--navy-deep) 100%); padding: calc(var(--banner-h) + var(--bar-h) + var(--sp-7)) 0 var(--sp-8); }
.hero .stars { transform: translate3d(calc(var(--mx, 0) * -10px), calc(var(--my, 0) * -10px + var(--sy, 0) * 0.25px), 0); }
.hero__inner { position: relative; display: grid; align-items: center; }
.hero__text { position: relative; z-index: 1; }
.hero__title { margin-top: var(--sp-3); font-family: var(--f-serif); font-size: var(--fs-hero); font-weight: 500; line-height: 1; letter-spacing: 0.06em; text-transform: uppercase; }
.hero__tagline { margin-top: var(--sp-4); font-family: var(--f-serif); font-style: italic; font-size: var(--fs-tagline); line-height: 1.3; color: var(--gold-light); }
.hero__lead { margin-top: var(--sp-5); max-width: 36rem; font-size: var(--fs-lg); line-height: var(--lh-lg); color: var(--on-dark-muted); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); margin-top: var(--sp-6); }
.season-pill { display: inline-flex; align-items: center; gap: var(--sp-3); min-height: 3rem; padding: 0 var(--sp-5); border: 1px solid var(--gold-line); border-radius: var(--r-pill); color: var(--on-dark); font-size: var(--fs-body); }
.season-pill::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--gold); animation: pulse-dot 2.4s ease-in-out infinite; }

.hero__visual { position: absolute; z-index: 0; top: -1.5rem; right: -7.5rem; width: 20rem; aspect-ratio: 1; transform: translate3d(calc(var(--mx, 0) * 18px), calc(var(--my, 0) * 18px + var(--sy, 0) * -0.12px), 0); }
.hero__float { width: 100%; height: 100%; animation: float 9s ease-in-out infinite; }
.sphere { display: block; width: 100%; height: 100%; overflow: visible; }
.sphere__glow { transform-box: fill-box; transform-origin: center; animation: glow 6s ease-in-out infinite; }
.sphere__surface { animation: surface 34s linear infinite; }
.sphere__lat path { fill: none; stroke: var(--gold-lat); stroke-opacity: 0.2; stroke-width: 1; }
.sphere__spec { animation: spec 6s ease-in-out infinite; }
.orbit-spin { transform-box: view-box; transform-origin: 300px 300px; }
.orbit-spin--a { animation: spin 90s linear infinite; }
.orbit-spin--b { animation: spin 140s linear infinite reverse; }
.orbit-spin--c { animation: spin 200s linear infinite; }
.orbit-line { fill: none; stroke: var(--gold-light); stroke-opacity: 0.5; stroke-width: 1.2; }
.orbit-line--dash { stroke-dasharray: 2 7; stroke-opacity: 0.6; }
.orbit-line--faint { stroke-opacity: 0.22; }
.orbit-dot { fill: var(--gold-light); }
.orbit-dot--light { fill: var(--white); }

@media (max-width: 47.99rem) { .hero__text .eyebrow, .hero__title { max-width: 70%; } }
@media (min-width: 48rem) {
  .hero__visual { width: 30rem; right: -6rem; top: -3rem; }
}
@media (min-width: 64rem) {
  .hero { min-height: 100vh; display: flex; align-items: center; padding-bottom: var(--sp-8); }
  .hero > .container { width: 100%; }
  .hero__inner { grid-template-columns: 1.05fr 1fr; gap: var(--sp-6); }
  .hero__visual { position: relative; top: auto; right: auto; width: 100%; max-width: 40rem; justify-self: end; }
  .hero__text .eyebrow, .hero__title { max-width: none; }
}

/* ---------- Секции ---------- */
.section { padding: var(--section-py) 0; }
.section--tint { background: var(--tint); }

/* 2. О клубе */
.about { display: grid; gap: var(--sp-6); align-items: center; }
.about__text .text-lg { margin-top: var(--sp-4); }
.about__facts { display: grid; gap: var(--sp-4); }
.fact { display: flex; align-items: center; gap: var(--sp-4); padding: var(--sp-5); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); transition: transform var(--t-mid) var(--ease), border-color var(--t-mid); }
.fact:hover { transform: translateY(-4px); border-color: var(--gold); }
.icon-badge { flex: none; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--navy); color: var(--gold-light); }
.fact:hover .icon, .contacts__link:hover .icon, .gift:hover .icon { animation: wiggle 0.6s var(--ease); }
.fact__body { display: grid; gap: var(--sp-1); }
.fact__title { font-family: var(--f-serif); font-size: 1.375rem; font-weight: 600; line-height: 1.25; color: var(--navy); }
.fact__meta { color: var(--grey); }
.fact__num { font-family: var(--f-serif); font-weight: 700; color: var(--gold-text); font-size: 1.5rem; line-height: 1; }
@media (min-width: 56rem) { .about { grid-template-columns: 1.15fr 1fr; gap: var(--sp-8); } }

/* 3. Ветки */
.branches { display: grid; grid-auto-flow: column; grid-auto-columns: min(82%, 20rem); gap: var(--sp-4); margin: var(--sp-6) calc(-1 * var(--gutter)) 0; padding: var(--sp-2) var(--gutter) var(--sp-5); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter); -webkit-overflow-scrolling: touch; }
.branch-card { position: relative; scroll-snap-align: start; display: flex; flex-direction: column; padding: var(--sp-5); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); transition: transform var(--t-mid) var(--ease), border-color var(--t-mid); }
.branch-card::after, .tariff-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: var(--shadow-md); opacity: 0; transition: opacity var(--t-mid) var(--ease); pointer-events: none; }
.branch-card:hover, .tariff-card:hover { transform: translateY(-6px); border-color: var(--gold); }
.branch-card:hover::after, .tariff-card:hover::after { opacity: 1; }
.branch-card__num { font-family: var(--f-serif); font-style: italic; font-size: 2.5rem; line-height: 1; color: var(--gold); }
.branch-card__title { margin-top: var(--sp-4); font-family: var(--f-serif); font-size: 1.5rem; font-weight: 600; line-height: 1.25; color: var(--navy); }
.branch-card__sub { margin-top: var(--sp-1); color: var(--grey); }
.branch-card__label { margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid var(--line); font-size: var(--fs-caption); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-text); }
.branch-card__label + .bullets { margin-top: var(--sp-2); }
.bullets { display: grid; gap: var(--sp-2); }
.bullets li { position: relative; padding-left: 1.25rem; }
.bullets li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 0.4rem; height: 0.4rem; border-radius: 50%; background: var(--navy); }
.bullets--gold li::before { background: var(--gold); }
@media (min-width: 72rem) {
  .branches { grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); margin: var(--sp-7) 0 0; padding: 0; overflow: visible; }
  .branch-card { padding: var(--sp-5) var(--sp-5) var(--sp-6); }
}

/* 4. Живые встречи (тёмная лента) */
.band { position: relative; overflow: hidden; padding: var(--section-py) 0; background: radial-gradient(60% 80% at 20% 50%, var(--navy-soft) 0%, var(--navy) 55%, var(--navy-deep) 100%); color: var(--on-dark); }
.band__inner { position: relative; display: grid; gap: var(--sp-7); align-items: center; }
.band__art { width: min(100%, 22rem); justify-self: center; }
.meet-art { display: block; width: 100%; height: auto; overflow: visible; }
.meet-art__bg { fill: var(--navy-deep); }
.meet-art__ring { fill: none; stroke: var(--gold); stroke-opacity: 0.55; stroke-width: 1.5; stroke-dasharray: 3 9; transform-box: view-box; transform-origin: 160px 160px; animation: spin 60s linear infinite; }
.meet-art__dot { fill: var(--gold-light); transform-box: view-box; transform-origin: 160px 160px; animation: spin 14s linear infinite; }
.tile { fill: var(--tile-fill); stroke: var(--on-dark-line); stroke-width: 1.5; }
.tile--active { stroke: var(--gold); stroke-width: 2; }
.person { fill: var(--person-fill); }
.person--active { fill: var(--gold-light); }
.speak path { fill: none; stroke: var(--gold-light); stroke-width: 2.5; stroke-linecap: round; }
.speak { animation: blink 1.6s ease-in-out infinite; }
.band__lead { margin-top: var(--sp-4); color: var(--on-dark-muted); max-width: 36rem; }
.formats { display: grid; gap: var(--sp-3); margin-top: var(--sp-6); }
.formats li { position: relative; display: flex; align-items: center; min-height: 3.25rem; padding: var(--sp-3) var(--sp-4) var(--sp-3) 3rem; border: 1px solid var(--on-dark-line); border-radius: var(--r-pill); }
.formats li::before { content: ""; position: absolute; left: var(--sp-4); width: 0.875rem; height: 0.875rem; border-radius: 50%; border: 1.5px solid var(--gold); box-shadow: inset 0 0 0 3px var(--navy), inset 0 0 0 7px var(--gold); }
@media (min-width: 56rem) {
  .band__inner { grid-template-columns: 0.85fr 1.15fr; gap: var(--sp-8); }
  .band__art { width: 100%; max-width: 26rem; }
  .formats { grid-template-columns: 1fr 1fr; }
}

/* 5. Проявляйся сам */
.initiative { display: grid; gap: var(--sp-6); align-items: center; }
.initiative__text .text-lg { margin-top: var(--sp-4); }
.checklist { display: grid; gap: var(--sp-3); margin-top: var(--sp-5); }
.checklist li { position: relative; padding: var(--sp-3) 0 var(--sp-3) 2.75rem; border-bottom: 1px solid var(--line); font-size: var(--fs-lg); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 50%; width: 1.75rem; height: 1.75rem; margin-top: -0.875rem; border-radius: 50%; background: var(--gold-soft); border: 1px solid var(--gold); }
.checklist li::after { content: ""; position: absolute; left: 0.6rem; top: 50%; width: 0.4rem; height: 0.75rem; margin-top: -0.5rem; border: solid var(--gold-text); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.initiative__art { width: min(100%, 22rem); justify-self: center; }
.grow { display: block; width: 100%; height: auto; overflow: visible; }
.grow__ring { fill: none; stroke: var(--line); stroke-width: 1.5; }
.grow__ring--2 { stroke: var(--gold-line); stroke-dasharray: 2 8; transform-box: view-box; transform-origin: 200px 200px; animation: spin 80s linear infinite; }
.grow__ring--3 { fill: var(--gold-soft); stroke: none; }
.grow__sun { fill: var(--gold); opacity: 0.85; transform-box: fill-box; transform-origin: center; animation: glow 5s ease-in-out infinite; }
.grow__plant { transform-box: view-box; transform-origin: 200px 330px; animation: sway 7s ease-in-out infinite; }
.grow__stem { fill: none; stroke: var(--navy); stroke-width: 2.5; stroke-linecap: round; }
.grow__leaf { fill: var(--white); stroke: var(--navy); stroke-width: 2; stroke-linejoin: round; }
.grow__leaf--2, .grow__leaf--4 { fill: var(--gold-light); }
.grow__ground { stroke: var(--navy); stroke-width: 2; stroke-linecap: round; }
@media (min-width: 56rem) { .initiative { grid-template-columns: 1.1fr 0.9fr; gap: var(--sp-8); } .initiative__art { max-width: 26rem; } }

/* 6. Тарифы */
.tariffs { display: grid; gap: var(--sp-6); margin-top: var(--sp-7); }
.tariff-card { position: relative; display: flex; flex-direction: column; gap: var(--sp-5); padding: var(--sp-6) var(--sp-5); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-lg); transition: transform var(--t-mid) var(--ease), border-color var(--t-mid); }
.tariff-card--featured { border: 2px solid var(--gold); background: linear-gradient(180deg, var(--gold-soft) 0%, var(--white) 38%); }
.tariff-card__title { font-family: var(--f-serif); font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 600; color: var(--navy); }
.tariff-card .bullets { flex: 1; align-content: start; }
.tariff-card__actions { display: grid; gap: var(--sp-3); }
.badge-gold { position: absolute; top: -0.9rem; left: var(--sp-5); overflow: hidden; display: inline-flex; align-items: center; min-height: 1.75rem; padding: 0 var(--sp-4); border-radius: var(--r-pill); background: var(--gold); color: var(--navy); font-size: var(--fs-caption); font-weight: 600; letter-spacing: 0.06em; }
.badge-gold::after { content: ""; position: absolute; top: 0; bottom: 0; left: -50%; width: 40%; background: linear-gradient(100deg, transparent, var(--shine-strong), transparent); animation: shimmer 3.2s ease-in-out infinite; }
.badge-gold--inline { position: relative; top: auto; left: auto; margin-left: var(--sp-2); min-height: 1.5rem; padding: 0 var(--sp-3); }
.prices { display: grid; }
.prices__row { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-4); padding: var(--sp-3) 0; border-bottom: 1px solid var(--line); }
.prices__term { display: grid; }
.prices__note { color: var(--grey); }
.prices__value { font-family: var(--f-serif); font-size: 2rem; font-weight: 600; line-height: 1.1; color: var(--navy); white-space: nowrap; }
.gift { display: flex; align-items: center; gap: var(--sp-5); margin-top: var(--sp-6); padding: var(--sp-5); background: var(--gold-soft); border: 1px solid var(--gold-line); border-radius: var(--r-lg); }
.gift__icon { flex: none; display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--gold); color: var(--navy); animation: bounce 2.8s var(--ease) infinite; }
.gift__title { font-family: var(--f-serif); font-size: var(--fs-h3); line-height: var(--lh-h3); font-weight: 600; color: var(--navy); }
.gift__text { margin-top: var(--sp-1); }
@media (min-width: 64rem) {
  .tariffs { grid-template-columns: 1.1fr 1fr 1fr; gap: var(--sp-5); }
  .tariff-card { padding: var(--sp-7) var(--sp-6) var(--sp-6); }
  .gift { padding: var(--sp-5) var(--sp-6); }
}

/* 7–8. Ведущая + FAQ */
.host-faq { display: grid; gap: var(--sp-8); }
.host__photo { position: relative; display: grid; place-items: center; width: 12rem; height: 12rem; margin-bottom: var(--sp-5); border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--navy-soft), var(--navy) 60%, var(--navy-deep)); box-shadow: 0 0 0 8px var(--ivory), 0 0 0 9px var(--gold); }
.host__initials { font-family: var(--f-serif); font-size: 3.5rem; font-weight: 500; letter-spacing: 0.08em; color: var(--gold-light); }
.host .text-lg { margin-top: var(--sp-4); }
.host__note { margin-top: var(--sp-3); color: var(--grey); }
.faq__title { margin-bottom: var(--sp-4); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item:first-child { border-top: 1px solid var(--line); }
.faq__q { position: relative; display: flex; align-items: center; min-height: 4rem; padding: var(--sp-4) 3rem var(--sp-4) 0; font-size: var(--fs-lg); font-weight: 600; color: var(--navy); cursor: pointer; list-style: none; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::before, .faq__q::after { content: ""; position: absolute; right: var(--sp-3); top: 50%; width: 1rem; height: 2px; margin-top: -1px; background: var(--gold-text); transition: transform var(--t-mid) var(--ease); }
.faq__q::after { transform: rotate(90deg); }
.faq__item[open] .faq__q::after { transform: rotate(0deg); }
.faq__q:hover { color: var(--gold-text); }
.faq__a { overflow: hidden; }
.faq__a p { padding: 0 3rem var(--sp-5) 0; color: var(--ink); }
@media (min-width: 60rem) { .host-faq { grid-template-columns: 5fr 7fr; gap: var(--sp-8); align-items: start; } }

/* 9. Подвал */
.site-footer { position: relative; overflow: hidden; padding: var(--section-py) 0 var(--sp-6); background: var(--navy-deep); color: var(--on-dark); }
.site-footer__inner { position: relative; display: grid; gap: var(--sp-7); }
.site-footer__brand { display: grid; gap: var(--sp-4); justify-items: start; align-content: start; }
.wordmark--footer { font-size: 2.5rem; }
.wordmark--footer .mini-sphere { width: 0.55em; height: 0.55em; }
.site-footer__by { color: var(--on-dark-muted); }
.site-footer__title { font-size: var(--fs-caption); font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.site-footer__person { margin-top: var(--sp-3); font-family: var(--f-serif); font-size: var(--fs-h3); }
.contacts { display: grid; gap: var(--sp-2); margin-top: var(--sp-4); }
.contacts__link { display: inline-flex; align-items: center; gap: var(--sp-3); min-height: 3rem; color: var(--on-dark); text-decoration: none; word-break: break-word; }
.contacts__link:hover { color: var(--gold-light); }
.contacts__icon { flex: none; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; border: 1px solid var(--on-dark-line); color: var(--gold-light); }
.contacts__icon .icon { width: 1.25rem; height: 1.25rem; }
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-3); padding-top: var(--sp-5); border-top: 1px solid var(--on-dark-line); color: var(--on-dark-muted); }
.site-footer__bottom a { color: var(--on-dark-muted); }
.site-footer__bottom a:hover { color: var(--gold-light); }
@media (min-width: 56rem) { .site-footer__inner { grid-template-columns: 1fr 1fr; } .site-footer__bottom { grid-column: 1 / -1; } }

/* ---------- Модальные окна ---------- */
.modal { padding: 0; border: 0; margin: 0; width: 100%; max-width: 100%; height: 100%; max-height: 100%; background: var(--white); color: var(--ink); }
.modal::backdrop { background: var(--backdrop); }
.modal[open] { animation: modal-in 0.4s var(--ease); }
.modal__panel { position: relative; min-height: 100%; display: flex; flex-direction: column; padding: var(--sp-4) var(--gutter) var(--sp-6); }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); }
.modal__title { display: inline-flex; align-items: center; gap: var(--sp-3); font-size: var(--fs-caption); font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-text); }
.modal__close { display: grid; place-items: center; width: 3rem; height: 3rem; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--navy); cursor: pointer; transition: transform var(--t-mid) var(--ease); }
.modal__close:hover { transform: rotate(90deg); }
body.is-modal-open { overflow: hidden; }
@media (min-width: 48rem) {
  .modal { width: min(40rem, calc(100% - 4rem)); height: auto; max-height: calc(100% - 4rem); margin: auto; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
  .modal__panel { min-height: 0; padding: var(--sp-5) var(--sp-7) var(--sp-7); }
}

/* Анкета */
.quiz__progress { margin-top: var(--sp-5); }
.quiz__progress-text { color: var(--grey); }
.quiz__bar { margin-top: var(--sp-2); height: 6px; background: var(--tint); border-radius: var(--r-pill); overflow: hidden; }
.quiz__bar-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-light)); border-radius: inherit; transform: scaleX(0.11); transform-origin: left; transition: transform 0.6s var(--ease); }
.quiz__form { flex: 1; display: flex; flex-direction: column; margin-top: var(--sp-6); }
.quiz__stage { flex: 1; overflow: hidden; padding: 4px; margin: -4px; }
.quiz-step { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; gap: var(--sp-3); align-content: start; }
.quiz-step.is-in-fwd { animation: step-in-fwd 0.42s var(--ease); }
.quiz-step.is-in-back { animation: step-in-back 0.42s var(--ease); }
.quiz-step__q { padding: 0; margin-bottom: var(--sp-4); font-family: var(--f-serif); font-size: 1.75rem; font-weight: 600; line-height: 1.25; color: var(--navy); }
.field { display: grid; gap: var(--sp-2); }
.field__label { font-weight: 600; color: var(--navy); }
.field__hint { color: var(--grey); }
.field__input { width: 100%; min-height: var(--btn-h); padding: var(--sp-3) var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--white); color: var(--ink); font: inherit; transition: border-color var(--t-fast); }
.field__input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px var(--focus-soft); }
.field__input[aria-invalid="true"] { border-color: var(--error); background: var(--error-bg); }
.field__input + .field__label { margin-top: var(--sp-3); }
.choices { display: grid; gap: var(--sp-3); }
.choices--row { grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr)); }
.choice { display: flex; align-items: center; gap: var(--sp-3); min-height: 3.5rem; padding: var(--sp-3) var(--sp-5); border: 1.5px solid var(--line); border-radius: 1.75rem; background: var(--white); cursor: pointer; transition: border-color var(--t-fast), background-color var(--t-fast); }
.choice:hover { border-color: var(--gold); }
.choice input { flex: none; width: 1.375rem; height: 1.375rem; margin: 0; accent-color: var(--navy); }
.choice:has(input:checked) { border-color: var(--navy); background: var(--gold-soft); animation: pop 0.32s var(--ease); }
.choice:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--focus-soft); }
.consent { display: flex; gap: var(--sp-3); align-items: flex-start; margin-top: var(--sp-4); cursor: pointer; }
.consent input { flex: none; width: 1.5rem; height: 1.5rem; margin: 0.15rem 0 0; accent-color: var(--navy); }
.quiz-error { color: var(--error); font-weight: 600; }
.quiz-error:not(:empty) { padding: var(--sp-3) var(--sp-4); background: var(--error-bg); border-radius: var(--r-md); }
.quiz__nav { display: grid; grid-template-columns: 1fr 1.6fr; gap: var(--sp-3); margin-top: var(--sp-6); }
.is-busy .btn { cursor: progress; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Результаты */
.quiz-result { flex: 1; display: grid; gap: var(--sp-4); align-content: center; justify-items: center; padding: var(--sp-7) 0 var(--sp-4); text-align: center; animation: fade-up 0.5s var(--ease); }
.quiz-result__title { font-family: var(--f-serif); font-size: var(--fs-h2); line-height: var(--lh-h2); font-weight: 600; color: var(--navy); }
.quiz-result__text { max-width: 28rem; font-size: var(--fs-lg); }
.quiz-result .btn { width: 100%; max-width: 22rem; }
.result-mark { position: relative; display: grid; place-items: center; width: 6rem; height: 6rem; margin-bottom: var(--sp-3); border-radius: 50%; }
.result-mark--ok { background: var(--navy); }
.result-mark--fail { background: var(--error); animation: shake 0.6s var(--ease) 0.15s; }
.result-mark__icon { width: 3rem; height: 3rem; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.result-mark--ok .result-mark__icon { stroke: var(--gold-light); }
.result-mark--fail .result-mark__icon { stroke: var(--white); }
.result-mark__path { stroke-dasharray: 24; stroke-dashoffset: 24; animation: draw 0.6s var(--ease) 0.25s forwards; }
.result-mark__orbit { position: absolute; inset: -0.875rem; border-radius: 50%; border: 1px dashed var(--gold-line); animation: spin 8s linear infinite; }
.result-mark__orbit::after { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, var(--gold-highlight), var(--gold) 60%); }
.confetti { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; }
.confetti__p { position: absolute; left: -4px; top: -6px; width: 8px; height: 12px; border-radius: 2px; background: var(--gold); opacity: 0; animation: confetti 1.2s var(--ease) var(--delay, 0s) forwards; }
.confetti__p:nth-child(3n) { background: var(--gold-light); }
.confetti__p:nth-child(4n) { background: var(--navy); width: 6px; height: 6px; border-radius: 50%; }

/* ---------- Появление при скролле ---------- */
.js [data-reveal], .js [data-stagger] > * { opacity: 0; translate: 0 28px; transition: opacity 0.8s var(--ease) var(--rd, 0s), translate 0.8s var(--ease) var(--rd, 0s), transform var(--t-mid) var(--ease), border-color var(--t-mid); }
.js [data-reveal].is-visible, .js [data-stagger] > .is-visible { opacity: 1; translate: 0 0; }

/* ---------- Ключевые кадры ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes glow { 0%, 100% { transform: scale(0.94); opacity: 0.75; } 50% { transform: scale(1.05); opacity: 1; } }
@keyframes surface { from { transform: translateX(0); } to { transform: translateX(-300px); } }
@keyframes spec { 0%, 100% { opacity: 0.85; } 50% { opacity: 1; } }
@keyframes pulse-dot { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.6); opacity: 0.5; } }
@keyframes blink { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
@keyframes sway { 0%, 100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 50% { transform: rotate(9deg); } 75% { transform: rotate(-4deg); } }
@keyframes shimmer { 0%, 55% { transform: translateX(0) skewX(-20deg); } 100% { transform: translateX(450%) skewX(-20deg); } }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); } 70% { transform: translateY(-8px); } 80% { transform: translateY(0); } 88% { transform: translateY(-3px); } }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes step-in-fwd { from { opacity: 0; transform: translateX(36px); } to { opacity: 1; transform: none; } }
@keyframes step-in-back { from { opacity: 0; transform: translateX(-36px); } to { opacity: 1; transform: none; } }
@keyframes pop { 0% { transform: scale(1); } 45% { transform: scale(1.025); } 100% { transform: scale(1); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 20% { transform: translateX(-10px); } 40% { transform: translateX(8px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(3px); } }
@keyframes confetti { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 100% { opacity: 0; transform: translate(var(--x), var(--y)) rotate(var(--r)); } }

/* ---------- Без анимаций ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .js [data-stagger] > * { opacity: 1; translate: none; }
  .result-mark__path { stroke-dashoffset: 0; }
  .hero__visual, .hero .stars { transform: none; }
}

/* ---------- Мелкие уточнения ---------- */
.choice input:focus-visible, .consent input:focus-visible { box-shadow: none; }
.consent:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--focus-soft); border-radius: var(--r-sm); }
.branches { scrollbar-width: thin; scrollbar-color: var(--gold-line) transparent; }
