/* Catch All Calls — перенос дизайна из Claude Design (Home / Privacy / Terms, Layout B, палитра Yolk). */
:root {
  --ink: #1a1712;
  --paper: #fffcf4;
  --white: #ffffff;
  --yolk: #ffc629;
  --yolk-soft: #fff4cf;
  --bubble: #fff0c2;
  --bubble-line: #f2d57a;
  --dot: #f2b300;
  --line: #ede6d3;
  --line-strong: #ddd3ba;
  --text-2: #3a3426;
  --text-hero: #2e2610;
  --muted: #5a5240;
  --muted-hero: #4a3a12;
  --accent: #8a5a00;
  --danger: #9a3b1e;
  --danger-bg: #fbede7;
  --danger-line: #e7b9a6;
  --danger-ink: #7a2e16;
  --footer-text: #ddd5c2;
  --code-muted: #bdb39a;
  --display: Archivo, sans-serif;
  --mono: "IBM Plex Mono", monospace;
  --body: "Public Sans", system-ui, sans-serif;
}

html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.55; -webkit-text-size-adjust: 100%; }
* { box-sizing: border-box; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
summary::-webkit-details-marker { display: none; }
[hidden] { display: none !important; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.narrow { max-width: 820px; }
.stack { display: flex; flex-direction: column; }
.eyebrow { font-family: var(--mono); font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.h2 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 4.6vw, 44px); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
.pretty { text-wrap: pretty; }
.section { padding-top: clamp(44px, 9vw, 64px); padding-bottom: clamp(44px, 9vw, 64px); }
.band { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
.grid-auto { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 320px)), 1fr)); }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* Кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; border-radius: 12px; text-decoration: none; font-weight: 700; }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #3a3426; color: #fff; }
.btn-demo { background: var(--ink); color: var(--yolk); }
.btn-demo:hover { color: var(--yolk); }
.btn-outline { border: 2px solid var(--ink); }

/* Лого */
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
/* Лого «три точки»: облачко сообщения, точки — светлая, светлая, жёлтая. На тёмном — жёлтое облачко. */
.logo-mark { flex: none; width: 34px; height: 34px; border-radius: 10px 10px 10px 2px; background: var(--ink); display: flex; align-items: center; justify-content: center; gap: 2px; }
.logo-mark i { width: 5px; height: 5px; border-radius: 50%; background: var(--paper); }
.logo-mark i:last-child { background: var(--yolk); }
.logo-mark.on-dark { background: var(--yolk); }
.logo-mark.on-dark i { background: var(--ink); }
.logo-mark.on-dark i:last-child { background: var(--paper); }
.logo-name { font-family: var(--display); font-weight: 800; font-size: clamp(18px, 4.6vw, 21px); letter-spacing: -0.015em; white-space: nowrap; }

