/* Страница «Сайт для мебели на заказ» v2 — 01.10.2026. Источник: /root/sites/niche-src/mebel/
   Макет: полноэкранный тёмный первый экран с чертежом поверх фото; дальше чередование
   «ореховых» тёмных и «меловых» светлых секций. Акцент бренда (лайм) — только кнопки и «По размеру». */
.mb-body {
  --walnut: #17110c; --walnut-2: #211913; --walnut-3: #2c221a;
  --oak: #cfa57a; --oak-dim: rgba(207,165,122,.32);
  --chalk: #f2ede5; --chalk-2: #e8e1d6; --ink: #1a1510;
  --lime: #d5fa36; --muted-d: #ab9e8e; --muted-l: #6d6458;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --sans: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  margin: 0; background: var(--walnut); color: var(--chalk); font-family: var(--sans);
  -webkit-font-smoothing: antialiased; font-size: 16px; line-height: 1.6;
}
.mb-body *, .mb-body *::before, .mb-body *::after { box-sizing: border-box; }
.mb-body a { color: inherit; text-decoration: none; }
.mb-body img { display: block; max-width: 100%; height: auto; }
.mb-body h1, .mb-body h2, .mb-body h3 { margin: 0; text-wrap: balance; font-weight: 800; letter-spacing: -.045em; line-height: 1.02; }
.mb-body p { margin: 0; }
.mb-wrap { max-width: 1320px; margin: 0 auto; padding-inline: clamp(18px, 4vw, 48px); }
.mb-two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.mb-two > * { min-width: 0; }
@media (max-width: 860px) { .mb-two { grid-template-columns: 1fr; } }

