:root {
  --ink: #1f2328;
  --ink-2: #4a5059;
  --muted: #6b717a;
  --bg: #ffffff;
  --bg-alt: #f6f4f0;
  --line: #e4e0d8;
  --accent: #d9822b;
  --accent-ink: #ffffff;
  --accent-dark: #b86a1e;
  --ok: #2f7d4f;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(31, 35, 40, .08);
}

* { box-sizing: border-box; }
/* Атрибут hidden должен прятать элемент, даже если у него задан display (плашка cookie, кнопка «Дальше») */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 4.6vw, 48px); letter-spacing: -.02em; }
h2 { font-size: clamp(24px, 3.2vw, 34px); letter-spacing: -.01em; }
h3 { font-size: 19px; }
p { margin: 0 0 .8em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Кнопки */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 24px;
  border-radius: 12px; border: 2px solid transparent;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn--main { background: var(--accent); color: var(--accent-ink); }
.btn--main:hover { background: var(--accent-dark); }
.btn--main:disabled { opacity: .45; cursor: not-allowed; }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink-2); }

/* Шапка */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .95); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar__in { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.logo { font-weight: 800; font-size: 22px; letter-spacing: .08em; text-decoration: none; display: flex; flex-direction: column; line-height: 1; }
.logo span { font-size: 11px; font-weight: 500; letter-spacing: .04em; color: var(--muted); margin-top: 4px; }
.topbar__contacts { display: flex; align-items: center; gap: 12px; }
.topbar__phone { font-weight: 700; text-decoration: none; white-space: nowrap; }
.messengers { display: flex; gap: 8px; }
.messengers a {
  font-size: 13px; font-weight: 600; text-decoration: none;
  padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line);
}

/* Первый экран */
.hero { background: linear-gradient(180deg, var(--bg-alt), #fff); padding: 48px 0 40px; }
.hero__in { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: 13px; font-weight: 700; color: var(--accent-dark); }
.hero__sub { font-size: 19px; color: var(--ink-2); max-width: 560px; }
.hero__price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 18px 0 20px; }
.hero__price-val { font-size: 30px; font-weight: 800; }
.hero__price-txt { color: var(--muted); }
.hero__cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero__gift { margin: 0; font-weight: 600; color: var(--accent-dark); }
.hero__facts { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 8px; }
.hero__facts li { padding-left: 28px; position: relative; }
.hero__facts li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--ok); mask: none;
}
.hero__facts li::after {
  content: ""; position: absolute; left: 6px; top: 8px; width: 5px; height: 9px;
  border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.room { width: 100%; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); background: #fbfaf8; }
.hero__art-cap { font-size: 14px; color: var(--muted); margin-top: 10px; text-align: center; }

/* Квиз */
.quiz-sec { padding: 40px 0; }
.quiz {
  max-width: 760px; margin: 0 auto; background: #fff;
  border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow);
  padding: 28px;
}
.quiz__title { font-size: 26px; font-weight: 800; margin-bottom: 4px; }
.quiz__lead { color: var(--ink-2); }
.quiz__bar { height: 8px; background: var(--bg-alt); border-radius: 99px; overflow: hidden; margin-top: 16px; }
.quiz__bar span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .3s; }
.quiz__count { font-size: 14px; color: var(--muted); margin-top: 8px; }
.quiz__body { min-height: 260px; padding-top: 8px; }
.quiz__q { font-size: 22px; font-weight: 700; margin: 8px 0 4px; }
.quiz__hint { color: var(--muted); font-size: 15px; }
.opts { display: grid; gap: 10px; margin-top: 14px; }
.opt {
  display: flex; align-items: center; gap: 12px; text-align: left;
  padding: 14px 16px; border: 2px solid var(--line); border-radius: 12px;
  background: #fff; font: inherit; cursor: pointer; transition: border-color .15s, background .15s;
}
.opt:hover { border-color: var(--ink-2); }
.opt[aria-pressed="true"] { border-color: var(--accent); background: #fdf4ea; }
.opt__mark { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); }
.opt--multi .opt__mark { border-radius: 6px; }
.opt[aria-pressed="true"] .opt__mark { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px #fff; }
.opt--gift { border-style: dashed; }
.quiz__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }
.quiz__call { margin: 16px 0 0; font-size: 15px; color: var(--muted); text-align: center; }
.quiz__call a { font-weight: 700; color: var(--ink); }

