/* ==========================================================================
   V.AFANASIEV.ENG — v2
   Фон: холодный почти-чёрный с чертёжной сеткой. Акцент: индустриальный
   оранжевый (маркировка ремонтных зон). Вторичный: холодный синий — только
   для «сканирующих» элементов (луч, облако точек, оси).

   Про производительность: все постоянные анимации — только transform и
   opacity (композитор, без перерисовки). Единственный canvas — вьюпорт
   сканера, он рисует только когда виден на экране.
   ========================================================================== */

/* Шрифты свои, а не с Google Fonts: из России те грузятся медленно и
   блокируют отрисовку. Вариативные woff2, только кириллица и латиница. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(fonts/inter-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url(fonts/inter-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: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/jetbrains-mono-cyrillic.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-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/jetbrains-mono-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:            #0A0C0F;
  --bg-raised:     #12151A;
  --bg-card:       #14171D;
  --border:        #22262E;
  --border-hover:  #343A44;

  --text:          #EDEFF2;
  --text-dim:      #9AA2AF;
  --text-faint:    #5B626E;

  --accent:        #FF6A1A;
  --accent-dim:    #C4531A;
  --accent-soft:   rgba(255, 106, 26, 0.12);

  --scan:          #3DA9FC;
  --scan-soft:     rgba(61, 169, 252, 0.16);
  --ok:            #3ED598;

  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 56px);
}

/* ==========================================================================
   RESET
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 { margin: 0; font-family: var(--font-mono); }
p, dl, dd, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

::selection { background: var(--accent); color: #0A0C0F; }

:focus-visible {
  outline: 2px solid var(--scan);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ==========================================================================
   ПРОГРЕСС ПРОКРУТКИ
   ========================================================================== */

.progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  z-index: 200;
  pointer-events: none;
}

.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--scan), var(--accent));
  transform-origin: 0 50%;
  transform: scaleX(var(--p, 0));
  box-shadow: 0 0 10px rgba(255, 106, 26, 0.5);
}

/* ==========================================================================
   ФОН — чертёжная сетка, два свечения, пятно за курсором
   ========================================================================== */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

.backdrop__grid {
  position: absolute;
  inset: -2px;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 20%, #000 20%, transparent 80%);
          mask-image: radial-gradient(ellipse 80% 70% at 60% 20%, #000 20%, transparent 80%);
}

.backdrop__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  will-change: transform;
}

.backdrop__glow--a {
  width: 620px; height: 420px;
  right: -120px; top: -160px;
  background: rgba(255, 106, 26, 0.16);
  animation: drift 22s ease-in-out infinite alternate;
}

.backdrop__glow--b {
  width: 520px; height: 420px;
  left: -180px; top: 30%;
  background: rgba(61, 169, 252, 0.09);
  animation: drift 26s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to   { transform: translate3d(-60px, 50px, 0) scale(1.12); }
}

/* Пятно за курсором: только transform, координаты ставит JS */
.backdrop__cursor {
  position: absolute;
  left: 0; top: 0;
  width: 520px; height: 520px;
  margin: -260px 0 0 -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 169, 252, 0.07), transparent 65%);
  transform: translate3d(var(--cx, -999px), var(--cy, -999px), 0);
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}

html.has-pointer .backdrop__cursor { opacity: 1; }

.grain {
  position: fixed;
  inset: 0;
  z-index: 150;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ==========================================================================
   ХЕДЕР
   ========================================================================== */

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px var(--gutter);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), padding 0.3s var(--ease);
}

.topbar.is-scrolled {
  padding-top: 11px;
  padding-bottom: 11px;
  border-bottom-color: var(--border);
  background: rgba(10, 12, 15, 0.82);
  -webkit-backdrop-filter: blur(14px);
          backdrop-filter: blur(14px);
}

.topbar__mark {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.topbar__mark-sub { color: var(--accent); }

.topbar__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px 1px rgba(255, 106, 26, 0.45);
  flex-shrink: 0;
}

.topbar__nav {
  display: flex;
  gap: clamp(16px, 2.4vw, 34px);
  font-size: 13.5px;
  color: var(--text-dim);
}

.topbar__nav a {
  position: relative;
  padding: 4px 0;
  transition: color 0.2s var(--ease);
}

.topbar__nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.3s var(--ease);
}

.topbar__nav a:hover,
.topbar__nav a.is-active { color: var(--text); }

