﻿:root {
  /* дизайн-система «Yuvam» (20.11.2026) */
  --bg: #EDE7E0;            /* ground */
  --surface: #F7F2EB;       /* paper */
  --surface-2: #E4DBCF;
  --ink: #4A3F39;
  --muted: #7A6E66;         /* ink-muted */
  --line: #D8CCBE;          /* hairline */
  --accent: #7B6B62;        /* brand-taupe */
  --accent-2: #5F5149;
  --brass: #B8975A;
  --cream: #F0E4D2;
  --accent-soft: rgba(123, 107, 98, .18);
  --radius: 6px;
  --shadow: 0 10px 30px rgba(74, 63, 57, .10);
  --header-h: 64px;
  --f-display: "Source Serif 4", Cambria, Georgia, serif;
  --f-sans: Montserrat, "Segoe UI", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body {
  margin: 0;
  font-family: var(--f-sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
h3 { font-size: 1.05rem; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: var(--radius); border: 1px solid transparent;
  font-weight: 600; text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s;
  text-align: center;
}
.btn--primary { background: var(--accent); color: var(--surface); }
.btn--primary:hover { background: var(--accent-2); }
.btn--ghost { border-color: var(--line); background: var(--surface); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--wa { background: var(--accent); color: var(--surface); border-radius: 999px; }
.btn--wa:hover { background: var(--ink); }
.btn--small { padding: 8px 14px; font-size: .88rem; }
.btn--link { background: none; border: 0; padding: 8px 4px; color: var(--muted); text-decoration: underline; }
.upload:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Header */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(237, 231, 224, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.logo__mark { width: 30px; height: 28px; flex: none; color: var(--ink); }

.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--ink); }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: var(--surface); }
.lang button { border: 0; background: none; font-size: .8rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); }
@media (max-width: 1080px) { .nav { gap: 16px; } .nav a { font-size: .88rem; } }
@media (max-width: 900px) {
  :root {
  /* дизайн-система «Yuvam» (20.11.2026) */
  --bg: #EDE7E0;            /* ground */
  --surface: #F7F2EB;       /* paper */
  --surface-2: #E4DBCF;
  --ink: #4A3F39;
  --muted: #7A6E66;         /* ink-muted */
  --line: #D8CCBE;          /* hairline */
  --accent: #7B6B62;        /* brand-taupe */
  --accent-2: #5F5149;
  --brass: #B8975A;
  --cream: #F0E4D2;
  --accent-soft: rgba(123, 107, 98, .18);
  --radius: 6px;
  --shadow: 0 10px 30px rgba(74, 63, 57, .10);
  --header-h: 64px;
  --f-display: "Source Serif 4", Cambria, Georgia, serif;
  --f-sans: Montserrat, "Segoe UI", Arial, sans-serif;
  color-scheme: light;
}

/* Hero */
.hero { padding: 56px 0 40px; }
.hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; margin: 0 0 14px; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__visual { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); background: var(--surface-2); aspect-ratio: 800 / 560; }
.hero__visual svg { width: 100%; height: 100%; }
@media (max-width: 900px) { .hero__inner { grid-template-columns: 1fr; gap: 28px; } .hero { padding-top: 32px; } }

/* Sections */
.section { padding: 72px 0; }
.section--alt { background: var(--surface-2); }
.section__lead { color: var(--muted); margin: -.2em 0 32px; font-size: 1.05rem; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.sub { font-size: .85rem; color: var(--muted); margin: 14px 0 8px; }
.hint { font-size: .82rem; color: var(--muted); margin: 8px 0 0; }

.steps { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.steps__n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; margin-bottom: 14px; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Configurator layout */
.cfg {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  grid-template-areas: "preview options" "preview summary";
  gap: 16px 32px;
  align-items: start;
}
.cfg__preview { grid-area: preview; position: sticky; top: calc(var(--sticky-top, var(--header-h)) + 16px); display: flex; flex-direction: column; gap: 14px; }
.cfg__options { grid-area: options; display: flex; flex-direction: column; gap: 14px; }
.summary { grid-area: summary; }

.scene-wrap { position: relative; }
.scene { border-radius: 18px; overflow: hidden; background: #ddd; box-shadow: var(--shadow); aspect-ratio: 800 / 560; }
.scene svg { width: 100%; height: 100%; }
.badge {
  position: absolute; top: 12px; right: 12px; text-align: right;
  background: rgba(255, 255, 255, .93); backdrop-filter: blur(6px);
  border-radius: 12px; padding: 8px 14px; box-shadow: 0 4px 14px rgba(0, 0, 0, .12);
}
.badge small { display: block; font-size: .72rem; color: var(--muted); }
.badge strong { font-size: 1.2rem; }
.room h3 { margin: 0; }
.room__row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }

@media (max-width: 960px) {
  .cfg { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
  .cfg__preview { display: contents; }
  .scene-wrap { order: 0; position: sticky; top: var(--sticky-top, var(--header-h)); z-index: 5; margin: 0 -16px; }
  .scene-wrap { background: var(--surface-2); box-shadow: 0 6px 14px rgba(40, 30, 15, .12); }
  .scene { border-radius: 0; width: min(100%, calc(42vh * 800 / 560)); margin: 0 auto; box-shadow: none; }
  .cfg__options { order: 1; }
  .room { order: 2; }
  .summary { order: 3; }
  .badge { top: 8px; right: 8px; padding: 6px 10px; }
  .badge strong { font-size: 1.05rem; }
}

/* Options */
.opt { margin: 0; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.opt legend { float: left; width: 100%; display: flex; align-items: center; gap: 10px; font-weight: 600; margin-bottom: 12px; padding: 0; }
.opt legend + * { clear: both; }
.opt__n { width: 24px; height: 24px; border-radius: 50%; background: var(--surface-2); display: inline-grid; place-items: center; font-size: .78rem; font-weight: 700; }
.opt__value { margin: 10px 0 0; font-size: .9rem; color: var(--muted); }

.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line); background: var(--bg); border-radius: 999px;
  padding: 8px 14px; font-size: .9rem; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
}
.seg--lg .chip { padding: 11px 18px; font-weight: 600; }
.chip small { opacity: .7; }
.chip.is-on { border-color: var(--ink); background: var(--ink); color: #fff; }
.chip__dot { width: 14px; height: 14px; border-radius: 50%; background: var(--c); border: 1px solid rgba(0, 0, 0, .2); }

.models { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.model {
  border: 1.5px solid var(--line); background: var(--bg); border-radius: 12px; padding: 6px 6px 10px;
  cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; transition: border-color .15s, box-shadow .15s;
}
.model svg { width: 100%; height: auto; border-radius: 8px; margin-bottom: 4px; }
.model__name { font-weight: 600; font-size: .86rem; }
.model__price { font-size: .78rem; color: var(--muted); }
.model.is-on, .card.is-on { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px var(--accent-soft); }

.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  width: 40px; height: 40px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line); background: var(--c);
}
.swatch--wood { background: repeating-linear-gradient(100deg, var(--c) 0 5px, color-mix(in srgb, var(--c), #000 20%) 5px 7px); }
.swatch.is-on { box-shadow: 0 0 0 2px var(--accent); }
.swatches--sm .swatch { width: 32px; height: 32px; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.card {
  text-align: left; border: 1.5px solid var(--line); background: var(--bg); border-radius: 12px;
  padding: 10px 12px; cursor: pointer; display: flex; flex-direction: column; gap: 2px;
}
.card span { font-weight: 600; font-size: .9rem; }
.card small { color: var(--muted); font-size: .8rem; }

.range { margin-bottom: 14px; }
.range label { display: flex; justify-content: space-between; gap: 12px; font-size: .92rem; margin-bottom: 6px; }
.range output { font-weight: 600; }
input[type="range"] { width: 100%; accent-color: var(--accent); }

.checks { display: grid; gap: 8px; }
.check { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--bg); }
.check input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; flex: none; }
.check span { flex: 1; font-size: .92rem; }
.check small { color: var(--muted); white-space: nowrap; }
.check:has(input:checked) { border-color: var(--accent); background: #fff; }

/* Summary */
.summary h3 { font-size: 1.2rem; }
.lines { list-style: none; margin: 0 0 14px; padding: 0; }
.lines li { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.lines .k { color: var(--muted); font-size: .78rem; }
.lines .p { grid-column: 2; grid-row: 1 / 3; align-self: center; font-weight: 600; white-space: nowrap; }
.qty { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 12px; }
.stepper { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--bg); }
.stepper button { width: 40px; height: 40px; border: 0; background: none; font-size: 1.2rem; cursor: pointer; }
.stepper button:hover { background: var(--surface-2); }
.stepper input { width: 52px; text-align: center; border: 0; background: none; font-weight: 600; -moz-appearance: textfield; appearance: textfield; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 6px 0; }
.total { font-size: 1.9rem; letter-spacing: -.02em; }
.bulk { background: #F7F2EB; border: 1px solid #B8975A; color: #4A3F39; padding: 12px 14px; border-radius: 10px; font-size: .92rem; font-weight: 500; margin: 12px 0 0; }
.actions { display: grid; gap: 8px; margin-top: 16px; }
.actions .hint { margin: 0; text-align: center; }
.copied { min-height: 1.2em; color: #4F7A4A; }

/* Furniture */
.furn { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.fcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.fcard svg { width: 44px; height: 44px; color: var(--accent); }
.fcard h3 { margin: 6px 0 0; }
.fcard p { color: var(--muted); margin: 0 0 8px; flex: 1; }
@media (max-width: 960px) { .furn { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .furn { grid-template-columns: 1fr; } }

.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 28px; }
.why > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.why p { color: var(--muted); margin: 0; }
@media (max-width: 760px) { .why { grid-template-columns: 1fr; } }

.contacts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin: 0; }
.contacts > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.contacts dt { font-size: .8rem; color: var(--muted); margin-bottom: 4px; }
.contacts dd { margin: 0; font-weight: 600; }
.contacts .soon { color: var(--muted); font-weight: 500; }

/* --- v2 --- */
.logo__text { display: flex; flex-direction: column; line-height: 1.05; }
.logo__text b { letter-spacing: .12em; }
.logo__text small { font-size: .62rem; font-weight: 500; color: var(--muted); letter-spacing: .04em; }
.slogan { margin: 22px 0 0; font-style: italic; color: var(--accent-2); }
.section--tight { padding: 48px 0; }

.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; scroll-margin-top: calc(var(--sticky-top, var(--header-h)) + 24px); }
.tabs button { border: 0; background: none; padding: 11px 10px; border-radius: 999px; font-weight: 600; cursor: pointer; color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.stepbox { display: flex; flex-direction: column; gap: 14px; }

.dims-in { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dims-in--one { grid-template-columns: minmax(0, 200px) 1fr; align-items: end; }
.dims-in label, .field { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; color: var(--muted); }
.dims-in input, .field textarea, .custom input {
  border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 12px; background: var(--bg);
  font-size: 1.05rem; font-weight: 600; color: var(--ink); width: 100%;
}
.field textarea { font-size: .95rem; font-weight: 400; resize: vertical; }
.dims-in input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; }
.leaf { margin: 12px 0 0; font-size: .92rem; }
.dims-in .leaf { margin: 0 0 12px; }
.warn { color: #a3461b; font-weight: 500; }

.card em { font-style: normal; font-size: .78rem; color: var(--muted); line-height: 1.35; }
.cards--wide { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.vlink { margin-top: 12px; border: 0; background: none; padding: 4px 0; color: var(--accent-2); font-weight: 600; font-size: .9rem; cursor: pointer; text-align: left; }
.vlink:hover { text-decoration: underline; }

.startbox {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--ink); color: #fff; border-radius: var(--radius); padding: 18px 20px;
}
.startbox small { display: block; opacity: .75; font-size: .82rem; }
.startbox strong { font-size: 1.7rem; letter-spacing: -.02em; }

.sumhead { margin: 14px 0 0; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); }
.lead-time { margin: 12px 0 0; font-weight: 600; font-size: .92rem; }
.visit { margin: 10px 0 0; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); font-size: .9rem; }

.custom { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 32px; align-items: start; }
.custom__form { display: grid; grid-template-columns: 200px 1fr; gap: 20px; }
.custom__fields { display: flex; flex-direction: column; gap: 12px; }
.photo-drop {
  display: grid; place-items: center; aspect-ratio: 1 / 2; border: 2px dashed var(--line); border-radius: 12px;
  background: var(--bg); cursor: pointer; overflow: hidden; color: var(--muted); font-weight: 600; text-align: center; padding: 8px;
}
.photo-drop:hover, .photo-drop:focus-within { border-color: var(--accent); }
.photo-drop img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .custom { grid-template-columns: 1fr; gap: 0; } }
@media (max-width: 560px) { .custom__form { grid-template-columns: 1fr; } .photo-drop { aspect-ratio: 4 / 3; } }

.ent { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.ecard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.ecard svg { width: 100%; height: auto; }
.ecard__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.ecard h3 { margin: 0; }
.ecard p { margin: 0 0 6px; color: var(--muted); }
@media (max-width: 960px) { .ent { grid-template-columns: 1fr 1fr; } }

.video { border: 0; border-radius: 16px; padding: 0; width: min(760px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); }
.video::backdrop { background: rgba(20, 18, 15, .6); }
.video__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.video__head h3 { margin: 0; }
.video__close { border: 0; background: var(--surface-2); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; flex: none; }
.video__body iframe, .video__body video { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; background: #000; }
.video__soon { padding: 40px 20px; text-align: center; color: var(--muted); margin: 0; }

@media (max-width: 960px) {
  .tabs { scroll-margin-top: calc(var(--sticky-top, var(--header-h)) + min(70vw, 42vh) + 16px); }
}

/* --- v3 --- */
.badges { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.badges li {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); font-size: .86rem; font-weight: 500;
}
.badges li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: #4F7A4A url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; flex: none; }

.sub--first { margin-top: 0; }
.swatches--priced { gap: 6px 10px; }
.sw-l { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; }
.sw-l small { font-size: .72rem; color: var(--muted); font-weight: 600; }

.model--wa { text-decoration: none; justify-content: center; text-align: center; border-style: dashed; color: #4F7A4A; background: #F7F2EB; padding: 14px 8px; }
.model--wa:hover { border-color: #7B6B62; }
.model--wa .wa-ico { width: 40px; height: 40px; margin-bottom: 8px; }
.model--wa .model__name { color: var(--ink); }
.model--wa .model__price { color: #4F7A4A; }
.model__meta { font-size: .72rem; color: var(--muted); text-align: center; line-height: 1.3; }
.models--ent .model img { width: 100%; aspect-ratio: 100 / 180; object-fit: cover; border-radius: 8px; margin-bottom: 4px; }

.tabs--ent { max-width: 560px; margin-bottom: 20px; }
.viewtoggle { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; }
.viewtoggle .chip { background: rgba(255, 255, 255, .92); box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.viewtoggle .chip.is-on { background: var(--ink); }
.infonote { margin: 0; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.photo-scene { position: relative; width: 100%; height: 100%; background: linear-gradient(#eeebe4, #e2ddd3); }
.photo-scene img { position: absolute; inset: 4% 0; width: 100%; height: 92%; object-fit: contain; transition: transform .3s; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .18)); }
@media (max-width: 960px) {
  .cfg--ent .infonote { order: 2; }
  .viewtoggle { top: 8px; left: 8px; }
}

/* --- v4: страницы --- */
.section--first { padding-top: 36px; }
.center { text-align: center; margin: 28px 0 0; }
.btn--lg { padding: 15px 26px; font-size: 1.02rem; }
.dims-gap { margin-top: 12px; }
.check + .check, .dims-in + .check, .dims-gap + .check { margin-top: 10px; }

/* Главная: слева фото магазина, справа калькулятор */
.home { padding: 36px 0 24px; }
.home__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; align-items: stretch; }
.home__store h1 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.home__store .lead { margin: 0 0 20px; }
.store { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 120px; gap: 10px; }
.sp { position: relative; margin: 0; border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.sp--main { grid-column: 1 / -1; grid-row: span 2; }
.sp img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sp figcaption { position: absolute; left: 10px; bottom: 10px; background: rgba(255, 255, 255, .92); border-radius: 8px; padding: 4px 10px; font-size: .8rem; font-weight: 600; }
.sp--empty { display: grid; place-items: center; border: 2px dashed var(--line); background: var(--surface); color: var(--muted); }
.sp--empty svg { width: 36px; height: 36px; opacity: .6; }
.sp--empty figcaption { background: none; position: static; text-align: center; padding: 0; margin-top: -28px; }
.sp--main.sp--empty figcaption { margin-top: -60px; }
.sp--empty small { display: block; font-weight: 500; font-size: .74rem; opacity: .8; }

.calc-card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line);
  border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); cursor: pointer; transition: transform .2s, box-shadow .2s;
}
.calc-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(40, 30, 15, .16); }
.calc-card__scene { aspect-ratio: 800 / 460; overflow: hidden; background: var(--surface-2); }
.calc-card__scene svg { width: 100%; height: 100%; }
.calc-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.calc-card__body .eyebrow { margin: 0; }
.calc-card__body h2 { font-size: 1.5rem; margin: 2px 0 0; }
.calc-card__hint { margin: 0; color: var(--muted); }
.calc-card__price { margin: 10px 0 14px; }
.calc-card__price small { display: block; color: var(--muted); font-size: .82rem; }
.calc-card__price strong { font-size: 2.2rem; letter-spacing: -.02em; }
.calc-card .btn { align-self: stretch; margin-top: auto; }
.home .badges { margin-top: 20px; }
@media (max-width: 900px) {
  .home__grid { grid-template-columns: 1fr; }
  .calc-card { order: -1; }
  .store { grid-auto-rows: 90px; }
}

/* Калькулятор на весь экран */
body.no-scroll { overflow: hidden; }
.calc-full { position: fixed; inset: 0; z-index: 100; background: var(--surface-2); overflow-y: auto; --sticky-top: 60px; animation: calcIn .25s ease; }
@keyframes calcIn { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
.calc-full__bar { position: sticky; top: 0; z-index: 20; background: var(--ink); color: #fff; }
.calc-full__barin { display: flex; align-items: center; gap: 14px; height: 60px; }
.calc-full__barin strong { font-size: 1.02rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.calc-full__price { margin-left: auto; font-weight: 700; font-size: 1.1rem; white-space: nowrap; }
.calc-full__close { width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .14); color: #fff; font-size: 1.1rem; cursor: pointer; flex: none; }
.calc-full__close:hover { background: rgba(255, 255, 255, .26); }
.calc-full__body { padding-top: 20px; padding-bottom: 60px; }
@media (max-width: 960px) { .calc-full .scene-wrap { margin: 0 -16px; } }

/* Перегородки, работы, пустые разделы */
.models--wide { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 40px 24px; text-align: center; display: grid; justify-items: center; gap: 16px; }
.empty p { margin: 0; color: var(--muted); max-width: 32em; }
.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 20px; }
.work { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.work img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.work figcaption { padding: 10px 14px; font-weight: 600; font-size: .92rem; }
.work figcaption small { display: block; color: var(--muted); font-weight: 500; }
.work--empty { aspect-ratio: 4 / 3; display: grid; place-items: center; align-content: center; gap: 6px; border-style: dashed; color: var(--muted); }
.work--empty svg { width: 36px; height: 36px; opacity: .5; }
.work--empty figcaption { font-weight: 500; font-size: .82rem; text-align: center; padding: 0 16px; }

/* Каталог: фильтр, поиск, «показать ещё», ручки с фото */
.catalog-bar { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.catalog-bar .seg { gap: 6px; }
.catalog-bar .chip { padding: 6px 12px; font-size: .84rem; }
.search {
  width: 100%; border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 16px 10px 38px; background: var(--bg)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236d675e' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E") 13px center / 16px no-repeat;
  font-size: .95rem;
}
.search:focus { outline: none; border-color: var(--accent); background-color: #fff; }
.models .model img { width: 100%; aspect-ratio: 100 / 180; height: auto; object-fit: cover; border-radius: 8px; margin-bottom: 4px; background: #ebe5da; }
.more { display: block; width: 100%; margin-top: 10px; padding: 11px; border: 1.5px dashed var(--line); border-radius: 12px; background: none; font-weight: 600; color: var(--accent-2); cursor: pointer; }
.more:hover { border-color: var(--accent); background: #fff; }
.hcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.hcard { border: 1.5px solid var(--line); background: var(--bg); border-radius: 12px; padding: 6px 6px 8px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.hcard svg, .hcard img { width: 100%; aspect-ratio: 1; height: auto; object-fit: cover; border-radius: 8px; margin-bottom: 4px; display: block; }
.hcard__name { font-weight: 600; font-size: .84rem; text-align: center; }
.hcard small { color: var(--muted); font-size: .76rem; }
.hcard.is-on { border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px var(--accent-soft); }
.usage { margin-top: 4px; font-size: .68rem; font-weight: 600; line-height: 1.25; padding: 3px 6px; border-radius: 6px; text-align: center; }
.usage--building { background: #eef1f5; color: #44546a; }
.usage--both { background: #eaf6ee; color: #4F7A4A; }

/* Подбор готовой входной двери */
.picker { margin-bottom: 18px; display: grid; gap: 4px; }
.picker h3 { margin: 0; }
.picker__row .sub { margin-top: 10px; }
.picker__row .hint { margin-top: 6px; }
.picker__found { margin: 10px 0 0; font-weight: 600; color: var(--accent-2); }
.empty + .cfg, #rEmpty { margin-bottom: 18px; }

.photo-scene:has(.crown-ov) img { inset: 15% 0 3%; height: 82%; }
.crown-ov { position: absolute; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .25)); pointer-events: none; }
.photo-tag { position: absolute; left: 50%; top: 3%; transform: translateX(-50%); background: rgba(31, 29, 26, .85); color: #fff; font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; }

/* Характеристики двери */
.specs-panel h3 { margin: 0 0 10px; font-size: 1.05rem; }
.specs { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.specs > div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .9rem; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; font-weight: 600; text-align: right; }
@media (max-width: 560px) { .specs { grid-template-columns: 1fr; } }
@media (max-width: 960px) { .specs-panel { order: 2; } }

/* Подвал */
.footer { background: var(--ink); color: rgba(255, 255, 255, .8); padding: 36px 0 20px; font-size: .92rem; }
.footer a { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1fr 2fr; gap: 28px; }
.logo--footer .logo__mark { width: 30px; height: 28px; flex: none; color: var(--ink); }
.logo--footer .logo__text small { color: rgba(255, 255, 255, .6); }
.footer__slogan { margin: 12px 0 0; font-style: italic; color: rgba(255, 255, 255, .6); }
.footer__contacts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px 24px; margin: 0; }
.footer__contacts dt { font-size: .76rem; color: rgba(255, 255, 255, .55); margin-bottom: 2px; }
.footer__contacts dd { margin: 0; font-weight: 500; }
.footer__bottom { margin-top: 28px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: .82rem; color: rgba(255, 255, 255, .5); }
@media (max-width: 700px) { .footer__grid { grid-template-columns: 1fr; } }



/* ===== Yuvam: шрифты и логотип ===== */
h1, h2, h3, .total, .badge strong { font-family: var(--f-display); letter-spacing: 0; }
h1 { font-size: clamp(2.1rem, 8vw, 3rem); font-weight: 700; }
h2 { font-weight: 700; }
.eyebrow, .usage, .chip small { font-family: var(--f-sans); letter-spacing: .16em; }
.logo { gap: 10px; font-weight: 400; }
.logo__text b { font-family: var(--f-display); font-size: 1.25rem; font-weight: 700; letter-spacing: .28em; display: block; line-height: 1.05; }
.logo__text small { font-family: var(--f-sans); display: block; font-size: .56rem; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.logo--footer .logo__mark { color: var(--cream); }
.logo--footer .logo__text small { color: var(--brass); }
.footer { background: var(--accent); color: var(--surface); }
.footer__slogan { font-family: var(--f-display); font-style: normal; color: var(--cream); font-size: 1.1rem; }
.footer a, .footer__contacts dd { color: var(--surface); }
.section h2::after, h1::after { content: ""; display: block; width: 56px; height: 2px; background: var(--brass); margin-top: 12px; }
.panel, .model, .card { border-radius: var(--radius); }
.photo-tag { background: rgba(74, 63, 57, .85); }


/* ===== Входные: максимум простоты на телефоне ===== */
#rMain .visit, #rMain .lead-time { display: none; }
#rList .model__meta, #rList .usage { display: none; }
.picker { margin-bottom: 10px; padding: 14px; }
.section--first { padding-top: 28px; }
@media (max-width: 960px) {
  /* большая дверь сразу под заголовком, без «прилипания» */
  #rMain .scene-wrap { position: relative; top: auto; margin: 0 -16px; }
  #rMain .scene { width: 100%; aspect-ratio: 3 / 4; max-height: 78vh; }
  /* модели — лента, листается пальцем */
  #rList.models { display: flex; overflow-x: auto; gap: 10px; padding: 2px 16px 10px; margin: 0 -16px; scroll-snap-type: x proximity; scrollbar-width: none; }
  #rList.models::-webkit-scrollbar { display: none; }
  #rList .model { flex: 0 0 96px; scroll-snap-align: start; }
  #rMain .opt { margin: 0; }
}

.seg--house { margin-top: 8px; }
.picker .sub { margin-top: 0; }

/* цена под дверью, а не поверх фото */
#rMain .badge { position: static; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0; border-radius: 0; box-shadow: none; background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 16px; }
#rMain .badge small { font-size: .8rem; }
#rMain .badge strong { font-size: 1.6rem; }
@media (max-width: 960px) { #rMain .badge { margin: 0; padding: 14px 32px 14px 20px; } }


/* ===== кнопка WhatsApp внизу экрана ===== */
.wa-fab { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; padding: 14px 20px; border-radius: 999px; background: var(--accent); color: var(--surface); font-weight: 600; text-decoration: none; box-shadow: 0 8px 24px rgba(74, 63, 57, .28); transition: opacity .2s, transform .2s; }
.wa-fab:hover { background: var(--ink); }
.wa-fab.is-hidden { opacity: 0; pointer-events: none; transform: translateY(12px); }
.wa-fab .wa-ico { width: 22px; height: 22px; }
body { padding-bottom: 84px; }

/* ===== частые вопросы ===== */
.faq { display: grid; gap: 10px; max-width: 760px; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 16px; }
.faq__item summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 600; display: flex; justify-content: space-between; gap: 12px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; color: var(--brass); font-size: 1.4rem; line-height: 1; }
.faq__item[open] summary::after { content: "–"; }
.faq__item p { margin: 0 0 16px; color: var(--muted); }

/* ===== Otaq qapıları: сборка двери ===== */
.assemble { position: relative; max-width: 360px; margin: 8px auto 20px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.assemble svg { width: 100%; height: auto; }
.a-panels rect { stroke: #7B6B62; stroke-dasharray: 520; stroke-dashoffset: 520; animation: a-draw 8s infinite; }
.a-panels .p2 { animation-delay: .5s; }
.a-handle { fill: #B8975A; opacity: 0; animation: a-handle 8s infinite; }
.a-leaf { animation: a-color 8s infinite; }
.assemble__swatches { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 10px; }
.assemble__swatches i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #F7F2EB; box-shadow: 0 0 0 1px #D8CCBE; }
@keyframes a-draw { 0% { stroke-dashoffset: 520; } 25%, 92% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 520; } }
@keyframes a-handle { 0%, 30% { opacity: 0; } 38%, 92% { opacity: 1; } 100% { opacity: 0; } }
@keyframes a-color { 0%, 40% { fill: #F4F3EE; } 50%, 62% { fill: #D3D4D1; } 72%, 82% { fill: #929190; } 90%, 100% { fill: #C6B8AB; } }
@media (prefers-reduced-motion: reduce) { .a-panels rect { animation: none; stroke-dashoffset: 0; } .a-handle { animation: none; opacity: 1; } .a-leaf { animation: none; } }
.int-soon { margin: 0 0 16px; text-align: center; color: var(--muted); font-size: .9rem; }
.int-soon span { letter-spacing: .16em; color: var(--brass); font-weight: 600; }
.int-soon b { color: var(--ink); }
.int-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.int-list li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }

/* ===== шапка на телефоне: логотип + язык, ниже два раздела на всю ширину ===== */
@media (max-width: 700px) {
  :root { --header-h: 108px; }
  .header__inner { flex-wrap: wrap; height: auto; padding-top: 8px; gap: 0 12px; }
  .lang { margin-left: auto; }
  .nav { order: 3; width: 100%; margin: 8px -16px 0; width: calc(100% + 32px); gap: 0; border-top: 1px solid var(--line); }
  .nav a { flex: 1; text-align: center; padding: 11px 4px; font-size: .95rem; white-space: nowrap; box-shadow: none; }
  .nav a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--brass); }
}
