/* ============================================================
   ПРОРАБ — ремонт квартир
   Тон: чертёж и бетон. Тёплый серый фон, сигнальный оранжевый,
   плотный гротеск и моноширинные цифры. Первый экран — план
   квартиры из четырёх прямоугольников, а не фото интерьера:
   продаём смету, а не картинку.
   ============================================================ */

:root {
  --paper: #eceae5;
  --paper-2: #e2dfd8;
  --white: #f7f6f3;
  --ink: #1a1917;
  --muted: #61605b;
  --line: #cdc9c1;
  --orange: #c04a19;
  /* Мелкие подписи набраны 10–11px, им нужен более тёмный оттенок,
     чем кнопкам: контраст считается от размера кегля. */
  --orange-ink: #a84116;
  --orange-2: #b64414;
  --steel: #2c2f33;

  --body: "Golos Text", -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;

  --cart-bg: #f7f6f3;
  --cart-fg: var(--ink);
  --cart-shadow: -20px 0 60px rgba(26, 25, 23, 0.28);

  --gut: clamp(16px, 4.5vw, 56px);
  --sec-y: clamp(50px, 6.5vw, 96px);
}

body { background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.6; }
.wrap { width: 100%; max-width: 1220px; margin-inline: auto; padding-inline: var(--gut); }

h1, h2, h3 { font-weight: 900; line-height: 1.08; letter-spacing: -0.02em; }
.kicker { margin-bottom: 16px; color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }
.kicker--orange { color: #f0a179; }
.p { max-width: 34em; margin-bottom: 14px; color: var(--muted); }

/* ── Кнопки ─────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 13px 24px; border: 2px solid transparent; border-radius: 4px;
  background: transparent;
  font-size: 14.5px; font-weight: 700; text-decoration: none; white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn--lg { padding: 16px 30px; font-size: 15.5px; }
.btn--sm { padding: 9px 16px; font-size: 13px; }
.btn--full { width: 100%; }
.btn--orange { background: var(--orange); color: #fff; }
.btn--orange:hover { background: var(--orange-2); }
.btn--orange:disabled { background: #c6c2ba; cursor: not-allowed; }
.btn--line { border-color: var(--line); color: var(--ink); }
.btn--line:hover { border-color: var(--ink); }
.btn__q:not(:empty) { display: inline-grid; place-items: center; min-width: 18px; height: 18px; border-radius: 3px; background: rgba(255,255,255,0.24); font-size: 11px; }
[data-add][data-in-cart] { background: var(--steel); }

/* ── Шапка ──────────────────────────────────────────────── */

.hdr { position: sticky; top: var(--demo-bar-h); z-index: 100; background: rgba(236,234,229,0.94); backdrop-filter: blur(10px); border-bottom: 2px solid var(--ink); }
.hdr__in { display: flex; align-items: center; gap: 22px; padding-block: 13px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 900; letter-spacing: 0.1em; text-decoration: none; }
.brand__mark { width: 28px; height: 28px; color: var(--orange); }

.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); font-size: 14.5px; text-decoration: none; white-space: nowrap; }
.nav a:hover { color: var(--orange); }
.hdr__side { display: flex; align-items: center; gap: 14px; }
.phone { font-size: 14.5px; font-weight: 700; text-decoration: none; white-space: nowrap; }

