/* ============================================================
   КОГДА УДОБНО — design system
   Bold & bright, blue-tech. Dark default + light theme.
   ============================================================ */

:root {
  /* accent triad — switchable primary via [data-accent] */
  --blue:   #4c7dff;
  --orange: #ff6a2b;
  --purple: #8b5cf6;

  --primary: var(--blue);
  --primary-ink: #ffffff;

  /* dark theme (default) */
  --bg:        #080b14;
  --bg-deep:   #05070e;
  --surface:   #0f1626;
  --surface-2: #161f33;
  --line:      rgba(255,255,255,0.09);
  --line-2:    rgba(255,255,255,0.16);
  --text:      #eaf0ff;
  --muted:     #8b98ba;
  --faint:     #4b5577;

  --glow: color-mix(in oklab, var(--primary) 40%, transparent);

  --maxw: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 18px;
  --radius-sm: 12px;

  --ff-display: "Space Grotesk", system-ui, sans-serif;
  --ff-body: "Manrope", system-ui, sans-serif;
  --ff-mono: "JetBrains Mono", ui-monospace, monospace;

  --ease: cubic-bezier(.22,.61,.36,1);
  --anim: 1; /* motion multiplier, controlled by tweaks */
}

:root[data-accent="orange"] { --primary: var(--orange); }
:root[data-accent="purple"] { --primary: var(--purple); }

:root[data-theme="light"] {
  --bg:        #f3f6fc;
  --bg-deep:   #e9eef8;
  --surface:   #ffffff;
  --surface-2: #f4f7fd;
  --line:      rgba(10,20,45,0.10);
  --line-2:    rgba(10,20,45,0.18);
  --text:      #0a1124;
  --muted:     #56618a;
  --primary-ink: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection { background: var(--primary); color: var(--primary-ink); }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }

