/* Glarus Digital — общий стиль сайта.
   Только тёмная тема: чёрные полосы чередуются с чуть более светлыми тёмными (.paper);
   плотные заголовки Montserrat, голубой акцент для действий, фиолетовый — для Glarus BI. */
:root {
  color-scheme: dark;
  --black: #050507;
  --surface: #0d0f14;
  --surface-2: #141720;
  --paper: #0b0c11;
  --paper-2: #141720;
  --ink: #f3f3f0;
  --on-accent: #090a0d;
  --white: #ffffff;
  --muted: #a6a8b0;
  --muted-dark: #a6a8b0;
  --line: rgba(255, 255, 255, .14);
  --line-dark: rgba(255, 255, 255, .14);
  --accent: #6199f6;
  --accent-hover: #85b0f8;
  --accent-active: #4c82dc;
  --accent-ink: #6199f6;
  --accent-tint: rgba(97, 153, 246, .14);
  --violet: #5b3fe0;
  --violet-soft: #8f7bff;
  --cyan: #46d9cf;
  --danger: #ff6b81;
  --f-head: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --f-body: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --f-mono: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --header-h: 72px;
  --max: 1280px;
  --radius: 8px;
  --control-radius: 9px;
  --control-h: 48px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--black); }
img { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }

.wrap {
  max-width: var(--max);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
}

h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 600; margin: 0; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.2rem); line-height: 1.04; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3.2rem); line-height: 1.06; }
h3 { font-size: clamp(1.25rem, 1.8vw, 1.6rem); line-height: 1.15; }
h4, h3.h4 { font-size: 1.1rem; line-height: 1.25; letter-spacing: -.01em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
p { margin: 0; }
.eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); }
.lead { font-size: clamp(1.02rem, 1.3vw, 1.18rem); line-height: 1.55; color: var(--muted); max-width: 58ch; }
.paper .lead { color: var(--muted-dark); }
.mono { font-family: var(--f-mono); }

