/* Посадочная «Меблировка квартиры под ключ». Подключается после /blog/blog.css:
   шапка, футер и форма «Обсудим ваш объект» — оттуда, остальное — здесь.
   Подача спокойная, с воздухом: фото на всю ширину, мелкие подписи разделов
   у левого края и содержимое со сдвигом внутрь, плоские светлые карточки,
   пункты «[ 1 ]» над волосяной линией. Фирменное — Unbounded, кремовый фон,
   оранжевый акцент, слеш из логотипа и вырезанные из бумаги предметы (.cut). */

.mb { --paper: #f8f5ef }
.mb .n { font-size: 13px; line-height: 16px; color: var(--accent); letter-spacing: .04em; white-space: nowrap }
.mb .a { color: var(--accent) }
.cut { display: block; height: auto; pointer-events: none; user-select: none }

.plate {
  display: inline-flex; align-items: center; justify-content: center;
  height: 50px; padding: 0 32px; border: 0; border-radius: 0;
  background: var(--accent); color: var(--cream-1);
  font: inherit; font-size: 12px; letter-spacing: .17em; white-space: nowrap; cursor: pointer;
  transition: background .22s ease;
}
.plate:hover { background: var(--accent-hover) }
.rnd {
  display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto;
  width: 44px; height: 44px; padding: 0; border-radius: 0;
  border: 1px solid var(--cream-line); background: transparent; color: var(--accent);
  font: inherit; font-size: 18px; line-height: 1; cursor: pointer;
  transition: background var(--dur-hover) ease, color var(--dur-hover) ease, border-color var(--dur-hover) ease;
}
/* На этой странице кнопки прямоугольные — и свои, и общие из шапки и формы. */
.top .cta, .drawer .plate, .talk .plate { border-radius: 0 }
.rnd:hover { background: var(--accent); border-color: var(--accent); color: var(--cream-1) }

/* ——— сетка раздела: подпись у края, содержимое со сдвигом внутрь ——— */
.sec { padding-top: 104px }
.in { padding-left: 68px; padding-right: 68px }
.lbl {
  display: flex; align-items: baseline; gap: 10px; margin-bottom: 52px;
  font-family: Unbounded, sans-serif; font-weight: 300; font-size: 22px; line-height: 26px;
  letter-spacing: .01em; text-transform: uppercase; color: var(--ink-secondary);
}
.lbl .sl { color: var(--accent) }
.row-head { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 52px }
.row-head .lbl { margin-bottom: 0 }

/* ——— первый экран: текст слева, фото справа, всё в пределах первого экрана ——— */
.hero {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; align-items: center;
  min-height: min(calc(100vh - 73px), 820px); padding-top: 40px; padding-bottom: 48px;
}
.hero-text { grid-column: 1 / 7; padding-right: 24px }
.eyebrow { margin: 0; font-size: 12px; line-height: 12px; letter-spacing: .17em; color: var(--ink-secondary) }
.eyebrow span { color: var(--accent) }
.hero h1 {
  margin: 28px 0 0; max-width: 11em;
  font-family: Unbounded, sans-serif; font-weight: 300;
  font-size: clamp(38px, 3.7vw, 54px); line-height: 1.1; letter-spacing: -.02em;
}
.hero h1 .a { white-space: nowrap }
.hero .lede { margin: 28px 0 0; max-width: 40ch; font-size: 18px; line-height: 28px; color: var(--ink-1) }
.facts { display: flex; gap: 48px; margin: 32px 0 0; padding-top: 20px; border-top: 1px solid var(--cream-line); max-width: 520px }
.facts dt { font-size: 11px; line-height: 11px; letter-spacing: .17em; color: var(--ink-secondary) }
.facts dd { margin: 10px 0 0; font-family: Unbounded, sans-serif; font-weight: 300; font-size: 20px; line-height: 24px; white-space: nowrap }
.facts small { font-family: Onest, sans-serif; font-size: 13px; color: var(--ink-secondary) }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 36px; margin-top: 36px }
.hero-photo { grid-column: 7 / 13; position: relative; margin: 0 }
.hero-pic { position: relative; aspect-ratio: 1.06 / 1; background: var(--cream-card) }
.hero-pic > img:first-child { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 3% 50% }
.hero-photo figcaption { margin-top: 12px; font-size: 12px; line-height: 18px; color: var(--ink-secondary); text-align: right }
.hero-photo figcaption a { transition: color var(--dur-hover) }
.hero-photo figcaption a:hover { color: var(--accent) }