/* ---------- typography helpers ---------- */
.mono {
  font-family: var(--ff-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow {
  font-family: var(--ff-mono);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--primary);
  display: inline-block;
}

h1, h2, h3 { font-family: var(--ff-display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.02; margin: 0; }

.section-title {
  font-size: clamp(34px, 5.2vw, 68px);
  line-height: 0.98;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section-head p { max-width: 46ch; color: var(--muted); margin: 0; font-size: 17px; }

section { padding-block: clamp(72px, 10vw, 140px); position: relative; }

/* ---------- buttons ---------- */
.btn {
  --b: var(--primary);
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-body); font-weight: 700; font-size: 16px;
  padding: 15px 26px; border-radius: 999px; white-space: nowrap;
  background: var(--b); color: var(--primary-ink);
  border: 1px solid var(--b);
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .3s var(--ease), background .2s;
  box-shadow: 0 10px 30px -12px var(--glow);
  will-change: transform;
}
.btn:hover { transform: translateY(-3px); box-shadow: 0 18px 44px -14px var(--glow); }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn--ghost {
  background: transparent; color: var(--text);
  border-color: var(--line-2);
  box-shadow: none;
}
.btn--ghost:hover { border-color: var(--primary); color: var(--text); box-shadow: none; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav__in { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--ff-display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  position: relative; flex: none;
  display: grid; place-items: center;
  box-shadow: 0 6px 18px -8px var(--glow);
}
.brand__mark::before { content:""; width:13px; height:13px; border:2.5px solid #fff; border-radius:4px; transform: rotate(45deg); }
.brand small { display:block; font-family: var(--ff-mono); font-size: 9.5px; letter-spacing:.16em; color: var(--muted); font-weight:500; margin-top:1px; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a.lnk { font-size: 14.5px; font-weight: 600; color: var(--muted); transition: color .2s; }
.nav__links a.lnk:hover { color: var(--text); }
.nav__cta { display: flex; align-items: center; gap: 18px; }
.nav__phone { font-family: var(--ff-mono); font-size: 13.5px; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.nav__burger {
  display: none; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 10px;
  background: transparent; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; flex: none;
}
.nav__burger span { display: block; width: 18px; height: 2px; background: var(--text); transition: transform .3s var(--ease), opacity .2s; }
body.menu-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .nav__burger span:nth-child(2) { opacity: 0; }
body.menu-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
body.menu-open { overflow: hidden; }

.mnav {
  position: fixed; inset: 0; z-index: 49; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  padding-inline: var(--gutter); transform: translateX(100%);
  transition: transform .45s var(--ease); visibility: hidden;
}
.mnav.open { transform: none; visibility: visible; }
.mnav a { font-family: var(--ff-display); font-weight: 700; font-size: clamp(34px, 10vw, 56px); letter-spacing: -0.025em; padding: 8px 0; color: var(--text); }
.mnav a:active { color: var(--primary); }
.mnav a.sm { font-family: var(--ff-mono); font-size: 15px; font-weight: 600; color: var(--muted); margin-top: 24px; }
.mnav .mnav__cta { margin-top: 18px; align-self: flex-start; }
@media (max-width: 940px) {
  .nav__links { display: none; }
  .nav__phone { display: none; }
  .nav__cta .btn { display: none; }
  .nav__burger { display: flex; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: clamp(48px, 8vw, 96px); padding-bottom: clamp(60px, 9vw, 120px); overflow: hidden; }
.hero__grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 0%, #000 30%, transparent 75%);
  opacity: .6;
  animation: gridpan 28s linear infinite;
}
@keyframes gridpan { to { background-position: 64px 64px, 64px 64px; } }

.hero__spot {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(440px circle at var(--mx, 50%) var(--my, 28%), color-mix(in oklab, var(--primary) 24%, transparent), transparent 62%);
  opacity: 0; transition: opacity .5s var(--ease);
  mix-blend-mode: screen;
}
.hero:hover .hero__spot { opacity: 1; }
.hero__orb {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; z-index: 0;
  pointer-events: none; will-change: transform;
}
.hero__orb.a { width: 460px; height: 460px; background: var(--blue);   top: -160px; right: -60px; opacity: .35; animation: drifta 19s ease-in-out infinite; }
.hero__orb.b { width: 380px; height: 380px; background: var(--purple); top: 120px; left: -140px; opacity: .28; animation: driftb 23s ease-in-out infinite; }
.hero__orb.c { width: 300px; height: 300px; background: var(--orange); bottom: -120px; right: 22%; opacity: .18; animation: driftc 27s ease-in-out infinite; }
@keyframes drifta { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-46px, 52px) scale(1.12); } }
@keyframes driftb { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(60px, -30px) scale(1.1); } }
@keyframes driftc { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-40px, -44px) scale(1.18); } }
.hero .wrap { position: relative; z-index: 1; }

/* light-theme hero background tuning */
:root[data-theme="light"] .hero__orb { mix-blend-mode: multiply; filter: blur(85px); }
:root[data-theme="light"] .hero__orb.a { opacity: .16; }
:root[data-theme="light"] .hero__orb.b { opacity: .15; }
:root[data-theme="light"] .hero__orb.c { opacity: .12; }
:root[data-theme="light"] .hero__grid-bg { opacity: .9; }
:root[data-theme="light"] .hero__spot {
  mix-blend-mode: normal;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 28%), color-mix(in oklab, var(--primary) 18%, transparent), transparent 64%);
}