/* кнопки */
.mb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 52px; padding: 14px 24px; border-radius: 3px; font-weight: 600; font-size: 15px; transition: background .2s, transform .2s, border-color .2s; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.mb-btn span { font-size: 19px; line-height: 1; }
.mb-btn-lime { background: var(--lime); color: #151714 !important; }
.mb-btn-lime:hover { background: #e4ff6a; transform: translateY(-2px); }
.mb-btn-ghost { border-color: rgba(242,237,229,.4); color: var(--chalk); }
.mb-btn-ghost:hover { border-color: var(--chalk); background: rgba(242,237,229,.06); }
.mb-body :focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

/* ——— плавающая шапка: широкая у края, при прокрутке сжимается в «плашку» ——— */
.mb-hdr { position: fixed; z-index: 800; top: 0; left: 0; right: 0; padding: 18px clamp(12px, 3vw, 40px) 0; pointer-events: none; transition: padding .45s cubic-bezier(.2,.8,.2,1); }
.mb-hdr-in { pointer-events: auto; max-width: 1320px; margin: 0 auto; display: flex; align-items: center; gap: 18px; padding: 10px 10px 10px 18px; border-radius: 6px; border: 1px solid transparent; background: transparent; transition: background .45s, border-color .45s, box-shadow .45s, max-width .45s cubic-bezier(.2,.8,.2,1), padding .45s; }
.mb-logo img { height: 40px; width: auto; transition: height .45s; }
.mb-hdr-tag { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--oak); white-space: nowrap; }
.mb-nav { display: flex; gap: 26px; margin-left: auto; font-size: 14px; }
.mb-nav a { padding: 8px 0; border-bottom: 2px solid transparent; transition: border-color .2s; }
.mb-nav a:hover { border-bottom-color: var(--oak); }
.mb-hdr-cta { min-height: 44px; padding: 10px 18px; font-size: 14px; }
.mb-hdr.is-scrolled { padding-top: 10px; }
.mb-hdr.is-scrolled .mb-hdr-in { max-width: 1040px; background: rgba(23,17,12,.86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-color: rgba(207,165,122,.22); box-shadow: 0 18px 40px -20px rgba(0,0,0,.7); padding: 6px 6px 6px 14px; }
.mb-hdr.is-scrolled .mb-logo img { height: 32px; }
.mb-burger { display: none; margin-left: auto; position: relative; }
.mb-burger > summary { list-style: none; width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; cursor: pointer; border: 1px solid rgba(242,237,229,.35); border-radius: 3px; }
.mb-burger > summary::-webkit-details-marker { display: none; }
.mb-burger > summary i { display: block; width: 20px; height: 2px; background: var(--chalk); transition: transform .2s, opacity .2s; }
.mb-burger[open] > summary i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mb-burger[open] > summary i:nth-child(2) { opacity: 0; }
.mb-burger[open] > summary i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mb-burger-panel { position: absolute; right: 0; top: calc(100% + 10px); width: min(320px, 86vw); background: var(--walnut-2); border: 1px solid rgba(207,165,122,.25); border-radius: 6px; padding: 10px; display: grid; gap: 2px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); }
.mb-burger-panel a { padding: 12px 14px; border-radius: 3px; }
.mb-burger-panel a:not(.mb-btn):hover { background: var(--walnut-3); }
.mb-burger-panel .mb-btn { margin-top: 8px; }
@media (max-width: 960px) { .mb-nav, .mb-hdr-cta { display: none; } .mb-burger { display: block; } }
@media (max-width: 420px) { .mb-hdr-tag { display: none; } }

/* ——— первый экран ——— */
.mb-hero { position: relative; min-height: min(100svh, 940px); display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; padding-top: 120px; }
.mb-hero-img, .mb-bp { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -3; }
.mb-hero-img img { width: 100%; height: 100%; object-fit: cover; animation: mb-wake 3.2s 2.4s cubic-bezier(.2,.7,.2,1) both; }
.mb-bp { z-index: -2; }
.mb-hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(23,17,12,.92) 0%, rgba(23,17,12,.72) 40%, rgba(23,17,12,.28) 72%, rgba(23,17,12,.18) 100%), linear-gradient(0deg, rgba(23,17,12,.92) 0%, rgba(23,17,12,0) 38%), linear-gradient(180deg, rgba(23,17,12,.55) 0%, rgba(23,17,12,0) 22%); }
.mb-bp path { fill: none; stroke: var(--oak); stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 1; vector-effect: non-scaling-stroke; }
.mb-plan-lines path { animation: mb-draw 1.6s cubic-bezier(.6,0,.2,1) forwards, mb-fade 1.6s 3.4s forwards; }
.mb-plan-lines path:nth-child(n+2) { stroke-width: 1.5; animation-delay: .5s, 3.4s; }
.mb-plan-lines path:nth-child(n+10) { animation-delay: .9s, 3.4s; }
.mb-plan-dims path { stroke: var(--lime); stroke-width: 1.5; animation: mb-draw 1s 1.5s ease-out forwards, mb-fade 1.4s 3.6s forwards; }
.mb-plan-txt text { font-family: var(--mono); font-size: 46px; fill: var(--lime); opacity: 0; animation: mb-show .6s 2.1s forwards, mb-fade 1.4s 3.6s forwards; }
@keyframes mb-draw { to { stroke-dashoffset: 0; } }
@keyframes mb-fade { to { opacity: .16; } }
@keyframes mb-show { to { opacity: 1; } }
@keyframes mb-wake { from { filter: brightness(.7) saturate(.5) blur(2px); transform: scale(1.04); } to { filter: brightness(.86); transform: none; } }
.mb-hero-in { width: 100%; padding-bottom: clamp(56px, 9vh, 110px); }
.mb-crumbs { display: flex; gap: 10px; font-size: 13px; color: var(--muted-d); margin-bottom: clamp(24px, 4vh, 44px); }
.mb-crumbs a:hover { color: var(--chalk); }
.mb-hero h1 { font-size: clamp(42px, 6vw, 88px); max-width: 13ch; }
.mb-hero h1 span { color: var(--lime); display: inline-block; }
.mb-lead { margin-top: 30px; max-width: 48ch; font-size: clamp(16px, 1.4vw, 19px); color: #d9cfc2; }
.mb-hero-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 34px; }
.mb-hero-meta { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-top: 26px; font-size: 13px; color: var(--muted-d); }
.mb-hero-meta b { color: var(--chalk); font-weight: 600; }
.mb-hero-cap { position: absolute; right: clamp(18px, 4vw, 48px); bottom: clamp(56px, 9vh, 110px); display: flex; gap: 10px; font-family: var(--mono); font-size: 12px; color: var(--muted-d); }
.mb-hero-cap span { padding: 6px 10px; border: 1px solid rgba(207,165,122,.3); border-radius: 3px; animation: mb-step 4.6s both; }
.mb-hero-cap span:nth-child(1) { animation-delay: .2s; } .mb-hero-cap span:nth-child(2) { animation-delay: 1.6s; } .mb-hero-cap span:nth-child(3) { animation-delay: 3s; }
@keyframes mb-step { 0% { opacity: .35; } 10%, 30% { opacity: 1; border-color: var(--lime); color: var(--chalk); } 45%, 100% { opacity: 1; border-color: rgba(207,165,122,.3); color: var(--muted-d); } }
.mb-hero-cap span:nth-child(3) { animation-name: mb-step-last; }
@keyframes mb-step-last { 0% { opacity: .35; } 20%, 100% { opacity: 1; border-color: var(--lime); color: var(--chalk); } }
@media (max-width: 760px) { .mb-hero-cap { display: none; } .mb-hero { min-height: 100svh; } .mb-hero-shade { background: linear-gradient(0deg, rgba(23,17,12,.97) 0%, rgba(23,17,12,.75) 50%, rgba(23,17,12,.35) 100%); } }