.topbar__nav a:hover::after,
.topbar__nav a.is-active::after { transform: scaleX(1); transform-origin: 0 50%; }

.topbar__right { display: flex; align-items: center; gap: 10px; }

.topbar__cta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(10, 12, 15, 0.5);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--ease);
  white-space: nowrap;
}

.topbar__cta:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.topbar__burger {
  display: none;
  width: 38px; height: 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(10, 12, 15, 0.5);
  cursor: pointer;
  position: relative;
}

.topbar__burger span {
  position: absolute;
  left: 11px; right: 11px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.3s var(--ease);
}

.topbar__burger span:first-child { top: 14px; }
.topbar__burger span:last-child  { top: 22px; }
.topbar__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.topbar__burger[aria-expanded="true"] span:last-child  { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 860px) {
  .topbar__burger { display: block; }
  .topbar__nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 18px;
    background: rgba(10, 12, 15, 0.96);
    border-bottom: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }
  .topbar__nav a { padding: 13px 0; border-bottom: 1px solid var(--border); }
  .topbar__nav a:last-child { border-bottom: 0; }
  .topbar__nav a::after { display: none; }
  .topbar.is-open .topbar__nav {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }
  .topbar.is-open { background: rgba(10, 12, 15, 0.96); border-bottom-color: var(--border); }
}

@media (max-width: 560px) {
  .topbar__cta { padding: 9px; }
  .topbar__cta span { display: none; }
  .topbar__cta svg { width: 17px; height: 17px; }
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 110px var(--gutter) 90px;
  max-width: var(--container);
  margin: 0 auto;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

@media (max-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 44px; }
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  padding: 6px 13px 6px 11px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(20, 23, 29, 0.6);
  margin-bottom: 28px;
}

.pulse-dot {
  position: relative;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ok);
  flex-shrink: 0;
}

/* Пульс на transform/opacity вместо box-shadow — не перерисовывает слой */
.pulse-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--ok);
  animation: pulse 2.2s var(--ease) infinite;
}

@keyframes pulse {
  from { transform: scale(1); opacity: 0.6; }
  to   { transform: scale(3.2); opacity: 0; }
}

.hero__title { font-size: inherit; font-weight: inherit; }
.hero__title > .hero__role { display: block; }

.hero__name {
  display: flex;
  flex-direction: column;
  font-size: clamp(44px, 7.6vw, 92px);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 24px;
}

.hero__line { display: block; white-space: nowrap; }

.hero__line--outline {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--accent);
  background: linear-gradient(90deg, var(--accent), #FFB27A) no-repeat;
  background-size: 0% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  transition: background-size 1.4s var(--ease) 0.9s;
}

html.js-ready .hero__name.is-visible .hero__line--outline,
html:not(.js-ready) .hero__line--outline { background-size: 100% 100%; }

/* Символы в процессе «расшифровки» */
.hero__line .glyph { color: var(--scan); -webkit-text-stroke: 0; }

.hero__role {
  font-family: var(--font-mono);
  font-size: clamp(15px, 2vw, 20px);
  font-weight: 500;
  color: var(--text-dim);
  line-height: 1.5;
  margin-bottom: 22px;
}

.hero__role-accent { color: var(--accent); white-space: nowrap; }

.hero__pitch {
  max-width: 48ch;
  font-size: 16.5px;
  color: var(--text-dim);
  line-height: 1.7;
  margin-bottom: 36px;
}

.hero__pitch strong { color: var(--text); font-weight: 600; }

.hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 0;
  border-top: 1px solid var(--border);
  padding-top: 22px;
}

.hero__stats > div {
  padding: 0 clamp(16px, 2.4vw, 32px);
  border-left: 1px solid var(--border);
}

.hero__stats > div:first-child { padding-left: 0; border-left: 0; }

.hero__stats dt {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 6px;
}

.hero__stats dd {
  font-family: var(--font-mono);
  font-size: clamp(17px, 2vw, 22px);
  font-weight: 700;
  white-space: nowrap;
}

.hero__stats small { font-size: 12px; font-weight: 500; color: var(--text-faint); }

@media (max-width: 480px) {
  .hero__stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero__stats > div { padding: 0 10px; }
  .hero__stats dd { font-size: 15px; white-space: normal; }
  .hero__stats dt { font-size: 10px; letter-spacing: 0.04em; }
}

/* ---- Кнопки ---- */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
  transform: translate3d(var(--mx, 0), var(--my, 0), 0);
}

