/* u.чердак — точка из названия как главный знак.
   Порядок: шрифты → токены → основа → навигация → первый экран → разделы → интерактив → печать. */

@font-face { font-family: "Geologica"; font-weight: 100 900; font-display: swap;
  src: url(fonts/geologica-cyrillic-wght-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Geologica"; font-weight: 100 900; font-display: swap;
  src: url(fonts/geologica-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Golos Text"; font-weight: 400 900; font-display: swap;
  src: url(fonts/golos-text-cyrillic-wght-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Golos Text"; font-weight: 400 900; font-display: swap;
  src: url(fonts/golos-text-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "JetBrains Mono"; font-weight: 100 800; font-display: swap;
  src: url(fonts/jetbrains-mono-cyrillic-wght-normal.woff2) format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "JetBrains Mono"; font-weight: 100 800; font-display: swap;
  src: url(fonts/jetbrains-mono-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+2713, U+2714, U+221E, U+25CF, U+2318, U+FEFF, U+FFFD; }

/* ── Токены ── */
:root {
  --bg: #f3f4f6;
  --bg-2: #e8eaef;
  --card: #ffffff;
  --card-2: #f5f6f8;
  --ink: #0b0c10;
  --ink-2: #262a33;
  --muted: #5e6472;
  --faint: #6a7080;
  --line: rgba(11, 12, 16, 0.1);
  --line-2: rgba(11, 12, 16, 0.06);
  --dot: #8398ff;
  --dot-deep: #4a5fe0;
  --accent: #4a5fe0;
  --accent-bg: #eef0ff;
  --glass: rgba(255, 255, 255, 0.72);
  --nav-bg: rgba(243, 244, 246, 0.9);
  --night: #0b0c10;
  --shadow: 0 24px 48px -32px rgba(11, 12, 16, 0.35);
  --grain: 0.05;
  --dot-fill: radial-gradient(circle at 32% 28%, #c9d1ff 0%, #8398ff 38%, #5a6be8 72%, #3f4fcc 100%);
  --display: "Geologica", "Golos Text", system-ui, sans-serif;
  --text: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --pad: clamp(20px, 5vw, 80px);
  --wrap: max(var(--pad), calc((100vw - 1320px) / 2));
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.7, 0, 0.2, 1);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #07080b;
  --bg-2: #11131a;
  --card: #0e1015;
  --card-2: #151821;
  --ink: #eef0f6;
  --ink-2: #c8ccd7;
  --muted: #9198a9;
  --faint: #7a8294;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.055);
  --accent: #a3b1ff;
  --accent-bg: rgba(131, 152, 255, 0.14);
  --glass: rgba(18, 20, 27, 0.66);
  --nav-bg: rgba(7, 8, 11, 0.72);
  --night: #0c0e13;
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9);
  --grain: 0.07;
  color-scheme: dark;
}

/* ── Основа ── */
* { box-sizing: border-box; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; scrollbar-color: var(--faint) var(--bg); }
body { margin: 0; color: var(--ink); font-family: var(--text); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: clip; text-rendering: optimizeLegibility; }
h1, h2, h3, p, ul, ol, dl, dd, figure, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img, svg, canvas { display: block; }
button { font: inherit; color: inherit; }
code, kbd, pre { font-family: var(--mono); }
::selection { background: var(--dot); color: #fff; }
:focus-visible { outline: 2px solid var(--dot-deep); outline-offset: 3px; border-radius: 8px; }
[data-theme="dark"] :focus-visible { outline-color: var(--dot); }
.skip { position: fixed; top: -60px; left: 12px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--bg); text-decoration: none; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }

/* зерно поверх всего — как у печати на хорошей бумаге */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 98; pointer-events: none; opacity: var(--grain);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5  0 0 0 0 .5  0 0 0 0 .5  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* точка в названии */
.dot {
  display: inline-block; width: 0.2em; height: 0.2em; margin: 0 0.04em 0 0.05em; border-radius: 50%;
  background: var(--dot-fill); vertical-align: baseline; transform: translateY(0.01em);
}

.linkish {
  border: 0; background: none; padding: 4px 0; cursor: pointer; color: inherit; font: inherit;
  text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 1px; text-underline-offset: 4px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.linkish:hover { color: var(--ink); text-decoration-color: currentColor; }

/* полоса прочтения */
.progress {
  position: fixed; inset: 0 0 auto; z-index: 60; height: 2px; transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, #c9d1ff, #8398ff 40%, #4a5fe0); pointer-events: none;
}
@supports (animation-timeline: scroll()) {
  .progress { animation: progress linear both; animation-timeline: scroll(root); }
  @keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
}

/* ── Навигация ── */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; gap: 24px;
  padding: calc(env(safe-area-inset-top) + 14px) var(--wrap) 14px; transition: background-color 0.3s, box-shadow 0.3s;
}
html.no-js .nav, .nav.is-scrolled { background: var(--nav-bg); -webkit-backdrop-filter: saturate(1.5) blur(16px); backdrop-filter: saturate(1.5) blur(16px); box-shadow: 0 1px 0 var(--line); }
.logo { flex: none; white-space: nowrap; font-family: var(--display); font-weight: 650; font-size: 21px; letter-spacing: -0.035em; text-decoration: none; }
.logo:hover .dot { animation: hop 0.6s var(--ease); }
@keyframes hop { 40% { transform: translateY(-0.28em) scale(1.15); } }
.nav-links {
  position: relative; margin-left: auto; display: flex; gap: 2px; padding: 4px; border-radius: 999px;
  background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.nav-links a { position: relative; z-index: 1; padding: 6px 13px; border-radius: 999px; font-size: 14.5px; color: var(--ink-2); text-decoration: none; transition: color 0.2s; }
.nav-links a:hover, .nav-links a[aria-current="true"] { color: var(--ink); }
.nav-pill {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: var(--pw, 0px); border-radius: 999px; opacity: var(--po, 0);
  transform: translateX(var(--px, 0px)); background: var(--card); box-shadow: 0 0 0 1px var(--line), 0 8px 18px -12px rgba(11, 12, 16, 0.4);
  transition: transform 0.5s var(--ease), width 0.5s var(--ease), opacity 0.3s;
}
.nav-tools { display: flex; gap: 8px; }
.tool {
  height: 40px; min-width: 40px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 8px 0 12px;
  border: 0; border-radius: 999px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink);
  font-size: 14px; font-weight: 500; cursor: pointer; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background-color 0.2s, box-shadow 0.2s, transform 0.25s var(--ease);
}
.tool:hover { background: var(--card); }
.tool:active { transform: scale(0.95); }
.tool svg { width: 18px; height: 18px; flex: none; }
.tool-theme { padding: 0; width: 40px; overflow: hidden; }
.tool-theme svg { transition: transform 0.6s var(--ease), opacity 0.3s; }
.tool-theme .i-sun, [data-theme="dark"] .tool-theme .i-moon { position: absolute; opacity: 0; transform: rotate(-90deg) scale(0.5); }
[data-theme="dark"] .tool-theme .i-sun { position: static; opacity: 1; transform: none; }
.tool-theme { position: relative; }
@media (max-width: 640px) {
  .nav { gap: 12px; }
  .nav-links { gap: 0; }
  .nav-links a { padding: 7px 10px; font-size: 14px; }
  .nav-links a:first-child { display: none; }
  .nav-links a[href="#contact"] { display: none; }
}
@media (max-width: 360px) { .nav-links a { padding: 7px 7px; font-size: 13.5px; } }

/* ── Первый экран ── */
.hero {
  position: relative; min-height: min(100svh, 980px); display: grid; grid-template-rows: 1fr auto; align-items: center;
  padding: 120px var(--wrap) 36px; isolation: isolate; overflow-x: clip;
}
.hero-dot {
  --size: min(60vw, 780px);
  position: absolute; z-index: -1; right: calc(var(--wrap) - min(11vw, 150px)); top: 50%;
  width: var(--size); aspect-ratio: 1; border-radius: 50%; margin-top: calc(-0.52 * var(--size));
  background: var(--dot-fill);
  transform: translate3d(var(--mx, 0px), calc(var(--my, 0px) + var(--sy, 0px)), 0);
}
.hero-dot::before {
  content: ""; position: absolute; inset: -22%; z-index: -1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(104, 124, 255, 0.42), rgba(104, 124, 255, 0.14) 55%, rgba(104, 124, 255, 0) 100%);
  transform: translateY(6%);
}
[data-theme="dark"] .hero-dot::before { background: radial-gradient(closest-side, rgba(104, 124, 255, 0.55), rgba(104, 124, 255, 0.16) 55%, rgba(104, 124, 255, 0) 100%); }
.hero-dot-shine {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  background: radial-gradient(circle at var(--hx, 30%) var(--hy, 25%), rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0) 34%);
}
.orb { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; opacity: 0; transition: opacity 0.7s ease; cursor: pointer; }
.hero-dot.gl .orb { opacity: 1; }
.hero-dot.gl-on { background: none; }
.hero-dot.gl-on .hero-dot-shine { display: none; }
.hero-dot.wait { opacity: 0; }

.hero-text { max-width: 780px; }
.hero-title { font-family: var(--display); font-weight: 650; font-size: clamp(52px, 8.4vw, 134px); line-height: 0.94; letter-spacing: -0.055em; }
.brand { white-space: nowrap; }
.hero-lead { margin-top: 28px; max-width: 32ch; font-size: clamp(18px, 1.65vw, 24px); line-height: 1.42; color: var(--ink-2); }
.hero-actions { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  --tx: 0px; --ty: 0px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 26px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none; overflow: hidden; isolation: isolate; translate: var(--tx) var(--ty);
  transition: transform 0.3s var(--ease), translate 0.5s var(--ease), background-color 0.2s, box-shadow 0.3s;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.4s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(0.97); }
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; transform: translateX(-110%) skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent); transition: transform 0.7s var(--ease);
}
.btn:hover::after { transform: translateX(110%) skewX(-18deg); }
.btn-main { background: var(--ink); color: var(--bg); box-shadow: 0 14px 30px -14px rgba(11, 12, 16, 0.6); }
.btn-main:hover { box-shadow: 0 20px 40px -16px rgba(11, 12, 16, 0.7); }
[data-theme="dark"] .btn-main { box-shadow: 0 14px 40px -14px rgba(131, 152, 255, 0.55); }
.btn-ghost { background: var(--glass); box-shadow: inset 0 0 0 1px var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: var(--card); }