.hero__tag { margin-bottom: 28px; }
.hero h1 {
  font-size: clamp(44px, 9vw, 124px);
  line-height: 0.92;
  letter-spacing: -0.035em;
  margin-bottom: 30px;
}
.hero h1 .w { display: inline-block; }
.hero h1 .c1 { color: var(--blue); }
.hero h1 .c2 { color: var(--orange); }
.hero h1 .c3 { color: var(--purple); }
.hero__lead {
  font-size: clamp(18px, 2.4vw, 24px);
  color: var(--muted);
  max-width: 30ch;
  margin: 0 0 38px;
  font-weight: 500;
}
.hero__lead b { color: var(--text); font-weight: 700; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.hero__stats { display: flex; gap: clamp(28px, 5vw, 64px); margin-top: clamp(56px, 8vw, 96px); flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 34px; }
.stat__num { font-family: var(--ff-display); font-weight: 700; font-size: clamp(32px, 4vw, 50px); line-height: 1; letter-spacing: -0.03em; }
.stat__num .u { color: var(--primary); }
.stat__lbl { color: var(--muted); font-size: 14px; margin-top: 8px; max-width: 22ch; }

/* ---------- marquee ---------- */
.marquee { border-block: 1px solid var(--line); padding-block: 0; overflow: hidden; background: var(--bg-deep); }
.marquee__track { display: flex; gap: 0; width: max-content; animation: marq calc(38s / var(--anim)) linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { font-family: var(--ff-display); font-weight: 700; font-size: clamp(22px, 3vw, 34px); letter-spacing: -0.02em; padding: 22px 34px; color: var(--text); display: flex; align-items: center; gap: 34px; white-space: nowrap; opacity: .55; }
.marquee__item::after { content: "✦"; color: var(--primary); font-size: 16px; opacity: 1; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ============================================================
   SERVICES (под ключ) — 6 cards
   ============================================================ */
.services { background: var(--bg); }
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 920px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--surface);
  padding: 36px 32px 40px;
  position: relative;
  transition: background .3s var(--ease);
  min-height: 290px;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 80% at 0% 0%, var(--glow), transparent 60%);
  opacity: 0; transition: opacity .35s var(--ease);
}
.card:hover { background: var(--surface-2); }
.card:hover::before { opacity: .5; }
.card__no { font-family: var(--ff-mono); font-size: 12px; color: var(--primary); letter-spacing: .1em; }
.card__icon { width: 44px; height: 44px; margin: 0 0 auto auto; position: relative; }
.card__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 56px; }
.card h3 { font-size: 25px; margin-bottom: 12px; position: relative; }
.card p { color: var(--muted); font-size: 15px; line-height: 1.5; margin: 0; position: relative; }
.card__arrow { margin-top: 18px; color: var(--primary); font-family: var(--ff-mono); font-size: 13px; display:flex; align-items:center; gap:8px; opacity:0; transform: translateY(6px); transition: all .3s var(--ease); position: relative; }
.card:hover .card__arrow { opacity:1; transform: translateY(0); }

/* glyph icons (pure CSS/borders, simple shapes only) */
.gly { width: 42px; height: 42px; border-radius: 11px; border: 1.5px solid var(--line-2); display: grid; place-items: center; color: var(--primary); transition: border-color .3s, color .3s; }
.card:hover .gly { border-color: var(--primary); }
.gly svg { width: 22px; height: 22px; }

/* ============================================================
   DETAILED SERVICES w/ pricing
   ============================================================ */
