/* Vitrine: общие стили всех страниц продукта.
   Визуальный язык: светлая тёплая редакторская тема. Бумага, белые поверхности, почти чёрный текст,
   один тёплый акцент терракота. Заголовки Prata, текст Golos Text. */

:root {
  --bg: #F7F2EB;
  --surface: #FFFFFF;
  --surface-2: #FBF8F3;
  --tone: #F4DED4;
  --line: #E6DCD0;
  --line-strong: #D3C6B6;
  --text: #17130F;
  --muted: #6E6459;
  --muted-2: #9C9184;
  --accent: #C4502A;
  --accent-strong: #A93F1E;
  --accent-soft: #F4DED4;
  --ok: #2E7D4F;
  --ok-soft: #DCEEE2;
  --bad: #B23A2E;
  --bad-soft: #F6DCD8;
  --font-display: "Prata", "Georgia", "Times New Roman", serif;
  --font-body: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius-s: 10px;
  --radius: 16px;
  --radius-l: 24px;
  --container: 1200px;
  --nav-h: 72px;
  --shadow: 0 24px 60px -30px rgba(23, 19, 15, 0.35);
  --shadow-soft: 0 12px 30px -18px rgba(23, 19, 15, 0.25);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Бумажная зернистость: шум feTurbulence поверх всей страницы, очень слабый */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.055;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='240' height='240' filter='url(%23n)'/></svg>");
  background-size: 240px 240px;
}

img, svg, video, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- типографика ---------- */

.display, .h1, .h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; line-height: 1.08; }
.h1 { font-size: clamp(34px, 4.8vw, 64px); }
.h2 { font-size: clamp(30px, 3.4vw, 46px); text-wrap: balance; }
.h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(20px, 1.6vw, 23px); line-height: 1.25; }
.lead { font-size: clamp(17px, 1.35vw, 19px); color: var(--muted); max-width: 58ch; }
.small { font-size: 14px; color: var(--muted); }
.accent { color: var(--accent); }
.muted { color: var(--muted); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }

/* ---------- раскладка ---------- */