.hero-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: 56px; }
.hero-index { display: inline-grid; grid-template-columns: repeat(3, max-content); gap: 12px 36px; padding-top: 18px; border-top: 1px solid var(--line); }
.hero-index a {
  display: inline-flex; gap: 8px; padding-bottom: 3px; font: 500 12.5px/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-2); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.35s var(--ease), color 0.2s;
}
.hero-index a:hover, .hero-index a:focus-visible { color: var(--ink); background-size: 100% 1px; }
.hero-index a span { color: var(--faint); }
.scroll-cue { flex: none; display: grid; justify-items: center; width: 30px; height: 50px; padding-top: 9px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line); }
.scroll-cue span { width: 6px; height: 6px; border-radius: 50%; background: var(--dot-fill); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 80% { transform: translateY(22px); opacity: 0; } 100% { opacity: 0; } }

@media (max-width: 760px) {
  .hero { min-height: auto; padding-top: 100px; padding-bottom: 36px; align-items: start; }
  .hero-dot { --size: 60vw; margin-top: 0; top: 58px; right: -24vw; }
  .hero-title { font-size: clamp(46px, 13.4vw, 66px); }
  .hero-lead { margin-top: 18px; font-size: 18px; text-shadow: 0 0 2px var(--bg), 0 0 10px var(--bg), 0 0 18px var(--bg); }
  .hero-actions { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .hero-actions .btn { min-height: 52px; padding: 0 12px; font-size: 15px; white-space: nowrap; }
  .hero-actions .btn svg { display: none; }
  .hero-foot { margin-top: 40px; }
  .hero-index { gap: 10px 18px; }
  .hero-index a { font-size: 12px; }
  .scroll-cue { display: none; }
}

/* ── Разделы ── */
.work, .stack, .projects, .contact { padding: clamp(96px, 15vh, 180px) var(--wrap) 0; }
.sec-head { max-width: 820px; }
.sec-num { display: flex; align-items: center; gap: 10px; font: 500 12.5px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.sec-num::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--dot-fill); box-shadow: 0 0 0 4px var(--accent-bg); }
h2 { margin-top: 18px; font-family: var(--display); font-weight: 650; font-size: clamp(42px, 6.4vw, 96px); line-height: 0.95; letter-spacing: -0.052em; text-wrap: balance; }
.sec-lead { margin-top: 20px; max-width: 48ch; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.5; color: var(--muted); text-wrap: pretty; }
/* скрыто от глаз, но читается скринридером */
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* слова заголовка выезжают из-под маски */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.06em 0 0.1em; margin: -0.06em 0 -0.1em; }
.split .w > span { display: inline-block; transform: translateY(110%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 70ms + 80ms); }
.in .split .w > span, .split.in .w > span { transform: none; }