.detail { background: var(--bg-deep); }
.dlist { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.drow {
  display: grid;
  grid-template-columns: 64px minmax(0,1.1fr) minmax(0,1.4fr) auto;
  gap: 28px;
  align-items: start;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: padding .35s var(--ease);
}
.drow::after { content:""; position:absolute; left:0; bottom:-1px; height:2px; width:0; background: var(--primary); transition: width .4s var(--ease); }
.drow:hover::after { width: 100%; }
.drow:hover { padding-inline: 16px; }
.drow__no { font-family: var(--ff-mono); font-size: 13px; color: var(--muted); padding-top: 6px; }
.drow h3 { font-size: clamp(22px, 2.6vw, 30px); }
.drow__desc { color: var(--muted); font-size: 15px; line-height: 1.6; }
.drow__price { text-align: right; white-space: nowrap; }
.drow__price .from { font-family: var(--ff-mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; display:block; }
.drow__price .val { font-family: var(--ff-display); font-weight: 700; font-size: clamp(20px, 2.4vw, 28px); color: var(--text); letter-spacing: -0.02em; }
.drow__price .val .cur { color: var(--primary); }
.drow__price .per { font-size: 13px; color: var(--muted); font-family: var(--ff-body); font-weight: 600; }
@media (max-width: 860px) {
  .drow { grid-template-columns: 40px 1fr; gap: 14px 16px; }
  .drow__desc { grid-column: 1 / -1; }
  .drow__price { grid-column: 2 / -1; text-align: left; margin-top: 6px; }
  .drow:hover { padding-inline: 0; }
}

/* ============================================================
   TECH STACK
   ============================================================ */
.tech { background: var(--bg); }
.tech__os {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--ff-mono); font-size: 13px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px;
  margin-bottom: 40px;
}
.tech__os b { color: var(--text); font-weight: 700; }
.stack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 980px) { .stack { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .stack { grid-template-columns: 1fr; } }
.stack__col { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 26px 24px; transition: transform .3s var(--ease), border-color .3s; }
.stack__col:hover { transform: translateY(-5px); border-color: var(--line-2); }
.stack__col h4 { font-family: var(--ff-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); margin: 0 0 18px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 13.5px; font-weight: 600; padding: 6px 13px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); }
.chip.lang { color: var(--text); }
.stack__note { color: var(--muted); font-size: 13px; line-height: 1.5; margin-top: 14px; }
.stack__wider { margin-top: 22px; color: var(--muted); font-size: 14px; line-height: 1.6; max-width: 70ch; padding-left: 16px; border-left: 2px solid var(--primary); }

/* ============================================================
   CTA band
   ============================================================ */
