/* ============================================================
   КОГДА УДОБНО — v2  «STUDIO»
   Editorial × engineering. Ink / bone / acid-lime.
   ============================================================ */

:root {
  --ink:    #0c0d0e;
  --ink-2:  #131416;
  --ink-3:  #1b1c1f;
  --bone:   #ece9e1;
  --bone-2: #e3dfd4;
  --muted:  #8a8c8f;
  --faint:  #54565a;
  --line:   rgba(236,233,225,0.13);
  --line-2: rgba(236,233,225,0.26);
  --acid:   #d4fb50;
  --acid-d: #b9e02f;
  --acid-fg: var(--acid);   /* foreground accent (text/icons) — overridden in light */
  --on-acid: #0c0d0e;       /* text/icon colour placed on top of an --acid fill */

  --ff-disp: "Roboto Condensed", system-ui, sans-serif;
  --ff-body: "Roboto Condensed", system-ui, sans-serif;
  --ff-mono: "JetBrains Mono", ui-monospace, monospace;
  --ff-serif: "Instrument Serif", Georgia, serif;

  --gut: clamp(18px, 4vw, 56px);
  --maxw: 1400px;
  --ease: cubic-bezier(.19,1,.22,1);
}

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

body {
  margin: 0;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--ff-body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@media (hover: hover) and (pointer: fine) {
  body.cursor-on, body.cursor-on * { cursor: none !important; }
}
::selection { background: var(--acid); color: var(--on-acid); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

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

/* ---------- type helpers ---------- */
.mono { font-family: var(--ff-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.tag {
  font-family: var(--ff-mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); display: inline-flex; align-items: center; gap: 9px;
}
.tag .dot { width: 6px; height: 6px; background: var(--acid); border-radius: 50%; display: inline-block; }
.serif { font-family: var(--ff-serif); font-style: italic; font-weight: 400; }

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

/* section scaffolding */
section { position: relative; padding-block: clamp(64px, 9vw, 132px); }
.sec-no {
  font-family: var(--ff-mono); font-size: 12px; color: var(--muted); letter-spacing: .1em;
  display: flex; align-items: center; gap: 12px; margin-bottom: 28px;
}
.sec-no::before { content: ""; flex: none; width: 40px; height: 1px; background: var(--acid); }
.sec-title { font-size: clamp(34px, 6vw, 84px); line-height: 0.92; letter-spacing: -0.03em; }

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor, .cursor-dot { position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none; border-radius: 50%; mix-blend-mode: difference; }
.cursor { width: 34px; height: 34px; border: 1px solid var(--bone); transform: translate(-50%,-50%); transition: width .25s var(--ease), height .25s var(--ease), background .25s, border-color .25s; }
.cursor-dot { width: 5px; height: 5px; background: var(--bone); transform: translate(-50%,-50%); }
body.cursor-link .cursor { width: 60px; height: 60px; background: var(--bone); border-color: var(--bone); }
body.cursor-link .cursor-dot { opacity: 0; }
.cursor.hidden, .cursor-dot.hidden { opacity: 0; }
@media (hover: none), (pointer: coarse) { .cursor, .cursor-dot { display: none; } }

/* ============================================================
   TOP BAR
   ============================================================ */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 200; background: rgba(12,13,14,.78); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
:root[data-theme="light"] .bar { background: rgba(245,243,236,.82); }
.bar__in { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 64px; }
.bar__logo { font-family: var(--ff-disp); font-weight: 800; font-size: 16px; letter-spacing: -0.01em; color: var(--bone); }
.bar__logo b { color: var(--bone); }
.bar__mid { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.bar__nav { justify-self: end; display: flex; gap: 26px; }
.bar__nav a { font-family: var(--ff-mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--bone); opacity: .8; transition: opacity .2s; }
.bar__nav a:hover { opacity: 1; }
.bar__burger { display: none; width: 40px; height: 40px; border: 1px solid var(--line-2); background: transparent; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.bar__burger span { display: block; width: 18px; height: 2px; background: var(--bone); transition: transform .3s var(--ease), opacity .2s; }
body.menu-open .bar__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.menu-open .bar__burger span:nth-child(2) { opacity: 0; }
body.menu-open .bar__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
body.menu-open { overflow: hidden; }
.mnav2 { position: fixed; inset: 0; z-index: 190; background: var(--ink); display: flex; flex-direction: column; justify-content: center; gap: 4px; padding-inline: var(--gut); transform: translateY(-100%); transition: transform .45s var(--ease); visibility: hidden; }
.mnav2.open { transform: none; visibility: visible; }
.mnav2 a { font-family: var(--ff-disp); font-weight: 800; font-size: clamp(38px, 11vw, 64px); letter-spacing: -0.03em; padding: 6px 0; color: var(--bone); }
.mnav2 a:active { color: var(--acid-fg); }
.mnav2 a.sm { font-family: var(--ff-mono); font-weight: 500; font-size: 14px; color: var(--muted); margin-top: 26px; text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 720px) { .bar__mid { display: none; } .bar__nav a { display: none; } .bar__burger { display: flex; } .bar__in { grid-template-columns: 1fr auto; } }

/* scroll progress + section counter */
.hud { position: fixed; right: var(--gut); bottom: 24px; z-index: 190; font-family: var(--ff-mono); font-size: 11px; letter-spacing: .1em; color: var(--muted); display: flex; align-items: center; gap: 10px; mix-blend-mode: difference; }
.hud .cur { color: #fff; }
.hud__bar { width: 60px; height: 2px; background: var(--line-2); position: relative; }
.hud__bar i { position: absolute; inset: 0 auto 0 0; background: var(--acid); width: var(--p, 0%); }
@media (max-width: 720px) { .hud { display: none; } }

/* ============================================================
   BUTTONS
   ============================================================ */
.cta {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--ff-mono); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; font-weight: 600;
  background: var(--acid); color: var(--on-acid);
  padding: 17px 26px; border: none; border-radius: 0;
  position: relative; overflow: hidden; will-change: transform;
  transition: color 0s linear .2s;
}
.cta span { position: relative; z-index: 1; }
.cta::after { content: ""; position: absolute; inset: 0; background: var(--bone); transform: translateY(101%); transition: transform .4s var(--ease); }
.cta:hover::after { transform: translateY(0); }
.cta:not(.cta--ghost):hover { color: var(--ink); }
.cta--ghost { background: transparent; color: var(--bone); border: 1px solid var(--line-2); }
.cta--ghost::after { background: var(--acid); }
.cta--ghost:hover { color: var(--on-acid); }
.cta .ar { transition: transform .3s var(--ease); }
.cta:hover .ar { transform: translate(4px,-4px); }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding-top: clamp(110px, 16vh, 170px); padding-bottom: clamp(48px, 7vw, 90px); border-bottom: 1px solid var(--line); }
.hero__grid { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: clamp(28px, 4vw, 60px); align-items: end; }
@media (max-width: 920px) { .hero__grid { grid-template-columns: 1fr; gap: 40px; } }
.hero__tag { margin-bottom: clamp(26px, 4vw, 46px); }
.hero h1 { font-size: clamp(44px, 7.6vw, 118px); line-height: 0.9; letter-spacing: -0.04em; }
.hero h1 .ln { display: block; overflow: hidden; }
.hero h1 .acc { color: var(--acid-fg); }
.hero h1 em { font-family: var(--ff-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--bone); }
.hero__lead { margin-top: clamp(24px, 3vw, 38px); max-width: 40ch; color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); }
.hero__lead b { color: var(--bone); font-weight: 600; }
.hero__actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }

/* terminal / build-log */
.term { background: var(--ink-2); border: 1px solid var(--line); font-family: var(--ff-mono); font-size: 12.5px; line-height: 1.7; }
.term__bar { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; letter-spacing: .04em; }
.term__bar .d { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.term__bar .d:nth-child(1) { background: #ff5f57; }
.term__bar .d:nth-child(2) { background: #febc2e; }
.term__bar .d:nth-child(3) { background: var(--acid); }
.term__bar .ttl { margin-left: 8px; }
.term__body { padding: 16px 16px 20px; min-height: 248px; }
.term__line { white-space: pre-wrap; word-break: break-word; }
.term__line .p { color: var(--acid-fg); }
.term__line .ok { color: var(--acid-fg); }
.term__line .c { color: var(--muted); }
.term__caret { display: inline-block; width: 8px; height: 15px; background: var(--acid); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* hero meta strip */
.hero__meta { margin-top: clamp(40px, 6vw, 76px); display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 720px) { .hero__meta { grid-template-columns: repeat(2, 1fr); } }
.hmeta { background: var(--ink); padding: 20px 22px; }
.hmeta .k { font-family: var(--ff-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.hmeta .v { font-family: var(--ff-disp); font-weight: 700; font-size: clamp(20px, 2.2vw, 28px); margin-top: 8px; letter-spacing: -0.02em; }
.hmeta .v small { color: var(--acid-fg); }

/* ============================================================
   MARQUEE
   ============================================================ */
.marq { border-bottom: 1px solid var(--line); overflow: hidden; background: var(--ink); }
.marq__t { display: flex; width: max-content; animation: scroll 34s linear infinite; }
.marq:hover .marq__t { animation-play-state: paused; }
.marq__i { font-family: var(--ff-disp); font-weight: 800; font-size: clamp(28px, 4.4vw, 58px); letter-spacing: -0.03em; padding: 20px 30px; display: flex; align-items: center; gap: 30px; white-space: nowrap; }
.marq__i::after { content: "✸"; color: var(--acid-fg); font-size: 0.5em; }
.marq__i.out { -webkit-text-stroke: 1px var(--bone); color: transparent; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ============================================================
   SERVICES INDEX
   ============================================================ */
.svc { border-bottom: 1px solid var(--line); }
.svc__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap; margin-bottom: clamp(34px, 4vw, 56px); }
.svc__head p { max-width: 40ch; color: var(--muted); margin: 0; }
.svc__head p .acid { color: var(--acid-fg); }

.idx { border-top: 1px solid var(--line); }
.row {
  display: grid; grid-template-columns: 70px 1fr; align-items: baseline;
  border-bottom: 1px solid var(--line); padding: clamp(20px, 2.4vw, 30px) 0;
  position: relative; transition: padding-left .45s var(--ease), background .3s;
}
.row::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--ink-2); z-index: -1; transition: width .45s var(--ease); }
.row:hover { padding-left: 26px; }
.row:hover::before { width: 100%; }
.row__no { font-family: var(--ff-mono); font-size: 12px; color: var(--muted); padding-top: 10px; }
.row:hover .row__no { color: var(--acid-fg); }
.row__main { display: grid; grid-template-columns: 1fr 1.1fr auto; gap: 24px; align-items: baseline; }
@media (max-width: 820px) { .row__main { grid-template-columns: 1fr; gap: 10px; } }
.row__t { font-family: var(--ff-disp); font-weight: 700; font-size: clamp(26px, 3.4vw, 44px); letter-spacing: -0.025em; transition: color .3s; }
.row:hover .row__t { color: var(--acid-fg); }
.row__d { color: var(--muted); font-size: 14.5px; line-height: 1.55; max-width: 46ch; }
.row__x { font-family: var(--ff-mono); font-size: 12px; color: var(--muted); justify-self: end; align-self: center; opacity: 0; transform: translateX(-8px); transition: all .35s var(--ease); }
@media (max-width: 820px) { .row__x { display: none; } }
.row:hover .row__x { opacity: 1; transform: none; color: var(--acid-fg); }

/* ============================================================
   PRICING SPEC SHEET
   ============================================================ */
.spec { border-bottom: 1px solid var(--line); }
.spec__list { border-top: 1px solid var(--line); }
.prow { display: grid; grid-template-columns: 60px 1.1fr 1.5fr auto; gap: 26px; padding: 30px 0; border-bottom: 1px solid var(--line); align-items: start; }
@media (max-width: 880px) { .prow { grid-template-columns: 40px 1fr; gap: 10px 16px; } .prow__d { grid-column: 1/-1; } .prow__p { grid-column: 2/-1; text-align: left; } }
.prow__no { font-family: var(--ff-mono); font-size: 12px; color: var(--muted); padding-top: 6px; }
.prow__t { font-family: var(--ff-disp); font-weight: 700; font-size: clamp(20px, 2.4vw, 30px); letter-spacing: -0.02em; }
.prow__d { color: var(--muted); font-size: 14px; line-height: 1.6; }
.prow__p { justify-self: end; text-align: right; white-space: nowrap; position: relative; }
.prow__p .f { font-family: var(--ff-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.prow__p .n { font-family: var(--ff-disp); font-weight: 800; font-size: clamp(20px, 2.4vw, 30px); letter-spacing: -0.02em; }
.prow__p .n b { color: var(--acid-fg); font-weight: 800; }
.prow__p .per { position: absolute; top: 100%; right: 0; margin-top: 3px; font-size: 11px; color: var(--muted); font-family: var(--ff-mono); letter-spacing: .04em; }

/* ============================================================
   STACK (code window + chips)
   ============================================================ */
.stack { border-bottom: 1px solid var(--line); }
.stack__grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(28px, 4vw, 60px); align-items: start; }
.stack__grid > * { min-width: 0; }
@media (max-width: 920px) { .stack__grid { grid-template-columns: 1fr; gap: 36px; } }
.code { background: var(--ink-2); border: 1px solid var(--line); font-family: var(--ff-mono); font-size: 13px; line-height: 1.75; position: sticky; top: 90px; }
@media (max-width: 920px) { .code { position: static; } }
.code__bar { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.code__bar .d { width: 9px; height: 9px; border-radius: 50%; }
.code__bar .d:nth-child(1){background:#ff5f57;} .code__bar .d:nth-child(2){background:#febc2e;} .code__bar .d:nth-child(3){background:var(--acid);}
.code__body { padding: 18px 18px 22px; overflow-x: auto; }
.code__body pre { margin: 0; white-space: pre; }
.code .kw { color: #c792ea; } .code .fn { color: var(--acid-fg); } .code .str { color: #ecc48d; } .code .cm { color: var(--faint); } .code .nm { color: #82aaff; } .code .pn { color: var(--muted); }

.cats { display: flex; flex-direction: column; }
.cat { border-top: 1px solid var(--line); padding: 22px 0; }
.cat:first-child { border-top: none; }
.cat__h { display: flex; align-items: baseline; gap: 14px; margin-bottom: 14px; }
.cat__h .n { font-family: var(--ff-mono); font-size: 11px; color: var(--muted); }
.cat__h h4 { font-family: var(--ff-disp); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { font-family: var(--ff-mono); font-size: 12.5px; padding: 6px 11px; border: 1px solid var(--line); color: var(--bone); transition: border-color .2s, color .2s; }
.chip:hover { border-color: var(--acid-fg); color: var(--acid-fg); }
.stack__note { margin-top: 26px; color: var(--muted); font-size: 14px; line-height: 1.6; max-width: 70ch; padding-left: 16px; border-left: 2px solid var(--acid); }

/* ============================================================
   MANIFESTO (inverted bone section)
   ============================================================ */
.mani { background: var(--bone); color: var(--ink); }
.mani .sec-no { color: #54565a; }
.mani .sec-no::before { background: var(--ink); }
.mani__big { font-family: var(--ff-disp); font-weight: 800; font-size: clamp(30px, 5vw, 68px); line-height: 1.02; letter-spacing: -0.03em; max-width: 18ch; }
.mani__big em { font-family: var(--ff-serif); font-style: italic; font-weight: 400; }
.mani__big .u { background: var(--acid); padding: 0 .12em; }
.mani__cols { margin-top: clamp(40px, 5vw, 70px); display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); }
@media (max-width: 820px) { .mani__cols { grid-template-columns: 1fr; gap: 28px; } }
.mcol { border-top: 1px solid rgba(12,13,14,.18); padding-top: 18px; }
.mcol .n { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .12em; color: #54565a; }
.mcol h5 { font-family: var(--ff-disp); font-weight: 700; font-size: 21px; margin: 12px 0 8px; letter-spacing: -0.01em; }
.mcol p { color: #44464a; font-size: 14.5px; line-height: 1.6; margin: 0; }

/* ============================================================
   CTA BAND
   ============================================================ */
.band { border-bottom: 1px solid var(--line); padding-block: clamp(70px, 11vw, 150px); text-align: center; position: relative; overflow: hidden; }
.band h2 { font-size: clamp(40px, 9vw, 140px); line-height: 0.88; letter-spacing: -0.04em; }
.band h2 em { font-family: var(--ff-serif); font-style: italic; font-weight: 400; color: var(--acid-fg); }
.band__sub { margin: 26px auto 36px; color: var(--muted); max-width: 44ch; }

/* ============================================================
   CONTACT + FORM
   ============================================================ */
.contact { border-bottom: 1px solid var(--line); }
.contact__grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(34px, 5vw, 80px); align-items: start; }
@media (max-width: 880px) { .contact__grid { grid-template-columns: 1fr; gap: 44px; } }
.contact h2 { font-size: clamp(34px, 5vw, 64px); line-height: 0.94; letter-spacing: -0.03em; }
.contact h2 em { font-family: var(--ff-serif); font-style: italic; font-weight: 400; }
.clines { margin-top: 32px; }
.cline { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); font-family: var(--ff-mono); font-size: 14px; transition: color .2s; }
.cline:last-of-type { border-bottom: 1px solid var(--line); }
.cline:hover { color: var(--acid-fg); }
.cline .k { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.socs { margin-top: 24px; display: flex; gap: 8px; flex-wrap: wrap; }
.soc { font-family: var(--ff-mono); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; padding: 10px 16px; border: 1px solid var(--line); transition: all .25s var(--ease); }
.soc:hover { background: var(--acid); color: var(--on-acid); border-color: var(--acid-fg); }

.form { border: 1px solid var(--line); padding: clamp(24px, 3.4vw, 40px); background: var(--ink-2); }
.form__h { font-family: var(--ff-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 26px; display: flex; justify-content: space-between; }
.form__h .acid { color: var(--acid-fg); }
.f { margin-bottom: 18px; }
.f label { display: block; font-family: var(--ff-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.f input, .f textarea { width: 100%; background: var(--ink); border: 1px solid var(--line-2); color: var(--bone); font-family: var(--ff-body); font-size: 15.5px; padding: 14px 15px; transition: border-color .2s; }
.f input::placeholder, .f textarea::placeholder { color: var(--faint); }
.f input:focus, .f textarea:focus { outline: none; border-color: var(--acid-fg); }
.f input.invalid, .f textarea.invalid { border-color: #ff5f57; }
.f textarea { resize: vertical; min-height: 92px; }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .f2 { grid-template-columns: 1fr; } }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.consent { display: flex; gap: 11px; align-items: flex-start; margin: 4px 0 20px; }
.consent input { margin-top: 3px; width: 16px; height: 16px; flex: none; accent-color: var(--acid-fg); }
.consent .t { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.lk { background: none; border: none; padding: 0; font: inherit; color: var(--acid-fg); text-decoration: underline; text-underline-offset: 2px; cursor: pointer; font-size: 12.5px; }
.form .cta { width: 100%; justify-content: center; }
.form .cta.loading { opacity: .7; pointer-events: none; }
.spin { width: 15px; height: 15px; 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; color: #ff7a72; margin-bottom: 14px; padding: 11px 14px; border: 1px solid rgba(255,95,87,.4); background: rgba(255,95,87,.08); }
.form__err.show { display: block; }
.form__ok { display: none; text-align: center; padding: 30px 10px; }
.form.sent .form__inner { display: none; }
.form.sent .form__ok { display: block; }
.form__ok .ico { width: 54px; height: 54px; border: 1px solid var(--acid); color: var(--acid-fg); display: grid; place-items: center; margin: 0 auto 18px; border-radius: 50%; }
.form__ok h4 { font-family: var(--ff-disp); font-weight: 700; font-size: 22px; margin-bottom: 6px; }
.form__ok p { color: var(--muted); font-size: 14px; margin: 0; }

/* ============================================================
   FOOTER + requisites
   ============================================================ */
.foot { padding-block: clamp(56px, 7vw, 90px) 36px; }
.foot__top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px; padding-bottom: 44px; border-bottom: 1px solid var(--line); }
@media (max-width: 760px) { .foot__top { grid-template-columns: 1fr; gap: 30px; } }
.foot__big { font-family: var(--ff-disp); font-weight: 800; font-size: clamp(36px, 7vw, 92px); line-height: 0.9; letter-spacing: -0.04em; }
.foot__big .acc { color: var(--acid-fg); }
.foot__col h6 { font-family: var(--ff-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; }
.foot__col a, .foot__col p { display: block; font-family: var(--ff-mono); font-size: 13px; margin-bottom: 10px; transition: color .2s; }
.foot__col a:hover { color: var(--acid-fg); }
.legal { padding-top: 26px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.legal__r { font-family: var(--ff-mono); font-size: 11px; line-height: 1.7; color: var(--muted); }
.legal__r b { color: var(--bone); font-weight: 500; }
.legal__d { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; }

.req { margin-top: 24px; border-top: 1px solid var(--line); }
.req > summary { list-style: none; cursor: pointer; padding: 18px 0; font-family: var(--ff-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 12px; }
.req > summary::-webkit-details-marker { display: none; }
.req > summary:hover { color: var(--bone); }
.req > summary .pl { color: var(--acid-fg); transition: transform .25s; }
.req[open] > summary .pl { transform: rotate(45deg); }
.req__body { padding-bottom: 26px; display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px 48px; }
@media (max-width: 760px) { .req__body { grid-template-columns: 1fr; } }
.req__b h6 { font-family: var(--ff-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--acid-fg); margin: 0 0 12px; }
.req__b p { font-family: var(--ff-mono); font-size: 12.5px; line-height: 1.7; margin: 0 0 5px; color: var(--bone); }
.req__b 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 .c { display: inline-block; width: 46px; text-indent: 0; font-family: var(--ff-mono); font-size: 12px; color: var(--muted); margin-right: 12px; }
.okved li.main .c { color: var(--acid-fg); }
.okved li .n { color: var(--muted); font-family: var(--ff-body); }
.okved li.main .n { color: var(--bone); }

/* ============================================================
   MODAL
   ============================================================ */
.modal { position: fixed; inset: 0; z-index: 9000; display: none; }
.modal.open { display: block; }
.modal__ov { position: absolute; inset: 0; background: rgba(5,5,6,.8); animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; } }
.modal__p { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: min(720px, calc(100vw - 28px)); max-height: 84vh; background: var(--ink-2); border: 1px solid var(--line-2); display: flex; flex-direction: column; }
.modal__hd { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.modal__hd h3 { font-family: var(--ff-disp); font-weight: 700; font-size: 19px; }
.modal__cl { width: 36px; height: 36px; border: 1px solid var(--line); background: none; color: var(--bone); font-size: 18px; cursor: pointer; transition: border-color .2s, color .2s; }
.modal__cl:hover { border-color: var(--acid-fg); color: var(--acid-fg); }
.modal__bd { overflow-y: auto; padding: 22px 24px 28px; }
.modal__bd p { font-size: 14px; line-height: 1.7; margin: 0 0 13px; }
.modal__bd p.dim { color: var(--muted); }
.modal__bd h4 { font-family: var(--ff-disp); font-weight: 700; font-size: 15px; margin: 20px 0 8px; }
.modal__bd ul { margin: 0 0 13px; padding-left: 18px; } .modal__bd li { color: var(--muted); font-size: 14px; line-height: 1.6; margin-bottom: 5px; }
.modal__bd .meta { font-family: var(--ff-mono); font-size: 11px; color: var(--muted); margin-bottom: 16px; }

/* ============================================================
   reveal
   ============================================================ */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .08s; } .rv.d2 { transition-delay: .16s; } .rv.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .marq__t { animation: none; }
  .term__caret { animation: none; }
}

/* ============================================================
   THEME TOGGLE BUTTON
   ============================================================ */
.bar__theme {
  background: none; border: none; padding: 6px; margin: 0;
  color: var(--bone); cursor: pointer; line-height: 0;
  display: inline-flex; align-items: center; justify-content: center;
  opacity: .82; transition: opacity .2s, transform .2s var(--ease);
}
.bar__theme:hover { opacity: 1; transform: rotate(-18deg); }
.bar__theme:focus-visible { outline: 1px solid currentColor; outline-offset: 3px; }
.bar__theme .ic-moon { display: none; }
.bar__theme .ic-sun { display: block; }
:root[data-theme="light"] .bar__theme .ic-sun { display: none; }
:root[data-theme="light"] .bar__theme .ic-moon { display: block; }

/* ============================================================
   LIGHT THEME  «STUDIO — daylight»
   Bone paper / ink type / deep-lime accents. Device windows
   (terminal, code) stay dark on purpose.
   ============================================================ */
:root[data-theme="light"] {
  --ink:    #f5f3ec;
  --ink-2:  #efece3;
  --ink-3:  #e6e2d7;
  --bone:   #15160f;
  --bone-2: #20211a;
  --muted:  #5b5d56;
  --faint:  #8b8d85;
  --line:   rgba(21,22,15,0.13);
  --line-2: rgba(21,22,15,0.24);
  --acid:   #c6e92f;
  --acid-d: #aacd16;
  --acid-fg: #4f6b00;
  --on-acid: #15160f;
  color-scheme: light;
}

/* keep the terminal + code window dark (IDE look) in light mode */
:root[data-theme="light"] .term,
:root[data-theme="light"] .code { background: #131416; color: #ece9e1; border-color: rgba(236,233,225,.14); }
:root[data-theme="light"] .term__bar,
:root[data-theme="light"] .code__bar { color: #8a8c8f; border-bottom-color: rgba(236,233,225,.14); }
:root[data-theme="light"] .term__line .c,
:root[data-theme="light"] .code .cm,
:root[data-theme="light"] .code .pn { color: #8a8c8f; }
:root[data-theme="light"] .term__line .p,
:root[data-theme="light"] .term__line .ok,
:root[data-theme="light"] .code .fn { color: #d4fb50; }

/* manifesto band stays an inverted (dark) feature in light mode */
:root[data-theme="light"] .mani .sec-no,
:root[data-theme="light"] .mani .mcol .n { color: #8a8c8f; }
:root[data-theme="light"] .mani .mcol p { color: #a8a9a3; }
:root[data-theme="light"] .mani .mcol { border-top-color: rgba(236,233,225,.18); }
:root[data-theme="light"] .mani__big .u { color: var(--on-acid); }
