/* «Atelier» — мебель на заказ и интерьерные студии (§1186). Костяная бумага + эспрессо-чёрный; один сильный цвет — орех
   (плитки, полосы, заливка кнопок при наведении), камень-беж — подложки разделов. Без «золота по привычке»: латунь только
   на фото. Заголовки — Instrument Serif (крупно, без жирного), надписи и марка — Archivo широкий, размеры — IBM Plex Mono.
   Ничего шире экрана (§1141): 100vw не используется, всё, что едет вбок, — внутри своего блока с обрезкой. */
:root {
  --paper: #f4f0ea;
  --stone: #e6ded2;
  --card: #fbf9f6;
  --ink: #17140f;
  --text: #2c2721;
  --muted: #6c6258;
  --line: rgba(23, 20, 15, 0.14);
  --walnut: #5a3a25;
  --walnut-2: #74503a;
  --deep: #16130f;
  --deep-2: #221d17;
  --on-deep: #efe9e0;
  --led: #ffcf8f;
  --accent: #17140f;
  --accent-ink: #fbf9f6;
  --display: "Instrument Serif", "Times New Roman", serif;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);
  --gut: clamp(16px, 4vw, 56px);
  --nav-h: 76px;
  --r: 4px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 17px/1.6 var(--sans); font-variation-settings: "wdth" 100; -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure, blockquote, fieldset, legend { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { border: 0; padding: 0; min-width: 0; }
button { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--walnut); outline-offset: 3px; }
.section--deep :focus-visible, .footer :focus-visible, .hero :focus-visible, .lb :focus-visible { outline-color: var(--led); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 80; padding: 10px 16px; background: var(--ink); color: #fff; text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--gut); }
.label { font: 600 12px/1.3 var(--sans); font-variation-settings: "wdth" 118; letter-spacing: 0.16em; text-transform: uppercase; color: var(--walnut); }
.label--light { color: rgba(239, 233, 224, 0.82); }
.h2 { margin-top: 14px; font: 400 clamp(36px, 5.2vw, 76px)/1.02 var(--display); letter-spacing: -0.01em; color: var(--ink); text-wrap: balance; }
.section--deep .h2 { color: var(--on-deep); }
.section { position: relative; padding: clamp(80px, 10vw, 148px) 0; }
.section--stone { background: var(--stone); }
.section--paper { background: var(--card); }
.section--deep { background: var(--deep); color: rgba(239, 233, 224, 0.78); }
.head { max-width: 860px; margin-bottom: clamp(36px, 5vw, 64px); }
.head--split { max-width: none; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; }
.head__note { margin-top: 16px; max-width: 560px; font-size: 17px; color: var(--muted); }
.head--split .head__note { margin-top: 0; }
@media (max-width: 899px) { .head--split { grid-template-columns: minmax(0, 1fr); } }

/* Кнопки: строгий прямоугольник с тонкой рамкой; заливка ореха поднимается снизу при наведении; нажатие — 0,97. */
.btn { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border: 1px solid transparent; border-radius: var(--r); font: 600 13px/1.2 var(--sans); font-variation-settings: "wdth" 115; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; text-align: center; cursor: pointer; transition: color 260ms var(--ease), border-color 260ms var(--ease), transform 140ms var(--ease); -webkit-tap-highlight-color: transparent; }
.btn::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--walnut); transform: scaleY(0); transform-origin: 50% 100%; transition: transform 420ms var(--ease); }
.btn:active { transform: scale(0.97); }
.btn--main { background: var(--ink); color: var(--accent-ink); }
.btn--line { border-color: currentColor; color: var(--ink); background: transparent; }
.btn--light { background: var(--card); color: var(--ink); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.7); color: #fff; background: rgba(0, 0, 0, 0.12); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.btn--big { min-height: 56px; padding: 16px 28px; }
.btn:disabled { opacity: 0.55; cursor: progress; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover::before { transform: none; }
  .btn--main:hover, .btn--light:hover, .btn--ghost:hover { color: #fff; }
  .btn--line:hover { color: #fff; border-color: var(--walnut); }
  .btn--ghost:hover { border-color: var(--walnut); }
}
.btn:focus-visible::before { transform: none; }
.btn:focus-visible { color: #fff; }
.section--deep .btn--line { color: var(--on-deep); }
.link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; color: var(--ink); text-decoration: underline; text-decoration-color: rgba(23, 20, 15, 0.3); text-decoration-thickness: 1px; text-underline-offset: 6px; transition: text-decoration-color 220ms var(--ease); }
@media (hover: hover) { .link:hover { text-decoration-color: currentColor; } }

/* ───── Шапка: прозрачная над роликом, плотная бумага после первого экрана ───── */
.top { position: fixed; inset: 0 0 auto; z-index: 50; color: #fff; transition: background-color 320ms var(--ease), color 320ms var(--ease), box-shadow 320ms var(--ease); }
.top.is-solid { background: rgba(244, 240, 234, 0.94); color: var(--ink); box-shadow: 0 1px 0 var(--line); -webkit-backdrop-filter: saturate(1.1) blur(10px); backdrop-filter: saturate(1.1) blur(10px); }
html.menu-open .top { background: transparent; box-shadow: none; color: var(--on-deep); -webkit-backdrop-filter: none; backdrop-filter: none; }
.nav { max-width: 1320px; height: var(--nav-h); margin: 0 auto; padding: 0 var(--gut); display: flex; align-items: center; gap: 28px; }
.nav__brand { display: flex; align-items: center; gap: 10px; min-width: 0; text-decoration: none; color: inherit; }
.nav__brand b { display: inline-flex; align-items: baseline; gap: 0.55em; font: 700 19px/1 var(--sans); font-variation-settings: "wdth" 125; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav__brand .w2 { font-weight: 400; font-size: 0.62em; letter-spacing: 0.32em; opacity: 0.86; }
@media (min-width: 1140px) { .nav__brand { flex: none; } }
@media (max-width: 479px) { .nav__brand .w2 { display: none; } }
.nav__brand .rk-logo { max-height: 34px; width: auto; }
.nav__links { display: flex; gap: 26px; margin-left: auto; }
.nav__links a { position: relative; padding: 8px 0; font: 500 13px/1.2 var(--sans); font-variation-settings: "wdth" 112; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; color: inherit; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 320ms var(--ease); }
@media (hover: hover) { .nav__links a:hover::after { transform: scaleX(1); transform-origin: left; } }
.nav__links .rk-lang { flex-wrap: nowrap; gap: 2px; margin-left: -6px; }
.nav__links .rk-lang a { min-width: 32px; min-height: 32px; padding: 0 6px !important; border-radius: 2px; }
.nav__links .rk-lang a::after { display: none; }
.nav__cta { min-height: 42px; padding: 10px 18px; flex: none; }
.top:not(.is-solid) .nav__cta { background: var(--card); color: var(--ink); }
.nav__menu { display: none; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px 0 12px; border: 0; background: none; cursor: pointer; font: 600 12px/1 var(--sans); font-variation-settings: "wdth" 118; letter-spacing: 0.14em; text-transform: uppercase; }
.nav__menu i { position: relative; width: 22px; height: 8px; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transition: transform 300ms var(--ease); }
.nav__menu[aria-expanded="true"] i { transform: scaleY(0.2); }
@media (max-width: 1139px) { .nav__links { display: none; } .nav__cta { margin-left: auto; } .nav__menu { display: inline-flex; } }
html.rk-has-menu .nav__menu { display: none; }
/* §1191 — шапка в цвет логотипа фирмы (data.design.nav.bar = "black"): чёрная полоса над роликом и после прокрутки,
   надписи белые, кнопка «Teklif» — белая; логотип вместо названия (nav.logo_only = "yes" и логотип сайта). */
html[data-head="black"] .top, html[data-head="black"] .top.is-solid { background: #000; color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1); -webkit-backdrop-filter: none; backdrop-filter: none; }
html[data-head="black"] .top .nav__cta { background: #fff; color: #000; }
html[data-head="black"] .top :focus-visible { outline-color: var(--led); }
/* §1193 — простой шрифт (data.design.nav.type = "plain"): без курсива, плотнее, крупные заголовки меньше. */
html[data-type="plain"] .hero__title .ln:nth-child(2) > span { font-style: normal; }
html[data-type="plain"] .hero__title { font-weight: 500; font-size: clamp(40px, 6.2vw, 96px); line-height: 1.04; letter-spacing: -0.03em; max-width: 16ch; }
html[data-type="plain"] .h2 { font-weight: 500; font-size: clamp(30px, 4vw, 58px); letter-spacing: -0.025em; line-height: 1.08; }
html[data-type="plain"] .fs__links a { font-weight: 500; font-size: clamp(30px, 8vw, 52px); letter-spacing: -0.02em; }
html[data-type="plain"] :is(.cat__t, .mani__text, .figs b, .step__t, .sw__t, .mat__name, .row__b b, .points b, .qcard blockquote) { font-weight: 500; letter-spacing: -0.02em; }
html[data-head="black"] .frame { top: calc(var(--nav-h) + 34px); }
@media (hover: hover) and (pointer: fine) { html[data-head="black"] .top .nav__cta:hover { color: #fff; } }
html[data-head="black"] .top .nav__cta:focus-visible { color: #fff; }
html[data-logo-only] .nav__brand.rk-brand .rk-logo { height: 40px; max-height: none; width: auto; max-width: none; border-radius: 0; }
html[data-logo-only] .nav__brand.rk-brand b { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 479px) { html[data-logo-only] .nav__brand.rk-brand .rk-logo { height: 32px; } }
@media (max-width: 359px) { html[data-logo-only] .nav__brand.rk-brand .rk-logo { height: 26px; } }
@media (max-width: 479px) { .nav { gap: 10px; } .nav__brand b { font-size: 16px; letter-spacing: 0.1em; } .nav__cta { padding: 10px 12px; font-size: 12px; letter-spacing: 0.06em; } .nav__menu span { display: none; } .nav__menu { padding: 0 6px; } }

/* Полотно меню (телефон): тёмное, пункты крупной антиквой по очереди. */
.fs { position: fixed; inset: 0; z-index: 49; display: flex; flex-direction: column; gap: 28px; padding: calc(var(--nav-h) + 20px) var(--gut) calc(28px + env(safe-area-inset-bottom)); background: var(--deep); color: var(--on-deep); overflow-y: auto; overscroll-behavior: contain; visibility: hidden; transform: translate3d(0, -100%, 0); transition: transform 600ms var(--ease-io), visibility 0s linear 600ms; }
.fs.is-open { visibility: visible; transform: none; transition: transform 600ms var(--ease-io), visibility 0s; }
.fs__links { display: flex; flex-direction: column; }
.fs__links a { display: block; padding: 10px 0; border-bottom: 1px solid rgba(239, 233, 224, 0.14); font: 400 clamp(36px, 10vw, 64px)/1.05 var(--display); text-decoration: none; color: inherit; opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity 400ms var(--ease), transform 600ms var(--ease); }
.fs.is-open .fs__links a { opacity: 1; transform: none; transition-delay: calc(180ms + var(--i, 0) * 55ms); }
.fs__meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font: 500 15px/1.4 var(--mono); }
.fs__meta a { color: inherit; }
.fs__cta { align-self: flex-start; background: var(--card); color: var(--ink); }
html.menu-open { overflow: hidden; }
html.rk-has-menu .fs { display: none; }
@media (prefers-reduced-motion: reduce) { .fs, .fs__links a { transition: none; } }

/* ───── Первый экран ───── */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; background: var(--deep); overflow: clip; isolation: isolate; }
.hero__video { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero__shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 11, 8, 0.55) 0%, rgba(14, 11, 8, 0) 24%), linear-gradient(0deg, rgba(14, 11, 8, 0.78) 0%, rgba(14, 11, 8, 0.25) 46%, rgba(14, 11, 8, 0) 70%), radial-gradient(120% 80% at 0% 100%, rgba(14, 11, 8, 0.45), transparent 60%); }
.hero.is-plain { background: linear-gradient(135deg, var(--walnut), var(--deep)); }
.hero__in { position: relative; padding-top: calc(var(--nav-h) + 40px); padding-bottom: clamp(64px, 9vh, 112px); }
.hero .label { font-size: 12px; }
.hero__title { margin-top: 18px; max-width: 13ch; font: 400 clamp(52px, 8.6vw, 140px)/0.94 var(--display); letter-spacing: -0.015em; color: #fff; }
/* Запас сверху под надстрочные знаки заглавных (Ö, İ, Ç) — маска строки их не срезает. */
.hero__title .ln { display: block; overflow: hidden; padding: 0.16em 0 0.08em; margin: -0.16em 0 -0.08em; }
.hero__title .ln > span { display: block; white-space: nowrap; transform: translate3d(0, 105%, 0); transition: transform 1100ms var(--ease); }
.hero__title .ln:nth-child(2) > span { font-style: italic; }
.hero.is-in .hero__title .ln > span { transform: none; }
.hero__sub { margin-top: 24px; max-width: 560px; font-size: clamp(17px, 1.35vw, 20px); color: rgba(255, 255, 255, 0.86); opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity 900ms var(--ease) 520ms, transform 900ms var(--ease) 520ms; }
.hero__acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity 900ms var(--ease) 640ms, transform 900ms var(--ease) 640ms; }
.hero__proof { margin-top: 28px; font: 500 13px/1.5 var(--mono); color: rgba(255, 255, 255, 0.72); opacity: 0; transition: opacity 900ms var(--ease) 820ms; }
.hero.is-in .hero__sub, .hero.is-in .hero__acts { opacity: 1; transform: none; }
.hero.is-in .hero__proof { opacity: 1; }
.hero__pause { position: absolute; right: var(--gut); bottom: clamp(24px, 4vh, 40px); z-index: 2; width: 44px; height: 44px; border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 50%; background: rgba(0, 0, 0, 0.18); cursor: pointer; display: grid; place-items: center; }
.hero__pause i { width: 10px; height: 12px; border-left: 3px solid #fff; border-right: 3px solid #fff; }
.hero.is-paused .hero__pause i { width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent #fff; margin-left: 3px; }
/* Размерная рамка: линия ширины сверху, линия высоты справа, засечки на концах; рисуются при загрузке. */
.frame { position: absolute; inset: calc(var(--nav-h) + 22px) var(--gut) clamp(24px, 4vh, 40px); pointer-events: none; }
.frame__w, .frame__h { position: absolute; display: block; color: rgba(255, 255, 255, 0.7); }
.frame__w { left: 0; right: 0; top: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: 0 50%; transition: transform 1400ms var(--ease-io) 300ms; }
.frame__h { right: 0; top: 18px; bottom: 64px; width: 1px; background: currentColor; transform: scaleY(0); transform-origin: 50% 0; transition: transform 1400ms var(--ease-io) 700ms; }
.frame__w::before, .frame__w::after { content: ""; position: absolute; top: -6px; width: 1px; height: 13px; background: currentColor; }
.frame__w::before { left: 0; } .frame__w::after { right: 0; }
.frame__h::before, .frame__h::after { content: ""; position: absolute; left: -6px; width: 13px; height: 1px; background: currentColor; }
.frame__h::before { top: 0; } .frame__h::after { bottom: 0; }
.frame b { position: absolute; font: 500 11px/1 var(--mono); letter-spacing: 0.08em; color: rgba(255, 255, 255, 0.86); background: rgba(14, 11, 8, 0.35); padding: 4px 6px; white-space: nowrap; opacity: 0; transition: opacity 600ms var(--ease) 1500ms; }
.frame__w b { left: 50%; top: -10px; transform: translate(-50%, -50%); }
.frame__h b { top: 50%; right: 10px; transform: translateY(-50%); }
.hero.is-in .frame__w { transform: none; } .hero.is-in .frame__h { transform: none; } .hero.is-in .frame b { opacity: 1; }
@media (max-width: 719px) {
  .frame { inset: calc(var(--nav-h) + 12px) 16px 18px; }
  .frame__h { bottom: 80px; }
  .frame__h b { display: none; }
  .hero__in { padding-bottom: 92px; }
  .hero__acts .btn { flex: 1 1 100%; }
  .hero__pause { bottom: 22px; right: 22px; }
}
@media (prefers-reduced-motion: reduce) { .hero__title .ln > span, .hero__sub, .hero__acts, .hero__proof, .frame__w, .frame__h, .frame b { transition: none; } }

/* ───── Категории: плитки со створками ───── */
.cats { display: grid; gap: 14px; grid-template-columns: repeat(12, minmax(0, 1fr)); --veneer: linear-gradient(90deg, #5a3a25, #74503a 50%, #5a3a25); }
.cat { position: relative; display: block; min-height: 300px; color: #fff; text-decoration: none; overflow: hidden; isolation: isolate; background: var(--deep); perspective: 1400px; }
.cat:nth-child(6n + 1) { grid-column: span 7; min-height: 520px; grid-row: span 2; }
.cat:nth-child(6n + 2) { grid-column: span 5; }
.cat:nth-child(6n + 3) { grid-column: span 5; }
.cat:nth-child(6n + 4) { grid-column: span 4; min-height: 360px; }
.cat:nth-child(6n + 5) { grid-column: span 4; min-height: 360px; }
.cat:nth-child(6n) { grid-column: span 4; min-height: 360px; }
.cats[data-n="5"] .cat:nth-child(5) { grid-column: span 8; }
.cats[data-n="4"] .cat:nth-child(4) { grid-column: span 12; min-height: 340px; }
.cat__media { position: absolute; inset: 0; z-index: -2; }
.cat__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1600ms var(--ease); }
.cat.is-open .cat__media img { transform: scale(1); }
.cat::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 11, 8, 0) 40%, rgba(14, 11, 8, 0.72)); }
.cat__doors { position: absolute; inset: 0; z-index: 2; display: flex; pointer-events: none; transform-style: preserve-3d; }
.door { flex: 1 1 50%; position: relative; background-image: var(--veneer); background-size: cover; background-position: center; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.25); transition: transform 1500ms var(--ease-io), opacity 600ms linear 1100ms; backface-visibility: hidden; }
.door--l { transform-origin: 0 50%; background-position: 0 50%; }
.door--r { transform-origin: 100% 50%; background-position: 100% 50%; }
.door--l::after, .door--r::after { content: ""; position: absolute; top: 50%; width: 2px; height: 22%; transform: translateY(-50%); background: rgba(14, 11, 8, 0.55); box-shadow: 1px 0 0 rgba(255, 255, 255, 0.12); }
.door--l::after { right: 14px; } .door--r::after { left: 14px; }
.door--l::before { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 3px; background: rgba(14, 11, 8, 0.6); }
.cat.is-open .door--l { transform: rotateY(-104deg); opacity: 0; transition-delay: var(--d, 0ms), calc(var(--d, 0ms) + 1000ms); }
.cat.is-open .door--r { transform: rotateY(104deg); opacity: 0; transition-delay: var(--d, 0ms), calc(var(--d, 0ms) + 1000ms); }
.cat__body { position: absolute; inset: auto 0 0 0; display: grid; gap: 6px; padding: clamp(18px, 2.2vw, 30px); }
.cat__n { font: 500 12px/1 var(--mono); letter-spacing: 0.1em; color: rgba(255, 255, 255, 0.7); }
.cat__t { font: 400 clamp(28px, 2.8vw, 44px)/1.02 var(--display); }
.cat:nth-child(6n + 1) .cat__t { font-size: clamp(34px, 4vw, 60px); }
.cat__x { max-width: 38ch; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, 0.82); }
.cat__go { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; font: 600 12px/1 var(--sans); font-variation-settings: "wdth" 115; letter-spacing: 0.12em; text-transform: uppercase; }
.cat__go i { font-style: normal; transition: transform 320ms var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .cat:hover .cat__media img { transform: scale(1.04); }
  .cat:hover .cat__go i { transform: translateX(6px); }
}
.cat:focus-visible { outline-offset: 4px; }
@media (max-width: 1023px) {
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat, .cat:nth-child(n) { grid-column: span 1; grid-row: auto; min-height: 320px; }
  .cat:nth-child(6n + 1) { grid-column: span 2; min-height: 420px; }
  .cats[data-n="5"] .cat:nth-child(5), .cats[data-n="4"] .cat:nth-child(4) { grid-column: span 1; }
  .cats[data-n="4"] .cat:nth-child(4), .cats[data-n="6"] .cat:nth-child(6) { grid-column: span 2; }
}
@media (max-width: 599px) {
  .cats { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .cat, .cat:nth-child(n), .cat:nth-child(6n + 1), .cats[data-n="5"] .cat:nth-child(5), .cats[data-n="4"] .cat:nth-child(4), .cats[data-n="6"] .cat:nth-child(6) { grid-column: auto; min-height: 300px; }
  .cat:nth-child(1) { min-height: 380px; }
}
@media (prefers-reduced-motion: reduce) { .cat__doors { display: none; } .cat__media img { transform: none; transition: none; } }

/* ───── Манифест ───── */
.mani__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.mani__pane { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--walnut); }
.mani__pane img { width: 100%; height: 100%; object-fit: cover; }
.mani__veil { position: absolute; inset: 0; background: var(--stone); transform-origin: 50% 0; transform: scaleY(1); will-change: transform; }
.mani__veil::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); }
.section--stone .mani__veil { background: var(--stone); }
.mani__text { margin-top: 22px; font: 400 clamp(28px, 3.4vw, 50px)/1.16 var(--display); color: var(--ink); text-wrap: pretty; }
.mani__words .w { color: rgba(23, 20, 15, 0.18); transition: color 420ms var(--ease); }
.mani__words .w.is-on { color: var(--ink); }
.figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(32px, 4vw, 56px); padding-top: 24px; border-top: 1px solid var(--line); }
.figs li { display: grid; gap: 6px; }
.figs b { font: 400 clamp(34px, 4vw, 56px)/1 var(--display); color: var(--walnut); }
.figs span { font-size: 14px; color: var(--muted); }
@media (max-width: 799px) {
  .mani__grid { grid-template-columns: minmax(0, 1fr); }
  .mani__pane { aspect-ratio: 16 / 9; order: 2; }
  .figs { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .figs li { grid-template-columns: 120px minmax(0, 1fr); align-items: baseline; }
}
@media (prefers-reduced-motion: reduce) { .mani__veil { display: none; } .mani__words .w { color: var(--ink); transition: none; } }

/* ───── Работы ───── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -12px 0 28px; }
.chip { min-height: 44px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: transparent; cursor: pointer; font: 500 14px/1 var(--sans); color: var(--text); transition: background-color 220ms var(--ease), color 220ms var(--ease), border-color 220ms var(--ease); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
@media (hover: hover) and (pointer: fine) { .chip:hover { border-color: var(--ink); } }
.works { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(220px, 26vw, 380px); gap: 14px; }
.work { position: relative; min-width: 0; grid-column: span 4; display: flex; flex-direction: column; }
.work.w7 { grid-column: span 7; } .work.w5 { grid-column: span 5; } .work.w4 { grid-column: span 4; } .work.w12 { grid-column: span 12; }
.work__open { position: relative; flex: 1 1 auto; min-height: 0; display: block; width: 100%; padding: 0; border: 0; background: var(--stone); cursor: zoom-in; overflow: hidden; }
.work__media, .work__media img, .work__media video { display: block; width: 100%; height: 100%; }
.work__media img, .work__media video { object-fit: cover; transition: transform 900ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .work__open:hover img, .work__open:hover video { transform: scale(1.035); } }
.work__cap { display: flex; gap: 12px; align-items: baseline; padding-top: 10px; font-size: 14px; color: var(--muted); min-width: 0; }
.work__cap small { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 11px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--walnut); }
.work__cap span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.work--video .work__open::after { content: "▶"; position: absolute; left: 14px; bottom: 14px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, 0.9); color: var(--ink); font-size: 12px; }
::view-transition-group(*) { animation-duration: 520ms; animation-timing-function: cubic-bezier(0.32, 0.72, 0, 1); }
@media (max-width: 719px) {
  .works { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 210px; gap: 10px; }
  .work, .work.w7, .work.w5, .work.w4 { grid-column: span 1; }
  .work.w2, .work.w12 { grid-column: span 2; }
  .work.w2 { grid-row: span 1; }
  .work__cap { padding-top: 6px; font-size: 13px; }
  .work__cap span { display: none; }
}
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }

/* Просмотр во весь экран */
.lb { width: min(1200px, 100% - 32px); max-width: none; max-height: calc(100svh - 32px); padding: 0; border: 0; background: var(--deep); color: var(--on-deep); overflow: hidden; opacity: 0; transform: translate3d(0, 16px, 0) scale(0.985); transition: opacity 320ms var(--ease), transform 420ms var(--ease), overlay 420ms allow-discrete, display 420ms allow-discrete; }
.lb[open] { opacity: 1; transform: none; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
@starting-style { .lb[open] { opacity: 0; transform: translate3d(0, 16px, 0) scale(0.985); } }
.lb::backdrop { background: rgba(14, 11, 8, 0.78); }
.lb__media { min-height: 0; display: grid; place-items: center; background: #0d0b09; touch-action: pan-y; }
.lb__media img, .lb__media video { max-width: 100%; max-height: calc(100svh - 140px); width: auto; height: auto; object-fit: contain; }
.lb__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 14px 18px; }
.lb__cap { font-size: 15px; min-width: 0; }
.lb__cap b { font: 500 12px/1 var(--mono); margin-right: 10px; color: var(--led); }
.lb__btn { position: absolute; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--ink); font-size: 20px; cursor: pointer; display: grid; place-items: center; }
.lb__close { top: 12px; right: 12px; }
.lb__prev { left: 12px; top: 40%; } .lb__next { right: 12px; top: 40%; }
@media (max-width: 599px) { .lb { width: 100%; max-height: 100svh; height: 100svh; } .lb__bar .btn { width: 100%; } .lb__prev, .lb__next { top: auto; bottom: 120px; } }
@media (prefers-reduced-motion: reduce) { .lb { transition: none; } }

/* ───── Процесс: чертёж ───── */
.proc__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.proc__stage { position: sticky; top: calc(var(--nav-h) + 24px); }
.board { position: relative; aspect-ratio: 420 / 460; max-height: calc(100svh - var(--nav-h) - 64px); margin: 0 auto; background: var(--paper); background-image: linear-gradient(rgba(23, 20, 15, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(23, 20, 15, 0.05) 1px, transparent 1px); background-size: 24px 24px; border: 1px solid var(--line); overflow: hidden; }
.board__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity 900ms var(--ease), transform 1400ms var(--ease); }
.dw { position: relative; width: 100%; height: 100%; display: block; }
.dw .ln { fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-linecap: square; stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1300ms var(--ease-io), stroke 600ms var(--ease); }
.dw .dw__m .ln { stroke: var(--walnut); }
.dw .ln.dash { stroke-dasharray: 0.06 0.04; stroke-dashoffset: 0; opacity: 0; transition: opacity 600ms var(--ease) 900ms; }
.dw .ln--depth { stroke-opacity: 0.6; }
.dw__t { font: 500 13px/1 var(--mono); fill: var(--walnut); opacity: 0; transition: opacity 500ms var(--ease) 900ms; }
.wd { fill: url(#veneerPat); transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); transition: transform 1100ms var(--ease-io); }
.wd--side { fill: url(#veneerPat); filter: brightness(0.62); }
.wd--2 { transition-delay: 120ms; } .wd--3 { transition-delay: 240ms; } .wd--4 { transition-delay: 300ms; } .wd--side { transition-delay: 380ms; }
.dw__led path { fill: none; stroke: var(--led); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; filter: drop-shadow(0 4px 6px rgba(255, 190, 110, 0.9)); transition: stroke-dashoffset 900ms var(--ease) 600ms; }
.proc[data-stage="1"] .dw__m .ln, .proc[data-stage="2"] .dw__m .ln, .proc[data-stage="3"] .dw__m .ln, .proc[data-stage="4"] .dw__m .ln { stroke-dashoffset: 0; }
.proc:not([data-stage="1"]) .dw__o .ln { stroke-dashoffset: 0; }
.proc[data-stage="1"] .dw__m .dash, .proc[data-stage="2"] .dw__m .dash, .proc[data-stage="3"] .dw__m .dash, .proc[data-stage="4"] .dw__m .dash { opacity: 1; }
.proc .dw__t { opacity: 1; }
.proc[data-stage="3"] .wd, .proc[data-stage="4"] .wd { transform: none; }
.proc[data-stage="3"] .dw__led path, .proc[data-stage="4"] .dw__led path { stroke-dashoffset: 0; }
.proc[data-stage="4"] .board__photo { opacity: 1; transform: none; }
.proc[data-stage="4"] .wd, .proc[data-stage="4"] .dw__led { opacity: 0; transition: opacity 700ms var(--ease); }
.proc[data-stage="4"] .dw .ln { stroke: rgba(255, 255, 255, 0.82); }
.proc[data-stage="4"] .dw__t { fill: #fff; }
.board__legend { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 6px; }
.board__legend li { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--card); font: 500 11px/1 var(--mono); color: var(--muted); transition: background-color 300ms var(--ease), color 300ms var(--ease); }
.proc[data-stage="1"] .board__legend li:nth-child(-n+1), .proc[data-stage="2"] .board__legend li:nth-child(-n+2), .proc[data-stage="3"] .board__legend li:nth-child(-n+3), .proc[data-stage="4"] .board__legend li { background: var(--ink); color: #fff; border-color: var(--ink); }
.steps { display: grid; gap: 0; padding: 6vh 0 10vh; }
.step { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: clamp(36px, 7vh, 72px) 0; border-top: 1px solid var(--line); opacity: 0.34; transition: opacity 500ms var(--ease); }
.step.is-on { opacity: 1; }
.step__n { font: 500 13px/2.4 var(--mono); color: var(--walnut); }
.step__t { font: 400 clamp(28px, 3vw, 44px)/1.08 var(--display); color: var(--ink); }
.step__x { margin-top: 12px; max-width: 46ch; color: var(--muted); }
@media (max-width: 899px) {
  .proc__grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .proc__stage { top: calc(var(--nav-h) + 6px); z-index: 2; padding-bottom: 10px; background: linear-gradient(var(--card) 88%, rgba(251, 249, 246, 0)); }
  .board { height: 40svh; aspect-ratio: auto; width: auto; max-width: 100%; }
  .steps { padding: 4vh 0 22vh; }
  .step { grid-template-columns: 44px minmax(0, 1fr); padding: 28px 0; }
}
@media (prefers-reduced-motion: reduce) { .dw .ln, .wd, .dw__led path, .board__photo, .dw__t, .step, .proc .dw__led { transition: none !important; } }

/* ───── Материалы ───── */
.mat { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.4fr); gap: clamp(24px, 4vw, 64px); align-items: stretch; }
.mat__tabs { display: grid; align-content: start; border-top: 1px solid var(--line); }
.sw { display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 10px 4px; border: 0; border-bottom: 1px solid var(--line); background: none; cursor: pointer; text-align: left; transition: color 220ms var(--ease); color: var(--muted); }
.sw__dot { flex: none; width: 40px; height: 40px; border-radius: 50%; background-size: cover; background-position: center; box-shadow: 0 0 0 1px var(--line); transition: transform 300ms var(--ease), box-shadow 300ms var(--ease); }
.sw__t { font: 400 clamp(22px, 2vw, 30px)/1.1 var(--display); }
.sw[aria-selected="true"] { color: var(--ink); }
.sw[aria-selected="true"] .sw__dot { transform: scale(1.12); box-shadow: 0 0 0 2px var(--stone), 0 0 0 3px var(--ink); }
@media (hover: hover) and (pointer: fine) { .sw:hover { color: var(--ink); } }
.mat__pane { display: grid; grid-template-rows: minmax(260px, 1fr) auto; background: var(--card); border: 1px solid var(--line); outline-offset: 4px; }
.mat__swatch { position: relative; min-height: 340px; overflow: hidden; background: var(--walnut); }
.mat__layer { position: absolute; inset: 0; background-size: cover; background-position: center; clip-path: inset(0 100% 0 0); transition: clip-path 900ms var(--ease-io); }
.mat__layer.is-in { clip-path: inset(0 0 0 0); }
.mat__info { display: grid; gap: 10px; padding: clamp(20px, 3vw, 36px); }
.mat__name { font: 400 clamp(30px, 3vw, 46px)/1.05 var(--display); color: var(--ink); }
.mat__text { max-width: 52ch; color: var(--muted); }
.mat__use { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 15px; color: var(--text); }
.mat__use small { font: 500 11px/2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--walnut); }
@media (max-width: 899px) {
  .mat { grid-template-columns: minmax(0, 1fr); }
  .mat__tabs { display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; border-top: 0; padding: 4px 2px 6px; scroll-snap-type: x proximity; }
  .mat__tabs::-webkit-scrollbar { display: none; }
  .sw { flex: none; flex-direction: column; gap: 8px; min-height: 0; width: 92px; padding: 6px 0; border: 0; text-align: center; scroll-snap-align: start; }
  .sw__dot { width: 56px; height: 56px; }
  .sw__t { font: 500 12px/1.25 var(--sans); }
  .mat__swatch { min-height: 240px; }
}
@media (prefers-reduced-motion: reduce) { .mat__layer { transition: none; } }

/* ───── Корпоративным клиентам ───── */
.corp__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.corp__copy { position: sticky; top: calc(var(--nav-h) + 32px); display: grid; gap: 18px; justify-items: start; }
.corp__text { max-width: 46ch; font-size: 18px; color: rgba(239, 233, 224, 0.78); }
.corp__list { border-top: 1px solid rgba(239, 233, 224, 0.16); }
.row { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 26px 0; border-bottom: 1px solid rgba(239, 233, 224, 0.16); color: var(--on-deep); text-decoration: none; isolation: isolate; }
.row::before { content: ""; position: absolute; inset: 0 -16px; z-index: -1; background: var(--walnut); transform: scaleY(0); transform-origin: 50% 100%; transition: transform 420ms var(--ease); }
.row__thumb { display: none; }
.row__n { font: 500 12px/1 var(--mono); color: rgba(239, 233, 224, 0.6); }
.row__b { display: grid; gap: 6px; }
.row__b b { font: 400 clamp(26px, 2.6vw, 40px)/1.08 var(--display); font-weight: 400; }
.row__b span { font-size: 15px; color: rgba(239, 233, 224, 0.7); }
.row__ar { font-style: normal; font-size: 22px; transition: transform 320ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .row:hover::before { transform: none; } .row:hover .row__ar { transform: translateX(6px) rotate(-45deg); } }
.row:focus-visible::before { transform: none; }
.hfloat { position: fixed; left: 0; top: 0; z-index: 45; width: 280px; aspect-ratio: 4 / 3; margin: 0; pointer-events: none; }
.hfloat img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(0.9) rotate(-2deg); transition: opacity 240ms var(--ease), transform 450ms var(--ease); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7); }
.hfloat.is-on img { opacity: 1; transform: none; }
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: clamp(48px, 6vw, 88px); padding-top: 28px; border-top: 1px solid rgba(239, 233, 224, 0.16); }
.points li { display: grid; gap: 8px; align-content: start; }
.pt__n { font: 500 12px/1 var(--mono); color: var(--led); }
.points b { font: 400 26px/1.15 var(--display); font-weight: 400; color: var(--on-deep); }
.points span { font-size: 15px; color: rgba(239, 233, 224, 0.7); }
@media (max-width: 899px) {
  .corp__grid { grid-template-columns: minmax(0, 1fr); }
  .corp__copy { position: static; }
  .row { grid-template-columns: 72px minmax(0, 1fr) auto; }
  .row__n { display: none; }
  .row__thumb { display: block; width: 72px; aspect-ratio: 1; object-fit: cover; }
  .points { grid-template-columns: minmax(0, 1fr); }
}

/* ───── Мастерская ───── */
.at__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.at__pic { aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone); }
.at__pic img { width: 100%; height: 100%; object-fit: cover; }
.at__copy { display: grid; gap: 18px; justify-items: start; }
.at__text { max-width: 46ch; font-size: 18px; color: var(--muted); }
.at__clip { position: relative; width: min(240px, 60%); margin-top: 8px; }
.at__clip video { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; background: var(--stone); border-radius: 22px; box-shadow: 0 0 0 6px var(--ink), 0 30px 50px -24px rgba(0, 0, 0, 0.55); }
.at__clip figcaption { margin-top: 18px; font: 500 12px/1.4 var(--mono); letter-spacing: 0.06em; color: var(--muted); }
@media (max-width: 899px) { .at__grid { grid-template-columns: minmax(0, 1fr); } }

/* Шторка фото снизу вверх; текст — подъём. */
.reveal { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity 900ms var(--ease), transform 900ms var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-pic img { clip-path: inset(100% 0 0 0); transform: scale(1.06); transition: clip-path 1300ms var(--ease-io), transform 1600ms var(--ease); }
.reveal-pic.is-in img { clip-path: inset(0 0 0 0); transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal, .reveal-pic img { opacity: 1; transform: none; clip-path: none; transition: none; } }

/* ───── Отзывы ───── */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.qcard { display: grid; gap: 18px; align-content: space-between; padding: clamp(22px, 2.6vw, 34px); background: var(--paper); border: 1px solid var(--line); }
.qcard blockquote { font: 400 clamp(21px, 1.8vw, 26px)/1.3 var(--display); color: var(--ink); }
.qcard figcaption { display: grid; gap: 2px; font-size: 14px; }
.qcard figcaption span { color: var(--muted); }
@media (max-width: 899px) { .quotes { grid-template-columns: minmax(0, 1fr); } }
html[data-tpl="furniture-atelier"] .rk-rv__card { border-radius: 0; }

/* ───── Заявка ───── */
.q__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.9fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.q__card { position: relative; background: var(--card); border: 1px solid var(--line); padding: clamp(22px, 3.4vw, 48px); }
.q__progress { position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--line); overflow: hidden; }
.q__progress i { position: absolute; inset: 0; background: var(--walnut); transform-origin: 0 50%; transform: scaleX(0.25); transition: transform 500ms var(--ease); }
.q__count { font: 500 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.q__count b { color: var(--ink); font-weight: 500; }
.qstep { display: grid; gap: 18px; margin-top: 18px; }
.qstep.is-cur { animation: qIn 420ms var(--ease); }
@keyframes qIn { from { opacity: 0; transform: translate3d(0, 10px, 0); } }
.qstep legend { padding: 0; margin-bottom: 4px; font: 400 clamp(30px, 3vw, 44px)/1.08 var(--display); color: var(--ink); }
.qstep legend:focus { outline: none; }
.q__hint, .q__sub { font-size: 15px; color: var(--muted); }
.q__sub { font: 600 12px/1.3 var(--sans); font-variation-settings: "wdth" 115; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text); margin-bottom: 8px; }
.picks { display: flex; flex-wrap: wrap; gap: 10px; }
.pick { position: relative; min-height: 52px; padding: 0 20px 0 44px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); cursor: pointer; font: 500 16px/1.2 var(--sans); text-align: left; transition: border-color 200ms var(--ease), background-color 200ms var(--ease), color 200ms var(--ease); }
.pick::before { content: ""; position: absolute; left: 16px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border: 1px solid currentColor; border-radius: 2px; opacity: 0.6; }
.pick::after { content: ""; position: absolute; left: 21px; top: 50%; width: 5px; height: 9px; margin-top: -6px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0.4); opacity: 0; transition: transform 240ms cubic-bezier(0.34, 1.56, 0.64, 1), opacity 160ms; }
.pick[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.pick[aria-pressed="true"]::before { opacity: 1; background: var(--walnut); border-color: var(--walnut); }
.pick[aria-pressed="true"]::after { transform: rotate(45deg); opacity: 1; }
.pick:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .pick:hover { border-color: var(--ink); } }
.q__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.fld { display: grid; gap: 6px; }
.fld label { font: 600 12px/1.3 var(--sans); font-variation-settings: "wdth" 112; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text); }
.fld input, .fld textarea { width: 100%; min-height: 52px; padding: 12px 14px; border: 1px solid rgba(23, 20, 15, 0.28); border-radius: var(--r); background: #fff; font: 400 16px/1.4 var(--sans); color: var(--ink); transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease); }
.fld textarea { min-height: 96px; resize: vertical; }
.fld input:focus, .fld textarea:focus { outline: none; border-color: var(--walnut); box-shadow: 0 0 0 3px rgba(90, 58, 37, 0.18); }
.fld input:disabled { opacity: 0.45; }
.fld.is-bad input, .fld.is-bad textarea { border-color: #a3341f; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--text); cursor: pointer; }
.check input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--walnut); }
.check.fld { display: flex; }
.fld.check input { width: 22px; min-height: 0; height: 22px; padding: 0; border: 0; box-shadow: none; }
.check.fld.is-bad span { color: #a3341f; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.opt span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 15px; transition: background-color 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease); }
.opt input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.opt input:focus-visible + span { outline: 2px solid var(--walnut); outline-offset: 2px; }
.thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.thumbs:empty { display: none; }
.thumb { position: relative; aspect-ratio: 1; background: var(--stone); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb__name { display: grid; place-items: center; height: 100%; padding: 8px; font: 500 11px/1.3 var(--mono); text-align: center; overflow-wrap: anywhere; }
.thumb__rm { position: absolute; top: 4px; right: 4px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.92); cursor: pointer; font-size: 18px; line-height: 1; }
.add { display: inline-flex; align-items: center; gap: 12px; min-height: 120px; width: 100%; justify-content: center; border: 1px dashed rgba(23, 20, 15, 0.35); border-radius: var(--r); background: var(--paper); cursor: pointer; font: 600 13px/1 var(--sans); font-variation-settings: "wdth" 115; letter-spacing: 0.1em; text-transform: uppercase; transition: border-color 200ms var(--ease), background-color 200ms var(--ease); }
.add i { font-style: normal; font-size: 22px; font-weight: 400; }
@media (hover: hover) and (pointer: fine) { .add:hover { border-color: var(--walnut); background: #fff; } }
.q__status { min-height: 24px; margin-top: 16px; font-size: 15px; color: var(--muted); }
.q__status.is-error { color: #a3341f; }
.q__nav { display: flex; gap: 10px; margin-top: 8px; }
.q__nav .btn--main { margin-left: auto; }
.q__done { display: grid; gap: 12px; justify-items: start; margin-top: 20px; }
.q__done b { font: 400 clamp(30px, 3vw, 44px)/1.08 var(--display); font-weight: 400; color: var(--ink); }
.q__done:focus { outline: none; }
.q__side { position: sticky; top: calc(var(--nav-h) + 20px); display: grid; gap: 14px; }
.q__pic { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper); }
.q__pic img { width: 100%; height: 100%; object-fit: cover; }
.order { padding: 22px 22px 18px; background: var(--ink); color: var(--on-deep); background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px); background-size: 100% 28px; }
.order__title { font: 600 12px/1.2 var(--sans); font-variation-settings: "wdth" 118; letter-spacing: 0.16em; text-transform: uppercase; color: var(--led); }
.order__list { display: grid; gap: 10px; margin-top: 14px; }
.order__list li { display: grid; gap: 2px; padding-bottom: 10px; border-bottom: 1px dashed rgba(239, 233, 224, 0.22); }
.order__list li.is-new { animation: qIn 360ms var(--ease); }
.order__list small { font: 500 11px/1.3 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: rgba(239, 233, 224, 0.6); }
.order__list b { font: 500 15px/1.4 var(--mono); font-weight: 500; overflow-wrap: anywhere; }
.q__alt { display: grid; gap: 10px; padding: 18px 0 0; font-size: 15px; color: var(--muted); }
.q__alt-row { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 999px) { .q__grid { grid-template-columns: minmax(0, 1fr); } .q__side { position: static; } .q__pic { display: none; } }
@media (max-width: 599px) { .q__row { grid-template-columns: minmax(0, 1fr); } .thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .q__nav .btn { flex: 1 1 auto; } .pick { flex: 1 1 100%; } }
@media (prefers-reduced-motion: reduce) { .qstep.is-cur, .order__list li { animation: none; } .q__progress i { transition: none; } }

/* ───── Вопросы ───── */
.faq__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq__side { position: sticky; top: calc(var(--nav-h) + 32px); display: grid; gap: 28px; }
.ask { display: grid; gap: 10px; padding: 24px; background: var(--stone); }
.ask__title { font: 400 26px/1.15 var(--display); color: var(--ink); }
.ask__text { font-size: 15px; color: var(--muted); }
.ask__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 72px; padding: 16px 0; cursor: pointer; list-style: none; font: 400 clamp(21px, 1.9vw, 27px)/1.25 var(--display); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; font: 300 20px/1 var(--sans); transition: transform 300ms var(--ease), background-color 300ms var(--ease), color 300ms var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--ink); color: #fff; }
.faq details p { padding: 0 0 22px; max-width: 64ch; color: var(--muted); }
@media (max-width: 899px) { .faq__grid { grid-template-columns: minmax(0, 1fr); } .faq__side { position: static; } }

/* ───── Контакты ───── */
.visit__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: stretch; }
.visit__main { display: grid; gap: 18px; align-content: start; }
.visit__text { max-width: 46ch; color: var(--muted); }
.reach { border-top: 1px solid var(--line); }
.reach__row { display: grid; gap: 2px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.reach__row small { font: 500 11px/1.4 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--walnut); }
.reach__row b { font: 400 clamp(24px, 2.4vw, 34px)/1.15 var(--display); font-weight: 400; color: var(--ink); overflow-wrap: anywhere; }
.reach__row.is-call b { font-size: clamp(32px, 3.6vw, 52px); }
@media (hover: hover) and (pointer: fine) { .reach__row:hover b { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; } }
.soon { display: grid; gap: 14px; justify-items: start; padding: 24px; background: var(--ink); color: var(--on-deep); }
.soon p { font: 400 26px/1.2 var(--display); }
.soon .btn { background: var(--card); color: var(--ink); }
.where { display: grid; gap: 8px; }
.where__addr { font-size: 18px; color: var(--ink); }
.hours { margin-top: 10px; }
.hours__title { font: 600 12px/1.3 var(--sans); font-variation-settings: "wdth" 115; letter-spacing: 0.12em; text-transform: uppercase; }
.hours ul { margin-top: 8px; display: grid; gap: 4px; max-width: 360px; }
.hours li { display: flex; justify-content: space-between; gap: 16px; font: 400 15px/1.5 var(--mono); }
.visit__pic { min-height: 420px; overflow: hidden; background: var(--paper); }
.visit__pic img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 899px) { .visit__grid { grid-template-columns: minmax(0, 1fr); } .visit__pic { min-height: 0; aspect-ratio: 4 / 3; } }
html[data-tpl="furniture-atelier"] .rk-open { font: 500 14px/1.4 var(--mono); }

