/* =====================================================================
   Иван Нехаев — личный сайт. Система: один шрифт (Geologica), тёмный
   кинематографичный фон, тёплый белый текст, один холодный акцент.
   Одна оркестрованная сцена (поле частиц в хиро), остальное — тихо.
   ===================================================================== */
:root {
  color-scheme: light;
  --bg: #F6F6F3;
  --bg-2: #EEEEEA;
  --surface: #FFFFFF;
  --line: rgba(11, 11, 15, 0.1);
  --line-strong: rgba(11, 11, 15, 0.22);
  --text: #0B0B0F;
  --text-2: #565961;
  --muted: #8A8D94;
  --accent: #1E40FF;
  --accent-ink: #FFFFFF;
  --accent-soft: #A9B6FF;
  --shadow: 0 24px 60px -28px rgba(11, 11, 15, 0.28);
  --font: 'Geologica', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --container: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 10px;
  --nav-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}
.theme-dark {
  color-scheme: dark;
  --bg: #0B0B0F;
  --bg-2: #111116;
  --surface: #15151B;
  --line: rgba(246, 246, 243, 0.12);
  --line-strong: rgba(246, 246, 243, 0.26);
  --text: #F6F6F3;
  --text-2: #B5B7BD;
  --muted: #7D8088;
  --accent: #8A9DFF;
  --accent-ink: #0B0B0F;
  --shadow: none;
  background: var(--bg); color: var(--text);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-weight: 400; font-size: 1.0625rem; line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
body.is-locked { overflow: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 4px; }
.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
main { position: relative; }
.footer { position: relative; z-index: 1; }

/* particle field */
.particles { position: fixed; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }

.hero__visual { position: relative; width: 100%; aspect-ratio: 4 / 5; }
.hero__fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 12%; filter: grayscale(1) contrast(1.05); -webkit-mask-image: radial-gradient(70% 72% at 50% 42%, #000 40%, transparent 78%); mask-image: radial-gradient(70% 72% at 50% 42%, #000 40%, transparent 78%); }
.has-field .hero__fallback { display: block; opacity: 0.5; will-change: opacity, filter; }
.hero__visual.is-revealed { cursor: zoom-out; }

/* ---------- Layout ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { position: relative; padding-block: clamp(88px, 11vw, 160px); background: transparent; }
.section.theme-dark { background: var(--bg); }
.section__head { max-width: 860px; margin-bottom: clamp(40px, 6vw, 80px); }
.section__head--row { max-width: none; display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 5vw, 96px); align-items: end; }
.section__desc { color: var(--text-2); font-size: 1.05rem; line-height: 1.6; max-width: 44ch; }
.section__head--row .section__desc { padding-bottom: 0.35em; }
.kicker { display: block; font-size: 0.95rem; color: var(--muted); margin-bottom: 18px; }
.h2 { font-weight: 300; font-size: clamp(1.9rem, 3.3vw, 3.1rem); line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
.lead { font-size: 1.3rem; line-height: 1.5; font-weight: 300; color: var(--text); }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.1em 0 0.16em; margin: -0.1em 0 -0.16em; }
.w-in { display: inline-block; }
.js [data-split] .w-in { transform: translateY(110%); }
.js [data-reveal], .js [data-hero-fade] { opacity: 0; }

/* ---------- Buttons & links ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 26px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: transparent; color: var(--text); font-weight: 500; font-size: 0.95rem; line-height: 1; text-decoration: none; white-space: nowrap; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.btn--primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn--primary:hover { background: var(--accent); border-color: var(--accent); color: #FFFFFF; transform: translateY(-2px); box-shadow: 0 16px 36px -16px rgba(30, 64, 255, 0.5); }
.btn { transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.4s var(--ease), box-shadow 0.4s; }
.btn--ghost:hover { border-color: var(--text); background: var(--surface); }
.btn--dark { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn--dark:hover { background: var(--accent); border-color: var(--accent); color: #0B0B0F; }
.btn--large { padding: 19px 30px; font-size: 1rem; }
.btn--small { padding: 11px 18px; font-size: 0.86rem; }
.btn--block { width: 100%; }
.link { color: var(--text); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; transition: border-color 0.3s, color 0.3s; }
.link:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- Grain ---------- */
.grain { position: fixed; inset: -100%; width: 300%; height: 300%; z-index: 1400; pointer-events: none; opacity: 0.05; mix-blend-mode: multiply; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); animation: grain 1.2s steps(5) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); } 60% { transform: translate(-4%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(-1%, -3%); } }