/* ---------- bands ---------- */
.band { padding-block: clamp(4rem, 9vw, 7.5rem); position: relative; }
.dark { background: var(--black); color: var(--white); }
.paper { background: var(--paper); color: var(--ink); border-block: 1px solid rgba(255,255,255,.06); }
.paper .eyebrow { color: var(--accent-ink); }
.head { display: grid; gap: 1rem; max-width: 860px; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.head.center { margin-inline: auto; text-align: center; justify-items: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  height: var(--control-h); padding: 0 20px; border-radius: var(--control-radius);
  font: 600 .94rem/1 var(--f-body); text-decoration: none; white-space: nowrap; cursor: pointer;
  border: 1px solid transparent; transition: background .25s var(--ease), border-color .25s, transform .25s var(--ease);
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-accent:active { background: var(--accent-active); }
.btn-dark { background: #18191f; color: var(--white); }
.btn-dark:hover { background: #22242c; }
.btn-soft { background: #3c5fa6; color: var(--white); }
.btn-soft:hover { background: #4a6fbb; }
.btn-line { border-color: var(--line); color: var(--white); background: transparent; }
.btn-line:hover { border-color: rgba(255,255,255,.4); }
.paper .btn-line { border-color: var(--line-dark); color: var(--ink); }
.paper .btn-line:hover { border-color: rgba(255,255,255,.4); }
.btn-violet { background: var(--violet); color: var(--white); height: 40px; padding: 0 16px; }
.btn-violet:hover { background: #6a50ee; }
.btn-lg { height: 56px; padding: 0 28px; font-size: 1rem; }
.btn-block { width: 100%; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--white);
  font: 500 .84rem/1 var(--f-body); text-decoration: none; cursor: pointer; transition: border-color .2s, background .2s;
}
.chip:hover { border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.06); }
.paper .chip { border-color: var(--line-dark); background: transparent; color: var(--ink); }

/* ---------- header ---------- */
.site-head {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(5,5,7,.82);
  backdrop-filter: blur(16px) saturate(1.2); -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.site-head .wrap { height: var(--header-h); display: flex; align-items: center; gap: 1.5rem; }
.logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--white); flex: none; }
.logo img { width: 30px; height: 30px; }
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--white); flex: none; }
.brand-name { font: 700 1.15rem/1 var(--f-head); letter-spacing: -.01em; white-space: nowrap; }
.brand-name span { font-weight: 500; color: var(--muted); }
.brand:hover .logo-badge { transform: scale(1.05); }
.logo-badge { flex: none; width: 46px; height: 46px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 8px 30px -8px rgba(143,123,255,.55); transition: transform .2s; }
.logo-badge:hover { transform: scale(1.05); }
.logo-badge img { width: 34px; height: 34px; }
.logo b { font: 700 1.55rem/1 var(--f-head); letter-spacing: -.04em; }
.logo span { font: 500 1.55rem/1 var(--f-head); letter-spacing: -.04em; color: var(--muted); }
.nav { display: none; gap: .25rem; margin-left: 1rem; }
.nav a { white-space: nowrap; padding: .5rem .7rem; border-radius: 8px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: .94rem; transition: color .2s, background .2s; }
.nav a:hover { color: var(--white); background: rgba(255,255,255,.05); }
.nav a[aria-current="page"] { color: var(--white); }
/* ссылка на Glarus BI & AI — пункт меню, а не вторая кнопка */
.nav-bi { display: inline-flex; align-items: center; gap: .4rem; }
.nav a.nav-bi, .mobile-nav a.m-link.nav-bi { color: var(--violet-soft); }
.nav a.nav-bi:hover { color: #b3a6ff; background: rgba(143,123,255,.1); }
.nav-bi svg { width: 12px; height: 12px; flex: none; }
.mobile-nav .nav-bi svg { width: 16px; height: 16px; }
.head-actions { margin-left: auto; display: flex; align-items: center; gap: .6rem; }
.menu-btn { width: 44px; height: 44px; border-radius: var(--control-radius); border: 1px solid var(--line); background: transparent; color: var(--white); display: grid; place-items: center; cursor: pointer; }
.menu-btn svg { width: 20px; height: 20px; }
.head-actions .btn-accent { display: none; }
@media (min-width: 640px) { .head-actions .btn-accent { display: inline-flex; } }
@media (min-width: 1200px) {
  .nav { display: flex; }
  .menu-btn { display: none; }
}
.mobile-nav { position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 0; z-index: 49; background: var(--black); padding-block: 1.5rem 2rem; overflow-y: auto; }
.mobile-nav .wrap { display: grid; gap: .25rem; }
.mobile-nav a.m-link { display: block; padding: .9rem 0; border-bottom: 1px solid var(--line); font: 600 1.4rem/1.2 var(--f-head); letter-spacing: -.02em; text-decoration: none; color: var(--white); }
.mobile-nav a.m-link[aria-current="page"] { color: var(--accent); }
.mobile-nav .btn { margin-top: 1.25rem; }
@media (min-width: 1200px) { .mobile-nav { display: none !important; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + clamp(3rem, 8vw, 6.5rem)); padding-bottom: clamp(3.5rem, 7vw, 6rem); background: var(--black); }
.hero-art { position: absolute; inset: 0; pointer-events: none; }
.hero-art svg { position: absolute; right: -6%; top: 50%; transform: translateY(-46%); height: 125%; width: auto; max-width: none; opacity: .95; }
.hero-art::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--black) 0%, rgba(5,5,7,.94) 34%, rgba(5,5,7,.55) 62%, rgba(5,5,7,.25) 100%),
    linear-gradient(0deg, var(--black) 0%, transparent 30%);
}
@media (max-width: 900px) {
  .hero-art svg { right: -40%; height: 100%; opacity: .55; }
  .hero-art::after { background: linear-gradient(90deg, rgba(5,5,7,.92), rgba(5,5,7,.6)), linear-gradient(0deg, var(--black), transparent 40%); }
}
.hero .wrap { position: relative; display: grid; gap: 1.5rem; }
.hero-copy { display: grid; gap: 1.4rem; max-width: 720px; min-width: 0; }
.hero.inner { padding-bottom: clamp(3rem, 6vw, 5rem); }
.hero.inner h1 { font-size: clamp(2.2rem, 4.6vw, 3.7rem); }
.hero .actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.crumbs { display: flex; flex-wrap: wrap; gap: .4rem; font-size: .8rem; color: var(--muted); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--white); }