.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }
.section { padding: clamp(64px, 7vw, 112px) 0; position: relative; }
.section-slim { padding: clamp(24px, 3vw, 40px) 0; }
.section-tone { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head .lead { margin-top: 16px; }
.page { position: relative; z-index: 1; }

/* ---------- навигация ---------- */

.nav { position: sticky; top: 0; z-index: 30; height: var(--nav-h); display: flex; align-items: center;
  background: rgba(247, 242, 235, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 22px; letter-spacing: 0; white-space: nowrap; color: var(--text); }
.brand-mark { width: 26px; height: 26px; flex: none; }
.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-link { color: var(--muted); font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 999px; transition: color 0.2s, background 0.2s; white-space: nowrap; }
.nav-link:hover { color: var(--text); background: rgba(23, 19, 15, 0.05); }
.nav-login { margin-left: auto; font-weight: 400; color: var(--muted-2); }
.nowrap { white-space: nowrap; }
.nav-end { display: flex; align-items: center; gap: 12px; flex: none; }
.nav-cta { flex: none; }

.lang-switch { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px; background: var(--surface); }
.lang-switch button { border: 0; background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 999px; transition: background 0.2s, color 0.2s; }
.lang-switch button[aria-pressed="true"] { background: var(--text); color: var(--bg); }

/* ---------- кнопки и поля ---------- */

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid transparent; border-radius: 999px;
  padding: 12px 22px; font-weight: 600; font-size: 15px; line-height: 1.2; white-space: nowrap;
  transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: default; }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { background: #2C2520; }
.btn-accent { background: var(--accent); color: #fff; box-shadow: 0 10px 24px -12px rgba(196, 80, 42, 0.7); }
.btn-accent:hover { background: var(--accent-strong); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: var(--surface); border-color: var(--text); }
.btn-soft { background: #EFE7DC; color: var(--text); }
.btn-soft:hover { background: #E6DCCF; }
.btn-lg { padding: 0 28px; height: 58px; font-size: 16px; }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-block { width: 100%; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 14px; font-weight: 600; }
.field .hint { font-size: 13px; color: var(--muted); }
.input, .textarea, .select {
  width: 100%; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 13px 16px; color: var(--text); transition: border-color 0.2s, box-shadow 0.2s;
}
.input::placeholder, .textarea::placeholder { color: var(--muted-2); }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.select { appearance: none; -webkit-appearance: none; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%236E6459' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }

.form-error { color: var(--bad); font-size: 14px; margin-top: 10px; }
.form-ok { color: var(--ok); font-size: 14px; margin-top: 10px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 14px; cursor: pointer; transition: background 0.2s, border-color 0.2s, color 0.2s; }
.chip input:checked + span { background: var(--text); border-color: var(--text); color: var(--bg); font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; border: 1px solid var(--line); background: var(--surface); color: var(--muted); }
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill-accent { color: var(--accent); border-color: #E7BFAE; background: var(--accent-soft); }
.pill-ok { color: var(--ok); border-color: #B9DCC6; background: var(--ok-soft); }
.pill-bad { color: var(--bad); border-color: #E9BDB6; background: var(--bad-soft); }
.pill-live .pill-dot { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.7); } }

/* ---------- hero ---------- */

.hero { padding: clamp(48px, 6vw, 88px) 0 clamp(16px, 2vw, 28px); }
.hero-copy { max-width: 900px; }
.hero-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(38px, 5.4vw, 74px); line-height: 1.04; letter-spacing: -0.012em; margin-top: 18px; text-wrap: balance; }
.hero-sub { margin-top: 24px; font-size: clamp(17px, 1.4vw, 20px); color: var(--muted); max-width: 62ch; }
.hero-note { margin-top: 14px; font-size: 14px; color: var(--muted); }

.handle-form { display: flex; gap: 10px; margin-top: 34px; max-width: 640px; }
.handle-field { position: relative; flex: 1; min-width: 0; }
.handle-at { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); font-family: var(--font-display); font-size: 22px; color: var(--accent); pointer-events: none; }
.handle-input {
  width: 100%; height: 58px; padding: 0 20px 0 50px; border-radius: 999px; font-size: 17px;
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--text); transition: border-color 0.2s, box-shadow 0.2s;
}
.handle-input::placeholder { color: var(--muted-2); }
.handle-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.handle-input[aria-invalid="true"] { border-color: var(--bad); }

/* ---------- было и стало ---------- */

.ba { margin-top: clamp(48px, 6vw, 80px); }
.ba-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.ba-tab { position: relative; border: 1px solid var(--line-strong); background: transparent; color: var(--muted); border-radius: 999px; padding: 9px 18px; font-size: 14px; font-weight: 600;
  overflow: hidden; transition: color 0.2s, border-color 0.2s, background 0.2s; }
.ba-tab:hover { color: var(--text); border-color: var(--text); }
.ba-tab.is-active { color: var(--bg); background: var(--text); border-color: var(--text); }
.ba-tab span { position: relative; z-index: 1; }
/* Полоска таймера до автопереключения: заполняется за 5 секунд */
.ba-tab::after { content: ""; position: absolute; left: 0; bottom: 0; height: 100%; width: 0; background: rgba(255, 255, 255, 0.14); }
.ba-tab.is-active.is-timing::after { animation: ba-timer 5s linear forwards; }
@keyframes ba-timer { from { width: 0; } to { width: 100%; } }

.ba-stage { display: grid; position: relative; }
.ba-pane { grid-area: 1 / 1; display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); align-items: start;
  padding: clamp(24px, 3vw, 40px); border-radius: var(--radius-l); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-soft);
  opacity: 0; visibility: hidden; transition: opacity 0.7s var(--ease), visibility 0.7s; }
.ba-pane.is-active { opacity: 1; visibility: visible; }
.ba-before, .ba-after { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ba-after { flex: 1; }
.ba-label { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); }
.ba-arrow { display: flex; flex-direction: column; align-items: center; align-self: center; gap: 8px; color: var(--muted); font-size: 13px; text-align: center; min-width: 96px; }
.ba-arrow svg { width: 48px; height: 24px; color: var(--accent); }
.ba-caption { margin-top: 16px; font-size: 14px; color: var(--muted); text-align: center; }

/* Палитры ниш: терракота и глина, пудра и молочный, крем и ягода */
.pal-1 { --p-bg: #F3E4D8; --p-a: #C4502A; --p-b: #D9906E; --p-c: #EAC5AE; --p-d: #8A3F22; --p-e: #F6EDE4; }
.pal-2 { --p-bg: #FBF1EE; --p-a: #B47C74; --p-b: #E3BDB6; --p-c: #F2DAD5; --p-d: #7F4F49; --p-e: #FFF8F5; }
.pal-3 { --p-bg: #FCF3E4; --p-a: #9B2F4A; --p-b: #E1A6B5; --p-c: #F4DFC0; --p-d: #6E1F35; --p-e: #FFF9EE; }

/* Макет телефона: профиль Instagram */
.phone { width: 236px; padding: 9px; border-radius: 38px; background: #17130F; box-shadow: var(--shadow); flex: none; }
.phone-screen { position: relative; background: #fff; border-radius: 30px; padding: 26px 13px 13px; overflow: hidden; }
.phone-notch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 64px; height: 8px; border-radius: 999px; background: #17130F; }
.phone-top { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.phone-handle { font-size: 13px; font-weight: 700; color: var(--text); }
.phone-dots { display: inline-flex; gap: 3px; }
.phone-dots i { width: 3px; height: 3px; border-radius: 50%; background: var(--text); display: block; }
.phone-profile { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.phone-avatar { width: 52px; height: 52px; border-radius: 50%; flex: none; background: radial-gradient(circle at 35% 30%, var(--p-c), var(--p-a) 75%); box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--p-b); }
.phone-stats { display: flex; gap: 14px; flex: 1; justify-content: space-around; text-align: center; }
.phone-stats b { display: block; font-size: 13px; font-weight: 700; line-height: 1.1; }
.phone-stats span { display: block; font-size: 9.5px; color: var(--muted); }
.phone-name { margin-top: 10px; font-size: 12px; font-weight: 700; }
.phone-bio { font-size: 11px; color: var(--text); line-height: 1.35; }
.phone-bio-2 { color: var(--muted); }
.phone-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px; }
.phone-buttons i { height: 22px; border-radius: 6px; background: #EFEBE6; display: block; }
.phone-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; margin: 12px -13px -13px; }
.phone-grid i { aspect-ratio: 1; display: block; background: var(--p-c); }
.phone-grid i:nth-child(1) { background: linear-gradient(135deg, var(--p-a), var(--p-b)); }
.phone-grid i:nth-child(2) { background: var(--p-c); }
.phone-grid i:nth-child(3) { background: linear-gradient(160deg, var(--p-b), var(--p-c)); }
.phone-grid i:nth-child(4) { background: var(--p-e); }
.phone-grid i:nth-child(5) { background: linear-gradient(135deg, var(--p-d), var(--p-a)); }
.phone-grid i:nth-child(6) { background: var(--p-b); }
.phone-grid i:nth-child(7) { background: linear-gradient(200deg, var(--p-c), var(--p-e)); }
.phone-grid i:nth-child(8) { background: var(--p-a); }
.phone-grid i:nth-child(9) { background: linear-gradient(135deg, var(--p-b), var(--p-d)); }

/* Макет окна браузера с сайтом */
.browser { border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface); overflow: hidden; box-shadow: var(--shadow); width: 100%; }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); display: block; }
.browser-url { flex: 1; margin-left: 8px; font-size: 12px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.browser-body { position: relative; aspect-ratio: 16 / 10; background: var(--p-bg, var(--surface-2)); overflow: hidden; container-type: inline-size; }
.browser-body img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* Схематичный сайт из полос и блоков: размеры в cqw, чтобы масштабировался вместе с контейнером */
.sketch { position: absolute; inset: 0; padding: 4cqw 5cqw; display: flex; flex-direction: column; gap: 3.5cqw; background: var(--p-bg); }
.sketch i { display: block; flex: none; }
.sk-nav { display: flex; align-items: center; gap: 2cqw; height: 3.6cqw; }
.sk-logo { width: 7cqw; height: 100%; border-radius: 0.8cqw; background: var(--p-d); }
.sk-links { flex: 1; display: flex; justify-content: center; gap: 3cqw; }
.sk-links i { width: 6cqw; height: 1.2cqw; border-radius: 1cqw; background: var(--p-b); opacity: 0.8; }
.sk-btn { width: 12cqw; height: 100%; border-radius: 999px; background: var(--p-a); }
.sk-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 5cqw; height: 27cqw; }
.sk-copy { display: flex; flex-direction: column; justify-content: center; gap: 2.4cqw; }
.sk-h1 { height: 4.4cqw; width: 96%; border-radius: 0.8cqw; background: var(--p-d); }
.sk-p { height: 1.6cqw; width: 82%; border-radius: 1cqw; background: var(--p-b); opacity: 0.85; margin-top: 0.6cqw; }
.sk-short { width: 58%; }
.sk-cta { height: 5cqw; width: 40%; border-radius: 999px; background: var(--p-a); margin-top: 1.4cqw; }
.sk-img { border-radius: 1.6cqw; background: linear-gradient(135deg, var(--p-b), var(--p-a) 70%, var(--p-d)); }
.sk-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3cqw; height: 12cqw; }
.sk-row i { border-radius: 1.4cqw; background: var(--p-c); }
.sk-row i:nth-child(2) { background: linear-gradient(160deg, var(--p-c), var(--p-b)); }
.sk-row i:nth-child(3) { background: var(--p-e); border: 0.3cqw solid var(--p-c); }
.sk-review { display: flex; align-items: center; gap: 3cqw; padding: 2.6cqw 3cqw; border-radius: 1.6cqw; background: var(--p-e); }
.sk-quote { width: 5cqw; height: 5cqw; border-radius: 50%; background: var(--p-a); }
.sk-review span { flex: 1; display: flex; flex-direction: column; gap: 1.4cqw; }
.sk-line { height: 1.5cqw; width: 78%; border-radius: 1cqw; background: var(--p-b); }

/* ---------- что вы получите ---------- */

.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.benefit { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); padding: 28px 26px 30px; display: flex; flex-direction: column; gap: 14px; }
.benefit-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 6px; }
.benefit-icon svg { width: 24px; height: 24px; }
.benefit p { color: var(--muted); font-size: 15.5px; line-height: 1.55; }

/* ---------- как это происходит ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 48px); }
.step { position: relative; padding-top: 24px; border-top: 1px solid var(--line-strong); }
.step-num { display: block; font-family: var(--font-display); font-size: 40px; line-height: 1; color: var(--accent); margin-bottom: 16px; }
.step .h3 { margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 16px; max-width: 38ch; }

/* ---------- для кого ---------- */

.who .section-head { margin-bottom: clamp(20px, 3vw, 32px); }
#who.section { padding-bottom: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 10px; max-width: 980px; }
.tags li { padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); font-size: 15px; color: var(--text); }