/* ---------- Nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h); color: #0B0B0F; border-bottom: 1px solid transparent; transition: transform 0.6s var(--ease), background 0.4s, border-color 0.4s; }
.nav.is-scrolled { background: rgba(246, 246, 243, 0.97); border-bottom-color: rgba(11, 11, 15, 0.1); }
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 32px; }
.nav__name { grid-column: 1; justify-self: start; font-weight: 500; font-size: 1.02rem; letter-spacing: -0.01em; color: #0B0B0F; text-decoration: none; transition: color 0.3s; }
.nav__name:hover { color: var(--accent); }
.nav__links { grid-column: 2; display: flex; gap: 4px; }
.nav__links a { padding: 10px 14px; color: rgba(11, 11, 15, 0.62); text-decoration: none; font-size: 0.9rem; font-weight: 500; border-bottom: 1px solid transparent; transition: color 0.3s, border-color 0.3s; }
.nav__links a:hover, .nav__links a.is-active { color: #0B0B0F; border-bottom-color: var(--accent); }
.nav__actions { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 12px; }
.nav .btn { color: #0B0B0F; border-color: rgba(11, 11, 15, 0.25); }
.nav .btn--primary { background: #0B0B0F; color: #F6F6F3; border-color: #0B0B0F; }
.nav .btn--primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.burger { display: none; position: relative; width: 44px; height: 44px; border: 1px solid rgba(11, 11, 15, 0.25); border-radius: var(--radius); }
.burger span { position: absolute; left: 13px; width: 18px; height: 1px; background: #0B0B0F; transition: transform 0.45s var(--ease), top 0.45s var(--ease); }
.burger span:first-child { top: 18px; } .burger span:last-child { top: 25px; }
.burger.is-open span:first-child { top: 21px; transform: rotate(45deg); } .burger.is-open span:last-child { top: 21px; transform: rotate(-45deg); }
.menu { position: fixed; inset: 0; z-index: 90; visibility: hidden; pointer-events: none; transition: visibility 0s 0.7s; color: #0B0B0F; }
.menu__bg { position: absolute; inset: 0; background: #F6F6F3; opacity: 0; transition: opacity 0.6s var(--ease); }
.menu.is-open { visibility: visible; pointer-events: auto; transition-delay: 0s; }
.menu.is-open .menu__bg { opacity: 1; }
.menu__links { position: absolute; inset: 0; padding: calc(var(--nav-h) + 24px) var(--gutter) 0; display: flex; flex-direction: column; }
.menu__links a { display: flex; align-items: baseline; gap: 18px; padding: 16px 0; border-bottom: 1px solid rgba(11, 11, 15, 0.12); font-weight: 300; font-size: clamp(1.8rem, 7vw, 2.6rem); line-height: 1.1; letter-spacing: -0.02em; color: #0B0B0F; text-decoration: none; opacity: 0; transform: translateY(18px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.menu__links a small { font-size: 0.8rem; color: var(--muted); }
.menu.is-open .menu__links a { opacity: 1; transform: none; }
.menu.is-open .menu__links a:nth-child(1) { transition-delay: 0.15s; } .menu.is-open .menu__links a:nth-child(2) { transition-delay: 0.2s; } .menu.is-open .menu__links a:nth-child(3) { transition-delay: 0.25s; } .menu.is-open .menu__links a:nth-child(4) { transition-delay: 0.3s; } .menu.is-open .menu__links a:nth-child(5) { transition-delay: 0.35s; } .menu.is-open .menu__links a:nth-child(6) { transition-delay: 0.4s; }
.menu__footer { position: absolute; left: var(--gutter); right: var(--gutter); bottom: max(32px, env(safe-area-inset-bottom)); display: flex; gap: 28px; opacity: 0; transition: opacity 0.6s 0.45s; }
.menu.is-open .menu__footer { opacity: 1; }
.menu__footer a { text-decoration: none; font-size: 0.9rem; color: #565961; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 100svh; min-height: 540px; display: flex; align-items: center; padding-top: var(--nav-h); overflow: hidden; }
.hero__inner { display: grid; grid-template-columns: 1.05fr 0.95fr; grid-template-areas: "content visual" "actions visual"; column-gap: clamp(32px, 5vw, 80px); align-items: center; padding-block: clamp(16px, 3vh, 40px) clamp(48px, 7vh, 80px); }
.hero__content { grid-area: content; align-self: end; }
.hero__visual { grid-area: visual; }
.hero__actions { grid-area: actions; align-self: start; margin-top: 30px; }
.hero__content { min-width: 0; }
.hero__name { font-size: clamp(1.35rem, 1.9vw, 1.8rem); font-weight: 500; letter-spacing: -0.015em; margin-bottom: 30px; }
.hero__name span { display: block; font-weight: 400; color: var(--text-2); font-size: 1rem; letter-spacing: 0; margin-top: 6px; }
.hero__title { font-weight: 330; font-size: clamp(2.5rem, 4.3vw + 0.2rem, 4.3rem); line-height: 0.98; letter-spacing: -0.035em; margin-bottom: 0; text-wrap: balance; }
.hero__title em { font-style: normal; color: var(--accent); font-weight: 620; }
.hero__title .ch { display: inline; }
.hero__br { display: none; }
@media (min-width: 1024px) { .hero__title { white-space: nowrap; text-wrap: initial; } .hero__br { display: inline; } }
.hero__sub { font-size: clamp(1rem, 1.15vw, 1.15rem); line-height: 1.6; color: var(--text-2); max-width: 52ch; margin-bottom: 34px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__proof { display: grid; border-top: 1px solid var(--line); }
.hero__proof li { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; color: var(--text-2); display: flex; gap: 14px; }
.hero__proof li::before { content: ''; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-top: 0.55em; }

/* ---------- Trust ---------- */
.trust { position: relative; z-index: 1; padding-block: 40px 56px; }
.trust__inner { display: grid; grid-template-columns: 220px 1fr; gap: 24px 48px; align-items: start; border-top: 1px solid var(--line); padding-top: 32px; }
.trust__title { font-size: 0.95rem; color: var(--muted); padding-top: 4px; }
.trust__viewport { min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.trust__row { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.trust__viewport:hover .trust__row { animation-play-state: paused; }
.trust__list { display: flex; flex-wrap: nowrap; }
.trust__list li { font-size: 1.05rem; font-weight: 300; color: var(--text); padding-right: 22px; margin-right: 22px; border-right: 1px solid var(--line-strong); line-height: 1.3; white-space: nowrap; }
.trust__list li:last-child { border-right: 1px solid var(--line-strong); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .trust__row { animation: none; } .trust__list { flex-wrap: wrap; gap: 10px 0; } .trust__list[aria-hidden] { display: none; } }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.about__content > p { color: var(--text-2); margin-bottom: 20px; }
.about__content .lead { margin-bottom: 24px; }
.facts { margin-top: 40px; }
.facts li { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 20px 0; border-top: 1px solid var(--line); }
.facts li:last-child { border-bottom: 1px solid var(--line); }
.facts .icon { display: none; }
.facts strong { font-weight: 500; font-size: 1.1rem; }
.facts span { color: var(--text-2); font-size: 0.95rem; }
.stack { border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.stack__group { padding: 28px 30px; }
.stack__group + .stack__group { border-top: 1px solid var(--line); }
.stack__group h3 { font-weight: 500; font-size: 0.95rem; color: var(--text-2); margin-bottom: 18px; }
.stack__list { display: flex; flex-wrap: wrap; gap: 10px 0; }
.stack__list li { font-weight: 300; font-size: 1.25rem; padding-right: 20px; margin-right: 20px; border-right: 1px solid var(--line-strong); line-height: 1.2; }
.stack__list li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.stack__skills li { padding: 12px 0; border-top: 1px solid var(--line); color: var(--text-2); font-size: 0.97rem; }
.stack__skills li:first-child { border-top: 0; padding-top: 0; }

/* ---------- Directions ---------- */
.dirs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dir { position: relative; display: flex; flex-direction: column; gap: 16px; min-height: 340px; padding: 30px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; overflow: hidden; transition: transform 0.5s var(--ease), box-shadow 0.5s, border-color 0.4s; }
.dir::before { content: ''; position: absolute; left: 30px; top: 0; width: 44px; height: 3px; background: var(--accent); border-radius: 0 0 3px 3px; transition: width 0.5s var(--ease); }
.dir:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.dir:hover::before { width: 110px; }
.dir h3 { font-weight: 400; font-size: clamp(1.5rem, 2.1vw, 2rem); line-height: 1.12; letter-spacing: -0.02em; margin-top: 10px; }
.dir p { color: var(--text-2); max-width: 36ch; }
.dir .link { margin-top: auto; align-self: flex-start; }

/* ---------- Mentoring ---------- */
.mentoring__grid { display: grid; gap: 24px; }
.mentoring__info { display: grid; grid-template-columns: 1fr 1.4fr; gap: 24px; }
.info-block { padding: 30px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.info-block h3 { font-weight: 500; font-size: 0.95rem; color: var(--text-2); margin-bottom: 20px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius); font-size: 0.9rem; color: var(--text-2); }
.steps li { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 16px 0; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; padding-top: 0; }
.steps strong { font-weight: 500; }
.steps div { color: var(--text-2); font-size: 0.97rem; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 20px; padding: 34px 30px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); transition: transform 0.4s var(--ease), box-shadow 0.4s; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.plan--featured { background: var(--text); color: var(--bg); --text-2: rgba(246,246,243,.78); --muted: rgba(246,246,243,.6); --line: rgba(246,246,243,.16); border-color: var(--text); }
.plan--featured .btn--primary { background: var(--bg); color: var(--text); border-color: var(--bg); }
.plan--featured .btn--primary:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.plan__tag { position: absolute; top: -12px; left: 26px; padding: 5px 10px; background: var(--accent); color: #fff; font-size: 0.78rem; font-weight: 500; border-radius: var(--radius); }
.plan__head h3 { font-weight: 300; font-size: 1.6rem; letter-spacing: -0.01em; }
.plan__time { display: block; color: var(--muted); font-size: 0.9rem; margin-top: 4px; }
.plan__price { font-weight: 300; font-size: 1.6rem; }
.plan__list { display: flex; flex-direction: column; flex: 1; }
.plan__list li { padding: 11px 0; border-top: 1px solid var(--line); color: var(--text-2); font-size: 0.96rem; }

/* ---------- Tools ---------- */
.tcards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tcard { --c1: var(--accent); --ls: 34px; position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 6px; min-height: 272px; padding: 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); color: var(--text); cursor: pointer; transition: transform 0.5s var(--ease), box-shadow 0.5s, border-color 0.4s; }
.tcard:hover, .tcard:focus-visible { transform: translateY(-6px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--c1) 45%, transparent); outline: none; }
.tcard::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--c1) 14%, transparent), transparent 62%); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.tcard:hover::after { opacity: 1; }
.tcard__logo { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: auto; color: var(--text); transition: color 0.4s, transform 0.6s var(--ease); }
.tcard__logo svg { width: var(--ls); height: var(--ls); fill: currentColor; }
.logo-midjourney { --logo: url(../assets/img/logos/midjourney.png); --ls: 42px; }
.logo-runway { --logo: url(../assets/img/logos/runway.png); }
.logo-higgsfield { --logo: url(../assets/img/logos/higgsfield.png); }
.logo-kling { --logo: url(../assets/img/logos/kling.png); }
.tcard__logo--img { background: currentColor; -webkit-mask: var(--logo) center / var(--ls) var(--ls) no-repeat; mask: var(--logo) center / var(--ls) var(--ls) no-repeat; }
.tcard:hover .tcard__logo { color: var(--c1); transform: translateY(-2px) scale(1.08); }
.tcard h3 { font-weight: 500; font-size: 1.4rem; line-height: 1.1; letter-spacing: -0.015em; margin-top: 18px; }
.tcard__tier { font-size: 0.82rem; color: var(--muted); }
.tcard__desc { font-size: 0.94rem; line-height: 1.45; color: var(--text-2); margin-top: 6px; }
.tcard__cta { margin-top: 14px; font-size: 0.88rem; font-weight: 500; color: var(--muted); transition: color 0.3s; }
.tcard:hover .tcard__cta { color: var(--c1); }
.tcard__wm { position: absolute; right: -14%; bottom: -18%; width: 60%; aspect-ratio: 1; color: var(--c1); opacity: 0.05; transform: rotate(-12deg); pointer-events: none; z-index: -1; transition: opacity 0.5s, transform 0.9s var(--ease); }
.tcard__wm svg { width: 100%; height: 100%; fill: currentColor; }
.tcard__wm--img { background: currentColor; -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; }
.tcard:hover .tcard__wm { opacity: 0.11; transform: rotate(-6deg) translate(-4%, -6%); }
.tcard--more { border-style: dashed; background: transparent; cursor: default; }
.tcard--more .link { margin-top: 14px; align-self: flex-start; }