/* ——— цифры ——— */
.st-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 48px }
.st-list li { padding-top: 26px; border-top: 1px solid var(--cream-line) }
.st-num { margin: 0; font-family: Unbounded, sans-serif; font-weight: 300; font-size: clamp(56px, 5.8vw, 84px); line-height: 1; letter-spacing: -.035em; white-space: nowrap }
.st-num .pre { font-size: .42em; letter-spacing: 0; color: var(--ink-secondary) }
.st-txt { margin: 16px 0 0; max-width: 22ch; font-size: 18px; line-height: 27px; color: var(--ink-secondary) }
.st-note { margin: 24px 0 0; font-size: 11px; line-height: 16px; color: var(--ink-secondary) }

/* Застройщики — выделенная полоса: тёмная плашка, названия крупно, слеши из логотипа. */
.devs-sec { padding-top: 88px }
.devs { display: flex; flex-direction: column; gap: 16px; padding: 32px 44px 36px; background: var(--ink-1); color: var(--cream-1) }
.devs h2 { font-size: 12px; line-height: 19px; font-weight: 400; letter-spacing: .17em; text-transform: uppercase; color: var(--ink-invert-quiet) }
.devs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; row-gap: 8px }
.devs li { font-family: Unbounded, sans-serif; font-weight: 300; font-size: 24px; line-height: 30px; letter-spacing: -.01em; white-space: nowrap }
.devs li + li::before { content: "/"; margin: 0 16px; color: var(--accent) }

/* ——— до / после: два кадра и край следующей пары, как на главной ——— */
.before-after { overflow: hidden }
.ba-row { display: grid; grid-template-columns: 1fr 1fr 64px; gap: 16px }
.ba-shot { position: relative; margin: 0; overflow: hidden; aspect-ratio: 4 / 3; background: var(--cream-card) }
.ba-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .35s ease }
.ba.is-swapping .ba-shot img, .ba.is-swapping .ba-peek img { opacity: 0 }
.tg {
  position: absolute; top: 20px; left: 20px; padding: 10px 14px 9px;
  color: var(--cream-1); font-size: 11px; line-height: 11px; letter-spacing: .17em; pointer-events: none;
}
.is-b .tg { background: var(--ink-1) }
.is-a .tg { background: var(--accent) }
.ba-peek { position: relative; overflow: hidden; padding: 0; border: 0; background: var(--cream-card); cursor: pointer }
.ba-peek img { position: absolute; left: 0; top: 0; height: 100%; width: auto; max-width: none; opacity: .5; transition: opacity .3s }
.ba-peek .nx {
  position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -50%);
  width: 44px; height: 44px; border-radius: 0; background: var(--cream-1); color: var(--accent);
  display: flex; align-items: center; justify-content: center; font-size: 20px; transition: transform .22s;
}
.ba-peek:hover img { opacity: .8 }
.ba-peek:hover .nx { transform: translate(calc(-50% + 3px), -50%) }
.ba-row { position: relative }
.ba-prev {
  position: absolute; left: -22px; top: 50%; z-index: 3; transform: translateY(-50%);
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 0;
  background: var(--cream-1); color: var(--accent); font: inherit; font-size: 20px; line-height: 1; cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .12); transition: transform .22s;
}
.ba-prev:hover { transform: translate(-3px, -50%) }

/* ——— сколько стоит: плоские карточки ——— */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: stretch }
.plan { display: flex; flex-direction: column; padding: 30px 30px 26px; background: var(--paper); border-top: 2px solid transparent }
.plan.is-hit { border-top-color: var(--accent) }
.plan-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px }
.plan h3 { font-family: Unbounded, sans-serif; font-weight: 400; font-size: 15px; line-height: 20px; letter-spacing: .03em }
.plan .term { font-size: 12px; line-height: 16px; color: var(--ink-secondary) }
.plan-lede { margin: 18px 0 0; font-size: 15px; line-height: 23px; color: var(--ink-1) }
.plan ul { list-style: none; margin: 18px 0 0; padding: 0 }
.plan li { position: relative; padding-left: 16px; margin-bottom: 6px; font-size: 14px; line-height: 21px; color: var(--ink-secondary) }
.plan li::before { content: ""; position: absolute; left: 1px; top: 9px; width: 4px; height: 4px; background: var(--accent) }
.plan .for { margin: 12px 0 0; font-size: 13px; line-height: 20px; color: var(--ink-secondary) }
.plan-price {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px;
  margin-top: auto; padding-top: 18px; border-top: 1px solid var(--cream-line);
  transition: color var(--dur-hover) ease;
}
.plan ul, .plan .for { margin-bottom: 24px }
.plan-price strong { font-family: Unbounded, sans-serif; font-weight: 300; font-size: 22px; line-height: 26px; letter-spacing: -.01em }
.plan-price span { font-size: 13px; color: var(--ink-secondary) }
.plan-price .arr { margin-left: auto; font-size: 18px; color: var(--accent); transition: transform var(--dur-hover) var(--ease-slide) }
.plan-price:hover strong { color: var(--accent) }
.plan-price:hover .arr { transform: translateX(4px) }
/* Цена выравнивается по низу карточки, даже если текста мало. */
.plan { justify-content: flex-start }
.plan > .plan-price { margin-top: auto }
.budget { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px }
.budget li { position: relative; padding-top: 16px; border-top: 1px solid var(--cream-line) }
.budget .op { position: absolute; left: -28px; top: 10px; font-family: Unbounded, sans-serif; font-weight: 300; font-size: 20px; line-height: 20px; color: var(--accent) }
.budget h3 { font-family: Unbounded, sans-serif; font-weight: 400; font-size: 13px; line-height: 17px; letter-spacing: .03em; text-transform: uppercase }
.budget p { margin: 10px 0 0; font-size: 14px; line-height: 22px; color: var(--ink-secondary) }