/* ---------- примеры ---------- */

.examples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.example { border-radius: var(--radius-l); border: 1px solid var(--line); background: var(--surface); overflow: hidden; display: flex; flex-direction: column;
  transition: border-color 0.3s, transform 0.4s var(--ease), box-shadow 0.4s; }
a.example:hover { border-color: var(--line-strong); transform: translateY(-4px); box-shadow: var(--shadow); }
.example-shot { aspect-ratio: 4 / 3; position: relative; overflow: hidden; background: var(--p-bg, var(--surface-2)); border-bottom: 1px solid var(--line); container-type: inline-size; }
.example-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.example-body { padding: 18px 22px 22px; display: flex; align-items: center; gap: 12px; }
.example-body .h3 { font-size: 20px; }
.example-niche { font-size: 14px; color: var(--muted); margin-top: 4px; }
.example-link { margin-left: auto; color: var(--accent); font-size: 14px; font-weight: 600; white-space: nowrap; }
.example-link.muted { color: var(--muted-2); }

/* ---------- кто делает сайт ---------- */

.team { max-width: 820px; padding: 28px 32px; border-left: 2px solid var(--accent); }
.team .h3 { margin-bottom: 10px; }
.team p { color: var(--muted); font-size: 16px; max-width: 70ch; }

/* ---------- тарифы ---------- */

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; max-width: 960px; }
.plan { border-radius: var(--radius-l); border: 1px solid var(--line); padding: 32px; background: var(--surface); display: flex; flex-direction: column; gap: 22px; position: relative; }
.plan-pro { background: var(--tone); border-color: #E7C6B6; }
.plan-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.plan-name { font-family: var(--font-body); font-weight: 600; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.plan-pro .plan-name { color: var(--accent); }
.plan-price { font-family: var(--font-display); font-size: 40px; line-height: 1; letter-spacing: -0.01em; }
.plan-price small { font-family: var(--font-body); font-weight: 400; font-size: 14px; color: var(--muted); margin-left: 8px; }
.plan-desc { font-family: var(--font-display); font-size: 22px; line-height: 1.25; }
.plan-list { display: flex; flex-direction: column; gap: 12px; flex: 1; }
.plan-list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 15px; align-items: start; }
.plan-list li svg { width: 20px; height: 20px; margin-top: 3px; color: var(--accent); }
.plan-list li.off { color: var(--muted-2); }
.plan-list li.off svg { color: var(--muted-2); }
.plan .btn { align-self: flex-start; }
.plan-note { font-size: 13px; color: var(--muted); }

/* ---------- FAQ ---------- */

.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--line-strong); }
.faq details:last-child { border-bottom: 1px solid var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 0; font-family: var(--font-display); font-size: clamp(19px, 1.5vw, 22px); line-height: 1.3; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 16px; height: 1.5px; background: var(--accent); transform: translateY(-50%); transition: transform 0.3s var(--ease); }
.faq summary::after { transform: translateY(-50%) rotate(90deg); }
.faq details[open] summary::after { transform: translateY(-50%) rotate(0deg); }
.faq details p { padding: 0 0 24px; color: var(--muted); max-width: 66ch; }