.btn svg { transition: transform 0.25s var(--ease); position: relative; }

.btn--primary {
  background: var(--accent);
  color: #14100C;
}

/* Блик, пробегающий по кнопке при наведении */
.btn--primary::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg) translateX(0);
  transition: transform 0.7s var(--ease);
}

.btn--primary:hover { box-shadow: 0 12px 34px -8px rgba(255, 106, 26, 0.6); }
.btn--primary:hover::before { transform: skewX(-20deg) translateX(420%); }
.btn--primary:hover svg { transform: translateX(3px); }

.btn--ghost {
  border: 1px solid var(--border);
  background: rgba(20, 23, 29, 0.55);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--border-hover);
  background: var(--bg-raised);
}

.btn--block { width: 100%; padding: 13px 14px; font-size: 13px; white-space: nowrap; }

/* ==========================================================================
   ВЬЮПОРТ СКАНЕРА
   ========================================================================== */

.viewport {
  position: relative;
  background: linear-gradient(165deg, rgba(20, 23, 29, 0.92), rgba(14, 16, 20, 0.92));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
}

.viewport::before {
  content: "";
  position: absolute;
  top: -1px; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.8;
}

.viewport__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  padding: 2px 4px 12px;
}

.viewport__tag { display: inline-flex; align-items: center; gap: 8px; }

.viewport__rec {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #FF4D4D;
  animation: rec 1.6s steps(2, jump-none) infinite;
}

@keyframes rec { 50% { opacity: 0.2; } }

.viewport__part {
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.viewport__stage {
  position: relative;
  aspect-ratio: 5 / 4;
  border-radius: var(--radius-md);
  background:
    radial-gradient(ellipse 70% 60% at 50% 55%, rgba(61, 169, 252, 0.06), transparent 70%),
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px) 0 0 / 20px 20px,
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px) 0 0 / 20px 20px,
    #0B0D11;
  border: 1px solid var(--border);
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y;
}

.viewport__stage.is-dragging { cursor: grabbing; }

#scanCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.corner {
  position: absolute;
  width: 14px; height: 14px;
  border-color: var(--text-faint);
  border-style: solid;
  pointer-events: none;
}

.corner--tl { top: 10px; left: 10px; border-width: 1px 0 0 1px; }
.corner--tr { top: 10px; right: 10px; border-width: 1px 1px 0 0; }
.corner--bl { bottom: 10px; left: 10px; border-width: 0 0 1px 1px; }
.corner--br { bottom: 10px; right: 10px; border-width: 0 1px 1px 0; }

.viewport__axes {
  position: absolute;
  left: 16px; bottom: 16px;
  opacity: 0.8;
  pointer-events: none;
}

.viewport__axes path { stroke-width: 1.2; }
.viewport__axes text { font: 600 7px var(--font-mono); fill: var(--text-faint); }

.viewport__hint {
  position: absolute;
  right: 16px; bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-faint);
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.viewport__stage.was-dragged .viewport__hint { opacity: 0; }

.viewport__bar {
  height: 2px;
  margin: 12px 2px 0;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.viewport__bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--scan), var(--accent));
  transform-origin: 0 50%;
  transform: scaleX(0);
}

.viewport__hud {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 12px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  font-family: var(--font-mono);
}

.viewport__hud > div {
  background: #101318;
  padding: 9px 10px;
  min-width: 0;
}

.viewport__hud span {
  display: block;
  font-size: 9.5px;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: 3px;
}

.viewport__hud b {
  display: block;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.viewport__hud b[data-hud="status"] { color: var(--scan); }
.viewport__hud b[data-hud="status"].is-ok { color: var(--ok); }

.viewport__formats {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 0 2px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.08em;
}

.viewport__formats span { margin-right: auto; }

.viewport__formats em {
  font-style: normal;
  font-weight: 700;
  color: var(--text-dim);
  padding: 4px 9px;
  border: 1px solid var(--border);
  border-radius: 20px;
  letter-spacing: 0.04em;
}

@media (max-width: 960px) {
  .hero__viewport { max-width: 560px; width: 100%; }
}

@media (max-width: 420px) {
  .viewport { padding: 10px; }
  .viewport__hud { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .viewport__hint { display: none; }
}

.hero__scrollcue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--text-faint);
}

.scrollcue__line {
  width: 1px;
  height: 34px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}

