/* «Форма» — графит + дуб */
:root {
  --bg: #1d1f22;
  --surface: #26292d;
  --surface-2: #33373c;
  --text: #f1ece4;
  --muted: #a39d94;
  --line: rgba(241, 236, 228, .12);
  --accent: #c58d55;
  --accent-hover: #d9a26a;
  --accent-ink: #1d1f22;
  --accent-2: #e2b67f;
  --dark: #141517;
  --radius: 6px;
  --radius-sm: 4px;
  --font-head: "Prata", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
}
h1, h2, h3, .h1, .h2 { font-weight: 400; }
.h3 { font-family: var(--font-body); font-weight: 600; font-size: 19px; }
.btn { border-radius: 4px; text-transform: uppercase; letter-spacing: .06em; font-size: 14px; font-weight: 600; }
.btn--lg { font-size: 15px; }
.btn--ghost { color: var(--text); }
.eyebrow { color: var(--accent); }
.card { background: var(--surface); }

/* светлые секции: дуб-крем */
.section--light {
  --bg: #f3ede4; --surface: #ebe2d5; --surface-2: #ddd0bd; --text: #1d1f22; --muted: #6f665b; --line: rgba(29,31,34,.12);
  background: #f3ede4; color: #1d1f22;
}
.section--light .card { background: #fff; }

/* hero */
.hero { position: relative; min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; padding: 80px 0; color: #fff; }
.hero__bg { position: absolute; inset: 0; border-radius: 0; }
.hero__bg img { height: 100%; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,21,23,.92) 0%, rgba(20,21,23,.7) 45%, rgba(20,21,23,.15) 100%); }
.hero__bg:hover img { transform: none; }
.hero__inner { position: relative; z-index: 1; }
.hero .h1 { max-width: 760px; font-size: clamp(36px, 5.6vw, 72px); line-height: 1.08; }
.hero em { font-style: normal; color: var(--accent); }
.hero .lead { max-width: 560px; color: rgba(255,255,255,.78); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero__gift { display: inline-flex; align-items: center; gap: 14px; margin-top: 40px; padding: 14px 20px; border: 1px solid rgba(197,141,85,.5); background: rgba(197,141,85,.12); border-radius: 6px; max-width: 520px; }
.hero__gift-ico { font-size: 26px; }

/* why */
.why { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.why__intro { position: sticky; top: calc(var(--header-h) + 32px); }
.why__list { display: grid; }
.why__item { display: grid; grid-template-columns: 72px 1fr; gap: 16px; padding: 28px 0; border-bottom: 1px solid var(--line); transition: padding .3s var(--ease); }
.why__item:first-child { border-top: 1px solid var(--line); }
.why__item:hover { padding-left: 12px; }
.why__item > b { font-family: var(--font-head); font-size: 34px; font-weight: 400; color: var(--accent); line-height: 1; }
.why__item p { color: var(--muted); margin-top: 6px; }

/* styles */
.styles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.style-card { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--surface); transition: transform .4s var(--ease); }
.style-card:hover { transform: translateY(-6px); }
.style-card .media { aspect-ratio: 3 / 4; border-radius: 0; }
.style-card:hover .media img { transform: scale(1.07); }
.style-card__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 20px 20px; background: linear-gradient(transparent, rgba(20,21,23,.92)); color: #fff; }
.style-card__body p { font-size: 14px; color: rgba(255,255,255,.7); }
.style-card__price { display: inline-block; margin-top: 10px; padding: 6px 12px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 14px; border-radius: 3px; }
.materials { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 32px; }
.materials__item { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); }
.materials__item small { display: block; color: var(--muted); }
.sw { width: 48px; height: 48px; border-radius: 4px; flex-shrink: 0; }
.sw--oak { background: repeating-linear-gradient(95deg, #b98352 0 3px, #c99463 3px 7px, #a97446 7px 9px); }
.sw--enamel { background: linear-gradient(135deg, #eeebe5, #d8d3cb); }
.sw--graphite { background: linear-gradient(135deg, #3d4146, #2a2d31); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.sw--stone { background: radial-gradient(circle at 30% 30%, #fff 0 2px, transparent 3px) 0 0/12px 12px, linear-gradient(135deg, #e7e3dc, #c9c3b8); }

/* quiz */
.quiz { max-width: 960px; margin: 0 auto; background: #fff; color: #1d1f22; border-radius: 8px; padding: 40px; box-shadow: 0 30px 80px rgba(29,31,34,.12); border: 0; }
.quiz__top { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; margin-bottom: 32px; font-size: 15px; }
.quiz__progress { height: 6px; border-radius: 6px; background: #ebe2d5; overflow: hidden; }
.quiz__progress span { display: block; height: 100%; width: 25%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .5s var(--ease); }
.quiz__discount b { color: var(--accent); font-size: 18px; }
.quiz__pane { display: none; border: 0; padding: 0; margin: 0; min-width: 0; }
.quiz__pane.is-active { display: block; animation: fadeUp .45s var(--ease); }
.quiz__q { font-family: var(--font-head); font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 24px; padding: 0; }
.opt-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; }
.opt > span { display: grid; justify-items: center; gap: 12px; padding: 20px 12px; border: 1.5px solid rgba(29,31,34,.14); border-radius: 6px; font-weight: 600; text-align: center; transition: all .25s; height: 100%; }
.opt svg { width: 100%; max-width: 110px; height: auto; fill: #d8c7b0; transition: fill .25s; }
.opt:hover > span { border-color: var(--accent); transform: translateY(-3px); }
.opt input:checked + span { border-color: var(--accent); background: #faf4ec; box-shadow: inset 0 0 0 1px var(--accent); }
.opt input:checked + span svg { fill: var(--accent); }
.opt input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.opt--img > span { padding: 10px 10px 14px; }
.opt--img i { display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 4px; }
.quiz__len { max-width: 640px; }
.quiz__len-head { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 14px; }
.quiz__len-head output { font-family: var(--font-head); font-size: 26px; color: var(--accent); }
.calc-scale { display: flex; justify-content: space-between; color: #8a8178; font-size: 13px; margin-top: 8px; }
.quiz .range { background: linear-gradient(to right, var(--accent) var(--fill, 50%), #ebe2d5 var(--fill, 50%)); }
.quiz__sub { font-weight: 600; margin: 28px 0 12px; }
.quiz .chip span { background: #fff; border-color: rgba(29,31,34,.14); }
.quiz .chip input:checked + span { color: #fff; background: #1d1f22; border-color: #1d1f22; }
.quiz__estimate { margin-top: 28px; padding: 20px 24px; background: #1d1f22; color: #f1ece4; border-radius: 6px; display: grid; gap: 2px; }
.quiz__estimate span { font-size: 14px; opacity: .7; }
.quiz__estimate b { font-family: var(--font-head); font-weight: 400; font-size: clamp(26px, 3vw, 34px); color: var(--accent-2); }
.quiz__estimate small { opacity: .7; }
.quiz__final { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.quiz__summary { background: #f3ede4; border-radius: 6px; padding: 24px; display: grid; gap: 10px; align-content: start; }
.quiz__summary div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px dashed rgba(29,31,34,.15); padding-bottom: 8px; }
.quiz__summary span { color: #6f665b; }
.quiz__summary .sum-total b { font-family: var(--font-head); font-weight: 400; font-size: 24px; color: var(--accent); }
.quiz .form input { background: #fff; border-color: rgba(29,31,34,.16); color: #1d1f22; }
.quiz__nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 32px; padding-top: 24px; border-top: 1px solid rgba(29,31,34,.1); }
.quiz__nav .btn--ghost { color: #1d1f22; border-color: rgba(29,31,34,.2); }
.quiz__nav .btn--ghost:hover { background: #1d1f22; color: #fff; }
.quiz__hint { color: #8a8178; font-size: 14px; text-align: center; }
.quiz__hint.is-warn { color: #c0392b; animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.quiz .form-success { color: #1d1f22; padding: 40px 12px; }
.quiz .form-success p { color: #6f665b; }

/* works */
.works { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.work { position: relative; overflow: hidden; border-radius: var(--radius); }
.work .media { aspect-ratio: 16 / 10; border-radius: 0; }
.work figcaption { position: absolute; left: 0; bottom: 0; right: 0; padding: 48px 24px 20px; background: linear-gradient(transparent, rgba(20,21,23,.9)); color: #fff; display: grid; }
.work figcaption b { font-family: var(--font-head); font-weight: 400; font-size: 22px; }
.work figcaption span { color: rgba(255,255,255,.7); font-size: 14px; }

.steps .step::before { font-family: var(--font-head); font-weight: 400; }

.inline-form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-form input { flex: 1 1 220px; }
.inline-form .form-success { width: 100%; }
#contacts .map-stub { min-height: 460px; }

@media (max-width: 1080px) {
  .styles { grid-template-columns: repeat(2, 1fr); }
  .materials { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 920px) {
  .why { grid-template-columns: 1fr; gap: 32px; }
  .why__intro { position: static; }
  .opt-grid { grid-template-columns: repeat(2, 1fr); }
  .quiz__final { grid-template-columns: 1fr; }
  .works { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .hero { min-height: auto; padding: 72px 0 56px; }
  .hero__bg::after { background: linear-gradient(180deg, rgba(20,21,23,.75), rgba(20,21,23,.9)); }
  .hero__actions .btn { width: 100%; white-space: normal; }
  .styles { grid-template-columns: 1fr 1fr; gap: 12px; }
  .style-card__body { padding: 40px 12px 12px; }
  .style-card__body p { display: none; }
  .style-card__price { font-size: 12px; padding: 4px 8px; }
  .materials { grid-template-columns: 1fr; }
  .quiz { padding: 22px 16px; }
  .quiz__top { grid-template-columns: 1fr auto; gap: 10px; }
  .quiz__progress { grid-column: 1 / -1; order: 3; }
  .opt-grid { gap: 10px; }
  .opt > span { padding: 14px 8px; font-size: 14px; }
  .quiz__nav .btn { padding: 12px 16px; min-height: 46px; }
  .quiz__hint { display: none; }
  .why__item { grid-template-columns: 52px 1fr; }
  .why__item > b { font-size: 26px; }
  #contacts .map-stub { min-height: 320px; }
}