/* появление при прокрутке */
html.reveal-ready [data-reveal] { opacity: 0; transform: translate3d(0, 34px, 0); transition: opacity 0.9s var(--ease), transform 1.1s var(--ease); }
html.reveal-ready [data-reveal].in { opacity: 1; transform: none; }
html.reveal-ready .sec-head[data-reveal] { opacity: 1; transform: none; }
html.reveal-ready .sec-head[data-reveal] > :not(h2) { opacity: 0; transform: translateY(16px); transition: opacity 0.9s var(--ease) 0.25s, transform 1s var(--ease) 0.25s; }
html.reveal-ready .sec-head[data-reveal].in > :not(h2) { opacity: 1; transform: none; }
html.reveal-ready .how-list > :nth-child(2) { transition-delay: 90ms; }
html.reveal-ready .how-list > :nth-child(3) { transition-delay: 180ms; }

/* ── 01 Специализация: строки текста во всю ширину; точка на рельсе следует за чтением ── */
.work-grid { position: relative; margin-top: clamp(40px, 6vh, 72px); }
.spec { display: grid; grid-template-columns: 56px minmax(0, 1fr); padding: 34px 0 36px; border-top: 1px solid var(--line); }
.spec:last-child { border-bottom: 1px solid var(--line); }
.spec-n { padding: 0.95em 0 0 24px; font: 500 13px/1 var(--mono); color: var(--faint); transition: color 0.4s; }
.spec.on .spec-n { color: var(--accent); }
.spec h3 { font: 600 clamp(30px, 3.4vw, 50px)/1.02 var(--display); letter-spacing: -0.04em; color: var(--ink); }
.spec p { margin-top: 14px; max-width: 46ch; font-size: 17px; line-height: 1.55; color: var(--muted); }
@media (min-width: 1024px) {
  /* заголовок слева, описание и стек справа */
  .spec-body { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); column-gap: clamp(32px, 4.5vw, 80px); align-items: start; }
  .spec-body > h3 { grid-column: 1; grid-row: 1 / span 2; }
  .spec-body > p, .spec-body > .uses { grid-column: 2; }
  .spec-body > p { margin-top: 4px; }
}
.uses { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 9px 18px; }
.uses li { display: inline-flex; align-items: center; gap: 7px; font: 500 12.5px/1.2 var(--mono); color: var(--ink-2); }
.uses svg { width: 18px; height: 18px; flex: none; color: var(--b); }
.uses .wm svg { width: 42px; height: 18px; }
[data-theme="dark"] .uses svg { color: var(--b-dark, var(--b)); }
html.no-js .spec-rail { display: none !important; }
html.no-js [data-theme-toggle], html.no-js #replay { display: none; }
.spec-rail { position: absolute; left: 0; top: 0; pointer-events: none; }
.spec-rail i {
  position: absolute; left: 0; top: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--dot-fill); box-shadow: 0 0 0 4px var(--accent-bg);
  translate: 0 var(--y, -100px); transition: translate 0.7s var(--ease);
}