/* ---------- футер ---------- */

.footer { padding: 36px 0 44px; border-top: 1px solid var(--line); margin-top: clamp(24px, 4vw, 48px); }
.footer-inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-tagline { margin-right: auto; }
.footer-links { display: flex; gap: 18px; font-size: 14px; color: var(--muted); }
.footer-links a:hover { color: var(--text); }

/* ---------- страница статуса ---------- */

.status-head { padding: clamp(28px, 4vw, 48px) 0 24px; }
.status-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.status-handle { font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -0.01em; }
.status-handle span { color: var(--accent); }
.status-save { margin-top: 14px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }
.status-save code { font-family: var(--font-body); color: var(--text); background: var(--surface); padding: 4px 10px; border-radius: 8px; border: 1px solid var(--line); word-break: break-all; }
.progress { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; margin-top: 22px; }
.progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width 0.8s var(--ease); }

.status-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 28px; align-items: start; padding-bottom: 80px; }
.status-side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: calc(var(--nav-h) + 16px); }

.profile-card { border-radius: var(--radius-l); border: 1px solid var(--line); background: var(--surface); padding: 20px; display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: start;
  opacity: 0; transform: translateY(10px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.profile-card.in { opacity: 1; transform: none; }
.profile-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; background: var(--surface-2); border: 1px solid var(--line); }
.profile-avatar-fallback { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-family: var(--font-display); font-size: 24px; }
.profile-name { font-weight: 600; font-size: 17px; }
.profile-meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.profile-stats { display: flex; gap: 14px; margin-top: 10px; font-size: 13px; color: var(--muted); }
.profile-stats b { color: var(--text); font-weight: 600; }
.profile-bio { grid-column: 1 / -1; font-size: 14px; color: var(--muted); white-space: pre-line; }

.timeline { border-radius: var(--radius-l); border: 1px solid var(--line); background: var(--surface); padding: 18px 20px; }
.timeline-title { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.tl { display: flex; flex-direction: column; }
.tl-item { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: center; padding: 7px 0; position: relative; font-size: 14px; color: var(--muted-2); }
.tl-item::before { content: ""; position: absolute; left: 10px; top: -8px; bottom: -8px; width: 2px; background: var(--line); }
.tl-item:first-child::before { top: 50%; }
.tl-item:last-child::before { bottom: 50%; }
.tl-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--surface); position: relative; z-index: 1; display: grid; place-items: center; }
.tl-item.done { color: var(--muted); }
.tl-item.done .tl-dot { border-color: var(--ok); background: var(--ok); }
.tl-item.done .tl-dot::after { content: ""; width: 6px; height: 10px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: translateY(-1px) rotate(45deg); }
.tl-item.active { color: var(--text); font-weight: 600; }
.tl-item.active .tl-dot { border-color: var(--accent); }
.tl-item.active .tl-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.4s ease-in-out infinite; }
.tl-item.failed .tl-dot { border-color: var(--bad); }

