/* AI SLAVA · лендинг v0.5 · стили по Brand Kit v1.0 */
@font-face { font-family: "Manrope"; src: url("fonts/Manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/JetBrainsMono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --navy: #0B162A;
  --panel: #122036;
  --cyan: #38BDD8;
  --cloud: #E8EEF4;
  --slate: #9AA8B8;
  --mint: #7DCEA0;
  --line: rgba(56, 189, 216, 0.22);
  --head: "Manrope", "Segoe UI", sans-serif;
  --text: "Inter", "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "Consolas", monospace;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--cloud);
  font-family: var(--text);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0 0 14px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-family: var(--head); font-weight: 800; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(34px, 5.2vw, 56px); line-height: 1.08; }
h2 { font-size: clamp(28px, 3.6vw, 38px); line-height: 1.15; }
h3 { font-size: 21px; line-height: 1.3; font-weight: 700; }
.kicker { font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); margin-bottom: 14px; }
.lead { font-size: 20px; color: var(--slate); max-width: 720px; }
.muted { color: var(--slate); }
.fine { font-size: 14px; color: var(--slate); }

/* кнопки и теги */
.btn { display: inline-block; font-family: var(--head); font-weight: 700; font-size: 16px; padding: 14px 26px; border-radius: 12px; background: var(--cyan); color: var(--navy); border: 1.5px solid var(--cyan); transition: transform .15s; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--cyan); }
.tag { display: inline-block; font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: 0.04em; padding: 5px 14px; border: 1px solid var(--line); border-radius: 999px; color: var(--cloud); background: rgba(56, 189, 216, 0.06); }
.tag.result { color: var(--mint); border-color: rgba(125, 206, 160, .5); background: rgba(125, 206, 160, .07); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 26px; }

