/* MODRIX · «Тихий предмет». Токены — из листа 00-hero. */
:root {
  --milk: #f6f5ef;
  --paper: #fbfaf6;
  --card: #efede6;
  --forest: #203f35;
  --forest-press: #132a22;
  --sage: #a9b8a5;
  --sage-ink: #5f7d66;
  --sand: #d8cfc1;
  --graphite: #2b2b2b;
  --text: #2b2b2b;
  --muted: #62655f;
  --line: #e3e0d7;
  --field: #ffffff;

  --display: 'Golos Text', system-ui, sans-serif;
  --body: 'PT Sans', system-ui, sans-serif;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --shadow-card: 0 1px 2px rgba(32, 63, 53, .04), 0 12px 32px -18px rgba(32, 63, 53, .22);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --pad: clamp(16px, 4.4vw, 64px);
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--milk); color: var(--text); font: 18px/1.45 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; color: var(--forest); margin: 0; letter-spacing: -0.035em; }
p { margin: 0; }
.container { width: min(1280px, 100% - 2 * var(--pad)); margin-inline: auto; }

/* кнопки: Default / Hover / Pressed из листа 00 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  background: var(--forest); color: #fff; border: 0; border-radius: 999px;
  font: 600 16px/1 var(--display); padding: 15px 26px; cursor: pointer; white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease), transform .12s;
}
.btn:hover { background: var(--sage); color: var(--forest); }
.btn:active { background: var(--forest-press); color: #fff; transform: scale(.98); }
.btn:focus-visible, .link:focus-visible, .pill:focus-visible, .shape:focus-visible, .swatch:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; }
.btn-sm { padding: 12px 22px; font-size: 15px; }
.btn-lg { padding: 21px 34px; font-size: 19px; }
.btn-block { width: 100%; }
.arrow { width: 16px; height: 2px; background: currentColor; position: relative; display: inline-block; }
.arrow::after { content: ''; position: absolute; right: -1px; top: -4px; width: 8px; height: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); }
.link { display: inline-flex; align-items: center; gap: 12px; font: 600 17px var(--display); color: var(--forest); }
.link:hover { color: var(--sage-ink); }
.eyebrow { font: 500 17px var(--display); color: var(--sage-ink); }
.sub { font-size: clamp(18px, 1.6vw, 22px); color: var(--muted); }
.muted { color: var(--muted); }

/* шапка */
.header { position: fixed; inset: 0 0 auto; z-index: 30; transition: background .3s, box-shadow .3s; }
.header.scrolled { background: rgba(246, 245, 239, .86); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 1px 0 var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; height: 92px; transition: height .3s; }
.header.scrolled .header-row { height: 68px; }
/* Логотип — маска по SVG: цвет задаётся color, файл один на шапку, подвал и заявку. */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--forest); }
.logo-mark { display: block; width: 36px; height: 36px; flex: none; background: currentColor; -webkit-mask: url(../assets/brand/modrix-mark.svg) center / contain no-repeat; mask: url(../assets/brand/modrix-mark.svg) center / contain no-repeat; }
.logo-word { display: block; height: 28px; aspect-ratio: 459 / 100; background: currentColor; -webkit-mask: url(../assets/brand/modrix.svg) center / contain no-repeat; mask: url(../assets/brand/modrix.svg) center / contain no-repeat; }
.nav { display: flex; gap: clamp(20px, 3.4vw, 46px); margin-left: auto; margin-right: clamp(20px, 6vw, 100px); font: 500 16px var(--display); color: var(--graphite); }
.nav a { white-space: nowrap; }
.nav a:hover { color: var(--sage-ink); }
.burger { display: none; width: 40px; height: 40px; border: 0; background: none; padding: 9px 6px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.burger span { height: 2px; background: var(--graphite); border-radius: 2px; transition: transform .25s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* первый экран */
/* --copy-w: ширина колонки текста до растения на фото; фото обрезается по 70%, и при любой ширине окна оно начинается около 48vw */
.hero { --copy-w: calc(45vw - max(var(--pad), (100vw - 1280px) / 2)); position: relative; min-height: clamp(620px, 56.3vw, 920px); display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
/* прижато к верху: при обрезке по высоте теряется стол, а не верх панели под шапкой */
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 0; transition: opacity .5s var(--ease); }
.hero-bg img.fading { opacity: 0; }
.hero-copy { position: relative; padding-top: 70px; display: grid; gap: 24px; justify-items: start; }
.hero-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 14px; border-radius: 999px; background: rgba(251, 250, 246, .72); box-shadow: inset 0 0 0 1px var(--line); font: 500 15px/1.2 var(--display); color: var(--forest); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hero-badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--sage-ink); }
/* строки заголовка фиксированы: при свободном переносе на узких экранах оставалось по слову в строке */
.hero h1 { font-size: min(68px, var(--copy-w) / 9.4); line-height: 1.02; letter-spacing: -0.04em; }
.hero h1 span { display: block; white-space: nowrap; }
.hero h1 .accent { color: var(--sage-ink); }
.hero .lead { max-width: var(--copy-w); font-size: clamp(17px, 1.45vw, 21px); color: #3f423d; line-height: 1.4; text-wrap: pretty; }
.hero .lead span { display: block; }
.hero-facts { max-width: var(--copy-w); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin: -4px 0 0; padding: 0; list-style: none; font: 500 16px/1.3 var(--display); color: var(--muted); }
.hero-facts li { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.hero-facts li::before { content: ''; flex: none; width: 10px; height: 5px; margin-top: -3px; border: solid var(--sage-ink); border-width: 0 0 2px 2px; rotate: -45deg; }
.hero-facts b { font-weight: 700; color: var(--forest); }
.hero-cta { display: flex; align-items: center; gap: 30px; margin-top: 10px; flex-wrap: wrap; }
/* переключатель в колонке текста: на фото под панелью стоит стол с предметами */
.hero-variants { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 8px; }
.dots { display: flex; gap: 14px; }
.dot { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--c); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); transition: transform .2s var(--ease), box-shadow .2s; }
.dot:hover { transform: scale(1.1); }
.dot[aria-checked="true"] { box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), 0 0 0 3px var(--milk), 0 0 0 5px var(--forest); }
.hero-note { font-size: 15px; color: var(--muted); }

/* секции */
.section { padding: clamp(72px, 8vw, 120px) 0 0; }
.sec-head { display: grid; gap: 10px; margin-bottom: clamp(28px, 3vw, 44px); }
.sec-head.row { grid-template-columns: 1fr auto; align-items: end; gap: 24px; }
.section h2 { font-size: clamp(40px, 5.2vw, 72px); line-height: .98; }
.h2-sm { font-size: clamp(30px, 3.2vw, 44px) !important; margin-bottom: 28px; }