.status-main { display: flex; flex-direction: column; gap: 22px; min-width: 0; }

/* Окно «Что происходит»: лента событий сборки */
.vitrine { position: relative; border-radius: var(--radius-l); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-soft);
  overflow: hidden; min-height: 320px; display: flex; flex-direction: column; }
.status-main .vitrine { min-height: 320px; max-height: 70vh; }
.vitrine-bar { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); background: var(--surface-2); }
.vitrine-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); animation: pulse 1.4s ease-in-out infinite; flex: none; }
.vitrine.is-lit .vitrine-dot { animation: none; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
.vitrine-title { font-weight: 600; color: var(--text); }
.feed { padding: 10px 18px 18px; display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; scroll-behavior: smooth; }
.feed-line { display: grid; grid-template-columns: 110px 1fr auto; gap: 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); }
.feed-line:last-child { border-bottom: 0; }
.feed-line.new { animation: line-in 0.5s var(--ease) both; }
@keyframes line-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.feed-agent { font-size: 12px; font-weight: 600; color: var(--accent); letter-spacing: 0.01em; }
.feed-text { font-size: 15px; line-height: 1.45; }
.feed-time { font-size: 12px; color: var(--muted-2); }
.feed-line.is-done .feed-agent, .feed-line.is-done .feed-text { color: var(--ok); font-weight: 600; }
.feed-line.is-failed .feed-text { color: var(--bad); }
.feed-line.is-stage .feed-text { font-weight: 600; }
.feed-line.is-questions .feed-text { color: var(--accent); }

