/* Сайт для риэлтора — Арбатмэн. Цвета и шрифты как в рилсах: кремовый на тёмном, жёлтый — только кнопки. */

@font-face { font-family: "Unbounded"; font-weight: 800; font-display: swap; src: url("fonts/Unbounded-800.woff2") format("woff2"); }
@font-face { font-family: "Unbounded"; font-weight: 900; font-display: swap; src: url("fonts/Unbounded-900.woff2") format("woff2"); }
@font-face { font-family: "Onest"; font-weight: 400; font-display: swap; src: url("fonts/Onest-400.woff2") format("woff2"); }
@font-face { font-family: "Onest"; font-weight: 600; font-display: swap; src: url("fonts/Onest-600.woff2") format("woff2"); }
@font-face { font-family: "Onest"; font-weight: 800; font-display: swap; src: url("fonts/Onest-800.woff2") format("woff2"); }

:root {
  --bg: #121110;
  --bg-2: #191816;
  --card: #201e1b;
  --card-2: #28251f;
  --line: rgba(232, 224, 216, 0.13);
  --text: #e8e0d8;
  --muted: #a8a095;
  --accent: #f8d000;
  --accent-ink: #141210;
  --radius: 22px;
  --wrap: 1120px;
  --display: "Unbounded", "Arial Black", sans-serif;
  --body: "Onest", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--accent-ink); padding: 10px 14px; border-radius: 10px; z-index: 10; }
