/* ФИБИС — дизайн-система сайта. Шрифт Exo 2 (SIL OFL), подключён локально. */
@font-face {
  font-family: "Exo 2";
  src: url("/assets/fonts/exo2.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --phi: 1.618;
  --bg: #060a12;
  --bg-2: #0a1120;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.075);
  --border: rgba(255, 255, 255, 0.1);
  --text: #eaf0fa;
  --muted: #9aa8c0;
  --accent: #35e6c9;
  --accent-ink: #04201c;
  --accent-2: #7b7bff;
  --warm: #ffb454;
  --danger: #ff7a7a;
  --ok: #3ddc97;
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.7);
  --radius: 22px;
  --radius-sm: 14px;
  --maxw: 1200px;
  --header-h: 72px;
  --grad: linear-gradient(120deg, var(--accent), var(--accent-2));
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f5f8fd;
  --bg-2: #eaf0fa;
  --surface: rgba(10, 20, 40, 0.04);
  --surface-2: rgba(10, 20, 40, 0.07);
  --border: rgba(10, 20, 40, 0.12);
  --text: #0b1424;
  --muted: #4d5d77;
  --accent: #0a9e8a;
  --accent-ink: #ffffff;
  --accent-2: #5b5bf0;
  --warm: #c27a14;
  --danger: #c93c3c;
  --ok: #178a5b;
  --shadow: 0 30px 70px -35px rgba(20, 40, 80, 0.35);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: "Exo 2", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(900px 520px at 85% -5%, color-mix(in srgb, var(--accent-2) 22%, transparent), transparent 70%),
    radial-gradient(800px 520px at -5% 20%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    var(--bg);
}
img, svg, video, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.12; letter-spacing: -0.01em; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 3.9vw + .5rem, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3vw + .6rem, 3.1rem); }
h3 { font-size: 1.3rem; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--accent) 40%, transparent); }
.container { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--grad); border-radius: 2px; }
.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- кнопки, чипы, бейджи ---------- */
.btn {
  --h: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-weight: 700; font-size: .98rem; cursor: pointer; white-space: nowrap;
  transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s, background .25s, border-color .25s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--grad); color: var(--accent-ink); box-shadow: 0 14px 34px -14px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -14px color-mix(in srgb, var(--accent) 90%, transparent); }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: var(--surface-2); border-color: color-mix(in srgb, var(--accent) 60%, var(--border)); transform: translateY(-2px); }
.btn-sm { --h: 40px; padding: 0 18px; font-size: .9rem; }
.btn[disabled], .btn.is-disabled { opacity: .5; pointer-events: none; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text); font: inherit; font-size: .92rem; font-weight: 600; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.chip:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); }
.chip[aria-pressed="true"], .chip.is-active { background: color-mix(in srgb, var(--accent) 20%, transparent); border-color: var(--accent); color: var(--text); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .02em; background: var(--surface-2); border: 1px solid var(--border); color: var(--muted); }
.badge.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, transparent); background: color-mix(in srgb, var(--ok) 12%, transparent); }
.badge.plan { color: var(--warm); border-color: color-mix(in srgb, var(--warm) 45%, transparent); background: color-mix(in srgb, var(--warm) 12%, transparent); }
.badge.accent { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: .78rem; font-weight: 600; padding: 3px 11px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); }

