/* style.css — UKO, корпусная мебель. Вид по 03-design.md: «Громко и плоско» — плиты, плоские поля встык, прямые углы, одна гарнитура Golos Text.
   Подключается после tokens.css и base.css. Без теней, градиентов и тонких линий; плита = лицевая сторона + торец на тон темнее. */

:root { --field-1: #B01019; --field-1-muted: #FFE3E5; }
body { letter-spacing: -0.01em; font-weight: var(--w-text); line-height: 1.35; }
h1, h2, h3, h4 { font-weight: var(--w-display); }
.display { font-weight: var(--w-display); letter-spacing: var(--track-display); line-height: 0.88; text-wrap: balance; }
.head { font-weight: var(--w-display); letter-spacing: -0.035em; line-height: 0.95; }
.lead { letter-spacing: -0.01em; }
.btn { font-weight: var(--w-strong); letter-spacing: -0.005em; }
.btn { text-align: center; }
.btn--slate { background: var(--accent); color: var(--accent-ink); }
.btn--tone { background: var(--surface); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .btn--tone:hover { background: #fff; color: var(--ink); } .btn--ink:hover { background: var(--accent); color: #fff; } }
.nums { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.btn:focus-visible, a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.field-1 a:focus-visible, .field-1 button:focus-visible, .field-4 a:focus-visible, .field-4 button:focus-visible, .field-2 a:focus-visible, .field-2 summary:focus-visible, .field-2 button:focus-visible { outline-color: #fff; }

/* ---------- 1. первый экран ---------- */
.hero { height: 100svh; min-height: 660px; display: grid; grid-template-rows: 56% 44%; }
.hero__up { background: var(--field-1); color: var(--field-1-ink); padding: 0 var(--margin); display: flex; flex-direction: column; min-width: 0; }
.top { position: relative; z-index: 5; display: flex; align-items: center; gap: 1.75rem; min-height: var(--header-h); padding: 0; background: none; }
.top__mark { display: inline-flex; align-items: center; gap: 10px; min-height: 2.75rem; margin-right: auto; font-weight: var(--w-display); font-size: var(--step-lead); letter-spacing: -0.03em; text-decoration: none; color: #fff; }
.top__mark img { width: 36px; height: 36px; background: none; }
.top__nav { display: flex; gap: 1.6rem; font-weight: var(--w-strong); }
.top__nav a { color: #fff; text-decoration: none; padding-block: 0.8rem; }
.top__act { min-height: 3rem; }
.hero .display { margin-top: auto; font-size: var(--step-display); }
@media (max-width: 22.5em) { .hero .display { font-size: 8.3vw; } }
.hero .lead { max-width: 44ch; margin: 1.1rem 0 1.6rem; }
.hero__down { position: relative; padding: 1.75rem var(--margin) 0; display: flex; justify-content: space-between; align-items: flex-start; overflow: hidden; background: var(--bg); }
.acts { display: flex; flex-direction: column; align-items: flex-start; gap: 0.9rem; position: relative; z-index: 2; }
.acts .tel { font-weight: var(--w-strong); font-size: var(--step-lead); text-underline-offset: 0.18em; display: inline-flex; align-items: center; min-height: 2.75rem; }
.boards { display: block; height: auto; }
.boards--hero { position: absolute; right: var(--margin); bottom: -4%; width: min(56vw, 52rem); }
@media (max-width: 47.99em) {
  :root { --header-h: 3.75rem; }
  .hero { height: auto; min-height: 0; grid-template-rows: auto auto; }
  .hero__up { padding-bottom: 0.25rem; }
  .top__nav { display: none; }
  .top__act { min-height: 2.75rem; padding: 0 0.9rem; }
  .hero .display { margin-top: 1.75rem; }
  .hero__down { flex-direction: column; gap: 1.1rem; padding-bottom: 0; }
  .acts, .acts .btn { width: 100%; }
  .boards--hero { position: relative; right: auto; bottom: auto; width: 100%; margin-top: 0.5rem; }
}
@media (min-width: 48em) and (max-width: 62em) { .top__nav { display: none; } }

/* ---------- 2. соберите корпус ---------- */
.build { background: var(--field-4); color: var(--field-4-ink); padding: var(--section) var(--margin) var(--section); position: relative; --muted: var(--field-4-muted); }
.build__head { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); align-items: end; margin-bottom: clamp(1.5rem, 4vw, 3rem); }
.build__head .lead { max-width: 40ch; }
.build__nojs { display: none; max-width: 56ch; margin-bottom: 1.5rem; }
.build__nojs a { font-weight: var(--w-strong); }
html:not(.js):not(.shot) .build__nojs { display: block; }
html:not(.js):not(.shot) .build__ctl, html:not(.js):not(.shot) .build__bar { display: none; }
html:not(.js):not(.shot) .build__grid { grid-template-columns: minmax(0, 1fr); }
.build__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(1.5rem, 3vw, 3rem); align-items: start; }
.build__ctl { display: grid; gap: 1.5rem; }
.ctl { border: 0; padding: 0; margin: 0; min-width: 0; }
.ctl legend { padding: 0; margin-bottom: 0.55rem; font-weight: var(--w-strong); font-size: var(--step-body); }
.tabs4, .tabs3 { display: grid; gap: 6px; }
.tabs4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tabs3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tabb { min-height: 3.25rem; padding: 0.4rem 0.6rem; background: #2D4656; color: #fff; font-weight: var(--w-strong); font-size: var(--step-body); line-height: 1.1; text-align: center; transition: background-color var(--t-hover) ease, color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.tabb[aria-pressed="true"] { background: var(--bg); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .tabb[aria-pressed="false"]:hover { background: #243846; } }
.dim { display: grid; grid-template-columns: 1fr auto; align-items: baseline; margin-bottom: 0.15rem; }
.dim__l { font-size: var(--step-body); }
.dim__v { font-size: var(--step-lead); font-weight: var(--w-strong); }
.dim .range { grid-column: 1 / -1; color: #fff; --track: #fff; }
.dim .range::-webkit-slider-runnable-track { height: 8px; border-radius: 0; background: #fff; }
.dim .range::-moz-range-track { height: 8px; border-radius: 0; background: #fff; }
.dim .range::-webkit-slider-thumb { width: 28px; height: 28px; margin-top: -10px; border-radius: 0; background: var(--field-3); }
.dim .range::-moz-range-thumb { width: 28px; height: 28px; border-radius: 0; background: var(--field-3); border: 0; }
.steps { display: grid; gap: 0.5rem; }
.step { display: grid; grid-template-columns: 1fr 3rem 3rem 3rem; align-items: center; gap: 6px; }
.step__l { font-size: var(--step-body); }
.step__b { width: 3rem; height: 3rem; background: #2D4656; color: #fff; font-size: 1.5rem; font-weight: var(--w-strong); line-height: 1; transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.step__b:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .step__b:hover { background: #243846; } }
.step__v { text-align: center; font-size: var(--step-lead); font-weight: var(--w-strong); }
.decor { display: flex; flex-wrap: wrap; gap: 6px; }
.sw { width: 3.5rem; height: 3.5rem; padding: 0; background: #2D4656; display: flex; align-items: center; justify-content: center; transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
.sw span { display: block; width: 2.5rem; height: 2.5rem; }
.sw[aria-pressed="true"] { background: var(--bg); }
.sw:active { transform: scale(0.94); }
.sw--white span { background: var(--decor-white); } .sw--walnut span { background: var(--decor-walnut); } .sw--graphite span { background: var(--decor-graphite); } .sw--stone span { background: var(--decor-stone); } .sw--beige span { background: var(--decor-beige); }
.sw--oak span { background-color: var(--decor-oak); background-image: url(img/wood-samples.webp); background-size: 400% 400%; background-position: 33.4% 66.7%; }
.decor__name { margin-top: 0.5rem; font-weight: var(--w-strong); }
.build__hint { color: #fff; }
.samples { margin: 0.5rem 0 0; }
.samples img { width: 100%; height: auto; aspect-ratio: 5 / 2; object-fit: cover; background: none; }
.samples figcaption { margin-top: 0.3rem; color: #fff; }
.build__note { min-height: 1.4em; font-weight: var(--w-strong); color: #fff; }
.build__out { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; min-width: 0; }
.build__out > * { min-width: 0; }
.build__fig { margin: 0; background: #2D4656; padding: 1rem; position: relative; }
.build__fig svg { width: 100%; height: auto; max-height: 34rem; }
.cut__t { font-size: var(--step-lead); font-weight: var(--w-display); letter-spacing: -0.02em; margin-bottom: 0.2rem; }
.cut__cap { font-weight: var(--w-strong); margin-bottom: 0.6rem; }
.build__cut svg { width: 100%; height: auto; display: block; background: #2D4656; }
.cut__leg { margin-top: 0.5rem; }
.build__spec { background: var(--bg); color: var(--ink); padding: 1.25rem 1.5rem 1.5rem; --muted: #5A433E; }
.spec { width: 100%; border-collapse: collapse; font-size: var(--step-body); table-layout: fixed; }
.spec th:nth-child(1) { width: 48%; } .spec th:nth-child(2) { width: 18%; } .spec th:nth-child(3) { width: 34%; }
.spec th, .spec td { text-align: left; padding: 0.4rem 0.5rem 0.4rem 0; font-weight: var(--w-text); vertical-align: baseline; }
.spec thead th { font-weight: var(--w-strong); font-size: var(--step-small); color: var(--muted); }
.spec tbody th { font-weight: var(--w-strong); }
.spec td { font-variant-numeric: tabular-nums; }
.spec th, .spec td { overflow-wrap: anywhere; }
.spec__sum { margin-top: 0.8rem; font-size: var(--step-lead); font-weight: var(--w-display); letter-spacing: -0.02em; }
.build__fine { max-width: 52ch; }
.build__act { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.build__act .btn { flex: 1 1 14rem; }
.build__bar { display: none; }
@media (max-width: 62em) {
  .build__head, .build__grid { grid-template-columns: minmax(0, 1fr); }
  .build__fig { position: sticky; top: 0; z-index: 4; padding: 0.5rem; }
  .build__fig svg { max-height: 36svh; }
}
@media (max-width: 47.99em) {
  .build { padding-bottom: 0; }
  .build__out { padding-bottom: 0.5rem; }
  .step { grid-template-columns: minmax(0, 1fr) 3rem 2.5rem 3rem; }
  .build__spec { padding: 1rem; }
  .spec { font-size: var(--step-small); }
  .build__bar { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; position: sticky; bottom: 0; z-index: 8; margin: 1.5rem calc(var(--margin) * -1) 0; padding: 0.55rem var(--margin); background: var(--ink); color: #fff; min-height: 4rem; transition: transform 240ms var(--ease-out), opacity 200ms ease; }
  .build__bar p { font-weight: var(--w-strong); font-size: var(--step-body); line-height: 1.15; }
  .build__bar .btn { background: #fff; color: var(--ink); min-height: 3rem; padding: 0 1rem; }
  .build:not(.is-active) .build__bar, .build.is-spec .build__bar { transform: translateY(120%); opacity: 0; pointer-events: none; }
  .menu-open .build__bar { display: none; }
}

/* ---------- 3. что мы делаем ---------- */
.make { background: var(--bg); padding: var(--section) var(--margin); }
.make__head { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gutter); align-items: end; margin-bottom: clamp(1.5rem, 4vw, 3rem); }
.make__head .head { max-width: none; }
.make__head .lead { max-width: 38ch; }
.mk { list-style: none; padding: 0; margin: 0; display: grid; }
.mk__r { background: var(--bg); transition: background-color 200ms ease; }
.mkd summary { display: flex; align-items: center; gap: 0.5em; min-height: 3.5rem; list-style: none; cursor: pointer; padding: 0.15em 0; }
.mkd summary::-webkit-details-marker { display: none; }
.mk__n { font-size: var(--step-display); font-weight: var(--w-display); letter-spacing: var(--track-display); line-height: 0.95; }
.mk__shape { flex: none; width: 0.5em; height: 0.5em; background: var(--c); font-size: var(--step-display); }
.mk__shape--ci { border-radius: 50%; }
.mk__shape--tr { clip-path: polygon(50% 0, 100% 100%, 0 100%); }
@media (hover: hover) and (pointer: fine) { .mk__r:hover, .mk__r:has(details[open]) { background: var(--c); } .mk__r:hover { color: var(--field-3-ink); } }
.mk__r:has(details[open]) { background: var(--c); }
.mk__r:nth-child(3n+2):hover, .mk__r:nth-child(3n+2):has(details[open]) { color: #fff; }
.mk__r:nth-child(3n):hover, .mk__r:nth-child(3n):has(details[open]) { color: #fff; }
.mkd[open] .mk__shape { background: currentColor; }
.mkd:not([open]) > .mk__b { display: none; }
.mk__b { display: grid; grid-template-columns: minmax(0, 24rem) minmax(0, 1fr); gap: 1.5rem; align-items: center; padding: 0.5rem 0 1.5rem; }
.mk__fig .cab { width: 100%; height: auto; max-height: 15rem; }
.mk__t { display: grid; gap: 1rem; justify-items: start; max-width: 40ch; }
.mk__t .btn { background: var(--ink); color: #fff; }
@media (max-width: 62em) { .make__head { grid-template-columns: 1fr; } .mk__n, .mk__shape { font-size: var(--step-head); } .mk__b { grid-template-columns: 1fr; } .mk__fig .cab { max-height: 12rem; } }

/* ---------- 4. как работаем ---------- */
.how { background: var(--field-2); color: var(--field-2-ink); padding: var(--section) var(--margin); --muted: var(--field-2-muted); }
.how .head { margin-bottom: clamp(1.5rem, 4vw, 3rem); max-width: 14ch; }
.how__list { display: grid; gap: 6px; }
.step-d { background: var(--field-2); }
.step-d:nth-child(even) { background: #7E1F1E; }
.step-d summary { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gutter); align-items: center; min-height: 5.5rem; padding: 0.8rem 1.25rem; cursor: pointer; list-style: none; }
.step-d summary::-webkit-details-marker { display: none; }
.step-d__t { font-size: var(--step-head); font-weight: var(--w-display); letter-spacing: -0.035em; line-height: 1; }
.step-d__s { font-size: var(--step-body); color: #fff; }
.step-d[open] { background: #7E1F1E; }
.step-d:not([open]) > .step-d__b { display: none; }
.step-d__b { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); gap: 1.5rem var(--gutter); align-items: start; padding: 0 1.25rem 1.5rem; min-height: 14rem; }
.step-d__b p { max-width: 44ch; font-size: var(--step-lead); line-height: 1.3; }
.step-d__b img { width: 100%; height: auto; max-height: 22rem; object-fit: cover; background: none; }
.step-d__art { width: 100%; max-width: 20rem; height: auto; justify-self: start; }
.how__cta { margin-top: 1.75rem; }
@media (hover: hover) and (pointer: fine) { .step-d:not([open]) summary:hover { background: #7E1F1E; } }
@media (max-width: 47.99em) {
  .step-d summary { grid-template-columns: 1fr; gap: 0.3rem; min-height: 4.5rem; }
  .step-d__b { grid-template-columns: 1fr; }
  .step-d__b img { aspect-ratio: 4 / 3; }
  .how__cta { width: 100%; }
}

/* ---------- 5. для дома и для бизнеса ---------- */
.hb { background: var(--bg); }
.hb__halves { display: grid; grid-template-columns: 1fr 1fr; }
.hb__h { display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; padding: var(--section) var(--margin); min-height: 90svh; }
.hb__h--home { background: var(--field-3); color: var(--field-3-ink); --muted: var(--field-3-muted); }
.hb__h--biz { background: var(--field-4); color: var(--field-4-ink); }
.hb__h .display { font-size: var(--step-display); margin-bottom: auto; }
.hb__say { max-width: 34ch; font-size: var(--step-lead); line-height: 1.3; }
.hb__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.2rem; font-size: var(--step-body); font-weight: var(--w-strong); }
.hb__strip { overflow: hidden; aspect-ratio: 16 / 7; }
.hb__strip img { width: 100%; height: 118%; object-fit: cover; background: none; }
@media (max-width: 47.99em) { .hb__halves { grid-template-columns: minmax(0, 1fr); } .hb__h { min-height: 70svh; } .hb__h .btn { width: 100%; white-space: normal; line-height: 1.15; padding-block: 0.7rem; text-align: center; } .hb__strip { aspect-ratio: 4 / 3; } }

/* ---------- 6. выезд и консультация ---------- */
.visit { background: var(--bg); padding: var(--section) var(--margin); }
.visit .head { margin-bottom: clamp(1.5rem, 4vw, 3rem); max-width: 14ch; }
.visit__rows { display: grid; gap: 0.6rem; }
.vrow { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--gutter); align-items: center; padding: 0.4rem 0; text-decoration: none; color: var(--ink); }
.vrow .display, .vrow p.display { font-size: var(--step-display); margin: 0; max-width: none; }
.vrow__s { font-size: var(--step-lead); line-height: 1.25; max-width: 30ch; }
.vrow--btn { background: var(--accent); color: #fff; padding: 0.7rem 1rem; transition: background-color var(--t-hover) ease, transform var(--t-press) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .vrow--btn:hover { background: var(--ink); } }
.vrow--btn:focus-visible { outline-color: var(--ink); }
.visit__fine { margin-top: 1.5rem; max-width: 52ch; }
@media (max-width: 62em) { .vrow { grid-template-columns: 1fr; gap: 0.3rem; } .vrow .display, .vrow p.display { font-size: var(--step-head); } }

/* ---------- 7. контакты ---------- */
.contacts { background: var(--bg); padding: 0 0 var(--section); }
.ct__photos { display: grid; grid-template-columns: 2fr 1fr; height: 40svh; min-height: 14rem; margin-bottom: var(--section); }
.ct__p { overflow: hidden; }
.ct__p img { width: 100%; height: 100%; object-fit: cover; background: none; }
.coupon { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: calc(var(--gutter) * 3); margin: 0 clamp(var(--margin), 8vw, 8rem); padding: clamp(2rem, 4vw, 3.5rem) clamp(1.5rem, 4vw, 3.5rem); background: var(--field-3); color: var(--field-3-ink); --muted: var(--field-3-muted); }
.coupon::before, .coupon::after { content: ""; position: absolute; left: 52%; width: 56px; height: 56px; margin-left: -28px; border-radius: 50%; background: var(--bg); }
.coupon::before { top: -28px; } .coupon::after { bottom: -28px; }
.coupon__l { display: grid; gap: 1rem; align-content: start; }
.coupon__l .head { max-width: 10ch; }
.coupon__r { list-style: none; padding: 0 0 0 clamp(1.5rem, 3vw, 3rem); margin: 0; display: grid; gap: 0.7rem; align-content: start; border-left: 6px dotted var(--bg); }
.coupon__tel { font-size: var(--step-lead); font-weight: var(--w-display); letter-spacing: -0.02em; text-decoration: none; display: inline-flex; align-items: center; min-height: 2.75rem; }
.coupon__a { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: var(--w-strong); }
.coupon__f { font-size: var(--step-small); }
@media (max-width: 62em) {
  .coupon { grid-template-columns: 1fr; gap: 1.5rem; margin-inline: var(--margin); }
  .coupon::before, .coupon::after { left: 50%; }
  .coupon__r { padding: 1.5rem 0 0; border-left: 0; border-top: 6px dotted var(--bg); }
  .ct__photos { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 47.99em) { .coupon__r .btn { width: 100%; } }

/* ---------- подвал ---------- */
.foot { background: var(--bg); }
.foot__red { background: var(--field-1); color: #fff; padding: calc(var(--section) / 2) var(--margin) 0; overflow: hidden; display: grid; gap: 1.5rem; }
.foot__marks { display: flex; justify-content: flex-end; }
.foot__marks img { width: 48px; height: 48px; background: none; }
.boards--foot { width: 100%; max-height: 34svh; margin-bottom: -3%; }
.foot__info { padding: 1.5rem var(--margin) 2rem; display: grid; gap: 0.9rem; }
.foot__facts { display: flex; flex-wrap: wrap; gap: 0.2rem 1.5rem; align-items: center; font-weight: var(--w-strong); max-width: none; }
.foot__facts a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; }
.foot__info .small { color: var(--ink); max-width: 62ch; font-size: var(--step-body); }
.to-top { padding: 0 0.9rem; background: var(--surface); color: var(--ink); }
@media (max-width: 47.99em) { .boards--foot { max-height: 22svh; } }

/* клавиатура: буквы UKO как кнопка */
.boards:focus-visible { outline: 3px solid var(--ink); outline-offset: 6px; }
.boards--foot:focus-visible { outline-color: #fff; }
/* отклик на наведение у знака, пунктов меню, ссылок подвала */
@media (hover: hover) and (pointer: fine) {
  .top__mark:hover, .foot__facts a:hover, .coupon__a:hover, .acts .tel:hover { text-decoration: underline; text-underline-offset: 0.18em; }
  .top__nav a:hover { text-decoration: underline; text-underline-offset: 0.3em; text-decoration-thickness: 3px; }
  .to-top:hover { background: var(--ink); color: #fff; }
  .sw:not([aria-pressed="true"]):hover { background: #243846; }
}
.build__hint, .cut__leg, .samples figcaption, .build .small { font-size: var(--step-body); }

/* меню на телефоне и планшете (ссылки разделов скрыты до 62em) */
@media (max-width: 62em) {
  .top__menu { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 0.3rem; color: #fff; font-weight: var(--w-strong); font-size: var(--step-body); text-decoration: underline; text-underline-offset: 0.2em; }
  .menu-open .top__nav { display: flex; flex-direction: column; gap: 0.25rem; position: fixed; inset: var(--header-h) 0 0 0; z-index: 39; padding: 1.5rem var(--margin) 2rem; background: var(--field-1); overflow-y: auto; }
  .menu-open .top__nav a { color: #fff; font-family: var(--font-display); font-size: var(--step-head); font-weight: var(--w-display); line-height: 1.1; letter-spacing: -0.03em; padding-block: 0.35rem; }
}
@media (min-width: 62.01em) { .top__menu { display: none; } }
