/* Редизайн skvz.ru — прототип (06.10.2026). Спека: design/redesign-spec.md.
   Цвета логотипа: графит #22262F + строительный жёлтый #FCE302. Один радиус (--r), один ритм секций (--section). */

@font-face {
  font-family: "Geologica";
  src: url("assets/fonts/geologica-cyrillic-ext.woff2") format("woff2");
  font-display: swap;
  font-weight: 300 700;
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: "Geologica";
  src: url("assets/fonts/geologica-cyrillic.woff2") format("woff2");
  font-display: swap;
  font-weight: 300 700;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Geologica";
  src: url("assets/fonts/geologica-latin-ext.woff2") format("woff2");
  font-display: swap;
  font-weight: 300 700;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Geologica";
  src: url("assets/fonts/geologica-latin.woff2") format("woff2");
  font-display: swap;
  font-weight: 300 700;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --bg: #f5f3ee;
  --surface: #ffffff;
  --surface-2: #ebe8e0;
  --ink: #1f2229;
  --muted: #5b5f69;
  --line: #dcd8cd;
  --brand: #fce302;
  --brand-2: #ffb000;
  --on-brand: #22262f;
  --graphite: #22262f;
  --mark-text: inherit;
  --mark-bg: linear-gradient(transparent 60%, var(--brand) 60%, var(--brand) 94%, transparent 94%);
  --overlay: rgba(18, 20, 24, .56);
  --r: 12px;
  --container: 1200px;
  --gutter: 20px;
  --section: 112px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #121418;
    --surface: #1a1d23;
    --surface-2: #242831;
    --ink: #f1efe9;
    --muted: #a6aab4;
    --line: #2e323b;
    --mark-text: var(--brand);
    --mark-bg: none;
    --overlay: rgba(0, 0, 0, .66);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121418;
  --surface: #1a1d23;
  --surface-2: #242831;
  --ink: #f1efe9;
  --muted: #a6aab4;
  --line: #2e323b;
  --mark-text: var(--brand);
  --mark-bg: none;
  --overlay: rgba(0, 0, 0, .66);
}
@media (min-width: 760px) { :root { --gutter: 32px; } }
@media (max-width: 759px) { :root { --section: 72px; --header-h: 64px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.5 "Geologica", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-feature-settings: "tnum" 0;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.section { padding-block: var(--section); }
.section + .section { padding-top: 0; }
.section--tint { background: var(--surface-2); padding-block: var(--section); }
.section--tint + .section { padding-top: var(--section); }

/* ── типографика ─────────────────────────────────────────── */
.h1 { font-size: clamp(40px, 6.2vw, 68px); line-height: 1.0; font-weight: 600; letter-spacing: -0.025em; text-wrap: balance; }
.h2 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.05; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
.h3 { font-size: 22px; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.45; color: var(--muted); max-width: 40ch; }
.muted { color: var(--muted); }
.small { font-size: 14px; line-height: 1.45; }
.eyebrow { font-size: 15px; font-weight: 500; color: var(--muted); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 22px; height: 6px; border-radius: 3px; background: var(--brand); }
.mark {
  color: var(--mark-text);
  background: var(--mark-bg);
  padding-inline: .06em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.section-head { display: grid; gap: 16px; margin-bottom: 44px; max-width: 760px; }
.section-head--row { max-width: none; grid-template-columns: 1fr auto; align-items: end; gap: 24px; }
@media (max-width: 759px) { .section-head--row { grid-template-columns: 1fr; } .section-head { margin-bottom: 32px; } }
.price { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ── кнопки ──────────────────────────────────────────────── */
.btn {
  --btn-bg: var(--brand);
  --btn-ink: var(--on-brand);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border: 1px solid transparent; border-radius: var(--r);
  background: var(--btn-bg); color: var(--btn-ink);
  font-weight: 600; font-size: 16px; line-height: 1.1; text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:hover { --btn-bg: #ffe93d; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--ghost { --btn-bg: transparent; --btn-ink: var(--ink); border-color: var(--line); }
.btn--ghost:hover { --btn-bg: var(--surface); border-color: var(--ink); }
.btn--dark { --btn-bg: var(--graphite); --btn-ink: #fff; }
.btn--dark:hover { --btn-bg: #333845; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn--block { width: 100%; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border: 1px solid var(--line); border-radius: var(--r); background: transparent; color: var(--ink); cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.icon-btn:hover { border-color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }

/* ── шапка ───────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.header.is-scrolled { border-bottom-color: var(--line); }
.header__row { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand__logo { width: 48px; height: 48px; flex: none; }
.brand__text { display: grid; line-height: 1.15; }
.brand__text small { font-size: 12px; color: var(--muted); }
.brand__text strong { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 10px 12px; border-radius: var(--r); text-decoration: none; font-size: 15px; color: var(--muted); white-space: nowrap; transition: color .2s, background-color .2s; }
.nav a:hover, .nav a.is-current { color: var(--ink); background: var(--surface-2); }
.header__phone { font-weight: 600; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.header__actions { display: flex; align-items: center; gap: 10px; }
.burger { display: none; }
@media (max-width: 1180px) { .nav { display: none; } .burger { display: inline-grid; } .header__actions { margin-left: auto; } }
@media (max-width: 900px) { .header__phone { display: none; } }
@media (max-width: 560px) {
  .header__cta { display: none; }
  .brand__logo { width: 42px; height: 42px; }
  .brand__text small { font-size: 11px; }
  .brand__text strong { font-size: 15px; }
}
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme]) .theme-toggle .i-moon { display: none; }
}

/* ── шторки (меню, проект, заявка, фото) ──────────────────── */
dialog { color: inherit; }
.sheet {
  position: fixed; inset: 0 0 0 auto; margin: 0;
  width: min(560px, 100%); max-width: 100%; height: 100%; max-height: 100%;
  padding: 0; border: 0; border-left: 1px solid var(--line);
  background: var(--bg);
  overflow: hidden;
}
.sheet--narrow { width: min(440px, 100%); }
.sheet::backdrop { background: var(--overlay); }
.sheet[open] { display: flex; flex-direction: column; animation: sheet-in .32s var(--ease); }
.sheet.is-closing { animation: sheet-out .22s ease-in forwards; }
.sheet[open]::backdrop { animation: fade-in .32s ease; }
.sheet.is-closing::backdrop { animation: fade-out .22s ease forwards; }
@keyframes sheet-in { from { transform: translateX(100%); } }
@keyframes sheet-out { to { transform: translateX(100%); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@media (max-width: 759px) {
  .sheet { inset: auto 0 0 0; width: 100%; height: auto; max-height: 92dvh; border-left: 0; border-top: 1px solid var(--line); border-radius: var(--r) var(--r) 0 0; }
  @keyframes sheet-in { from { transform: translateY(100%); } }
  @keyframes sheet-out { to { transform: translateY(100%); } }
}
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.sheet__body { padding: 24px 20px 32px; overflow-y: auto; overscroll-behavior: contain; display: grid; grid-auto-rows: max-content; gap: 24px; align-content: start; }
@media (min-width: 760px) { .sheet__head { padding: 20px 28px; } .sheet__body { padding: 28px; } }
.menu-list { display: grid; gap: 4px; }
.menu-list a { display: block; padding: 14px 4px; font-size: 22px; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line); }

/* ── первый экран ────────────────────────────────────────── */
.hero { padding: 40px 0 var(--section); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero__text { display: grid; gap: 26px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__media { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 5 / 4; background: var(--surface-2); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__card {
  position: absolute; left: 16px; right: 16px; bottom: 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 16px 18px; border-radius: var(--r);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.hero__card b { font-size: 20px; font-weight: 600; }
.hero__card span { color: var(--muted); font-size: 14px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 56px; border-top: 1px solid var(--line); }
.stat { padding: 22px 20px 0 0; display: grid; gap: 4px; }
.stat + .stat { padding-left: 20px; border-left: 1px solid var(--line); }
.stat b { font-size: clamp(30px, 3.4vw, 44px); line-height: 1; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 15px; line-height: 1.35; }
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .hero__media { aspect-ratio: 4 / 3; }
}
@media (max-width: 760px) {
  .hero { padding-top: 24px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 36px; }
  .stat { padding: 18px 12px 18px 0; }
  .stat + .stat { padding-left: 0; border-left: 0; }
  .stat:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ── каталог ─────────────────────────────────────────────── */
.filters { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; margin-bottom: 28px; }
.segmented { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: var(--r); background: var(--surface-2); }
.segmented button, .chip {
  min-height: 40px; padding: 0 14px; border: 0; border-radius: calc(var(--r) - 4px);
  background: transparent; color: var(--muted); font-size: 15px; font-weight: 500; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.segmented button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.segmented button sup, .chip sup { font-size: 11px; color: var(--muted); margin-left: 3px; vertical-align: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); border-radius: var(--r); }
.chip[aria-pressed="true"] { background: var(--graphite); border-color: var(--graphite); color: #fff; }
:root[data-theme="dark"] .chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); } }
.filters__count { margin-left: auto; color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .filters__count { margin-left: 0; width: 100%; } }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 1100px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cards { grid-template-columns: minmax(0, 1fr); } }
.card {
  display: grid; grid-template-rows: subgrid; grid-row: span 4; gap: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  transition: border-color .2s, transform .3s var(--ease);
}
.card[hidden] { display: none; }
.card:hover { border-color: color-mix(in srgb, var(--ink) 35%, var(--line)); }
.card__media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--surface-2); cursor: pointer; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.card:hover .card__media img { transform: scale(1.035); }
.card__tag { position: absolute; left: 12px; top: 12px; padding: 6px 10px; border-radius: calc(var(--r) - 4px); background: var(--brand); color: var(--on-brand); font-size: 14px; font-weight: 600; }
.card__head { padding: 20px 20px 0; display: grid; gap: 4px; align-content: start; }
.card__head h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }
.card__head p { color: var(--muted); font-size: 15px; }
.card__specs { display: flex; gap: 8px; flex-wrap: wrap; padding: 14px 20px 0; align-content: start; }
.spec { padding: 6px 10px; border-radius: calc(var(--r) - 4px); background: var(--surface-2); font-size: 14px; font-variant-numeric: tabular-nums; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 20px; align-self: end; }
.card__foot .price { font-size: 22px; }
.card__foot small { display: block; color: var(--muted); font-size: 13px; font-weight: 400; }
.catalog-note { margin-top: 24px; color: var(--muted); font-size: 15px; }
.empty { padding: 40px; text-align: center; border: 1px dashed var(--line); border-radius: var(--r); color: var(--muted); }

/* шторка проекта */
.gallery { display: grid; gap: 10px; }
.gallery__main { position: relative; border-radius: var(--r); overflow: hidden; background: var(--surface-2); aspect-ratio: 4 / 3; }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__main img.is-plan { object-fit: contain; background: #fff; padding: 8px; }
.gallery__thumbs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.gallery__thumbs button { flex: none; width: 84px; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; border-radius: calc(var(--r) - 4px); overflow: hidden; background: #fff; cursor: pointer; }
.gallery__thumbs button[aria-current="true"] { border-color: var(--brand); }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumbs .is-plan img { object-fit: contain; }
.specs-table { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border: 1px solid var(--line); border-radius: var(--r); }
.specs-table div { padding: 14px 16px; display: grid; gap: 2px; }
.specs-table div + div { border-left: 1px solid var(--line); }
.specs-table dt { font-size: 13px; color: var(--muted); }
.specs-table dd { margin: 0; font-weight: 600; }
.rooms { display: grid; gap: 8px; }
.rooms li { display: flex; gap: 10px; align-items: baseline; }
.rooms li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--brand); flex: none; transform: translateY(-1px); }
.rooms .rooms__h { font-weight: 600; margin-top: 8px; }
.rooms .rooms__h:first-child { margin-top: 0; }
.rooms .rooms__h::before { display: none; }
.price-box { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px 20px; border-radius: var(--r); background: var(--surface-2); }
.price-box .price { font-size: 28px; }

/* ── формы ───────────────────────────────────────────────── */
.form { display: grid; gap: 14px; }
.form__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
@media (max-width: 560px) { .form__row { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 6px; }
.field span { font-size: 14px; color: var(--muted); }
.input {
  width: 100%; min-height: 52px; padding: 12px 16px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
textarea.input { min-height: 104px; resize: vertical; }
.input:hover { border-color: color-mix(in srgb, var(--ink) 30%, var(--line)); }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 60%, transparent); }
.input[aria-invalid="true"] { border-color: #d0342c; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; color: var(--muted); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--graphite); }
:root[data-theme="dark"] .consent input { accent-color: var(--brand); }
.form__error { color: #d0342c; font-size: 14px; min-height: 0; }
.form__error:empty { display: none; }
.form-done { display: grid; gap: 10px; padding: 22px; border-radius: var(--r); background: var(--surface-2); }
.form-done b { font-size: 20px; }
.form .btn[disabled] { opacity: .6; cursor: progress; }

/* ── квиз ────────────────────────────────────────────────── */
.quiz-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
@media (max-width: 960px) { .quiz-wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.quiz-aside { display: grid; gap: 22px; position: sticky; top: calc(var(--header-h) + 24px); }
@media (max-width: 960px) { .quiz-aside { position: static; } }
.ticks { display: grid; gap: 12px; }
.ticks li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; }
.ticks li::before {
  content: ""; width: 26px; height: 26px; border-radius: 8px; background: var(--brand)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322262f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.quiz { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; display: grid; gap: 22px; }
@media (max-width: 560px) { .quiz { padding: 20px 16px; } }
.quiz__top { display: grid; gap: 10px; }
.quiz__meta { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--muted); }
.progress { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--brand); border-radius: inherit; transition: width .4s var(--ease); }
.quiz__q { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; }
.quiz__step { display: grid; gap: 22px; animation: step-in .35s var(--ease); }
@keyframes step-in { from { opacity: 0; transform: translateY(8px); } }
.options { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.options--text { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) {
  .options { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .option:has(.option__img) { grid-template-columns: 104px minmax(0, 1fr); grid-template-rows: none; }
  .option:has(.option__img) .option__img { aspect-ratio: auto; height: 100%; min-height: 78px; }
  .options--text { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.option { position: relative; display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; cursor: pointer; background: var(--surface); transition: border-color .2s, transform .2s var(--ease); }
.option:hover { border-color: color-mix(in srgb, var(--ink) 40%, var(--line)); }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option__img { aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.option__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.option:hover .option__img img { transform: scale(1.04); }
.option__text { display: flex; align-items: center; gap: 10px; padding: 14px; font-weight: 500; line-height: 1.25; }
.option__text::before { content: ""; width: 20px; height: 20px; flex: none; border-radius: 50%; border: 2px solid var(--line); background: var(--surface); transition: border-color .2s, background-color .2s; }
.option:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.option:has(input:checked) .option__text::before { border-color: var(--graphite); background: var(--brand); box-shadow: inset 0 0 0 4px var(--surface); }
.option:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
.quiz__nav { display: flex; gap: 12px; justify-content: space-between; align-items: center; }
.quiz__nav .btn:only-child { margin-left: auto; }
.quiz__hint { font-size: 14px; color: var(--muted); }
.match { display: grid; gap: 14px; padding: 18px; border-radius: var(--r); background: var(--surface-2); }
.match__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 560px) { .match__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.match__item { display: grid; gap: 6px; text-decoration: none; font-size: 14px; }
.match__item img { aspect-ratio: 4 / 3; object-fit: cover; border-radius: calc(var(--r) - 4px); width: 100%; }
.match__item b { font-size: 15px; }
.gift { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: calc(var(--r) - 4px); background: var(--brand); color: var(--on-brand); font-weight: 600; font-size: 14px; }

/* ── почему мы (бенто) ───────────────────────────────────── */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tile { grid-column: span 2; display: grid; gap: 10px; align-content: start; padding: 26px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.tile--split { align-content: space-between; gap: 28px; }
.tile--split > div { display: grid; gap: 8px; }
.tile--wide { grid-column: span 4; }
.tile--tall { grid-row: span 2; }
.tile--dark { background: var(--graphite); color: #f1efe9; border-color: var(--graphite); }
.tile--dark .muted { color: #b9bcc5; }
.tile--brand { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.tile--brand .muted { color: #4a4d33; }
.tile__big { font-size: clamp(48px, 6vw, 80px); line-height: .95; font-weight: 600; letter-spacing: -0.03em; }
.tile__icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); }
.tile--dark .tile__icon { background: #343947; }
.tile__icon svg { width: 22px; height: 22px; }
.tile--media { padding: 0; overflow: hidden; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
.tile--media .tile__body { padding: 26px; display: grid; gap: 12px; align-content: center; }
.tile--media img { width: 100%; height: 320px; object-fit: contain; background: #fff; }
.tile .list { display: grid; gap: 8px; margin-top: 4px; }
.tile .list li { padding-left: 18px; position: relative; }
.tile .list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 2px; background: var(--brand); }
@media (max-width: 1000px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tile, .tile--wide { grid-column: span 2; } .tile--half { grid-column: span 1; } .tile--tall { grid-row: auto; } }
@media (max-width: 640px) { .bento { grid-template-columns: minmax(0, 1fr); } .tile, .tile--wide, .tile--half { grid-column: auto; } .tile--media { grid-template-columns: minmax(0, 1fr); } .tile--media img { max-height: 280px; } }

/* ── как строим ──────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(5, auto); grid-auto-flow: column; gap: 0 48px; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.step__n { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.step:first-child .step__n, .step:last-child .step__n { background: var(--brand); color: var(--on-brand); }
.step h3 { font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 16px; }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; } }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

/* ── ипотека ─────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.split__media { border-radius: var(--r); overflow: hidden; background: var(--surface-2); }
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.checklist { display: grid; gap: 14px; margin: 26px 0 32px; }
.checklist li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; font-size: 18px; }
.checklist li::before {
  content: ""; width: 26px; height: 26px; border-radius: 8px; background: var(--brand)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2322262f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* ── построенные дома ────────────────────────────────────── */
.built { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 220px; grid-auto-flow: dense; gap: 12px; }
.built button { padding: 0; border: 0; border-radius: var(--r); overflow: hidden; background: var(--surface-2); cursor: zoom-in; }
.built button:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.built button:nth-child(5), .built button:nth-child(7) { grid-column: span 2; }
.built img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.built button:hover img { transform: scale(1.04); }
@media (max-width: 860px) { .built { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 170px; } .built button:nth-child(1) { grid-row: span 1; } .built button:nth-child(5), .built button:nth-child(7) { grid-column: span 1; } }
.lightbox { position: fixed; inset: 0; margin: auto; width: min(1200px, 100% - 24px); max-width: none; max-height: 92dvh; padding: 0; border: 0; border-radius: var(--r); background: #0d0f12; overflow: hidden; }
.lightbox::backdrop { background: rgba(0, 0, 0, .82); }
.lightbox img { width: 100%; max-height: 92dvh; object-fit: contain; }
.lightbox .icon-btn { position: absolute; top: 12px; right: 12px; background: rgba(0, 0, 0, .55); color: #fff; border-color: transparent; }
.lightbox__nav { position: absolute; inset: auto 12px 12px; display: flex; justify-content: space-between; }
.lightbox__nav .icon-btn { position: static; }

/* ── обо мне ─────────────────────────────────────────────── */
.about { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
@media (max-width: 900px) { .about { grid-template-columns: minmax(0, 1fr); gap: 32px; } }
.about__photo { border-radius: var(--r); overflow: hidden; position: relative; }
.about__photo figcaption { position: absolute; left: 14px; bottom: 14px; padding: 8px 12px; border-radius: calc(var(--r) - 4px); background: var(--brand); color: var(--on-brand); font-weight: 600; font-size: 15px; }
.quote { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.3; font-weight: 500; letter-spacing: -0.01em; text-wrap: pretty; }
.quote::before { content: "«"; } .quote::after { content: "»"; }
.signature { display: grid; gap: 2px; margin-top: 22px; }
.signature b { font-size: 18px; }
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* ── контакты ────────────────────────────────────────────── */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding: 40px; border-radius: var(--r); background: var(--graphite); color: #f1efe9; }
.contact .muted { color: #b9bcc5; }
.contact .input { background: #2b303b; border-color: #3a404d; color: #fff; }
.contact .input::placeholder { color: #9196a2; }
.contact .consent { color: #b9bcc5; }
.contact .field span { color: #b9bcc5; }
.contact .consent input { accent-color: var(--brand); }
.contact .form-done { background: #2b303b; }
.contact-list { display: grid; gap: 14px; margin-top: 26px; }
.contact-list a { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-size: 19px; font-weight: 500; }
.contact-list a:hover { color: var(--brand); }
.contact-list svg { width: 22px; height: 22px; flex: none; color: var(--brand); }
@media (max-width: 900px) { .contact { grid-template-columns: minmax(0, 1fr); padding: 28px 20px; } }

/* ── подвал ──────────────────────────────────────────────── */
.footer { padding: 56px 0 40px; margin-top: var(--section); border-top: 1px solid var(--line); font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(2, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: minmax(0, 1fr); } }
.footer__nav { display: grid; gap: 10px; }
.footer__nav a { text-decoration: none; color: var(--muted); }
.footer__nav a:hover { color: var(--ink); }
.footer__legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; color: var(--muted); font-size: 14px; }
.footer__legal a { color: inherit; }
.credit {
  text-decoration: none; font-weight: 500;
  background: linear-gradient(90deg, #dc5bf2, #2ae8c6, #dc5bf2) 0 0 / 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  animation: credit 5s linear infinite;
}
@keyframes credit { to { background-position: 200% 0; } }
.footnote { font-size: 13px; color: var(--muted); margin-top: 12px; }

/* ── нижняя кнопка на телефоне ───────────────────────────── */
.sticky-cta { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; display: none; gap: 8px; transform: translateY(140%); transition: transform .3s var(--ease); }
.sticky-cta.is-visible { transform: none; }
.sticky-cta .btn { flex: 1; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.sticky-cta .btn--dark { flex: 0 0 52px; padding: 0; }
@media (max-width: 760px) { .sticky-cta { display: flex; } }

/* ── страница /qr ────────────────────────────────────────── */
.card-page { width: min(100% - 32px, 520px); margin: 0 auto; padding: 32px 0 48px; display: grid; gap: 28px; }
.card-page__head { display: grid; justify-items: center; text-align: center; gap: 14px; }
.card-page__logo { width: 132px; height: 132px; }
.links { display: grid; gap: 10px; }
.link-btn { display: grid; grid-template-columns: 44px 1fr 20px; align-items: center; gap: 14px; min-height: 64px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); text-decoration: none; transition: border-color .2s, transform .2s var(--ease); }
.link-btn:hover { border-color: var(--ink); }
.link-btn:active { transform: scale(.99); }
.link-btn__icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-2); }
.link-btn__icon svg { width: 22px; height: 22px; }
.link-btn b { display: block; font-weight: 600; }
.link-btn small { display: block; color: var(--muted); font-size: 14px; }
.link-btn > svg { width: 18px; height: 18px; color: var(--muted); }
.link-btn--brand { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.link-btn--brand small, .link-btn--brand > svg { color: #4a4d33; }
.link-btn--brand .link-btn__icon { background: rgba(255, 255, 255, .55); }
.panel { padding: 24px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 18px; }

/* ── квиз-страница ───────────────────────────────────────── */
.quiz-page { padding: 32px 0 var(--section); }
.quiz-page .h1 { font-size: clamp(34px, 4.6vw, 54px); }

/* ── появление при прокрутке ─────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .credit { animation: none; }
}

/* ── панель cookie (assets/cookie-consent.js) ────────────── */
.cookie-panel {
  position: fixed; z-index: 60; left: 16px; bottom: 16px; width: min(460px, calc(100% - 32px));
  display: grid; gap: 12px; padding: 20px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .18);
}
.cookie-panel[hidden] { display: none; }
.cookie-panel__title { font-weight: 600; font-size: 17px; }
.cookie-panel__text { font-size: 14px; line-height: 1.45; color: var(--muted); }
.cookie-panel__actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 560px) { .cookie-panel { left: 12px; bottom: 12px; width: calc(100% - 24px); padding: 16px; } }

/* ── страница документа (политика ПДн) ───────────────────── */
.doc { width: min(100% - 2 * var(--gutter), 800px); margin: 0 auto; padding: 40px 0 var(--section); }
.doc h1 { margin-bottom: 12px; }
.doc h2 { font-size: 22px; line-height: 1.25; font-weight: 600; margin: 36px 0 12px; scroll-margin-top: calc(var(--header-h) + 16px); }
.doc h3 { font-size: 18px; font-weight: 600; margin: 24px 0 10px; }
.doc p { margin: 0 0 12px; }
.doc ul { display: grid; gap: 8px; margin: 0 0 14px; }
.doc ul li { padding-left: 18px; position: relative; }
.doc ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--brand); }
.doc .note { padding: 18px 20px; border-radius: var(--r); background: var(--surface-2); }
