/* Шрифты Manrope и Unbounded лежат на нашем сервере (не грузятся с Google): быстрее и без передачи адресов посетителей третьей стороне */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('/fonts/manrope-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('/fonts/manrope-latin-ext.woff2') format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('/fonts/manrope-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 300 500; font-display: swap; src: url('/fonts/unbounded-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 300 500; font-display: swap; src: url('/fonts/unbounded-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ============ Токены ============ */
:root {
  --bg: #03060b;
  --ink: #eef3fb;
  --ink-dim: rgba(226, 235, 250, .68);
  --ink-faint: rgba(226, 235, 250, .42);
  --line: rgba(130, 180, 255, .16);
  --glass: rgba(7, 13, 26, .58);
  --cyan: #6cc6ff;
  --gold: #ffb85c;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Unbounded", "Manrope", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.visually-hidden:focus {
  width: auto; height: auto; clip: auto; overflow: visible;
  top: 8px; left: 8px; z-index: 100; padding: 8px 14px;
  background: var(--ink); color: var(--bg); border-radius: 8px;
}
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* ============ Фон-холст ============ */
.bgbox {
  position: fixed; z-index: 0; pointer-events: none;
  opacity: 0; transition: opacity 1.2s ease;
  transform-origin: 0 0; will-change: transform;
}
.bgbox.ready { opacity: 1; }
#bg { display: block; width: 100%; height: 100%; }
/* Края видео плавно растворяются в фон страницы */
.bgbox::after {
  content: ""; position: absolute; inset: -1px; pointer-events: none;
  background:
    linear-gradient(to bottom, var(--bg) 0, transparent 7%, transparent 93%, var(--bg) 100%),
    linear-gradient(to right, var(--bg) 0, transparent 7%, transparent 93%, var(--bg) 100%);
}
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(3, 6, 11, .7) 100%);
}

/* ============ Шапка ============ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 56px);
  background: linear-gradient(to bottom, rgba(3, 6, 11, .8), transparent);
}
.brand {
  font-family: var(--display); font-weight: 400; font-size: 15px;
  letter-spacing: .04em; white-space: nowrap;
}
.brand span { color: var(--cyan); }
.nav { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 36px); font-size: 14px; }
.nav a:not(.btn) { color: var(--ink-dim); transition: color .25s; }
.nav a:not(.btn):hover { color: var(--ink); }

/* ============ Кнопки ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 30px; border-radius: 999px; border: 0; cursor: pointer;
  font-weight: 600; font-size: 15px; letter-spacing: .01em;
  color: #06101f;
  background: linear-gradient(135deg, #8fd6ff, #6cb4ff 55%, #b39bff);
  box-shadow: 0 0 0 1px rgba(160, 210, 255, .5) inset, 0 10px 40px -10px rgba(108, 182, 255, .7);
  transition: transform .3s var(--ease), box-shadow .3s, filter .3s;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 0 0 1px rgba(200, 230, 255, .7) inset, 0 16px 50px -8px rgba(108, 182, 255, .85); }
.btn-small { padding: 9px 20px; font-size: 13.5px; }
.btn-ghost {
  color: var(--ink); background: rgba(255, 255, 255, .04);
  box-shadow: 0 0 0 1px rgba(160, 200, 255, .35) inset;
}
.btn-ghost:hover { background: rgba(108, 182, 255, .14); box-shadow: 0 0 0 1px rgba(160, 210, 255, .7) inset; }
.btn-block { width: 100%; }

/* ============ Сцена ============ */
.stage { position: relative; z-index: 2; height: 1045vh; margin-bottom: -40vh; }
.stage-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
@supports (height: 100svh) { .stage-sticky { height: 100svh; } }

/* --- Заставка --- */
.hero { position: absolute; inset: 0; will-change: transform, opacity; }
.hero-top {
  position: absolute; left: 0; right: 0; bottom: 56vh;
  padding: 0 24px; text-align: center;
}
.hero-bottom {
  position: absolute; left: 0; right: 0; top: 62vh;
  padding: 0 24px; text-align: center;
}
.hero-eyebrow {
  font-family: var(--font); font-weight: 600; line-height: 1.4; text-shadow: none;
  font-size: clamp(11px, 1.1vw, 14px); letter-spacing: .32em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: clamp(14px, 2.4vh, 26px);
}
.hero-title {
  font-family: var(--display); font-weight: 300;
  font-size: clamp(30px, 5.3vw, 88px); line-height: 1.12; letter-spacing: -.01em;
  text-shadow: 0 0 60px rgba(108, 182, 255, .35);
}
.hero-title > .reveal-line:last-child { color: var(--gold); text-shadow: 0 0 50px rgba(255, 184, 92, .4); }
.hero-name {
  font-size: clamp(17px, 2vw, 28px); font-weight: 500; letter-spacing: .06em;
  color: var(--ink);
}