.scrollcue__line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, var(--accent));
  transform: translateY(-100%);
  animation: cueDrop 1.8s ease-in-out infinite;
}

@keyframes cueDrop { to { transform: translateY(100%); } }

@media (max-width: 960px), (max-height: 760px) {
  .hero__scrollcue { display: none; }
}

/* ==========================================================================
   БЕГУЩАЯ СТРОКА
   ========================================================================== */

.ticker {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(14, 16, 20, 0.7);
  padding: 18px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.ticker__track {
  display: flex;
  align-items: center;
  gap: 34px;
  width: max-content;
  font-family: var(--font-mono);
  font-size: clamp(18px, 2.6vw, 28px);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  animation: slide 38s linear infinite;
}

.ticker__track span:nth-of-type(even) {
  color: transparent;
  -webkit-text-stroke: 1px var(--text-dim);
}

.ticker__track i { font-style: normal; color: var(--accent); font-size: 0.6em; }

@keyframes slide { to { transform: translate3d(-50%, 0, 0); } }

/* ==========================================================================
   СЕКЦИИ — общее
   ========================================================================== */

.section {
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(72px, 10vw, 120px) var(--gutter);
  position: relative;
}

.section__head { margin-bottom: clamp(36px, 5vw, 56px); }

.section__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 14px;
}

/* Размерная линия после номера раздела — отсылка к чертежу */
.section__eyebrow::after {
  content: "";
  flex: 0 0 72px;
  height: 7px;
  border-left: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
  background: linear-gradient(var(--accent), var(--accent)) center / 100% 1px no-repeat;
  opacity: 0.5;
  transform-origin: 0 50%;
}

html.js-ready .reveal .section__eyebrow::after,
html.js-ready .section__head.reveal .section__eyebrow::after {
  transform: scaleX(0);
  transition: transform 0.9s var(--ease) 0.25s;
}

html.js-ready .reveal.is-visible .section__eyebrow::after { transform: scaleX(1); }

.section__title {
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

/* ---- Подсветка карточек за курсором (переменные ставит JS) ---- */

.spot { position: relative; isolation: isolate; }

.spot::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(360px circle at var(--sx, 50%) var(--sy, 50%), rgba(255, 106, 26, 0.10), transparent 45%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}

.spot:hover::after { opacity: 1; }

/* ==========================================================================
   О СПЕЦИАЛИСТЕ
   ========================================================================== */

.about__lead {
  font-size: clamp(20px, 2.6vw, 28px);
  line-height: 1.5;
  color: var(--text-dim);
  max-width: 58ch;
  margin-bottom: 56px;
  letter-spacing: -0.01em;
}

.about__lead strong { color: var(--accent); font-weight: 700; }

.about__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.about__card {
  background: var(--bg-card);
  padding: 30px 26px 34px;
  transition: background 0.25s var(--ease);
}

.about__card::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.45s var(--ease);
}

.about__card:hover { background: var(--bg-raised); }
.about__card:hover::before { transform: scaleX(1); }

.about__card-index {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-faint);
  margin-bottom: 40px;
  transition: color 0.25s var(--ease);
}

.about__card:hover .about__card-index { color: var(--accent); }

.about__card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.about__card p {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ==========================================================================
   ПРОЦЕСС
   ========================================================================== */

.pipeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  counter-reset: step;
}

/* Трасса между узлами: пунктир-основа и «прожигающая» его линия */
.pipeline::before,
.pipeline::after {
  content: "";
  position: absolute;
  top: 22px;
  left: 22px;
  right: calc((100% - 84px) / 4 - 22px);
  height: 1px;
}

.pipeline::before {
  background: repeating-linear-gradient(90deg, var(--border-hover) 0 6px, transparent 6px 12px);
}

.pipeline::after {
  background: linear-gradient(90deg, var(--scan), var(--accent));
  box-shadow: 0 0 12px rgba(255, 106, 26, 0.5);
  transform-origin: 0 50%;
}

html.js-ready .pipeline::after {
  transform: scaleX(0);
  transition: transform 1.6s var(--ease) 0.2s;
}

html.js-ready .pipeline.is-visible::after { transform: scaleX(1); }

.pipeline__step { position: relative; }

.pipeline__node {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 45px; height: 45px;
  margin-bottom: 24px;
  border: 1px solid var(--border-hover);
  border-radius: 50%;
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dim);
  transition: border-color 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

html.js-ready .pipeline__step {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: calc(0.25s + var(--i) * 0.35s);
}