.prompt { display: flex; align-items: center; gap: .5rem; background: var(--surface-2); border: 1px solid rgba(255,255,255,.18); border-radius: var(--control-radius); padding: 6px 6px 6px 18px; max-width: 600px; box-shadow: 0 20px 60px -30px rgba(97,153,246,.5); }
.prompt input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: 400 1rem var(--f-body); height: 44px; }
.prompt input::placeholder { color: #7d808a; }
.prompt button { width: 44px; height: 44px; flex: none; border: 0; border-radius: 7px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.prompt button:hover { background: var(--accent-hover); }
.prompt button svg { width: 18px; height: 18px; }
.prompt:focus-within { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- scenario cards (как карточки-сценарии) ---------- */
.scenes { display: grid; gap: 1rem; }
@media (min-width: 900px) {
  .scenes { grid-template-columns: 1.25fr 1fr; grid-template-rows: auto auto; }
  .scenes .scene.big { grid-row: span 2; }
}
.scenes.four { margin-top: 1rem; }
@media (min-width: 900px) { .scenes.four { grid-template-columns: 1fr 1fr; } }
.scene {
  position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface); min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end;
  isolation: isolate; text-decoration: none; color: var(--white);
}
.scene.big { min-height: 440px; }
/* иллюстрация занимает своё место над текстом и не наезжает на заголовок */
.scene .art { position: relative; flex: 1 0 auto; padding: 24px 24px 0; }
.scene .art .ui { position: relative; }
.scene.big .art { padding: 28px 28px 0; }
.scene-body { position: relative; }
.scene::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(5,5,7,.96) 0%, rgba(5,5,7,.7) 38%, rgba(5,5,7,0) 75%); }
.scene-body { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; padding: clamp(1.25rem, 2.5vw, 2rem); }
.scene-body > div { display: grid; gap: .4rem; max-width: 44ch; min-width: 0; }
.scene-body p { color: var(--muted); font-size: .95rem; }
.scene .btn-soft { flex: none; }
.scene:hover .btn-soft { background: #4a6fbb; }

/* мини-интерфейсы внутри карточек */
.ui { position: absolute; font-family: var(--f-mono); font-size: 12px; line-height: 1.7; color: var(--muted); }
.ui-card { background: rgba(20,23,32,.92); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); }
.ui-card b { color: var(--white); font-weight: 500; }
.ui-card .ok { color: var(--cyan); }
.ui-card .ac { color: var(--accent); }
.ui-card .vi { color: var(--violet-soft); }
.glow { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.bubble { display: block; max-width: 230px; padding: 8px 12px; border-radius: 12px; font-family: var(--f-body); font-size: 12.5px; line-height: 1.45; }
.bubble.me { background: var(--accent); color: var(--on-accent); margin-left: auto; border-bottom-right-radius: 4px; }
.bubble.ai { background: #1f2330; color: #dfe2ea; border-bottom-left-radius: 4px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 64px; }
.bars i { display: block; width: 14px; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, var(--violet-soft), var(--violet)); }
.bars i:nth-child(odd) { background: linear-gradient(180deg, var(--accent-hover), var(--accent-ink)); }

/* ---------- split: шаги ---------- */
.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; } .split.rev > :first-child { order: 2; } }
.media-card { position: relative; overflow: hidden; min-height: 420px; border-radius: var(--radius); background: var(--surface); color: var(--white); isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(1.25rem, 2.5vw, 2rem); }
.media-card .art { position: absolute; inset: 0; z-index: -1; }
.media-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(5,5,7,.95), rgba(5,5,7,.2) 60%, rgba(5,5,7,0)); }
.media-card h3 { margin-bottom: .4rem; }
.media-card p { color: var(--muted); }
.steps { list-style: none; margin: 1.75rem 0; padding: 0; display: grid; }
.steps li { display: grid; grid-template-columns: 3rem 1fr; gap: .5rem; padding: 1.15rem 0; border-bottom: 1px solid var(--line-dark); }
.dark .steps li { border-color: var(--line); }
.steps .n { font: 700 .82rem/1.9 var(--f-body); color: var(--accent-ink); }
.dark .steps .n { color: var(--accent); }
.steps h4, .steps .h4 { margin-bottom: .3rem; }
.steps p { color: var(--muted-dark); font-size: .95rem; }
.dark .steps p { color: var(--muted); }
.callout { border-left: 2px solid var(--accent-ink); background: var(--accent-tint); padding: 1rem 1.15rem; border-radius: 0 6px 6px 0; margin-bottom: 1.75rem; }
.callout .eyebrow { display: block; margin-bottom: .35rem; font-size: .7rem; }
.callout p { color: #dfe4ee; }
.dark .callout { background: rgba(97,153,246,.08); border-color: var(--accent); }
.dark .callout p { color: #dfe4ee; }

/* ---------- сетка ячеек ---------- */
.cells { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cells > * { padding: 1.4rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); min-width: 0; text-decoration: none; display: grid; gap: .4rem; align-content: start; transition: background .2s; }
.cells > *:nth-child(2n) { border-right: 0; }
.cells > *:nth-last-child(-n+2) { border-bottom: 0; }
.cells > a:hover { background: rgba(255,255,255,.03); }
.cells p { color: var(--muted); font-size: .92rem; }
.paper .cells { border-color: var(--line-dark); }
.paper .cells > * { border-color: var(--line-dark); }
.paper .cells p { color: var(--muted-dark); }
@media (max-width: 560px) {
  .cells { grid-template-columns: 1fr; }
  .cells > * { border-right: 0; border-bottom: 1px solid var(--line); }
  .cells > *:nth-last-child(2) { border-bottom: 1px solid var(--line); }
  .paper .cells > *:nth-last-child(2) { border-bottom-color: var(--line-dark); }
  .cells > *:last-child { border-bottom: 0; }
}
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.25rem); display: grid; gap: 1.1rem; align-content: start; min-width: 0; }
.panel p { color: var(--muted); }
.two { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }
@media (min-width: 960px) { .two { grid-template-columns: 1fr 1fr; align-items: start; } }