/* Построчное появление */
.reveal-line { display: block; overflow: hidden; }
.js .reveal-line > span {
  display: block; transform: translateY(110%); opacity: 0;
  transition: transform 1.1s var(--ease), opacity 1.1s var(--ease);
}
.loaded .reveal-line > span { transform: none; opacity: 1; }
.hero-eyebrow > span { transition-delay: .1s; }
.hero-title > .reveal-line:nth-child(2) > span { transition-delay: .3s; }
.hero-title > .reveal-line:nth-child(3) > span { transition-delay: .5s; }
.hero-name > span { transition-delay: .9s; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 4vh; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-faint);
  opacity: 0; transition: opacity 1s 1.6s;
}
.loaded .scroll-hint { opacity: 1; }
.scroll-hint i {
  width: 1px; height: 46px; background: linear-gradient(to bottom, var(--cyan), transparent);
  transform-origin: top; animation: hint 2.2s var(--ease) infinite;
}
@keyframes hint { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* --- Линии-сноски и точки --- */
.lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
.line {
  fill: none; stroke: var(--cyan); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0;
  filter: drop-shadow(0 0 4px currentColor);
  transition: stroke-dashoffset .3s ease, opacity .2s ease, stroke-width .2s;
}
.line.on {
  stroke-dashoffset: 0; opacity: .9;
  transition: stroke-dashoffset .7s calc(var(--k, 0) * 70ms + 150ms) var(--ease), opacity .25s calc(var(--k, 0) * 70ms + 150ms), stroke-width .2s;
}
.line.hot { stroke-width: 2.4; opacity: 1; }

.dots { position: absolute; inset: 0; z-index: 4; pointer-events: none; opacity: 0; transition: opacity .6s; }
.dots.show { opacity: 1; }
.dots.show .dot { pointer-events: auto; }
.dot {
  position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px;
  display: grid; place-items: center; padding: 0; cursor: pointer;
  border-radius: 50%; border: 1px solid color-mix(in srgb, var(--c) 70%, transparent);
  background: rgba(3, 8, 18, .55); color: var(--c);
  font-size: 11px; font-weight: 700; line-height: 1;
  transition: transform .4s var(--ease), background .3s, color .3s, box-shadow .3s, opacity .3s;
  opacity: .8;
}
.dot.hot { transform: scale(1.3); }
.dot:hover { opacity: 1; }
.dot.active {
  opacity: 1; transform: scale(1.25); background: var(--c); color: #04101f;
  box-shadow: 0 0 22px 2px color-mix(in srgb, var(--c) 70%, transparent);
}
.dot.active::after {
  content: ""; position: absolute; inset: -7px; border-radius: 50%;
  border: 1px solid var(--c); opacity: 0; animation: ping 1.8s ease-out infinite;
}
@keyframes ping { 0% { transform: scale(.7); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }

/* --- Карточки-сноски --- */
.cards { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.card {
  position: absolute; width: clamp(300px, 26vw, 440px);
  padding: 22px 24px 24px;
  background: var(--glass); border: 1px solid color-mix(in srgb, var(--c) 32%, transparent);
  border-radius: 18px;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9), 0 0 60px -30px var(--c);
  opacity: 0; visibility: hidden;
  transition: opacity .22s ease, transform .5s var(--ease), visibility 0s .22s;
  contain: layout paint;
}
.card[data-side="left"] { left: max(3vw, 24px); transform: translateX(-28px); }
.card[data-side="right"] { right: max(3vw, 24px); transform: translateX(28px); }
.card::before {
  content: ""; position: absolute; top: 18px; bottom: 18px; width: 2px; border-radius: 2px;
  background: linear-gradient(to bottom, var(--c), transparent);
}
.card[data-side="left"]::before { right: -1px; }
.card[data-side="right"]::before { left: -1px; }
.card.on { opacity: 1; visibility: visible; transform: none; transition-delay: .12s, .12s, 0s; }

.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.card-num { font-family: var(--display); font-size: 13px; font-weight: 500; color: var(--c); letter-spacing: .08em; }
.card-num i { font-style: normal; color: var(--ink-faint); }
.card-tag { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-faint); text-align: right; }
.card-title {
  font-family: var(--display); font-weight: 400; font-size: clamp(18px, 1.55vw, 24px);
  line-height: 1.25; margin-bottom: 16px;
}
.card-list { display: grid; gap: 11px; }
.card-list li {
  position: relative; padding-left: 18px;
  font-size: clamp(13.5px, .98vw, 15.5px); line-height: 1.5; color: var(--ink-dim);
}
.card-list li::before {
  content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%;
  background: var(--c); box-shadow: 0 0 10px var(--c);
}

/* --- Компьютер: все семь блоков сразу --- */
.mode-all .card {
  width: var(--cw, 360px);
  padding: 1.05em 1.25em 1.2em;
  font-size: calc(clamp(11.5px, 1.32vh, 15px) * var(--cs, 1));
  background: rgba(6, 11, 22, .86);
  -webkit-backdrop-filter: none; backdrop-filter: none;   /* семь размытий поверх видео нагружают видеокарту */
  box-shadow: 0 14px 40px -24px rgba(0, 0, 0, .9);
  border-radius: 1.2em;
}
.mode-all .card.on {
  pointer-events: auto;
  transition-delay: calc(var(--k) * 70ms), calc(var(--k) * 70ms), 0s;
}
.mode-all .card-head { margin-bottom: .45em; }
.mode-all .card-num { font-size: .9em; }
.mode-all .card-tag { font-size: .72em; }
.mode-all .card-title { font-size: 1.32em; margin-bottom: .75em; }
.mode-all .card-list { gap: .6em; }
.mode-all .card-list li { font-size: 1em; line-height: 1.42; padding-left: 1.25em; opacity: 0; transform: translateY(8px); transition: opacity .15s, transform .15s; }
.mode-all .card-list li::before { width: .42em; height: .42em; top: .6em; }
.mode-all .card.on .card-list li {
  opacity: 1; transform: none;
  transition: opacity .45s ease, transform .55s var(--ease);
  transition-delay: calc(var(--k) * 70ms + 200ms + var(--n) * 90ms);
}
/* Слова внутри списка здесь не анимируются по отдельности: анимируется сам пункт (сотни слоёв не нужны) */
.mode-all .card-list .w { opacity: 1; transform: none; transition: none; }
.mode-all .card.on .card-list li::before { animation: none; }
.mode-all .dot { pointer-events: none; }
.mode-all .dot.active { transform: scale(1.1); }
.mode-all .dot.active::after { display: none; }
.mode-all .dot.hot { transform: scale(1.35); }

/* Слова, появляющиеся по очереди */
.w {
  display: inline-block; opacity: 0; transform: translateY(.5em);
  transition: opacity .15s, transform .15s;
}
.card.on .w {
  opacity: 1; transform: none;
  transition: opacity .4s ease, transform .5s var(--ease);
  transition-delay: calc(var(--d) * 1ms);
}
.card.on .card-list li::before { animation: bullet .45s var(--ease) both; animation-delay: calc(var(--b) * 1ms); }
@keyframes bullet { from { transform: scale(0); opacity: 0; } to { transform: none; opacity: 1; } }

/* ============ Секции ============ */
.section { position: relative; z-index: 2; padding: clamp(80px, 13vh, 150px) 0; }
#about { padding-top: 8vh; }
.wrap { width: min(1180px, 100% - clamp(40px, 8vw, 112px)); margin: 0 auto; }

.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .3em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 18px;
}
h2 {
  font-family: var(--display); font-weight: 300; letter-spacing: -.01em;
  font-size: clamp(26px, 3.3vw, 46px); line-height: 1.15;
}
.section-head { max-width: 640px; margin-bottom: clamp(36px, 6vh, 64px); }
.section-head h2 { margin-bottom: 16px; }
.section-head p:not(.eyebrow) { color: var(--ink-dim); font-size: 17px; }