.form { display: grid; gap: 12px; margin-top: 14px; }
.form label { font-size: 15px; font-weight: 600; display: grid; gap: 6px; }
.form input[type="text"], .form input[type="tel"] {
  font: inherit; padding: 14px 16px; border: 2px solid var(--line); border-radius: 12px; width: 100%;
}
.form input:focus { outline: none; border-color: var(--accent); }
.form .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.form .chip { padding: 10px 14px; border: 2px solid var(--line); border-radius: 99px; background: #fff; font: inherit; cursor: pointer; }
.form .chip[aria-pressed="true"] { border-color: var(--accent); background: #fdf4ea; }
.consent { display: flex !important; grid-template-columns: none; align-items: flex-start; gap: 10px !important; font-weight: 400 !important; font-size: 14px !important; color: var(--ink-2); }
.consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__err { color: #b3261e; font-size: 14px; min-height: 1em; margin: 0; }
.done { text-align: center; padding: 30px 0; }
.done__t { font-size: 24px; font-weight: 800; }

/* Секции */
.sec { padding: 56px 0; }
.sec--alt { background: var(--bg-alt); }
.sec__lead { color: var(--ink-2); max-width: 760px; font-size: 18px; }
.cards { display: grid; gap: 16px; margin-top: 24px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p { color: var(--ink-2); margin: 0; }
.premium {
  margin-top: 28px; padding: 28px; border-radius: var(--radius);
  background: var(--ink); color: #fff;
}
.premium__t { font-size: 22px; font-weight: 800; }
.premium p { color: #d7dade; max-width: 720px; }

.steps { list-style: none; counter-reset: s; padding: 0; margin: 24px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { counter-increment: s; background: var(--bg-alt); border-radius: var(--radius); padding: 22px 22px 22px 70px; position: relative; display: grid; gap: 4px; }
.steps li::before {
  content: counter(s); position: absolute; left: 20px; top: 20px;
  width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 800;
}
.steps span { color: var(--ink-2); }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; display: block; }
.gallery figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }

.faq { margin-top: 20px; display: grid; gap: 10px; max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; background: #fff; }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "-"; }
.faq details p { color: var(--ink-2); }

.final { background: var(--ink); color: #fff; padding: 56px 0; text-align: center; }
.final p { color: #d7dade; }

.footer { padding: 32px 0 100px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }
.footer__in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.logo--foot { color: var(--ink); }

.mobilebar { display: none; }

.cookie {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 30; max-width: 560px; margin: 0 auto;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
  padding: 14px 16px; display: flex; gap: 12px; align-items: center; font-size: 14px;
}
.cookie p { margin: 0; }
.cookie .btn { min-height: 40px; padding: 8px 14px; }

/* Мобильная версия */
@media (max-width: 860px) {
  .hero { padding: 28px 0; }
  .hero__in { grid-template-columns: 1fr; gap: 24px; }
  .hero__art { order: 2; }
  .cards--3, .steps, .gallery { grid-template-columns: 1fr; }
  .topbar__phone { font-size: 15px; }
  .messengers { display: none; }
  .quiz { padding: 20px 16px; border-radius: 16px; }
  .quiz__q { font-size: 20px; }
  .hero__cta .btn { width: 100%; }
  .mobilebar {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line);
  }
  .cookie { bottom: 80px; left: 8px; right: 8px; padding: 8px 10px; font-size: 12px; gap: 8px; }
  .cookie .btn { min-height: 34px; padding: 4px 10px; font-size: 13px; }
  .quiz.is-started .quiz__title, .quiz.is-started .quiz__lead { display: none; }
}
@media (max-width: 380px) {
  .topbar__phone { font-size: 13px; }
  .logo { font-size: 19px; }
}