/* преимущества */
.benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.benefit { position: relative; display: grid; grid-template-columns: minmax(200px, 1fr) 1.1fr; min-height: 300px; border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(110deg, #f3f2ec 0%, var(--card) 100%); }
.b-text { padding: clamp(24px, 3vw, 40px); display: grid; gap: 14px; align-content: start; z-index: 1; }
.benefit h3 { font-size: clamp(30px, 3vw, 42px); line-height: 1; }
.benefit p { font-size: clamp(17px, 1.5vw, 21px); color: var(--muted); max-width: 16ch; }
.benefit img { width: 100%; height: 100%; object-fit: cover; object-position: left center; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%); mask-image: linear-gradient(90deg, transparent 0, #000 16%); }

/* интерьеры */
.pills { display: flex; gap: 10px; }
.pill { border: 0; border-radius: 999px; padding: 14px 30px; background: #ecebe4; font: 500 16px var(--display); cursor: pointer; transition: background .2s, color .2s; }
.pill:hover { background: #e2e0d7; }
.pill[aria-pressed="true"] { background: var(--forest); color: #fff; }
/* Высота кадра — от высоты окна, чтобы фото целиком помещалось под шапкой вместе с панелью управления. */
.rail {
  --rail-h: clamp(360px, calc(100vh - 210px), 1040px);
  --gut: max(var(--pad), (100% - 1280px) / 2);
  position: relative; overflow: hidden; touch-action: pan-y; cursor: grab;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; outline: none;
}
@supports (height: 100svh) { .rail { --rail-h: clamp(360px, calc(100svh - 210px), 1040px); } }
.rail.dragging { cursor: grabbing; }
.rail:focus-visible .rail-track { outline: 3px solid var(--sage); outline-offset: 6px; border-radius: var(--r-lg); }
.rail-track { display: flex; gap: clamp(12px, 1.3vw, 20px); padding-inline: var(--gut); width: max-content; min-width: 100%; will-change: transform; transition: opacity .18s var(--ease); }
.rail-track.swap { opacity: 0; }
.room {
  --par: 0%;
  position: relative; margin: 0; flex: none; cursor: inherit;
  width: min(calc(var(--rail-h) * .75), calc(100vw - 2 * var(--pad) - 36px));
  aspect-ratio: 3 / 4; border-radius: var(--r-lg); overflow: hidden; background: var(--card);
  transition: transform .45s cubic-bezier(.3, 1.4, .5, 1);
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.room[hidden] { display: none; }
.room.pressed { transform: scale(.975); transition-duration: .2s; transition-timing-function: var(--ease); }
.room .ph { position: absolute; inset: 0; }
.room img { width: 100%; height: 100%; object-fit: cover; transform: translate3d(var(--par), 0, 0) scale(1.14); pointer-events: none; }
.room figcaption {
  position: absolute; inset: auto 0 0; display: flex; justify-content: space-between; align-items: end; gap: 16px;
  padding: clamp(60px, 9%, 110px) clamp(18px, 2vw, 28px) clamp(18px, 2vw, 26px);
  background: linear-gradient(transparent, rgba(16, 24, 20, .55)); color: #fff;
}
.room b { font: 800 clamp(22px, 2vw, 30px)/1.05 var(--display); letter-spacing: -0.02em; display: block; }
.room small { display: block; margin-top: 6px; font-size: 15px; opacity: .85; }
.room-go {
  flex: none; display: inline-flex; align-items: center; height: 48px; padding: 0 17px; gap: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .92); color: var(--forest); font: 600 15px var(--display); white-space: nowrap;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.room-go span { max-width: 0; overflow: hidden; opacity: 0; transition: max-width .4s var(--ease), opacity .3s, margin .4s var(--ease); }
.room-go .arrow { width: 14px; }
@media (hover: hover) {
  .room:hover .room-go span { max-width: 140px; opacity: 1; margin-right: 12px; }
}
.rail-bar { display: flex; align-items: center; gap: 24px; margin-top: clamp(18px, 2vw, 28px); }
.rail-progress { flex: 1; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.rail-progress i { display: block; height: 100%; width: 30%; border-radius: inherit; background: var(--forest); }
.rail-count { display: none; font: 500 15px var(--display); color: var(--muted); font-variant-numeric: tabular-nums; }
.rail-nav { display: flex; gap: 10px; }
.round { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; border: 0; background: #ecebe4; color: var(--forest); cursor: pointer; transition: background .2s, opacity .2s, transform .12s; }
.round svg { width: 22px; height: 22px; }
.round:hover:not(:disabled) { background: var(--forest); color: #fff; }
.round:active:not(:disabled) { transform: scale(.94); }
.round:disabled { opacity: .4; cursor: default; }
.round:focus-visible { outline: 3px solid var(--sage); outline-offset: 3px; }

/* конструктор */
.build-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 24px; align-items: stretch; }
.stage-col { position: relative; min-height: 780px; border-radius: var(--r-lg); background: #e9e4dc; overflow: hidden; isolation: isolate; }
.stage-copy { position: absolute; left: clamp(24px, 3vw, 40px); top: clamp(48px, 7%, 80px); z-index: 3; display: grid; gap: 12px; max-width: 32%; pointer-events: none; }
.stage-copy h2 { font-size: clamp(36px, 3.8vw, 54px); line-height: .98; }
.stage { position: absolute; inset: 0; overflow: hidden; }
.wall-photo { position: absolute; max-width: none; user-select: none; pointer-events: none; transition: opacity .35s var(--ease), filter .35s; }
.wall-canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; touch-action: pan-y; }
.stage.moving .wall-canvas { cursor: grabbing !important; }
.wall-fg { position: absolute; z-index: 1; max-width: none; user-select: none; pointer-events: none; transition: opacity .35s var(--ease), filter .35s; }
.stage.peek .wall-photo, .stage.peek .wall-fg { opacity: .4; filter: blur(2px); }
.stage.peek .dim { opacity: 0; }
.dim { position: absolute; z-index: 2; pointer-events: none; color: #4c4f49; font: 500 14px var(--display); transition: opacity .2s; text-shadow: 0 0 6px rgba(246, 245, 239, .9); }
.dim-x { height: 1px; background: #8d9089; }
.dim-x::before, .dim-x::after { content: ''; position: absolute; top: -4px; width: 0; height: 0; border: 4px solid transparent; }
.dim-x::before { left: -1px; border-right-color: #8d9089; border-left-width: 0; }
.dim-x::after { right: -1px; border-left-color: #8d9089; border-right-width: 0; }
.dim-x span { position: absolute; left: 50%; bottom: 6px; translate: -50% 0; white-space: nowrap; }
.dim-x.below span { bottom: auto; top: 6px; }
.dim-y { width: 1px; background: #8d9089; }
.dim-y::before, .dim-y::after { content: ''; position: absolute; left: -4px; width: 0; height: 0; border: 4px solid transparent; }
.dim-y::before { top: -1px; border-bottom-color: #8d9089; border-top-width: 0; }
.dim-y::after { bottom: -1px; border-top-color: #8d9089; border-bottom-width: 0; }
.dim-y span { position: absolute; top: 50%; left: 8px; translate: 0 -50%; writing-mode: vertical-rl; white-space: nowrap; }
.scale-chip { position: absolute; z-index: 3; right: 18px; top: 18px; padding: 7px 12px; border-radius: 999px; background: rgba(251, 250, 246, .82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font: 500 13px var(--display); color: var(--forest); }
.scale-chip.warn { color: #8a4b2f; }
.peek-hint { position: absolute; z-index: 3; left: 50%; bottom: 92px; translate: -50% 0; padding: 6px 12px; border-radius: 999px; background: rgba(251, 250, 246, .7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); font: 400 13px var(--display); color: var(--muted); pointer-events: none; white-space: nowrap; transition: opacity .3s; }
.stage.moved .peek-hint { opacity: 0; }
.stage-col.zoomed .stage-copy { opacity: 0; }
.stage-copy { transition: opacity .3s; }
.stage-tools { position: absolute; z-index: 3; left: 0; right: 0; bottom: 30px; display: flex; justify-content: center; align-items: center; gap: 18px; }
.tool { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 2px 8px -2px rgba(0,0,0,.18); display: grid; place-items: center; cursor: pointer; position: relative; color: var(--graphite); transition: background .2s; }
.tool:hover { background: var(--card); }
.tool-wide { width: auto; padding: 0 16px 0 12px; border-radius: 999px; display: inline-flex; gap: 8px; font: 500 14px var(--display); margin-left: 18px; }
.tool-wide[aria-pressed="true"] { background: var(--forest); color: #fff; }
.tool svg { width: 20px; height: 20px; }
.tool small { position: absolute; top: 48px; font-size: 13px; color: var(--graphite); white-space: nowrap; text-shadow: 0 0 6px rgba(246,245,239,.9); }
#z-reset { margin-right: 26px; }
.zoom-val { min-width: 58px; text-align: center; font: 500 15px var(--display); color: var(--graphite); background: rgba(251,250,246,.8); border-radius: 999px; padding: 6px 0; }

.panel { background: var(--paper); border-radius: var(--r-lg); padding: 26px 24px; display: grid; gap: 20px; align-content: start; box-shadow: var(--shadow-card); }
.label { font: 600 17px var(--display); color: var(--graphite); }
.field { display: grid; gap: 10px; }
.hint { font-size: 14px; color: var(--muted); }
.shapes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.shape { border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 12px 4px 8px; display: grid; justify-items: center; gap: 6px; cursor: pointer; font: 400 12px var(--display); color: var(--muted); transition: border-color .2s, background .2s; }
.shape svg { width: 44px; height: 38px; }
.shape:hover { border-color: #c9c6bb; }
.shape[aria-pressed="true"] { background: #e5ebe2; border-color: var(--sage); color: var(--forest); }
.shape[aria-pressed="true"] .shape-fill { fill: var(--sage); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.input { width: 100%; border: 1px solid #d9d6cc; border-radius: var(--r-sm); background: var(--field); padding: 12px 14px; font: 500 17px var(--display); outline: none; transition: border-color .2s, box-shadow .2s; -moz-appearance: textfield; }
.input::-webkit-inner-spin-button { display: none; }
.input:focus { border-color: var(--forest); box-shadow: 0 0 0 3px rgba(169, 184, 165, .45); }
.num-wrap { position: relative; display: block; }
.num-wrap .input { padding-right: 46px; }
.num-arrows { position: absolute; top: 4px; right: 4px; bottom: 4px; width: 34px; display: grid; grid-template-rows: 1fr 1fr; gap: 2px; }
.num-arrows button { border: 0; border-radius: 6px; background: #f0eee7; color: var(--forest); cursor: pointer; display: grid; place-items: center; padding: 0; touch-action: manipulation; transition: background .15s; }
.num-arrows button:hover { background: #e3e7df; }
.num-arrows button:active { background: var(--sage); }
.num-arrows button:disabled { opacity: .35; cursor: default; }
.num-arrows svg { width: 12px; height: 12px; }
.seg-pills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: #f0eee7; border-radius: var(--r-sm); padding: 3px; }
.seg-pills button { border: 0; background: none; border-radius: 8px; padding: 9px 4px; font: 500 15px var(--display); color: var(--graphite); cursor: pointer; transition: background .15s, color .15s; }
.seg-pills button:hover { background: #e6e4dc; }
.seg-pills button[aria-checked="true"] { background: var(--forest); color: #fff; }
.input.invalid { border-color: #c4553f; box-shadow: 0 0 0 3px rgba(196, 85, 63, .15); }
/* Палитра из 14+ цветов: подписи не помещаются, имя выбранного — рядом с заголовком. */
.colors { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px 6px; }
.colors .swatch { font-size: 0; gap: 0; }
.colors .swatch i { width: 40px; height: 40px; }
.color-name { font-weight: 400; color: var(--muted); margin-left: 6px; }
.swatch { border: 0; background: none; display: grid; justify-items: center; gap: 6px; cursor: pointer; font: 400 13px var(--display); color: var(--muted); padding: 0; }
.swatch i { width: 46px; height: 46px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.06); transition: transform .2s var(--ease), box-shadow .2s; }
.swatch:hover i { transform: scale(1.06); }
.swatch[aria-pressed="true"] i { box-shadow: inset 0 0 0 1px rgba(0,0,0,.06), 0 0 0 3px var(--paper), 0 0 0 4.5px var(--forest); }
.swatch[aria-pressed="true"] { color: var(--forest); }
.switch-row { display: flex; align-items: center; gap: 14px; font: 400 16px var(--display); cursor: pointer; }
.switch { appearance: none; width: 42px; height: 24px; border-radius: 999px; background: #d9d7cf; position: relative; margin: 0; cursor: pointer; transition: background .2s; flex: none; }
.switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: translate .2s var(--ease); }
.switch:checked { background: var(--forest); }
.switch:checked::after { translate: 18px 0; }
.btn-outline { display: flex; align-items: center; justify-content: center; gap: 10px; border: 1.5px solid var(--forest); border-radius: 999px; padding: 13px; font: 500 16px var(--display); color: var(--forest); cursor: pointer; transition: background .2s; }
.btn-outline:hover { background: #ecefe8; }
.btn-outline svg { width: 20px; height: 20px; }
.params { border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 12px; }
.params-head { display: flex; justify-content: space-between; align-items: baseline; }
.params-head small { font-size: 13px; color: var(--muted); }
.approx { font-size: 13px; line-height: 1.4; color: var(--muted); }
.os-bill .approx-order { margin-top: 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stats div { background: #f0eee7; border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; }
.stats small { font-size: 13px; color: var(--muted); }
.stats b { font: 600 clamp(17px, 1.5vw, 21px) var(--display); color: var(--graphite); white-space: nowrap; }
.total { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.total b { display: block; font: 800 clamp(32px, 3vw, 40px)/1 var(--display); color: var(--forest); letter-spacing: -0.03em; }
.total small { font-size: 14px; color: var(--muted); }

/* цена */
.price-hero { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 24px; }
.price-copy { display: grid; gap: 16px; }
.big-price { font: 800 clamp(84px, 10vw, 150px)/.9 var(--display); color: var(--forest); letter-spacing: -0.05em; display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.big-price span { font: 500 clamp(22px, 2vw, 30px) var(--display); letter-spacing: -0.01em; color: var(--graphite); }
.price .text { font-size: clamp(18px, 1.6vw, 21px); }
.price-art { width: 100%; aspect-ratio: 1.25; object-fit: cover; object-position: 78% 40%; border-radius: var(--r-lg); -webkit-mask-image: radial-gradient(85% 80% at 60% 45%, #000 60%, transparent 100%); mask-image: radial-gradient(85% 80% at 60% 45%, #000 60%, transparent 100%); }
.examples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 24px; }
.example { border-radius: var(--r); overflow: hidden; background: var(--paper); box-shadow: var(--shadow-card); cursor: pointer; transition: transform .3s var(--ease); }
.example:hover { transform: translateY(-4px); }
.example img { width: 100%; aspect-ratio: 1.6; object-fit: cover; object-position: center 30%; }
.example div { padding: 12px 20px 18px; }
.example span { font-size: 17px; color: var(--graphite); }
.example b { display: block; font: 800 30px/1.1 var(--display); color: var(--forest); letter-spacing: -0.03em; }
.ex-dots { display: none; }

.anatomy-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.part { grid-column: span 5; margin: 0; display: flex; flex-direction: column; background: #fff; border-radius: var(--r-lg); overflow: hidden; }
.part-tall { grid-column: 1 / span 7; grid-row: span 2; }
.part-wide { grid-column: span 7; }
.part-end { grid-column: 6 / span 7; grid-row: 3 / span 2; }
/* Рендеры сняты на белом — белая карточка продолжает их фон, обрезка не видна. */
.part img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: var(--pos, 50% 50%); }
.part-tall img { flex: 1 1 0; min-height: 0; aspect-ratio: auto; }
.part figcaption { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; padding: 18px 24px 24px; }
.part figcaption i { grid-row: span 2; font: 500 15px var(--display); font-style: normal; color: var(--forest); width: 38px; height: 38px; border-radius: 50%; background: #e8ebe3; display: grid; place-items: center; }
.part figcaption b { font: 600 19px var(--display); color: var(--graphite); align-self: center; }
.part figcaption span { font-size: 16px; color: var(--muted); max-width: 46ch; }
.anatomy .sec-head .sec-head { margin: 0; }
.ac-pick { display: grid; gap: 10px; justify-items: end; max-width: 560px; }
.ac-pick p { margin: 0; color: var(--muted); font-size: 15px; }
.ac-pick b { color: var(--forest); font-weight: 600; }
.ac-colors { display: flex; flex-wrap: wrap; justify-content: end; gap: 8px; }
.ac-colors .swatch { font-size: 0; gap: 0; }
.ac-colors .swatch i { width: 30px; height: 30px; }
.part-note { background: var(--forest); color: #fff; padding: clamp(24px, 3vw, 36px); gap: 22px; }
.part-note > b { font: 700 clamp(26px, 2.4vw, 32px)/1 var(--display); }
.part-note ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; font-size: clamp(17px, 1.4vw, 19px); }
.part-note li { display: flex; gap: 12px; align-items: baseline; }
.part-note li::before { content: ''; flex: none; width: 6px; height: 15px; border-radius: 3px; background: var(--sage); transform: translateY(2px); }
.part-note .btn { align-self: start; margin-top: auto; background: #fff; color: var(--forest); }
.part-note .btn:hover { background: var(--sage); }

/* разборка 3D-модели */
.xp { margin-top: 18px; display: grid; grid-template-columns: minmax(0, 1fr) 380px; background: #fff; border-radius: var(--r-lg); overflow: hidden; }
.xp-stage { position: relative; min-height: 640px; cursor: grab; touch-action: none; }
.xp-stage:active { cursor: grabbing; }
.xp-stage canvas { position: absolute; inset: 0; display: block; opacity: 0; transition: opacity .6s var(--ease); }
.xp.ready .xp-stage canvas { opacity: 1; }
.xp-load { position: absolute; inset: 0; margin: 0; display: grid; place-items: center; font: 500 15px var(--display); color: var(--muted); transition: opacity .4s; }
.xp.ready .xp-load { opacity: 0; pointer-events: none; }
.xp-hint, .xp-note { position: absolute; margin: 0; font: 500 14px var(--display); color: var(--muted); pointer-events: none; }
.xp-hint { left: 20px; bottom: 18px; display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: rgba(246, 245, 239, .92); transition: opacity .5s; }
.xp-hint svg { width: 20px; height: 20px; color: var(--forest); }
.xp-stage.touched .xp-hint { opacity: 0; }
.xp-note { right: 20px; top: 18px; font-size: 13px; }
.xp-side { display: flex; flex-direction: column; gap: 18px; padding: clamp(24px, 3vw, 36px); border-left: 1px solid var(--line); }
.xp-side .eyebrow { margin: 0; }
.xp-side h3 { margin: -10px 0 0; font: 700 clamp(26px, 2.3vw, 30px)/1.1 var(--display); color: var(--forest); }
.xp-lead { margin: 0; font-size: 16px; color: var(--muted); }
.xp-range input { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 30px; margin: 0; background: transparent; cursor: pointer; --p: 0%; }
.xp-range input::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(to right, var(--forest) var(--p), var(--line) var(--p)); }
.xp-range input::-moz-range-track { height: 6px; border-radius: 3px; background: var(--line); }
.xp-range input::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--forest); }
.xp-range input::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: #fff; border: 2px solid var(--forest); box-shadow: 0 2px 8px rgba(32, 63, 53, .2); }
.xp-range input::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 2px solid var(--forest); box-shadow: 0 2px 8px rgba(32, 63, 53, .2); }
.xp-range input:focus-visible { outline: 3px solid var(--sage); outline-offset: 4px; border-radius: 6px; }
.xp-scale { display: flex; justify-content: space-between; margin-top: 4px; font-size: 14px; color: var(--muted); }
.xp-play { align-self: start; min-width: 140px; }
.xp-legend { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 2px; }
.xp-legend button { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; padding: 10px 12px; margin: 0 -12px; width: calc(100% + 24px); border: 0; border-radius: var(--r-sm); background: none; text-align: left; font: inherit; color: var(--graphite); cursor: pointer; transition: background .2s; }
.xp-legend button:hover, .xp-legend button[aria-pressed="true"] { background: #eef1ea; }
.xp-legend button:focus-visible { outline: 3px solid var(--sage); outline-offset: -3px; }
.xp-legend b { width: 34px; height: 34px; border-radius: 50%; background: #e8ebe3; display: grid; place-items: center; font: 600 15px var(--display); color: var(--forest); }
.xp-legend span { display: grid; gap: 2px; font: 600 16px var(--display); padding-top: 1px; }
.xp-legend small { font: 400 14px/1.35 var(--body); color: var(--muted); }

.how { padding-top: clamp(56px, 6vw, 80px); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.steps li { display: flex; gap: 16px; padding: 4px 24px 4px 0; }
.steps li + li { border-left: 1px solid var(--line); padding-left: 24px; }
.steps i { font: 500 17px var(--display); font-style: normal; color: var(--forest); width: 44px; height: 44px; border-radius: 50%; background: #e8ebe3; display: grid; place-items: center; flex: none; }
.steps b { display: block; font: 600 17px var(--display); color: var(--graphite); margin-bottom: 4px; }
.steps span { font-size: 15px; color: var(--muted); }
.idea { margin-top: 40px; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 28px 36px; border-radius: var(--r-lg); background: linear-gradient(100deg, #efede6 0%, #e9ece4 100%); flex-wrap: wrap; }
.idea h3 { font-size: clamp(26px, 2.4vw, 32px); }
.idea p { color: var(--muted); margin-top: 4px; }
.footer { padding: 40px 0 48px; font-size: 13px; color: var(--muted); }

[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }

/* планшет */
/* на планшете растение на фото попадает под текст — ставим фото под текст */
@media (min-width: 721px) and (max-width: 960px) {
  .hero { --copy-w: 640px; flex-direction: column; align-items: stretch; min-height: 0; padding-top: 72px; }
  .hero-copy { order: 1; padding-top: 32px; } .hero-bg { order: 2; }
  .hero h1 { font-size: 60px; }
  .hero-bg { position: relative; inset: auto; margin-top: 8px; }
  .hero-bg img { height: auto; aspect-ratio: 4 / 3; object-position: 80% 50%; -webkit-mask-image: linear-gradient(transparent 0, #000 18%); mask-image: linear-gradient(transparent 0, #000 18%); }
}
@media (max-width: 960px) {
  .nav { display: none; }
  .burger { display: flex; }
  .header .btn-sm { margin-left: auto; }
  .nav.open { display: grid; position: absolute; top: 100%; left: 0; right: 0; background: var(--milk); padding: 8px var(--pad) 20px; gap: 0; margin: 0; box-shadow: 0 12px 24px -12px rgba(0,0,0,.15); }
  .nav.open a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
}
@media (max-width: 1080px) {
  .build-grid { grid-template-columns: 1fr; }
  .stage-col { min-height: 640px; }
  .benefit { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 20px 0; }
  .steps li:nth-child(3) { border-left: 0; padding-left: 0; }
  .anatomy-grid { grid-template-columns: 1fr 1fr; }
  .part, .part-wide { grid-column: span 1; }
  .part-tall { grid-column: 1 / -1; grid-row: auto; }
  .part-tall img { flex: none; aspect-ratio: 16 / 9; }
  .xp { grid-template-columns: 1fr; }
  .xp-stage { min-height: 0; aspect-ratio: 4 / 3; }
  .xp-side { border-left: 0; border-top: 1px solid var(--line); }
  .xp-legend { grid-template-columns: 1fr 1fr; column-gap: 24px; }
}

/* телефон — компоновки рассчитаны на 375 px */
@media (max-width: 720px) {
  body { font-size: 17px; }
  .header { background: rgba(246, 245, 239, .9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
  .header-row, .header.scrolled .header-row { height: 64px; gap: 12px; }
  .logo { gap: 8px; }
  .logo-mark { width: 28px; height: 28px; }
  .logo-word { height: 21px; }
  .nav { display: none; }
  .header .btn-sm { margin-left: auto; padding: 10px 20px; }
  .burger { display: flex; }
  .nav.open { display: grid; position: absolute; top: 64px; left: 0; right: 0; background: var(--milk); padding: 8px var(--pad) 20px; gap: 0; margin: 0; box-shadow: 0 12px 24px -12px rgba(0,0,0,.15); }
  .nav.open a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 18px; }

  .hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0; padding-top: 64px; }
  .hero-copy { order: 1; } .hero-bg { order: 2; }
  .hero-copy { padding-top: 20px; gap: 14px; }
  .hero-badge { font-size: 14px; padding: 7px 14px 7px 12px; }
  .hero { --copy-w: 100%; }
  .hero h1 { font-size: clamp(32px, 9.4vw, 44px); }
  .hero .lead { font-size: 17px; }
  .hero .lead span { display: inline; }
  .hero-facts { font-size: 15px; gap: 6px 18px; margin: 0; }
  .hero-cta { flex-direction: column; align-items: stretch; gap: 16px; width: 100%; margin-top: 8px; }
  .hero-cta .btn-lg { padding: 18px; font-size: 18px; }
  .hero-cta .link { justify-content: center; }
  .hero-bg { position: relative; inset: auto; margin-top: -46vw; z-index: -1; }
  .hero-bg img { height: auto; aspect-ratio: 941 / 1672; object-position: center; -webkit-mask-image: linear-gradient(transparent 0, #000 24%); mask-image: linear-gradient(transparent 0, #000 24%); }
  .hero-variants { justify-content: center; width: 100%; gap: 10px; margin-top: 4px; }
  .dot { width: 28px; height: 28px; }
  .hero-note { font-size: 14px; text-align: center; }

  .section { padding-top: 64px; }
  .section h2 { font-size: clamp(36px, 10.6vw, 44px); }
  .sec-head.row { grid-template-columns: 1fr; }
  .benefits { grid-template-columns: 1fr; gap: 12px; }
  .benefit { grid-template-columns: 1fr 1fr; min-height: 150px; border-radius: var(--r); }
  .b-text { padding: 18px 16px; gap: 6px; }
  .benefit h3 { font-size: 26px; }
  .benefit p { font-size: 15px; }

  .pills { gap: 8px; }
  .pill { padding: 11px 20px; font-size: 15px; }
  .rail { --rail-h: clamp(340px, calc(100vh - 190px), 760px); }
  @supports (height: 100svh) { .rail { --rail-h: clamp(340px, calc(100svh - 190px), 760px); } }
  .room b { font-size: 22px; }
  .room small { font-size: 14px; }
  .room-go { height: 44px; padding: 0 15px; }
  .rail-bar { gap: 16px; }
  .rail-count { display: block; }
  .round { width: 44px; height: 44px; }

  .stage-col { min-height: 0; background: none; overflow: visible; display: grid; gap: 8px; isolation: auto; }
  .stage-copy { position: static; max-width: none; }
  .stage { position: relative; inset: auto; height: min(132vw, 560px); margin: 18px 0 6px; border-radius: var(--r); background: #e9e4dc; }
  .stage-tools { position: static; justify-content: start; gap: 8px; margin-bottom: 26px; }
  .zoom-val { min-width: 48px; }
  .tool small { display: none; }
  .tool-wide { margin-left: auto; }
  #z-reset { margin-right: 6px; }
  .peek-hint { bottom: 14px; }
  .scale-chip { right: 10px; top: 10px; font-size: 12px; }
  .panel { padding: 18px 16px; gap: 16px; box-shadow: none; background: transparent; padding-inline: 0; }
  .shapes { gap: 8px; }
  .shape { font-size: 0; padding: 10px 2px; gap: 0; }
  .shape svg { width: 36px; height: 30px; }
  .two { gap: 12px; }
  .colors { gap: 12px 4px; }
  .colors .swatch i { width: 34px; height: 34px; }
  .swatch { font-size: 0; gap: 0; }
  .swatch i { width: 36px; height: 36px; }
  .stats { gap: 6px; }
  .stats div { padding: 8px; }
  .stats b { font-size: 16px; }
  .total { flex-wrap: nowrap; }
  .total b { font-size: 30px; }
  .total .btn { padding: 13px 14px; font-size: 14px; gap: 8px; }
  .total .btn .arrow { width: 12px; }

  .price-hero { grid-template-columns: 1fr; }
  .price-art { display: none; }
  .big-price { font-size: 78px; gap: 6px; flex-direction: column; align-items: start; }
  .examples { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: calc(-1 * var(--pad)); padding: 4px var(--pad) 8px; scrollbar-width: none; }
  .examples::-webkit-scrollbar { display: none; }
  .example { flex: 0 0 62%; scroll-snap-align: start; }
  .example b { font-size: 24px; }
  .ex-dots { display: flex; justify-content: center; gap: 8px; margin-top: 12px; }
  .ex-dots i { width: 8px; height: 8px; border-radius: 50%; background: #d4d2ca; }
  .ex-dots i.on { background: var(--forest); }

  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li { border-left: 0; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .anatomy-grid { grid-template-columns: 1fr; gap: 12px; }
  .ac-pick { justify-items: start; }
  .ac-colors { display: grid; grid-template-columns: repeat(7, 34px); gap: 8px 10px; }
  .ac-colors .swatch i { width: 30px; height: 30px; }
  .part, .part-wide, .part-tall { grid-column: auto; border-radius: var(--r); }
  .part img, .part-tall img { aspect-ratio: 4 / 3; }
  .part-note { order: 1; }
  .xp { margin-top: 12px; border-radius: var(--r); }
  .xp-stage { aspect-ratio: auto; height: min(112vw, 440px); }
  .xp-hint { left: 12px; bottom: 12px; font-size: 13px; }
  .xp-note { right: 14px; top: 12px; font-size: 12px; }
  .xp-side { padding: 20px 16px 22px; gap: 14px; }
  .xp-legend { grid-template-columns: 1fr; }
  .xp-play { width: 100%; }
  .part figcaption { padding: 14px 16px 18px; gap: 2px 12px; }
  .part figcaption b { font-size: 18px; }
  .part figcaption span { font-size: 15px; }
  .idea { padding: 20px; }
  .idea .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; }
}

/* одна секция для сверки в стенде */
body.only .section, body.only .hero, body.only .footer { display: none; }
body.only [data-section].show { display: block; }
body.only .hero.show { display: flex; }
@media (max-width: 720px) { body.only .hero.show { display: flex; } }
body.only main { padding-top: 92px; }
body.only.only-hero main { padding-top: 0; }
@media (max-width: 720px) { body.only main { padding-top: 64px; } body.only.only-hero main { padding-top: 0; } }

/* заявка: полноэкранный dialog поверх сайта */
html.order-open { overflow: hidden; }
.order { position: fixed; inset: 0; width: 100%; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: var(--milk); color: var(--text); overscroll-behavior: contain; }
.order[open] { animation: order-in .5s var(--ease); }
.order[open]::backdrop { background: rgba(32, 63, 53, .32); animation: order-fade .4s var(--ease); }
.order.closing { animation: order-out .26s ease-in forwards; }
.order.closing::backdrop { animation: order-fade .26s ease-in reverse forwards; }
@keyframes order-in { from { opacity: 0; transform: translateY(32px) scale(.985); } }
@keyframes order-out { to { opacity: 0; transform: translateY(24px) scale(.99); } }
@keyframes order-fade { from { opacity: 0; } }
.order-shell { outline: none; height: 100%; display: grid; grid-template-rows: auto 1fr; overflow: hidden; }
.order-top { border-bottom: 1px solid var(--line); background: var(--milk); }
.order-top-row { display: flex; align-items: center; gap: 20px; height: 72px; }
.order-top .logo-mark { width: 30px; height: 30px; }
.order-top .logo-word { height: 24px; }
.order-step { margin-left: auto; font: 500 16px var(--display); color: var(--muted); }
.order-close { width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 2px 8px -2px rgba(0,0,0,.16); display: grid; place-items: center; cursor: pointer; color: var(--graphite); transition: background .2s, transform .2s var(--ease); }
.order-close:hover { background: var(--card); transform: rotate(90deg); }
.order-close svg { width: 22px; height: 22px; }
.order-close:focus-visible, .of-methods button:focus-visible, .os-tabs button:focus-visible { outline: 3px solid var(--sage); outline-offset: 2px; }

.order-body, .order-done, .order-fail { grid-row: 2; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.order-body[hidden], .order-done[hidden], .order-fail[hidden] { display: none; }
.order-body { padding: 32px 0 56px; }
.order-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 28px; align-items: start; }
.order-grid > * { animation: order-in .6s var(--ease) both; }
.order-grid > :nth-child(2) { animation-delay: .08s; }

/* сводка */
.order-sum { position: sticky; top: 0; background: var(--paper); border-radius: var(--r-lg); padding: 18px; display: grid; gap: 18px; box-shadow: var(--shadow-card); }
.os-view { position: relative; }
.os-pic { aspect-ratio: 16 / 11; border-radius: var(--r); overflow: hidden; background: #e9e4dc; }
.os-pic img { width: 100%; height: 100%; object-fit: cover; }
.os-pic img[hidden], .os-draw[hidden] { display: none; }
.os-draw { width: 100%; height: 100%; background: #fff; padding: 18px; background-image: linear-gradient(#f0eee7 1px, transparent 1px), linear-gradient(90deg, #f0eee7 1px, transparent 1px); background-size: 24px 24px; }
.os-draw svg { width: 100%; height: 100%; display: block; }
.os-tabs { position: absolute; left: 12px; top: 12px; width: 220px; grid-template-columns: 1fr 1fr; background: rgba(251, 250, 246, .88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.os-tabs button:disabled { opacity: .4; cursor: default; }
.os-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; padding: 0 6px; }
.os-head h2 { font-size: clamp(26px, 2.4vw, 34px); line-height: 1.05; margin-top: 4px; }
.os-edit { font-size: 15px; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--sage); }
.os-spec { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; margin: 0; padding: 0 6px; }
.os-spec div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.os-spec dt { font-size: 15px; color: var(--muted); }
.os-spec dd { margin: 0; font: 500 15px var(--display); color: var(--graphite); text-align: right; display: flex; align-items: center; }
.os-all { display: none; }
.of-drop-touch { display: none; }
@media (hover: none) { .of-drop-mouse { display: none; } .of-drop-touch { display: inline; } }
.os-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.1); margin-right: 8px; flex: none; }
.os-bill { background: #f0eee7; border-radius: var(--r); padding: 16px 18px; display: grid; gap: 8px; }
.os-bill > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font: 500 16px var(--display); }
.os-bill span small { display: block; font: 400 13px var(--body); color: var(--muted); }
.os-bill b { font-weight: 600; white-space: nowrap; }
.os-bill .os-total { border-top: 1px solid #dedbd1; padding-top: 10px; margin-top: 2px; }
.os-total span { font-weight: 700; color: var(--forest); }
.os-total b { font: 800 32px/1 var(--display); color: var(--forest); letter-spacing: -0.03em; }
.os-bill .hint { margin-top: 4px; }

/* форма */
.order-form { background: var(--paper); border-radius: var(--r-lg); padding: 28px 28px 0; display: grid; gap: 30px; box-shadow: var(--shadow-card); }
.of-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.of-group > * + * { margin-top: 16px; }
.of-group legend { padding: 0; font: 800 24px var(--display); color: var(--forest); letter-spacing: -0.03em; }
.of-field { display: grid; gap: 8px; min-width: 0; align-content: start; }
.label .opt { font: 400 14px var(--body); color: var(--muted); margin-left: 6px; }
.label .opt[hidden] { display: none; }
textarea.input { resize: vertical; min-height: 92px; font: 400 17px/1.4 var(--body); }
.input::placeholder { color: #a4a69f; font-weight: 400; }
.input[aria-invalid] { border-color: #c4553f; box-shadow: 0 0 0 3px rgba(196, 85, 63, .12); }
.of-err { color: #b4472f; font-size: 14px; }
.of-err:empty { display: none; }
.of-methods { display: flex; flex-wrap: wrap; gap: 8px; }
.of-methods button { border: 1px solid #d9d6cc; background: #fff; border-radius: 999px; padding: 10px 18px; font: 500 15px var(--display); cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.of-methods button:hover { border-color: var(--sage); }
.of-methods button[aria-checked="true"] { background: var(--forest); border-color: var(--forest); color: #fff; }
.of-drop { position: relative; display: grid; justify-items: center; gap: 4px; text-align: center; padding: 24px 16px; border: 1.5px dashed #c9c6bb; border-radius: var(--r); background: #fff; color: var(--muted); font-size: 15px; cursor: pointer; transition: border-color .2s, background .2s; }
.of-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.of-drop svg { width: 28px; height: 28px; color: var(--forest); margin-bottom: 4px; }
.of-drop b { color: var(--forest); font-family: var(--display); font-weight: 600; }
.of-drop small { font-size: 13px; }
.of-drop:hover, .of-drop.over { border-color: var(--forest); background: #ecefe8; }
.of-drop.full { opacity: .45; pointer-events: none; }
.of-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.of-files:empty { display: none; }
.of-files li { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 8px; background: #fff; border: 1px solid var(--line); border-radius: 12px; animation: order-in .3s var(--ease); }
.of-files img, .of-ext { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex: none; background: #f0eee7; }
.of-ext { display: grid; place-items: center; font: 700 12px var(--display); text-transform: uppercase; color: var(--forest); }
.of-fname { flex: 1; min-width: 0; display: grid; }
.of-fname b { font: 500 15px var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.of-fname small { font-size: 13px; color: var(--muted); }
.of-files button { width: 36px; height: 36px; border-radius: 50%; border: 0; background: none; color: var(--muted); cursor: pointer; display: grid; place-items: center; flex: none; }
.of-files button:hover { background: #f0eee7; color: var(--graphite); }
.of-files button svg { width: 18px; height: 18px; }
.of-agree { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--muted); cursor: pointer; margin-bottom: -18px; }
.of-check { appearance: none; width: 22px; height: 22px; margin: 0; flex: none; border: 1.5px solid #c9c6bb; border-radius: 6px; background: #fff center / 14px no-repeat; cursor: pointer; transition: background-color .15s, border-color .15s; }
.of-check:checked { background-color: var(--forest); border-color: var(--forest); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 7.5l3 3 6-7'/%3E%3C/svg%3E"); }
.of-check[aria-invalid] { border-color: #c4553f; }
.of-check:focus-visible { outline: 3px solid var(--sage); outline-offset: 2px; }
.of-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.of-submit { position: sticky; bottom: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0 -28px; padding: 18px 28px 24px; background: linear-gradient(rgba(251,250,246,0), var(--paper) 22px); border-radius: 0 0 var(--r-lg) var(--r-lg); }
.of-sum { display: grid; }
.of-sum small { font-size: 14px; color: var(--muted); }
.of-sum b { font: 800 30px/1 var(--display); color: var(--forest); letter-spacing: -0.03em; white-space: nowrap; }
.order-form.sending .of-group, .order-form.sending .of-agree { opacity: .55; pointer-events: none; transition: opacity .2s; }
.btn:disabled { cursor: progress; background: var(--forest); color: #fff; }
.order-form.sending .btn .arrow { animation: order-nudge 1s var(--ease) infinite; }
@keyframes order-nudge { 50% { transform: translateX(5px); } }

/* итог */
.order-done, .order-fail { display: grid; place-items: center; padding: 40px var(--pad); }
.od-card { max-width: 640px; width: 100%; background: var(--paper); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 44px); display: grid; gap: 14px; justify-items: start; box-shadow: var(--shadow-card); animation: order-in .5s var(--ease); }
.od-card h2 { font-size: clamp(30px, 3.4vw, 44px); }
.od-mark { width: 68px; height: 68px; border-radius: 50%; background: #e5ebe2; color: var(--forest); display: grid; place-items: center; margin-bottom: 4px; animation: od-pop .5s var(--ease) both .1s; }
.od-mark svg { width: 38px; height: 38px; stroke-dasharray: 40; stroke-dashoffset: 40; animation: od-draw .5s var(--ease) forwards .35s; }
@keyframes od-pop { from { transform: scale(.6); opacity: 0; } }
@keyframes od-draw { to { stroke-dashoffset: 0; } }
.od-steps { list-style: none; margin: 8px 0 10px; padding: 0; display: grid; gap: 0; width: 100%; counter-reset: od; }
.od-steps li { display: grid; grid-template-columns: 34px 1fr; column-gap: 8px; padding: 12px 0; border-top: 1px solid var(--line); counter-increment: od; }
.od-steps li::before { content: '0' counter(od); grid-row: span 2; font: 600 15px var(--display); color: var(--sage-ink); padding-top: 2px; }
.od-steps b { font: 700 17px var(--display); color: var(--forest); }
.od-steps span { font-size: 16px; color: var(--muted); }
.od-actions { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.od-actions .link { background: none; border: 0; padding: 0; cursor: pointer; }

@media (max-width: 1080px) {
  .order-grid { grid-template-columns: 1fr; max-width: 720px; }
  .order-sum { position: static; }
}
@media (max-width: 720px) {
  .order-top-row { height: 60px; gap: 12px; }
  .order-top .logo-mark { width: 24px; height: 24px; }
  .order-top .logo-word { height: 18px; }
  .order-step { font-size: 15px; margin-left: 0; margin-right: auto; color: var(--graphite); }
  .order-close { width: 40px; height: 40px; }
  .order-body { padding: 14px 0 0; }
  .order-grid { gap: 14px; }
  .order-sum { padding: 12px; gap: 14px; border-radius: var(--r); }
  .os-pic { aspect-ratio: 4 / 3; }
  .os-tabs { left: 8px; top: 8px; width: 190px; }
  .os-spec { grid-template-columns: 1fr; padding: 0 4px; }
  .os-spec div { padding: 8px 0; }
  .os-spec:not(.all) .os-more { display: none; }
  .os-spec:not(.all) .os-all { display: block; justify-self: start; margin-top: 10px; border: 0; background: none; padding: 0; font: 600 15px var(--display); color: var(--forest); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--sage); cursor: pointer; }
  .os-head { padding: 0 4px; }
  .os-total b { font-size: 28px; }
  .order-form { padding: 22px 16px 0; gap: 26px; border-radius: var(--r); }
  .order-form .two { grid-template-columns: 1fr; }
  .of-group legend { font-size: 21px; }
  .of-methods button { padding: 9px 14px; font-size: 14px; }
  .of-submit { margin: 0 -16px; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); border-radius: 0; }
  .of-sum b { font-size: 24px; }
  .of-submit .btn { padding: 16px 20px; font-size: 16px; }
  .od-actions { width: 100%; }
  .od-card > .btn, .od-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .order[open], .order[open]::backdrop, .order-grid > *, .od-card, .od-mark, .of-files li { animation: none; }
  .od-mark svg { stroke-dashoffset: 0; animation: none; }
}

/* вопросы */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.faq-side { position: sticky; top: 96px; display: grid; gap: 14px; }
.faq-side h2 { font-size: clamp(36px, 3.8vw, 54px); line-height: .98; }
.faq-contacts { margin-top: 14px; display: grid; gap: 18px; justify-items: start; padding: 22px; border-radius: var(--r-lg); background: linear-gradient(100deg, #efede6 0%, #e9ece4 100%); }
.faq-contacts dl { margin: 0; display: grid; gap: 10px; }
.faq-contacts dt { font-size: 14px; color: var(--muted); }
.faq-contacts dd { margin: 0; font: 600 19px var(--display); color: var(--forest); }
.faq-contacts dd a:hover { color: var(--sage-ink); }
.faq-list { display: grid; gap: 36px; }
.faq-cat { font-size: 15px; font-weight: 600; letter-spacing: .02em; color: var(--sage-ink); margin-bottom: 4px; font-family: var(--display); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; position: relative; padding: 20px 52px 20px 0; font: 600 clamp(18px, 1.5vw, 20px)/1.3 var(--display); color: var(--graphite); transition: color .2s; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--forest); }
.qa summary:focus-visible { outline: 3px solid var(--sage); outline-offset: 4px; border-radius: 6px; }
.qa summary::before, .qa summary::after { content: ''; position: absolute; right: 12px; top: 50%; width: 16px; height: 2px; margin-top: -1px; background: var(--forest); border-radius: 2px; transition: transform .3s var(--ease); }
.qa summary::after { transform: rotate(90deg); }
.qa[open] summary::after { transform: rotate(0deg); }
.qa-a { padding: 0 52px 22px 0; display: grid; gap: 10px; color: var(--muted); font-size: 17px; max-width: 68ch; }
.qa[open] .qa-a { animation: qa-in .35s var(--ease); }
@keyframes qa-in { from { opacity: 0; transform: translateY(-6px); } }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 12px 32px; flex-wrap: wrap; }
.footer .logo { color: var(--forest); }
.footer .logo-mark { width: 28px; height: 28px; }
.footer .logo-word { height: 22px; }
.footer-row a { color: var(--graphite); }
.footer-row a:hover { color: var(--sage-ink); }
.of-mat { grid-template-columns: 1fr 1fr; }
@media (max-width: 1080px) {
  .faq-grid { grid-template-columns: 1fr; }
  .faq-side { position: static; }
}
@media (max-width: 720px) {
  .faq-contacts { padding: 18px; width: 100%; }
  .faq-contacts .btn { width: 100%; }
  .faq-list { gap: 28px; }
  .qa summary { padding: 16px 40px 16px 0; font-size: 17px; }
  .qa summary::before, .qa summary::after { right: 6px; }
  .qa-a { padding-right: 0; font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .qa[open] .qa-a { animation: none; } }