/* Появление блоков */
.js .reveal { opacity: 0; transform: translateY(34px); filter: blur(6px);
  transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }
.about-body > .reveal:nth-child(2) { transition-delay: .08s; }
.about-body > .reveal:nth-child(3) { transition-delay: .16s; }
.about-body > .reveal:nth-child(4) { transition-delay: .24s; }
.about-body > .reveal:nth-child(5) { transition-delay: .32s; }
.about-body > .reveal:nth-child(6) { transition-delay: .4s; }
.price-grid > .reveal:nth-child(2) { transition-delay: .15s; }

/* --- Обо мне --- */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.photo-frame {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 26px;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(108, 182, 255, .28), transparent 55%),
    radial-gradient(circle at 75% 85%, rgba(255, 184, 92, .22), transparent 55%),
    var(--glass);
  border: 1px solid var(--line);
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .9), 0 0 80px -40px var(--cyan);
}
.photo-frame::after {
  content: ""; position: absolute; inset: 12px; border-radius: 18px; pointer-events: none;
  border: 1px solid rgba(160, 210, 255, .18);
}
.photo-mono { font-family: var(--display); font-weight: 300; font-size: clamp(64px, 9vw, 130px); letter-spacing: .04em; color: rgba(160, 210, 255, .5); }
.photo-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo figcaption { margin-top: 16px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); text-align: center; }