html.js-ready .pipeline.is-visible .pipeline__step { opacity: 1; transform: none; }

html.js-ready .pipeline.is-visible .pipeline__node,
html:not(.js-ready) .pipeline__node {
  border-color: var(--accent);
  color: var(--text);
  box-shadow: 0 0 0 5px var(--accent-soft);
  transition-delay: calc(0.35s + var(--i) * 0.35s);
}

.pipeline__step h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.pipeline__step p {
  font-size: 14.5px;
  color: var(--text-dim);
  line-height: 1.6;
}

@media (max-width: 860px) {
  .pipeline { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .pipeline::before,
  .pipeline::after {
    top: 22px; bottom: 22px;
    left: 22px; right: auto;
    width: 1px; height: auto;
  }
  .pipeline::before { background: repeating-linear-gradient(180deg, var(--border-hover) 0 6px, transparent 6px 12px); }
  .pipeline::after { background: linear-gradient(180deg, var(--scan), var(--accent)); transform-origin: 50% 0; }
  html.js-ready .pipeline::after { transform: scaleY(0); }
  html.js-ready .pipeline.is-visible::after { transform: scaleY(1); }
  .pipeline__step { padding-left: 68px; }
  .pipeline__node { position: absolute; left: 0; top: -4px; margin: 0; }
}

/* ==========================================================================
   НАВЫКИ — бесконечная лента
   ========================================================================== */

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  padding: 6px 0;
}

.marquee__inner {
  display: flex;
  width: max-content;
  animation: slide 40s linear infinite;
}

.marquee__inner--rev { animation-direction: reverse; animation-duration: 46s; margin-top: 12px; }

.marquee:hover .marquee__inner { animation-play-state: paused; }

.marquee__row {
  display: flex;
  gap: 12px;
  padding-right: 12px;
}

/* Без JS (нет клона) — обычная сетка чипсов */
.marquee:not(.is-live) .marquee__row { flex-wrap: wrap; }

.chip {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-dim);
  padding: 12px 20px;
  border: 1px solid var(--border);
  border-radius: 30px;
  background: var(--bg-card);
  white-space: nowrap;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
  cursor: default;
}

.chip::before {
  content: "";
  display: inline-block;
  width: 5px; height: 5px;
  margin: 0 10px 2px 0;
  border-radius: 50%;
  background: var(--text-faint);
  transition: background 0.2s var(--ease);
}

.chip:hover { color: var(--text); border-color: var(--accent); background: var(--accent-soft); }
.chip:hover::before { background: var(--accent); }

/* ==========================================================================
   УСЛУГИ
   ========================================================================== */

.service-list { display: flex; flex-direction: column; }

.service {
  display: grid;
  grid-template-columns: 70px 60px minmax(0, 1fr) 40px;
  align-items: start;
  gap: 24px;
  padding: 38px 16px;
  margin: 0 -16px;
  border-top: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: background 0.3s var(--ease);
}

.service:last-child { border-bottom: 1px solid var(--border); }
.service:hover { background: rgba(20, 23, 29, 0.6); }

.service__index {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-faint);
  padding-top: 8px;
  transition: color 0.3s var(--ease);
}

.service:hover .service__index { color: var(--accent); }

.service__icon {
  width: 54px; height: 54px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.4s var(--ease);
}

.service__icon svg { width: 28px; height: 28px; overflow: visible; }

.icon-accent { stroke: var(--accent); }

/* Иконки «вычерчиваются» при появлении */
html.js-ready .service .draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

html.js-ready .service.is-visible .draw { animation: draw 1.3s var(--ease) 0.25s both; }

@keyframes draw {
  from { stroke-dashoffset: 1; }
  to   { stroke-dashoffset: 0; }
}

html.js-ready .service .icon-dashed { opacity: 0; transition: opacity 0.6s var(--ease) 1s; }
html.js-ready .service.is-visible .icon-dashed { opacity: 1; }

.service:hover .service__icon {
  border-color: var(--accent);
  color: var(--text);
  transform: rotate(-6deg) scale(1.06);
}

.service__text h3 {
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.015em;
}

.service__text p {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.65;
  max-width: 58ch;
}

.service__arrow {
  align-self: center;
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--text-faint);
  transform: translateX(-8px) rotate(-45deg);
  opacity: 0;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease), color 0.35s var(--ease);
}