/* ---------- шапка ---------- */
.header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.header.is-stuck { background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: blur(16px) saturate(1.4); border-color: var(--border); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: .12em; font-size: 1.15rem; }
.logo svg { width: 38px; height: 38px; }
.nav { display: flex; gap: 6px; margin-left: auto; }
.nav a { white-space: nowrap; padding: 9px 14px; border-radius: 999px; font-weight: 600; font-size: .95rem; color: var(--muted); transition: color .2s, background .2s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); color: var(--text); cursor: pointer; transition: background .2s, transform .2s; }
.icon-btn:hover { background: var(--surface-2); transform: translateY(-1px); }
.icon-btn .count { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--grad); color: var(--accent-ink); font-size: .72rem; font-weight: 800; display: grid; place-items: center; }
.icon-btn .count[hidden] { display: none; }
.burger { display: none; }
[data-theme="dark"] .only-light, :root:not([data-theme]) .only-light { display: none; }
[data-theme="light"] .only-dark { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 40px) 0 90px; overflow: hidden; }
#phyllo { position: absolute; right: -6%; top: 50%; translate: 0 -50%; width: min(78vw, 860px); aspect-ratio: 1; opacity: .95; z-index: -1; pointer-events: none; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 42%); mask-image: linear-gradient(90deg, transparent 0%, #000 42%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero h1 { margin-bottom: .45em; }
.hero .lead { font-size: clamp(1.05rem, 1vw + .8rem, 1.3rem); color: var(--muted); max-width: 40ch; margin-bottom: 2em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-note { margin-top: 26px; color: var(--muted); font-size: .92rem; display: flex; gap: 10px; align-items: center; }
.pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 70%, transparent); animation: pulse 2.2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.scroll-hint { position: absolute; bottom: 26px; left: 50%; translate: -50% 0; width: 26px; height: 42px; border-radius: 14px; border: 2px solid var(--border); }
.scroll-hint::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--accent); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 80% { opacity: 0; transform: translateY(14px); } 100% { opacity: 0; } }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: -50px; position: relative; z-index: 2; }
.fact { padding: 22px 22px 20px; border-radius: var(--radius); background: color-mix(in srgb, var(--bg-2) 78%, transparent); border: 1px solid var(--border); backdrop-filter: blur(14px); }
.fact b { display: block; font-size: clamp(1.9rem, 2.6vw, 2.6rem); font-weight: 800; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fact span { display: block; margin-top: 8px; color: var(--muted); font-size: .92rem; line-height: 1.35; }

/* ---------- секции ---------- */
.section { padding: clamp(70px, 9vw, 130px) 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.page-hero { padding: calc(var(--header-h) + 70px) 0 40px; }
.page-hero h1 { font-size: clamp(2.2rem, 4.4vw + .5rem, 4rem); }
.page-hero p { color: var(--muted); font-size: 1.15rem; max-width: 60ch; }
.crumbs { display: flex; gap: 8px; font-size: .88rem; color: var(--muted); margin-bottom: 22px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--accent); }

.marquee { overflow: hidden; border-block: 1px solid var(--border); padding: 18px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { font-weight: 700; font-size: 1.05rem; color: var(--muted); display: inline-flex; align-items: center; gap: 48px; white-space: nowrap; }
.marquee span::after { content: "✦"; color: var(--accent); font-size: .8rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- карточки ---------- */
.card { position: relative; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); padding: 28px; transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .3s, background .3s; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px 220px at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); background: var(--surface-2); }
.card:hover::before { opacity: 1; }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.svc-icon { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent); margin-bottom: 20px; }
.svc-icon .icon { width: 26px; height: 26px; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); margin-bottom: 18px; }