/* ——— квиз ——— */
.quiz-in { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; align-items: start }
.quiz-cuts { display: flex; align-items: flex-end; gap: 2px; margin-top: 8px }
.qc-jug { width: 92px }
.qc-leaf { width: 82px }
.quiz { padding: 32px 36px 32px; background: var(--paper) }
.q-bar { height: 2px; background: var(--cream-line) }
.q-bar span { display: block; height: 100%; background: var(--accent); transform: scaleX(.25); transform-origin: 0 50%; transition: transform .3s var(--ease-slide) }
.q-step { margin: 0; padding: 0; border: 0; min-width: 0 }
.q-step + .q-step { margin-top: 40px }
.q-step legend { display: flex; align-items: baseline; gap: 14px; padding: 26px 0 0; font-family: Unbounded, sans-serif; font-weight: 300; font-size: 22px; line-height: 28px; letter-spacing: -.01em }
.q-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; margin-top: 20px }
.q-opt { position: relative; display: block; cursor: pointer }
.q-opt input { position: absolute; opacity: 0; pointer-events: none }
.q-opt span {
  display: flex; align-items: center; gap: 12px; padding: 14px 0;
  border-bottom: 1px solid var(--cream-line); font-size: 15px; line-height: 21px; color: var(--ink-1);
  transition: color var(--dur-hover) ease;
}
.q-opt span::before { content: ""; flex: 0 0 12px; height: 12px; border: 1px solid var(--ink-secondary); transition: background var(--dur-hover) ease, border-color var(--dur-hover) ease }
.q-opt:hover span, .q-opt input:checked + span { color: var(--accent) }
.q-opt input:checked + span::before { background: var(--accent); border-color: var(--accent) }
.q-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px }
.q-nav { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 28px }
.q-back { padding: 0; border: 0; background: none; font: inherit; font-size: 12px; letter-spacing: .17em; color: var(--ink-secondary); cursor: pointer; transition: color var(--dur-hover) }
.q-back:hover { color: var(--accent) }
.q-go { margin-left: auto }
.q-done { padding-top: 26px }
.q-done-title { margin: 0; font-family: Unbounded, sans-serif; font-weight: 300; font-size: 32px; line-height: 1; color: var(--accent) }
.q-done-text { margin: 16px 0 0; max-width: 46ch; font-size: 16px; line-height: 25px; color: var(--ink-1) }
/* Пятый шаг — контакты: заявка уходит прямо из квиза. */
.q-contact { margin: 40px 0 0; padding: 0; border: 0; min-width: 0 }
.q-contact legend { display: flex; align-items: baseline; gap: 14px; padding: 26px 0 0; font-family: Unbounded, sans-serif; font-weight: 300; font-size: 22px; line-height: 28px; letter-spacing: -.01em }
.q-sub { margin: 10px 0 0; font-size: 15px; line-height: 22px; color: var(--ink-secondary) }
.q-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; margin-top: 22px }
.q-field { display: block }
.q-field span { display: block; font-size: 11px; line-height: 11px; letter-spacing: .17em; color: var(--ink-secondary) }
.q-field input {
  width: 100%; margin-top: 10px; padding: 8px 0 12px; border: 0; border-bottom: 1px solid var(--ink-secondary); border-radius: 0;
  background: transparent; font: inherit; font-size: 17px; line-height: 24px; color: var(--ink-1); outline: none;
  transition: border-color var(--dur-hover) ease;
}
.q-field input::placeholder { color: #a8a298 }
.q-field input:focus { border-bottom-color: var(--accent) }
/* Автозаполнение не должно красить поле квиза голубой плашкой. */
.q-field input:-webkit-autofill, .q-field input:-webkit-autofill:hover,
.q-field input:-webkit-autofill:focus, .q-field input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--ink-1);
  -webkit-box-shadow: 0 0 0 100px var(--paper) inset;
  box-shadow: 0 0 0 100px var(--paper) inset;
  transition: background-color 600000s 0s, color 600000s 0s, border-color var(--dur-hover) ease;
}
.q-field input:autofill { background: transparent; color: var(--ink-1) }
.q-ways-t { margin: 26px 0 0; font-size: 11px; line-height: 11px; letter-spacing: .17em; text-transform: uppercase; color: var(--ink-secondary) }
.q-ways { display: flex; flex-wrap: wrap; gap: 0 28px; margin-top: 4px }
.q-way span { border-bottom: 0; padding: 12px 0 }
.q-legal { margin: 18px 0 0; max-width: 60ch; font-size: 12px; line-height: 18px; color: var(--ink-secondary) }
.q-legal a { color: var(--ink-1); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px }
.q-msg { margin: 0; flex: 1; font-size: 14px; line-height: 20px; color: var(--accent); text-align: right }
.quiz.is-live .q-contact { display: none }
.quiz.is-live .q-contact.is-on { display: block; margin-top: 0 }
/* .plate задаёт display и перебивает атрибут hidden. */
.quiz [hidden] { display: none !important }
/* С JS показываем по одному шагу; без JS видны все вопросы сразу. */
.quiz.is-live .q-step { display: none }
.quiz.is-live .q-step.is-on { display: block }
.quiz.is-live .q-step + .q-step { margin-top: 0 }