.service:hover .service__arrow { transform: none; opacity: 1; color: var(--accent); }

@media (max-width: 640px) {
  .service { grid-template-columns: 54px minmax(0, 1fr); gap: 18px; padding: 30px 16px; }
  .service__index, .service__arrow { display: none; }
}

/* ==========================================================================
   ВОПРОСЫ — нативные <details>, без JS
   ========================================================================== */

.faq__list {
  border-top: 1px solid var(--border);
  max-width: 900px;
}

.faq__item { border-bottom: 1px solid var(--border); }

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--font-mono);
  font-size: clamp(15px, 1.8vw, 18px);
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.2s var(--ease);
}

.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: var(--accent); }

/* Плюс, который поворачивается в крестик */
.faq__item summary i {
  position: relative;
  flex: 0 0 28px;
  height: 28px;
  border: 1px solid var(--border-hover);
  border-radius: 50%;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease);
}

.faq__item summary i::before,
.faq__item summary i::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 10px; height: 1.5px;
  margin: -0.75px 0 0 -5px;
  background: currentColor;
}

.faq__item summary i::after { transform: rotate(90deg); }
.faq__item[open] summary i { transform: rotate(45deg); border-color: var(--accent); color: var(--accent); }

.faq__item p {
  padding: 0 52px 26px 0;
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-dim);
  max-width: 70ch;
}

.faq__item[open] p { animation: faqIn 0.4s var(--ease); }

@keyframes faqIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

/* ==========================================================================
   КОНТАКТЫ
   ========================================================================== */

.contacts__panel {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 5vw, 56px);
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(255, 106, 26, 0.10), transparent 60%),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(61, 169, 252, 0.06), transparent 60%),
    linear-gradient(165deg, rgba(20, 23, 29, 0.9), rgba(12, 14, 18, 0.9));
  overflow: hidden;
}

.contacts__head { margin-bottom: clamp(32px, 5vw, 48px); }

.contacts__title {
  font-size: clamp(28px, 4.6vw, 52px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 16px;
}

.contacts__sub {
  font-size: 16px;
  color: var(--text-dim);
  max-width: 52ch;
  line-height: 1.6;
}

.contacts__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 16px;
  align-items: stretch;
}

@media (max-width: 900px) {
  .contacts__body { grid-template-columns: minmax(0, 1fr); }
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 640px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
}

.contact-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(20, 23, 29, 0.8);
  overflow: hidden;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), background 0.25s var(--ease);
}

.contact-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
  background: var(--bg-raised);
}

.contact-card__icon {
  width: 46px; height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), transform 0.35s var(--ease);
}

.contact-card:hover .contact-card__icon {
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.08);
}

.contact-card__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.contact-card__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  text-transform: uppercase;
}