/* ---------- телефоны и проекты ---------- */
.phone { position: relative; width: 100%; aspect-ratio: 1080 / 2400; border-radius: 9% / 4.2%; padding: 2.2%; background: linear-gradient(160deg, #2b3446, #0d121c); box-shadow: var(--shadow), inset 0 0 0 1px rgba(255,255,255,.12); }
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 7.2% / 3.3%; background: #000; }
.phone::after { content: ""; position: absolute; top: 2.4%; left: 50%; translate: -50% 0; width: 22%; height: 1.5%; background: #05070b; border-radius: 99px; opacity: .8; }
.projects-rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.project-card { display: flex; flex-direction: column; padding: 0; }
.project-card .stage { position: relative; padding: 34px 40px 0; height: 340px; overflow: hidden; background: radial-gradient(260px 200px at 50% 90%, color-mix(in srgb, var(--pc, var(--accent)) 38%, transparent), transparent 70%); }
.project-card .stage .phone { transition: transform .5s cubic-bezier(.2,.8,.2,1); transform-origin: 50% 100%; }
.project-card:hover .stage .phone { transform: translateY(-10px) scale(1.03); }
.project-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.project-card h3 { margin: 0; font-size: 1.25rem; }
.project-card p { margin: 0; font-size: .95rem; }
.project-card .more { margin-top: auto; padding-top: 10px; font-weight: 700; color: var(--accent); display: inline-flex; align-items: center; gap: 8px; }
.project-card .more .icon { transition: transform .25s; }
.project-card:hover .more .icon { transform: translateX(5px); }
.stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }

.proj-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 50px; align-items: center; }
.proj-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 26px; }
.proj-hero .phone-wrap { max-width: 330px; margin-inline: auto; width: 100%; filter: drop-shadow(0 40px 60px color-mix(in srgb, var(--pc, var(--accent)) 35%, transparent)); }
.app-icon { width: 84px; height: 84px; border-radius: 22px; box-shadow: var(--shadow); border: 1px solid var(--border); margin-bottom: 22px; }
.gallery { display: flex; gap: 22px; overflow-x: auto; padding: 14px 4px 34px; scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--accent) transparent; }
.gallery figure { margin: 0; flex: 0 0 min(250px, 62vw); scroll-snap-align: center; }
.gallery button { all: unset; display: block; cursor: zoom-in; width: 100%; border-radius: 9% / 4.2%; transition: transform .3s; }
.gallery button:hover { transform: translateY(-6px); }
.gallery figcaption { margin-top: 14px; font-size: .9rem; color: var(--muted); text-align: center; }
.two-col { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.list li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.list li .mk { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 800; margin-top: 1px; }
.list.pros .mk { background: color-mix(in srgb, var(--ok) 22%, transparent); color: var(--ok); }
.list.cons .mk { background: color-mix(in srgb, var(--warm) 24%, transparent); color: var(--warm); }
.list.plain li { grid-template-columns: 22px 1fr; }
.list.plain .mk { background: none; color: var(--accent); width: auto; }
.list li small { display: block; color: var(--muted); font-size: .88rem; margin-top: 2px; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat { padding: 18px 20px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); }
.stat b { display: block; font-size: 1.5rem; font-weight: 800; }
.stat span { color: var(--muted); font-size: .85rem; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.pager a { display: block; padding: 22px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); transition: border-color .2s, transform .2s; }
.pager a:hover { border-color: var(--accent); transform: translateY(-3px); }
.pager small { color: var(--muted); display: block; }
.pager .next { text-align: right; }

/* ---------- лайтбокс / диалоги ---------- */
dialog { border: 1px solid var(--border); background: color-mix(in srgb, var(--bg-2) 96%, transparent); color: var(--text); border-radius: var(--radius); padding: 0; max-width: min(92vw, 760px); width: 100%; box-shadow: 0 50px 120px -30px rgba(0,0,0,.8); }
dialog::backdrop { background: rgba(3, 6, 12, .72); backdrop-filter: blur(6px); }
dialog[open] { animation: pop .3s cubic-bezier(.2,.9,.3,1.2); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.dlg-head { display: flex; align-items: center; gap: 16px; padding: 22px 26px 8px; }
.dlg-head h3 { margin: 0; flex: 1; font-size: 1.5rem; }
.dlg-body { padding: 8px 26px 26px; display: grid; gap: 18px; }
.dlg-foot { display: flex; gap: 12px; flex-wrap: wrap; padding: 0 26px 26px; }
#lightbox { max-width: min(92vw, 520px); background: transparent; border: 0; box-shadow: none; overflow: visible; }
#lightbox .lb-wrap { position: relative; }
#lightbox img { width: 100%; max-height: 88vh; object-fit: contain; border-radius: 26px; box-shadow: var(--shadow); }
#lightbox .lb-cap { text-align: center; color: #fff; margin-top: 12px; font-size: .95rem; }
.lb-btn { position: absolute; top: 50%; translate: 0 -50%; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border); background: rgba(10, 16, 28, .8); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lb-prev { left: -16px; } .lb-next { right: -16px; }
.lb-close { position: absolute; top: -14px; right: -14px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: rgba(10,16,28,.9); color: #fff; cursor: pointer; display: grid; place-items: center; z-index: 2; }

/* ---------- процесс, цены ---------- */
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; position: relative; counter-reset: step; }
.timeline::before { content: ""; position: absolute; top: 27px; left: 5%; right: 5%; height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); opacity: .45; }
.step { position: relative; padding-top: 68px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 1.2rem; background: var(--bg); border: 2px solid var(--accent); color: var(--accent); box-shadow: 0 0 0 6px var(--bg); }
.step h3 { font-size: 1.15rem; margin-bottom: .35em; }
.step p { color: var(--muted); font-size: .95rem; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.tier { display: flex; flex-direction: column; }
.tier.featured { border-color: var(--accent); background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 12%, transparent), var(--surface)); }
.tier .price { font-size: 2.3rem; font-weight: 800; margin: 6px 0 14px; }
.tier .price small { font-size: .95rem; font-weight: 600; color: var(--muted); margin-right: 6px; }
.tier .list { margin: 8px 0 0; }
.note { color: var(--muted); font-size: .92rem; margin-top: 22px; }