.ctaband { background: linear-gradient(135deg, color-mix(in oklab, var(--primary) 22%, var(--bg)), var(--bg)); border-block: 1px solid var(--line); overflow: hidden; }
.ctaband__in { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.ctaband h2 { font-size: clamp(30px, 4.6vw, 60px); max-width: 16ch; line-height: 1; }
.ctaband h2 em { font-style: normal; color: var(--primary); }

/* ============================================================
   CONTACT + form
   ============================================================ */
.contact { background: var(--bg-deep); }
.contact__grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
@media (max-width: 880px) { .contact__grid { grid-template-columns: 1fr; gap: 48px; } }
.contact__info h2 { font-size: clamp(32px, 4.5vw, 56px); margin-bottom: 24px; }
.contact__lead { color: var(--muted); font-size: 17px; max-width: 36ch; margin-bottom: 36px; }
.cinfo { display: flex; flex-direction: column; gap: 4px; }
.cinfo a { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); transition: color .2s; font-weight: 600; white-space: nowrap; }
.cinfo a:hover { color: var(--primary); }
.cinfo .ic { width: 20px; color: var(--primary); display:flex; }
.cinfo .lab { font-family: var(--ff-mono); font-size: 11px; color: var(--muted); letter-spacing:.1em; text-transform:uppercase; margin-left:auto; }
.socials { display: flex; gap: 10px; margin-top: 28px; flex-wrap: wrap; }
.soc { display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 600; transition: all .25s var(--ease); }
.soc:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.soc svg { width: 17px; height: 17px; }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(28px, 4vw, 44px); }
.form__title { font-family: var(--ff-display); font-weight: 700; font-size: 22px; margin-bottom: 6px; }
.form__sub { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--ff-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line-2); border-radius: 11px;
  color: var(--text); font-family: var(--ff-body); font-size: 15.5px; padding: 14px 16px;
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder, .field textarea::placeholder { color: color-mix(in oklab, var(--muted) 72%, transparent); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--glow); }
.field input.invalid, .field textarea.invalid { border-color: var(--orange); }
.field textarea { resize: vertical; min-height: 96px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .row2 { grid-template-columns: 1fr; } }
.consent { display: flex; gap: 11px; align-items: flex-start; margin: 6px 0 22px; }
.consent input { margin-top: 3px; accent-color: var(--primary); width: 16px; height: 16px; flex: none; }
.consent label, .consent .consent__txt { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.consent a, .consent .link-btn { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; font-size: 12.5px; }
.form .btn { width: 100%; justify-content: center; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.btn.loading { opacity: .75; pointer-events: none; }
.btn .spin { width: 16px; height: 16px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; display: inline-block; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form__err { display: none; font-size: 13px; line-height: 1.5; color: var(--orange); margin: 0 0 14px; padding: 11px 14px; border: 1px solid color-mix(in oklab, var(--orange) 42%, transparent); border-radius: 11px; background: color-mix(in oklab, var(--orange) 12%, transparent); }
.form__err.show { display: block; }
.form__ok { display:none; text-align:center; padding: 14px; }
.form__ok .ico { width: 56px; height: 56px; border-radius: 50%; background: color-mix(in oklab, var(--primary) 18%, transparent); color: var(--primary); display:grid; place-items:center; margin: 0 auto 16px; }
.form.sent .form__body { display: none; }
.form.sent .form__ok { display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg); border-top: 1px solid var(--line); padding-block: clamp(56px, 7vw, 88px) 36px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
@media (max-width: 760px) { .footer__top { grid-template-columns: 1fr; gap: 32px; } }
.footer__brand .brand { margin-bottom: 18px; }
.footer__brand p { color: var(--muted); font-size: 14px; max-width: 34ch; }
.footer__col h5 { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; font-weight: 600; }
.footer__col a, .footer__col p { display: block; color: var(--text); font-size: 14.5px; margin-bottom: 11px; transition: color .2s; }
.footer__col a:hover { color: var(--primary); }
.legal { padding-top: 28px; color: var(--muted); font-size: 12.5px; line-height: 1.7; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.legal__req { font-family: var(--ff-mono); font-size: 11.5px; letter-spacing: .02em; }
.legal a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.legal a:hover { color: var(--text); }

/* ============================================================
   COOKIES
   ============================================================ */
.cookie {
  position: fixed; left: 20px; right: 20px; bottom: 20px; z-index: 80;
  max-width: 520px; margin-inline: auto;
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 14px;
  padding: 18px 20px; display: flex; gap: 16px; align-items: center;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,.6);
  transition: transform .4s var(--ease), opacity .4s;
}
.cookie.hide { transform: translateY(140%); opacity: 0; pointer-events: none; }
.cookie p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.cookie a { color: var(--primary); text-decoration: underline; }
.cookie .btn { padding: 10px 22px; font-size: 14px; flex: none; }

/* ============================================================
   reveal animation
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .06s; }
.reveal.d2 { transition-delay: .12s; }
.reveal.d3 { transition-delay: .18s; }
.reveal.d4 { transition-delay: .24s; }
.reveal.d5 { transition-delay: .30s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee__track, .hero__orb, .hero__grid-bg { animation: none !important; }
  .hero__spot { display: none; }
}

/* ============================================================
   TWEAK VARIANTS
   ============================================================ */
/* hero background style */
body[data-hero="minimal"] .hero__grid-bg,
body[data-hero="minimal"] .hero__orb { display: none; }
body[data-hero="minimal"] .hero { background: var(--bg-deep); }

/* heading color mode */
body[data-heading="mono"] .hero h1 .c1,
body[data-heading="mono"] .hero h1 .c2,
body[data-heading="mono"] .hero h1 .c3 { color: var(--text); }
body[data-heading="mono"] .ctaband h2 em { color: var(--text); }
body[data-heading="accent"] .hero h1 .c1,
body[data-heading="accent"] .hero h1 .c2,
body[data-heading="accent"] .hero h1 .c3 { color: var(--primary); }

/* display font swap */
body[data-display="sora"] { --ff-display: "Sora", system-ui, sans-serif; }
body[data-display="sora"] h1,
body[data-display="sora"] h2,
body[data-display="sora"] h3 { letter-spacing: -0.03em; }

/* motion off */
body.no-anim .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
body.no-anim .marquee__track { animation: none !important; }
body.no-anim .hero__orb { transform: none !important; animation: none !important; }
body.no-anim .hero__grid-bg { animation: none !important; }
body.no-anim .hero__spot { display: none; }

/* ============================================================
   REQUISITES (org details / ОКВЭД)
   ============================================================ */
.requisites { margin-top: 24px; }
.requisites > summary {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px;
  transition: color .2s, border-color .2s; user-select: none;
}
.requisites > summary::-webkit-details-marker { display: none; }
.requisites > summary:hover { color: var(--text); border-color: var(--line-2); }
.requisites > summary .chev { transition: transform .25s var(--ease); display: inline-flex; }
.requisites[open] > summary .chev { transform: rotate(180deg); }
.req__body { padding-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; }
@media (max-width: 760px) { .req__body { grid-template-columns: 1fr; } }
.req__block h6 { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--primary); margin: 0 0 12px; font-weight: 600; }
.req__block p { color: var(--text); font-size: 13.5px; line-height: 1.65; margin: 0 0 4px; }
.req__block p .k { color: var(--muted); }
.okved { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; }
.okved li { list-style: none; display: block; font-size: 13px; line-height: 1.5; padding-left: 58px; text-indent: -58px; }
.okved li .code { display: inline-block; width: 46px; text-indent: 0; font-family: var(--ff-mono); font-size: 12.5px; color: var(--primary); font-weight: 600; margin-right: 12px; }
.okved li.main .code { color: var(--orange); }
.okved li .nm { color: var(--muted); }
.okved li.main .nm { color: var(--text); font-weight: 600; }

/* inline link button (mobile-safe, opens doc) */
.link-btn {
  appearance: none; background: none; border: none; padding: 0; cursor: pointer;
  font: inherit; color: var(--primary); text-decoration: underline; text-underline-offset: 2px;
}
.link-btn:hover { opacity: .8; }

/* ============================================================
   DOC MODAL
   ============================================================ */
.modal { position: fixed; inset: 0; z-index: 100; display: none; }
.modal.open { display: block; }
.modal__overlay { position: absolute; inset: 0; background: rgba(3,5,12,.72); backdrop-filter: blur(4px); animation: fade .25s var(--ease); }
.modal__panel {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: min(720px, calc(100vw - 32px)); max-height: min(82vh, 760px);
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 40px 120px -30px rgba(0,0,0,.7); animation: pop .3s var(--ease);
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translate(-50%,-46%) scale(.98); } }
.modal__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 26px; border-bottom: 1px solid var(--line); flex: none; }
.modal__head h3 { font-size: 19px; }
.modal__close { appearance: none; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); cursor: pointer; font-size: 20px; line-height: 1; display: grid; place-items: center; transition: border-color .2s, color .2s; flex: none; }
.modal__close:hover { border-color: var(--primary); color: var(--primary); }
.modal__body { overflow-y: auto; padding: 24px 26px 30px; }
.modal__body p { font-size: 14px; line-height: 1.7; color: var(--text); margin: 0 0 14px; }
.modal__body p.dim { color: var(--muted); }
.modal__body h4 { font-family: var(--ff-display); font-size: 15px; margin: 22px 0 8px; }
.modal__body ul { margin: 0 0 14px; padding-left: 20px; }
.modal__body li { font-size: 14px; line-height: 1.6; color: var(--muted); margin-bottom: 6px; }
.modal__body .meta { font-family: var(--ff-mono); font-size: 11.5px; color: var(--muted); letter-spacing: .02em; margin-bottom: 18px; }