.skip:focus { left: 16px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* Шапка */
.top {
  position: sticky; top: 0; z-index: 5;
  background: rgba(18, 17, 16, 0.86);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.logo { font: 900 17px/1 var(--display); letter-spacing: 0.02em; text-decoration: none; text-transform: uppercase; }
.logo span { color: var(--accent); }
.top-cta { font: 600 15px/1 var(--body); text-decoration: none; padding: 11px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); white-space: nowrap; }
.top-cta:hover { border-color: var(--accent); }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 16px 26px; border-radius: 999px;
  font: 800 17px/1.1 var(--body); text-decoration: none; text-align: center;
  transition: transform .15s ease, background-color .15s ease;
}
.btn:active { transform: scale(0.98); }
.btn-main { background: var(--accent); color: var(--accent-ink); }
.btn-main:hover { background: #ffdc1f; }
.btn-ghost { border: 1px solid var(--line); background: transparent; color: var(--text); font-weight: 600; }
.btn-ghost:hover { border-color: var(--text); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* Общие блоки */
section { padding: 64px 0; }
@media (min-width: 900px) { section { padding: 96px 0; } }
.eyebrow { display: inline-block; font: 600 13px/1.2 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
h1, h2, h3 { margin: 0; font-family: var(--display); text-wrap: balance; }
h2 { font-weight: 800; font-size: clamp(25px, 6.4vw, 44px); line-height: 1.08; letter-spacing: -0.01em; margin-bottom: 20px; }
h3 { font-weight: 800; font-size: 18px; line-height: 1.25; margin-bottom: 8px; }
.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 640px; }
.hl { color: var(--accent); }

/* Первый экран */
.hero { padding: 36px 0 56px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero { padding: 72px 0 96px; } .hero .wrap { grid-template-columns: 1.25fr 0.75fr; gap: 56px; } }
.hero h1 { font-weight: 900; font-size: clamp(30px, 8.6vw, 62px); line-height: 1.04; letter-spacing: -0.015em; margin-bottom: 22px; }
.hero h1 .strike { position: relative; color: var(--muted); white-space: nowrap; }
.hero h1 .strike::after { content: ""; position: absolute; left: -2px; right: -2px; top: 54%; height: 0.09em; background: var(--accent); transform: rotate(-3deg); }
.hero .lead { margin-bottom: 28px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; padding: 0; list-style: none; }
.chips li { font: 600 14px/1 var(--body); padding: 10px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.actions { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 520px) { .actions { flex-direction: row; flex-wrap: wrap; } }
.hero-phone { justify-self: center; width: min(78vw, 330px); position: relative; }
.hero-phone .tag {
  position: absolute; left: -10px; bottom: 28px; z-index: 2;
  background: var(--accent); color: var(--accent-ink);
  font: 800 13px/1.25 var(--body); padding: 10px 14px; border-radius: 14px; transform: rotate(-4deg);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

/* Телефон-рамка */
.phone {
  border-radius: 38px; padding: 9px; background: #2a2724;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(255,255,255,.06);
}
.phone img { width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; border-radius: 30px; background: #efe9e0; }

/* Сравнение */
.versus { display: grid; gap: 14px; margin-top: 36px; }
@media (min-width: 820px) { .versus { grid-template-columns: 1fr 1fr; gap: 20px; } }
.vs-card { border-radius: var(--radius); padding: 26px 22px; border: 1px solid var(--line); background: var(--bg-2); }
.vs-card.good { background: var(--card-2); border-color: rgba(248, 208, 0, 0.35); }
.vs-card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-size: 19px; }
.vs-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.vs-card li { position: relative; padding-left: 30px; }
.vs-card li::before { position: absolute; left: 0; top: 0; font-weight: 800; }
.vs-card.bad li::before { content: "✕"; color: #8a8278; }
.vs-card.good li::before { content: "✓"; color: var(--accent); }
.vs-card.bad { color: var(--muted); }

/* Плитки выгод */
.grid-3 { display: grid; gap: 14px; margin-top: 36px; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; }
.tile .num { font: 900 14px/1 var(--display); color: var(--accent); display: block; margin-bottom: 14px; }
.tile p { color: var(--muted); font-size: 16px; }

/* Пример */
.example { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(66vw, 250px); gap: 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 16px 20px; margin: 32px -16px 0;
  scrollbar-width: none;
}
.shots::-webkit-scrollbar { display: none; }
@media (min-width: 720px) { .shots { margin: 32px -32px 0; padding: 8px 32px 20px; } }
@media (min-width: 1040px) { .shots { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 40px 0 0; padding: 0; } }
.shot { scroll-snap-align: center; margin: 0; }
.shot figcaption { margin-top: 14px; font-size: 15px; color: var(--muted); }
.shot figcaption b { display: block; color: var(--text); font-weight: 600; font-size: 16px; margin-bottom: 2px; }
.example-foot { display: flex; flex-direction: column; gap: 18px; margin-top: 36px; }
@media (min-width: 820px) { .example-foot { flex-direction: row; align-items: center; justify-content: space-between; } }
.note { border-left: 3px solid var(--accent); padding: 4px 0 4px 16px; max-width: 620px; }

/* Что входит */
.checklist { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 0; counter-reset: c; }
@media (min-width: 820px) { .checklist { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
.checklist li { counter-increment: c; display: grid; grid-template-columns: 44px 1fr; gap: 4px 12px; padding: 18px 0; border-top: 1px solid var(--line); }
.checklist li::before { content: counter(c, decimal-leading-zero); font: 900 14px/1.6 var(--display); color: var(--accent); }
.checklist b { font-weight: 600; }
.checklist span { grid-column: 2; color: var(--muted); font-size: 15px; }
.checklist a { color: var(--text); }

/* Цены */
.prices { display: grid; gap: 14px; margin-top: 36px; }
@media (min-width: 900px) { .prices { grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; } }
.price { border-radius: var(--radius); padding: 26px 22px; background: var(--card); border: 1px solid var(--line); display: flex; flex-direction: column; }
.price.featured { background: var(--text); color: var(--accent-ink); border-color: var(--text); }
.price .label { font: 600 14px/1.3 var(--body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.price.featured .label { color: #6d655b; }
.price .sum { font: 900 clamp(30px, 8vw, 40px)/1 var(--display); letter-spacing: -0.02em; margin-bottom: 6px; }
.price .per { font-weight: 600; margin-bottom: 18px; }
.price p { font-size: 15px; color: var(--muted); }
.price.featured p { color: #4d463e; }
.price.featured a { color: var(--accent-ink); }
.extras { margin-top: 18px; border-radius: var(--radius); padding: 24px 22px; border: 1px dashed rgba(232, 224, 216, 0.28); }
.extras h3 { margin-bottom: 14px; }
.extras ul { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--muted); }
.extras p { margin-top: 16px; font-size: 15px; color: var(--muted); }
.pay-line { margin-top: 18px; font-size: 15px; color: var(--muted); }

/* Шаги */
.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 12px; counter-reset: s; }
@media (min-width: 820px) { .steps { grid-template-columns: 1fr 1fr; gap: 16px; } }
.steps li { counter-increment: s; position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px 20px 20px 74px; min-height: 84px; }
.steps li::before {
  content: counter(s); position: absolute; left: 18px; top: 18px;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  font: 900 16px/1 var(--display); background: var(--bg); color: var(--accent); border: 1px solid var(--line);
}
.steps b { display: block; font-weight: 600; margin-bottom: 2px; }
.steps span { color: var(--muted); font-size: 15px; }
.steps .free { color: var(--accent); font-weight: 600; }

/* Кто делает */
.about { display: grid; gap: 22px; }
@media (min-width: 900px) { .about { grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; } }
.about-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; }
.about-card .big { font: 900 clamp(22px, 5vw, 30px)/1.15 var(--display); margin-bottom: 14px; }
.about-card p { color: var(--muted); }

/* Вопросы */
.faq { margin-top: 32px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative;
  font-weight: 600; font-size: 17px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font: 400 28px/1 var(--body); color: var(--accent); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 22px; color: var(--muted); max-width: 720px; }

/* Финал */
.final { text-align: center; }
.final .box { background: var(--accent); color: var(--accent-ink); border-radius: 28px; padding: 44px 22px; }
@media (min-width: 720px) { .final .box { padding: 64px 48px; } }
.final h2 { margin-bottom: 14px; }
.final p { max-width: 520px; margin: 0 auto 26px; font-size: 18px; }
.final .word { display: inline-block; font: 900 clamp(40px, 13vw, 88px)/1 var(--display); letter-spacing: 0.02em; margin: 6px 0 22px; }
.final .btn-dark { background: var(--accent-ink); color: var(--text); }
.final .btn-dark:hover { background: #000; }
.final small { display: block; margin-top: 16px; font-size: 14px; opacity: 0.75; }

/* Подвал */
.foot { border-top: 1px solid var(--line); padding: 36px 0 44px; font-size: 14px; color: var(--muted); }
.foot .wrap { display: grid; gap: 18px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.foot nav a { color: var(--text); text-underline-offset: 3px; }
.foot .meta { font-size: 12.5px; opacity: 0.8; }

/* Документы: оферта, политика, вопросы */
.doc { padding: 40px 0 72px; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-weight: 900; font-size: clamp(26px, 6.6vw, 42px); line-height: 1.1; margin-bottom: 12px; }
.doc .sub { color: var(--muted); margin-bottom: 8px; }
.doc .date { font-size: 14px; color: var(--muted); margin-bottom: 36px; }
.doc h2 { font-size: clamp(19px, 4.6vw, 24px); margin: 44px 0 14px; }
.doc h3 { font-family: var(--body); font-weight: 600; font-size: 17px; margin: 24px 0 8px; }
.doc p, .doc li { color: #d6cec5; }
.doc ol, .doc ul { padding-left: 22px; margin: 0 0 1em; display: grid; gap: 8px; }
.doc .clause { margin: 0 0 12px; }
.doc .clause b { color: var(--text); font-weight: 600; margin-right: 4px; }
.doc table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 10px 12px 0; border-bottom: 1px solid var(--line); }
.doc th { width: 38%; color: var(--muted); font-weight: 400; }
.doc .toc { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; margin-bottom: 8px; }
.doc .toc ol { margin: 8px 0 0; gap: 4px; }
.doc .toc a { color: var(--text); text-underline-offset: 3px; }
.back { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 26px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.back:hover { color: var(--text); }

/* Вопросы клиенту */
.howto { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px; margin-bottom: 12px; }
.howto ol { margin: 10px 0 0; }
.q-block { margin-top: 44px; }
.q-block h2 { margin-top: 0; display: flex; gap: 12px; align-items: baseline; }
.q-block h2 .k { color: var(--accent); }
.q-block .hint { color: var(--muted); margin-bottom: 14px; font-size: 15px; }
.qs { list-style: none; padding: 0; margin: 0; counter-reset: none; }
.qs li { display: grid; grid-template-columns: 52px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.qs li .n { font: 900 15px/1.5 var(--display); color: var(--accent); }
.qs li small { display: block; color: var(--muted); font-size: 14.5px; margin-top: 4px; }
.files { list-style: none; padding: 0; display: grid; gap: 10px; }
.files li { padding: 14px 16px 14px 46px; position: relative; background: var(--card); border-radius: 14px; border: 1px solid var(--line); }
.files li::before { content: "📎"; position: absolute; left: 16px; top: 14px; }

@media print {
  .top, .foot, .skip, .back { display: none !important; }
  body { background: #fff; color: #111; font-size: 12pt; }
  .doc p, .doc li, .doc td, .doc th { color: #111; }
  .doc .toc, .howto, .files li { background: #fff; border-color: #bbb; }
  .q-block h2 .k, .qs li .n { color: #111; }
}
.about-card .big { color: var(--text); }
.price .sum { white-space: nowrap; }
@media (min-width: 900px) { .price .sum { font-size: clamp(26px, 2.6vw, 34px); } }

/* Заявка */
.lead-section { background: var(--bg-2); border-top: 1px solid var(--line); }
.lead-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .lead-grid { grid-template-columns: 0.9fr 1.1fr; gap: 56px; } }
.contact-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.contact-row .btn { min-height: 48px; padding: 12px 18px; font-size: 15px; }
.contact-row svg { width: 18px; height: 18px; }
.form { background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 22px; display: grid; gap: 16px; }
@media (min-width: 720px) { .form { padding: 30px; } }
.kind { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.kind legend { font-size: 14px; color: var(--muted); margin-bottom: 8px; padding: 0; }
.kind label { position: relative; }
.kind input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.kind span { display: flex; align-items: center; justify-content: center; min-height: 50px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); font-weight: 600; transition: background-color .15s ease, color .15s ease, border-color .15s ease; }
.kind input:checked + span { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.kind input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 3px; }
.field { display: grid; gap: 7px; }
.field span { font-size: 14px; color: var(--muted); }
.field input {
  width: 100%; min-height: 54px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg);
  color: var(--text); font: 400 17px/1.3 var(--body); padding: 14px 16px; -webkit-appearance: none; appearance: none;
}
.field input::placeholder { color: #6f685f; }
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(248, 208, 0, 0.18); }
.field input[aria-invalid="true"] { border-color: #e0705a; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: 14.5px; color: var(--muted); cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--accent); }
.consent a { color: var(--text); text-underline-offset: 3px; }
.consent.error span { color: #f0a08f; }
.form .btn-main { width: 100%; border: 0; cursor: pointer; }
.form .btn-main[disabled] { opacity: 0.6; cursor: wait; }
.form-status { margin: 0; font-size: 15px; min-height: 1.4em; }
.form-status.error { color: #f0a08f; }
.form-done { text-align: center; padding: 18px 6px; }
.form-done .big { font: 900 clamp(22px, 5.4vw, 30px)/1.15 var(--display); margin-bottom: 12px; color: var(--accent); }
.form-done p { color: var(--muted); }

/* Короткие служебные страницы */
.note-page { min-height: 70vh; display: grid; align-items: center; }
.note-page .box { max-width: 640px; }
.note-page h1 { font-weight: 900; font-size: clamp(28px, 7vw, 48px); line-height: 1.08; margin-bottom: 18px; }
.note-page p { color: var(--muted); font-size: 18px; }
.note-page .actions { margin-top: 26px; }
.doc .spaced { margin-top: 40px; }
.field span i { font-style: normal; opacity: 0.7; }

/* Доработки после проверки: якоря под липкой шапкой, размеры нажимаемых элементов, ошибки у поля */
html { scroll-padding-top: 76px; }
.top-cta { min-height: 44px; display: inline-flex; align-items: center; }
.back { min-height: 44px; }
.field-error { color: #f0a08f; font-size: 14px; }
.form-done:focus { outline: none; }
.consent .field-error { grid-column: 2; }