/* ---------- философия ---------- */
.manifesto { font-size: clamp(1.5rem, 2.6vw + .6rem, 2.7rem); line-height: 1.28; font-weight: 600; max-width: 24em; letter-spacing: -.01em; }
.manifesto .w { opacity: .22; transition: opacity .5s; }
.manifesto .w.on { opacity: 1; }
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.principle { display: grid; grid-template-columns: auto 1fr; gap: 22px; }
.principle .n { font-size: 3.2rem; font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--accent) 70%, transparent); }
.principle h3 { margin: 4px 0 .3em; }
.principle p { margin: 0; }
.spiral-wrap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 60px; align-items: center; }
.spiral svg { width: 100%; height: auto; overflow: visible; }
.spiral path { fill: none; stroke: url(#sg); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 2600; stroke-dashoffset: 2600; transition: stroke-dashoffset 2.6s cubic-bezier(.3,.7,.2,1); }
.spiral.on path { stroke-dashoffset: 0; }
.spiral rect { fill: none; stroke: var(--border); stroke-width: 1.5; }
.notdo li .mk { background: color-mix(in srgb, var(--danger) 18%, transparent); color: var(--danger); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.compare h3 { display: flex; align-items: center; gap: 10px; }

/* ---------- каталог ---------- */
.toolbar { display: grid; gap: 16px; margin-bottom: 30px; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); position: sticky; top: calc(var(--header-h) + 10px); z-index: 20; backdrop-filter: blur(16px); background: color-mix(in srgb, var(--bg-2) 82%, transparent); }
.toolbar-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.search { position: relative; flex: 1 1 260px; }
.search .icon { position: absolute; left: 16px; top: 50%; translate: 0 -50%; color: var(--muted); }
input, select, textarea { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 12px 16px; width: 100%; transition: border-color .2s, background .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); background: var(--surface-2); }
.search input { padding-left: 46px; height: 48px; }
select { height: 48px; width: auto; min-width: 170px; cursor: pointer; }
select option { background: var(--bg-2); color: var(--text); }
textarea { min-height: 140px; resize: vertical; }
.seg { display: inline-flex; border-radius: 12px; border: 1px solid var(--border); overflow: hidden; }
.seg button { background: transparent; border: 0; color: var(--muted); width: 46px; height: 46px; cursor: pointer; display: grid; place-items: center; }
.seg button[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--text); }
.results-meta { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .93rem; margin-bottom: 18px; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.catalog-grid.is-list { grid-template-columns: 1fr; }
.item { display: flex; flex-direction: column; gap: 14px; }
.item[hidden] { display: none; }
.item-top { display: flex; gap: 16px; align-items: center; }
.item-ico { width: 58px; height: 58px; border-radius: 16px; flex: none; display: grid; place-items: center; color: #fff; background: var(--ic, var(--grad)); box-shadow: 0 10px 24px -10px var(--ic-shadow, rgba(0,0,0,.4)); overflow: hidden; }
.item-ico img { width: 100%; height: 100%; object-fit: cover; }
.item-ico .icon { width: 28px; height: 28px; }
.item h3 { margin: 0; font-size: 1.15rem; }
.item .sum { margin: 0; color: var(--muted); font-size: .95rem; }
.item-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 6px; flex-wrap: wrap; }
.item-price { font-weight: 800; }
.item-price small { color: var(--muted); font-weight: 600; }
.item-actions { display: flex; gap: 8px; position: relative; z-index: 2; }
.is-list .item { flex-direction: row; align-items: center; gap: 22px; }
.is-list .item-top { min-width: 260px; }
.is-list .item .sum { flex: 1; }
.is-list .item .tags { display: none; }
.is-list .item-foot { margin: 0; padding: 0; flex-wrap: nowrap; }
.empty { text-align: center; padding: 70px 20px; color: var(--muted); border: 1px dashed var(--border); border-radius: var(--radius); }
.in-cart .btn-add { background: color-mix(in srgb, var(--ok) 20%, transparent); border-color: var(--ok); color: var(--text); }

/* ---------- корзина-запрос ---------- */
.drawer { position: fixed; inset: 0 0 0 auto; width: min(100vw, 430px); z-index: 80; transform: translateX(105%); transition: transform .4s cubic-bezier(.2,.8,.2,1); background: color-mix(in srgb, var(--bg-2) 97%, transparent); border-left: 1px solid var(--border); box-shadow: -40px 0 80px -30px rgba(0,0,0,.7); display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--border); }
.drawer-head h3 { margin: 0; }
.drawer-body { padding: 18px 24px; overflow: auto; flex: 1; display: grid; gap: 10px; align-content: start; }
.drawer-foot { padding: 18px 24px 24px; border-top: 1px solid var(--border); display: grid; gap: 10px; }
.cart-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.cart-item button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1.2rem; }
.cart-item button:hover { color: var(--danger); }
.scrim { position: fixed; inset: 0; z-index: 70; background: rgba(3, 6, 12, .6); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .3s; }
.scrim.open { opacity: 1; pointer-events: auto; }
.toast { position: fixed; left: 50%; bottom: 28px; translate: -50% 30px; opacity: 0; z-index: 120; padding: 13px 22px; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 700; transition: .35s; pointer-events: none; }
.toast.show { opacity: 1; translate: -50% 0; }

