/* AURA — shared design system (Teal Studio). Neutral graphite + teal, soft sans + mono accents. */
* { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #0f1417; --bg2: #0c1113; --panel: #12191b; --line: #1e2b29;
  --tx: #eaf6f4; --mut: #8ea39d; --dim: #5f746f;
  --teal: #2dd4bf; --teal-d: #14b8a6; --teal-soft: #5eead4;
  --maxw: 1160px;
}
html { scroll-behavior: smooth; zoom: 1.2; }
body { background: var(--bg); color: var(--tx);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
::selection { background: rgba(45,212,191,.28); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.eyebrow { font-family: ui-monospace, monospace; font-size: 12px; letter-spacing: .2em;
  text-transform: uppercase; color: var(--teal); display: inline-flex; align-items: center; gap: 9px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: var(--teal);
  box-shadow: 0 0 12px var(--teal); }
h2.sec { font-size: clamp(26px, 4.2vw, 40px); font-weight: 650; letter-spacing: -.025em; margin: 16px 0 0; text-wrap: balance; }
.sec-lead { color: var(--mut); font-size: 17px; max-width: 58ch; margin-top: 14px; }
.dots { background-image: radial-gradient(rgba(255,255,255,.045) 1px, transparent 1.5px); background-size: 26px 26px; }

/* ---------- NAV ---------- */
header.nav { position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); }
.nav .row { display: flex; align-items: center; gap: 24px; height: 66px; }
.logo { font-size: 20px; font-weight: 700; letter-spacing: .28em; }
.logo span { color: var(--teal); }
/* лого в шапке — с анимированной искрой слева */
.logo-nav { display: inline-flex; align-items: center; gap: 11px; }
.logo-mark { width: 26px; height: 26px; flex: none; overflow: visible; }
.logo-nav .logo-word { color: var(--tx); }
.logo-nav .logo-word span { color: var(--teal); }
.nav nav { margin-left: auto; display: flex; gap: 26px; }
.nav nav a { font-size: 14.5px; color: var(--mut); transition: color .16s; }
.nav nav a:hover, .nav nav a.active { color: var(--tx); }
.nav nav a.active { color: var(--teal); }
.langsw { position: relative; display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.langsw::before { content: ""; position: absolute; top: 3px; left: 3px; bottom: 3px; width: calc(50% - 3px);
  border-radius: 999px; background: var(--teal); transition: transform .32s cubic-bezier(.34,1.35,.5,1); z-index: 0; }
.langsw:has(button[data-l="ru"].on)::before { transform: translateX(100%); }
.langsw button { position: relative; z-index: 1; flex: 1 1 0; min-width: 32px; text-align: center; font: inherit;
  font-size: 12px; font-weight: 600; letter-spacing: .04em; padding: 5px 12px; background: transparent;
  color: var(--mut); border: 0; cursor: pointer; transition: color .22s; }
.langsw button.on { color: #04201d; }
/* бейдж авторизованного пользователя в шапке (вместо Вход/Начать проект) */
.nav-badge { display: inline-flex; align-items: center; gap: 9px; padding: 5px 15px 5px 5px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--panel); transition: border-color .16s, transform .16s; }
.nav-badge:hover { border-color: var(--teal); transform: translateY(-1px); }
.nav-badge .nb-ava { width: 28px; height: 28px; border-radius: 999px; background: linear-gradient(135deg, var(--teal), var(--teal-d));
  color: #04201d; font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.nav-badge .nb-t { font-size: 14px; font-weight: 600; color: var(--tx); }
.nav .cta { font-size: 14px; font-weight: 600; padding: 9px 16px; border-radius: 9px; background: var(--teal); color: #04201d; transition: transform .16s; }
.nav .cta:hover { transform: translateY(-1px); }
.nav .ghost-link { font-size: 14px; font-weight: 600; color: var(--mut); transition: color .16s; }
.nav .ghost-link:hover { color: var(--tx); }
@media (max-width: 860px) { .nav nav { display: none; } .nav .cta, .nav .ghost-link { display: none; } }

/* ---------- buttons ---------- */
.btn { font: inherit; font-size: 15.5px; font-weight: 600; padding: 14px 24px; border-radius: 12px; cursor: pointer;
  border: 1px solid transparent; display: inline-flex; align-items: center; gap: 9px; transition: transform .16s, background .16s, border-color .16s; }
.btn.p { background: var(--teal); color: #04201d; }
.btn.p:hover { transform: translateY(-2px); background: var(--teal-soft); }
.btn.s { background: transparent; color: var(--tx); border-color: var(--line); }
.btn.s:hover { border-color: var(--teal); }

/* ---------- HERO (home) ---------- */
.hero { position: relative; padding: clamp(64px, 12vw, 130px) 0 clamp(52px, 8vw, 96px); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(70% 90% at 15% -5%, rgba(45,212,191,.14), transparent 55%), radial-gradient(60% 80% at 100% 0%, rgba(20,184,166,.08), transparent 60%); }
.hero .dots { position: absolute; inset: 0; z-index: 0; opacity: .6;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 0%, #000 30%, transparent 80%); mask-image: radial-gradient(80% 70% at 50% 0%, #000 30%, transparent 80%); }
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(38px, 7.5vw, 76px); font-weight: 680; letter-spacing: -.035em; line-height: 1.02; margin: 22px 0 0; max-width: 15ch; text-wrap: balance; }
.hero h1 span { color: var(--teal); }
.hero p.lead { color: var(--mut); font-size: clamp(17px, 2.2vw, 20px); max-width: 54ch; margin-top: 22px; }
.hero .actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero .strip { display: flex; gap: 30px; margin-top: 46px; flex-wrap: wrap; font-family: ui-monospace, monospace; font-size: 13px; color: var(--dim); }
.hero .strip b { color: var(--tx); font-weight: 500; }

/* ---------- HERO signature (анимированная искра, перенос с fabrika) ---------- */
.hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
.hero-main { min-width: 0; }
.hero-spark { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.side-label { font-family: ui-monospace, monospace; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--dim); }
.spark { width: min(360px, 30vw); aspect-ratio: 1; position: relative; }
.spark::before { content: ""; position: absolute; inset: 14%; border-radius: 999px;
  background: radial-gradient(circle, rgba(45,212,191,.16), transparent 68%); filter: blur(10px); }
.spark svg { position: relative; width: 100%; height: 100%; overflow: visible; }
.ray { transform-origin: 210px 210px; animation: sparkPulse 4.2s ease-in-out infinite; }
@keyframes sparkPulse { 0%, 100% { opacity: .30; } 50% { opacity: .92; } }
.spark-rot { animation: sparkSpin 64s linear infinite; transform-origin: 210px 210px; }
@keyframes sparkSpin { to { transform: rotate(360deg); } }
.orbit { opacity: .5; transform-origin: 210px 210px; animation: sparkSpinRev 90s linear infinite; }
@keyframes sparkSpinRev { to { transform: rotate(-360deg); } }
.bolt { transform-origin: 210px 210px; animation: boltGlow 3.2s ease-in-out infinite;
  filter: drop-shadow(0 0 7px rgba(45,212,191,.55)); }
@keyframes boltGlow { 0%, 100% { opacity: .85; } 50% { opacity: 1; } }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-spark { order: 2; margin-top: 8px; align-items: flex-start; }
  .spark { width: min(240px, 56vw); }
}
@media (prefers-reduced-motion: reduce) { .ray, .spark-rot, .orbit, .bolt { animation: none; } }

/* ---------- мягкое появление блоков при скролле ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- inner page header ---------- */
.page-hero { position: relative; padding: clamp(56px, 10vw, 104px) 0 clamp(30px, 5vw, 54px); overflow: hidden; border-bottom: 1px solid var(--line); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(60% 90% at 12% -10%, rgba(45,212,191,.12), transparent 55%); }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(32px, 6vw, 60px); font-weight: 680; letter-spacing: -.03em; line-height: 1.03; margin: 18px 0 0; max-width: 18ch; text-wrap: balance; }
.page-hero h1 span { color: var(--teal); }
.page-hero p { color: var(--mut); font-size: clamp(16px, 2vw, 19px); max-width: 56ch; margin-top: 18px; }

/* ---------- generic section ---------- */
section.block { padding: clamp(56px, 9vw, 100px) 0; border-top: 1px solid var(--line); position: relative; }
section.block:first-of-type { border-top: 0; }

/* ---------- SERVICES cards ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 46px; }
@media (max-width: 720px) { .svc-grid { grid-template-columns: 1fr; } }
.svc-card { position: relative; padding: 30px; border: 1px solid var(--line); border-radius: 18px;
  background: linear-gradient(180deg, var(--panel), var(--bg2)); overflow: hidden; transition: border-color .2s, transform .2s; }
.svc-card:hover { border-color: color-mix(in srgb, var(--teal) 55%, var(--line)); transform: translateY(-3px); }
.svc-card .num { font-family: ui-monospace, monospace; font-size: 12px; color: var(--teal); letter-spacing: .12em; }
.svc-card h3 { font-size: 22px; font-weight: 640; margin: 14px 0 8px; letter-spacing: -.01em; }
.svc-card p { color: var(--mut); font-size: 15px; }
.svc-card ul { list-style: none; margin-top: 16px; display: flex; flex-wrap: wrap; gap: 8px; }
.svc-card li { font-family: ui-monospace, monospace; font-size: 12px; color: var(--teal-soft); border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; background: rgba(45,212,191,.05); }
.svc-card .glow { position: absolute; width: 220px; height: 220px; right: -60px; top: -60px; border-radius: 999px; background: radial-gradient(circle, rgba(45,212,191,.16), transparent 70%); opacity: 0; transition: opacity .25s; }
.svc-card:hover .glow { opacity: 1; }
.svc-card .more { display: inline-block; margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--teal); }

/* ---------- WHY ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 46px; }
@media (max-width: 860px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .why-grid { grid-template-columns: 1fr; } }
.why-card { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.why-card .big { font-size: 30px; font-weight: 700; color: var(--teal); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.why-card h4 { font-size: 16px; margin: 10px 0 6px; font-weight: 600; }
.why-card p { color: var(--mut); font-size: 13.5px; }

/* ---------- PROCESS steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 46px; }
@media (max-width: 720px) { .steps { grid-template-columns: 1fr; } }
.step { padding: 28px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg2); position: relative; }
.step .n { font-family: ui-monospace, monospace; font-size: 13px; color: #04201d; background: var(--teal); width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; }
.step h4 { font-size: 18px; margin: 16px 0 8px; font-weight: 620; }
.step p { color: var(--mut); font-size: 14.5px; }

/* ---------- WORK grid ---------- */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 46px; }
@media (max-width: 820px) { .work-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .work-grid { grid-template-columns: 1fr; } }
.work-card { aspect-ratio: 4/3; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; position: relative; background: var(--panel); display: grid; place-items: center; }
.work-card .tag { position: absolute; top: 12px; left: 12px; font-family: ui-monospace, monospace; font-size: 11px; color: var(--teal); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; background: rgba(15,20,23,.7); }
.work-card .ph { font-family: ui-monospace, monospace; color: var(--dim); font-size: 13px; }
.work-card.demo-site { background: linear-gradient(135deg, #10201d, #0f1417), radial-gradient(circle at 70% 30%, rgba(45,212,191,.2), transparent 60%); }
.work-card.demo-meme { background: repeating-linear-gradient(45deg, #12191b 0 14px, #0f1417 14px 28px); }
.work-card.demo-motion { background: radial-gradient(circle at 50% 50%, rgba(45,212,191,.14), transparent 65%), #0d1214; }

/* ---------- WORK scenes (карточки оживают при наведении) ---------- */
.scene-card { display: block; background: linear-gradient(180deg, var(--panel), var(--bg2)); transition: border-color .2s, transform .2s; }
.scene-card:hover { border-color: color-mix(in srgb, var(--teal) 55%, var(--line)); transform: translateY(-3px); }
.scene-card .tag { z-index: 4; }
.scene-card .ph { position: absolute; left: 14px; bottom: 12px; z-index: 4; font-family: ui-monospace, monospace; font-size: 12.5px; color: var(--tx); }
.scene { position: absolute; inset: 0; z-index: 1; }
.scene-card::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, transparent 52%, rgba(11,16,18,.9)); }

/* SITE — страница листается вниз */
.s-site { padding: 20px 18px 0; display: flex; flex-direction: column; }
.s-site .win { display: flex; gap: 5px; margin-bottom: 9px; flex: none; }
.s-site .win i { width: 7px; height: 7px; border-radius: 999px; background: var(--line); }
.s-site .pg { display: flex; flex-direction: column; gap: 7px; transition: transform 2.6s cubic-bezier(.4,0,.2,1); }
.scene-card:hover .s-site .pg { transform: translateY(-46%); }
.s-site .hb { height: 26px; border-radius: 5px; flex: none; background: linear-gradient(90deg, rgba(45,212,191,.32), rgba(45,212,191,.06)); }
.s-site .hb.alt { background: linear-gradient(90deg, rgba(94,234,212,.24), transparent); }
.s-site .ln { height: 7px; border-radius: 999px; background: var(--line); flex: none; }
.s-site .w80{width:80%}.s-site .w60{width:60%}.s-site .w70{width:70%}.s-site .w90{width:90%}.s-site .w50{width:50%}
.s-site .g2,.s-site .g3 { display: grid; gap: 6px; flex: none; }
.s-site .g2 { grid-template-columns: 1fr 1fr; } .s-site .g3 { grid-template-columns: repeat(3,1fr); }
.s-site .g2 em,.s-site .g3 em { height: 30px; border-radius: 6px; background: var(--bg); border: 1px solid var(--line); }

/* MEME — рожица оживает */
.s-meme { display: grid; place-items: center; }
.s-meme .face { width: 72px; height: 72px; border-radius: 999px; border: 2.5px solid var(--teal); position: relative; }
.scene-card:hover .s-meme .face { animation: memeBounce 1s ease infinite; }
@keyframes memeBounce { 0%,100%{transform:translateY(0) rotate(-4deg)} 50%{transform:translateY(-9px) rotate(4deg)} }
.s-meme .ey { position: absolute; top: 25px; width: 9px; height: 9px; border-radius: 999px; background: var(--teal); }
.s-meme .ey.l{left:17px} .s-meme .ey.r{right:17px}
.scene-card:hover .s-meme .ey { animation: memeBlink 1.5s steps(1) infinite; }
@keyframes memeBlink { 0%,88%,100%{transform:scaleY(1)} 94%{transform:scaleY(.15)} }
.s-meme .mo { position: absolute; bottom: 17px; left: 50%; transform: translateX(-50%); width: 26px; height: 12px; border-bottom: 3px solid var(--teal); border-radius: 0 0 26px 26px; transition: .4s; }
.scene-card:hover .s-meme .mo { width: 34px; height: 17px; }
.s-meme .pop { position: absolute; top: 24%; left: 50%; transform: translateX(-50%) scale(.6); opacity: 0; font-family: ui-monospace,monospace; font-weight: 800; font-size: 15px; color: var(--teal); transition: .3s; }
.scene-card:hover .s-meme .pop { opacity: 1; transform: translateX(-50%) translateY(-6px) scale(1); }
.s-meme .st { position: absolute; color: var(--teal-soft); font-size: 12px; opacity: 0; }
.s-meme .st.a{top:22%;left:26%} .s-meme .st.b{top:30%;right:24%}
.scene-card:hover .s-meme .st { animation: memeStar 1.2s ease infinite; }
.scene-card:hover .s-meme .st.b { animation-delay: .55s; }
@keyframes memeStar { 0%{opacity:0;transform:scale(.3) rotate(0)} 50%{opacity:1;transform:scale(1) rotate(90deg)} 100%{opacity:0;transform:scale(.3) rotate(180deg)} }

/* MOTION — эквалайзер */
.s-motion { display: flex; align-items: center; justify-content: center; gap: 6px; }
.s-motion i { width: 8px; border-radius: 999px; background: linear-gradient(180deg, var(--teal), var(--teal-d)); }
.s-motion i:nth-child(1){height:35%}.s-motion i:nth-child(2){height:60%}.s-motion i:nth-child(3){height:45%}.s-motion i:nth-child(4){height:78%}.s-motion i:nth-child(5){height:52%}.s-motion i:nth-child(6){height:68%}.s-motion i:nth-child(7){height:40%}.s-motion i:nth-child(8){height:50%}
.scene-card:hover .s-motion i { animation: eq .9s ease-in-out infinite; }
.scene-card:hover .s-motion i:nth-child(2n){animation-duration:.7s}
.scene-card:hover .s-motion i:nth-child(3n){animation-duration:1.15s}
@keyframes eq { 0%,100%{height:22%} 50%{height:82%} }

/* AI — дерево прорастает из точки */
.s-ai { padding: 12px; }
.s-ai .edges line { stroke-dasharray: 92; stroke-dashoffset: 92; }
.s-ai .nodes circle { opacity: .14; transform: scale(.5); transform-origin: center; transform-box: fill-box; }
.s-ai .nodes circle:first-child { opacity: .6; transform: scale(1); }
.scene-card:hover .s-ai .edges line { animation: aiDraw .55s ease both; }
.scene-card:hover .s-ai .edges line:nth-child(n+3){animation-delay:.45s}
.scene-card:hover .s-ai .edges line:nth-child(n+5){animation-delay:.55s}
@keyframes aiDraw { to { stroke-dashoffset: 0; } }
.scene-card:hover .s-ai .nodes circle { animation: aiPop .4s cubic-bezier(.3,1.5,.5,1) both; }
.scene-card:hover .s-ai .nodes circle:nth-child(2),.scene-card:hover .s-ai .nodes circle:nth-child(3){animation-delay:.45s}
.scene-card:hover .s-ai .nodes circle:nth-child(n+4){animation-delay:.9s}
@keyframes aiPop { to { opacity: 1; transform: scale(1); } }

/* DEV — код печатается */
.s-dev { padding: 18px 16px; display: flex; align-items: center; }
.s-dev .term { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.s-dev .cl { display: flex; gap: 6px; align-items: center; opacity: .55; }
.s-dev .cl.i1{padding-left:16px} .s-dev .cl.i2{padding-left:32px}
.s-dev em { height: 8px; border-radius: 3px; display: block; background: var(--line); }
.s-dev em.k { background: var(--teal); width: 22px; }
.s-dev em.s { background: var(--dim); width: 8px; }
.s-dev .w20{width:20px}.s-dev .w30{width:34px}.s-dev .w40{width:46px}.s-dev .w50{width:58px}.s-dev .w60{width:70px}
.s-dev .cur { width: 7px; height: 13px; background: var(--teal); border-radius: 1px; }
.scene-card:hover .s-dev .cl { animation: devType 2.2s ease infinite; }
.scene-card:hover .s-dev .cl:nth-child(2){animation-delay:.3s}
.scene-card:hover .s-dev .cl:nth-child(3){animation-delay:.6s}
.scene-card:hover .s-dev .cl:nth-child(4){animation-delay:.9s}
.scene-card:hover .s-dev .cl:nth-child(5){animation-delay:1.2s}
@keyframes devType { 0%,100%{opacity:.5} 16%{opacity:1} }
.scene-card:hover .s-dev .cur { animation: curBlink .8s steps(1) infinite; }
@keyframes curBlink { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  .scene-card:hover .s-site .pg { transform: none; }
  .scene-card :is(.face,.ey,.mo,.st,i,line,circle,.cl,.cur) { animation: none !important; }
  .s-ai .edges line { stroke-dashoffset: 0; } .s-ai .nodes circle { opacity: 1; transform: none; }
}

/* ---------- PRICING ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 46px; }
@media (max-width: 820px) { .price-grid { grid-template-columns: 1fr; } }
.price { padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); display: flex; flex-direction: column; }
.price.feat { border-color: var(--teal); background: linear-gradient(180deg, rgba(45,212,191,.06), var(--panel)); }
.price .badge { font-family: ui-monospace, monospace; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--teal); margin-bottom: 6px; }
.price h3 { font-size: 21px; font-weight: 640; }
.price .amt { font-size: 15px; color: var(--mut); margin: 10px 0 18px; }
.price .amt b { color: var(--tx); font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.price ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.price li { font-size: 14px; color: var(--mut); padding-left: 24px; position: relative; }
.price li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.price .btn { margin-top: auto; justify-content: center; }

/* ---------- PRICING builder (конструктор услуг) ---------- */
.calc { display: grid; grid-template-columns: 1fr 340px; gap: 26px; margin-top: 44px; align-items: start; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }
.calc-groups { display: flex; flex-direction: column; gap: 20px; }
.calc-group { border: 1px solid var(--line); border-radius: 18px; background: var(--panel); padding: 4px 24px 20px; }
.cg-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 20px 0 6px; }
.cg-head h4 { font-size: 16px; font-weight: 640; }
.cg-tag { font-family: ui-monospace, monospace; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.calc-item { display: block; padding: 14px 0; border-top: 1px solid var(--line); cursor: pointer; }
.ci-head { display: flex; align-items: center; gap: 13px; }
.ci-head input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--teal); flex: none; cursor: pointer; }
.ci-name { flex: 1; font-size: 14.5px; color: var(--mut); transition: color .16s; }
.ci-price { font-family: ui-monospace, monospace; font-size: 13px; color: var(--teal-soft); white-space: nowrap; }
.ci-price small { color: var(--dim); }
.calc-item.on .ci-name { color: var(--tx); font-weight: 500; }
.ci-slider { display: flex; align-items: center; gap: 14px; padding: 13px 0 2px 31px; transition: opacity .16s; }
.ci-slider input[type="range"] { flex: 1; accent-color: var(--teal); cursor: pointer; height: 4px; }
.ci-qty { font-family: ui-monospace, monospace; font-size: 12.5px; color: var(--mut); white-space: nowrap; min-width: 70px; text-align: right; }
.ci-qty b { color: var(--teal); }
.calc-item:not(.on) .ci-slider { opacity: .45; }
.calc-summary { position: sticky; top: 86px; border: 1px solid var(--teal); border-radius: 18px;
  background: linear-gradient(180deg, rgba(45,212,191,.07), var(--panel)); padding: 26px; }
.cs-title { font-family: ui-monospace, monospace; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.sum-row { display: flex; justify-content: space-between; align-items: baseline; padding: 13px 0; border-bottom: 1px solid var(--line); }
.sum-row span { color: var(--mut); font-size: 14px; }
.sum-row b { font-size: 23px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sum-row b small { font-size: 13px; color: var(--mut); font-weight: 500; }
.sum-hint { color: var(--dim); font-size: 13px; margin: 15px 0 0; }
.calc-summary .btn { margin-top: 18px; }
.calc-note { color: var(--dim); font-size: 12px; margin-top: 13px; line-height: 1.5; }
.calc-extra { border: 1px dashed var(--line); border-radius: 18px; background: var(--panel); padding: 20px 24px; }
.ce-lab { display: block; font-size: 15px; font-weight: 600; color: var(--tx); margin-bottom: 11px; }
.ce-input { width: 100%; font: inherit; font-size: 14.5px; color: var(--tx); background: var(--bg);
  border: 1px solid var(--line); border-radius: 12px; padding: 13px 15px; resize: vertical; min-height: 78px; line-height: 1.5; }
.ce-input::placeholder { color: var(--dim); }
.ce-input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(45,212,191,.12); }
.ce-hint { display: block; color: var(--dim); font-size: 12px; margin-top: 9px; line-height: 1.5; }

/* ---------- prose (about / text pages) ---------- */
.prose { max-width: 68ch; }
.prose p { color: var(--mut); font-size: 17px; margin-top: 18px; }
.prose h3 { font-size: 22px; font-weight: 640; margin-top: 40px; letter-spacing: -.01em; }
.two-col { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: start; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
@media (max-width: 560px) { .stat-row { grid-template-columns: 1fr; } }
.stat { border: 1px solid var(--line); border-radius: 16px; padding: 24px; background: var(--panel); }
.stat .v { font-size: 34px; font-weight: 700; color: var(--teal); letter-spacing: -.02em; }
.stat .k { color: var(--mut); font-size: 14px; margin-top: 6px; }
.stat-col { display: flex; flex-direction: column; gap: 16px; align-self: stretch; justify-content: space-between; }
.stat-col .stat { display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 820px) { .stat-col { justify-content: flex-start; } }

/* ---------- FAQ ---------- */
.faq { margin-top: 40px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 22px 0; font-size: 18px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--teal); font-weight: 400; font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq p { color: var(--mut); font-size: 15.5px; padding: 0 0 24px; max-width: 70ch; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 46px; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card { border: 1px solid var(--line); border-radius: 18px; padding: 30px; background: var(--panel); }
.contact-card h3 { font-size: 20px; font-weight: 640; }
.contact-card p { color: var(--mut); font-size: 15px; margin: 10px 0 20px; }
.contact-link { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; transition: border-color .16s, transform .16s; }
.contact-link:hover { border-color: var(--teal); transform: translateY(-2px); }
.contact-link .ic { width: 34px; height: 34px; border-radius: 9px; background: rgba(45,212,191,.1); color: var(--teal); display: grid; place-items: center; font-family: ui-monospace, monospace; font-weight: 700; }
.contact-link b { font-size: 15px; } .contact-link small { color: var(--dim); font-family: ui-monospace, monospace; font-size: 12px; display: block; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; position: relative; overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: clamp(64px, 10vw, 110px) 0; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(60% 120% at 50% 0%, rgba(45,212,191,.14), transparent 60%); }
.cta-band .wrap { position: relative; z-index: 2; }
.cta-band h2 { font-size: clamp(28px, 5vw, 50px); font-weight: 680; letter-spacing: -.03em; text-wrap: balance; max-width: 18ch; margin: 14px auto 0; }
.cta-band p { color: var(--mut); margin: 16px auto 0; max-width: 48ch; font-size: 17px; }
.cta-band .actions { display: flex; gap: 14px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }

/* ---------- FOOTER ---------- */
footer.ft { padding: 54px 0 40px; border-top: 1px solid var(--line); }
.ft .row { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; align-items: flex-start; }
.ft .logo { font-size: 18px; }
.ft .tagline { color: var(--dim); font-size: 13.5px; margin-top: 10px; max-width: 34ch; font-family: ui-monospace, monospace; }
.ft .cols { display: flex; gap: 54px; flex-wrap: wrap; }
.ft .col h5 { font-family: ui-monospace, monospace; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); margin-bottom: 14px; }
.ft .col a { display: block; color: var(--mut); font-size: 14px; margin-bottom: 9px; transition: color .16s; }
.ft .col a:hover { color: var(--teal); }
.ft .base { margin-top: 42px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: ui-monospace, monospace; font-size: 12.5px; color: var(--dim); }

[hidden] { display: none !important; }