/* «Как работаю»: три колонки текста под линией */
.how { margin-top: clamp(80px, 11vh, 130px); }
.how-k { display: flex; align-items: center; gap: 10px; font: 500 12.5px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.how-k::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--dot-fill); box-shadow: 0 0 0 4px var(--accent-bg); }
.how-list { margin-top: 26px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3.4vw, 48px); }
.how-list li { padding-top: 22px; border-top: 1px solid var(--line); }
.how-list h4 { display: flex; align-items: center; gap: 10px; margin: 0; font: 600 20px/1.2 var(--display); letter-spacing: -0.02em; }
.how-list h4 svg { width: 20px; height: 20px; flex: none; color: var(--accent); }
.how-list p { margin-top: 10px; font-size: 16px; line-height: 1.55; color: var(--muted); }

@media (max-width: 1023px) {
  .spec-rail { display: none; }
  .spec { grid-template-columns: 40px minmax(0, 1fr); padding: 26px 0 30px; }
  .spec-n { padding-left: 0; color: var(--accent); }
}
@media (max-width: 900px) { .how-list { grid-template-columns: 1fr; gap: 28px; } }

/* ── Цвета технологий ── */
.b-python { --b: #3776ab; --b-dark: #6aa6e0; } .b-javascript { --b: #e5c700; --b-tile: #1f2328; } .b-typescript { --b: #3178c6; --b-dark: #5ea2ef; }
.b-html5 { --b: #e34f26; } .b-css { --b: #663399; --b-dark: #b58cf0; } .b-nodedotjs { --b: #5fa04e; }
.b-react { --b: #149eca; --b-dark: #61dafb; } .b-linux { --b: #1f2328; --b-tint: #fcc624; --b-dark: #fcc624; } .b-gnubash { --b: #4eaa25; }
.b-nginx { --b: #009639; --b-dark: #22c55e; } .b-cloudflare { --b: #f38020; } .b-postgresql { --b: #4169e1; --b-dark: #7d9bff; }
.b-mysql { --b: #4479a1; --b-dark: #79aed6; } .b-sqlite { --b: #003b57; --b-dark: #7fb7d8; } .b-telegram { --b: #26a5e4; }
.b-go { --b: #00add8; } .b-redis { --b: #e5362c; --b-dark: #ff6b5f; } .b-git { --b: #f03c2e; } .b-pm2 { --b: #2b037a; --b-dark: #a78bfa; }
.b-gen { --b: #4a5fe0; --b-dark: #aab6ff; } .b-ps { --b: #2f6fd6; --b-dark: #6ea1ff; }
.b-openapiinitiative { --b: #5a9230; --b-dark: #8fd35a; } .b-googlesheets { --b: #1e8e3e; --b-dark: #4cc26b; } .b-lighthouse { --b: #e2401b; --b-dark: #ff7a59; }
.b-googlesearchconsole { --b: #3b7de0; --b-dark: #7aaeff; } .b-owasp { --b: #1f2328; --b-dark: #e6e8ee; }
.b-webgl { --b: #990000; --b-dark: #ff7070; } .b-opengl { --b: #5586a4; --b-dark: #8fc1e0; } .b-svg { --b: #d9901c; --b-tint: #ffb13b; --b-dark: #ffb13b; } .b-pwa { --b: #5a0fc8; --b-dark: #b18cff; }
.b-postman { --b: #ff6c37; } .b-vite { --b: #646cff; --b-dark: #9499ff; } .b-nextdotjs { --b: #0b0c10; --b-dark: #f2f3f7; } .b-ffmpeg { --b: #007808; --b-dark: #3fcf4f; }

/* ── 02 Стек: точка из стека ── */
.stack .sec-head h2 { white-space: nowrap; }
.h-dot { width: 0.2em; height: 0.2em; margin-left: 0.04em; transition: transform 0.6s var(--ease) 0.5s; }
html.reveal-ready .stack .sec-head:not(.in) .h-dot { transform: scale(0); }
.h-n { margin-left: 0.1em; font: 500 0.24em/1 var(--mono); letter-spacing: 0; color: var(--accent); vertical-align: super; transition: opacity 0.6s 0.6s; }
html.reveal-ready .stack .sec-head:not(.in) .h-n { opacity: 0; }
.stack-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(40px, 5vw, 88px); align-items: start; margin-top: clamp(40px, 6vh, 72px); padding-bottom: clamp(0px, calc(100svh - 700px), 240px); }
.orbit-wrap { position: sticky; top: 90px; }
@media (max-height: 700px) { .orbit-wrap { position: relative; top: 0; } }
.orbit {
  --t: 54px; --core: 88px; --rx: 0deg; --ry: 0deg;
  position: relative; width: min(100%, 640px, calc(100svh - 250px)); aspect-ratio: 1; margin-inline: auto; touch-action: pan-y;
  transform: perspective(1200px) rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d;
}
.orbit::before {
  content: ""; position: absolute; inset: -4%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(131, 152, 255, 0.22) 0, rgba(131, 152, 255, 0.07) 46%, transparent 70%);
}
[data-theme="dark"] .orbit::before { background: radial-gradient(circle, rgba(131, 152, 255, 0.2) 0, rgba(131, 152, 255, 0.06) 46%, transparent 70%); }
.orbit-band { display: none; }

/* кольца: линия прорисовывается при раскрытии, дуга группы — мягкая полоса под жетонами, огонёк со шлейфом */
.orbit-rings { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.ring-line {
  fill: none; stroke: color-mix(in srgb, var(--ink) 13%, transparent); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 1.3s var(--ease) calc(var(--n, 0) * 140ms), stroke 0.35s, stroke-width 0.35s;
}
[data-theme="dark"] .ring-line { stroke: color-mix(in srgb, var(--ink) 16%, transparent); }
.orbit.drawn .ring-line { stroke-dashoffset: 0; }
.ring.on .ring-line { stroke: color-mix(in srgb, var(--accent) 45%, transparent); stroke-width: 1.5; }
.ring-arcs, .ring-trail { transform-box: view-box; transform-origin: 50% 50%; }
.ring-arc { fill: none; stroke: var(--accent); stroke-width: calc(var(--t) + 12px); stroke-linecap: round; opacity: 0; transition: opacity 0.35s; }
.ring-arc.on { opacity: 0.13; }
[data-theme="dark"] .ring-arc.on { opacity: 0.2; }
.ring-trail { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; opacity: 0; transition: opacity 0.8s 1s; }
.ring-spark { fill: var(--accent); opacity: 0; filter: drop-shadow(0 0 5px var(--accent)); transition: opacity 0.8s 1s; }
.orbit.drawn .ring-trail { opacity: 0.32; }
.orbit.drawn .ring-spark { opacity: 1; }
.orbit.fam-on .ring-trail, .orbit.fam-on .ring-spark { opacity: 0.12; }

.orbit-core {
  position: absolute; z-index: 1; left: calc(50% - var(--core) / 2); top: calc(50% - var(--core) / 2); width: var(--core); aspect-ratio: 1; border-radius: 50%;
  background: var(--dot-fill); cursor: pointer; box-shadow: 0 20px 40px -18px rgba(74, 95, 224, 0.75); transform: translateZ(24px);
}
.orbit-core::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0) 42%); }
.orbit-core::before {
  content: ""; position: absolute; inset: -14%; border-radius: 50%; border: 1.5px solid color-mix(in srgb, var(--accent) 55%, transparent);
  opacity: 0; animation: corePulse 3.2s var(--ease) infinite;
}
@keyframes corePulse { 0% { opacity: 0.7; transform: scale(0.86); } 70%, 100% { opacity: 0; transform: scale(1.5); } }
.tok {
  position: absolute; left: 0; top: 0; z-index: 1; display: grid; place-items: center; width: var(--t); height: var(--t); border-radius: 50%;
  background: var(--card); opacity: 0; will-change: transform; cursor: default;
  box-shadow: inset 0 0 0 1px var(--line), 0 10px 22px -14px rgba(11, 12, 16, 0.45);
  transition: background-color 0.25s, box-shadow 0.25s, filter 0.35s;
}
.tok svg { width: 50%; height: 50%; color: var(--b); pointer-events: none; }
.tok.wm svg { width: 82%; height: 40%; }
.tok.b-javascript { background: var(--b-tile); }
[data-theme="dark"] .tok svg { color: var(--b-dark, var(--b)); }
[data-theme="dark"] .tok { box-shadow: inset 0 0 0 1px var(--line), 0 10px 22px -14px rgba(0, 0, 0, 0.9); }
.tok.hot { z-index: 2; background: color-mix(in srgb, var(--b-tint, var(--b)) 12%, var(--card)); box-shadow: inset 0 0 0 2px var(--b), 0 16px 30px -12px color-mix(in srgb, var(--b) 70%, transparent); }
[data-theme="dark"] .tok.hot { background: color-mix(in srgb, var(--b-dark, var(--b)) 14%, var(--card)); box-shadow: inset 0 0 0 2px var(--b-dark, var(--b)), 0 16px 30px -12px color-mix(in srgb, var(--b-dark, var(--b)) 60%, transparent); }
.tok.b-javascript.hot { background: var(--b-tile); }
.tok.dim { filter: grayscale(1) opacity(0.22); }
.orbit.fam-on .tok.in-fam { box-shadow: inset 0 0 0 1.5px var(--b-dark, var(--b)), 0 10px 22px -14px rgba(11, 12, 16, 0.45); }
@media (prefers-reduced-motion: reduce) {
  .orbit-core::before, .ring-trail, .ring-spark { display: none; }
  .ring-line { transition: none; }
}
.orbit-tip {
  position: absolute; left: 0; top: 0; z-index: 3; translate: 0 0 48px; padding: 6px 12px; border-radius: 999px; white-space: nowrap; pointer-events: none;
  transform: translate(calc(var(--x, 0px) - 50%), calc(var(--y, 0px) - 100% - 10px)); color: var(--bg); background: var(--ink); opacity: 0; transition: opacity 0.2s;
}
.orbit-tip.on { opacity: 1; }
.orbit-tip.below { transform: translate(calc(var(--x, 0px) - 50%), calc(var(--y, 0px) + var(--t) * 1.3 + 10px)); }
@media (hover: none), (max-width: 640px) { .orbit-tip { display: none; } }
.orbit-tip b { font: 600 14px var(--text); }
.orbit-tip small { margin-left: 8px; font: 500 11px var(--mono); opacity: 0.65; }
.orbit-cap { margin: 22px auto 0; max-width: 38ch; min-height: 6.2em; text-align: center; }
.oc-name { display: block; font: 600 26px/1.15 var(--display); letter-spacing: -0.02em; }
.oc-desc { display: block; margin-top: 6px; font-size: 17px; line-height: 1.45; color: var(--muted); }
.oc-fam { display: block; margin-top: 8px; font: 500 12px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.orbit-cap.swap > * { animation: capIn 0.25s var(--ease); }
@keyframes capIn { from { opacity: 0; transform: translateY(6px); } }

.legend { columns: 2; column-gap: 36px; }
.fam { break-inside: avoid; padding: 14px 0 24px; border-top: 1px solid var(--line); }
.fam h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font: 600 17px/1.2 var(--display); letter-spacing: -0.01em; }
.fam-n { font: 500 12px var(--mono); color: var(--faint); }
.fam ul { margin-top: 14px; display: grid; gap: 11px; }
.tech { display: grid; grid-template-columns: 32px minmax(0, 1fr); column-gap: 11px; align-items: center; align-content: center; }
.tech-ic { grid-row: span 2; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: color-mix(in srgb, var(--b-tint, var(--b)) 12%, transparent); transition: box-shadow 0.25s; }
.tech-ic svg { width: 17px; height: 17px; color: var(--b); }
.tech.wm .tech-ic svg { width: 26px; height: 12px; }
.tech.b-javascript .tech-ic { background: var(--b-tile); }
[data-theme="dark"] .tech-ic { background: color-mix(in srgb, var(--b-dark, var(--b)) 15%, transparent); }
[data-theme="dark"] .tech-ic svg { color: var(--b-dark, var(--b)); }
.tech b { font: 600 15px/1.25 var(--text); color: var(--ink-2); overflow-wrap: break-word; hyphens: manual; }
.tech small { font-size: 13px; line-height: 1.3; color: var(--muted); }
.tech.hot b { color: var(--ink); }
.tech.hot .tech-ic { box-shadow: 0 0 0 2px var(--b); }
[data-theme="dark"] .tech.hot .tech-ic { box-shadow: 0 0 0 2px var(--b-dark, var(--b)); }
html.no-js .orbit-wrap { display: none; }

html.no-js .stack-body { grid-template-columns: minmax(0, 1fr); }
html.no-js .legend { columns: 3; }
@media (max-width: 1023px) {
  .stack-body { grid-template-columns: minmax(0, 1fr); row-gap: 48px; padding-bottom: 0; }
  .orbit-wrap { position: relative; top: 0; }
  .orbit { width: min(100%, 560px); }
}
@media (max-width: 640px) {
  .tok { box-shadow: inset 0 0 0 1px var(--line), 0 6px 14px -10px rgba(11, 12, 16, 0.45); }
  .oc-name { font-size: 22px; }
  .oc-desc { font-size: 15.5px; }
  .legend { columns: 1; }
  .fam ul { grid-template-columns: 1fr 1fr; gap: 12px; }
  .tech { grid-template-columns: 28px minmax(0, 1fr); column-gap: 9px; }
  .tech-ic { width: 28px; height: 28px; }
  .tech-ic svg { width: 15px; height: 15px; }
  .tech b { font-size: 14.5px; }
  .tech small { font-size: 12.5px; }
}

/* ── 04 Проекты ── */
.project {
  margin-top: clamp(40px, 6vh, 64px); position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: clamp(28px, 4vw, 64px);
  align-items: center; padding: clamp(28px, 4.4vw, 64px); border-radius: 36px; overflow: hidden; isolation: isolate; background: #0b0c10; color: #fff;
}
[data-theme="dark"] .project { background: #0d0f15; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.project::before { content: ""; position: absolute; z-index: -1; inset: -40% -20% auto auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(131, 152, 255, 0.28), transparent); pointer-events: none; }
.project-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font: 12.5px/1.2 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.project h3 { margin-top: 14px; font: 650 clamp(34px, 4vw, 60px)/1 var(--display); letter-spacing: -0.045em; }
.project-lead { margin-top: 18px; max-width: 54ch; color: rgba(255, 255, 255, 0.72); }
.project .uses { margin: 28px 0 32px; }
.project .uses li { color: #c8ccd7; }
.project .uses svg { width: 16px; height: 16px; color: var(--b-dark, var(--b)); filter: none; opacity: 1; }
.project .uses .wm svg { width: 38px; height: 16px; }
.project .btn-main { background: #fff; color: #0b0c10; box-shadow: 0 14px 40px -14px rgba(131, 152, 255, 0.6); }
.project-shot { position: relative; display: flex; justify-content: center; perspective: 1400px; }
.project-body { position: relative; z-index: 1; }
.project-shot::before { content: ""; position: absolute; pointer-events: none; width: 96%; aspect-ratio: 1; border-radius: 50%; background: var(--dot-fill); top: 50%; left: 50%; transform: translate(-50%, -50%); opacity: 0.92; }
.phone {
  position: relative; width: min(270px, 100%); padding: 8px; border-radius: 42px; transform-style: preserve-3d;
  background: linear-gradient(145deg, #30343f, #121419 60%); box-shadow: 0 50px 90px -30px rgba(0, 0, 0, 0.85), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: rotateY(var(--ry, -10deg)) rotateX(var(--rx, 5deg)); transition: transform 0.8s var(--ease); animation: float 7s ease-in-out infinite;
}
@keyframes float { 50% { translate: 0 -10px; } }
.phone img { width: 100%; height: auto; border-radius: 34px; }
.phone-glare { position: absolute; inset: 8px; border-radius: 34px; pointer-events: none; background: radial-gradient(circle at var(--gx, 25%) var(--gy, 15%), rgba(255, 255, 255, 0.2), transparent 50%); }
@media (max-width: 900px) {
  .project { grid-template-columns: 1fr; }
  .project-shot::before { width: min(96%, 420px); }
  .phone { width: min(240px, 68vw); }
}

/* ── 04 Контакты ── */
.mail-card { display: flex; align-items: center; gap: 12px; margin-top: clamp(32px, 5vh, 56px); }
.mail-link {
  display: inline-flex; align-items: center; gap: clamp(12px, 2vw, 22px); min-width: 0; padding: clamp(14px, 2vw, 22px) clamp(18px, 3vw, 34px) clamp(14px, 2vw, 22px) clamp(14px, 2vw, 20px);
  border-radius: 999px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line), 0 24px 50px -30px rgba(74, 95, 224, 0.55);
  color: var(--ink); text-decoration: none; transition: box-shadow 0.3s, transform 0.4s var(--ease);
}
.mail-link:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 60%, transparent), 0 30px 60px -30px rgba(74, 95, 224, 0.7); }
.mail-ic { display: grid; place-items: center; flex: none; width: clamp(44px, 5vw, 60px); aspect-ratio: 1; border-radius: 50%; background: var(--dot-fill); color: #fff; box-shadow: 0 12px 26px -12px rgba(74, 95, 224, 0.8); }
.mail-ic svg { width: 46%; height: 46%; }
.mail-addr { font: 600 clamp(22px, 4.2vw, 52px)/1.1 var(--display); letter-spacing: -0.03em; overflow-wrap: anywhere; }
.mail-go { flex: none; width: clamp(20px, 2.4vw, 28px); height: clamp(20px, 2.4vw, 28px); color: var(--muted); transition: transform 0.4s var(--ease), color 0.3s; }
.mail-link:hover .mail-go { transform: translate(3px, -3px); color: var(--accent); }
.mail-copy { flex: none; width: 48px; height: 48px; padding: 0; justify-content: center; }
.contact { padding-bottom: clamp(72px, 12vh, 140px); }
@media (max-width: 640px) {
  .mail-card { gap: 8px; }
  .mail-link { flex: 1; gap: 12px; padding: 10px 18px 10px 10px; }
  .mail-addr { font-size: clamp(17px, 5.4vw, 24px); }
  .mail-go { display: none; }
  .mail-copy { width: 52px; height: 52px; }
}
.private { margin-top: 22px; display: flex; gap: 10px; align-items: baseline; max-width: 70ch; font-size: 15px; line-height: 1.5; color: var(--muted); }
.private svg { flex: none; width: 16px; height: 16px; translate: 0 2px; }
.private b { color: var(--ink-2); font-weight: 600; }

/* ── Подвал ── */
.foot { position: relative; padding: 0 var(--wrap); overflow: hidden; }
.foot-mark {
  font-family: var(--display); font-weight: 700; font-size: clamp(64px, 17vw, 240px); line-height: 0.85; letter-spacing: -0.06em; margin-left: -0.05em; white-space: nowrap;
  color: transparent; background: linear-gradient(180deg, var(--ink) 35%, color-mix(in srgb, var(--ink) 12%, transparent) 100%); -webkit-background-clip: text; background-clip: text;
}
.foot-mark .dot { animation: breathe 4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: translateY(0.01em) scale(1.12); } }
/* титры: бегущая строка стека, движется вместе с прокруткой */
.credits {
  margin: clamp(120px, 18vh, 200px) calc(-1 * var(--wrap)) clamp(40px, 6vh, 72px); display: grid; gap: clamp(8px, 1.4vw, 18px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.foot > .foot-mark:first-child { margin-top: clamp(120px, 18vh, 200px); }
.cr-row { overflow: hidden; }
.cr-track { display: flex; align-items: center; gap: clamp(20px, 3vw, 44px); width: max-content; will-change: transform; }
.cr-i { display: inline-flex; align-items: center; gap: 0.3em; white-space: nowrap; font: 600 clamp(32px, 4.4vw, 64px)/1.15 var(--display); letter-spacing: -0.035em; color: var(--ink); }
.cr-i svg { width: 0.7em; height: 0.7em; flex: none; color: var(--b); }
.cr-i.wm svg { width: 1.9em; height: 0.8em; }
.cr-i.b-javascript svg { padding: 0.07em; border-radius: 0.14em; background: var(--b-tile); box-sizing: content-box; }
[data-theme="dark"] .cr-i svg { color: var(--b-dark, var(--b)); }
.cr-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--dot-fill); }
.foot-row { margin-top: 28px; padding: 22px 0 calc(env(safe-area-inset-bottom) + 28px); border-top: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px 24px; color: var(--muted); font-size: 14px; }
.foot-note { font: 500 12px/1.4 var(--mono); color: var(--faint); text-align: center; }
.foot-links { justify-self: end; flex-wrap: nowrap; white-space: nowrap; }
@media (max-width: 1100px) { .foot-row { grid-template-columns: auto auto; } .foot-note { grid-column: 1 / -1; order: 3; text-align: left; } }
@media (max-width: 760px) { .foot-row { grid-template-columns: 1fr; justify-items: start; } .foot-links { justify-self: start; flex-wrap: wrap; white-space: normal; } }
.foot-row a { text-decoration-color: var(--line); text-underline-offset: 4px; }
.foot-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; }

/* ── Уведомления ── */
.toasts { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 22px); z-index: 97; display: grid; justify-items: center; gap: 8px; transform: translateX(-50%); pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 500; white-space: nowrap; color: #fff; background: #0b0c10; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.08); animation: toastIn 0.5s var(--ease) both; }
[data-theme="dark"] .toast { color: #0b0c10; background: #eef0f6; }
.toast svg { width: 18px; height: 18px; color: #8398ff; }
[data-theme="dark"] .toast svg { color: #4a5fe0; }
.toast.out { animation: toastOut 0.35s ease both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(0.95); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(8px) scale(0.97); } }

/* ── Смена темы через View Transitions ── */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 2; }

/* ── Заставка ── */
.intro-layer { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: #07080b; color: #fff; }
.intro-word { font-family: var(--display); font-weight: 650; font-size: clamp(56px, 13vw, 220px); letter-spacing: -0.055em; line-height: 1; white-space: nowrap; }
.intro-word span { display: inline-block; }
.intro-word .dot { visibility: hidden; }
.intro-meta { position: absolute; left: 24px; bottom: calc(env(safe-area-inset-bottom) + 30px); font: 12px var(--mono); color: rgba(255, 255, 255, 0.4); letter-spacing: 0.04em; }
.intro-skip {
  position: absolute; right: 24px; bottom: calc(env(safe-area-inset-bottom) + 24px); border: 0; border-radius: 999px; padding: 10px 16px;
  font: 500 14px var(--text); color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.08); cursor: pointer;
}
.intro-skip:hover { color: #fff; }
/* круг заставки: полноэкранный слой с вырезом clip-path — остаётся чётким на любом масштабе */
.intro-cover {
  position: fixed; inset: 0; z-index: 91; pointer-events: none;
  --cx: 50vw; --cy: 50vh; --r: 0px;
  clip-path: circle(var(--r) at var(--cx) var(--cy));
  -webkit-clip-path: circle(var(--r) at var(--cx) var(--cy));
  background: radial-gradient(circle calc(var(--r) * 1.981) at calc(var(--cx) - var(--r) * 0.36) calc(var(--cy) - var(--r) * 0.44),
    #c9d1ff 0, #8398ff calc(var(--r) * 0.753), #5a6be8 calc(var(--r) * 1.426), #3f4fcc calc(var(--r) * 1.981));
}

html.intro body { overflow: hidden; }
/* до появления слоя заставки страница уже её цвета — без светлой вспышки на медленных устройствах */
html.intro { background: #07080b; animation: failsafe-bg 0s 7s forwards; }
@keyframes failsafe-bg { to { background: var(--bg); } }
html.intro .nav, html.intro main, html.intro .foot { visibility: hidden; animation: failsafe 0s 7s forwards; }
@keyframes failsafe { to { visibility: visible; } }

/* первый экран проявляется при загрузке и после заставки */
html.js .reveal { animation: rise 1.1s var(--ease) both; }
html.js:not(.intro) .nav { animation: fade 0.9s ease 0.2s both; }
html.intro .reveal { animation: none; }
.r1 { animation-delay: 110ms !important; }
.r2 { animation-delay: 200ms !important; }
.r3 { animation-delay: 290ms !important; }
.r4 { animation-delay: 420ms !important; }
@keyframes rise { from { opacity: 0; transform: translate3d(0, 34px, 0); } }

/* ── Меньше движения ── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  #replay { display: none; }
  .split .w > span { transform: none; }
}

@media (forced-colors: active) {
  .dot, .orbit-core, .nf-zero, .sec-num::before, .how-k::before, .spec-rail i, .cr-dot { forced-color-adjust: none; }
}

/* ── Страница 404 ── */
.nf { min-height: 100svh; }
.nf .hero-title { font-size: clamp(110px, 20vw, 280px); }
.nf-zero { display: inline-block; width: 0.66em; height: 0.66em; margin: 0 0.02em; border-radius: 50%; vertical-align: -0.02em; background: var(--dot-fill); box-shadow: 0 30px 60px -20px rgba(74, 95, 224, 0.6); animation: breathe 4s ease-in-out infinite; }
.nf .hero-lead code { padding: 1px 6px; border-radius: 6px; font-size: 0.82em; color: var(--accent); background: var(--accent-bg); overflow-wrap: anywhere; }

/* очень узкие телефоны */
@media (max-width: 380px) {
  .hero-actions .btn { font-size: 14px; padding: 0 8px; }
  .project .btn { white-space: nowrap; padding: 0 18px; font-size: 15px; gap: 8px; }
}
