/* ИИ-сайты. Спокойные тона: шалфей — то, что делает ИИ, терракота — то, что делает человек. */
:root {
  --bg: #f3f0e9; --surface: #fbfaf6; --ink: #22231f; --muted: #6a695f; --line: #e0dbcf;
  --ai: #3f6b62; --ai-ink: #30564e; --ai-soft: #e3ebe6; --ai-light: #93bfb2;
  --human: #b2613f; --human-soft: #f3e6dd; --human-light: #e3967a;
  --dark: #22221f; --dark-2: #2b2b27; --dark-line: #3a3a34; --dark-muted: #aaa89d;
  --wrap: 1180px;
  --header-row-height: 68px;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --hand: 'Caveat', 'Segoe Print', 'Comic Sans MS', cursive;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-row-height) + 1px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
::selection { background: var(--ai); color: #fff; }
a { color: inherit; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 800; line-height: 1.08; letter-spacing: -.025em; }
h2 { font-size: clamp(32px, 4.4vw, 54px); margin-top: 18px; }
h3 { font-size: 22px; line-height: 1.25; letter-spacing: -.01em; }
:focus-visible { outline: 3px solid var(--ai); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.privacy.wrap { max-width: 760px; padding-block: clamp(40px, 7vw, 90px); overflow-wrap: anywhere; }
.privacy h1 { font-size: clamp(28px, 5vw, 48px); }
.privacy section { margin-top: 32px; }
.privacy h2 { font-size: clamp(21px, 3vw, 28px); }
.privacy p { margin: 12px 0; line-height: 1.65; }
.privacy small { color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.eyebrow::before { content: ''; width: 20px; height: 2px; background: currentColor; }
.ai { color: var(--ai); }
.hum { color: var(--human); }
b.ai, b.hum { font-weight: inherit; }
.hum {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 12' preserveAspectRatio='none'%3E%3Cpath d='M2 8c18-5 38-6 58-4s40 3 58-2' fill='none' stroke='%23b2613f' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 0 100% / 100% .3em;
  padding-bottom: .06em;
}
.hand { font: 600 26px/1 var(--hand); color: var(--human); }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 56px; padding: 0 28px; border: 0; border-radius: 999px;
  font: 700 16px/1 var(--sans); text-decoration: none; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: default; transform: none; }
.btn-ai { background: var(--ai); color: #fff; box-shadow: 0 10px 24px -14px rgba(63, 107, 98, .6); }
.btn-ai:hover { background: var(--ai-ink); }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(34, 35, 31, .22); }
.btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-sm { height: 42px; padding: 0 20px; font-size: 15px; }
.arr { display: inline-block; transition: transform .2s; }
a:hover .arr, button:hover .arr { transform: translateX(3px); }

/* Шапка */
.top { position: sticky; top: 0; z-index: 30; background: rgba(243, 240, 233, .86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; max-width: 1440px; height: var(--header-row-height); }
.top .cta-short { display: none; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
.logo svg { width: 32px; height: 32px; flex: none; }
.nav { display: flex; gap: 20px; margin-left: 8px; }
.nav a { padding: 4px 0; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14.5px; white-space: nowrap; transition: color .15s, box-shadow .15s; }
.nav a:hover, .nav a.on { color: var(--ink); }
.nav a.on { box-shadow: inset 0 -2px 0 var(--human); }
.top .btn { margin-left: auto; }

/* Меню на телефоне */
.burger { display: none; position: relative; flex: none; width: 42px; height: 42px; border: 0; border-radius: 12px; background: transparent; cursor: pointer;
  box-shadow: inset 0 0 0 1.5px rgba(34, 35, 31, .18); }
.burger i { position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.burger i:nth-child(1) { top: 14px; } .burger i:nth-child(2) { top: 20px; } .burger i:nth-child(3) { top: 26px; }
.top.open .burger i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.top.open .burger i:nth-child(2) { opacity: 0; }
.top.open .burger i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mnav { display: none; max-width: var(--wrap); margin: 0 auto; padding: 4px 24px 18px; }
.mnav a { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 17px; text-decoration: none; }
.mnav a::after { content: '→'; color: var(--muted); }
.mnav a.on { color: var(--ai); }

/* Первый экран */
.hero { padding: 56px 0 104px; }
.hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.4vw, 72px); margin: 22px 0 24px; }
.hero-lead { font-size: 20px; line-height: 1.55; color: var(--muted); max-width: 31em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.made { display: flex; align-items: baseline; gap: 10px; margin-top: 30px; font-size: 15px; color: var(--muted); }
.made .hand { font-size: 24px; }

/* Редактор кода + превью сайта */
.stage { position: relative; padding-bottom: 190px; }
.stage:not(:has(.pv-img)) { padding-bottom: 80px; }
.editor { position: relative; background: #262622; color: #ebe8df; border-radius: 18px; overflow: hidden;
  box-shadow: 0 40px 70px -30px rgba(34, 35, 31, .4), 0 0 0 1px rgba(255, 255, 255, .04) inset; }
.ed-bar { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid #33332e; font: 500 12px/1 var(--mono); color: #8f8c80; }
.ed-bar i, .pv-bar i, .work-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3d3d37; flex: none; }
.ed-bar > span { margin-left: 8px; }
.ed-status { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--ai-light); transition: color .3s; }
.ed-status em { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.4s ease-in-out infinite; }
.ed-status.hum { color: var(--human-light); }
.ed-status.ok { color: #b5c98f; }
.ed-status.ok em { animation: none; }
@keyframes pulse { 50% { opacity: .25; } }
.ed-code { padding: 18px 0 26px; font: 400 13.5px/1.9 var(--mono); font-variant-ligatures: none; counter-reset: ln; min-height: calc(6 * 1.9em + 44px); }
.ed-code li { counter-increment: ln; white-space: pre; padding-right: 16px; }
.ed-code li::before { content: counter(ln); display: inline-block; width: 46px; padding-right: 16px; text-align: right; color: #55544c; }
.lc { position: relative; }
.struck .lc::after { content: ''; position: absolute; left: -3px; right: -3px; top: 52%; height: 2.5px; border-radius: 3px; background: var(--human);
  transform: rotate(-2deg); transform-origin: left; animation: strike .35s ease-out both; }
@keyframes strike { from { transform: rotate(-2deg) scaleX(0); } }
.k-t { color: #93bfb2; } .k-a { color: #d4b98c; } .k-p { color: #8f8c80; } .k-s { color: #b9c98e; } .k-x { color: #ece9e0; } .k-c { color: #7a786e; font-style: italic; }
.caret { display: inline-block; width: 8px; height: 1.15em; margin-left: 1px; vertical-align: -.22em; background: var(--ai-light); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.note { position: absolute; left: 0; top: 0; padding: 4px 10px 6px; border-radius: 10px; background: rgba(35, 35, 31, .85);
  font: 600 25px/1.02 var(--hand); color: #e3967a; white-space: nowrap;
  opacity: 0; transform: rotate(-4deg) translateY(6px); transition: opacity .3s, transform .3s; pointer-events: none; }
.note.show { opacity: 1; transform: rotate(-4deg); }

.preview { position: absolute; right: -14px; bottom: 0; width: 260px; background: var(--surface); border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 30px 60px -24px rgba(34, 35, 31, .35); transform: rotate(1.5deg); }
.pv-bar { display: flex; align-items: center; gap: 5px; height: 28px; padding: 0 11px; border-bottom: 1px solid var(--line); font: 500 10.5px/1 var(--mono); color: var(--muted); }
.pv-bar i { width: 7px; height: 7px; background: #dcd8ce; }
.pv-bar span { margin-left: 6px; }
.pv-img { position: relative; height: 136px; margin: 10px; border-radius: 10px; overflow: hidden; background: #e9e3d6; }
.pv-img img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; transition: opacity 1.4s ease, filter .9s ease; }
.pv-stale { opacity: 0; }
.pv-img.is-stale .pv-stale { opacity: 1; }
.pv-img.is-stale .pv-warm { opacity: 0; }
.pv-img.is-foggy img { filter: blur(3px) saturate(.85); }
.pv-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.preview:not(:has(.pv-img)) .pv-h { padding-top: 14px; }
.pv-img.ai::after { content: 'фото: ИИ'; position: absolute; right: 7px; bottom: 7px; padding: 3px 7px; border-radius: 6px; background: rgba(255, 255, 255, .88); font: 600 9.5px/1 var(--mono); color: var(--ai); }
.pv-h { padding: 0 13px; font-weight: 800; font-size: 18px; letter-spacing: -.015em; }
.pv-p { min-height: 2.9em; padding: 3px 13px 14px; font-size: 13px; line-height: 1.45; color: var(--muted); }
[data-pv] { transition: opacity .45s, transform .45s; }
[data-pv].off { opacity: 0; transform: translateY(6px); }

/* Разделы */
.sec { padding: 112px 0; }
.sec[id] { padding-block: clamp(14px, 1.2vw, 18px) clamp(36px, 4vw, 60px); }
.sec .wrap > h2:first-child { margin-top: 0; }
.soft { background: #ebe7de; }
.def { max-width: 25em; margin: 30px 0 60px; font-size: clamp(25px, 3.1vw, 40px); line-height: 1.32; font-weight: 600; letter-spacing: -.018em; }
.duo { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 20px; align-items: stretch; }
.duo-card { padding: 30px 32px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.duo-card li { position: relative; padding: 9px 0 9px 26px; border-top: 1px solid var(--line); font-size: 18px; font-weight: 600; }
.duo-card li:first-child { border-top: 0; }
.duo-card li::before { content: ''; position: absolute; left: 0; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 3px; }
.duo-ai h3 { font: 500 15px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ai); margin: 6px 0 16px; }
.duo-ai li::before { background: var(--ai); }
.duo-hum h3 { font: 600 34px/1 var(--hand); color: var(--human); letter-spacing: 0; margin: 0 0 10px; }
.duo-hum li::before { background: var(--human); border-radius: 50%; }
.duo-plus { align-self: center; font-size: 34px; font-weight: 300; color: var(--muted); }

.cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 52px; }

/* Тёмный раздел: отличия */
.dark { background: var(--dark); color: #f1efe8; }
.dark .eyebrow { color: var(--dark-muted); }
.card { display: flex; flex-direction: column; gap: 14px; padding: 32px; border-radius: 22px; background: var(--dark-2); border: 1px solid var(--dark-line); }
.card .num { font: 500 13px/1 var(--mono); color: #7b796f; }
.card h3 { color: #fff; }
.card p { flex: 1; font-size: 17.5px; line-height: 1.6; color: #cdcabf; }
.vs { display: flex; flex-direction: column; gap: 6px; font: 500 13px/1.4 var(--mono); }
.vs s { color: #85837a; text-decoration-color: var(--human-light); text-decoration-thickness: 2px; }
.vs span { color: var(--ai-light); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips span { padding: 6px 10px; border-radius: 8px; background: rgba(147, 191, 178, .13); color: #b6d3c9; font: 500 12.5px/1 var(--mono); }
.card-hum .hand { font-size: 30px; color: var(--human-light); }

/* Честно: что дарит только человек */
.honest { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: end; margin-top: 18px; }
.honest h2 { margin-top: 0; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.12; }
.honest-lead { font-size: 23px; font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }
.honest-text { margin-top: 14px; font-size: 18px; color: var(--muted); }
.gifts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.gift { padding: 22px 24px 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: inset 0 3px 0 var(--human); }
.gift b { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.gift span { display: block; margin-top: 6px; font-size: 15px; color: var(--muted); }
.gifts-hand { margin-top: 18px; text-align: right; }
.gifts-hand .hand { font-size: 30px; }

/* Кто делает */
.h2-wide { max-width: 18em; }
.maker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.mk { padding: 28px 30px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); }
.mk p { margin-top: 14px; font-size: 21px; line-height: 1.45; font-weight: 600; letter-spacing: -.01em; }
.mk-tag { display: inline-block; padding: 7px 12px; border-radius: 999px; font: 500 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; }
.mk-prog { color: var(--muted); }
.mk-prog .mk-tag { background: #eeece6; color: var(--muted); }
.mk-biz { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.mk-biz .mk-tag { background: var(--ink); color: #fff; }
.mk-note { max-width: 36em; margin-top: 28px; font-size: 19px; color: var(--muted); }
.author { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; margin-top: 64px; padding: 40px; border-radius: 28px; background: var(--ink); color: #f1efe8; }
.author .hand { font-size: 30px; color: var(--human-light); }
.author h3 { margin-top: 10px; font-size: clamp(26px, 3vw, 36px); line-height: 1.12; letter-spacing: -.02em; }
.author p { margin-top: 16px; font-size: 18px; color: #cdcabf; max-width: 30em; }
.work { display: block; overflow: hidden; border-radius: 18px; background: var(--surface); color: var(--ink); text-decoration: none; transition: transform .2s, box-shadow .2s; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6); }
.work:hover { transform: translateY(-3px) rotate(-.5deg); }
.work-bar { display: flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-bottom: 1px solid var(--line); font: 500 12px/1 var(--mono); color: var(--muted); }
.work-bar i { width: 9px; height: 9px; background: #dcd8ce; }
.work-bar span { margin-left: 6px; }
.work-body { padding: 24px 24px 22px; background: linear-gradient(160deg, #fff 40%, #f1efe9); }
.work-tag { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--ai); }
.work h3 { display: block; margin-top: 12px; font-size: 30px; font-weight: 800; letter-spacing: -.025em; }
.work p { margin-top: 8px; font-size: 16px; color: var(--muted); }
.work-go { display: inline-block; margin-top: 18px; font-weight: 700; color: var(--ai); }

/* Витрина необычного */
.sec-lead { max-width: 34em; margin-top: 22px; font-size: 19px; color: var(--muted); }
.dark .sec-lead { color: var(--dark-muted); }
.sh-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 52px; }
.sh { display: flex; flex-direction: column; margin: 0; border-radius: 22px; overflow: hidden; background: var(--dark-2); border: 1px solid var(--dark-line); }
.sh-wide { grid-column: span 2; }
.sh-stage { position: relative; flex: 1; min-height: 440px; }
.sh canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
#shParticles canvas { cursor: grab; touch-action: pan-y; }
#shParticles canvas:active { cursor: grabbing; }
.sh-cap { padding: 20px 24px 24px; border-top: 1px solid var(--dark-line); }
.sh-cap h3 { font-size: 19px; color: #fff; }
.sh-cap p { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--dark-muted); }
.pt-shapes { position: absolute; left: 16px; top: 16px; display: flex; flex-wrap: wrap; gap: 6px; }
.pt-shapes button { padding: 9px 15px; border: 1px solid #45453e; border-radius: 999px; background: rgba(34, 34, 31, .7); color: #cdcabf;
  font: 600 14px/1 var(--sans); cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .15s, color .15s, border-color .15s; }
.pt-shapes button:hover { color: #fff; border-color: #66655c; }
.pt-shapes button.on { background: #fff; border-color: #fff; color: var(--ink); }
.pt-fps { position: absolute; right: 18px; bottom: 16px; font: 500 12px/1 var(--mono); color: #6a685f; }
.no-gl-blob { display: none; }
.no-gl canvas { display: none; }
.no-gl .no-gl-blob { display: block; position: absolute; inset: 24%; border-radius: 42% 58% 55% 45% / 50% 40% 60% 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #c9ddd5 28%, #3f6b62 58%, #b2613f); animation: morph 8s ease-in-out infinite; }
@keyframes morph { 50% { border-radius: 58% 42% 40% 60% / 40% 60% 45% 55%; transform: rotate(40deg); } }

.tl { display: grid; place-items: center; perspective: 900px; }
.tl-card { position: relative; width: min(70%, 250px); aspect-ratio: 3 / 4; border-radius: 20px; transform-style: preserve-3d; transition: transform .25s ease-out;
  background: linear-gradient(150deg, #3a4a44, #262622 55%, #4a352c); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.tl-glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at var(--gx, 30%) var(--gy, 20%), rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 55%); }
.tl-title { position: absolute; left: 22px; bottom: 46px; font-size: 28px; font-weight: 800; letter-spacing: -.02em; color: #fff; transform: translateZ(50px); }
.tl-sub { position: absolute; left: 22px; bottom: 24px; font: 500 12px/1 var(--mono); color: #aaa89d; transform: translateZ(30px); }
.cube { --s: 88px; position: absolute; left: 50%; top: 38%; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  transform-style: preserve-3d; transform: translateZ(80px) rotateX(-20deg) rotateY(30deg); animation: spin 14s linear infinite; }
.cube i { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .3);
  background: linear-gradient(135deg, #6f9c90, #9a6a52); font: normal 800 40px/1 var(--sans); color: #fff; backface-visibility: hidden; }
.cube i:nth-child(1) { transform: translateZ(calc(var(--s) / 2)); }
.cube i:nth-child(2) { transform: rotateY(180deg) translateZ(calc(var(--s) / 2)); }
.cube i:nth-child(3) { transform: rotateY(90deg) translateZ(calc(var(--s) / 2)); }
.cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(calc(var(--s) / 2)); }
.cube i:nth-child(5) { transform: rotateX(90deg) translateZ(calc(var(--s) / 2)); }
.cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(calc(var(--s) / 2)); }
@keyframes spin { from { transform: translateZ(80px) rotateX(-20deg) rotateY(0); } to { transform: translateZ(80px) rotateX(-20deg) rotateY(360deg); } }

.sc { display: flex; align-items: center; padding: 0 44px;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 32px 32px; }
.sc-text { font: 500 clamp(28px, 5vw, 66px)/1.1 var(--mono); letter-spacing: -.03em; color: #fff; white-space: nowrap; }
.sc-text .g { color: var(--ai-light); }

/* Услуги */
.svc { display: flex; flex-direction: column; padding: 32px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.svc:hover { transform: translateY(-3px); box-shadow: 0 24px 40px -28px rgba(34, 35, 31, .3); }
.svc:last-child:nth-child(odd) { grid-column: 1 / -1; }
.svc-ico { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 22px; border-radius: 14px; background: var(--ai-soft); }
.svc-ico svg { width: 26px; height: 26px; fill: none; stroke: var(--ai); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.svc p { margin-top: 12px; color: var(--muted); }
.svc ul { margin: 20px 0 26px; flex: 1; }
.svc li { position: relative; padding: 6px 0 6px 22px; font-size: 15.5px; font-weight: 600; }
.svc li::before { content: ''; position: absolute; left: 2px; top: 14px; width: 9px; height: 5px; border-left: 2px solid var(--ai); border-bottom: 2px solid var(--ai); transform: rotate(-45deg); }
.svc-link { align-self: flex-start; font-weight: 700; color: var(--ai); text-decoration: none; }

/* Как работаем */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 52px; counter-reset: st; }
.st { padding-top: 22px; border-top: 3px solid var(--ai); }
.st-hum { border-top-color: var(--human); }
.st-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.st-n { font: 500 44px/1 var(--mono); letter-spacing: -.04em; color: var(--ink); }
.st-who { padding: 6px 10px; border-radius: 8px; background: var(--ai-soft); color: var(--ai); font: 500 12px/1 var(--mono); }
.st-hum .st-who { background: var(--human-soft); color: var(--human); }
.st p { margin-top: 10px; color: var(--muted); font-size: 16px; }

/* Заявка */
.order { background: var(--ai); color: #fff; position: relative; overflow: hidden; }
.order::before { content: ''; position: absolute; inset: auto -10% -60% auto; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 65%); pointer-events: none; }
.order-in { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.order .eyebrow { color: rgba(255, 255, 255, .7); }
.order-txt p { margin-top: 20px; font-size: 20px; color: rgba(255, 255, 255, .85); max-width: 24em; }
.contacts { display: flex; flex-direction: column; gap: 8px; margin-top: 28px; }
.contacts a { font-weight: 700; font-size: 19px; text-decoration: none; }
.contacts a:hover { text-decoration: underline; }
.form-card { padding: 34px; border-radius: 26px; background: var(--surface); color: var(--ink); box-shadow: 0 40px 70px -30px rgba(20, 40, 35, .45); }
.form { display: grid; gap: 16px; }
.kinds { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 4px; padding: 0; border: 0; }
.kinds legend { margin-bottom: 10px; padding: 0; font-weight: 700; font-size: 15px; }
.kinds label { position: relative; cursor: pointer; }
.kinds input { position: absolute; opacity: 0; pointer-events: none; }
.kinds span { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600; font-size: 15px; transition: background .15s, border-color .15s, color .15s; }
.kinds label:hover span { border-color: var(--ink); }
.kinds input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.kinds input:focus-visible + span { outline: 3px solid var(--ai); outline-offset: 2px; }
.f { display: grid; gap: 7px; }
.f > span { font-weight: 700; font-size: 15px; }
.f i { font-style: normal; font-weight: 500; color: var(--muted); }
.f input, .f textarea { width: 100%; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: #fbfaf7; color: var(--ink);
  font: 500 16px/1.4 var(--sans); transition: border-color .15s, background .15s; }
.f textarea { resize: vertical; min-height: 110px; }
.f input:focus, .f textarea:focus { outline: none; border-color: var(--ai); background: #fff; }
.f input::placeholder, .f textarea::placeholder { color: #a5a397; }
.form.js:not(.is-redo) .f-site { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form .btn { width: 100%; margin-top: 4px; }
.fine { font-size: 13px; color: var(--muted); text-align: center; }
.form-msg:empty { display: none; }
.form-msg.err { padding: 12px 14px; border-radius: 12px; background: var(--human-soft); color: #8f4528; font-weight: 600; font-size: 15px; }
.thanks { padding: 30px 6px; text-align: center; }
.thanks .hand { font-size: 44px; }
.thanks h3 { margin-top: 12px; font-size: 28px; }
.thanks p { margin-top: 10px; color: var(--muted); }
.lead-dialog {
  position: fixed; inset: 0; margin: auto; width: min(420px, calc(100% - 32px));
  height: fit-content; max-height: calc(100% - 32px); overflow: auto;
  padding: 30px 22px; border: 1px solid var(--line); border-radius: 22px;
  background: var(--bg); color: var(--ink); font: inherit; text-align: center;
  box-shadow: 0 18px 72px rgba(0, 0, 0, .26); z-index: 201;
}
.lead-dialog::backdrop { background: rgba(12, 14, 13, .64); }
.lead-dialog .thanks { padding: 0; }
.lead-dialog .btn { margin-top: 24px; }

/* Подвал */
.foot { padding: 56px 0 44px; background: var(--dark); color: var(--dark-muted); }
.foot .wrap { display: grid; gap: 14px; }
.foot .logo { color: #fff; }
.foot p { max-width: 36em; }
.foot-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 6px; }
.foot-nav a { color: #cdcabf; font-weight: 600; font-size: 15px; text-decoration: none; }
.foot-nav a:hover { color: #fff; }
.foot .contacts { margin-top: 4px; }
.analytics-settings { justify-self: start; padding: 0; background: none; color: inherit; border: 0; text-decoration: underline; font: inherit; cursor: pointer; }
#analytics-choice { position: fixed; z-index: 97; left: 16px; bottom: 16px; width: min(370px, calc(100% - 32px)); padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); color: var(--ink); font-size: 14px; }
#analytics-choice button { margin: 10px 6px 0 0; padding: 8px 12px; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font: inherit; }
@media (max-width: 640px) { #analytics-choice { bottom: 80px; } }
.foot .contacts a { color: #fff; font-size: 17px; }
.foot .small { margin-top: 14px; font-size: 14px; color: #7b796f; }

/* 404 */
.nf { min-height: 60vh; text-align: center; }
.nf h1 { margin-top: 10px; font-size: clamp(36px, 5vw, 60px); }
.nf p { margin: 16px 0 30px; color: var(--muted); font-size: 19px; }

/* Портфолио */
.author-link { color: inherit; font-weight: 700; justify-self: start; text-underline-offset: .25em; }
.portfolio-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 32px; }
.portfolio-grid .work { display: flex; flex-direction: column; border: 1px solid var(--line); box-shadow: 0 12px 32px -24px rgba(30,32,24,.5); }
.work-shot { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--line); }
.portfolio-grid .work-body { display: flex; flex: 1; flex-direction: column; align-items: start; }
.portfolio-grid .work-go { margin-top: auto; padding-top: 20px; }
@media (max-width: 860px) { .portfolio-grid { grid-template-columns: minmax(0, 1fr); } }

/* Адаптив */
@media (max-width: 480px) {
  .top .cta-full { display: none; }
  .top .cta-short { display: inline; }
}
@media (max-width: 1360px) {
  .nav { display: none; }
  .burger { display: block; }
  .top.open .mnav { display: grid; }
  .top.open { border-bottom-color: var(--line); }
}
@media (max-width: 960px) {
  .hero { padding: 36px 0 80px; }
  .hero-in, .order-in, .author { grid-template-columns: minmax(0, 1fr); }
  .stage { max-width: 560px; }
  .cards3, .maker, .sh-grid, .honest { grid-template-columns: minmax(0, 1fr); }
  .honest { gap: 24px; }
  .gifts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sh-wide { grid-column: auto; }
  .sh-stage { min-height: 380px; }
  .sc { min-height: 220px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 20px; }
  .duo { grid-template-columns: minmax(0, 1fr); }
  .duo-plus { justify-self: center; line-height: 1; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  :root { --header-row-height: 60px; }
  .top .wrap { gap: 12px; }
  .logo { font-size: 17px; }
  .top .logo { white-space: normal; line-height: 1.1; }
  .logo svg { width: 28px; height: 28px; }
  .btn-sm { height: 38px; padding: 0 14px; font-size: 14px; }
  .burger { width: 38px; height: 38px; }
  .burger i { left: 10px; right: 10px; }
  .burger i:nth-child(1) { top: 12px; } .burger i:nth-child(2) { top: 18px; } .burger i:nth-child(3) { top: 24px; }
  .mnav { padding: 0 16px 14px; }
  .sec { padding: 76px 0; }
  .hero-lead { font-size: 18px; }
  .cta .btn { flex: 1 1 100%; }
  .stage { padding-bottom: 0; }
  .ed-code { font-size: 11.5px; }
  .ed-code li::before { width: 34px; padding-right: 12px; }
  .note { right: 10px; font-size: 21px; }
  .preview { position: relative; right: auto; width: 78%; margin: -34px -4px 0 auto; }
  .card, .svc, .duo-card, .mk { padding: 24px; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .author { padding: 26px 20px; margin-top: 48px; gap: 28px; }
  .form-card { padding: 22px 18px; border-radius: 22px; }
  .sh-stage { min-height: 340px; }
  .sc { min-height: 180px; padding: 0 20px; }
  .pt-shapes { left: 12px; top: 12px; }
  .pt-shapes button { padding: 8px 12px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