/* ——— кейсы: квадратные кадры с короткой подписью ——— */
.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 24px }
.case { display: block }
.case figure { margin: 0; overflow: hidden; background: var(--cream-card) }
.case img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform .9s var(--ease-slide) }
.case:hover img { transform: scale(1.03) }
.case p { margin: 12px 0 0; font-size: 13px; line-height: 19px; color: var(--ink-secondary) }
.case p span { color: var(--ink-1); margin-right: 6px; transition: color var(--dur-hover) }
.case:hover p span { color: var(--accent) }

/* ——— отзывы ——— */
.rev-grid { columns: 3; column-gap: 24px }
.rev { break-inside: avoid; margin: 0 0 24px; padding: 26px 28px 28px; background: var(--paper) }
.rev .stars { font-size: 12px; letter-spacing: .2em; color: var(--accent) }
.rev p { margin: 14px 0 0; font-size: 14px; line-height: 23px; color: var(--ink-1) }

/* ——— вопросы ——— */
.faq { padding-bottom: 120px }
.faq-list { max-width: 880px; border-top: 1px solid var(--cream-line) }
.faq details { border-bottom: 1px solid var(--cream-line) }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; cursor: pointer }
.faq summary::-webkit-details-marker { display: none }
.faq summary h3 { font-size: 16px; line-height: 24px; font-weight: 500; transition: color var(--dur-hover) }
.faq summary:hover h3 { color: var(--accent) }
.faq .pm { position: relative; flex: 0 0 16px; height: 16px }
.faq .pm::before, .faq .pm::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--accent); transition: transform var(--dur-hover) var(--ease-slide) }
.faq .pm::after { transform: rotate(90deg) }
.faq details[open] .pm::after { transform: rotate(0) }
.faq details p { margin: -4px 0 24px; max-width: 64ch; font-size: 15px; line-height: 25px; color: var(--ink-secondary) }

/* ——— узкие экраны: только чтобы ничего не ломалось, отдельной мобильной вёрстки нет ——— */
@media (max-width: 1100px) {
  .in { padding-left: 0; padding-right: 0 }
  .plans { grid-template-columns: 1fr }
  .rev-grid { columns: 2 }
}
@media (max-width: 900px) {
  .wrap { padding-left: 24px; padding-right: 24px }
  .sec { padding-top: 72px }
  .hero { display: block; min-height: 0 }
  .hero-photo { margin-top: 40px }
  .st-list, .budget, .case-grid, .quiz-in { grid-template-columns: 1fr }
  .st-list { gap: 28px }
  .ba-row { grid-template-columns: 1fr }
  .ba-peek { display: none }
  .ba-prev { left: 8px }
  .budget { gap: 24px }
  .budget .op { display: none }
  .q-opts, .q-fields { grid-template-columns: 1fr }
  .quiz { padding: 24px 20px }
  .quiz-cuts { display: none }
  .rev-grid { columns: 1 }
}