.about-body h2 { margin-bottom: 24px; }
.about-body p:not(.eyebrow) { color: var(--ink-dim); font-size: 17px; margin-bottom: 16px; max-width: 60ch; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 32px 0 8px; }
.stats > div {
  padding: 18px 18px 16px; border-radius: 16px;
  background: var(--glass); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.stats strong { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(20px, 2.1vw, 28px); color: var(--gold); line-height: 1.2; }
.stats span { font-size: 13px; color: var(--ink-faint); }
.facts { margin-top: 22px; border-top: 1px solid var(--line); }
.facts li { display: flex; justify-content: space-between; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts li span:first-child { color: var(--ink-faint); }
.facts li span:last-child { text-align: right; }
.facts-links a { margin-left: 18px; color: var(--cyan); text-decoration: underline; text-decoration-color: rgba(108, 198, 255, .4); text-underline-offset: 4px; transition: text-decoration-color .25s; white-space: nowrap; }
.facts-links a:first-child { margin-left: 0; }
.facts-links a::after { content: " ↗"; font-size: .85em; }
.facts-links a:hover { text-decoration-color: var(--cyan); }

/* --- С чем я работаю --- */
.topics-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.topic {
  padding: clamp(20px, 2.2vw, 30px); border-radius: 20px;
  background: var(--glass); border: 1px solid var(--line);
  transition: border-color .3s, transform .3s var(--ease);
}
.topic:hover { border-color: rgba(108, 198, 255, .4); transform: translateY(-3px); }
.topic h3 { font-size: 17px; font-weight: 600; line-height: 1.3; margin-bottom: 10px; color: var(--ink); }
.topic p { font-size: 14.5px; line-height: 1.6; color: var(--ink-dim); }

/* --- Стоимость --- */
.topics-grid > .reveal:nth-child(3n+2) { transition-delay: .08s; }
.topics-grid > .reveal:nth-child(3n) { transition-delay: .16s; }
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); max-width: 960px; }
.price-card {
  position: relative; display: flex; flex-direction: column;
  padding: clamp(28px, 3.2vw, 44px); border-radius: 24px;
  background: var(--glass); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.price-card.featured {
  border-color: rgba(255, 184, 92, .45);
  background: linear-gradient(160deg, rgba(255, 184, 92, .1), var(--glass) 60%);
  box-shadow: 0 0 90px -40px var(--gold);
}
.badge {
  position: absolute; top: -13px; left: 28px; padding: 5px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 700; letter-spacing: .04em; color: #1a1002;
  background: linear-gradient(135deg, #ffd58f, var(--gold));
}
.price-card h3 { font-size: 18px; font-weight: 600; color: var(--ink-dim); margin-bottom: 18px; }
.price-value { font-family: var(--display); font-weight: 300; font-size: clamp(38px, 4.4vw, 60px); line-height: 1.1; }
.featured .price-value { color: var(--gold); }
.price-note { color: var(--ink-faint); font-size: 14px; margin: 8px 0 26px; }
.price-card ul { display: grid; gap: 12px; margin-bottom: 32px; flex: 1; }
.price-card li { position: relative; padding-left: 26px; color: var(--ink-dim); font-size: 15px; }
.price-card li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 12px; height: 7px;
  border-left: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan); transform: rotate(-45deg);
}
.featured li::before { border-color: var(--gold); }