.card { border-radius: var(--radius-l); border: 1px solid var(--line); background: var(--surface); padding: clamp(20px, 3vw, 32px); }
.card-accent { border-color: #E7C6B6; background: var(--tone); }
.card-bad { border-color: #E9BDB6; background: var(--bad-soft); }
.card-title { font-family: var(--font-display); font-weight: 400; font-size: 22px; margin-bottom: 8px; line-height: 1.25; }
.card p.muted { font-size: 15px; }

.questions { display: flex; flex-direction: column; gap: 22px; }
.question .why { font-size: 13px; color: var(--muted); font-weight: 400; }
.question label { display: block; font-weight: 600; font-size: 16px; margin-bottom: 8px; }
.questions-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.result { display: flex; flex-direction: column; gap: 20px; }
.opening-line { font-family: var(--font-display); font-weight: 400; font-size: clamp(22px, 2.4vw, 32px); line-height: 1.25; text-wrap: balance; }
.result-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.result-actions .btn { white-space: normal; text-align: center; max-width: 100%; }
.site-url { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 15px; }
.site-url a { color: var(--accent); font-weight: 600; word-break: break-all; }

.device { border-radius: 18px; border: 1px solid var(--line-strong); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; transition: max-width 0.4s var(--ease); margin: 0 auto; width: 100%; }
.device-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.device-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); display: block; }
.device-url { flex: 1; margin-left: 8px; font-size: 12px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.device-toggle { display: inline-flex; gap: 2px; border: 1px solid var(--line); border-radius: 999px; padding: 2px; background: var(--surface); }
.device-toggle button { border: 0; background: transparent; color: var(--muted); font-size: 12px; padding: 3px 10px; border-radius: 999px; }
.device-toggle button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
.device iframe { width: 100%; height: 640px; border: 0; background: #fff; }
.device.is-mobile { max-width: 412px; }
.device.is-mobile iframe { height: 740px; }

/* ---------- страница Pro ---------- */

.pro-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.9fr); gap: 28px; align-items: start; padding-bottom: 80px; }
.pro-preview { position: sticky; top: calc(var(--nav-h) + 16px); }
.pro-panel { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.edits { display: flex; flex-direction: column; gap: 10px; }
.edit { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: var(--surface-2); display: flex; flex-direction: column; gap: 8px; }
.edit-comment { font-size: 15px; }
.edit-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 13px; color: var(--muted); }
.edit-explanation { font-size: 14px; color: var(--muted); }
.versions { display: flex; flex-direction: column; }
.version { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.version:last-child { border-bottom: 1px solid var(--line); }
.version .small { flex: 1; }
.version .btn { margin-left: auto; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.compare .plan { padding: 22px; gap: 14px; }
.compare .plan-price { font-size: 30px; }
.compare .plan-list li { font-size: 14px; }
.domain-field { display: flex; gap: 10px; align-items: flex-end; }
.domain-field .field { flex: 1; }

.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(23, 19, 15, 0.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal-card { position: relative; width: min(100%, 440px); border-radius: var(--radius-l); border: 1px solid var(--line); background: var(--surface); padding: 28px; display: flex; flex-direction: column; gap: 18px; box-shadow: var(--shadow); animation: modal-in 0.35s var(--ease) both; }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(0.98); } to { opacity: 1; transform: none; } }
.modal-row { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; padding: 10px 0; border-top: 1px solid var(--line); }
.modal-row b { font-weight: 600; }
.modal-total { border-top: 1px solid var(--line-strong); font-size: 18px; }
.modal-total b { font-family: var(--font-display); font-weight: 400; }
.modal-close { position: absolute; top: 14px; right: 14px; }

/* ---------- админка ---------- */

.admin-head { padding: 32px 0 20px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.admin-head .h2 { margin-right: auto; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 860px; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; white-space: nowrap; }
.table th { font-weight: 600; color: var(--muted); font-size: 13px; background: var(--surface-2); }
.table tr:last-child td { border-bottom: 0; }
.table td.wrap { white-space: normal; }
.table a { color: var(--accent); }
.status-tag { display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 600; background: #EFE7DC; color: var(--muted); }
.status-tag.done { color: var(--ok); background: var(--ok-soft); }
.status-tag.failed { color: var(--bad); background: var(--bad-soft); }
.status-tag.running, .status-tag.editing { color: var(--accent); background: var(--accent-soft); }
.status-tag.waiting_for_answers { color: #6B4A9E; background: #EBE3F5; }
.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; padding-bottom: 80px; align-items: start; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 8px 14px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-all; }
.rerun { display: flex; flex-wrap: wrap; gap: 8px; }
.log { font-size: 14px; display: flex; flex-direction: column; }
.log-line { display: grid; grid-template-columns: 74px 110px 1fr; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); align-items: baseline; }
.log-line .t { color: var(--muted-2); font-size: 12px; }
.log-line .s { color: var(--accent); font-size: 12px; font-weight: 600; }
.log-line.kind-failed .x { color: var(--bad); }
.log-line.kind-done .x { color: var(--ok); }
.log-line.kind-stage .x { font-weight: 600; }
.log-line pre { margin: 6px 0 0; font-size: 12px; color: var(--muted); white-space: pre-wrap; word-break: break-word; max-height: 160px; overflow: auto; background: var(--surface-2); border: 1px solid var(--line); padding: 8px 10px; border-radius: 8px; }
.artifacts { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- страница ошибки ---------- */

.error-page { min-height: calc(100vh - var(--nav-h)); display: grid; place-items: center; text-align: center; padding: 40px 0; }
.error-code { font-family: var(--font-display); font-size: clamp(72px, 12vw, 150px); line-height: 1; color: var(--accent); letter-spacing: -0.02em; }
.error-page .lead { margin: 16px auto 28px; }

/* ---------- появление при скролле ---------- */

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); z-index: 60; padding: 12px 18px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 14px; font-weight: 600; opacity: 0; transition: opacity 0.3s, transform 0.3s var(--ease); pointer-events: none; max-width: calc(100% - 40px); }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .ba-tab::after { display: none; }
}