/* ───── Подвал: огромная марка во всю ширину (белые буквы на чёрном — как вывеска бренда) ───── */
.footer { background: var(--deep); color: var(--on-deep); overflow: clip; }
.footer .rk-footer a { color: inherit; }
.footer__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; padding: 20px 0; border-top: 1px solid rgba(239, 233, 224, 0.14); font: 500 13px/1.4 var(--mono); color: rgba(239, 233, 224, 0.62); }
.powered { color: rgba(239, 233, 224, 0.62); text-decoration: none; }
.powered b { color: var(--on-deep); }
.giant { position: relative; padding: 0.3em var(--gut) clamp(20px, 3vw, 40px); overflow: clip; }
.giant__name { display: inline-block; white-space: nowrap; font: 700 100px/0.8 var(--sans); font-variation-settings: "wdth" 125; letter-spacing: 0.02em; color: var(--on-deep); }
.giant__name .ch { display: inline-block; transform: translate3d(0, 40%, 0); opacity: 0; transition: transform 1000ms var(--ease), opacity 700ms var(--ease); }
.giant.is-in .ch { transform: none; opacity: 1; }
.giant__dim { position: relative; display: block; height: 1px; margin-top: clamp(14px, 2vw, 24px); background: rgba(239, 233, 224, 0.45); transform: scaleX(0); transform-origin: 0 50%; transition: transform 1400ms var(--ease-io) 300ms; }
.giant__dim::before, .giant__dim::after { content: ""; position: absolute; top: -6px; width: 1px; height: 13px; background: rgba(239, 233, 224, 0.45); }
.giant__dim::before { left: 0; } .giant__dim::after { right: 0; }
.giant.is-in .giant__dim { transform: none; }
body.dock-up .giant { padding-bottom: 96px; }
/* §1191 — логотип сайта вместо имени во всю ширину (nav.foot_logo = "yes"); подвал чёрный вместе с шапкой. */
.giant__name--logo { display: block; white-space: normal; }
.giant__name--logo img { display: block; width: 100%; height: auto; opacity: 0; transform: translate3d(0, 24px, 0); transition: transform 1000ms var(--ease), opacity 700ms var(--ease); }
.giant.is-in .giant__name--logo img { opacity: 1; transform: none; }
html[data-head="black"] .footer { background: #000; }
@media (prefers-reduced-motion: reduce) { .giant__name .ch, .giant__dim, .giant__name--logo img { transform: none; opacity: 1; transition: none; } }

/* ───── Нижняя полоса на телефоне ───── */
.dock { display: none; }
@media (max-width: 719px) {
  .dock { position: fixed; inset: auto 0 0; z-index: 45; display: grid; grid-template-columns: 1fr 1.3fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(244, 240, 234, 0.96); box-shadow: 0 -1px 0 var(--line); transform: translate3d(0, 110%, 0); transition: transform 320ms var(--ease); }
  .dock.is-up { transform: none; }
  html:has(.rk-menu.is-open) .dock, html.menu-open .dock { visibility: hidden; }
  .dock.is-one { grid-template-columns: 1fr; }
  .dock .btn { min-height: 48px; }
}
@media (prefers-reduced-motion: reduce) { .dock { transition: none; } }

/* ───── 404 ───── */
html[data-view="notfound"] main > section:not(#notfound) { display: none !important; }
.nf { min-height: 100svh; display: grid; align-content: center; gap: 22px; padding: calc(var(--nav-h) + 40px) var(--gut) 64px; max-width: 1320px; margin: 0 auto; }
.nf__code { font: 400 clamp(110px, 24vw, 320px)/0.85 var(--display); color: var(--ink); }
.nf__dim { position: relative; display: block; width: min(560px, 100%); height: 1px; background: var(--walnut); }
.nf__dim::before, .nf__dim::after { content: ""; position: absolute; top: -6px; width: 1px; height: 13px; background: var(--walnut); }
.nf__dim::before { left: 0; } .nf__dim::after { right: 0; }
.nf__text { max-width: 52ch; color: var(--muted); }
.nf__list { display: grid; border-top: 1px solid var(--line); max-width: 760px; }
.nf__row { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; font: 400 24px/1.2 var(--display); }
.nf__row i { font-style: normal; }
.nf__cta { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 599px) { .nf__cta .btn { flex: 1 1 100%; } }

/* Общие блоки сайта (страницы, форма, отзывы) — в шрифтах дизайна. */
html[data-tpl="furniture-atelier"] .rk-page { padding-top: calc(var(--nav-h) + 24px); }
html[data-tpl="furniture-atelier"][data-page] .top { background: rgba(244, 240, 234, 0.94); color: var(--ink); }