/* ---------- контакты и формы ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 28px; }
.form { display: grid; gap: 16px; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 8px; }
.field.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.check input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--accent); flex: none; }
.req { display: grid; gap: 0; }
.req div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--border); }
.req div:last-child { border: 0; }
.req dt { color: var(--muted); }
.req dd { margin: 0; font-weight: 600; text-align: right; }
.copy { background: none; border: 0; color: var(--accent); cursor: pointer; font: inherit; font-weight: 700; margin-left: 10px; }
.prose { max-width: 780px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--text); }

/* ---------- CTA и подвал ---------- */
.cta-band { border-radius: 32px; padding: clamp(36px, 6vw, 72px); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, var(--bg-2)), color-mix(in srgb, var(--accent-2) 26%, var(--bg-2))); border: 1px solid var(--border); position: relative; overflow: hidden; }
.cta-band::after { content: "φ"; position: absolute; right: 4%; top: 50%; translate: 0 -50%; font-size: clamp(9rem, 22vw, 20rem); font-weight: 800; color: rgba(255,255,255,.06); line-height: 1; pointer-events: none; }
.cta-band h2 { max-width: 16em; }
.footer { border-top: 1px solid var(--border); padding: 60px 0 30px; margin-top: 40px; background: color-mix(in srgb, var(--bg-2) 70%, transparent); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
.footer h4 { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a { color: var(--muted); transition: color .2s; }
.footer a:hover { color: var(--accent); }
.footer .small { color: var(--muted); font-size: .88rem; line-height: 1.55; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: .86rem; }

/* ---------- анимации появления ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- адаптив ---------- */
@media (max-width: 1180px) {
  .nav { position: fixed; inset: var(--header-h) 0 auto 0; flex-direction: column; padding: 14px 20px 24px; background: color-mix(in srgb, var(--bg) 96%, transparent); backdrop-filter: blur(18px); border-bottom: 1px solid var(--border); transform: translateY(-130%); transition: transform .35s; margin: 0; }
  .nav.open { transform: none; }
  .nav a { padding: 14px 16px; font-size: 1.1rem; }
  .burger { display: grid; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 1080px) {
  .projects-rail { grid-template-columns: repeat(2, 1fr); }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hero-grid, .proj-hero, .spiral-wrap, .contact-grid { grid-template-columns: 1fr; }
  #phyllo { width: 130vw; right: -45%; opacity: .55; -webkit-mask-image: none; mask-image: none; }
  .bento { grid-template-columns: 1fr 1fr !important; }
  .timeline { grid-template-columns: 1fr; }
  .timeline::before { top: 0; bottom: 0; left: 26px; right: auto; width: 2px; height: auto; }
  .step { padding: 0 0 0 76px; min-height: 54px; }
  .tiers, .principles, .two-col, .compare { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .is-list .item { flex-direction: column; align-items: stretch; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .projects-rail, .catalog-grid, .facts, .footer-grid, .field.row, .pager { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr !important; }
  .header-actions .btn { display: none; }
  .hero { padding-bottom: 130px; }
  .facts { margin-top: -80px; }
  .toolbar { position: static; }
  .lb-prev { left: 4px; } .lb-next { right: 4px; } .lb-close { right: 4px; top: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .manifesto .w { opacity: 1; }
  .spiral path { stroke-dashoffset: 0; }
}

/* ---------- личный кабинет, формы, автоматизация ---------- */
.icon-btn .dot { position: absolute; top: 6px; right: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); border: 2px solid var(--bg); }
.icon-btn .dot[hidden] { display: none; }
.form-err { margin: 0; padding: 10px 14px; border-radius: 12px; font-size: .92rem; background: color-mix(in srgb, var(--danger) 14%, transparent); border: 1px solid color-mix(in srgb, var(--danger) 50%, transparent); }
.form-err.ok { background: color-mix(in srgb, var(--ok) 14%, transparent); border-color: color-mix(in srgb, var(--ok) 50%, transparent); }
.form-err[hidden] { display: none; }
.req-card { padding: 18px 20px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--border); display: grid; gap: 10px; }
.req-card header { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; align-items: center; }
.req-card .reply { padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--accent) 12%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); white-space: pre-wrap; }
.req-card .reply b { display: block; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.st-new { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }
.st-in_progress { color: var(--warm); border-color: color-mix(in srgb, var(--warm) 50%, transparent); }
.st-done { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 50%, transparent); }
.st-cancelled { color: var(--muted); }
.auto-band { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px; align-items: center; padding: clamp(28px, 5vw, 56px); }
.auto-band:hover { transform: none; }
.auto-wave, .auto-art svg { width: 100%; height: auto; }
.scope { stroke-dasharray: 700; stroke-dashoffset: 700; animation: scope 4.5s linear infinite; }
@keyframes scope { 0% { stroke-dashoffset: 700; } 55%, 100% { stroke-dashoffset: 0; } }
.auto-art { max-width: 420px; margin-inline: auto; width: 100%; }
@media (max-width: 900px) { .auto-band { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .scope { animation: none; stroke-dashoffset: 0; } }