/* ---------- адаптив ---------- */

@media (max-width: 1100px) {
  .status-grid { grid-template-columns: 300px minmax(0, 1fr); }
  .pro-grid { grid-template-columns: 1fr; }
  .pro-preview { position: static; }
  .admin-grid { grid-template-columns: 1fr; }
  .benefits { grid-template-columns: 1fr 1fr; }
  .nav-login { display: none; }
}

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .examples { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr; }
  .status-grid { grid-template-columns: 1fr; }
  .status-side { position: static; }
  .status-main { order: -1; }
  .compare { grid-template-columns: 1fr; }
  .nav-anchor { display: none; }
  /* Было и стало: телефон над окном браузера, стрелка смотрит вниз */
  .ba-pane { grid-template-columns: 1fr; justify-items: center; gap: 12px; }
  .ba-before, .ba-after { align-items: center; }
  .ba-after { width: 100%; }
  .ba-arrow { flex-direction: row; gap: 10px; }
  .ba-arrow svg { transform: rotate(90deg); width: 28px; height: 28px; }
}

@media (max-width: 640px) {
  :root { --nav-h: 64px; }
  body { font-size: 16px; }
  .container { width: min(100% - 32px, var(--container)); }
  .nav-inner { gap: 12px; }
  .nav-links { gap: 0; }
  .nav-link { padding: 8px 8px; font-size: 14px; }
  .nav-end { justify-content: flex-end; gap: 8px; }
  .brand { font-size: 20px; }
  .hero { padding-top: 32px; }
  .hero-title { font-size: clamp(34px, 9.6vw, 44px); margin-top: 14px; }
  .hero-sub { margin-top: 18px; }
  .handle-form { flex-direction: column; margin-top: 26px; }
  .handle-form .btn { width: 100%; }
  .ba { margin-top: 40px; }
  .ba-tab { padding: 8px 14px; font-size: 13px; }
  .ba-pane { padding: 18px 14px 20px; }
  .phone { width: 216px; }
  .benefits { grid-template-columns: 1fr; }
  .benefit { padding: 24px 22px 26px; }
  .examples { grid-template-columns: 1fr; }
  .team { padding: 4px 0 4px 20px; }
  .plan { padding: 24px; }
  .plan .btn { align-self: stretch; }
  .faq summary { padding-right: 40px; }
  .footer { padding: 28px 0 36px; }
  .footer-inner { gap: 14px 16px; }
  .footer .brand { order: 1; }
  .footer .lang-switch { order: 2; margin-left: auto; }
  .footer-links { order: 3; width: 100%; gap: 16px; }
  .footer-tagline { order: 4; width: 100%; margin-right: 0; }
  .feed-line { grid-template-columns: 1fr; gap: 2px; }
  .feed-agent { font-size: 11px; }
  .feed-time { display: none; }
  .device iframe { height: 520px; }
  .status-main .vitrine { max-height: none; min-height: 260px; }
  .result-actions .btn { width: 100%; }
  .modal-card { padding: 22px; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv dt { margin-top: 8px; }
  .log-line { grid-template-columns: 1fr; gap: 2px; }
}