/* бегущая строка */
.mb-strip { background: var(--lime); color: #151714; overflow: hidden; padding: 16px 0; }
.mb-strip > div { display: flex; gap: 26px; width: max-content; animation: mb-run 38s linear infinite; font-weight: 700; font-size: clamp(16px, 1.7vw, 22px); letter-spacing: -.02em; text-transform: none; }
.mb-strip i { font-style: normal; font-weight: 400; }
@keyframes mb-run { to { transform: translateX(-50%); } }

/* секции */
.mb-sec { padding-block: clamp(72px, 10vw, 130px); scroll-margin-top: 70px; }
.mb-dark { background: var(--walnut); color: var(--chalk); }
.mb-chalk { background: var(--chalk); color: var(--ink); }
.mb-sec h2 { font-size: clamp(34px, 4.6vw, 64px); }
.mb-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(20px, 5vw, 80px); align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.mb-head p { color: var(--muted-d); max-width: 46ch; }
.mb-chalk .mb-head p { color: var(--muted-l); }
@media (max-width: 860px) { .mb-head { grid-template-columns: 1fr; } }
.mb-big { margin-top: 26px; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.65; color: #d9cfc2; max-width: 56ch; }
.mb-why { background: var(--walnut-2); }
.mb-photo { margin: 0; }
.mb-photo img { border-radius: 4px; aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.mb-photo figcaption { margin-top: 14px; font-size: 14px; color: var(--muted-d); max-width: 52ch; }

/* ——— гарнитур ——— */
.mb-set { position: relative; }
.mb-set-top { height: 14px; background: linear-gradient(180deg, #3a2d22, #2a2018); border-radius: 3px 3px 0 0; box-shadow: 0 6px 0 -2px #0d0906; }
.mb-fronts { display: flex; gap: 6px; padding: 14px 0 0; perspective: 900px; }
.mb-front { flex: var(--w) 1 0; min-width: 0; position: relative; min-height: 220px; padding: 22px 16px 18px; text-align: left; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; background: linear-gradient(180deg, #2c221a, #241b14); border: 1px solid rgba(207,165,122,.18); border-radius: 3px; color: var(--chalk); font: inherit; cursor: pointer; transform-origin: 50% 0; transition: transform .45s cubic-bezier(.2,.8,.2,1), background .3s, border-color .3s, box-shadow .45s; }
.mb-front:hover { background: linear-gradient(180deg, #33281f, #2a2018); border-color: rgba(207,165,122,.4); }
.mb-front[aria-selected="true"] { background: linear-gradient(180deg, #e9dccb, #d9c6ad); color: var(--ink); border-color: #e9dccb; transform: translateY(12px) rotateX(-8deg); box-shadow: 0 26px 40px -18px rgba(0,0,0,.9); }
.mb-handle { position: absolute; top: 18px; left: 16px; width: 42px; height: 4px; border-radius: 2px; background: var(--oak); }
.mb-front[aria-selected="true"] .mb-handle { background: #151714; }
.mb-front-n { font-family: var(--mono); font-size: 12px; color: var(--oak); }
.mb-front[aria-selected="true"] .mb-front-n { color: #7a5a38; }
.mb-front-t { font-weight: 700; font-size: 16px; line-height: 1.2; letter-spacing: -.02em; }
.mb-drawers { margin-top: 30px; min-height: 120px; }
.mb-drawer { background: var(--chalk); color: var(--ink); border-radius: 4px; padding: clamp(22px, 3vw, 36px); display: grid; animation: mb-out .5s cubic-bezier(.2,.8,.2,1); box-shadow: inset 0 3px 0 var(--lime); }
.mb-drawer-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 12px 40px; align-items: baseline; }
.mb-drawer b { font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -.03em; line-height: 1.1; }
.mb-drawer p { font-size: 17px; color: var(--muted-l); max-width: 58ch; }
@keyframes mb-out { from { opacity: 0; transform: translateY(-14px); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); } }
@media (max-width: 960px) {
  .mb-fronts { display: grid; grid-template-columns: 1fr; gap: 6px; perspective: none; }
  .mb-front { min-height: 0; flex-direction: row; align-items: center; justify-content: flex-start; padding: 18px 16px 18px 76px; }
  .mb-handle { top: 50%; left: 18px; width: 38px; margin-top: -2px; }
  .mb-front[aria-selected="true"] { transform: translateX(10px); }
  .mb-front-n { order: 2; margin-left: auto; }
  .mb-drawer-in { grid-template-columns: 1fr; }
}

/* ——— калькулятор ——— */
.mb-calc { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (max-width: 860px) { .mb-calc { grid-template-columns: 1fr; } }
.mb-calc-form { display: grid; gap: 26px; }
.mb-field { border: 0; margin: 0; padding: 0; display: grid; gap: 12px; font-weight: 600; font-size: 15px; }
.mb-field legend { padding: 0; margin-bottom: 12px; }
.mb-field > span { display: flex; justify-content: space-between; align-items: baseline; }
.mb-field output { font-family: var(--mono); font-size: 22px; font-weight: 500; }
.mb-field input[type=range] { width: 100%; accent-color: #151714; height: 28px; }
.mb-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.mb-seg label { cursor: pointer; }
.mb-seg input { position: absolute; opacity: 0; pointer-events: none; }
.mb-seg span { display: inline-block; padding: 11px 16px; border: 1px solid #c9bdac; border-radius: 3px; font-weight: 500; transition: background .2s, color .2s, border-color .2s; }
.mb-seg input:checked + span { background: var(--ink); color: var(--chalk); border-color: var(--ink); }
.mb-seg input:focus-visible + span { outline: 2px solid #151714; outline-offset: 2px; }
.mb-check { display: inline-flex; gap: 10px; align-items: center; font-weight: 500; cursor: pointer; }
.mb-check input { width: 18px; height: 18px; accent-color: #151714; }
.mb-calc-view { background: #fbf8f3; border: 1px solid #ddd2c2; border-radius: 4px; padding: clamp(18px, 2.4vw, 28px); display: grid; gap: 16px; }
.mb-elev { width: 100%; height: auto; background: linear-gradient(180deg, #f6f0e6, #efe6d8); border-radius: 3px; }
.mb-elev rect, .mb-elev line { transition: x .45s cubic-bezier(.2,.8,.2,1), width .45s cubic-bezier(.2,.8,.2,1), fill .35s, opacity .35s; }
.mb-sum { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; border-top: 1px solid #e3d8c8; padding-top: 14px; }
.mb-sum span { color: var(--muted-l); }
.mb-sum b { font-size: clamp(30px, 3.4vw, 44px); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.mb-tg { display: flex; gap: 12px; align-items: center; background: #1a1510; color: var(--chalk); padding: 12px 14px; border-radius: 6px; }
.mb-tg i { width: 34px; height: 34px; border-radius: 50%; background: #2AABEE; display: grid; place-items: center; font-style: normal; font-size: 15px; flex: 0 0 auto; }
.mb-tg b { display: block; font-size: 14px; }
.mb-tg span { font-size: 13px; color: var(--muted-d); }
.mb-tg.ping { animation: mb-ping .6s; }
@keyframes mb-ping { 40% { transform: translateY(-3px); box-shadow: 0 0 0 3px var(--lime); } }
.mb-note { font-size: 13px; color: var(--muted-l); }

/* ——— цены ——— */
.mb-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 860px) { .mb-plans { grid-template-columns: 1fr; } }
.mb-plan { background: var(--walnut-2); border: 1px solid rgba(207,165,122,.18); border-radius: 4px; padding: 26px; display: grid; gap: 12px; align-content: start; }
.mb-plan.is-main { background: var(--chalk); color: var(--ink); border-color: var(--chalk); }
.mb-plan h3 { font-size: 26px; }
.mb-plan p { color: var(--muted-d); font-size: 15px; }
.mb-plan.is-main p { color: var(--muted-l); }
.mb-plan-sum { font-size: 44px; font-weight: 800; letter-spacing: -.05em; margin-top: 8px; }
.mb-plan-sum small { font-size: 16px; font-weight: 500; letter-spacing: 0; }
.mb-plan-term { font-family: var(--mono); font-size: 12px; color: var(--oak); }
.mb-plan.is-main .mb-plan-term { color: #7a5a38; }
.mb-incl { margin-top: clamp(36px, 5vw, 56px); }
.mb-incl h3 { font-size: 20px; letter-spacing: -.02em; margin-bottom: 16px; }
.mb-incl ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mb-incl li { position: relative; padding-left: 26px; color: #d9cfc2; }
.mb-incl li::before { content: ""; position: absolute; left: 0; top: .72em; width: 14px; height: 2px; background: var(--oak); }

/* полоса с фото мастера */
.mb-band { position: relative; isolation: isolate; padding-block: clamp(110px, 16vw, 220px); overflow: hidden; }
.mb-band-img { position: absolute; inset: 0; z-index: -2; }
.mb-band-img img { width: 100%; height: 100%; object-fit: cover; }
.mb-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(23,17,12,.2) 0%, rgba(23,17,12,.88) 62%); }
.mb-band-in { display: grid; justify-items: end; text-align: left; }
.mb-band-in > * { max-width: 520px; width: 100%; }
.mb-band h2 { font-size: clamp(30px, 3.6vw, 48px); }
.mb-band p { margin-top: 18px; color: #e3d9cc; font-size: 17px; }
@media (max-width: 760px) { .mb-band::after { background: linear-gradient(0deg, rgba(23,17,12,.95) 30%, rgba(23,17,12,.4)); } .mb-band-in { justify-items: start; } }

/* вопросы */
.mb-faq { border-top: 1px solid #d6cbbb; }
.mb-faq details { border-bottom: 1px solid #d6cbbb; }
.mb-faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font-weight: 600; font-size: 17px; }
.mb-faq summary::-webkit-details-marker { display: none; }
.mb-faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 26px; font-weight: 400; transition: transform .25s; }
.mb-faq details[open] summary::after { transform: rotate(45deg); }
.mb-faq p { padding: 0 0 22px; color: var(--muted-l); max-width: 64ch; }

/* заявка */
.mb-direct { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.mb-direct a { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border: 1px solid rgba(207,165,122,.3); border-radius: 3px; font-weight: 600; }
.mb-direct a:hover { border-color: var(--oak); }
.mb-direct svg { width: 22px; height: 22px; }
.mb-form { display: grid; gap: 8px; background: var(--walnut-2); border: 1px solid rgba(207,165,122,.2); border-radius: 4px; padding: clamp(20px, 3vw, 32px); }
.mb-form label { display: grid; gap: 8px; font-size: 14px; color: #d9cfc2; }
.mb-form label i { font-style: normal; color: var(--muted-d); font-size: 12px; }
.mb-form input[type=text], .mb-form textarea { width: 100%; padding: 13px 14px; background: #120d09; border: 1px solid rgba(207,165,122,.28); border-radius: 3px; color: var(--chalk); font: inherit; font-size: 15px; }
.mb-form input::placeholder, .mb-form textarea::placeholder { color: #7d7166; }
.mb-form input:focus, .mb-form textarea:focus { border-color: var(--oak); outline: none; }
.mb-form small { color: #ffb5a4; font-size: 12px; min-height: 4px; }
.mb-consent { grid-template-columns: auto 1fr; align-items: start; gap: 10px !important; font-size: 13px !important; margin-top: 6px; }
.mb-consent input { width: 18px; height: 18px; accent-color: var(--lime); margin-top: 2px; }
.mb-consent a { text-decoration: underline; text-underline-offset: 3px; }
.mb-form .mb-btn { margin-top: 10px; width: 100%; }
.mb-form-msg { font-size: 14px; color: var(--oak); min-height: 1em; }
.mb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  .mb-body *, .mb-body *::before, .mb-body *::after { animation-duration: .001s !important; animation-delay: 0s !important; transition-duration: .001s !important; }
  .mb-strip > div { animation: none; }
}

/* Общий AI-чат: его элементы наследовали светлый цвет страницы — возвращаем тёмный */
.mb-body [data-click^="q"], .mb-body [data-click="clearChat"] { color: #151714; }