.contact-card__value {
  font-size: 15.5px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.contact-card__value--small { font-size: 14px; }

.contact-card__hint {
  position: absolute;
  right: 16px;
  top: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  white-space: nowrap;
}

.contact-card:hover .contact-card__hint { opacity: 1; transform: none; }

@media (max-width: 1100px) {
  .contact-card__hint { display: none; }
}

/* ---- Визитка в телефон: QR + vCard ---- */

.card-share {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border: 1px dashed var(--border-hover);
  border-radius: var(--radius-md);
  background: rgba(10, 12, 15, 0.5);
  text-align: center;
}

.card-share__qr {
  position: relative;
  padding: 8px;
  border-radius: var(--radius-sm);
  background: #EDEFF2;
  overflow: hidden;
  line-height: 0;
}

.card-share__qr svg { display: block; }

.card-share__beam {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: var(--scan);
  box-shadow: 0 0 12px 2px rgba(61, 169, 252, 0.7);
  animation: beam 2.8s ease-in-out infinite alternate;
}

@keyframes beam { to { transform: translateY(146px); } }

.card-share__text { display: flex; flex-direction: column; gap: 4px; }
.card-share__text b { font-family: var(--font-mono); font-size: 14px; }
.card-share__text span { font-size: 13px; color: var(--text-dim); line-height: 1.5; }

@media (max-width: 900px) {
  .card-share {
    flex-direction: row;
    flex-wrap: wrap;
    text-align: left;
  }
  .card-share__qr svg { width: 96px; height: 96px; }
  .card-share__text { flex: 1 1 160px; }
  @keyframes beam { to { transform: translateY(110px); } }
}

/* ---- На телефоне QR бессмыслен: остаётся одна кнопка «Добавить в контакты» ---- */

.card-share__label-touch,
.card-share__ico-touch { display: none; }

@media (hover: none) and (pointer: coarse) {
  .card-share {
    order: -1;
    padding: 0;
    border: 0;
    background: none;
  }
  .card-share__qr,
  .card-share__text,
  .card-share__label-desk,
  .card-share__ico-desk { display: none; }
  .card-share__label-touch,
  .card-share__ico-touch { display: inline; }
  .card-share__btn {
    padding: 17px 20px;
    font-size: 15px;
    border: 0;
    background: var(--accent);
    color: #14100C;
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.footer {
  max-width: var(--container);
  margin: 0 auto;
  padding: 32px var(--gutter) 64px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-faint);
  gap: 12px;
  flex-wrap: wrap;
}

.contacts__addr {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-faint);
}

.footer__links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer__links a,
.footer__cookie {
  color: var(--text-dim);
  transition: color 0.2s var(--ease);
}
.footer__links a:hover,
.footer__cookie:hover { color: var(--accent); }
.footer__cookie {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}
.footer__cookie[hidden] { display: none; }

/* Подпись студии — вместо плавающей плашки: органично, не закрывает контент на телефоне. */
.footer__made {
  color: var(--text-faint);
  transition: color 0.2s var(--ease);
}
.footer__made span {
  display: inline-block;
  color: var(--accent);
  transition: transform 0.3s var(--ease);
}
.footer__made:hover { color: var(--text); }
.footer__made:hover span { transform: scale(1.25); }

/* ==========================================================================
   БЛОГ — карточки (главная, список, «Ещё в блоге»)
   ========================================================================== */

.posts__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.posts__all {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 106, 26, 0.35);
  transition: border-color 0.2s var(--ease);
}
.posts__all:hover { border-color: var(--accent); }

.posts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.post-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 24px 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(20, 23, 29, 0.6);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.post-card:hover { border-color: var(--border-hover); transform: translateY(-3px); }

.post-card__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--scan);
}

.post-card__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.post-card__text { color: var(--text-dim); font-size: 14.5px; line-height: 1.55; flex: 1; }

.post-card__more {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-faint);
  transition: color 0.2s var(--ease);
}
.post-card:hover .post-card__more { color: var(--accent); }

/* ==========================================================================
   ОКНО COOKIE (consent.js) — выше значка DevUnit и тоста
   ========================================================================== */

.consent {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 1000000;
  width: min(420px, calc(100vw - 32px));
  padding: 18px 18px 16px;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-md);
  background: rgba(18, 21, 26, 0.97);
  box-shadow: 0 18px 50px -12px rgba(0, 0, 0, 0.7);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-dim);
  animation: consentIn 0.45s var(--ease) both;
}
.consent[hidden] { display: none; }
.consent a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.consent__btns { display: flex; gap: 8px; margin-top: 14px; }
.consent__btn {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-sm);
  background: transparent;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.consent__btn:hover { border-color: var(--text-faint); background: var(--bg-card); }
.consent__btn--yes { border-color: var(--accent); background: var(--accent); color: #14100C; }
.consent__btn--yes:hover { border-color: var(--accent); background: #ff7d36; }

@keyframes consentIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}

/* ==========================================================================
   ТОСТ
   ========================================================================== */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translate(-50%, 16px);
  background: var(--bg-raised);
  border: 1px solid var(--accent);
  font-family: var(--font-mono);
  font-size: 13.5px;
  font-weight: 500;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  box-shadow: 0 12px 30px -8px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,106,26,0.15);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: calc(100vw - 32px);
}

.toast::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   SCROLL REVEAL

   Контент не должен зависеть от JS. По умолчанию .reveal ВИДЕН. Класс
   .js-ready (его сразу вешает script.js на <html>) включает анимационный
   режим. Если JS не запустился — страница остаётся статичной и читаемой.
   ========================================================================== */

.reveal { opacity: 1; transform: none; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

html.js-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--delay, 0ms);
}

html.js-ready .reveal.is-visible { opacity: 1; transform: none; }

/* ==========================================================================
   МЕНЬШЕ ДВИЖЕНИЯ — по просьбе системы
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .ticker__track, .marquee__inner { animation: none !important; }
  .marquee .marquee__row { flex-wrap: wrap; }
  .marquee__inner--rev { display: none; }
  .backdrop__cursor { display: none; }
}
