/* ============================================================
   сайты для бизнеса
   Палитра: слоновая кость, чернила, бронза
   ============================================================ */

:root {
  --ink: #f8f1e6;
  --bg: #250a12;
  --card: #33101c;
  --line: #4a1a26;
  --muted: #a3857f;
  --accent: #e0c39a;
  --accent-soft: #f0dcc0;
  --radius: 16px;
  --wrap: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---------- Шапка ---------- */

.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(37,10,18,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.hdr__in {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 76px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark {
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--accent); color: #2a0d15;
  display: grid; place-items: center;
  font-weight: 800; font-size: 18px;
}
.brand__txt { display: flex; flex-direction: column; line-height: 1.2; }
.brand__txt strong { font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.brand__txt span { font-size: 12px; color: var(--muted); }

.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a {
  text-decoration: none; font-size: 15px; color: #d9c3bb;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--ink); border-bottom-color: var(--accent-soft); }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); font-weight: 600; }

.hdr__actions { display: flex; align-items: center; gap: 10px; }

.burger {
  display: none;
  width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--line); background: #33101c;
  align-items: center; justify-content: center; cursor: pointer;
}
.burger span, .burger span::before, .burger span::after {
  display: block; width: 18px; height: 2px; background: var(--ink); content: ""; position: relative;
}
.burger span::before { position: absolute; top: -6px; }
.burger span::after { position: absolute; top: 6px; }

/* ---------- Кнопки ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 12px;
  font-weight: 700; font-size: 15px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); color: #2a0d15; }
.btn--primary:hover { background: #c9a87e; }
.btn--ghost { background: transparent; color: var(--ink); border-color: rgba(248,241,230,.24); }
.btn--ghost:hover { background: #3a1420; }
.btn--dark { background: #f8f1e6; color: #2a0d15; }
.btn--block { width: 100%; }

/* ---------- Секции ---------- */

.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--alt { background: #2a0b15; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.eyebrow {
  display: inline-block; padding: 6px 12px; border-radius: 999px;
  background: rgba(224, 195, 154, .10); color: var(--accent);
  font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}

h1 { font-size: clamp(30px, 4.2vw, 48px); line-height: 1.12; letter-spacing: -.02em; margin: 18px 0 16px; font-weight: 800; }
h2 { font-size: clamp(24px, 2.8vw, 34px); line-height: 1.2; letter-spacing: -.015em; margin: 0 0 12px; font-weight: 800; }
h3 { font-size: 20px; line-height: 1.3; margin: 0 0 8px; font-weight: 700; }
p { margin: 0 0 14px; }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: #d9c3bb; max-width: 56ch; }
.muted { color: var(--muted); }
.small { font-size: 13px; line-height: 1.5; }
.center { text-align: center; }
.section__head { max-width: 720px; margin-bottom: 36px; }
.section__head.center { margin-left: auto; margin-right: auto; }

/* ---------- Первый экран ---------- */

.hero { padding: 56px 0 40px; }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 18px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--muted); }
.hero__trust span::before { content: "·"; margin-right: 8px; color: var(--accent-soft); }
.hero__trust span:first-child::before { content: ""; margin: 0; }

.pricecard {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: 0 30px 60px -40px rgba(0,0,0,.35);
}
.pricecard__title { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-bottom: 14px; }
.pricecard__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.pricecard__row:first-of-type { border-top: 0; padding-top: 0; }
.pricecard__row b { font-size: 26px; letter-spacing: -.02em; }
.pricecard__row span { display: block; font-size: 13px; color: var(--muted); }
.pricecard__note { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* ---------- Карточки ---------- */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column;
}
.card__price { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 12px; }
.card__price small { font-size: 14px; font-weight: 600; color: var(--muted); }
.card ul { margin: 0 0 18px; padding-left: 18px; color: #d9c3bb; font-size: 15px; }
.card ul li { margin: 6px 0; }
.card__link { margin-top: auto; font-weight: 700; color: var(--accent); text-decoration: none; }
.card__link:hover { text-decoration: underline; }

/* ---------- Что входит ---------- */

.includes { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: start; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding: 0 0 0 30px; margin: 0 0 12px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--accent-soft);
}
.checklist li::after {
  content: ""; position: absolute; left: 4px; top: 10px;
  width: 8px; height: 4px; border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}

/* ---------- Шаги ---------- */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: step; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.step__num {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: rgba(224, 195, 154,.12); color: var(--accent); font-weight: 800; margin-bottom: 12px;
}
.step p { margin: 0; font-size: 15px; color: #d9c3bb; }

/* ---------- Примеры ---------- */

.works { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.work { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.work__media { aspect-ratio: 16 / 10; background: #3a1420; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.work__body { padding: 20px 22px 24px; }
.work__tag { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--accent); font-weight: 800; }
.work p { font-size: 15px; color: #d9c3bb; }
.work__link { font-weight: 700; color: var(--accent); text-decoration: none; }
.work__link:hover { text-decoration: underline; }

/* ---------- FAQ ---------- */

.faq { max-width: 820px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; margin-bottom: 10px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; font-size: 16px;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 18px; color: #d9c3bb; font-size: 15px; }

/* ---------- Форма ---------- */

.form-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.form {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: 0 30px 60px -45px rgba(0,0,0,.35);
}
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  border: 1px solid #5a2532; background: #38131f; color: var(--ink);
  font: inherit; font-size: 15px;
}
.field textarea { min-height: 90px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid rgba(224, 195, 154,.35); outline-offset: 1px; }
.consent { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 16px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.consent input { margin-top: 3px; accent-color: var(--accent); }
.consent a { color: var(--accent); }
.hp { position: absolute !important; left: -9999px !important; }
.form__note { margin: 12px 0 0; font-size: 12px; color: var(--muted); }

/* ---------- Подвал ---------- */

.ftr { border-top: 1px solid var(--line); padding: 44px 0 32px; margin-top: 20px; }
.ftr__grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; }
.ftr h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 12px; }
.ftr ul { list-style: none; margin: 0; padding: 0; }
.ftr li { margin: 0 0 8px; font-size: 15px; }
.ftr a { text-decoration: none; }
.ftr a:hover { text-decoration: underline; }
.ftr__bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between; font-size: 12.5px; color: var(--muted); }

/* ---------- Страницы услуг ---------- */

.page-head { padding: 48px 0 32px; }
.page-head__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: start; }
.badge-price { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 8px; background: #33101c; border: 1px solid var(--line); border-radius: 12px; padding: 12px 18px; margin: 8px 0 18px; }
.badge-price b { font-size: 26px; letter-spacing: -.02em; white-space: nowrap; }
.badge-price span { font-size: 13px; color: var(--muted); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.panel ul { margin: 0; padding-left: 18px; font-size: 15px; color: #d9c3bb; }
.panel li { margin: 6px 0; }

.cta { background: #38131f; color: #f8f1e6; border-radius: 20px; padding: 40px; display: grid; grid-template-columns: 1.3fr .7fr; gap: 28px; align-items: center; }
.cta h2 { color: #f8f1e6; }
.cta p { color: #d9c3bb; margin: 0; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cta .btn--primary { background: var(--accent-soft); }
.cta .btn--ghost { color: #f8f1e6; border-color: rgba(248,241,230,.35); }
.cta .btn--ghost:hover { background: rgba(248,241,230,.1); }

/* ---------- Адаптив ---------- */

@media (max-width: 980px) {
  .hero__grid, .page-head__grid, .includes, .form-wrap, .cta { grid-template-columns: 1fr; }
  .cards, .steps { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
  .nav.is-open {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 76px; left: 0; right: 0;
    background: #f8f1e6; border-bottom: 1px solid var(--line); padding: 12px 20px 18px;
  }
  .burger { display: inline-flex; }
  .hdr__actions .btn { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 52px 0; }
  .hero { padding: 32px 0 24px; }
  .cards, .steps, .works, .two-col { grid-template-columns: 1fr; }
  .hero__trust { flex-direction: column; gap: 2px; }
  .hero__trust span::before { display: none; }
  .ftr__grid { grid-template-columns: 1fr; gap: 22px; }
  .pricecard, .card, .form, .panel { padding: 20px; }
  .cta { padding: 26px; }
  h1 { font-size: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}

/* ============================================================
   Фишки: липкая панель на телефоне, появление блоков, маркер
   ============================================================ */

/* Липкая панель действий — только на телефоне */
.mbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: none;
  gap: 10px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(37,10,18,.96);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform .25s ease;
}
.mbar--on { transform: none; }
@media (max-width: 640px) {
  .mbar { display: grid; grid-template-columns: repeat(4, 1fr); }
  .mbar { gap: 8px; }
  body.has-mbar { padding-bottom: 78px; }
}

/* Появление блоков при прокрутке — включается только скриптом */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-in { opacity: 1; transform: none; }

/* Бронзовый маркер под ключевыми словами */
.mark { position: relative; isolation: isolate; }
.mark::after {
  content: "";
  position: absolute;
  left: -2px; right: -2px; bottom: .02em;
  height: .16em;
  background: rgba(224, 195, 154,.55);
  z-index: -1;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s ease .12s;
}
.is-in .mark::after,
.mark.is-in::after { transform: scaleX(1); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .mark::after { transform: scaleX(1); transition: none; }
  .mbar { transition: none; }
}

/* ============================================================
   Живой предпросмотр визитки
   ============================================================ */

.try { display: grid; grid-template-columns: .9fr 1.1fr; gap: 24px; align-items: start; }
@media (max-width: 980px) {
  .try { grid-template-columns: 1fr; }
  .palette__list { grid-template-columns: 1fr 1fr 1fr 1fr; }
}
@media (max-width: 520px) {
  .palette__list { grid-template-columns: 1fr 1fr; }
}

.try__form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.try__form .field { margin-bottom: 14px; }
.try__form .field span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }

.try__stage { position: relative; }

.mock {
  --m-bg: #250a12;
  --m-surface: #33101c;
  --m-bar: #2a0b15;
  --m-line: #4a1a26;
  --m-ink: #f8f1e6;
  --m-muted: #a3857f;
  --m-text: #d9c3bb;
  --m-accent: #e0c39a;
  --m-on: #2a0d15;
  border: 1px solid var(--m-line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--m-bg);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
  transition: background .35s ease, border-color .35s ease;
}
.mock__bar {
  display: flex; gap: 6px; padding: 10px 12px;
  background: var(--m-bar); border-bottom: 1px solid var(--m-line);
  transition: background .35s ease, border-color .35s ease;
}
.mock__bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--m-line); }
.mock__nav {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 18px; background: var(--m-surface); border-bottom: 1px solid var(--m-line);
  font-size: 11px; color: var(--m-muted);
  transition: background .35s ease, border-color .35s ease;
}
.mock__nav b { font-size: 12px; color: var(--m-ink); }
.mock__nav ul { display: flex; gap: 12px; list-style: none; margin: 0; padding: 0; }
.mock__nav li { white-space: nowrap; }
.mock__body {
  padding: 22px 24px 26px; background: var(--m-surface);
  transition: background .35s ease;
}
.mock__brand { display: flex; align-items: baseline; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.mock__brand b { font-size: 15px; color: var(--m-ink); }
.mock__brand span { font-size: 12px; color: var(--m-muted); }
.mock__h1 {
  font-size: 26px; line-height: 1.2; font-weight: 800; color: var(--m-ink);
  letter-spacing: -.02em;
}
.mock__lead { margin-top: 10px; font-size: 14px; color: var(--m-text); }
.mock__cta {
  display: inline-block; margin-top: 16px; padding: 10px 18px; border-radius: 10px;
  background: var(--m-accent); color: var(--m-on); font-size: 13px; font-weight: 700;
  transition: background .35s ease, color .35s ease;
}
.mock__phone { margin-top: 14px; font-size: 13px; color: var(--m-muted); }

/* Переключатель палитры */
.palette { margin: 2px 0 16px; }
.palette__label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.palette__list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.palette__btn {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px; border-radius: 10px; cursor: pointer; font: inherit;
  background: #2c0d17; border: 1px solid #4a1a26; color: var(--ink);
  transition: border-color .15s ease, background .15s ease;
}
.palette__btn:hover { border-color: rgba(224, 195, 154, .5); }
.palette__btn.is-on { border-color: var(--accent); background: rgba(224, 195, 154, .08); }
.palette__btn:focus-visible { outline: 2px solid rgba(224, 195, 154, .55); outline-offset: 2px; }
.palette__btn i {
  width: 22px; height: 22px; border-radius: 6px; flex: none;
  border: 1px solid rgba(248, 241, 230, .18);
  background: linear-gradient(135deg, var(--c1) 0 40%, var(--c2) 40% 66%, var(--c3) 66%);
}
.palette__btn em { font-style: normal; font-size: 12.5px; }
.palette__custom {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px;
}
.palette__pick {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 7px 10px; border-radius: 10px; font-size: 12.5px;
  background: #2c0d17; border: 1px solid #4a1a26; color: var(--ink);
}
.palette__pick:hover { border-color: rgba(224, 195, 154, .5); }
.palette__pick input[type="color"] {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; padding: 0; border: 1px solid rgba(248, 241, 230, .22);
  border-radius: 6px; background: none; cursor: pointer;
}
.palette__pick input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.palette__pick input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 5px; }
.palette__pick input[type="color"]::-moz-color-swatch { border: 0; border-radius: 5px; }
.palette__mode, .palette__rand {
  padding: 7px 10px; border-radius: 10px; cursor: pointer; font: inherit; font-size: 12.5px;
  background: #2c0d17; border: 1px solid #4a1a26; color: var(--muted);
  transition: border-color .15s ease, color .15s ease;
}
.palette__mode:hover, .palette__rand:hover { border-color: rgba(224, 195, 154, .5); color: var(--ink); }
.palette__mode[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }

.palette__note { margin: 10px 0 0; font-size: 12px; color: var(--muted); }

/* ============================================================
   Форма-шторка на телефоне
   ============================================================ */

.sheet-backdrop {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(0,0,0, .45);
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease;
}
.sheet-backdrop--on { opacity: 1; pointer-events: auto; }

.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 81;
  background: var(--bg);
  border-radius: 18px 18px 0 0;
  box-shadow: 0 -18px 40px rgba(0,0,0, .18);
  transform: translateY(102%);
  transition: transform .25s ease;
  max-height: 92vh;
  overflow: auto;
  padding-bottom: calc(14px + env(safe-area-inset-bottom));
}
.sheet--on { transform: none; }

.sheet__bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px 4px; }
.sheet__title { font-weight: 700; font-size: 16px; }
.sheet__close {
  border: 0; background: transparent; cursor: pointer;
  font-size: 22px; line-height: 1; color: var(--muted); padding: 4px 10px;
}
.sheet__body { padding: 0 18px 8px; }
.sheet__body .form-wrap { background: transparent; border: 0; padding: 0; box-shadow: none; }

body.sheet-open { overflow: hidden; }

@media (min-width: 641px) {
  .sheet, .sheet-backdrop { display: none; }
}


/* ============================================================
   Палитра «Обсидиан и золото»: антиква в заголовках
   ============================================================ */
h1, h2, .cta h2 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  letter-spacing: -.01em;
}
h1 { line-height: 1.06; }
h2 { line-height: 1.15; }
.brand__txt strong { letter-spacing: -.01em; }

/* скрытое антиспам-поле: фон в цвет темы */
.hp input { background: #38131f; }

/* ============================================================
   Кейсы: показ страниц в рамке браузера
   ============================================================ */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.works--cases { gap: 22px; align-items: start; }
.case { min-width: 0; }
.case__bar em { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

.case { overflow: visible; }
.case__stage {
  position: relative;
  padding: 22px 22px 0;
  border-radius: var(--radius) var(--radius) 0 0;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(224, 195, 154, .10), transparent 62%),
    linear-gradient(180deg, #38131f, #2c0d17);
}
.case__browser {
  border: 1px solid #4a1a26;
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  background: #250a12;
  box-shadow: 0 26px 60px rgba(0, 0, 0, .6);
}
.case__bar {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 12px;
  background: #3a1420;
  border-bottom: 1px solid #4a1a26;
}
.case__bar i { width: 8px; height: 8px; border-radius: 50%; background: #5a2532; }
.case__bar i:first-child { background: #7d3f38; }
.case__bar em {
  margin-left: 6px; margin-right: auto;
  font-style: normal; font-size: 11px; letter-spacing: .01em;
  color: #b09089; background: #2a0b15;
  border: 1px solid #4a1a26; border-radius: 999px;
  padding: 2px 10px; max-width: 55%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.case__hint { font-size: 10.5px; color: #a3857f; white-space: nowrap; }
.case__hint--hover { display: none; }
.case__hint--touch { display: inline; }

.case__screen {
  --case-h: 380px;
  position: relative;
  height: var(--case-h);
  overflow: hidden;
  /* фон виден, пока снимок грузится — тёмная рамка без «дыры» */
  background: linear-gradient(180deg, #3a1420 0%, #2c0d17 40%, #220910 100%);
}
.case__screen picture { display: block; }
.case__screen img {
  display: block; width: 100%; height: auto;
  transform: translateY(0);
  will-change: transform;
}


.case__phone {
  display: none;
  position: absolute; right: 18px; bottom: -16px;
  width: 104px; height: 190px;
  border: 3px solid #4a1a26; border-radius: 15px;
  overflow: hidden; background: #250a12;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .7);
  z-index: 3;
}
.case__phone::before {
  content: ""; position: absolute; top: 5px; left: 50%; transform: translateX(-50%);
  width: 30px; height: 4px; border-radius: 99px; background: #5a2532; z-index: 2;
}
.case__phone img { display: block; width: 100%; height: auto; }

.case__meta {
  margin: 4px 0 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .01em;
  color: var(--accent);
}
.cases__note { margin: 22px 0 0; font-size: 13px; color: var(--muted); }

@media (min-width: 1200px) { .case__phone { display: block; } }
@media (max-width: 980px) { .case__screen { --case-h: 320px; } }
@media (max-width: 640px) { .case__screen { --case-h: 430px; } .case__stage { padding: 16px 16px 0; } }
@media (hover: hover) and (pointer: fine) {
  .case__hint--hover { display: inline; }
  .case__hint--touch { display: none; }
}

/* ============================================================
   Таблица сравнения форматов
   ============================================================ */
.cmp__wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cmp {
  width: 100%; border-collapse: collapse;
  font-size: 15px; min-width: 720px;
}
.cmp thead th {
  text-align: left; padding: 0 16px 12px;
  font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid #5a2532;
}
.cmp thead th:first-child { width: 21%; }
.cmp thead th + th { color: var(--ink); }
.cmp tbody th {
  text-align: left; padding: 15px 16px;
  font-size: 13.5px; font-weight: 700; color: var(--muted);
  border-bottom: 1px solid var(--line);
  vertical-align: top; white-space: nowrap;
}
.cmp tbody td {
  padding: 15px 16px; vertical-align: top;
  color: #d9c3bb;
  border-bottom: 1px solid var(--line);
}
.cmp tbody td b { color: var(--ink); font-weight: 800; }
.cmp tbody tr:hover td, .cmp tbody tr:hover th { background: rgba(224, 195, 154, .05); }
.cmp__note { margin: 22px 0 0; font-size: 14px; color: var(--muted); }

@media (max-width: 760px) {
  .cmp { min-width: 640px; font-size: 14px; }
  .cmp thead th, .cmp tbody th, .cmp tbody td { padding: 12px 12px; }
  .cmp tbody th, .cmp thead th:first-child {
    position: sticky; left: 0; z-index: 1; background: var(--bg);
  }
  .cmp tbody tr:hover td, .cmp tbody tr:hover th { background: transparent; }
}

/* ============================================================
   Гарантии
   ============================================================ */
.guar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.guar__item {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 22px 22px 24px;
}
.guar__icon {
  width: 36px; height: 36px; border-radius: 11px;
  display: grid; place-items: center;
  background: rgba(224, 195, 154, .13); color: var(--accent);
  margin-bottom: 16px;
}
.guar__item b { display: block; font-size: 16px; line-height: 1.3; margin-bottom: 8px; }
.guar__item p { margin: 0; font-size: 14.5px; color: #d9c3bb; }

@media (max-width: 980px) { .guar { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .guar { grid-template-columns: 1fr; } }

/* ============================================================
   Карточка основателя
   ============================================================ */
.panel.person {
  padding: 22px;
  display: grid; grid-template-columns: 148px 1fr; gap: 22px;
  align-items: start;
}
.person__photo {
  width: 100%; height: auto; aspect-ratio: 4 / 5;
  object-fit: cover; object-position: 50% 12%;
  border-radius: 10px; border: 1px solid var(--line);
}
.person__name { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.person__role { display: block; font-size: 12.5px; color: var(--muted); margin: 3px 0 16px; }
.person__body h4 { margin: 0 0 12px; }

@media (max-width: 640px) {
  .panel.person { grid-template-columns: 1fr; }
  .person__photo { max-width: 170px; }
}

/* ============================================================
   Дополнительные услуги
   ============================================================ */
.addon { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
.addon__row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px;
}
.addon__row span { color: #d9c3bb; }
.addon__row b { color: var(--accent); font-weight: 800; white-space: nowrap; }
.addon__note { margin: 20px 0 0; font-size: 13.5px; color: var(--muted); max-width: 72ch; }

@media (max-width: 860px) { .addon { grid-template-columns: 1fr; gap: 0; } }

/* ============================================================
   Квиз подбора формата
   ============================================================ */
.quiz__intro { max-width: 720px; margin-bottom: 30px; }
.quiz__intro h1 { margin: 12px 0 14px; }

.quiz {
  max-width: 880px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; padding: 28px 28px 26px;
}
.quiz__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.quiz__dots { display: flex; gap: 6px; }
.quiz__dots i { width: 28px; height: 4px; border-radius: 99px; background: #4a1a26; transition: background .3s; }
.quiz__dots i.is-done { background: var(--accent); }
.quiz__count { font-size: 12.5px; color: var(--muted); }
.quiz__progress { height: 2px; background: #3a1420; border-radius: 99px; overflow: hidden; margin-bottom: 26px; }
.quiz__progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-soft)); transition: width .35s ease; }

.quiz__step { display: none; }
.quiz__step.is-on { display: block; animation: qIn .3s ease both; }
@keyframes qIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.quiz__q { font-size: clamp(20px, 2.4vw, 27px); margin: 0 0 20px; line-height: 1.2; }

.quiz__opts { display: grid; gap: 10px; }
.quiz__opts--3 { grid-template-columns: repeat(3, 1fr); }
.quiz__opt {
  text-align: left; font: inherit; color: var(--ink); cursor: pointer;
  background: #2c0d17; border: 1px solid #4a1a26; border-radius: 14px;
  padding: 16px 18px;
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.quiz__opt:hover { border-color: rgba(224, 195, 154, .55); transform: translateY(-1px); }
.quiz__opt:focus-visible { outline: 2px solid rgba(224, 195, 154, .55); outline-offset: 2px; }
.quiz__opt.is-on { border-color: var(--accent); background: rgba(224, 195, 154, .10); }
.quiz__opt b { display: block; font-size: 15.5px; margin-bottom: 4px; }
.quiz__opt span { display: block; font-size: 12.5px; font-weight: 700; color: var(--accent); margin-bottom: 6px; }
.quiz__opt em { display: block; font-style: normal; font-size: 13px; color: var(--muted); line-height: 1.35; }

.quiz__step--result .eyebrow { margin-bottom: 10px; }
.quiz__price {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-size: clamp(38px, 6vw, 56px); line-height: 1; letter-spacing: -.02em;
  margin: 8px 0 10px;
}
.quiz__sub { margin: 0 0 18px; font-size: 15px; font-weight: 700; color: var(--accent); }
.quiz__list { list-style: none; margin: 0 0 18px; padding: 0; }
.quiz__list li { position: relative; padding-left: 26px; margin: 0 0 10px; font-size: 15px; color: #d9c3bb; }
.quiz__list li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 13px; height: 7px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.quiz__note { margin: 0 0 18px; font-size: 14px; color: var(--muted); max-width: 62ch; }
.quiz__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.quiz__chips span {
  font-size: 11.5px; color: #d9c3bb;
  border: 1px solid #4a1a26; border-radius: 99px; padding: 5px 11px;
}
.quiz__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.quiz__again {
  margin-top: 16px; padding: 0; background: none; border: 0;
  color: var(--muted); font: inherit; font-size: 13px;
  text-decoration: underline; cursor: pointer;
}
.quiz__back {
  margin-top: 20px; padding: 0; background: none; border: 0;
  color: var(--muted); font: inherit; font-size: 14px; cursor: pointer;
}
.quiz__back[hidden] { display: none; }

@media (max-width: 900px) { .quiz__opts--3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .quiz { padding: 20px 18px; }
  .quiz__opts--3 { grid-template-columns: 1fr; }
  .quiz__actions .btn { flex: 1 1 100%; }
}


/* Якоря не уезжают под липкую шапку */
section[id] { scroll-margin-top: 96px; }


/* Призыв к подбору под таблицей сравнения */
.cmp__cta {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  flex-wrap: wrap; margin-top: 28px; padding: 22px 24px;
  border: 1px solid var(--line); border-radius: 16px;
  background: linear-gradient(90deg, rgba(224, 195, 154, .07), transparent 70%);
}
.cmp__cta p { margin: 0; font-size: 15px; color: #d9c3bb; max-width: 62ch; }
.cmp__cta .btn { flex: none; }


/* Палитра на узких экранах — в конце файла, чтобы перекрыть базовые правила */
@media (max-width: 520px) {
  .palette__custom { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .palette__pick, .palette__mode { justify-content: center; }
  .palette__rand { grid-column: span 2; text-align: center; }
}


/* Липкая панель: кнопки-иконки */
.mbar .btn--primary { min-height: 46px; }
.mbar .btn { min-width: 0; }


/* Липкая панель на узких экранах: кнопки-иконки ужимаются, текст не выдавливает */
@media (max-width: 360px) {
    }


/* Кейсы на узких экранах: подсказка про наведение только мешает ширине */
@media (max-width: 480px) {
  .case__hint--hover { display: none; }
  .case__hint { white-space: nowrap; }
}


/* Бегунок прокрутки внутри кадра кейса */
.case__sb {
  position: absolute;
  top: 0;
  right: 0;
  width: 16px;
  height: 100%;
  z-index: 3;
  touch-action: none;
  cursor: grab;
  -webkit-tap-highlight-color: transparent;
}
.case__sb:active { cursor: grabbing; }
.case__sb::before {
  content: "";
  position: absolute;
  top: 2px;
  bottom: 2px;
  right: 3px;
  width: 4px;
  border-radius: 4px;
  background: rgba(37, 10, 18, .14);
}
.case__sb i {
  position: absolute;
  top: 0;
  right: 3px;
  width: 4px;
  min-height: 22px;
  border-radius: 4px;
  background: rgba(37, 10, 18, .55);
  box-shadow: 0 0 0 1px rgba(248, 241, 230, .45);
  transition: background .15s ease, width .15s ease;
}

/* на телефоне бегунок чуть толще — попасть пальцем проще */
@media (hover: none) {
  .case__sb i, .case__sb::before { width: 5px; right: 2px; }
}
.case:hover .case__sb i,
.case__sb:active i {
  background: rgba(37, 10, 18, .72);
  width: 5px;
}


/* Липкая панель: три равные ячейки, иконка над подписью */
.mbar__btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-height: 54px;
  padding: 7px 4px 6px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .01em;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s ease, border-color .15s ease;
}
.mbar__btn span { white-space: nowrap; }
.mbar__btn svg { display: block; }
.mbar__btn img { display: block; width: 24px; height: 24px; border-radius: 7px; }
.mbar__btn:active { background: rgba(224, 195, 154, .12); }
.mbar__btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #2a0d15;
  font-weight: 700;
}
.mbar__btn--primary:active { background: #f0dcc0; }

@media (max-width: 360px) {
  .mbar__btn { font-size: 10px; min-height: 50px; }
  .mbar__btn img { width: 22px; height: 22px; }
}

/* Мобильный первый экран: кнопки-мессенджеры на всю ширину */
@media (max-width: 520px) {
  .hero__actions .btn { width: 100%; }
}