/* ---------- списки услуг ---------- */
.rows { border-top: 1px solid var(--line-dark); }
.dark .rows { border-color: var(--line); }
.row { display: grid; gap: 1rem; padding: clamp(1.5rem, 3vw, 2.25rem) 0; border-bottom: 1px solid var(--line-dark); }
.dark .row { border-color: var(--line); }
@media (min-width: 900px) { .row { grid-template-columns: 5rem 1.1fr 1.4fr; align-items: start; } }
.row .idx { font: 700 .82rem/2 var(--f-body); color: var(--accent-ink); }
.dark .row .idx { color: var(--accent); }
.row p { color: var(--muted-dark); }
.dark .row p { color: var(--muted); }
.row .chips { margin-top: .9rem; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.ticks li { display: grid; grid-template-columns: 1.2rem 1fr; gap: .5rem; }
.ticks li::before { content: "→"; color: var(--accent-ink); font-weight: 700; }
.dark .ticks li::before { color: var(--accent); }

/* ---------- примеры автоматизаций ---------- */
.examples { display: grid; gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 640px) { .examples { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .examples { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.examples div { background: var(--paper); padding: 1.15rem 1.25rem; display: grid; gap: .25rem; min-width: 0; }
.examples b { font: 600 1rem/1.3 var(--f-head); letter-spacing: -.01em; }
.examples span { font-size: .86rem; color: var(--muted-dark); }

/* ---------- таблица ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-dark); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .95rem; color: var(--ink); }
th, td { padding: 1rem 1.25rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-dark); }
tr:last-child td { border-bottom: 0; }
thead th { font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted-dark); background: var(--paper-2); }
thead th.us { color: var(--accent-ink); }
td:first-child { color: var(--muted-dark); width: 26%; }
td.us { background: rgba(97,153,246,.08); font-weight: 500; }

/* ---------- схема фабрики (SVG) ---------- */
.factory { position: relative; background: radial-gradient(120% 90% at 50% 30%, rgba(91,63,224,.16), transparent 60%), linear-gradient(180deg, #0f1119, #0a0b10); border: 1px solid rgba(143,123,255,.22); border-radius: 14px; overflow: hidden; min-width: 0; box-shadow: 0 40px 100px -40px rgba(91,63,224,.55), 0 0 0 1px rgba(255,255,255,.03) inset; }
.factory-head { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 1.1rem; border-bottom: 1px solid var(--line); font: 400 .76rem var(--f-mono); color: var(--muted); background: rgba(255,255,255,.02); }
.factory-head .live { display: inline-flex; align-items: center; gap: .45rem; color: var(--cyan); }
.factory-head .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .35; } }
.factory svg { display: block; width: 100%; height: auto; overflow: visible; }
.factory .wire { stroke: rgba(143,123,255,.32); stroke-width: 1.4; fill: none; }
.factory .ring { stroke: rgba(143,123,255,.45); stroke-width: 1.2; fill: none; stroke-dasharray: 3 5; animation: ring-spin 40s linear infinite; transform-origin: 270px 165px; }
@keyframes ring-spin { to { transform: rotate(360deg); } }
.factory .node { fill: #12141d; stroke: var(--violet-soft); stroke-width: 1.8; transition: fill .3s, filter .3s; }
.factory .node.on { fill: var(--violet-soft); filter: drop-shadow(0 0 8px rgba(143,123,255,.9)); }
.factory .core { fill: #141228; stroke: var(--violet-soft); stroke-width: 1.6; filter: drop-shadow(0 0 18px rgba(91,63,224,.6)); }
.factory .box { fill: #141720; stroke: rgba(255,255,255,.16); stroke-width: 1.2; }
.factory .lbl { fill: var(--white); font: 500 12.5px var(--f-body); }
.factory .sub { fill: var(--muted); font: 400 10.5px var(--f-mono); }
.factory .core-t { fill: #fff; font: 600 12px var(--f-mono); letter-spacing: .08em; }
.factory .pulse-a { fill: var(--cyan); filter: drop-shadow(0 0 6px var(--cyan)); }
.factory .pulse-v { fill: var(--violet-soft); filter: drop-shadow(0 0 6px var(--violet-soft)); }
.factory .tick { stroke: var(--cyan); stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.log { list-style: none; margin: 0; padding: .9rem 1.1rem 1.1rem; border-top: 1px solid var(--line); font: 400 .8rem/1.75 var(--f-mono); display: grid; }
.log li { display: grid; grid-template-columns: 7.5rem 1fr; gap: .75rem; color: var(--muted); transition: opacity .3s; min-width: 0; }
.log li span:last-child { min-width: 0; overflow-wrap: anywhere; }
.log .who { color: var(--violet-soft); }
.log li.task, .log li.done { color: var(--white); }
.log li.task .who, .log li.done .who { color: var(--cyan); }
.log li.dim { opacity: .35; }
@media (max-width: 460px) { .log li { grid-template-columns: 1fr; gap: 0; margin-bottom: .35rem; } }

/* ---------- данные ---------- */
.flow { display: grid; gap: 1rem; }
@media (min-width: 900px) { .flow { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; } }
.flow > div { position: relative; padding: 1.5rem; border: 1px solid var(--line); background: var(--surface); border-radius: var(--radius); display: grid; gap: .5rem; align-content: start; min-width: 0; }
.flow .k { font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.flow p { color: var(--muted); font-size: .92rem; }
@media (min-width: 900px) {
  .flow > div { border-radius: 0; border-right-width: 0; }
  .flow > div:first-child { border-radius: var(--radius) 0 0 var(--radius); }
  .flow > div:last-child { border-radius: 0 var(--radius) var(--radius) 0; border-right-width: 1px; }
  .flow > div:not(:last-child)::after { content: "→"; position: absolute; right: -14px; top: 50%; transform: translateY(-50%); z-index: 1; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--black); border: 1px solid var(--line); color: var(--accent); font-size: .85rem; }
}
.flow .bi { background: linear-gradient(160deg, rgba(91,63,224,.28), var(--surface) 70%); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line-dark); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; }
.facts div { background: var(--surface); padding: 1.1rem 1.2rem; display: grid; gap: .2rem; }
.facts b { font: 600 1.35rem/1.15 var(--f-head); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.facts span { font-size: .85rem; color: var(--muted-dark); }
.links { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ---------- логотипы ---------- */
.logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 640px) { .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 980px) { .logos { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.logos div { background: var(--black); height: 104px; display: grid; place-items: center; padding: 1rem 1.25rem; }
.logos img { max-height: 40px; width: auto; height: auto; filter: brightness(0) invert(1); opacity: .6; transition: opacity .25s; }
.logos div:hover img { opacity: 1; }
.logos img.tall { max-height: 56px; }
.paper .logos { background: var(--line-dark); border-color: var(--line-dark); }
.paper .logos div { background: var(--paper); }
.logos.small div { height: 80px; }
.logos.small img { max-height: 28px; }
.sub-h { margin: 3rem 0 1rem; font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.paper .sub-h { color: var(--muted-dark); }

/* ---------- кейсы ---------- */
.cases { display: grid; gap: 1rem; }
@media (min-width: 900px) { .cases { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.case { border: 1px dashed var(--line); border-radius: var(--radius); padding: 1.5rem; display: grid; gap: 1rem; align-content: start; min-width: 0; background: var(--surface); }
.case .tag { font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.soon { display: inline-block; margin-left: .4rem; padding: .1rem .45rem; border-radius: 5px; border: 1px solid rgba(97,153,246,.45); color: var(--accent); font-size: .68rem; }
.skel { display: grid; gap: .55rem; }
.skel i { display: block; height: .75rem; border-radius: 4px; background: linear-gradient(90deg, #171a22, #232733, #171a22); background-size: 200% 100%; animation: shimmer 2.4s linear infinite; }
.skel i:nth-child(1) { height: 1.2rem; width: 75%; }
.skel i:nth-child(3) { width: 60%; }
@keyframes shimmer { to { background-position: -200% 0; } }
.case dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .4rem 1rem; font-size: .9rem; }
.case dt { color: var(--muted); }
.case dd { margin: 0; color: var(--accent); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line-dark); }
.faq details { border-bottom: 1px solid var(--line-dark); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.3rem 0; font: 600 1.12rem/1.35 var(--f-head); letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-3px, -3px); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq details p { padding: 0 0 1.4rem; color: var(--muted-dark); max-width: 75ch; }
.dark .faq, .dark .faq details { border-color: var(--line); }
.dark .faq details p { color: var(--muted); }

/* ---------- финальный CTA ---------- */
.cta { position: relative; overflow: hidden; text-align: center; padding-block: clamp(5rem, 11vw, 9rem); background: var(--black); }
.cta .hero-art svg { right: 50%; transform: translate(50%, -50%); height: 150%; opacity: .5; }
.cta .hero-art::after { background: radial-gradient(ellipse 60% 70% at 50% 50%, rgba(5,5,7,.55), var(--black) 80%); }
.cta .wrap { position: relative; display: grid; gap: 1.2rem; justify-items: center; }
.cta p { color: var(--muted); max-width: 52ch; }

/* ---------- контакты и форма ---------- */
.contacts { margin: 0; display: grid; border-top: 1px solid var(--line); }
.contacts div { display: grid; grid-template-columns: 7rem 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.contacts dt { font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.contacts dd { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem .9rem; min-width: 0; }
.contacts dd a { font: 600 1.25rem/1.3 var(--f-head); letter-spacing: -.01em; text-decoration: none; overflow-wrap: anywhere; }
.contacts dd a:hover { color: var(--accent); }
.contacts dd span { color: var(--muted); }
.copy { font: 500 .74rem var(--f-body); color: var(--muted); background: none; border: 1px solid var(--line); border-radius: 6px; padding: .25rem .55rem; cursor: pointer; }
.copy:hover { color: var(--white); border-color: rgba(255,255,255,.4); }

.form { display: grid; gap: 1rem; background: var(--surface); border: 1px solid var(--line); color: var(--ink); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); min-width: 0; }
.form h3 { margin-bottom: .25rem; }
.row2 { display: grid; gap: 1rem; }
@media (min-width: 560px) { .row2 { grid-template-columns: 1fr 1fr; } }
.form label { display: grid; gap: .4rem; font-size: .84rem; font-weight: 500; color: var(--muted-dark); min-width: 0; }
.form input, .form textarea {
  width: 100%; font: 400 1rem var(--f-body); color: var(--ink); background: var(--surface-2);
  border: 1px solid var(--line); border-radius: var(--control-radius); padding: .8rem .95rem; transition: border-color .2s, background .2s;
}
.form input:focus, .form textarea:focus { outline: none; border-color: var(--accent); background: var(--surface-2); }
.form textarea { min-height: 120px; resize: vertical; }
.form fieldset { border: 0; padding: 0; margin: 0; }
.form legend { font-size: .84rem; font-weight: 500; color: var(--muted-dark); margin-bottom: .5rem; }
.topics { display: flex; flex-wrap: wrap; gap: .45rem; }
.topics label { display: inline-block; }
.topics input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.topics span { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-dark); font-size: .85rem; color: var(--ink); cursor: pointer; transition: all .2s; }
.topics input:checked + span { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.topics input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.agree { display: grid !important; grid-template-columns: auto 1fr; gap: .6rem; align-items: start; font-size: .86rem !important; }
.agree input { width: 1.05rem; height: 1.05rem; margin-top: .2rem; padding: 0; accent-color: var(--accent-ink); }
.agree a { color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form .invalid { border-color: var(--danger) !important; outline: 1px solid var(--danger); }
.form-msg { border-radius: var(--control-radius); padding: .85rem 1rem; font-size: .92rem; }
.form-msg.err { background: rgba(255,107,129,.12); color: #ff9aa8; }
.form-msg.ok { background: var(--accent-tint); color: #bcd3ff; }
.form small { color: var(--muted-dark); font-size: .8rem; }

/* ---------- footer ---------- */
.site-foot { background: var(--black); border-top: 1px solid var(--line); padding-block: 3.5rem 2rem; color: var(--white); }
.foot-grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.foot-grid p { color: var(--muted); font-size: .92rem; margin-top: .9rem; max-width: 32ch; }
.foot-col .foot-h { margin: 0 0 1rem; font-family: var(--f-body); line-height: 1.3; font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent); }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.foot-col a { text-decoration: none; font-size: .92rem; font-weight: 500; }
.foot-col a:hover { color: var(--accent); }
.foot-cta { display: grid; gap: .9rem; align-content: start; }
.foot-cta a.plain { text-decoration: none; color: var(--muted); font-size: .92rem; }
.foot-cta a.plain:hover { color: var(--white); }
.foot-legal { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .8rem; color: var(--muted); }
.foot-legal div { display: grid; gap: .2rem; }
.foot-legal a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- сеть Glarus (фон) ---------- */
.net { display: block; }
.net line { stroke-width: 1.3; opacity: .55; }
.net line.c { stroke: var(--violet-soft); opacity: .9; stroke-width: 1.8; }
.net circle { fill: var(--black); stroke: var(--accent); stroke-width: 1.5; }
.net circle.c { fill: var(--violet); stroke: var(--violet-soft); }
.net .p { fill: var(--accent-hover); stroke: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- главная: схема в первом экране ---------- */
.hero.home { padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + clamp(2.5rem, 6vw, 4.5rem)); }
.hero-grid { position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 72% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 72% 40%, #000 20%, transparent 75%); }
.hero-grid::after { content: ""; position: absolute; width: 640px; height: 640px; right: -120px; top: -80px; border-radius: 50%; background: radial-gradient(closest-side, rgba(91,63,224,.32), transparent); }
@media (min-width: 1040px) { .hero.home .wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; } }
.hero.home h1 { font-size: clamp(2.2rem, 4.1vw, 3.7rem); }

/* ---------- раньше / сейчас ---------- */
.band.shift { background: var(--black); border-top: 1px solid var(--line); }
.strike { position: relative; color: var(--muted); white-space: nowrap; }
.strike::after { content: ""; position: absolute; left: -2%; right: -2%; top: 55%; height: .09em; background: var(--violet-soft); transform: rotate(-3deg); }
.shift-grid { display: grid; gap: 1rem; align-items: stretch; }
@media (min-width: 900px) { .shift-grid { grid-template-columns: 1fr auto 1.15fr; } }
.shift-card { border-radius: 14px; padding: clamp(1.5rem, 3vw, 2.25rem); display: grid; gap: 1rem; align-content: start; min-width: 0; }
.shift-card .tag { font: 500 .78rem var(--f-mono); text-transform: uppercase; letter-spacing: .08em; }
.shift-card .big { margin: 0; font: 600 clamp(1.7rem, 3.4vw, 2.6rem)/1.08 var(--f-head); letter-spacing: -.03em; }
.shift-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .55rem; }
.shift-card li { padding-left: 1.4rem; position: relative; }
.shift-card.before { background: var(--surface); border: 1px solid var(--line); color: var(--muted); }
.shift-card.before .tag { color: var(--muted); }
.shift-card.before b { font-weight: 600; color: #c9cad0; text-decoration: line-through; text-decoration-color: rgba(255,255,255,.35); text-decoration-thickness: 2px; }
.shift-card.before li::before { content: "×"; position: absolute; left: 0; color: #7d8090; }
.shift-card.now { background: linear-gradient(135deg, #5b3fe0 0%, #3d2bb0 55%, #1f2a6b 100%); color: #fff; box-shadow: 0 40px 90px -40px rgba(91,63,224,.8); }
.shift-card.now .tag { color: #bfe9ff; }
.shift-card.now b { color: #fff; }
.shift-card.now li::before { content: "✓"; position: absolute; left: 0; color: var(--cyan); }
.shift-arrow { display: grid; place-items: center; color: var(--violet-soft); }
.shift-arrow svg { width: 32px; height: 32px; }
@media (max-width: 899px) { .shift-arrow svg { transform: rotate(90deg); } }
.shift-note { margin: clamp(1.5rem, 3vw, 2.25rem) 0 0; max-width: 820px; font: 500 clamp(1.15rem, 2vw, 1.45rem)/1.45 var(--f-head); color: var(--white); letter-spacing: -.01em; }
.shift-note b { color: var(--violet-soft); }
@media (prefers-reduced-motion: reduce) { .factory .ring { animation: none; } }

/* ---------- не вайбкодинг ---------- */
.pro-grid { display: grid; gap: 1rem; }
@media (min-width: 900px) { .pro-grid { grid-template-columns: 1fr 1.25fr; } }
.pro-card { border-radius: 14px; padding: clamp(1.5rem, 3vw, 2.25rem); display: grid; gap: 1rem; align-content: start; min-width: 0; }
.pro-card h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.pro-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .65rem; }
.pro-card li { padding-left: 1.5rem; position: relative; }
.pro-card.vibe { border: 1px dashed var(--line-dark); color: var(--muted-dark); }
.pro-card.vibe li::before { content: "×"; position: absolute; left: 0; color: #b0472f; font-weight: 700; }
.pro-card.eng { background: linear-gradient(160deg, rgba(91,63,224,.22), var(--surface) 65%); border: 1px solid rgba(143,123,255,.3); color: #d9dae0; }
.pro-card.eng h3 { color: #fff; }
.pro-card.eng li b { color: #fff; font-weight: 600; }
.pro-card.eng li::before { content: "✓"; position: absolute; left: 0; color: var(--cyan); font-weight: 700; }
.pro-card .tag { font: 600 .78rem var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted-dark); }
.pro-card.eng .tag { color: var(--violet-soft); }