/* шапка */
.header { position: sticky; top: 0; z-index: 10; background: rgba(11, 22, 42, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.brand img { height: 30px; width: auto; }
.nav { display: flex; gap: 26px; }
.nav a { color: var(--slate); font-size: 15px; }
.nav a:hover { color: var(--cloud); text-decoration: none; }
.header .btn { padding: 10px 18px; font-size: 15px; }

/* секции */
.section { padding: 88px 0; }
.section.alt { background: #0E1B31; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 40px; }

/* герой */
.hero { position: relative; padding: 96px 0 80px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: url("assets/patterns/route.svg") repeat; background-size: 200px; opacity: .55;
  -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000 100%); mask-image: linear-gradient(90deg, transparent 35%, #000 100%); }
.hero .wrap { position: relative; }
.hero h1 { max-width: 820px; }
.hero .lead { margin: 24px 0 32px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.hero-note { margin-bottom: 36px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; }

/* услуги */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.loss { border-top: 2px solid rgba(56, 189, 216, .5); }
.loss .num { font-family: var(--mono); font-weight: 500; font-size: 14px; color: var(--cyan); letter-spacing: .1em; margin-bottom: 10px; }
.loss p { color: var(--slate); font-size: 16px; margin: 8px 0 0; }

.services-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.services-grid .service { grid-column: span 2; }
.services-grid .service.wide { grid-column: span 3; }
.services-grid .service.featured { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1.2fr; gap: 36px; align-items: center; border-color: rgba(125, 206, 160, .5); background: linear-gradient(135deg, #14263f 0%, var(--panel) 70%); padding: 34px; }
.featured-head { display: flex; gap: 20px; align-items: center; }
.featured-head img { margin-bottom: 0; width: 56px; height: 56px; flex: none; }
.featured-head h3 { font-size: 28px; margin-top: 10px; }
.featured-body p { font-size: 17px; color: var(--cloud); margin: 0 0 12px; }
.featured-body .plus { color: var(--slate); }
.featured-body .plus b { color: var(--mint); font-weight: 600; }
.service img { width: 44px; height: 44px; margin-bottom: 16px; }
.service p { color: var(--slate); font-size: 16px; margin: 8px 0 0; }
.note { margin-top: 28px; }

/* процесс */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; }
.step .num { font-family: var(--mono); font-weight: 500; font-size: 14px; color: var(--cyan); letter-spacing: .1em; margin-bottom: 10px; }
.step p { color: var(--slate); font-size: 16px; margin: 8px 0 0; }
.step .when { margin-top: 14px; }

/* кейс */
.case { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.case-cover { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.case-title { font-size: clamp(26px, 3.2vw, 34px); line-height: 1.15; font-weight: 800; margin: 14px 0 16px; }
.case-text { min-width: 0; }
.case-media { display: flex; flex-direction: column; gap: 20px; order: -1; min-width: 0; }
.demo { display: grid; grid-template-columns: 230px 1fr; gap: 20px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.demo video { width: 100%; aspect-ratio: 2 / 3; border-radius: 12px; background: var(--navy); object-fit: cover; }
.demo-text p { margin: 8px 0 0; font-size: 15px; color: var(--slate); }
.case-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 26px 0; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 16px; min-width: 0; }
.stat b { display: block; font-family: var(--head); font-weight: 800; font-size: 30px; line-height: 1.05; color: var(--mint); white-space: nowrap; }
.stat span { font-size: 14px; color: var(--slate); }
.case-points { margin: 0 0 26px; padding: 0; list-style: none; }
.case-points li { padding-left: 20px; position: relative; margin-bottom: 8px; color: var(--cloud); font-size: 17px; }
.case-points li::before { content: ""; position: absolute; left: 0; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }

/* вторичная ссылка, ховеры */
.link-arrow { font-family: var(--head); font-weight: 600; font-size: 16px; color: var(--cyan); align-self: center; padding: 14px 4px; }
.link-arrow span { display: inline-block; transition: transform .15s; }
.link-arrow:hover { text-decoration: none; }
.link-arrow:hover span { transform: translateX(4px); }
.card { transition: border-color .15s; }
.card:hover { border-color: var(--cyan); }

/* что на выходе */
.deliver { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.deliver h2 { margin-bottom: 22px; }
.check { list-style: none; margin: 0 0 20px; padding: 0; }
.check li { position: relative; padding-left: 28px; margin-bottom: 12px; font-size: 17px; color: var(--slate); }
.check li b { color: var(--cloud); font-weight: 600; }
.check li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px; border-left: 2.5px solid var(--cyan); border-bottom: 2.5px solid var(--cyan); transform: rotate(-45deg); }
.mock { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 26px; }
.mock-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.mock-title { font-family: var(--head); font-weight: 800; font-size: 24px; margin-bottom: 18px; }
.mock-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mock-col { border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.mock-col.first { border-color: var(--cyan); }
.mock-col p { margin: 6px 0 0; font-size: 15px; color: var(--cloud); }
.mock-label { font-family: var(--mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); }
.mock-col.first .mock-label { color: var(--cyan); }
.labels { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }

/* кому подходит */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.fit h3 { margin-bottom: 14px; }
.fit ul { margin: 0; padding: 0; list-style: none; }
.fit li { position: relative; padding-left: 22px; margin-bottom: 11px; font-size: 16px; color: var(--slate); }
.fit li::before { content: ""; position: absolute; left: 0; top: .62em; width: 9px; height: 9px; border-radius: 50%; }
.fit.yes li::before { background: var(--cyan); }
.fit.no li::before { background: transparent; border: 2px solid var(--slate); }
.fit.yes { border-color: rgba(56, 189, 216, .45); }

/* ещё работы */
.work { display: flex; flex-direction: column; gap: 6px; }
.work h3 { margin-top: 10px; }
.work p { color: var(--slate); font-size: 16px; flex: 1; margin: 8px 0 14px; }
.mono { font-family: var(--mono); }
.work .tag { align-self: flex-start; }

/* основатель */
.founder { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: start; }
.founder-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.founder-photos img { border-radius: 18px; border: 1px solid var(--line); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 12%; height: auto; }
.founder-photos figcaption { font-size: 13px; color: var(--slate); margin-top: 8px; }
.founder h2 { margin-bottom: 16px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.facts .stat { padding: 22px 24px; }
.facts .stat b { color: var(--cyan); font-size: 32px; white-space: normal; }
.facts .stat span { font-size: 15px; }

/* контакты */
.cta { text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 56px 28px; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; inset: 0; background: url("assets/patterns/nodes.svg") repeat; opacity: .5; }
.cta > * { position: relative; }
.cta .lead { margin: 18px auto 30px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.contacts { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; margin-top: 30px; font-size: 16px; }
.cta-note { margin: 22px auto 0; max-width: 560px; }

.footer { border-top: 1px solid var(--line); padding: 30px 0; color: var(--slate); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer img { height: 26px; width: auto; }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .case, .founder, .deliver, .split { grid-template-columns: 1fr; }
  .case-media { order: 0; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .services-grid .service, .services-grid .service.wide { grid-column: span 1; }
  .services-grid .service.featured { grid-column: 1 / -1; grid-template-columns: 1fr; gap: 20px; }
  .founder-photos { grid-template-columns: 1fr 1fr; max-width: 560px; }
  .nav { display: none; }
}
@media (max-width: 600px) {
  .header .btn { font-size: 13px; padding: 8px 12px; }
  .header-inner { gap: 12px; }
  .brand img { height: 24px; }
  .case-stats, .facts { grid-template-columns: 1fr; }
  .demo { grid-template-columns: 1fr; }
  .demo video { max-width: 260px; margin: 0 auto; }
  .mock-cols { grid-template-columns: 1fr; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; text-align: center; height: 56px; line-height: 28px; }
  .hero-actions { gap: 8px; }
  .stat b { font-size: 28px; }
  .grid-3, .steps, .services-grid { grid-template-columns: 1fr; }
  .services-grid .service.featured { padding: 24px; }
  .featured-head h3 { font-size: 24px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .chips .tag { border-radius: 14px; }
  .facts .stat b { font-size: 36px; }
  .section { padding: 60px 0; }
  .hero { padding: 64px 0 56px; }
}

/* ===== v0.4 ===== */
.ribbon { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 28px; padding: 9px 18px; border: 1px solid rgba(125, 206, 160, .5); border-radius: 999px; background: rgba(125, 206, 160, .07); color: var(--mint); font-family: var(--mono); font-size: 14px; letter-spacing: .03em; }
.ribbon:hover { text-decoration: none; background: rgba(125, 206, 160, .14); }
.ribbon .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
.hero-founder { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; }
.hero-founder img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 8%; border: 1px solid var(--line); flex: none; }
.hero-founder b { display: block; font-family: var(--head); font-weight: 700; font-size: 16px; }
.hero-founder span { font-size: 14px; color: var(--slate); }
.tag.method { color: var(--slate); border-color: rgba(154, 168, 184, .45); background: rgba(154, 168, 184, .07); }

.seg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.seg h3 { margin-bottom: 14px; }
.seg ul { margin: 0; padding: 0; list-style: none; }
.seg li { position: relative; padding-left: 20px; margin-bottom: 10px; font-size: 16px; color: var(--slate); }
.seg li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }

.dept { display: flex; flex-direction: column; gap: 6px; }
.dept .tag { align-self: flex-start; }
.dept h3 { margin-top: 10px; }
.dept p { color: var(--slate); font-size: 16px; margin: 8px 0 0; }

.narrow { max-width: 820px; }
.acc { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; padding: 0 22px; }
.acc summary { cursor: pointer; list-style: none; padding: 18px 28px 18px 0; font-family: var(--head); font-weight: 700; font-size: 18px; position: relative; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 22px; color: var(--cyan); }
.acc[open] summary::after { content: "–"; }
.acc[open] { border-color: var(--cyan); }
.acc p { margin: 0 0 18px; color: var(--slate); font-size: 16px; }

.pilot { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; align-items: start; padding: 40px; border-color: rgba(125, 206, 160, .5); background: linear-gradient(135deg, #14263f 0%, var(--panel) 70%); }
.pilot-cols { display: grid; gap: 22px; }
.pilot .check { margin: 10px 0 0; }
.pilot .check li { font-size: 16px; margin-bottom: 8px; }

.doc h2 { font-size: 22px; margin: 34px 0 10px; }
.doc p { color: var(--slate); font-size: 16px; }
.doc ul { margin: 0 0 14px; padding-left: 20px; color: var(--slate); font-size: 16px; }
.doc li { margin-bottom: 6px; }

@media (max-width: 900px) {
  .seg-grid, .pilot { grid-template-columns: 1fr; }
  .pilot { padding: 26px; gap: 28px; }
}
@media (max-width: 900px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts .stat b { white-space: normal; }
  .auto-grid { grid-template-columns: 1fr; }
  .quiz-wrap { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: 1fr; }
}

/* ===== v0.5 ===== */
.proof { padding: 36px 0; border-bottom: 1px solid var(--line); }
.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 8px 0 14px; }
.seg img { width: 48px; height: 48px; margin-bottom: 14px; }
.seg .mock-label { margin-bottom: 10px; }
.auto-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.auto { display: flex; flex-direction: column; }
.auto img { width: 48px; height: 48px; margin-bottom: 14px; }
.auto p { color: var(--slate); font-size: 15px; margin: 0 0 10px; }
.auto p b { color: var(--cloud); font-weight: 600; }
.scheme { margin: 0 0 28px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--panel); }
.scheme img { width: 100%; height: auto; display: block; }
.case { align-items: start; }
.case-cover { display: none; }

.quiz-wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: 36px; align-items: start; }
.quiz-side { margin-top: 28px; display: grid; gap: 18px; }
.quiz-next { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.quiz-next h3 { margin-bottom: 12px; }
.quiz-card { background: #F4F7FB; color: #0B162A; border-radius: 18px; padding: 28px; min-height: 420px; }
.quiz-card h3 { color: #0B162A; margin: 8px 0 16px; font-size: 24px; }
.quiz-card .muted, .quiz-card .fine { color: #5B6B7C; }
.quiz-card .kicker { color: #0B7A8F; }
.quiz-progress { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #5B6B7C; font-family: var(--mono); letter-spacing: .04em; text-transform: uppercase; }
.quiz-progress b { color: #0B162A; }
.quiz-bar { height: 4px; background: #D5DEE8; border-radius: 99px; margin: 12px 0 18px; overflow: hidden; }
.quiz-bar i { display: block; height: 100%; background: var(--cyan); }
.quiz-opts { display: grid; gap: 8px; margin-bottom: 22px; }
.quiz-opt { text-align: left; background: #fff; border: 1.5px solid #D5DEE8; border-radius: 12px; padding: 12px 14px; font: inherit; font-size: 16px; cursor: pointer; color: #0B162A; }
.quiz-opt:hover, .quiz-opt.is-on { border-color: var(--cyan); background: rgba(56, 189, 216, .08); }
.quiz-nav { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.quiz-nav .btn[disabled] { opacity: .45; pointer-events: none; }
.quiz-field { display: grid; gap: 6px; font-size: 14px; color: #5B6B7C; margin-bottom: 12px; }
.quiz-field input { font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 10px; border: 1.5px solid #D5DEE8; color: #0B162A; }
.quiz-other { margin: -6px 0 22px; }
.quiz-other input { background: #fff; }
.quiz-other input:focus { outline: none; border-color: var(--cyan); }
.quiz-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #3A4A5C; margin: 8px 0; }
.quiz-check a { color: #0B7A8F; }
.quiz-legal { margin: 12px 0 0; font-size: 13px; color: #5B6B7C; }