/* Шапка */
.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-header .wrap { padding-top: 12px; padding-bottom: 12px; padding-left: 16px; padding-right: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav-link { text-decoration: none; font-weight: 600; font-size: 16px; }
.pill { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 2px solid var(--ink); border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 16px; white-space: nowrap; }
.pill:hover { background: var(--ink); color: var(--paper); }

/* Первый экран */
.hero { background: var(--yolk); }
.hero-grid { max-width: 1120px; margin: 0 auto; padding: clamp(28px, 5vw, 56px) 20px clamp(36px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "anim" "try"; gap: 28px; }
.hero-copy { grid-area: copy; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.hero-anim { grid-area: anim; min-width: 0; justify-self: stretch; margin-inline: max(-20px, calc((100% - 460px) / 2)); }
.hero-try { grid-area: try; min-width: 0; padding-top: 22px; border-top: 2px solid var(--ink); }
.hero .eyebrow { color: var(--ink); }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(40px, 5.6vw, 68px); line-height: 1; letter-spacing: -0.035em; max-width: 12ch; text-wrap: balance; }
.hero-lead { font-size: clamp(18px, 1.7vw, 21px); line-height: 1.5; color: var(--text-hero); max-width: 30em; text-wrap: pretty; }
.hero-try .eyebrow { font-size: 13px; letter-spacing: 0.08em; color: var(--muted-hero); }
.demo-mobile { display: flex; flex-direction: column; gap: 12px; }
.demo-big { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 64px; padding: 10px 20px; border-radius: 14px; background: var(--ink); color: var(--yolk); text-decoration: none; }
.demo-big:hover { color: var(--yolk); }
.demo-big:active { background: #000; }
.demo-big strong { font-size: 19px; }
.demo-big span { font-size: 14px; color: var(--paper); }
.video-link { align-self: center; font-weight: 600; font-size: 16px; padding: 8px; }
.demo-desktop { display: none; align-items: center; gap: 20px; }
.demo-desktop img { flex: none; border-radius: 10px; background: #fff; padding: 7px; border: 2px solid var(--ink); }
.demo-title { font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1.15; letter-spacing: -0.015em; }
.demo-sub { font-size: 16px; color: var(--text-hero); }
.demo-num-link { font-weight: 700; white-space: nowrap; }
.try-sub { font-weight: 400 !important; font-size: 15px !important; color: var(--muted); }
.desktop-only { display: none; }

@media (min-width: 900px) {
  .desktop-only { display: inline; }
  .demo-desktop { display: flex; }
  .demo-mobile { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(360px, 420px); grid-template-areas: "copy anim" "try anim"; column-gap: clamp(48px, 6vw, 88px); row-gap: 36px; align-items: center; }
  .hero-anim { margin-inline: 0; width: 100%; max-width: 420px; justify-self: end; }
  .hero-copy { align-self: end; }
  .hero-try { align-self: start; max-width: 560px; }
  .sticky-bar { display: none !important; }
  .photo { aspect-ratio: 4 / 5 !important; }
}

/* О Мише */
.about { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 40px; align-items: center; }
.photo { aspect-ratio: 4 / 3; max-height: 520px; border-radius: 18px; border: 1px solid var(--line); overflow: hidden; background: repeating-linear-gradient(135deg, #f4edd8 0 12px, #faf5e6 12px 24px); display: grid; place-items: center; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
/* Пока нет фото — только текст, узкой колонкой. */
.about:not(:has(.photo)) { grid-template-columns: minmax(0, 720px); }
.photo-placeholder { font-family: var(--mono); font-size: 14px; color: var(--muted); text-align: center; padding: 20px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 6px; }

/* Как это работает */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.step { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; }
.step-rail { display: flex; flex-direction: column; align-items: center; }
.step-num { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; font-family: var(--mono); font-size: 15px; background: var(--paper); }
.step-line { flex: 1; width: 2px; background: var(--line-strong); }
.step-body { padding: 8px 0 36px; display: flex; flex-direction: column; gap: 12px; }
.step:last-child .step-body { padding-bottom: 0; }
.step-title { font-weight: 700; font-size: 21px; }
.step-text { color: var(--text-2); text-wrap: pretty; }
.bubble { max-width: 30em; border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.bubble .eyebrow { font-size: 12px; }
.bubble-agent { align-self: flex-start; background: var(--white); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble-caller { align-self: flex-end; background: var(--bubble); border: 1px solid var(--bubble-line); border-bottom-right-radius: 4px; }
.summary-caption { font-size: 16px; color: var(--muted); }
.summary { background: var(--ink); color: var(--paper); border-radius: 16px; padding: 22px; font-family: var(--mono); font-size: 15px; line-height: 1.6; display: flex; flex-direction: column; gap: 12px; }
.summary-head { display: flex; justify-content: space-between; gap: 12px; color: var(--yolk); }
.summary-rows { display: grid; grid-template-columns: minmax(64px, auto) minmax(0, 1fr); gap: 4px 12px; }
.summary-rows dt { color: var(--code-muted); }
.summary-rows dd { margin: 0; }
.summary-foot { border-top: 1px dashed #4a4333; padding-top: 10px; color: var(--code-muted); }
.try { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; padding: 22px; border: 2px solid var(--ink); border-radius: 16px; background: var(--white); }
.try p { font-weight: 700; font-size: 20px; }

/* Видео */
.video-section { padding-top: clamp(40px, 8vw, 56px); padding-bottom: clamp(40px, 8vw, 56px); display: flex; flex-direction: column; gap: 24px; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: var(--ink); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { all: unset; cursor: pointer; position: absolute; inset: 0; display: grid; place-items: center; background: repeating-linear-gradient(135deg, #2a251f 0 12px, #241f1a 12px 24px) center / cover; }
.video-play:focus-visible { outline: 3px solid var(--yolk); outline-offset: -6px; }
.video-poster-note { position: absolute; top: 16px; left: 16px; font-family: var(--mono); font-size: 13px; color: var(--code-muted); }
.video-play-label { display: flex; align-items: center; gap: 12px; background: var(--paper); color: var(--ink); border-radius: 999px; padding: 14px 24px; font-weight: 700; font-size: 18px; }
.video-play-label::before { content: ""; width: 0; height: 0; border-top: 9px solid transparent; border-bottom: 9px solid transparent; border-left: 14px solid var(--accent); }

/* Будет / не будет */
.honest .card { padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.honest ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.honest .will { color: var(--accent); }
.honest .wont { color: var(--danger); }

/* Цены */
.price-card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.price-card.main { border: 2px solid var(--ink); }
.price-name { font-weight: 700; font-size: 20px; }
.price { font-family: var(--display); font-weight: 800; font-size: clamp(32px, 9vw, 44px); letter-spacing: -0.02em; line-height: 1; overflow-wrap: anywhere; }
.price small { font-family: var(--body); font-weight: 600; font-size: 18px; letter-spacing: 0; color: var(--muted); }
.price-note { color: var(--text-2); }
.plan-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--text-2); }
.plan-list li { padding-left: 22px; position: relative; }
.plan-list li::before { content: "✓"; position: absolute; left: 0; font-weight: 700; color: var(--ink); }
.price-talk { background: var(--white); border: 2px solid var(--ink); border-radius: 18px; padding: 28px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.price-talk p:first-child { font-weight: 700; font-size: 22px; }
.included { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 10px 28px; }
.included li { display: flex; gap: 12px; align-items: baseline; }
.included li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--dot); transform: translateY(-2px); }
/* Одна правка: <body data-prices="talk"> вместо "show" — вместо цен «обсудим по телефону». */
body[data-prices="talk"] .prices-show, body:not([data-prices="talk"]) .prices-talk { display: none; }

/* Отзывы */
.review { margin: 0; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.review blockquote { margin: 0; font-size: 19px; }
.review figcaption { color: var(--muted); font-size: 16px; }

/* Вопросы */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 700; font-size: 19px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 22px; color: var(--text-2); }

/* Контакты и форма */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 40px; align-items: start; padding-bottom: 80px; }
.contact-phone { font-family: var(--display); font-weight: 800; font-size: 28px; letter-spacing: -0.01em; text-decoration: none; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: clamp(20px, 4vw, 32px); }
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 16px; }
.req { color: var(--danger); }
.opt { font-weight: 400; color: var(--muted); }
.field input, .field select { font: inherit; min-height: 52px; padding: 0 14px; border-radius: 10px; border: 2px solid var(--line-strong); background: var(--white); color: var(--ink); }
.field select { padding: 0 12px; }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 15px; font-weight: 600; }
.row-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 18px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--accent); }
.honeypot { position: absolute; left: -9999px; }
.form-error { background: var(--danger-bg); border: 1px solid var(--danger-line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.form-error p:first-child { font-weight: 700; color: var(--danger-ink); }
.form-error p:last-child { font-size: 16px; color: var(--text-2); }
.submit { font: inherit; font-weight: 700; font-size: 19px; min-height: 58px; border: 0; border-radius: 12px; background: var(--ink); color: var(--paper); cursor: pointer; }
.submit:hover { background: #3a3426; }
.submit:disabled { opacity: 0.7; cursor: progress; }
.consent { font-size: 14px; line-height: 1.5; color: var(--muted); }
.success { display: flex; flex-direction: column; gap: 12px; padding: 12px 0; }
.success-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; }
.success-icon::before { content: ""; width: 16px; height: 9px; border-left: 3px solid #fff; border-bottom: 3px solid #fff; transform: rotate(-45deg) translate(1px, -2px); }
.success-title { font-family: var(--display); font-weight: 800; font-size: 28px; }

/* Футер */
.site-footer { background: var(--ink); color: var(--footer-text); }
.site-footer a { color: var(--paper); }
.site-footer .wrap { padding-top: 40px; padding-bottom: 40px; display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; font-size: 16px; }
.footer-name { font-family: var(--display); font-weight: 800; font-size: 20px; color: var(--paper); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-start; }
body.bar-on .site-footer { padding-bottom: 76px; }

/* Нижняя панель звонка (мобильный) */
.sticky-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 252, 244, 0.96); border-top: 1px solid var(--line); display: flex; gap: 10px; }
.sticky-bar .btn-demo { flex: 1; font-size: 18px; }
.sticky-bar .btn-outline { padding: 0 16px; font-size: 16px; }

/* Privacy / Terms */
.doc-header .wrap, .doc-main, .doc-footer .wrap { max-width: 760px; }
.doc-header { border-bottom: 1px solid var(--line); }
.doc-header .wrap { padding-top: 14px; padding-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.doc-header .logo-name { font-size: 20px; }
.doc-back { font-weight: 600; font-size: 16px; }
.doc-main { margin: 0 auto; padding: 40px 20px 72px; display: flex; flex-direction: column; gap: 28px; line-height: 1.6; }
.doc-main h1 { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 6vw, 48px); letter-spacing: -0.02em; line-height: 1.05; }
.doc-main h2 { font-size: 22px; font-weight: 700; }
.doc-main section { display: flex; flex-direction: column; gap: 12px; }
.doc-main ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.doc-main .boxed { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
.doc-date { font-family: var(--mono); font-size: 14px; color: var(--muted); }
.draft-note { background: #fff6dd; border: 1px solid #e9d49a; border-radius: 12px; padding: 14px 16px; font-size: 15px; }
.doc-footer .wrap { padding-top: 28px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 16px; }
.doc-footer nav { display: flex; gap: 20px; }