.cart-btn { display: inline-flex; align-items: center; gap: 8px; border: 2px solid var(--ink); border-radius: 4px; background: none; color: var(--ink); padding: 9px 16px; font-size: 13.5px; font-weight: 700; }
.cart-btn:hover { background: var(--ink); color: var(--paper); }
.cart-btn__n { display: grid; place-items: center; min-width: 19px; height: 19px; border-radius: 3px; background: var(--orange); color: #fff; font-size: 11px; font-variant-numeric: tabular-nums; }

.burger { display: none; width: 40px; height: 40px; border: 0; background: none; padding: 9px 8px; }
.burger span { display: block; height: 2px; background: var(--ink); margin: 5px 0; }

@media (max-width: 900px) {
  .hdr__in { position: relative; }
  .nav { display: none; position: absolute; inset: 100% 0 auto; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 2px solid var(--ink); padding: 4px var(--gut) 16px; margin: 0; }
  .nav[data-open] { display: flex; }
  .nav a { padding: 13px 0; border-top: 1px solid var(--line); font-size: 16px; }
  .hdr__side { margin-left: auto; }
  .burger { display: block; }
}
@media (max-width: 640px) { .phone { display: none; } }

/* ── Первый экран ───────────────────────────────────────── */

.hero { padding-block: clamp(38px, 5vw, 78px); }
.hero__in { display: grid; gap: clamp(32px, 4vw, 60px); align-items: center; }
.hero h1 { font-size: clamp(34px, 5.6vw, 66px); }
.hero h1 em { font-style: normal; color: var(--orange); }
.lede { max-width: 31em; margin-top: 20px; color: var(--muted); font-size: clamp(16px, 1.5vw, 18px); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.marks { display: grid; gap: 18px; margin-top: 38px; padding-top: 24px; border-top: 2px solid var(--ink); }
.marks b { display: block; font-size: 24px; font-weight: 900; }
.marks span { color: var(--muted); font-size: 12.5px; }
@media (min-width: 520px) { .marks { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .hero__in { grid-template-columns: 1.1fr 0.9fr; } }

/* План квартиры: четыре комнаты на миллиметровке. */
.hero__art { position: relative; min-height: 280px; display: grid; place-items: center; }
.plan {
  position: relative; width: min(100%, 400px); aspect-ratio: 5 / 4;
  background:
    repeating-linear-gradient(0deg, rgba(26,25,23,0.06) 0 1px, transparent 1px 22px),
    repeating-linear-gradient(90deg, rgba(26,25,23,0.06) 0 1px, transparent 1px 22px),
    var(--white);
  border: 2px solid var(--ink);
}
.plan__room { position: absolute; border: 2px solid var(--ink); }
.plan__room--a { left: 6%; top: 6%; width: 52%; height: 54%; background: rgba(212,83,28,0.12); }
.plan__room--b { right: 6%; top: 6%; width: 34%; height: 34%; background: rgba(44,47,51,0.08); }
.plan__room--c { right: 6%; top: 44%; width: 34%; height: 26%; background: rgba(44,47,51,0.05); }
.plan__room--d { left: 6%; bottom: 6%; width: 82%; height: 26%; background: rgba(212,83,28,0.06); }

/* ── Секции ─────────────────────────────────────────────── */

.sec { padding-block: var(--sec-y); }
.sec--paper { background: var(--paper-2); }
.sec--dark { background: var(--steel); color: #c8ccd2; }
.sec__head { max-width: 46em; margin-bottom: clamp(24px, 3vw, 40px); }
.sec__head h2 { font-size: clamp(26px, 3.8vw, 44px); }
.sec__head p { margin-top: 14px; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip { border: 2px solid var(--line); border-radius: 4px; padding: 9px 17px; background: var(--white); color: var(--muted); font-size: 13.5px; font-weight: 700; transition: all 0.2s; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[data-on] { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* ── Комнаты ────────────────────────────────────────────── */

.rooms { display: grid; gap: 14px; }
.rooms li { display: flex; flex-direction: column; border: 2px solid var(--line); border-radius: 4px; padding: 20px; background: var(--white); }
.rooms li:hover { border-color: var(--orange); }
.rooms__k { display: block; margin-bottom: 10px; color: var(--orange-ink); font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; }
.rooms h3 { font-size: 20px; margin-bottom: 8px; }
.rooms li p { color: var(--muted); font-size: 13.5px; }
.rooms__p { margin: 16px 0 14px; font-size: 24px; font-weight: 900; font-variant-numeric: tabular-nums; }
.rooms__p i { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; font-style: normal; font-weight: 400; }
.rooms li .btn { align-self: flex-start; margin-top: auto; }
.rooms__note { margin-top: 20px; color: var(--muted); font-size: 13px; max-width: 56em; }
.empty { padding: 40px 0; text-align: center; color: var(--muted); }
@media (min-width: 620px) { .rooms { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1020px) { .rooms { grid-template-columns: repeat(3, 1fr); } }

/* ── Этапы ──────────────────────────────────────────────── */

.stages { display: grid; gap: 1px; background: var(--line); border: 2px solid var(--ink); }
.stages li { display: flex; flex-direction: column; background: var(--paper); padding: 22px; }
.stages span { display: block; margin-bottom: 12px; color: var(--orange-ink); font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; }
.stages h3 { font-size: 18px; margin-bottom: 8px; }
.stages li p { color: var(--muted); font-size: 14px; }
.stages b { margin-top: 16px; font-size: 26px; font-weight: 900; }
@media (min-width: 700px) { .stages { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .stages { grid-template-columns: repeat(4, 1fr); } }

/* ── Цифры ──────────────────────────────────────────────── */

.facts { display: grid; gap: clamp(28px, 3.5vw, 54px); }
.facts h2 { font-size: clamp(26px, 3.6vw, 42px); margin-bottom: 18px; color: #fff; }
.facts .p { color: #9aa1a9; }
.facts__n { display: grid; gap: 1px; background: #40454b; border: 1px solid #40454b; }
.facts__n > div { background: var(--steel); padding: 22px; }
.facts__n dt { font-size: clamp(26px, 3.2vw, 36px); font-weight: 900; color: #f0a179; }
.facts__n dd { margin: 5px 0 0; color: #9aa1a9; font-size: 13px; }
@media (min-width: 560px) { .facts__n { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 940px) { .facts { grid-template-columns: 1.05fr 0.95fr; align-items: center; } }

/* ── Заявка ─────────────────────────────────────────────── */

.order { display: grid; gap: clamp(28px, 3.5vw, 52px); }
.order h2 { font-size: clamp(26px, 3.8vw, 42px); margin-bottom: 16px; }
.order__form { display: grid; gap: 14px; border: 2px solid var(--ink); border-radius: 4px; padding: clamp(20px, 2.6vw, 30px); background: var(--white); }
.order__row { display: grid; gap: 14px; }
label { display: grid; gap: 6px; color: var(--muted); font-size: 12.5px; }
input, select { border: 2px solid var(--line); border-radius: 4px; background: var(--paper); color: var(--ink); padding: 11px 14px; font-size: 15px; }
input:focus, select:focus { outline: 2px solid var(--orange); outline-offset: 0; border-color: var(--orange); }
.order__sum { display: flex; align-items: baseline; justify-content: space-between; padding-top: 14px; border-top: 2px solid var(--ink); }
.order__sum b { font-size: 26px; font-weight: 900; font-variant-numeric: tabular-nums; }
.legal { color: var(--muted); font-size: 12px; }
@media (min-width: 560px) { .order__row { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .order { grid-template-columns: 0.85fr 1.15fr; align-items: start; } }

.done { grid-column: 1 / -1; border: 2px solid var(--orange); border-radius: 4px; padding: 24px; background: #fdefe8; }
.done__t { font-size: 20px; font-weight: 900; }
.done__s { margin-top: 8px; color: var(--muted); }
.done__d { margin-top: 14px; color: #98897f; font-size: 13px; }

/* ── Вопросы ────────────────────────────────────────────── */

.faq__h { font-size: clamp(26px, 3.8vw, 42px); margin-bottom: 24px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 2px solid var(--ink); }
.faq summary { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; cursor: pointer; font-size: 17px; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange); font-size: 21px; line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding-bottom: 20px; color: var(--muted); max-width: 62em; }

/* ── Смета в панели ─────────────────────────────────────── */

.cart__top { display: flex; align-items: center; justify-content: space-between; padding: 20px var(--gut) 16px; border-bottom: 2px solid var(--ink); }
.cart__top h2 { font-size: 22px; }
.cart__x { width: 36px; height: 36px; border: 2px solid var(--line); border-radius: 4px; background: none; font-size: 19px; line-height: 1; color: var(--ink); }
.cart__x:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.cart__empty { padding: 32px var(--gut); color: var(--muted); }
.cart__empty a { color: var(--orange); }
.cart__body { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.cart__lines { flex: 1; padding: 6px var(--gut); }

.line { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.line__i b { display: block; font-size: 14px; font-weight: 700; }
.line__u { color: var(--muted); font-size: 12px; }
.line__q { display: flex; align-items: center; gap: 4px; }
.line__q button { width: 27px; height: 27px; border: 1px solid var(--line); border-radius: 3px; background: none; font-size: 14px; line-height: 1; }
.line__q button:hover { border-color: var(--orange); color: var(--orange); }
.line__q span { min-width: 18px; text-align: center; font-size: 14px; font-variant-numeric: tabular-nums; }
.line__p { font-weight: 900; font-size: 14px; white-space: nowrap; }
.line__x { width: 26px; height: 26px; border: 0; background: none; color: #a8a49c; font-size: 18px; line-height: 1; }
.line__x:hover { color: var(--orange); }

.cart__sum { padding: 14px var(--gut); border-top: 1px solid var(--line); display: grid; gap: 7px; }
.cart__sum > div { display: flex; justify-content: space-between; gap: 14px; font-size: 14px; color: var(--muted); }
.cart__sum--total { padding-top: 8px; border-top: 2px solid var(--ink); color: var(--ink) !important; font-size: 18px !important; }
.cart__sum--total dd { font-weight: 900; font-size: 21px; }
.cart__note { padding: 0 var(--gut) 12px; color: var(--muted); font-size: 12.5px; }
.cart__body > .btn { margin: 0 var(--gut) calc(var(--gut) + 6px); width: auto; }
.cart__backdrop { position: fixed; inset: 0; z-index: 290; border: 0; }

/* ── Подвал ─────────────────────────────────────────────── */

.foot { background: var(--ink); color: #96938c; padding-block: clamp(36px, 5vw, 60px); }
.foot__in { display: grid; gap: 28px; }
.foot__brand { font-size: 22px; font-weight: 900; letter-spacing: 0.1em; color: var(--paper); }
.foot__t { margin-top: 10px; font-size: 13.5px; line-height: 1.7; }
.foot h3 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #f0a179; margin-bottom: 12px; font-weight: 400; }
.foot a { display: block; padding: 4px 0; color: #96938c; font-size: 14px; text-decoration: none; }
.foot a:hover { color: var(--paper); }
@media (min-width: 700px) { .foot__in { grid-template-columns: 1.7fr 1fr 1fr; } }