.how { margin-top: clamp(48px, 7vw, 88px); display: grid; grid-template-columns: 2fr 1fr; gap: 20px; }
.how__steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.how__step { padding: 26px 28px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.how__step h3 { font-weight: 500; font-size: 1.05rem; margin-bottom: 8px; }
.how__step p { color: var(--text-2); font-size: 0.95rem; }
.how__cta { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 28px; border-radius: 20px; background: var(--text); color: var(--bg); }
.how__cta p { font-size: 1.05rem; line-height: 1.5; }
.how__cta .btn--primary { background: var(--bg); color: var(--text); border-color: var(--bg); }
.how__cta .btn--primary:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- Events showcase ---------- */
.events { overflow: hidden; }
.events__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.events__nav { display: flex; gap: 10px; }
.events__nav button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--text); background: var(--surface); display: grid; place-items: center; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.events__nav button:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.events__nav .icon { width: 18px; height: 18px; }
.events__track { display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px var(--gutter) 28px 0; margin: 0 calc(-1 * var(--gutter)) 0 0; scrollbar-width: none; cursor: grab; }
.events__track::-webkit-scrollbar { display: none; }
.events__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.ev { --c1: #E7ECFF; --c2: #F4F6FF; --ink: #0B0B0F; position: relative; flex: 0 0 min(360px, 82vw); aspect-ratio: 4 / 5; scroll-snap-align: start; border-radius: 20px; padding: 26px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(160deg, var(--c1), var(--c2)); color: var(--ink); overflow: hidden; isolation: isolate; transition: transform 0.5s var(--ease); user-select: none; }
.ev:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.ev--violet { --c1: #EEE8FF; --c2: #F8F5FF; }
.ev--coral { --c1: #FFE9E4; --c2: #FFF5F2; }
.ev--amber { --c1: #FFF1D6; --c2: #FFF9EC; }
.ev--lime { --c1: #ECF7DD; --c2: #F6FBEF; }
.ev--pink { --c1: #FFE6F3; --c2: #FFF4F9; }
.ev--cyan { --c1: #E2F6FB; --c2: #F2FBFD; }
.ev::before { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E"); mix-blend-mode: multiply; opacity: 0.35; pointer-events: none; }
.ev::after { content: ''; position: absolute; width: 85%; aspect-ratio: 1; right: -30%; top: -30%; border-radius: 50%; border: 1px solid rgba(11, 11, 15, 0.14); pointer-events: none;  }
@keyframes ring { to { transform: rotate(1turn); } }
.ev img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.ev__kind { font-size: 0.82rem; font-weight: 500; color: var(--accent); }
.ev__body { position: relative; }
.ev h3 { font-weight: 500; font-size: clamp(1.5rem, 2vw, 2rem); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 10px; text-wrap: balance; }
.ev p { font-size: 0.95rem; line-height: 1.45; opacity: 0.9; }
.ev__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ev__meta span { padding: 6px 10px; border-radius: 999px; background: rgba(11, 11, 15, 0.08); font-size: 0.78rem; font-weight: 500;  }
.events__note { color: var(--muted); font-size: 0.9rem; margin-top: 6px; }

/* ---------- Speaking ---------- */
.speaking__grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.speaking__sticky { position: sticky; top: calc(var(--nav-h) + 32px); display: grid; gap: 36px; }
.speaking__stats { display: grid; }
.speaking__stats li { display: flex; flex-direction: column; gap: 6px; padding: 18px 0; border-top: 1px solid var(--line-strong); }
.speaking__stats li:last-child { border-bottom: 1px solid var(--line-strong); }
.speaking__stats strong { font-weight: 300; font-size: clamp(2rem, 3.2vw, 3rem); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.speaking__stats strong i { font-style: normal; color: var(--accent); }
.speaking__stats span { color: var(--muted); font-size: 0.9rem; }
.speaking__cta { display: grid; gap: 18px; justify-items: start; }
.speaking__h3 { font-weight: 500; font-size: 0.95rem; color: var(--muted); margin-bottom: 18px; }
.formats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 56px; }
.formats li { padding: 24px; background: var(--surface); }
.formats strong { display: block; font-weight: 500; font-size: 1.1rem; margin-bottom: 6px; }
.formats span { color: var(--text-2); font-size: 0.95rem; }
.topics { margin-bottom: 56px; }
.topics li { padding: clamp(14px, 2vw, 22px) 0; border-top: 1px solid var(--line-strong); }
.topics li:last-child { border-bottom: 1px solid var(--line-strong); }
.topics h3 { font-weight: 300; font-size: clamp(1.25rem, 2vw, 1.8rem); line-height: 1.2; letter-spacing: -0.015em; transition: color 0.3s; }
.topics li:hover h3 { color: var(--accent); }
.venues { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.venue { padding: 22px 24px; background: var(--surface); }
.venue strong { display: block; font-weight: 500; font-size: 0.95rem; margin-bottom: 8px; }
.venue p { color: var(--text-2); font-size: 0.95rem; line-height: 1.6; }
.speaking__note { margin-top: 36px; color: var(--text-2); max-width: 52ch; }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.faq__head .h2 { margin-bottom: 18px; }
.acc { border-top: 1px solid var(--line); }
.acc:last-child { border-bottom: 1px solid var(--line); }
.acc summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; list-style: none; cursor: pointer; font-weight: 400; font-size: 1.15rem; line-height: 1.35; transition: color 0.3s; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { color: var(--accent); }
.acc summary i { position: relative; flex: none; width: 32px; height: 32px; border: 1px solid var(--line-strong); border-radius: 50%; transition: transform 0.5s var(--ease), border-color 0.3s; }
.acc summary i::before, .acc summary i::after { content: ''; position: absolute; left: 50%; top: 50%; background: currentColor; transform: translate(-50%, -50%); }
.acc summary i::before { width: 12px; height: 1px; } .acc summary i::after { width: 1px; height: 12px; }
.acc[open] summary i { transform: rotate(135deg); border-color: var(--accent); }
.acc__body { overflow: hidden; }
.acc__body p { padding: 0 56px 22px 0; color: var(--text-2); max-width: 60ch; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__text .h2 { margin-bottom: 18px; }
.contact__links { display: grid; margin-top: 40px; border-top: 1px solid var(--line-strong); }
.contact__link { display: flex; align-items: center; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line-strong); color: inherit; text-decoration: none; }
.contact__link-icon { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--text); color: var(--bg); }
.contact__link strong { display: block; font-weight: 500; }
.contact__link small { color: var(--muted); font-size: 0.9rem; }
.form { display: grid; gap: 22px; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.field { position: relative; display: block; }
.field input, .field select, .field textarea { width: 100%; padding: 24px 0 10px; background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; color: var(--text); font: inherit; line-height: 1.4; transition: border-color 0.3s; appearance: none; -webkit-appearance: none; }
.field textarea { resize: vertical; min-height: 110px; }
.field select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231E40FF' stroke-width='1.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0 center; background-size: 18px; }
.field select option { background: #fff; color: #0B0B0F; }
.field > span { position: absolute; left: 0; top: 22px; color: var(--muted); font-size: 0.95rem; pointer-events: none; transition: transform 0.25s var(--ease), font-size 0.25s, color 0.25s; transform-origin: left top; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field input:focus ~ span, .field input:not(:placeholder-shown) ~ span, .field textarea:focus ~ span, .field textarea:not(:placeholder-shown) ~ span, .field select:focus ~ span, .field select:valid ~ span { transform: translateY(-20px); font-size: 0.75rem; color: var(--accent); }
.field.is-error input, .field.is-error select { border-color: #FF7A6B; }
.check { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 0.88rem; color: var(--text-2); }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check i { position: relative; flex: none; width: 18px; height: 18px; margin-top: 3px; border: 1px solid var(--line-strong); border-radius: var(--radius); transition: background 0.2s, border-color 0.2s; }
.check i::after { content: ''; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid var(--accent-ink); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) scale(0); transition: transform 0.2s var(--ease); }
.check input:checked ~ i { background: var(--accent); border-color: var(--accent); }
.check input:checked ~ i::after { transform: rotate(45deg) scale(1); }
.check.is-error i { border-color: #FF7A6B; }
.check a { color: var(--text); }
.form__status { min-height: 1.4em; font-size: 0.88rem; color: var(--muted); text-align: center; }
.form__status.is-ok { color: var(--accent); }
.form__status.is-error { color: #FF7A6B; }

/* ---------- Footer ---------- */
.footer { padding: 56px 0 32px; border-top: 1px solid var(--line); background: transparent; }
.footer__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; padding-bottom: 36px; }
.footer__brand { font-weight: 500; }
.footer__brand span { font-weight: 400; color: var(--text-2); }
.footer__nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer__nav a, .footer__social a { color: var(--text-2); text-decoration: none; font-size: 0.9rem; transition: color 0.3s; }
.footer__nav a:hover, .footer__social a:hover { color: var(--accent); }
.footer__social { display: flex; gap: 22px; }
.footer__social a { color: var(--accent); font-weight: 500; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.85rem; }
.footer__bottom a { color: var(--muted); }
.footer__bottom a:hover { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .dirs { grid-template-columns: 1fr; }
  .dir { min-height: 260px; }
  .tcards { grid-template-columns: repeat(3, 1fr); }
  .how { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 720px; }
  .plan--featured { background: var(--text); color: var(--bg); --text-2: rgba(246,246,243,.78); --muted: rgba(246,246,243,.6); --line: rgba(246,246,243,.16); border-color: var(--text); }
.plan--featured .btn--primary { background: var(--bg); color: var(--text); border-color: var(--bg); }
.plan--featured .btn--primary:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
  .tool { grid-template-columns: 1fr 1fr; }
  .tool__desc { grid-column: 1 / -1; }
}
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .burger { display: block; }
  .section__head--row { grid-template-columns: 1fr; align-items: start; }
  .section__head--row .section__desc { padding-bottom: 0; }
  .hero__inner { grid-template-columns: 1fr; gap: 24px; }
  .hero__visual { order: -1; width: min(100%, 420px); aspect-ratio: 1 / 1; margin-inline: auto; }
  .trust__inner { grid-template-columns: 1fr; gap: 16px; }
  .about__grid { grid-template-columns: 1fr; }
  .mentoring__info { grid-template-columns: 1fr; }
  .speaking__grid { grid-template-columns: 1fr; }
  .speaking__sticky { position: static; grid-template-columns: 1fr 1fr; align-items: end; }
  .speaking__stats { grid-template-columns: repeat(3, 1fr); grid-column: 1 / -1; }
  .speaking__stats li { border-bottom: 1px solid var(--line-strong); }
  .faq__grid { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  :root { --nav-h: 68px; }
  .nav__name { display: none; }
  .section { padding-block: 72px; }
  .hero__inner { padding-block: 16px 72px; }
  .hero__actions .btn { width: 100%; }
  .formats { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .acc__body p { padding-right: 0; }
  .footer__top { flex-direction: column; align-items: flex-start; }
  .speaking__sticky { grid-template-columns: 1fr; }
  .speaking__stats strong { font-size: 1.8rem; }
  .nav__actions .btn { display: none; }
  .tcards { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .tcard { --ls: 28px; min-height: 0; padding: 18px; }
  .tcard__logo { width: 40px; height: 40px; }
  .tcard h3 { font-size: 1.15rem; margin-top: 14px; }
  .tcard__desc, .tcard__cta { display: none; }
  .tcard--more .tcard__desc { display: block; }
  .how__steps { grid-template-columns: 1fr; }
  .events__head { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .js [data-reveal], .js [data-hero-fade] { opacity: 1; }
  .js [data-split] .w-in { transform: none; }
  .grain, .particles { display: none !important; }
}

/* ---------- Interactive layer ---------- */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; z-index: 120; background: var(--accent); transform-origin: left; transform: scaleX(0); pointer-events: none; }
.who { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 22px; }
.who__label { flex-basis: 100%; font-size: 0.85rem; color: var(--muted); }
.who__btn { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 0.84rem; font-weight: 500; color: var(--text-2); background: transparent; transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--ease); }
.who__btn:hover { border-color: var(--text); color: var(--text); transform: translateY(-1px); }
.who__btn.is-on { background: var(--text); color: var(--bg); border-color: var(--text); }
.hero__tap { position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%); z-index: 4; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px 10px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong); font-size: 0.86rem; font-weight: 500; color: var(--text); white-space: nowrap; box-shadow: 0 12px 30px -16px rgba(11, 11, 15, 0.45); cursor: pointer; transition: opacity 0.5s, background 0.3s, color 0.3s, border-color 0.3s; }
.hero__tap svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.hero__tap:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.hero__tap::after { content: ''; position: absolute; inset: -1px; border-radius: inherit; border: 1px solid var(--accent); opacity: 0; animation: tapring 2.4s var(--ease) infinite; pointer-events: none; }
.hero__tap.is-used::after { animation: none; }
@keyframes tapring { 0% { transform: scale(1); opacity: 0.6; } 100% { transform: scale(1.18, 1.5); opacity: 0; } }
.has-field .hero__visual { cursor: pointer; }
@keyframes tap { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -6px); } }
.is-scrolled .hero__tap { opacity: 0 !important; pointer-events: none; }
.field-lost .hero__fallback { opacity: 1 !important; filter: none !important; }
.field-lost .particles, .field-lost .hero__tap { display: none; }
.no-field .hero__tap { display: none; }
.dir::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(30, 64, 255, 0.12), transparent 60%); opacity: 0; transition: opacity 0.4s; pointer-events: none; }
.dir:hover::after { opacity: 1; }
.btn { overflow: hidden; }
.btn::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%); transform: translateX(-120%); transition: transform 0.8s var(--ease); pointer-events: none; }
.btn:hover::after { transform: translateX(120%); }
.events__track { scroll-snap-type: none; }
.ev { cursor: pointer; }
.ev:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.evd { border: 0; border-radius: 20px; padding: 36px 36px 32px; width: min(620px, calc(100vw - 32px)); background: var(--surface); color: var(--text); box-shadow: 0 40px 100px -30px rgba(11, 11, 15, 0.45); }
.evd::backdrop { background: rgba(11, 11, 15, 0.45); backdrop-filter: blur(6px); }
.evd[open] { animation: evd-in 0.45s var(--ease); }
@keyframes evd-in { from { opacity: 0; transform: translateY(16px) scale(0.98); } to { opacity: 1; transform: none; } }
.evd__close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; }
.evd__close .icon { width: 16px; height: 16px; }
.evd__body .ev__kind { display: block; margin-bottom: 10px; color: var(--accent); }
.evd__body h3 { font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 14px; }
.evd__body p { color: var(--text-2); margin-bottom: 14px; }
.evd__body .ev__meta { margin: 0 0 22px; }
.evd__body .ev__meta span { background: var(--bg-2); }
.theme-dark .evd { background: #15151B; }
@media (max-width: 768px) { .who { gap: 6px; } .who__btn { padding: 8px 12px; font-size: 0.82rem; } .who__label { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .hero__tap { animation: none; } .btn::after { display: none; } }

/* ---------- Scroll story in the hero (pinned) ---------- */
.story { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.no-field .story { display: none; }
.story__step { position: absolute; left: var(--gutter); right: var(--gutter); opacity: 0; visibility: hidden; }
.story__step--1 { bottom: 14%; max-width: 640px; }
.story__kicker { font-size: 0.85rem; color: var(--muted); margin-bottom: 14px; }
.story__h { font-weight: 300; font-size: clamp(1.7rem, 3vw, 2.8rem); line-height: 1.12; letter-spacing: -0.02em; }
.story__step--2 { inset: 0; left: 50%; right: auto; transform: translateX(-50%); width: min(1180px, 100% - 2 * var(--gutter)); text-align: center; }
.story__step--2 .story__kicker { position: absolute; top: 11%; left: 0; right: 0; margin: 0; }
.story__kicker--h { font-weight: 300; font-size: clamp(1.6rem, 3vw, 2.8rem); line-height: 1.1; letter-spacing: -0.02em; color: var(--text); }
.story__dirs { position: absolute; top: 64%; left: 0; right: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.story__dir { pointer-events: auto; display: grid; gap: 6px; justify-items: center; color: var(--text); text-decoration: none; padding: 10px; border-radius: 12px; transition: transform 0.4s var(--ease); }
.story__dir strong { font-weight: 500; font-size: clamp(1.1rem, 1.6vw, 1.5rem); letter-spacing: -0.01em; transition: color 0.3s; }
.story__dir span { color: var(--text-2); font-size: 0.92rem; max-width: 28ch; }
.story__dir:hover { transform: translateY(-3px); }
.story__dir:hover strong { color: var(--accent); }
.story__nav { position: absolute; right: calc(var(--gutter) - 4px); top: 50%; transform: translateY(-50%); display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.story__nav li { width: 6px; height: 6px; border-radius: 3px; background: var(--line-strong); transition: height 0.45s var(--ease), background 0.4s; }
.story__nav li.is-on { height: 26px; background: var(--accent); }
.hero__scroll { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 0.76rem; color: var(--muted); }
.hero__scroll i { display: block; width: 1px; height: 34px; background: var(--text); opacity: 0.55; animation: scrollline 2s var(--ease) infinite; }
@keyframes scrollline { 0% { transform: scaleY(0); transform-origin: top; } 45% { transform: scaleY(1); transform-origin: top; } 55% { transform: scaleY(1); transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.intro { position: relative; z-index: 1; padding-block: clamp(48px, 8vh, 96px) 8px; }
.intro__inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 80px); align-items: start; }
.intro .hero__sub { margin-bottom: 0; }
@media (max-width: 1024px) {
  .hero { align-items: flex-start; }
  .hero__inner { grid-template-columns: 1fr; grid-template-areas: "content" "visual" "actions"; row-gap: 14px; align-content: start; padding-block: 8px 0; }
  .hero__content { align-self: start; }
  .hero__name { margin-bottom: 14px; }
  .hero__visual { width: 100%; aspect-ratio: auto; height: clamp(200px, 36svh, 440px); margin-inline: 0; }
  .hero__fallback { left: 50%; right: auto; width: auto; height: 100%; max-width: 100%; aspect-ratio: 4 / 5; transform: translateX(-50%); }
  .hero__actions { margin-top: 0; }
  .intro__inner { grid-template-columns: 1fr; gap: 28px; }
  .story__step--1 { bottom: 11%; }
}
@media (max-width: 768px) {
  .hero__actions .btn--ghost { display: none; }
  .hero__scroll { display: none; }
  .story__nav { right: 10px; }
  .story__step--2 { inset: 0; left: 0; transform: none; width: auto; text-align: left; }
  .story__step--2 .story__kicker { top: 10%; left: var(--gutter); right: var(--gutter); text-align: left; }
  .story__dirs { display: contents; }
  .story__dir { position: absolute; left: 50%; right: var(--gutter); justify-items: start; padding: 0; }
  .story__dir:nth-child(1) { top: calc(30% - 26px); }
  .story__dir:nth-child(2) { top: calc(52% - 26px); }
  .story__dir:nth-child(3) { top: calc(74% - 26px); }
  .story__dir span { font-size: 0.86rem; }
  .story__dir strong { font-size: 1.2rem; }
}

/* ---------- Якоря фигур из частиц в разделах ---------- */
.emblem { position: relative; pointer-events: none; }
.section__head--emblem { max-width: none; display: grid; grid-template-columns: 1fr minmax(240px, 32%); gap: clamp(24px, 4vw, 72px); align-items: center; }
.section__head--emblem .section__desc { margin-top: 20px; }
.section__head--wide { grid-template-columns: 1fr; gap: 28px; }
.section__head--wide h2 { max-width: 860px; }
.emblem--map { height: clamp(240px, 40vw, 560px); }
.emblem__pin { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--accent); border: 2px solid var(--surface); box-shadow: 0 0 0 1px rgba(30, 64, 255, 0.45), 0 4px 10px -4px rgba(11, 11, 15, 0.5); opacity: 0; transition: opacity 0.6s var(--ease); }
.emblem.is-on .emblem__pin { opacity: 1; }
.emblem__lines { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; opacity: 0; transition: opacity 0.6s var(--ease); }
.emblem.is-on .emblem__lines { opacity: 1; }
.emblem__lines line { stroke: rgba(30, 64, 255, 0.55); stroke-width: 1; }
.emblem--map .emblem__label { color: var(--text); }
.emblem--path .emblem__label, .emblem--donut .emblem__label:not(.emblem__label--num) { background: rgba(246, 246, 243, 0.92); padding: 3px 8px; border-radius: 6px; color: var(--text); }
.emblem__label--city b { display: block; font-weight: 500; }
.emblem__label--city small { display: block; font-size: 0.74rem; line-height: 1.3; color: var(--text-2); white-space: normal; max-width: 210px; margin-top: 2px; }
.emblem__label--right.emblem__label--city { text-align: right; }
.emblem__label--left.emblem__label--city { text-align: left; }
.emblem--map .emblem__label--title { color: var(--muted); }
.emblem--path, .emblem--bars { height: clamp(220px, 28vh, 300px); }
.emblem--hall { height: clamp(220px, 28vh, 300px); }
.events__head .emblem { flex: 0 0 min(380px, 34%); height: 260px; }
.events__head { align-items: flex-end; margin-bottom: 20px; }
.emblem__label { position: absolute; transform: translate(-50%, -50%); font-size: 0.8rem; line-height: 1.2; color: var(--text-2); white-space: nowrap; opacity: 0; transition: opacity 0.6s var(--ease); pointer-events: none; }
.emblem.is-on .emblem__label { opacity: 1; }
.emblem__label--left { transform: translate(0, -50%); }
.emblem__label--right { transform: translate(-100%, -50%); }
.emblem__label--strong { font-weight: 500; color: var(--text); }
.emblem__label--num { font-size: clamp(1.6rem, 2.4vw, 2.3rem); font-weight: 400; letter-spacing: -0.02em; color: var(--text); }
.emblem__label--title { font-size: 0.78rem; color: var(--muted); }
.emblem__label--wrap { white-space: normal; max-width: 9ch; text-align: center; }
.emblem--inline { height: 320px; max-width: 320px; margin: 36px 0 0; }
.no-field .emblem { display: none; }
@media (max-width: 1024px) { .section__head--emblem, .section__head--wide { grid-template-columns: 1fr; gap: 8px; } .section__head--emblem .emblem { order: -1; height: 200px; } .events__head .emblem { flex: none; width: 100%; height: 220px; order: -1; } .emblem__label { font-size: 0.72rem; } }
@media (max-width: 768px) { .emblem--inline { height: 220px; } .emblem--map .emblem__label { font-size: 0.62rem; } .emblem__label--city small { display: none; } .emblem__pin { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-width: 1.5px; } .emblem--donut .emblem__label:not(.emblem__label--num) { font-size: 0.68rem; white-space: normal; max-width: 10ch; } .emblem--donut .emblem__label--left { text-align: left; } .emblem--donut .emblem__label--right { text-align: right; } }

/* ---------- Демо «рутина → результат» на стадии нейросети ---------- */
.flow { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.flow__in, .flow__out { position: absolute; left: 0; top: 0; white-space: nowrap; font-size: 0.92rem; line-height: 1; will-change: transform, opacity; opacity: 0; }
.flow__in { color: var(--text); font-weight: 500; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); box-shadow: 0 10px 30px -18px rgba(11, 11, 15, 0.4); }
.flow__out { color: var(--accent); font-weight: 500; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid rgba(30, 64, 255, 0.35); box-shadow: 0 10px 30px -18px rgba(11, 11, 15, 0.4); }
.flow__out::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 1px; }
@media (max-width: 768px) { .flow__in, .flow__out { font-size: 0.82rem; } .flow__in, .flow__out { padding: 6px 11px; } }

/* ---------- Лёгкий фон вместо фоновых частиц: точечная сетка + медленные световые пятна ---------- */
.bgfx { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background-image: radial-gradient(rgba(11, 11, 15, 0.085) 1px, transparent 1.3px); background-size: 28px 28px; }
.bgfx::before, .bgfx::after, .bgfx i { display: none; }
.bgfx::before { left: -25vmax; top: -20vmax; animation: bgdrift1 28s ease-in-out infinite alternate; }
.bgfx::after { right: -30vmax; bottom: -35vmax; animation: bgdrift2 34s ease-in-out infinite alternate; }
.bgfx i { left: 30%; top: 40%; width: 45vmax; height: 45vmax; background: radial-gradient(circle, rgba(11, 11, 15, 0.04), rgba(11, 11, 15, 0) 60%); animation: bgdrift3 40s ease-in-out infinite alternate; }
@keyframes bgdrift1 { to { transform: translate(35vw, 45vh) scale(1.15); } }
@keyframes bgdrift2 { to { transform: translate(-40vw, -35vh) scale(0.9); } }
@keyframes bgdrift3 { to { transform: translate(-25vw, -30vh) scale(1.2); } }

/* ---------- Карта (SVG) ---------- */
#ruMap.emblem--map { height: auto; }
#ruMap svg { display: block; width: 100%; height: 100%; }
.map-land { fill: url(#ruDots); }
.map-edge { fill: none; stroke: rgba(11, 11, 15, 0.14); stroke-width: 0.8; vector-effect: non-scaling-stroke; }
.emblem__pin::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid var(--accent); opacity: 0; }
.emblem.is-on .emblem__pin::after { animation: pinpulse 2.4s var(--ease) infinite; }
@keyframes pinpulse { 0% { transform: scale(0.6); opacity: 0.7; } 100% { transform: scale(2.2); opacity: 0; } }

/* ---------- Этапы наставничества ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 12px; }
.steps__track { position: absolute; left: calc(100% / 6); right: calc(100% / 6); top: 19px; height: 2px; background: var(--line-strong); border-radius: 2px; overflow: hidden; }
.steps__track i { position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 1.6s var(--ease) 0.2s; }
.steps.is-on .steps__track i { transform: scaleX(1); }
.steps__item { position: relative; display: grid; justify-items: center; gap: 6px; text-align: center; }
.steps__dot { width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-strong); margin-bottom: 10px; transition: background 0.4s, border-color 0.4s, transform 0.5s var(--ease); }
.steps.is-on .steps__dot { border-color: var(--accent); }
.steps.is-on .steps__item:nth-child(2) .steps__dot { transition-delay: 0.2s; }
.steps.is-on .steps__item:nth-child(3) .steps__dot { transition-delay: 0.9s; }
.steps.is-on .steps__item:nth-child(4) .steps__dot { transition-delay: 1.6s; background: var(--accent); transform: scale(1.25); }
.steps__item b { font-weight: 500; font-size: 1.02rem; line-height: 1.2; }
.steps__item small { color: var(--text-2); font-size: 0.86rem; line-height: 1.35; max-width: 18ch; }

/* ---------- Площадки по типам ---------- */
.venues-donut { display: flex; align-items: center; gap: 24px; }
.venues-donut__ring { position: relative; width: 150px; flex: none; }
.venues-donut__ring svg { display: block; width: 100%; transform: rotate(-90deg); }
.venues-donut__ring circle { fill: none; stroke-width: 14; stroke-linecap: butt; stroke-dasharray: 0 400; stroke-dashoffset: var(--off); transition: stroke-dasharray 1.4s var(--ease); }
.venues-donut.is-on circle { stroke-dasharray: var(--len) 400; }
.venues-donut.is-on circle:nth-child(2) { transition-delay: 0.25s; }
.venues-donut.is-on circle:nth-child(3) { transition-delay: 0.5s; }
.venues-donut__ring strong { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font-weight: 400; font-size: 2rem; letter-spacing: -0.02em; line-height: 1; }
.venues-donut__ring strong small { display: block; font-size: 0.78rem; color: var(--text-2); letter-spacing: 0; margin-top: 4px; }
.venues-donut__legend { display: grid; gap: 10px; min-width: 0; }
.venues-donut__legend li { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--text-2); }
.venues-donut__legend i { width: 10px; height: 10px; border-radius: 3px; }
.venues-donut__legend b { font-weight: 500; color: var(--text); }
.events__head .venues-donut { flex: 0 1 auto; }
@media (max-width: 1024px) {
  .events__head .venues-donut { order: -1; }
}
@media (max-width: 768px) {
  .steps { gap: 8px; }
  .steps__item small { font-size: 0.76rem; }
  .venues-donut__ring { width: 120px; }
}

.ev:hover::after { animation: ring 18s linear infinite; }

/* слои хиро: фото под частицами, текст и подписи над ними */
.hero__content, .hero__actions { position: relative; z-index: 3; }
.hero__visual { z-index: 1; }

/* ---------- Цены на карточках: при наведении описание сменяется тарифами в рублях ---------- */
.tcard__swap { display: grid; margin-top: 6px; }
.tcard__swap > * { grid-area: 1 / 1; }
.tcard__swap .tcard__desc { margin-top: 0; transition: opacity 0.35s var(--ease), transform 0.45s var(--ease); }
.tcard__price { display: grid; gap: 8px; align-content: start; opacity: 0; transform: translateY(8px); transition: opacity 0.35s var(--ease), transform 0.45s var(--ease); pointer-events: none; }
.tcard__from { font-size: 1.15rem; font-weight: 500; color: var(--accent); letter-spacing: -0.01em; }
.tcard__from small { font-size: 0.8rem; font-weight: 400; color: var(--text-2); }
.tcard__tiers { display: grid; gap: 4px; }
.tcard__tiers li { display: flex; justify-content: space-between; gap: 12px; font-size: 0.86rem; color: var(--text-2); border-top: 1px solid var(--line); padding-top: 4px; }
.tcard__tiers b { font-weight: 500; color: var(--text); white-space: nowrap; }
@media (hover: hover) {
  .tcard:hover .tcard__swap .tcard__desc, .tcard:focus-visible .tcard__swap .tcard__desc { opacity: 0; transform: translateY(-8px); }
  .tcard:hover .tcard__price, .tcard:focus-visible .tcard__price { opacity: 1; transform: none; }
}
/* на сенсорных экранах наведения нет: цена «от» видна сразу под описанием */
@media (hover: none) {
  .tcard__swap > * { grid-area: auto; }
  .tcard__price { opacity: 1; transform: none; margin-top: 8px; }
  .tcard__tiers { display: none; }
}
@media (max-width: 768px) { .tcard__swap .tcard__desc { display: none; } .tcard__from { font-size: 1rem; } }
.prices-note { margin-top: 14px; font-size: 0.85rem; color: var(--muted); }

.events__nav { align-self: flex-end; }
/* 3) отступ между заголовком и описанием в шапках с обёрткой */
.section__head > div > .section__desc { margin-top: 20px; }
.section__head--plain { align-items: end; }
.tcard__note { font-size: 0.74rem; color: var(--muted); line-height: 1.3; }
@media (hover: none) { .tcard__note { display: none; } }

/* ---------- Программа интенсива ---------- */
.program { position: relative; display: grid; gap: 22px; padding-left: 30px; }
.program__line { position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.program__line i { position: absolute; inset: 0; background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform 1.8s var(--ease) 0.2s; }
.program.is-on .program__line i { transform: scaleY(1); }
.program__item { position: relative; display: grid; gap: 4px; }
.program__dot { position: absolute; left: -30px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-strong); transition: border-color 0.4s, background 0.4s; }
.program.is-on .program__dot { border-color: var(--accent); }
.program.is-on .program__item:nth-of-type(2) .program__dot { transition-delay: 0.5s; }
.program.is-on .program__item:nth-of-type(3) .program__dot { transition-delay: 1s; }
.program.is-on .program__item:nth-of-type(4) .program__dot { transition-delay: 1.5s; background: var(--accent); }
.program__when { font-size: 0.78rem; color: var(--muted); }
.program__item b { font-weight: 500; font-size: 1.05rem; line-height: 1.25; }
.program__item p { color: var(--text-2); font-size: 0.93rem; line-height: 1.5; max-width: 62ch; }
.program__out { justify-self: start; margin-top: 4px; padding: 5px 10px; border-radius: 999px; background: rgba(30, 64, 255, 0.07); color: var(--accent); font-size: 0.8rem; font-weight: 500; }

/* ---------- Выравнивание шапок: описание занимает правую колонку до края контейнера ---------- */
.section__head--row .section__desc { max-width: none; }
.events__head { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(24px, 5vw, 96px); align-items: end; }
.events__head .section__desc { padding-bottom: 0.35em; }
.events__side { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; min-width: 0; }
.events__head .venues-donut { flex: 0 1 auto; align-items: center; }
.events__side .events__nav { align-self: flex-end; flex: none; }
@media (max-width: 1024px) {
  .events__head { grid-template-columns: 1fr; gap: 24px; }
  .events__side { display: contents; }
  .events__head .venues-donut { order: -1; }
  .events__side .events__nav { order: 2; justify-self: end; }
}

/* ---------- Витрина: темы и даты выступлений видны только в окне подробностей ---------- */
.ev .ev__more { display: none; }
.evd .ev__more { display: grid; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.evd .ev__more li { display: grid; gap: 2px; }
.evd .ev__more b { font-weight: 500; font-size: 0.98rem; line-height: 1.35; }
.evd .ev__more span { font-size: 0.86rem; color: var(--text-2); }
.evd { max-height: calc(100svh - 32px); overflow-y: auto; }
.evd__cta { margin-top: 28px; }

/* ---------- Карта: номера городов и расшифровка под картой ---------- */
.map-num { position: absolute; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: 0.74rem; font-weight: 500; line-height: 1; box-shadow: 0 0 0 3px var(--bg), 0 6px 14px -6px rgba(11, 11, 15, 0.5); opacity: 0; transition: opacity 0.6s var(--ease); z-index: 2; }
.emblem.is-on .map-num { opacity: 1; }
.map-tie { position: absolute; height: 1px; background: var(--accent); transform-origin: 0 50%; opacity: 0; transition: opacity 0.6s var(--ease); }
.emblem.is-on .map-tie { opacity: 0.7; }
#ruMap .emblem__pin { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-width: 1.5px; }
#ruMap .emblem__pin::after { display: none; }
.map-legend { margin-top: 28px; }
.map-legend__title { font-size: 0.85rem; color: var(--muted); margin-bottom: 14px; }
.map-legend ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 28px; }
.map-legend li { display: grid; grid-template-columns: 24px 1fr; column-gap: 10px; row-gap: 2px; align-items: start; }
.map-legend li i { grid-row: span 2; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-style: normal; font-size: 0.74rem; font-weight: 500; }
.map-legend li b { font-weight: 500; line-height: 24px; }
.map-legend li span { font-size: 0.82rem; line-height: 1.4; color: var(--text-2); }
@media (max-width: 1024px) { .map-legend ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .map-legend ol { grid-template-columns: 1fr; } #ruMap { --mk: 0.75; } .map-num { width: 16px; height: 16px; margin: -8px 0 0 -8px; font-size: 0.58rem; box-shadow: 0 0 0 2px var(--bg); } #ruMap .emblem__pin { width: 5px; height: 5px; margin: -2.5px 0 0 -2.5px; border-width: 1px; } }
/* карта в конце блока «Обо мне», сразу за ней витрина выступлений */
.about__map { margin-top: clamp(56px, 7vw, 96px); }
.about__map #ruMap { width: min(100%, 980px); margin-inline: auto; }
.map-legend li { align-content: start; }
.section.about { padding-bottom: clamp(40px, 5vw, 64px); }
.section.events { padding-top: clamp(40px, 5vw, 64px); }
.venues-donut__legend span { white-space: nowrap; }
.events__side { gap: 16px; }
.events__head .venues-donut { gap: 18px; }
@media (min-width: 1025px) { .events__head .venues-donut__ring { width: 136px; } }

/* контакты: одна строка под заголовком, почты и соцсетей на сайте нет */
.contact__lead { max-width: none; }
@media (min-width: 561px) { .contact__lead { white-space: nowrap; } }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* форма заявки: способ связи кнопками, для подписки — сервис и тариф */
.form [hidden] { display: none !important; }
.via { display: grid; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.via__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.via__title { font-size: 0.95rem; color: var(--muted); }
.via__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.via__opts label { position: relative; cursor: pointer; }
.via__opts input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.via__opts span { display: block; padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 0.9rem; color: var(--text-2); transition: background 0.25s, color 0.25s, border-color 0.25s; }
.via__opts label:hover span { border-color: var(--text); color: var(--text); }
.via__opts input:checked + span { background: var(--text); border-color: var(--text); color: var(--bg); }
.via__opts input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.field select { padding-right: 26px; text-overflow: ellipsis; }
.field.is-error textarea { border-color: #FF7A6B; }
/* строки тарифов на карточке выбирают тариф в форме */
@media (hover: hover) and (min-width: 769px) {
  .tcard:hover .tcard__tiers li, .tcard:focus-visible .tcard__tiers li { pointer-events: auto; cursor: pointer; transition: color 0.2s; }
  .tcard .tcard__tiers li:hover, .tcard .tcard__tiers li:hover b { color: var(--accent); }
}

/* карточка выступления с фотографией: снимок во всю карточку, текст белым на затемнении снизу */
.ev--photo { --ink: #fff; background: #0B0B0F; }
.ev--photo::before { display: none; }
.ev--photo::after { inset: 0; width: auto; aspect-ratio: auto; border: 0; border-radius: 0; z-index: -1; animation: none !important;
  background: linear-gradient(180deg, rgba(11, 11, 15, 0.5) 0%, rgba(11, 11, 15, 0) 20%, rgba(11, 11, 15, 0) 46%, rgba(11, 11, 15, 0.74) 66%, rgba(11, 11, 15, 0.92) 100%); }
.ev--photo .ev__kind { color: #fff; }
.ev--photo h3 { font-size: 1.5rem; line-height: 1.14; text-wrap: pretty; }
.ev--photo.ev--long h3 { font-size: 1.25rem; line-height: 1.18; }
.ev--photo .ev__meta span { background: rgba(255, 255, 255, 0.2); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* Фото события в окне подробностей: лента во всю ширину окна, листается пальцем или стрелками */
.evd__close { z-index: 2; background: var(--surface); }
.evd__gallery { position: relative; margin: -36px -36px 26px; background: #0B0B0F; }
.evd__photos { display: flex; gap: 4px; height: clamp(160px, 44vw, 300px); overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; overscroll-behavior-x: contain; }
.evd__photos::-webkit-scrollbar { display: none; }
.evd__photos figure { position: relative; flex: none; height: 100%; margin: 0; scroll-snap-align: start; }
.evd__photos img { display: block; height: 100%; width: auto; max-width: none; }
.evd__photos figcaption { position: absolute; left: 10px; bottom: 10px; padding: 5px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 500; line-height: 1; color: #fff; background: rgba(11, 11, 15, 0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.evd__gallery.is-single .evd__photos figure { width: 100%; }
.evd__gallery.is-single .evd__photos img { width: 100%; object-fit: cover; object-position: 50% 30%; }
.evd__nav { position: absolute; top: 50%; width: 40px; height: 40px; margin-top: -20px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.92); color: #0B0B0F; box-shadow: 0 6px 18px -6px rgba(11, 11, 15, 0.5); transition: opacity 0.25s var(--ease); }
.evd__nav--prev { left: 12px; }
.evd__nav--next { right: 12px; }
.evd__nav .icon { width: 16px; height: 16px; }
.evd__nav:disabled { opacity: 0; pointer-events: none; }
/* Кнопка в окне подробностей не должна быть шире окна на телефоне */
@media (max-width: 560px) {
  .evd { padding: 28px 22px 24px; }
  .evd__gallery { margin: -28px -22px 22px; }
  .evd__cta { display: flex; width: 100%; padding-inline: 14px; justify-content: center; text-align: center; white-space: normal; }
}
.ev--photo h3, .ev--photo .ev__kind { text-shadow: 0 1px 14px rgba(11, 11, 15, 0.6); }
/* Длинные подписи диаграммы на телефоне переносятся, цифры остаются на экране */
@media (max-width: 560px) { .venues-donut__legend span { white-space: normal; } .venues-donut__legend { flex: 1 1 0; } }
.nw { white-space: nowrap; }
