/* «Ось»: светлый минимализм мебельного шоурума (референс Mebelun): тонкая рамка-шапка, огромный разреженный логотип,
   шалфеевая бегущая лента, интерьер в арке, серые подложки товаров, шрифт Jost. */
:root {
  --bg: #fff; --fg: #121212; --muted: #727272; --line: #dedede; --soft: #f3f3f2; --sage: #9da28a;
  --accent: #121212; --accent-ink: #fff; --sale: #b8402c; --ok: #4f6b45;
  --card-bg: #f2f2f1; --radius: 0px; --radius-btn: 0px; --wrap: 1400px; --gap: 18px; --pad: 28px;
  --font-body: 'Jost', system-ui, sans-serif; --font-head: 'Jost', system-ui, sans-serif;
  --step-0: 16px; --step-4: clamp(34px, 4.6vw, 60px);
}
body { font-weight: 400; letter-spacing: .005em; }
h1, h2, h3 { font-weight: 300; letter-spacing: -.01em; }
.btn { font-weight: 400; letter-spacing: .02em; }

/* шапка — рамка, как у референса */
.top { position: sticky; top: 0; z-index: 50; padding: 10px var(--pad) 0; background: var(--bg); }
.top__bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 58px; padding: 0 18px; border: 1px solid var(--line); background: var(--bg); }
.top__nav { display: flex; gap: 28px; font-size: 14px; }
.top__nav a { text-decoration: none; position: relative; }
.top__nav a[aria-current]::after, .top__nav a:hover::after { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; }
.top__logo { display: grid; place-items: center; width: 44px; height: 44px; }
.mono { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.top__tools { display: flex; justify-content: flex-end; align-items: center; gap: 2px; }
.top__phone { font-size: 14px; text-decoration: none; margin-right: 10px; font-variant-numeric: tabular-nums; }
.icon-btn svg { width: 21px; height: 21px; stroke-width: 1.5; }
.top__tools .icon-btn { position: relative; border-radius: 0; }
.has-n b { position: absolute; top: 4px; right: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--fg); color: #fff; font: 500 10px/17px var(--font-body); text-align: center; }
.top__menu { display: none; }

/* вводный экран: логотип, лента, плавающая карточка, арка */
.intro { position: relative; padding-top: 18px; overflow: hidden; }
.word { margin: 0; text-align: center; font: 400 clamp(46px, 10.4vw, 176px)/1 var(--font-head); letter-spacing: .2em; padding-left: .2em; white-space: nowrap; }
.band { margin-top: clamp(80px, 9vw, 150px); background: var(--sage); color: #fff; overflow: hidden; font-size: 13px; letter-spacing: .02em; }
.band__track { display: flex; width: max-content; animation: band 38s linear infinite; }
.band__track span { padding: 9px 30px; white-space: nowrap; position: relative; }
.band__track span::after { content: ''; position: absolute; right: -3px; top: 50%; width: 6px; height: 6px; border-radius: 50%; background: #fff; transform: translateY(-50%); }
@keyframes band { to { transform: translateX(-50%); } }
.float-card { position: absolute; z-index: 3; left: 50%; top: clamp(150px, 17vw, 290px); width: clamp(170px, 18vw, 290px); transform: translateX(-50%); background: #fff; border: 5px solid #d9d9d7; text-decoration: none; text-align: center; box-shadow: 0 30px 60px -30px rgba(0,0,0,.35); transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.float-card:hover { transform: translateX(-50%) translateY(-6px); }
.float-card img { aspect-ratio: 4/5; object-fit: cover; }
.float-card span { display: block; padding: 10px; background: #d9d9d7; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.seal { position: absolute; z-index: 4; left: calc(50% + clamp(60px, 7.6vw, 125px)); top: calc(clamp(150px, 17vw, 290px) + clamp(170px, 18vw, 290px) * 1.12); width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #d6bfa2, #a88a68); display: grid; place-items: center; color: #7c6247; box-shadow: 0 6px 14px rgba(0,0,0,.18); }
.seal .mono { width: 30px; height: 30px; }
.arch { position: relative; margin-top: clamp(40px, 6vw, 90px); }
.arch::after { content: ''; position: absolute; inset: 0; border-top-left-radius: 50% 26%; border-top-right-radius: 50% 26%; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.34) 100%), rgba(0,0,0,.12); pointer-events: none; }
.arch img { width: 100%; height: clamp(440px, 52vw, 820px); object-fit: cover; border-top-left-radius: 50% 26%; border-top-right-radius: 50% 26%; }
.arch__text { position: absolute; z-index: 1; left: 50%; top: 56%; transform: translate(-50%, -50%); width: min(620px, 86%); color: #fff; text-shadow: 0 1px 30px rgba(0,0,0,.35); }
.arch h1 { font-size: clamp(30px, 4.2vw, 58px); text-align: center; margin-bottom: 18px; }
.arch p { margin: 0 auto 12px; width: min(460px, 100%); font-size: 16px; text-align: center; }
.arch__links { display: flex; justify-content: center; gap: 22px; font-size: 14px; }
.arch__links a { text-underline-offset: 3px; }

/* секции */
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 26px; }
.sec-h { font-size: clamp(28px, 3.2vw, 44px); }
.more { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-size: 14px; }
.more svg, .rooms__go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.rec { padding: 80px 0 30px; }
.kicker { color: var(--muted); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }

/* карточки — серая подложка, чёрная плашка скидки, сердце в белом круге */
.card__media { aspect-ratio: 4/5; }
.card__badge { background: #111; padding: 2px 10px; font-size: 12px; }
.card__fav { background: #fff; width: 36px; height: 36px; }
.card__fav svg { width: 18px; height: 18px; }
.card__body { gap: 4px; }
.card__name { order: -1; font-size: 15px; }
.card__price { font-size: 15px; }
.card__price b { font-weight: 500; }
.card__add { opacity: 0; transform: translateY(6px); transition: opacity .25s, transform .25s; min-height: 40px; margin-top: 8px; }
.card:hover .card__add, .card:focus-within .card__add { opacity: 1; transform: none; }
@media (hover: none) { .card__add { opacity: 1; transform: none; } }

/* каталог мебели по комнатам */
.rooms { background: var(--soft); padding: 90px 0 100px; margin-top: 60px; }
.rooms__stage { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 60px; align-items: center; margin-top: 50px; }
.rooms__ghost { position: absolute; left: -1%; top: -2%; margin: 0; font: 300 clamp(180px, 24vw, 380px)/1 var(--font-head); letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1px #d6d6d4; pointer-events: none; transition: opacity .2s; }
.rooms__pics { position: relative; padding-left: 16%; }
.rooms__big { position: relative; width: 100%; aspect-ratio: 4/5; object-fit: cover; max-height: 680px; transition: opacity .25s; }
.rooms__small { position: absolute; left: 0; bottom: -40px; width: 34%; aspect-ratio: 4/5; object-fit: cover; border: 8px solid var(--soft); transition: opacity .25s; }
.is-switch .rooms__big, .is-switch .rooms__small, .is-switch .rooms__ghost { opacity: 0; }
.rooms__list { display: grid; gap: 4px; align-content: center; }
.rooms__list [role=tab] { text-align: left; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 18px 0; display: grid; gap: 4px; }
.rooms__list [role=tab] span { font: 300 clamp(30px, 3.6vw, 54px)/1.05 var(--font-head); color: #b8b8b6; transition: color .25s; }
.rooms__list [role=tab] small { color: var(--muted); font-size: 13px; }
.rooms__list [aria-selected=true] span, .rooms__list [role=tab]:hover span { color: var(--fg); }
.rooms__go { justify-self: start; margin-top: 26px; }

/* примерка — блок на главной и страница */
.fitblock { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 70px; align-items: center; padding: 110px 0 40px; }
.fitblock__text p { color: var(--muted); max-width: 46ch; }
.fitblock__text .btn { margin-top: 12px; }
.fitdemo, .fit { display: grid; gap: 14px; padding: 26px; border: 1px solid var(--line); background: #fff; }
.fitdemo label, .fit label, .fitpage label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.fitdemo select, .fitdemo input, .fit input, .fitpage input { height: 44px; padding: 0 12px; border: 1px solid var(--line); background: #fff; font-size: 15px; color: var(--fg); min-width: 0; }
.fitdemo__row, .fit__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.plan { width: 100%; height: auto; background: var(--soft); }
.plan__niche { fill: #fff; stroke: #9a9a98; stroke-dasharray: 5 4; }
.plan__item { fill: rgba(157,162,138,.55); stroke: #5f6551; stroke-width: 1.2; }
.plan__item.is-over { fill: rgba(184,64,44,.28); stroke: var(--sale); }
.plan__dim, .plan__lbl { font: 400 11px var(--font-body); fill: #444; }
.fit-res { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 14px; }
.fit-res li { padding-left: 26px; position: relative; }
.fit-res li::before { position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; color: #fff; }
.fit-res .is-ok::before { content: '✓'; background: var(--ok); }
.fit-res .is-no::before { content: '!'; background: var(--sale); }
.fit__t { margin: 0; font-weight: 500; }
.fit__more { font-size: 14px; text-underline-offset: 3px; }
.pdims { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 14px; }
.pdims span { color: var(--muted); }
.pdims b { font-weight: 500; }
.lead { max-width: 64ch; color: var(--muted); font-size: 17px; }
.fitpage { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 50px; align-items: start; padding: 18px 0 40px; }
.fitpage fieldset { border: 0; border-top: 1px solid var(--line); margin: 0 0 18px; padding: 16px 0 0; display: grid; gap: 12px; }
.fitpage legend { font-weight: 500; padding-right: 10px; }
.fitpage__pick { display: grid; gap: 6px; max-height: 420px; overflow: auto; }
.fpick { display: grid !important; grid-template-columns: auto 48px 1fr; gap: 10px !important; align-items: center; color: var(--fg) !important; font-size: 14px !important; padding: 6px; border: 1px solid transparent; cursor: pointer; }
.fpick:has(input:checked) { border-color: var(--line); background: var(--soft); }
.fpick input { width: 17px; height: 17px !important; accent-color: var(--fg); }
.fpick img { aspect-ratio: 4/5; object-fit: cover; }
.fpick span { display: grid; }
.fpick small { color: var(--muted); }
.fitpage__res { position: sticky; top: 100px; display: grid; gap: 16px; }
.fitsum { margin: 0; padding: 12px 14px; font-weight: 500; }
.fitsum.is-ok { background: #edf1ea; } .fitsum.is-no { background: #f6e9e6; }
.fitcard { display: grid; grid-template-columns: 64px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.fitcard img { aspect-ratio: 4/5; object-fit: cover; background: var(--soft); }
.fitcard a { display: block; margin-bottom: 6px; font-weight: 500; text-decoration: none; }
.assembly { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 14px; background: #fff; border: 1px solid var(--line); cursor: pointer; }
.assembly input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--fg); }
.assembly span { display: grid; gap: 2px; }
.assembly small { color: var(--muted); }

/* сервис */
.service { padding: 90px 0 100px; }
.service__list { list-style: none; counter-reset: s; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.service__list li { counter-increment: s; padding: 26px 26px 10px 0; display: grid; gap: 10px; align-content: start; }
.service__list li + li { padding-left: 26px; border-left: 1px solid var(--line); }
.service__list li::before { content: '0' counter(s); color: var(--sage); font-size: 13px; letter-spacing: .1em; }
.service__list b { font-weight: 400; font-size: 20px; }
.service__list span { color: var(--muted); font-size: 14px; }

/* подвал */
.foot { background: var(--soft); padding: 70px var(--pad) 26px; margin-top: 0; }
.foot__in { max-width: var(--wrap); margin: 0 auto; }
.foot__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px; }
.foot__h { color: var(--muted); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 15px; }
.foot a { text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot__word { margin: 70px 0 20px; font: 300 clamp(40px, 9.4vw, 150px)/1 var(--font-head); letter-spacing: .18em; white-space: nowrap; overflow: hidden; color: #dcdcda; }
.foot__legal { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); padding-top: 18px; margin: 0; }

/* внутренние страницы */
.catalog .cat-head h1, .page-title { font-weight: 300; }
.cat-chips .chip { border-radius: 0; }
.product__buy .btn--lg { font-size: 16px; }
.cartpage__side, .checkout__side { background: var(--soft); }

@media (max-width: 1100px) {
  .top__nav { gap: 18px; }
  .top__phone { display: none; }
  .service__list { grid-template-columns: 1fr 1fr; }
  .service__list li:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 860px) {
  :root { --pad: 16px; }
  .top { padding-top: 8px; }
  .top__bar { grid-template-columns: auto 1fr auto; height: 52px; padding: 0 6px 0 10px; }
  .top__nav, .hide-m { display: none; }
  .top__logo { grid-column: 1; }
  .top__menu { display: inline-grid; }
  .word { letter-spacing: .14em; padding-left: .14em; font-size: 11.6vw; }
  .band { margin-top: 120px; }
  .float-card { top: 88px; width: 130px; border-width: 4px; }
  .seal { left: calc(50% + 50px); top: 230px; width: 46px; height: 46px; }
  .arch { margin-top: 70px; }
  .arch img, .arch::after { border-top-left-radius: 50% 14%; border-top-right-radius: 50% 14%; }
  .arch img { height: 520px; }
  .arch__text { top: auto; bottom: 26px; transform: translateX(-50%); }
  .arch h1 { font-size: 30px; text-align: left; }
  .arch p { margin-left: 0; text-align: left; }
  .arch__links { justify-content: flex-start; }
  .rec { padding-top: 54px; }
  .rooms { padding: 60px 0 80px; }
  .rooms__stage { grid-template-columns: 1fr; gap: 50px; margin-top: 30px; }
  .rooms__pics { padding-left: 0; }
  .rooms__small { width: 40%; bottom: -30px; left: -6px; }
  .fitblock, .fitpage { grid-template-columns: 1fr; gap: 30px; padding-top: 70px; }
  .fitpage { padding-top: 10px; }
  .fitpage__res { position: static; }
  .service__list { grid-template-columns: 1fr; }
  .service__list li, .service__list li + li { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .foot__cols { grid-template-columns: 1fr 1fr; }
  .foot__cols > div:last-child { grid-column: 1 / -1; }
  .foot__word { letter-spacing: .1em; }
}
@media (prefers-reduced-motion: reduce) { .band__track { animation: none; } }