/* --- Заявка --- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(36px, 6vw, 96px); align-items: start; }
.contact-info h2 { margin-bottom: 22px; }
.contact-info > p:not(.eyebrow) { color: var(--ink-dim); font-size: 17px; max-width: 46ch; }
.contact-list { margin-top: 36px; border-top: 1px solid var(--line); max-width: 460px; }
.contact-list li { display: flex; justify-content: space-between; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.contact-list li > span { color: var(--ink-faint); }
.contact-list a { color: var(--cyan); }
.contact-list a:hover { text-decoration: underline; }
.contact-list b { font-weight: 500; text-align: right; }

.form {
  padding: clamp(26px, 3vw, 40px); border-radius: 24px;
  background: var(--glass); border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 40px 100px -50px rgba(0, 0, 0, .9), 0 0 80px -50px var(--cyan);
}
.field { margin-bottom: 18px; }
.field label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; letter-spacing: .06em; color: var(--ink-dim); }
.field input {
  width: 100%; padding: 15px 18px; border-radius: 14px;
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(160, 200, 255, .2);
  outline: none; transition: border-color .25s, background .25s, box-shadow .25s;
}
.field input::placeholder { color: var(--ink-faint); }
.field input:focus { border-color: var(--cyan); background: rgba(108, 182, 255, .07); box-shadow: 0 0 0 4px rgba(108, 182, 255, .12); }
.field input.invalid { border-color: #ff7a7a; }
.consent { display: flex; gap: 12px; align-items: flex-start; margin: 22px 0 24px; font-size: 13px; color: var(--ink-faint); cursor: pointer; }
.consent input { flex: none; width: 18px; height: 18px; margin-top: 2px; accent-color: #6cb4ff; }
.consent a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn.loading { opacity: .65; cursor: progress; }
.btn:disabled { cursor: not-allowed; }
.form-status { min-height: 1.5em; margin-top: 16px; font-size: 14px; color: var(--ink-dim); text-align: center; }
.form-status.error { color: #ff8f8f; }

/* ============ Подвал ============ */
.site-footer {
  position: relative; z-index: 2; margin-top: 40px; padding: 64px 0 36px;
  background: linear-gradient(to bottom, transparent, rgba(3, 6, 11, .92) 30%);
  border-top: 1px solid var(--line);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 40px; }
.footer-brand p { margin-top: 14px; max-width: 34ch; color: var(--ink-faint); font-size: 14px; }
.footer-col h3 { font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; margin-bottom: 16px; }
.footer-col a { display: block; margin-bottom: 10px; font-size: 15px; color: var(--ink-dim); transition: color .25s; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap;
  padding-top: 26px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--ink-faint);
}
.legal { display: flex; gap: 8px 24px; flex-wrap: wrap; }
.legal a:hover { color: var(--ink); text-decoration: underline; }

/* ============ Компактная раскладка (телефоны, планшеты) ============ */
/* Режим «по очереди» (телефон, узкое окно, или когда блоки не помещаются): его выбирает js/main.js */
.mode-queue .lines { display: none; }
.mode-queue .card {
  left: 12px !important; right: 12px !important; width: auto; max-width: 620px; margin: 0 auto;
  bottom: max(12px, env(safe-area-inset-bottom)); top: auto !important;
  padding: 16px 18px 18px; border-radius: 16px;
  transform: translateY(24px) !important;
  /* Без размытия фона и больших теней: они тормозят прокрутку */
  box-shadow: none;
  -webkit-backdrop-filter: none; backdrop-filter: none;
  background: rgba(6, 11, 22, .9);
}
.mode-queue .card.on { transform: none !important; }
.mode-queue .card::before { display: none; }
.mode-queue .card-head { margin-bottom: 4px; }
.mode-queue .card-title { font-size: 17px; margin-bottom: 10px; }
.mode-queue .card-list { gap: 7px; }
.mode-queue .card-list li { font-size: 13px; line-height: 1.42; padding-left: 15px; }
.mode-queue .card-list li::before { width: 5px; height: 5px; }
.stage.mode-queue { margin-bottom: -58vh; }

@media (max-width: 860px) {
  .topics-grid { grid-template-columns: 1fr 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .photo { max-width: 340px; margin: 0 auto; }
  .price-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .stats { gap: 10px; }
  .stats > div { padding: 14px 12px; }
  .nav a:not(.btn) { display: none; }
  .hero-top { bottom: 54vh; }
  .hero-bottom { top: 60vh; }
}
@media (max-width: 480px) {
  .topics-grid { grid-template-columns: 1fr; }
  .facts li { flex-direction: column; gap: 4px; }
  .facts li span:last-child { text-align: left; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-line > span, .w { transition: none !important; opacity: 1 !important; transform: none !important; filter: none !important; }
  .scroll-hint i, .dot.active::after { animation: none; }
}
