/* Metallorg, прототип главной, второй круг. Шапка и подвал по treston.com; первый экран в трёх вариантах (?v=1 werstakoff.ru, ?v=2 ironmebel.ru, ?v=3 dikom.ru) */

:root {
  --brand-logo: #4348BE;           /* цвет логотипа и иконок старого сайта */
  --accent: #3B42D9;               /* тот же синий, насыщеннее */
  --accent-h: #2D33B8;
  --accent-soft: #EBEDFD;
  --accent-on-dark: #9EA3FF;
  --ink: #151515;                  /* тёмный старого сайта */
  --text: #2B2D34;
  --muted: #5D616E;
  --line: #DDE0E8;
  --surface: #F1F2F6;
  --surface-2: #E6E8EF;
  --graphite: #2E3137;             /* тёмно-серый вместо чёрного */
  --graphite-2: #3A3E46;
  --foot-bg: #2A2D33;
  --wa: #25D366;
  --wa-h: #1DA851;
  --wa-text: #128C7E;
  --shade: 9, 11, 14;
  --r-card: 16px;
  --r-field: 12px;
  --pad: clamp(16px, 4.2vw, 60px);
  --maxw: 1600px;   /* 02.12 клиент: меньше белых полей по бокам на широких мониторах (было 1440) */
  --sec: clamp(64px, 7.4vw, 116px);
  --ease: cubic-bezier(.4, 0, .2, 1);
  --fb-sys: system-ui, -apple-system, "Segoe UI", sans-serif;
  --fh: "Russo One", var(--fb-sys);
  --fh-w: 400;
  --fb: "Golos Text", var(--fb-sys);
  --h-k: 1;
  --h-ls: 0;
  --draw-bg: #F1F2F6;
}
html.fsys { --fh: var(--fb-sys); --fb: var(--fb-sys); --fh-w: 700; }
html.fwait body { opacity: 0; }   /* не visibility: активный слайд с visibility: visible пробивал шлюз */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body { margin: 0; font: 400 16px/1.6 var(--fb); color: var(--text); background: #fff; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
html { scrollbar-color: #B9BDCA transparent; }
.mo-vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mo-skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.mo-skip:focus { top: 12px; }
.mo-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.mo-ic { width: 1em; height: 1em; fill: currentColor; flex: none; }
.mo-ic--s { width: .7em; height: .7em; }

/* кнопки: стрелка у правого края, наведение темнее и сдвиг стрелки */
.mo-btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 14px;
  height: 52px; padding: 0 22px 0 26px; border-radius: 999px; background: var(--accent); color: #fff;
  font: 600 16px/1 var(--fb); white-space: nowrap; border: 1.5px solid var(--accent);
  transition: background-color .25s, color .25s, border-color .25s;
}
.mo-btn .mo-arr { width: 15px; height: 15px; transition: transform .35s var(--ease); }
.mo-btn:hover { background: var(--accent-h); border-color: var(--accent-h); }
.mo-btn:hover .mo-arr { transform: translateX(3px); }
.mo-btn--line { background: transparent; color: var(--accent); }
.mo-btn--line:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.mo-btn--white { background: #fff; color: var(--ink); border-color: #fff; }
.mo-btn--white:hover { background: var(--accent-soft); border-color: var(--accent-soft); }
.mo-btn--wa { background: var(--wa); border-color: var(--wa); justify-content: center; }
.mo-btn--wa:hover { background: var(--wa-h); border-color: var(--wa-h); }
.mo-btn--wa .mo-ic { width: 20px; height: 20px; }
.mo-btn--sm { height: 46px; font-size: 15px; padding: 0 18px 0 22px; }
.mo-btn--full { width: 100%; }
.mo-btn .mo-ic:not(.mo-arr) { width: 18px; height: 18px; }

.mo-round {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink);
  border: 1px solid var(--line); transition: background-color .25s, color .25s, border-color .25s;
}
.mo-round .mo-ic { width: 16px; height: 16px; }
@media (hover: hover) { .mo-round:hover { background: var(--graphite); color: #fff; border-color: var(--graphite); } }

/* ───── верхняя строка ───── */
.mo-top { background: #fff; border-bottom: 1px solid var(--line); font-size: 14px; position: relative; z-index: 60; }
.mo-top__in { display: flex; align-items: center; justify-content: space-between; height: 40px; gap: 24px; }
.mo-top__nav { display: flex; gap: 26px; }
.mo-top__nav a { color: var(--muted); transition: color .2s; }
.mo-top__nav a:hover, .mo-top__nav a[aria-current] { color: var(--ink); }
.mo-top__contact { display: flex; align-items: center; gap: 22px; }
.mo-top__hours { color: var(--muted); }
.mo-top__phone { font-weight: 600; color: var(--ink); font-size: 15px; font-variant-numeric: tabular-nums; }
.mo-top__phone:hover { color: var(--accent); }
.mo-top__wa { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px; border-radius: 999px; background: var(--wa); color: #fff; font-weight: 600; transition: background-color .2s; }
.mo-top__wa:hover { background: var(--wa-h); }
.mo-top__wa .mo-ic { width: 17px; height: 17px; }
.mo-city { position: relative; }
.mo-city__btn { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); font-weight: 500; height: 40px; }
.mo-city__btn .mo-ic { color: var(--accent); }
.mo-city__list {
  position: absolute; top: 100%; left: -14px; margin: 0; padding: 8px; list-style: none; background: #fff; border-radius: 14px;
  box-shadow: 0 18px 40px -16px rgba(var(--shade), .28), 0 2px 6px rgba(var(--shade), .06); min-width: 170px;
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .2s, transform .2s, visibility .2s;
}
.mo-city.is-open .mo-city__list { opacity: 1; visibility: visible; transform: none; }
.mo-city__list button { width: 100%; text-align: left; padding: 9px 12px; border-radius: 9px; }
.mo-city__list button:hover, .mo-city__list button[aria-current] { background: var(--surface); color: var(--accent); }

/* ───── основная строка (липкая) ───── */
.mo-head { position: sticky; top: 0; z-index: 55; background: #fff; border-bottom: 1px solid var(--line); }
.mo-head.is-stuck { box-shadow: 0 10px 30px -22px rgba(var(--shade), .45); }
.mo-head__in { display: flex; align-items: center; gap: 16px; height: 74px; }
.mo-logo { flex: none; margin-right: 10px; }
.mo-logo img { height: 50px; width: auto; }
.mo-catbtn {
  flex: none; display: inline-flex; align-items: center; gap: 12px; height: 50px; padding: 0 24px 0 20px; border-radius: 999px;
  background: var(--accent); color: #fff; font-weight: 600; transition: background-color .25s;
}
.mo-catbtn:hover, .mo-catbtn[aria-expanded="true"] { background: var(--accent-h); }
.mo-burger { width: 18px; height: 14px; position: relative; display: inline-block; }
.mo-burger i { position: absolute; left: 0; right: 0; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
.mo-burger i:nth-child(1) { top: 0; } .mo-burger i:nth-child(2) { top: 6px; } .mo-burger i:nth-child(3) { top: 12px; }
[aria-expanded="true"] > .mo-burger i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
[aria-expanded="true"] > .mo-burger i:nth-child(2) { opacity: 0; }
[aria-expanded="true"] > .mo-burger i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.mo-search { flex: 1 1 auto; min-width: 0; position: relative; }
.mo-search input {
  width: 100%; height: 50px; border: 1.5px solid transparent; border-radius: 999px; background: var(--surface); padding: 0 56px 0 22px;
  font: 400 15px var(--fb); color: var(--ink); transition: border-color .2s, background-color .2s;
}
.mo-search input::placeholder { color: #80848F; }
.mo-search input:focus { outline: none; border-color: var(--accent); background: #fff; }
.mo-search button { position: absolute; right: 5px; top: 5px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); }
.mo-search button:hover { color: var(--accent); }
.mo-search .mo-ic { width: 18px; height: 18px; }
.mo-head__calc { flex: none; height: 50px; justify-content: center; }
.mo-head__calc .l-s { display: none; }
.mo-basket {
  flex: none; display: inline-flex; align-items: center; gap: 10px; height: 50px; padding: 0 20px; border-radius: 999px; background: var(--graphite);
  color: #fff; font-weight: 600; transition: background-color .25s;
}
.mo-basket:hover { background: var(--graphite-2); }
.mo-basket .mo-ic { width: 18px; height: 18px; }
.mo-basket__n[hidden] { display: none; }
.mo-basket__n { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: #fff; color: var(--accent); font-size: 13px; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.mo-head__ic { display: none; width: 46px; height: 46px; border-radius: 50%; place-items: center; color: var(--ink); background: var(--surface); flex: none; }
.mo-head__ic .mo-ic { width: 18px; height: 18px; }

/* мега-меню: шторка под шапкой */
.mo-mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 30px 60px -30px rgba(var(--shade), .35); clip-path: inset(0 0 100% 0); transition: clip-path .32s var(--ease); }
.mo-mega.is-open { clip-path: inset(0 0 -60px 0); }
.mo-mega[hidden] { display: block; visibility: hidden; }
.mo-mega.is-open[hidden] { visibility: visible; }
.mo-mega__in { display: grid; grid-template-columns: 330px 1fr; gap: 0; padding-top: 18px; padding-bottom: 26px; }
.mo-mega__dirs { list-style: none; margin: 0; padding: 0 18px 0 0; border-right: 1px solid var(--line); }
.mo-mega__dirs button { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; padding: 9px 12px; border-radius: 12px; font-weight: 500; color: var(--ink); }
.mo-mega__dirs img { width: 40px; height: 40px; object-fit: contain; }
.mo-mega__dirs button[aria-selected="true"] { background: var(--surface); color: var(--accent); }
.mo-mega__dirs button .mo-ic { margin-left: auto; width: 12px; height: 12px; opacity: .5; }
.mo-mega__pane { display: none; grid-template-columns: 1fr 260px; gap: 32px; padding-left: 34px; }
.mo-mega__pane.is-on { display: grid; }
.mo-mega__pane h3 { font: var(--fh-w) calc(24px * var(--h-k))/1.15 var(--fh); letter-spacing: var(--h-ls); color: var(--ink); margin: 6px 0 16px; }
.mo-mega__sub { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 32px; }
.mo-mega__sub a { display: block; padding: 6px 0; color: var(--text); break-inside: avoid; transition: color .2s; }
.mo-mega__sub a:hover { color: var(--accent); }
.mo-mega__card { background: var(--surface); border-radius: var(--r-card); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.mo-mega__card img { height: 190px; width: 100%; object-fit: contain; }
.mo-mega__card p { font-size: 14px; color: var(--muted); line-height: 1.45; }
.mo-mega__dim { position: fixed; left: 0; right: 0; bottom: 0; background: rgba(var(--shade), .4); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 40; }
.mo-mega__dim.is-on { opacity: 1; }

/* ───── графитовая строка разделов ───── */
.mo-catbar { background: var(--graphite); color: #fff; position: relative; z-index: 45; }
.mo-catbar__list { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; height: 50px; }
.mo-catbar__list > li { position: relative; display: flex; }
.mo-catbar__list > li > a {
  display: flex; align-items: center; padding: 0 2px; font: 600 14px/1 var(--fb); text-transform: uppercase; letter-spacing: .04em; position: relative; white-space: nowrap;
}
.mo-catbar__list > li > a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 12px; height: 2px; background: var(--accent-on-dark); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.mo-catbar__list > li:hover > a::after, .mo-catbar__list > li:focus-within > a::after { transform: scaleX(1); }
.mo-drop {
  position: absolute; top: 100%; left: -24px; min-width: 300px; background: #fff; color: var(--text); border-radius: 0 0 16px 16px; padding: 14px 24px 18px;
  box-shadow: 0 24px 50px -24px rgba(var(--shade), .4); list-style: none; margin: 0; clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .28s var(--ease), visibility 0s .28s;
}
.mo-catbar__list > li:last-child .mo-drop, .mo-catbar__list > li:nth-last-child(2) .mo-drop { left: auto; right: -24px; }
.mo-catbar__list > li.is-open .mo-drop { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .28s var(--ease), visibility 0s; }
.mo-drop a { display: block; padding: 6px 0; white-space: nowrap; transition: color .2s; }
.mo-drop a:hover { color: var(--accent); }
.mo-drop .mo-drop__all { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--accent); font-weight: 600; display: flex; align-items: center; gap: 8px; }

/* ───── секции ───── */
.mo-sec { padding: var(--sec) 0 0; }
.mo-sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; margin-bottom: clamp(26px, 3vw, 40px); flex-wrap: wrap; }
.mo-h2 { font: var(--fh-w) calc(clamp(26px, 2.25vw, 34px) * var(--h-k))/1.12 var(--fh); letter-spacing: var(--h-ls); color: var(--ink); text-wrap: balance; }
.mo-sec__sub { color: var(--muted); max-width: 52ch; font-size: 16px; }
.mo-sec__head .mo-sec__sub { flex: 1 1 360px; text-align: right; margin-left: auto; }
/* заголовок и пояснение справа на одном уровне: длинный заголовок в две ровные строки, последние строки по одной линии */
@media (min-width: 768px) {
  .mo-sec__head:has(.mo-sec__sub) { align-items: last baseline; }
  .mo-sec__head:has(.mo-sec__sub) > :first-child { max-width: 24ch; text-wrap: balance; }
  .mo-sec__head .mo-sec__sub { max-width: 64ch; text-wrap: balance; }   /* короткий заголовок: пояснение в строку, длинный: обе части в две строки; 64ch: переносы те же, что при 72ch (сверено на 6 вариантах, 768-1920), строка не шире 80 знаков */
}
.mo-all { display: inline-flex; align-items: center; gap: 10px; color: var(--accent); font-weight: 600; }
.mo-all .mo-arr { width: 14px; height: 14px; transition: transform .35s var(--ease); }
.mo-all:hover .mo-arr { transform: translateX(3px); }

/* калькулятор */
.mo-calc__box { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); align-items: start; }
.mo-calc__draw { background: var(--surface); border-radius: 20px; padding: clamp(16px, 2vw, 28px); }
.mo-rack { width: 100%; height: auto; display: block; color: var(--ink); --draw-bg: var(--surface); }
.mo-rack__grid line { stroke: #D3D6E0; stroke-width: 1; }
.mo-rack .post { fill: #9DA2B0; }
.mo-rack .post-side { fill: #B6BAC6; }
.mo-rack .shelf { fill: var(--accent); }
.mo-rack .shelf-side { fill: #6C72E6; }
/* геометрию и проявление полок чертежа двигает JS покадрово, без CSS-переходов */
.mo-rack .floor { fill: #C9CDD8; }
.mo-rack__dims line, .mo-rack__dims path { stroke: var(--muted); stroke-width: 1; fill: none; }
.mo-rack__dims text { font: 600 13px var(--fb); fill: var(--ink); font-variant-numeric: tabular-nums; }
.mo-rack__dims .lbl, .mo-rack__grid .lbl { font: 500 11px var(--fb); fill: var(--muted); }
.mo-calc__note { margin-top: 14px; font-size: 14px; color: var(--muted); line-height: 1.5; max-width: 64ch; }   /* на 1024 было 897 px: строка 121 знак и хвост; строк и высоты калькулятора не меняет */
.mo-calc__form { display: flex; flex-direction: column; gap: 22px; }
.mo-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.mo-seg button {
  min-width: 64px; height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  font-weight: 500; font-variant-numeric: tabular-nums; transition: border-color .2s, background-color .2s, color .2s;
}
@media (hover: hover) { .mo-seg button:hover { border-color: var(--accent); } }
.mo-seg button:active { border-color: var(--accent); }
.mo-seg button[aria-checked="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.mo-seg button:disabled { color: #6E727D; text-decoration: line-through; text-decoration-color: #A3A7B2; cursor: not-allowed; border-style: dashed; background: #fff; }
.mo-seg--series { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.mo-seg--series button { height: auto; padding: 14px 16px; border-radius: 14px; text-align: left; display: flex; flex-direction: column; gap: 3px; }
.mo-seg--series b { font: var(--fh-w) calc(18px * var(--h-k))/1.15 var(--fh); letter-spacing: var(--h-ls); }
.mo-seg--series small { font-size: 13px; color: var(--muted); }
.mo-seg--series button[aria-checked="true"] small { color: #E3E5FF; }
.mo-field { display: flex; flex-direction: column; gap: 10px; }
.mo-field__l { font-size: 14px; font-weight: 600; color: var(--muted); }
.mo-field--row { flex-direction: row; align-items: center; justify-content: space-between; }
.mo-step { display: inline-flex; align-items: center; gap: 4px; background: var(--surface); border-radius: 999px; padding: 4px; }
.mo-step button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); transition: background-color .2s, color .2s; }
@media (hover: hover) { .mo-step button:hover { background: var(--accent); color: #fff; } }
.mo-step button:active { background: var(--accent); color: #fff; }
.mo-step button:disabled { opacity: .35; pointer-events: none; }
.mo-step .mo-ic { width: 13px; height: 13px; }
.mo-step output { min-width: 44px; text-align: center; font: 600 18px var(--fb); font-variant-numeric: tabular-nums; color: var(--ink); }
.mo-calc__sum { border-top: 1px solid var(--line); padding-top: 20px; display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 16px; }
.mo-calc__sum-l { font-size: 15px; color: var(--muted); }
.mo-calc__price { min-height: 1.1em; display: flex; align-items: center; justify-content: flex-end; font: var(--fh-w) calc(clamp(30px, 2.8vw, 42px) * var(--h-k))/1 var(--fh); letter-spacing: var(--h-ls); color: var(--ink); font-variant-numeric: tabular-nums; grid-row: span 2; text-align: right; }
.mo-calc__price.is-req { font-size: calc(24px * var(--h-k)); color: var(--muted); }
.mo-calc__spec { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mo-calc__btns { display: flex; gap: 12px; flex-wrap: wrap; }
.mo-calc__btns .mo-btn { flex: 1 1 220px; }
.mo-calc__btns { position: relative; }
.mo-calc__ok[hidden] { display: none; }
.mo-calc__ok { position: absolute; left: 0; top: calc(100% + 10px); display: inline-flex; align-items: center; gap: 8px; color: #1D7A45; font-weight: 600; font-size: 15px; }
.mo-calc__ok .mo-ic { width: 15px; height: 15px; }

/* выставочные залы */
.mo-shows__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mo-show { border-radius: var(--r-card); overflow: hidden; background: var(--surface); display: flex; flex-direction: column; }
.mo-show > img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; background: var(--surface-2); }
.mo-show__body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.mo-show__city { font: var(--fh-w) calc(26px * var(--h-k))/1.1 var(--fh); letter-spacing: var(--h-ls); color: var(--ink); }
.mo-show__addr { color: var(--text); }
.mo-show__tel { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; margin-top: 2px; }
.mo-show__tel:hover { color: var(--accent); }
.mo-maps { display: flex; gap: 8px; margin-top: auto; padding-top: 12px; flex-wrap: wrap; }
.mo-maps a { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--ink); transition: border-color .2s; }
.mo-maps a:hover { border-color: var(--accent); }
.mo-maps img { width: 18px; height: 18px; }

/* ───── подвал: фирменный цвет, выгнутый верх ───── */
.mo-foot { position: relative; margin-top: var(--sec); background: var(--foot-bg); color: #fff; padding-top: clamp(110px, 10vw, 150px); overflow: hidden; container-type: inline-size; }
.mo-foot::before { content: ""; position: absolute; top: -2px; left: -12%; right: -12%; height: clamp(60px, 7vw, 100px); background: #fff; border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.mo-foot__say { font: var(--fh-w) calc(clamp(24px, 2.6vw, 38px) * var(--h-k))/1.32 var(--fh); letter-spacing: var(--h-ls); max-width: 26ch; text-wrap: balance; }
.mo-foot__row { display: flex; align-items: center; gap: 28px; margin-top: 40px; padding: 20px 0; border-top: 2px solid #fff; border-bottom: 1px solid rgba(255,255,255,.28); flex-wrap: wrap; }
.mo-foot__logo { background: #fff; border-radius: 12px; padding: 8px 12px; }
.mo-foot__logo img { height: 40px; width: auto; }
.mo-foot__nav { display: flex; gap: 8px 26px; flex-wrap: wrap; margin-right: auto; }
.mo-foot__nav a { color: #fff; opacity: .9; }
.mo-foot__nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.mo-foot__map { display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px 32px; padding: 40px 0; border-bottom: 1px solid rgba(255,255,255,.28); }
.mo-foot__map h3 { font: var(--fh-w) calc(clamp(20px, 1.7vw, 26px) * var(--h-k))/1.15 var(--fh); letter-spacing: var(--h-ls); margin-bottom: 12px; }
.mo-foot__map h3 a:hover { text-decoration: underline; text-underline-offset: 5px; }
.mo-foot__map ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mo-foot__map li a { color: #C9CCD5; font-size: 15px; }
.mo-foot__map li a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.mo-foot__contacts { display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 24px 32px; padding: 32px 0; border-bottom: 1px solid rgba(255,255,255,.28); }
.mo-foot__contacts > div { display: flex; flex-direction: column; gap: 4px; }
.mo-foot__contacts a { font-weight: 600; font-variant-numeric: tabular-nums; }
.mo-foot__contacts a:hover { text-decoration: underline; text-underline-offset: 4px; }
.mo-foot__l { font-size: 13px; color: #A9ADB8; margin-top: 6px; }
.mo-foot__l:first-child { margin-top: 0; }
.mo-foot__soc { flex-direction: row !important; gap: 10px !important; align-items: flex-start; }
.mo-soc { display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 18px; border-radius: 999px; color: #fff; font-weight: 600; }
.mo-soc .mo-ic { width: 19px; height: 19px; }
.mo-soc--wa { background: var(--wa); } .mo-soc--wa:hover { background: var(--wa-h); text-decoration: none !important; }
.mo-soc--ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.mo-soc--ig:hover { text-decoration: none !important; filter: brightness(1.06); }
.mo-foot__bottom { display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 24px 0 28px; font-size: 14px; color: #A9ADB8; }
.mo-foot__bottom a:hover { color: #fff; }
.mo-foot__offer { flex: 1 1 360px; }
.mo-foot__dev a { color: #fff; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.mo-foot__big { font: var(--fh-w) 13.9cqw/.78 var(--fh); letter-spacing: -.02em; color: rgba(255,255,255,.06); text-align: center; white-space: nowrap; margin: 0 0 -1.6cqw; padding-bottom: 96px; user-select: none; }

/* ───── плавающие ───── */
.mo-fab-wa { position: fixed; left: 24px; bottom: 24px; z-index: 70; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--wa); color: #fff; box-shadow: 0 14px 28px -12px rgba(var(--shade), .38); transition: background-color .25s; }
.mo-fab-wa:hover { background: var(--wa-h); }
.mo-fab-wa .mo-ic { width: 36px; height: 36px; }
@media (min-width: 1025px) and (max-width: 1279px) { .mo-fab-wa { width: 60px; height: 60px; left: 16px; bottom: 16px; } .mo-fab-wa .mo-ic { width: 30px; height: 30px; } }   /* узкий ноутбук и iPad горизонтально: меньше закрывает текст у края */
html.motion .mo-fab-wa::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--wa); animation: moPulse 3.2s var(--ease) infinite; }
@keyframes moPulse { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(1.45); opacity: 0; } }
.mo-totop { position: fixed; right: 24px; bottom: 28px; z-index: 70; width: 56px; height: 56px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; box-shadow: 0 12px 28px -12px rgba(var(--shade), .4); transition: opacity .3s, transform .3s; }
.mo-totop[hidden] { display: grid; opacity: 0; transform: translateY(10px); pointer-events: none; }
.mo-totop .mo-ic { width: 16px; height: 16px; position: relative; }
.mo-totop__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.mo-totop__ring circle { fill: none; stroke: var(--line); stroke-width: 2.5; }
.mo-totop__ring .p { stroke: var(--accent); stroke-dasharray: 100; stroke-dashoffset: var(--prog, 100); stroke-linecap: round; }
.mo-totop:hover { color: var(--accent); }

.mo-mbar { display: none; }

/* меню телефона */
.mo-drawer { position: fixed; inset: 0; z-index: 90; background: rgba(var(--shade), .5); opacity: 0; transition: opacity .3s; }
.mo-drawer[hidden] { display: block; visibility: hidden; pointer-events: none; }
.mo-drawer[hidden] .mo-dcat__btn img { display: none; }   /* скрытое меню видимо для ленивой загрузки: 8 картинок (~130 КБ) грузились при каждом открытии страницы */
.mo-drawer.is-open { opacity: 1; }
.mo-drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: #fff; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .38s var(--ease); }
.mo-drawer.is-open .mo-drawer__panel { transform: none; }
.mo-drawer__top { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.mo-tabs { display: inline-flex; background: var(--surface); border-radius: 999px; padding: 4px; }
.mo-tabs button { height: 40px; padding: 0 18px; border-radius: 999px; font-weight: 600; color: var(--muted); }
.mo-tabs [aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 2px 8px -2px rgba(var(--shade), .18); }
.mo-x { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); color: var(--ink); }
.mo-x .mo-ic { width: 16px; height: 16px; }
.mo-drawer__body { overflow-y: auto; flex: 1; padding: 8px 16px 110px; overscroll-behavior: contain; }
.mo-drawer__pane { display: none; } .mo-drawer__pane.is-on { display: block; }
.mo-dcat { list-style: none; margin: 0; padding: 0; }
.mo-dcat > li { border-bottom: 1px solid var(--line); }
.mo-dcat__btn { width: 100%; display: flex; align-items: center; gap: 14px; padding: 12px 0; text-align: left; font-weight: 600; color: var(--ink); }
.mo-dcat__btn img { width: 44px; height: 44px; object-fit: contain; }
.mo-dcat__btn .mo-ic { margin-left: auto; width: 13px; height: 13px; transition: transform .3s var(--ease); color: var(--muted); }
.mo-dcat__btn[aria-expanded="true"] .mo-ic { transform: rotate(180deg); }
.mo-dcat__sub { overflow: hidden; }
.mo-dcat__sub[hidden] { display: none; }
.mo-dcat__sub ul { list-style: none; margin: 0; padding: 0 0 14px 58px; display: flex; flex-direction: column; gap: 2px; }
.mo-dcat__sub a { display: block; padding: 6px 0; color: var(--text); }
.mo-dcat__sub .mo-all { padding-left: 58px; margin-bottom: 14px; }
.mo-dco { display: flex; flex-direction: column; }
.mo-dco a { padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.mo-dco__c { display: flex; flex-direction: column; gap: 4px; padding-top: 18px; color: var(--muted); }
.mo-dco__c a { font: 600 20px var(--fb); color: var(--ink); }

/* окно заявки */
.mo-modal { border: 0; padding: 0; border-radius: 22px; width: min(480px, calc(100% - 24px)); max-height: calc(100dvh - 24px); background: #fff; color: var(--text); box-shadow: 0 40px 80px -30px rgba(var(--shade), .5); }
.mo-modal::backdrop { background: rgba(9, 11, 14, .55); } /* ::backdrop не наследует переменные :root в части браузеров */
.mo-modal[open] { animation: moModal .35s var(--ease); }
@keyframes moModal { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.mo-modal__in { padding: 34px 32px 28px; position: relative; display: block; }
.mo-modal__x { position: absolute; right: 16px; top: 16px; }
.mo-modal__h { font: var(--fh-w) calc(25px * var(--h-k))/1.2 var(--fh); letter-spacing: var(--h-ls); color: var(--ink); padding-right: 44px; }
.mo-modal__p { margin: 10px 0 22px; color: var(--muted); }
.mo-modal__list { list-style: none; margin: -8px 0 20px; padding: 14px 16px; background: var(--surface); border-radius: 12px; font-size: 14px; display: flex; flex-direction: column; gap: 6px; font-variant-numeric: tabular-nums; }
.mo-in { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; font-size: 14px; font-weight: 600; color: var(--ink); }
.mo-in input, .mo-in textarea { font: 400 16px var(--fb); color: var(--ink); border: 1.5px solid var(--line); border-radius: var(--r-field); padding: 13px 16px; background: #fff; transition: border-color .2s; resize: vertical; }
.mo-in input:focus, .mo-in textarea:focus { outline: none; border-color: var(--accent); }
.mo-in input[aria-invalid="true"] { border-color: #C8322E; }
.mo-modal__legal { margin-top: 12px; font-size: 13px; color: var(--muted); }
.mo-modal__legal a { text-decoration: underline; text-underline-offset: 3px; }
.mo-modal__done[hidden] { display: none; }
.mo-modal__done { text-align: left; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.mo-modal__done > .mo-ic { width: 46px; height: 46px; padding: 12px; border-radius: 50%; background: var(--accent); color: #fff; margin-bottom: 12px; }

/* панель прототипа */
.mo-proto { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 80; display: flex; align-items: center; gap: 4px; padding: 5px 6px 5px 14px; border-radius: 999px; background: var(--graphite); color: #A9ADBA; font-size: 12px; box-shadow: 0 14px 30px -14px rgba(var(--shade), .6); }
.mo-proto span { margin: 0 4px 0 6px; }
.mo-proto button { height: 30px; min-width: 30px; padding: 0 10px; border-radius: 999px; color: #fff; font-weight: 600; font-size: 12px; }
.mo-proto button[aria-pressed="true"] { background: var(--accent); }
.mo-proto button:hover { background: var(--graphite-2); }
.mo-proto button[aria-pressed="true"]:hover { background: var(--accent-h); }
.mo-proto a { height: 30px; min-width: 30px; padding: 0 10px; border-radius: 999px; color: #fff; font-weight: 600; font-size: 12px; display: inline-grid; place-items: center; }
.mo-proto a:hover { background: var(--graphite-2); }
.mo-proto a[aria-current] { background: var(--accent); }

/* полоса прогресса у лент на телефоне */
.mo-prog { display: none; height: 3px; border-radius: 3px; background: var(--line); margin-top: 18px; overflow: hidden; }
.mo-prog i { display: block; height: 100%; width: 30%; background: var(--accent); border-radius: 3px; transform-origin: left; }

/* ───── ноутбук ───── */
@media (max-width: 1360px) {
  .mo-catbar__list > li > a { font-size: 13px; letter-spacing: .03em; }
  .mo-top__hours { display: none; }
}
@media (max-width: 1240px) {
  .mo-head__calc .l-l { display: none; }
  .mo-head__calc .l-s { display: inline; }
  .mo-catbar__list > li > a { font-size: 12px; letter-spacing: .02em; }
  .mo-mega__in { grid-template-columns: 290px 1fr; }
  .mo-mega__pane { grid-template-columns: 1fr 210px; }
}

/* ───── планшет ───── */
@media (max-width: 1024px) {
  html { scroll-padding-top: 80px; }
  .mo-top, .mo-catbar, .mo-catbtn, .mo-head__calc, .mo-basket .mo-basket__t, .mo-mega, .mo-mega[hidden], .mo-mega__dim { display: none; }
  .mo-head__in { height: 68px; gap: 10px; }
  .mo-logo img { height: 44px; }
  .mo-head__ic { display: grid; }
  .mo-basket { width: 46px; height: 46px; padding: 0; justify-content: center; position: relative; }
  .mo-basket__n { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; font-size: 11px; border: 2px solid #fff; background: var(--accent); color: #fff; }
  .mo-search input { height: 46px; }
  .mo-search button { top: 3px; }
  .mo-calc__box { grid-template-columns: 1fr; }
  .mo-calc__draw { position: relative; top: 0; }
  .mo-rack { max-width: 500px; margin: 0 auto; }
  .mo-foot__map { grid-template-columns: repeat(2, 1fr); }
  .mo-foot__contacts { grid-template-columns: repeat(2, 1fr); }
  .mo-mbar { display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 75; background: #fff; border-top: 1px solid var(--line); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); gap: 6px; }
  .mo-mbar > * { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; font-size: 12px; font-weight: 600; color: var(--ink); border-radius: 12px; }
  .mo-mbar .mo-ic { width: 20px; height: 20px; color: var(--accent); }
  .mo-mbar .is-wa .mo-ic { color: var(--wa); }
  .mo-mbar button { background: var(--accent); color: #fff; } .mo-mbar button .mo-ic { color: #fff; }
  .mo-fab-wa { display: none; }
  .mo-totop { bottom: 92px; right: 16px; width: 50px; height: 50px; }
  .mo-proto { bottom: 84px; }
  .mo-foot { padding-bottom: 70px; }
}

/* ───── телефон ───── */
@media (max-width: 767px) {
  body { font-size: 15.5px; }
  /* подвал: на телефоне только разделы, подразделы: в меню и каталоге (иначе подвал на три экрана) */
  .mo-foot__map { gap: 14px 20px; padding: 28px 0; }
  .mo-foot__map h3 { margin: 0; font-size: calc(17px * var(--h-k)); }
  .mo-foot__map h3 a { display: block; padding: 4px 0; }
  .mo-foot__map ul { display: none; }
  .mo-search { display: none; }
  .mo-head__in { justify-content: space-between; }
  .mo-logo { margin-right: auto; }
  .mo-sec__head { flex-wrap: nowrap; align-items: center; }
  .mo-sec__head:has(.mo-sec__sub) { flex-wrap: wrap; }
  .mo-sec__head .mo-sec__sub { text-align: left; flex-basis: 100%; }
  .mo-all { flex: none; height: 40px; padding: 0 14px; border-radius: 999px; background: var(--accent-soft); font-size: 14px; gap: 8px; }
  /* 02.12: только списки-ленты; у секции «Похожие товары» (section[data-strip]) это правило растягивало её за край экрана на телефоне */
  [data-strip]:not(section) { display: grid; grid-auto-flow: column; grid-template-columns: none !important; grid-auto-columns: 84%; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 calc(-1 * var(--pad)); padding: 0 var(--pad); scroll-padding: 0 var(--pad); scrollbar-width: none; }
  [data-strip]:not(section)::-webkit-scrollbar { display: none; }
  [data-strip]:not(section) > * { scroll-snap-align: start; }
  .mo-prog { display: block; }
  section[data-strip] + .mo-prog { display: none; }   /* 02.12: у секции «Похожие товары» прокручивается вложенный список, полоса секции не нужна */
  .mo-seg--series button { padding: 12px 14px; }
  .mo-calc__sum { grid-template-columns: 1fr; }
  .mo-calc__price { grid-row: auto; text-align: left; }
  .mo-foot__map { grid-template-columns: 1fr; gap: 22px; }
  .mo-foot__map ul { flex-direction: row; flex-wrap: wrap; gap: 4px 14px; }
  .mo-foot__map li a { font-size: 14px; }
  .mo-foot__contacts { grid-template-columns: 1fr; }
  .mo-foot__row .mo-btn { width: 100%; }
  .mo-modal__in { padding: 28px 20px 22px; }
  .mo-proto { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ═════ второй круг ═════ */

/* стрелка у разделов графитовой строки: видно, что раскрывается */
.mo-catbar__list > li > a { gap: 8px; }
.mo-catbar__list > li > a .mo-ic { width: 10px; height: 10px; opacity: .7; transition: transform .3s var(--ease), opacity .2s; }
.mo-catbar__list > li.is-open > a .mo-ic { transform: rotate(180deg); opacity: 1; }
.mo-catbar__list > li > a::after { right: 18px; }

/* варианты первого экрана: показываем один */
.mo-v { display: none; }
html[data-v="1"] .mo-v1, html[data-v="2"] .mo-v2, html[data-v="3"] .mo-v3 { display: block; }
html[data-v="3"] .mo-cats { display: none; }

/* общие элементы слайдеров */
[data-slide] { visibility: hidden; }
[data-slide]::after { content: ""; position: absolute; inset: 0; z-index: 6; background: rgb(9, 11, 14); opacity: var(--dim, 0); pointer-events: none; transition: opacity var(--dim-t, 0s) cubic-bezier(.65,0,.35,1); }
[data-slide].is-in, [data-slide].is-out, .is-drag [data-slide] { will-change: transform; }
[data-slide].is-on, [data-slide].is-in, [data-slide].is-out { visibility: visible; }
[data-slide].is-under { visibility: visible; z-index: 0; }
[data-slide].is-out { z-index: 1; } [data-slide].is-on { z-index: 2; } [data-slide].is-in { z-index: 3; }
[data-slider] { touch-action: pan-y; cursor: grab; }
[data-slider].is-drag { cursor: grabbing; user-select: none; -webkit-user-select: none; }
[data-slider] img { -webkit-user-drag: none; user-select: none; }
[data-slider] a, [data-slider] button { cursor: pointer; }
.mo-slider__bars { display: flex; gap: 8px; margin-right: auto; }
.mo-slider__bars button { width: 46px; height: 24px; display: flex; align-items: center; }
.mo-slider__bars i { display: block; width: 100%; height: 3px; border-radius: 3px; background: rgba(var(--shade), .16); position: relative; overflow: hidden; }
.mo-slider__bars i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.mo-slider__bars [aria-selected="true"] i::after { animation: moBar var(--sl-t, 6.5s) linear forwards; }
.is-paused .mo-slider__bars [aria-selected="true"] i::after { animation-play-state: paused; }
.mo-slider__bars .is-done i::after { transform: scaleX(1); }
[data-ui-dark] .mo-slider__bars i { background: rgba(255,255,255,.28); }
[data-ui-dark] .mo-slider__bars i::after { background: #fff; }
@keyframes moBar { to { transform: scaleX(1); } }
.mo-slider__count { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 15px; margin-right: 6px; }
.mo-slider__count b { color: var(--ink); font-weight: 600; }
[data-ui-dark] .mo-slider__count { color: rgba(255,255,255,.7); }
[data-ui-dark] .mo-slider__count b { color: #fff; }
.mo-round--dark { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.3); color: #fff; }
@media (hover: hover) { .mo-round--dark:hover { background: #fff; color: var(--ink); border-color: #fff; } }
.mo-btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.mo-btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.mo-ph__btns { display: flex; gap: 12px; margin-top: 30px; flex-wrap: nowrap; }
.mo-ph__btns .l-s { display: none; }
@keyframes moIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes moProd { from { opacity: 0; transform: translateX(36px); } to { opacity: 1; transform: none; } }
@keyframes moFade { from { opacity: 0; } to { opacity: 1; } }

/* ── вариант 1: фото во всю ширину ── */
.mo-ph { position: relative; }
.mo-ph__slider { position: relative; height: clamp(560px, 47vw, 680px); background: #25282e; overflow: hidden; }
.mo-ph__slide { position: absolute; inset: 0; display: flex; align-items: center; color: #fff; isolation: isolate; }
.mo-ph__pic { position: absolute; inset: 0; z-index: -2; }
.mo-ph__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.mo-ph__slide::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(var(--shade), .4) 0%, rgba(var(--shade), 0) 35%); } /* основное затемнение вшито в файлы hero-*.webp */
.mo-ph__txt { width: 100%; padding-bottom: 70px; }
.mo-ph__h { font: var(--fh-w) calc(clamp(34px, 4vw, 60px) * var(--h-k))/1.06 var(--fh); letter-spacing: var(--h-ls); }
.mo-ph__h span { display: block; white-space: nowrap; }
.mo-ph__p { margin-top: 20px; font-size: 18px; line-height: 1.55; color: rgba(255,255,255,.86); max-width: 46ch; }
.mo-ph__ui { position: absolute; left: 0; right: 0; bottom: 30px; display: flex; align-items: center; gap: 12px; z-index: 3; }
.mo-ph__ui .mo-slider__bars { margin-right: 6px; }
.mo-ph__ui .mo-slider__count { margin-right: auto; }
.mo-ph__ui .mo-round { display: none; }
.mo-ph__cards { position: relative; z-index: 4; display: flex; justify-content: flex-end; gap: 16px; margin-top: -132px; pointer-events: none; }
.mo-phc { pointer-events: auto; position: relative; width: 330px; min-height: 168px; padding: 20px 150px 20px 22px; border-radius: 20px; background: #fff; color: var(--ink); display: flex; flex-direction: column; gap: 6px; box-shadow: 0 24px 50px -24px rgba(var(--shade), .5); overflow: hidden; }
.mo-phc img { position: absolute; right: 10px; bottom: 0; height: 150px; width: auto; transition: transform .9s var(--ease); }
.mo-phc:hover img { transform: translateY(-4px); }
.mo-phc__t { font: var(--fh-w) calc(18px * var(--h-k))/1.2 var(--fh); letter-spacing: var(--h-ls); }
.mo-phc__d { font-size: 14px; line-height: 1.45; color: var(--muted); }
.mo-phc__l { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; font-size: 15px; }
.mo-phc__l .mo-arr { width: 13px; height: 13px; transition: transform .35s var(--ease); }
.mo-phc:hover .mo-phc__l .mo-arr { transform: translateX(3px); }

/* ── вариант 2: карточка-слайдер ── */
.mo-ch { padding-top: 24px; }
.mo-ch__card { position: relative; height: clamp(460px, 38vw, 560px); border-radius: 24px; overflow: hidden; background: var(--graphite); }
.mo-ch__slide { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.mo-ch__txt { padding: clamp(36px, 4vw, 60px) clamp(28px, 3.4vw, 56px) 96px; color: #fff; display: flex; flex-direction: column; justify-content: center; }
.mo-ch__h { font: var(--fh-w) calc(clamp(30px, 3.1vw, 48px) * var(--h-k))/1.08 var(--fh); letter-spacing: var(--h-ls); }
.mo-ch__h span { display: block; white-space: nowrap; }
.mo-ch__p { margin-top: 18px; font-size: 17px; line-height: 1.55; color: rgba(255,255,255,.8); max-width: 42ch; }
.mo-ch__img { position: relative; overflow: hidden; }
.mo-ch__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mo-ch__img::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, var(--graphite) 0%, rgba(46,49,55,0) 22%); }
.mo-ch__ui { position: absolute; left: clamp(28px, 3.4vw, 56px); bottom: 32px; z-index: 3; display: flex; align-items: center; gap: 10px; }
.mo-ch__ui .mo-slider__bars { margin-right: 10px; }
.mo-ch__facts { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mo-ch__facts li { display: flex; align-items: center; gap: 14px; background: var(--surface); border-radius: 18px; padding: 18px 20px; }
.mo-ch__facts .mo-ic { width: 44px; height: 44px; color: var(--accent); }
.mo-ch__facts span { display: flex; flex-direction: column; font-size: 14px; color: var(--muted); line-height: 1.4; }
.mo-ch__facts b { font-size: 16px; color: var(--ink); font-weight: 600; }

/* ── вариант 3: плитки каталога ── */
.mo-bento { padding-top: 24px; }
.mo-bento__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: 280px 280px; gap: 16px; }
.mo-bento__main { grid-column: span 2; grid-row: span 2; position: relative; border-radius: 24px; overflow: hidden; background: radial-gradient(120% 80% at 75% 100%, #FBFBFD 0%, #ECEEF4 55%, #E2E5ED 100%); }
.mo-bslide { position: absolute; inset: 0; }
.mo-bslide__txt { position: relative; z-index: 2; padding: clamp(28px, 3vw, 44px) clamp(24px, 3vw, 44px) 0; }
.mo-bslide__h { font: var(--fh-w) calc(clamp(28px, 2.7vw, 42px) * var(--h-k))/1.08 var(--fh); letter-spacing: var(--h-ls); color: var(--ink); }
.mo-bslide__h span { display: block; white-space: nowrap; }
.mo-bslide__p { margin-top: 14px; font-size: 16px; line-height: 1.55; max-width: 34ch; color: var(--text); }
.mo-bslide .mo-ph__btns { margin-top: 22px; }
.mo-bslide .mo-btn { height: 48px; padding: 0 16px 0 20px; font-size: 15px; }
.mo-bslide__art { position: absolute; right: 0; bottom: 0; width: 60%; height: 47%; z-index: 1; }
.mo-bslide__art img { position: absolute; bottom: 10%; width: auto; filter: drop-shadow(0 22px 20px rgba(var(--shade), .2)); }
.mo-bslide__art .p1 { height: 96%; left: 4%; }
.mo-bslide__art .p2 { height: 74%; right: 4%; }
.mo-bslide__art .p2--low { height: 48%; }
.mo-bento__ui { position: absolute; left: clamp(24px, 3vw, 44px); bottom: 24px; z-index: 3; display: flex; align-items: center; gap: 8px; }
.mo-bento__ui .mo-slider__bars { margin-right: 8px; }
.mo-btile { position: relative; border-radius: 24px; overflow: hidden; padding: 24px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; color: #fff; isolation: isolate; }
.mo-btile:first-of-type { grid-column: span 2; }
.mo-btile--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1s var(--ease); }
.mo-btile--photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(var(--shade), .05) 30%, rgba(var(--shade), .72) 100%); }
.mo-btile--photo:hover img { transform: scale(1.04); }
.mo-btile--dark { background: var(--graphite); justify-content: space-between; }
.mo-btile__ic { width: 64px; height: 64px; color: #A9AEFF; }
.mo-btile__t { font: var(--fh-w) calc(clamp(18px, 1.55vw, 23px) * var(--h-k))/1.2 var(--fh); letter-spacing: var(--h-ls); }
.mo-btile__l { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: #E3E5FF; }
.mo-btile__l .mo-arr { width: 13px; height: 13px; transition: transform .35s var(--ease); }
.mo-btile:hover .mo-btile__l .mo-arr { transform: translateX(3px); }
.mo-minis { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mo-minis:empty { min-height: 256px; } /* плашки собирает скрипт: место заранее, без сдвига */
.mo-mini { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 120px; padding: 18px 16px 18px 22px; background: var(--surface); border-radius: 20px; transition: background-color .3s; overflow: hidden; }
.mo-mini:hover { background: var(--surface-2); }
.mo-mini__t { font: var(--fh-w) calc(17px * var(--h-k))/1.2 var(--fh); letter-spacing: var(--h-ls); color: var(--ink); }
.mo-mini__t::after { content: ""; position: absolute; inset: 0; }
.mo-mini img { height: 92px; width: auto; max-width: 46%; object-fit: contain; transition: transform .9s var(--ease); }
.mo-mini:hover img { transform: scale(1.05); }

/* ── каталог плашками ── */
.mo-cats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mo-cat { position: relative; min-height: 300px; padding: 22px 24px 22px; border-radius: 22px; background: var(--surface); display: flex; flex-direction: column; overflow: hidden; isolation: isolate; transition: background-color .35s var(--ease); }
.mo-cat:hover { background: var(--surface-2); }
.mo-cat--wide { grid-column: span 2; }
.mo-cat--dark { background: var(--graphite); color: #fff; grid-column: span 3 !important; min-height: 220px; }
.mo-cat--dark:hover { background: var(--graphite-2); }
.mo-cat__h { font: var(--fh-w) calc(clamp(19px, 1.55vw, 23px) * var(--h-k))/1.15 var(--fh); letter-spacing: var(--h-ls); color: var(--ink); }
.mo-cat--wide .mo-cat__h { max-width: 18ch; }
.mo-cat--dark .mo-cat__h { color: #fff; }
.mo-cat__h a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.mo-cat__sub { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; position: relative; z-index: 2; }
.mo-cat--wide .mo-cat__sub { max-width: 44%; }
.mo-cat__sub a { font-size: 14.5px; color: var(--muted); line-height: 1.35; transition: color .2s; }
.mo-cat__sub a:hover { color: var(--accent); }
.mo-cat__all { margin-top: auto; padding-top: 16px; display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; font-size: 15px; position: relative; z-index: 2; align-self: flex-start; }
.mo-cat__all .mo-arr { width: 13px; height: 13px; transition: transform .35s var(--ease); }
.mo-cat:hover .mo-cat__all .mo-arr { transform: translateX(3px); }
.mo-cat__img { order: -1; height: 180px; margin: -6px -6px 18px; display: flex; align-items: flex-end; justify-content: center; pointer-events: none; }
.mo-cat--wide .mo-cat__img { order: 0; position: absolute; right: 22px; bottom: 18px; height: auto; margin: 0; z-index: 0; }
.mo-cat__img img { height: 170px; width: auto; max-width: 90%; object-fit: contain; transition: transform .9s var(--ease); filter: drop-shadow(0 14px 14px rgba(var(--shade), .14)); }
.mo-cat__img img + img { height: 132px; margin-left: -18px; max-width: 60%; }
.mo-cat--wide .mo-cat__img img { height: 230px; max-width: 260px; }
.mo-cat--wide .mo-cat__img img + img { height: 200px; }
.mo-cat:hover .mo-cat__img img { transform: translateY(-5px); }
.mo-cat--dark .mo-cat__p { margin-top: 12px; color: rgba(255,255,255,.75); font-size: 15px; max-width: 34ch; position: relative; z-index: 2; }
.mo-cat--dark .mo-cat__all { color: #fff; }
.mo-cat__ic { position: absolute; right: 26px; bottom: 24px; width: 120px; height: 120px; color: rgba(255,255,255,.18); }

/* ── калькулятор: стабильная высота ── */
.mo-calc__box { align-items: stretch; }
.mo-calc__form { padding-bottom: 28px; }

/* ── призыв ── */
.mo-cta__card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: 26px; overflow: hidden; background: var(--graphite); }
.mo-cta__info { position: relative; padding: clamp(32px, 4vw, 56px); color: #fff; isolation: isolate; }
.mo-cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .22; filter: grayscale(.4); }
.mo-cta__info::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(160deg, rgba(46,49,55,.55) 0%, rgba(46,49,55,.95) 70%); }
.mo-cta__h { font: var(--fh-w) calc(clamp(24px, 2.3vw, 34px) * var(--h-k))/1.18 var(--fh); letter-spacing: var(--h-ls); max-width: 20ch; }
.mo-cta__steps { list-style: none; margin: 34px 0 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.mo-cta__steps li { display: flex; gap: 18px; align-items: center; }
.mo-cta__steps .mo-ic { width: 52px; height: 52px; color: #A9AEFF; }
.mo-cta__steps span { display: flex; flex-direction: column; color: rgba(255,255,255,.72); font-size: 15px; line-height: 1.45; }
.mo-cta__steps b { color: #fff; font-size: 17px; font-weight: 600; }
.mo-cta__form { background: #fff; margin: 10px; border-radius: 20px; padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 6px; }
.mo-chips { border: 0; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.mo-chips legend { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 10px; padding: 0; }
.mo-chips label { cursor: pointer; }
.mo-chips input { position: absolute; opacity: 0; pointer-events: none; }
.mo-chips span { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 14.5px; font-weight: 500; color: var(--ink); transition: background-color .2s, border-color .2s, color .2s; }
@media (hover: hover) { .mo-chips label:hover span { border-color: var(--accent); } }
.mo-chips input:checked + span { background: var(--accent); border-color: var(--accent); color: #fff; }
.mo-chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.mo-cta__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mo-cta__form .mo-btn { margin-top: 6px; }
.mo-cta__wa { margin-top: 10px; display: inline-flex; align-items: center; gap: 8px; color: var(--wa-text); font-weight: 600; font-size: 15px; align-self: center; }
.mo-cta__wa .mo-ic { width: 18px; height: 18px; }
.mo-cta__wa:hover { text-decoration: underline; text-underline-offset: 3px; }
.mo-cta__done { margin-top: 8px; display: flex; align-items: center; gap: 8px; color: #1D7A45; font-weight: 600; }
.mo-cta__done[hidden] { display: none; }

/* ── о компании ── */
.mo-about__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 24px clamp(32px, 5vw, 80px); align-items: start; }
.mo-about__h { font: var(--fh-w) calc(clamp(26px, 2.5vw, 38px) * var(--h-k))/1.15 var(--fh); letter-spacing: var(--h-ls); color: var(--ink); max-width: 18ch; text-wrap: balance; }
.mo-about__lead { display: flex; flex-direction: column; gap: 14px; font-size: 17px; line-height: 1.65; color: var(--text); }
.mo-dirs { list-style: none; margin: clamp(32px, 4vw, 52px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mo-dir { position: relative; padding: 28px 28px 26px; border-radius: 22px; background: var(--surface); display: flex; flex-direction: column; gap: 10px; transition: background-color .35s var(--ease); }
.mo-dir:hover { background: var(--accent-soft); }
.mo-dir__ic { width: 64px; height: 64px; color: var(--accent); margin-bottom: 8px; }
.mo-dir h3 { font: var(--fh-w) calc(20px * var(--h-k))/1.2 var(--fh); letter-spacing: var(--h-ls); color: var(--ink); }
.mo-dir p { font-size: 15px; line-height: 1.55; color: var(--text); }
.mo-dir__a { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 8px; color: var(--accent); font-weight: 600; font-size: 15px; }
.mo-dir__a .mo-arr { width: 13px; height: 13px; transition: transform .35s var(--ease); }
.mo-dir__a:hover .mo-arr { transform: translateX(3px); }

/* ── вопросы ── */
.mo-faq__in { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.4fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.mo-faq__side { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 24px; }
.mo-ask { position: relative; isolation: isolate; background: var(--graphite); color: #fff; border-radius: 22px; padding: 28px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; min-height: 440px; overflow: hidden; }
/* фото менеджера сверху во всю ширину плашки, к низу растворяется в графите; текст под ним на сплошном фоне */
/* фото менеджера фоном на всю плашку; затемнение под текстом вшито в файл (tools/manager_bg.py) */
.mo-ask__ph { position: absolute; inset: 0; z-index: -1; }
.mo-ask__ph img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 18%; }
.mo-ask__t { font-size: 17px; font-weight: 600; }
.mo-ask__tel { font: var(--fh-w) calc(24px * var(--h-k))/1.2 var(--fh); letter-spacing: var(--h-ls); font-variant-numeric: tabular-nums; margin-top: 6px; }
.mo-ask__tel:hover { color: #C9CCFF; }
.mo-ask__h { font-size: 14px; color: rgba(255,255,255,.65); }
.mo-ask__btns { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.mo-ask__btns .mo-btn { flex: 1 1 140px; }
/* планшет: плашка во всю ширину, фото справа растворяется влево, текст слева */
@media (min-width: 600px) and (max-width: 1024px) {
  .mo-ask { padding-right: calc(46% + 28px); min-height: 300px; justify-content: center; }
  .mo-ask__ph img { object-position: right 22%; }
}
/* телефон: две кнопки в один ряд */
@media (max-width: 599px) {
  .mo-ask__btns { flex-wrap: nowrap; gap: 8px; }
  .mo-ask__btns .mo-btn { flex: 1 1 0; min-width: 0; padding: 0 14px; gap: 8px; justify-content: center; font-size: 14.5px; }
  .mo-ask__btns .mo-arr { display: none; }
}
.mo-faq__list { display: flex; flex-direction: column; gap: 10px; }
.mo-qa { background: var(--surface); border-radius: 18px; transition: background-color .3s; }
.mo-qa[open] { background: var(--accent-soft); }
@media (hover: hover) { .mo-qa:hover { background: var(--accent-soft); } }
.mo-qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; padding: 18px 20px 18px 18px; font: 600 17px/1.35 var(--fb); color: var(--ink); }
.mo-qa summary::-webkit-details-marker { display: none; }
.mo-qa summary > span:not(.mo-qa__pm) { flex: 1; }
.mo-qa__ic { width: 40px; height: 40px; color: var(--accent); }
.mo-qa__pm { width: 34px; height: 34px; border-radius: 50%; background: #fff; position: relative; flex: none; transition: background-color .2s; }
.mo-qa__pm::before, .mo-qa__pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--ink); border-radius: 2px; transition: transform .35s var(--ease); }
.mo-qa__pm::after { transform: rotate(90deg); }
.mo-qa[open] .mo-qa__pm { background: var(--accent); }
.mo-qa[open] .mo-qa__pm::before, .mo-qa[open] .mo-qa__pm::after { background: #fff; }
.mo-qa[open] .mo-qa__pm::after { transform: rotate(0); }
.mo-qa.is-closing .mo-qa__pm { background: #fff; }
.mo-qa.is-closing .mo-qa__pm::before, .mo-qa.is-closing .mo-qa__pm::after { background: var(--ink); }
.mo-qa.is-closing .mo-qa__pm::after { transform: rotate(90deg); }
.mo-qa.is-closing:not(:hover) { background: var(--surface); }
.mo-qa__a { overflow: hidden; }
.mo-qa__in { padding: 0 70px 20px 74px; color: var(--text); }
.mo-qa__in p { max-width: 64ch; }   /* в одну колонку (v6, v7) ответ был 667 px, до 82 знаков в строке */

/* ── ноутбук ── */
@media (max-width: 1240px) {
  .mo-cats__grid { grid-template-columns: repeat(3, 1fr); }
  .mo-cat--wide { grid-column: span 2; }
  .mo-ch__facts { grid-template-columns: repeat(2, 1fr); }
  .mo-bento__grid { grid-template-rows: 260px 260px; }
  .mo-minis { grid-template-columns: repeat(4, 1fr); }
  .mo-mini img { height: 76px; }
  .mo-phc { width: 300px; padding-right: 130px; }
  .mo-phc img { height: 130px; }
}
/* ── планшет ── */
@media (max-width: 1024px) {
  .mo-ph__slider { height: 600px; }
  .mo-ph__cards { margin-top: -90px; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .mo-ph__txt { padding-bottom: 120px; }
  .mo-ch__card { height: 520px; }
  .mo-ch__slide { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .mo-ch__txt { padding: 32px 28px 0; }
  .mo-ch__img::before { background: linear-gradient(180deg, var(--graphite) 0%, rgba(46,49,55,0) 30%); }
  .mo-ch__ui { left: 28px; bottom: 22px; }
  .mo-bento__grid { grid-template-columns: 1fr 1fr; grid-template-rows: 460px 220px; }
  .mo-bento__main { grid-column: span 2; grid-row: auto; }
  .mo-btile:first-of-type { grid-column: span 2; }
  .mo-minis { grid-template-columns: repeat(2, 1fr); }
  .mo-minis:empty { min-height: 528px; }
  .mo-cats__grid { grid-template-columns: repeat(2, 1fr); }
  .mo-cat--dark { grid-column: span 2 !important; }
  .mo-cats__grid > .mo-cat:nth-child(8) { grid-column: span 2; }
  .mo-cta__card { grid-template-columns: 1fr; }
  .mo-about__top { grid-template-columns: 1fr; }
  .mo-dirs { grid-template-columns: repeat(2, 1fr); }
  .mo-faq__in { grid-template-columns: 1fr; }
  .mo-faq__side { position: relative; top: 0; }
}
/* ── телефон ── */
@media (max-width: 767px) {
  .mo-ph__btns .l-l { display: none; }
  .mo-ph__btns .l-s { display: inline; }
  .mo-ph__btns .mo-btn { flex: 1 1 0; height: 50px; padding: 0 14px 0 18px; }
  .mo-ph__slider { height: 560px; }
  .mo-ph__slide { align-items: flex-end; }
  .mo-ph__slide::before { background: none; }
  .mo-ph__txt { padding-bottom: 150px; }
  .mo-ph__h { font-size: calc(clamp(24px, 7.4vw, 32px) * var(--h-k)); }
  .mo-ph__p { font-size: 15.5px; margin-top: 12px; }
  .mo-ph__btns { margin-top: 20px; }
  .mo-ph__ui { bottom: 100px; }
  .mo-ph__cards { margin: -84px 0 0; padding: 0 var(--pad); gap: 12px; scroll-snap-type: x mandatory; }
  .mo-phc { flex: 0 0 84%; width: auto; min-height: 150px; scroll-snap-align: start; padding-right: 120px; }
  .mo-phc img { height: 120px; }
  .mo-ch { padding-top: 12px; }
  .mo-ch__card { height: 600px; border-radius: 20px; }
  .mo-ch__txt { padding: 26px 20px 0; }
  .mo-ch__h { font-size: calc(clamp(24px, 7.2vw, 30px) * var(--h-k)); }
  .mo-ch__p { font-size: 15.5px; margin-top: 12px; }
  .mo-ch__ui { left: 20px; }
  .mo-ch__facts { grid-template-columns: 1fr; gap: 8px; }
  .mo-ch__facts li { padding: 14px 16px; }
  .mo-bento { padding-top: 12px; }
  .mo-bento__grid { grid-template-columns: 1fr 1fr; grid-template-rows: 560px 180px 180px; gap: 10px; }
  .mo-bento__main { border-radius: 20px; }
  .mo-bslide__h { font-size: calc(clamp(24px, 7.2vw, 30px) * var(--h-k)); }
  .mo-bslide__art { width: 100%; height: 250px; bottom: 60px; }
  .mo-bento__ui { bottom: 18px; }
  .mo-btile { border-radius: 18px; padding: 16px; }
  .mo-btile__ic { width: 44px; height: 44px; }
  .mo-minis { gap: 10px; }
  .mo-minis:empty { min-height: 446px; }
  .mo-mini { min-height: 104px; padding: 14px; flex-direction: column-reverse; align-items: flex-start; }
  .mo-mini img { height: 64px; max-width: 70%; }
  .mo-mini__t { font-size: calc(15px * var(--h-k)); }
  .mo-cats__grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .mo-cat:not(.mo-cat--wide) .mo-cat__sub, .mo-cat:not(.mo-cat--wide) .mo-cat__all { display: none; }
  .mo-cat:not(.mo-cat--wide) { min-height: 0 !important; padding: 14px !important; border-radius: 18px; }
  .mo-cat:not(.mo-cat--wide) .mo-cat__img { height: 104px; margin: 0 0 10px; }
  .mo-cat:not(.mo-cat--wide) .mo-cat__img img { height: 100px; }
  .mo-cat:not(.mo-cat--wide) .mo-cat__h { font-size: calc(15px * var(--h-k)); }
  .mo-cat--wide, .mo-cats__grid > .mo-cat:nth-child(8) { grid-column: 1 / -1 !important; }
  .mo-cat--wide { min-height: 250px; padding: 22px; }
  .mo-cat__img { height: 150px; }
  .mo-cat__img img { height: 140px; }
  .mo-cat--wide .mo-cat__img { order: -1; position: static; height: 170px; margin: -6px -6px 16px; justify-content: center; }
  .mo-cat--wide .mo-cat__img img { height: 160px; max-width: 48%; }
  .mo-cat--wide .mo-cat__img img + img { height: 140px; }
  .mo-cat--wide .mo-cat__sub { max-width: none; }
  .mo-cta__info { padding: 28px 22px; }
  .mo-cta__form { margin: 6px; padding: 22px 18px; }
  .mo-cta__row { grid-template-columns: 1fr; gap: 0; }
  .mo-cta__steps .mo-ic { width: 42px; height: 42px; }
  .mo-dirs[data-strip] { gap: 10px; margin: 24px calc(-1 * var(--pad)) 0; }
  .mo-dir { padding: 22px; }
  .mo-dir__ic { width: 52px; height: 52px; }
  .mo-qa summary { font-size: 15.5px; gap: 12px; padding: 14px 14px 14px 12px; }
  .mo-qa__ic { width: 32px; height: 32px; }
  .mo-qa__in { padding: 0 16px 16px 56px; }
  .mo-about__lead { font-size: 15.5px; }
  .mo-h2, .mo-about__h, .mo-cta__h, .mo-foot__say { font-size: min(calc(clamp(21px, 6vw, 24px) * var(--h-k)), calc(var(--h1, 30px) * .86)); }
}


/* ═════ третий круг ═════ */

/* калькулятор: вкладки «3D / Чертёж», объёмный стеллаж */
.mo-calc__draw { position: relative; }
.mo-calc__tabs { position: absolute; z-index: 3; top: 16px; left: 16px; display: inline-flex; padding: 4px; border-radius: 999px; background: #fff; }
.mo-calc__tabs button { height: 36px; padding: 0 16px; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--muted); transition: background-color .2s, color .2s; }
.mo-calc__tabs [aria-selected="true"] { background: var(--accent); color: #fff; }
.mo-calc__draw.is-nogl .mo-calc__tabs { display: none; }
.mo-rack3d { position: relative; aspect-ratio: 470 / 460; width: 100%; border-radius: 14px; overflow: hidden; }
.mo-rack3d canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.mo-rack3d canvas.is-grab { cursor: grabbing; }
.mo-rack3d { cursor: grab; touch-action: pan-y; }
.mo-rack3d__dims { position: absolute; z-index: 2; right: 12px; top: 18px; padding: 6px 12px; border-radius: 999px; background: #fff; font-size: 13px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.mo-rack3d__dims:empty { display: none; }   /* пустая до загрузки 3D: появление текста справа сдвигало её начало (CLS) */
.mo-rack3d__hint { position: absolute; z-index: 2; left: 50%; bottom: 10px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); white-space: nowrap; pointer-events: none; }
.mo-rack3d__hint .mo-ic { width: 10px; height: 10px; }
.mo-calc__draw[data-mode="3d"] .mo-rack { display: none; }
.mo-calc__draw[data-mode="plan"] .mo-rack3d { display: none; }
.mo-calc__draw[data-mode="plan"] .mo-rack { margin-top: 40px; }

/* призыв: светлый, изделие в углу */
.mo-cta__card { background: var(--surface); }
.mo-cta__info { color: var(--ink); overflow: hidden; }
.mo-cta__info::before { content: none; }
.mo-cta__h { color: var(--ink); }
.mo-cta__steps { max-width: 56%; position: relative; z-index: 1; }
.mo-cta__steps .mo-ic { color: var(--accent); }
.mo-cta__steps span { color: var(--muted); }
.mo-cta__steps b { color: var(--ink); }
.mo-cta__prod { position: absolute; right: -6px; bottom: -6px; height: 64%; width: auto; z-index: 0; filter: drop-shadow(0 22px 22px rgba(var(--shade), .16)); pointer-events: none; }
.mo-cta__form { box-shadow: 0 1px 0 var(--line); }
.mo-cta__wa { margin-top: 10px; align-self: stretch; color: #fff; justify-content: center; gap: 10px; height: auto; min-height: 52px; padding-top: 12px; padding-bottom: 12px; }
.mo-cta__wa:hover { text-decoration: none; }

/* карточка «Нужен проект под помещение?» на фото */
.mo-cat--proj { background: #23262b; min-height: 300px; justify-content: flex-end; padding: 30px 32px; }
.mo-cat--proj:hover { background: #23262b; }
.mo-cat__bg { position: absolute; inset: 0; z-index: -1; }
.mo-cat__bg img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.mo-cat--proj:hover .mo-cat__bg img { transform: scale(1.03); }
.mo-cat--proj .mo-cat__ic { position: static; width: 56px; height: 56px; color: #fff; margin-bottom: 14px; opacity: .95; }
.mo-cat--proj .mo-cat__h { color: #fff; max-width: 22ch; font-size: calc(clamp(22px, 2vw, 30px) * var(--h-k)); }
.mo-cat--proj .mo-cat__p { margin-top: 10px; color: rgba(255,255,255,.86); font-size: 16px; max-width: 44ch; }
.mo-cat__btns { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; position: relative; z-index: 2; }
.mo-cat__btns .mo-btn { height: 48px; }

/* заголовок «о компании» в три строки */
.mo-about__h { max-width: none; font-size: calc(clamp(24px, 2.35vw, 36px) * var(--h-k)); }

/* вариант 2: фото на весь фон слайда, текст поверх слева (затемнение вшито в файл) */
.mo-ch__slide { display: block; }
.mo-ch__img { position: absolute; inset: 0; overflow: hidden; }
.mo-ch__img::before { content: none; }
.mo-ch__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mo-ch__txt { position: relative; z-index: 2; height: 100%; width: min(620px, 56%); }

@media (max-width: 1024px) {
  .mo-ch__slide { display: block; }
  .mo-ch__txt { width: 100%; justify-content: flex-end; padding: 28px 28px 96px; }
  .mo-cta__steps { max-width: 70%; }
}
@media (max-width: 767px) {
  .mo-cta__prod { display: none; }
  .mo-cta__steps { max-width: none; }
  .mo-cat--proj { padding: 22px; min-height: 380px; }
  .mo-cat--proj .mo-cat__h { font-size: calc(22px * var(--h-k)); }
  .mo-cat__btns .mo-btn { flex: 1 1 140px; }
  .mo-ch__txt { padding: 24px 20px 92px; }
  .mo-calc__tabs { top: 10px; left: 10px; }
  .mo-rack3d__dims { display: none; } /* на телефоне размеры уже есть строкой под ценой */
  .mo-rack3d__hint { font-size: 12px; }
}

/* ═════ вариант 4: подбор по помещению ═════ */
html[data-v="4"] .mo-v4 { display: block; }
html[data-v="4"] .mo-cats { display: none; }
.mo-index { display: none; }
html[data-v="4"] .mo-index { display: block; }

.mo-room { position: relative; overflow: hidden; color: #fff; background: radial-gradient(55% 75% at 70% 72%, #4A51E4 0%, var(--accent) 62%); }
.mo-room__in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; }
.mo-room__side { padding: clamp(40px, 4vw, 64px) 0 clamp(40px, 4vw, 60px); display: flex; flex-direction: column; justify-content: center; }
.mo-room__h { font: var(--fh-w) calc(clamp(32px, 3.2vw, 50px) * var(--h-k))/1.08 var(--fh); letter-spacing: var(--h-ls); }
.mo-room__h span { display: block; white-space: nowrap; }
.mo-room__p { margin-top: 18px; font-size: 17px; line-height: 1.55; color: rgba(255,255,255,.86); max-width: 40ch; }
.mo-room__tabs { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 470px; }
.mo-room__tabs button { position: relative; height: 50px; padding: 0 18px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.38); color: #fff; font: 600 15.5px/1 var(--fb); text-align: left; overflow: hidden; transition: background-color .3s, color .3s, border-color .3s; }
@media (hover: hover) { .mo-room__tabs button:hover { border-color: #fff; background: rgba(255,255,255,.08); } }
.mo-room__tabs button[aria-selected="true"], .mo-room__tabs button[aria-selected="true"]:hover { background: #fff; border-color: #fff; color: var(--ink); }
.mo-room__tabs i { position: absolute; left: 18px; right: 18px; bottom: 7px; height: 2px; border-radius: 2px; background: transparent; overflow: hidden; }
.mo-room__tabs [aria-selected="true"] i { background: var(--accent-soft); }
.mo-room__tabs [aria-selected="true"] i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; animation: moBar var(--room-t, 7s) linear forwards; }
.mo-room.is-manual .mo-room__tabs i::after, .mo-room.is-paused .mo-room__tabs i::after { animation-play-state: paused; }
.mo-room.is-manual .mo-room__tabs i { background: transparent; }
.mo-room .mo-ph__btns { margin-top: 28px; }

.mo-room__stage { position: relative; display: grid; min-height: clamp(540px, 43vw, 640px); }
.mo-room__floor { position: absolute; left: 2%; right: 30%; bottom: 44px; height: 120px; background: radial-gradient(closest-side, rgba(255,255,255,.2), rgba(255,255,255,0)); pointer-events: none; }
.mo-room__pane { grid-area: 1 / 1; position: relative; visibility: hidden; }
.mo-room__pane[hidden] { display: block; }
.mo-room__pane.is-on, .mo-room__pane.is-out { visibility: visible; }
.mo-room__art { position: absolute; left: 0; right: 30%; bottom: 76px; height: 68%; }
.mo-room__art img { position: absolute; bottom: 0; width: auto; filter: drop-shadow(0 26px 22px rgba(var(--shade), .32)); }
.mo-room__art .r1 { height: 96%; left: 4%; }
.mo-room__art .r2 { height: 96%; left: 34%; z-index: 1; }
.mo-room__art .r3 { height: 74%; left: 66%; z-index: 2; }
.mo-room__art .r3--low { height: 46%; left: 52%; }
.mo-room__art .r2--low { height: 46%; left: 44%; }
.mo-room__art .r2--mid { height: 66%; left: 26%; }
.mo-room__art .r3--mid { height: 56%; left: 60%; }
#room-2 .mo-room__art .r1 { height: 74%; left: 2%; }
#room-1 .mo-room__art .r2 { height: 84%; left: 30%; }
#room-4 .mo-room__art .r1 { height: 74%; left: 0; }
#room-4 .mo-room__art .r2--low { left: 30%; height: 52%; }
.mo-room__art--row { display: flex; align-items: flex-end; justify-content: center; gap: 2px; }
.mo-room__art--row img { position: static; height: 86%; }
.mo-room__card { position: absolute; right: 0; bottom: 72px; width: 300px; padding: 22px 24px 20px; border-radius: 20px; background: #fff; color: var(--ink); box-shadow: 0 30px 60px -30px rgba(var(--shade), .55); z-index: 3; }
.mo-room__card b { display: block; font: var(--fh-w) calc(17px * var(--h-k))/1.25 var(--fh); letter-spacing: var(--h-ls); margin-bottom: 12px; }
.mo-room__card ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mo-room__card li a { font-size: 15px; color: var(--text); transition: color .2s; }
.mo-room__card li a:hover { color: var(--accent); }
.mo-room__more { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; color: var(--accent); font-weight: 600; font-size: 15px; }
.mo-room__more .mo-arr { width: 13px; height: 13px; transition: transform .35s var(--ease); }
.mo-room__more:hover .mo-arr { transform: translateX(3px); }
/* смена помещения: изделия поднимаются на подиум по очереди, прежние уходят вниз */
html.motion .mo-room__pane.is-on .mo-room__art img { animation: roomIn .75s cubic-bezier(.22,.8,.3,1) both; }
html.motion .mo-room__pane.is-on .mo-room__art img:nth-child(2) { animation-delay: .07s; }
html.motion .mo-room__pane.is-on .mo-room__art img:nth-child(3) { animation-delay: .14s; }
html.motion .mo-room__pane.is-on .mo-room__art img:nth-child(4) { animation-delay: .21s; }
html.motion .mo-room__pane.is-on .mo-room__card { animation: roomCard .6s cubic-bezier(.22,.8,.3,1) .12s both; }
html.motion .mo-room__pane.is-out { animation: roomOut .32s ease forwards; }
html.motion .mo-room__pane.is-first * { animation: none !important; }
@keyframes roomIn { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }
@keyframes roomCard { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes roomOut { to { opacity: 0; transform: translateY(14px); } }

/* каталог списком-указателем */
.mo-index__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.mo-ix { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) 170px 52px; gap: 28px; align-items: center; padding: 22px 22px 22px 20px; border-bottom: 1px solid var(--line); transition: background-color .35s var(--ease); }
.mo-ix:hover { background: var(--surface); }
.mo-ix__t { font: var(--fh-w) calc(clamp(20px, 1.8vw, 27px) * var(--h-k))/1.15 var(--fh); letter-spacing: var(--h-ls); color: var(--ink); }
.mo-ix__t a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.mo-ix__sub { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; position: relative; z-index: 1; }
.mo-ix__sub a { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--surface); font-size: 13.5px; color: var(--text); transition: background-color .2s, color .2s; }
.mo-ix:hover .mo-ix__sub a { background: #fff; }
.mo-ix__sub a:hover { color: var(--accent); }
.mo-ix__d { font-size: 15px; line-height: 1.5; color: var(--muted); }
.mo-ix__img { height: 110px; display: grid; place-items: center; }
.mo-ix__img img { max-height: 110px; width: auto; max-width: 100%; object-fit: contain; transition: transform .9s var(--ease); }
.mo-ix:hover .mo-ix__img img { transform: scale(1.06); }
.mo-ix__go { width: 52px; height: 52px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; color: var(--ink); transition: background-color .3s, border-color .3s, color .3s; }
.mo-ix__go .mo-ic { width: 15px; height: 15px; }
.mo-ix:hover .mo-ix__go { background: var(--accent); border-color: var(--accent); color: #fff; }

@media (max-width: 1240px) {
  .mo-room__art { right: 32%; }
  .mo-room__card { width: 270px; }
  .mo-ix { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 130px 48px; gap: 20px; }
}
@media (max-width: 1024px) {
  .mo-room__in { grid-template-columns: 1fr; gap: 0; }
  .mo-room__side { padding-bottom: 8px; }
  .mo-room__tabs { grid-template-columns: repeat(3, 1fr); max-width: none; }
  .mo-room__stage { min-height: 520px; }
  .mo-room__floor { right: 34%; }
  .mo-ix { grid-template-columns: minmax(0, 1fr) 120px 48px; }
  .mo-ix__d { display: none; }
}
@media (max-width: 767px) {
  .mo-room__h { font-size: calc(clamp(24px, 7.2vw, 32px) * var(--h-k)); }
  .mo-room__p { font-size: 15.5px; margin-top: 12px; }
  .mo-room__tabs { grid-template-columns: 1fr 1fr; margin-top: 20px; }
  .mo-room__tabs button { height: 46px; font-size: 14.5px; padding: 0 14px; }
  .mo-room__tabs i { left: 14px; right: 14px; }
  .mo-room .mo-ph__btns { margin-top: 20px; }
  .mo-room .mo-ph__btns .mo-btn { flex: 1 1 0; height: 50px; padding: 0 14px 0 18px; }
  .mo-room__stage { min-height: 0; padding-bottom: 28px; }
  .mo-room__floor { left: 0; right: 0; bottom: auto; top: 220px; height: 90px; }
  .mo-room__pane { display: flex; flex-direction: column; }
  .mo-room__art { position: relative; left: auto; right: auto; bottom: auto; height: 300px; }
  .mo-room__art .r1 { left: 2%; } .mo-room__art .r2 { left: 32%; }
  .mo-room__art--row img { height: 76%; }
  .mo-room__card { position: relative; right: auto; bottom: auto; width: auto; margin-top: 14px; }
  .mo-ix { grid-template-columns: minmax(0, 1fr) 88px; gap: 14px; padding: 18px 4px; }
  .mo-ix__go { display: none; }
  .mo-ix__img { height: 80px; } .mo-ix__img img { max-height: 80px; }
  .mo-ix__sub a { height: 28px; font-size: 12.5px; padding: 0 10px; }
}

/* ───── касание и узкие телефоны (аудит устройств 04.11) ───── */
/* полоски слайдера: видимая линия прежняя, поле нажатия 40 px */
.mo-slider__bars button { height: 40px; margin: -8px 0; }
.mo-calc__tabs button { height: 40px; }
/* ленты карточек листаются только вбок */
[data-strip]:not(section), .mo-ph__cards { overflow-y: hidden; }
@media (pointer: coarse) {
  .mo-top__nav a { display: inline-block; padding: 9px 0; }
  .mo-foot__bottom a, .v5-foot__bottom a { display: inline-block; padding: 9px 0; margin: -9px 0; }
}
@media (max-width: 400px) {
  .mo-phc { width: 272px; padding-right: 100px; }
  .mo-phc img { height: 104px; }
}
@media (max-width: 380px) {
  .mo-ask { padding: 22px; }
  .mo-ask__btns .mo-btn { font-size: 13.5px; padding: 0 10px; gap: 6px; }
}
/* планшет: калькулятор в одну колонку, 3D-сцена ниже, чтобы форма была ближе */
@media (min-width: 600px) and (max-width: 1024px) {
  .mo-rack3d { aspect-ratio: 16 / 10; }
}
/* узкий телефон: названия плиток варианта 3 не обрезаются */
@media (max-width: 380px) {
  .mo-btile { padding: 14px; }
  .mo-btile__t { font-size: 14.5px; }
}

/* ═════ телефон и планшет: меню, поиск, форма, ленты (04.11, правки melen) ═════ */
button, a, summary, label { -webkit-tap-highlight-color: transparent; }   /* голубая вспышка Safari и Chrome при нажатии */

/* меню: затемнение: отдельный слой; раньше проявлялась вся шторка вместе с панелью, и панель «просвечивала» на выезде */
.mo-drawer { background: none; opacity: 1; transition: none; }
.mo-drawer::before { content: ""; position: absolute; inset: 0; background: rgba(var(--shade), .5); opacity: 0; transition: opacity .3s var(--ease); }
.mo-drawer.is-open::before { opacity: 1; }
.mo-drawer__panel { will-change: transform; transition: transform .28s cubic-bezier(.4, 0, 1, 1); box-shadow: -30px 0 60px -40px rgba(var(--shade), .6); }
.mo-drawer.is-open .mo-drawer__panel { transition: transform .44s cubic-bezier(.22, 1, .36, 1); }
/* пункты догоняют панель лесенкой; при закрытии остаются на месте и уезжают вместе с ней */
.mo-drawer:not(.is-open):not(.is-closing) :is(.mo-dcat > li, .mo-dco > a, .mo-dco__c) { opacity: 0; transform: translateX(32px); }
.mo-drawer.is-open :is(.mo-dcat > li, .mo-dco > a, .mo-dco__c) { transition: opacity .28s var(--ease), transform .42s cubic-bezier(.22, 1, .36, 1); transition-delay: calc(50ms + var(--i, 0) * 18ms); }
.mo-dcat__btn, .mo-dco a { transition: color .2s; }
.mo-dcat__btn:active, .mo-dco a:active, .mo-dcat__sub a:active { color: var(--accent); }
.mo-dcat__sub a:hover { color: var(--accent); }
.mo-dcat__sub { contain: layout paint; }
.mo-dcat__sub .mo-all { display: inline-flex; align-items: center; gap: 8px; width: auto; height: 40px; padding: 0 16px; margin: 2px 0 16px 58px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 14px; font-weight: 600; }   /* было блоком на всю ширину, стрелка у текста */

/* поиск в шапке телефона: значок, по нажатию строка выезжает из-под шапки */
.mo-head__ic.mo-head__ic--search { display: none; }
.mo-head__ic--search .mo-ic + .mo-ic { display: none; }
.mo-head.is-search .mo-head__ic--search .mo-ic { display: none; }
.mo-head.is-search .mo-head__ic--search .mo-ic + .mo-ic { display: block; }
@media (max-width: 767px) {
  .mo-head__in { position: relative; }
  .mo-head__ic.mo-head__ic--search { display: grid; }
  .mo-search {
    display: block; position: absolute; left: 0; right: 0; top: 100%; z-index: -1; padding: 10px var(--pad) 14px; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: 0 22px 34px -28px rgba(var(--shade), .55);
    clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .26s cubic-bezier(.4, 0, 1, 1), visibility 0s .26s;
  }
  .mo-head.is-search .mo-search { clip-path: inset(0 0 -60px 0); visibility: visible; transition: clip-path .38s cubic-bezier(.22, 1, .36, 1), visibility 0s; }
  .mo-search input { height: 48px; font-size: 16px; background: var(--surface); }   /* 16 px: Safari не увеличивает страницу при вводе */
  .mo-search button { top: 14px; right: calc(var(--pad) + 4px); }
  .mo-head.is-search .mo-head__ic--search { background: var(--ink); color: #fff; }
}
@media (max-width: 374px) {
  .mo-head__in { gap: 6px; }
  .mo-head__ic, .mo-basket { width: 42px; height: 42px; }
  .mo-logo img { height: 36px; }   /* 320 px: логотип и четыре кнопки с полем 16 px справа */
  .mo-logo { display: flex; align-items: center; height: 44px; }   /* поле нажатия 44 px при логотипе 36 px */
}

/* ленты на телефоне: первая карточка с полем страницы, а не у края экрана */
@media (max-width: 767px) {
  .mo-ph__cards { scroll-padding-inline: var(--pad); }   /* прилипание прокрутки ставило первую карточку к краю окна */
  .mo-dirs[data-strip] { padding: 0 var(--pad); scroll-padding-inline: var(--pad); }   /* общий padding: 0 у .mo-dirs перебивал поле ленты */
}

/* вопросы: на планшете и телефоне сначала вопросы, плашка «Спросите менеджера» после них */
@media (max-width: 1024px) {
  .mo-faq__side { display: contents; }
  .mo-faq__in > .mo-faq__list { order: 1; }
  .mo-faq__side > .mo-ask { order: 2; }
}

/* пары кнопок на телефоне («Отправить план» + WhatsApp, «Получить КП» + WhatsApp): подписи обеих по центру */
@media (max-width: 767px) {
  .mo-cat__btns .mo-btn, .mo-cta__form .mo-btn { justify-content: center; gap: 10px; }
}

/* подвал на телефоне: под словом METALL.ORG без длинного хвоста, место только под нижнее меню */
@media (max-width: 767px) {
  .mo-foot { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .mo-foot__big { padding-bottom: 18px; }
}

/* окно заявки: пустой список позиций больше не рисует серую полосу; закрытие тоже плавное */
.mo-modal__list[hidden] { display: none; }
.mo-modal[open]::backdrop { animation: moFade .3s var(--ease); }
.mo-modal.is-closing { animation: moModalOut .2s cubic-bezier(.4, 0, 1, 1) forwards; }
.mo-modal.is-closing::backdrop { animation: moFadeOut .22s forwards; }
@keyframes moModalOut { to { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes moFade { from { opacity: 0; } }
@keyframes moFadeOut { to { opacity: 0; } }
@media (max-width: 1024px) { html:has(.mo-modal[open]) { overflow: hidden; } }   /* страница под окном не листается */
/* телефон: окно: лист снизу во всю ширину, выезжает и уезжает вниз */
@media (max-width: 599px) {
  .mo-modal { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 22px 22px 0 0; max-height: calc(100dvh - 36px); overscroll-behavior: contain; box-shadow: 0 -20px 50px -30px rgba(var(--shade), .5); }
  .mo-modal[open] { animation: moSheet .46s cubic-bezier(.22, 1, .36, 1); }
  .mo-modal.is-closing { animation: moSheetOut .26s cubic-bezier(.4, 0, 1, 1) forwards; }
  .mo-modal__in { padding: 22px 16px calc(18px + env(safe-area-inset-bottom)); }
  .mo-modal__x { top: 12px; right: 12px; }
  .mo-modal__h { font-size: calc(22px * var(--h-k)); padding-right: 56px; }
  .mo-modal__p { margin: 8px 0 18px; font-size: 15px; line-height: 1.5; }
  .mo-modal__list { margin: -6px 0 16px; }
  .mo-in { margin-bottom: 12px; }
  .mo-in input, .mo-in textarea { padding: 12px 14px; }
  .mo-in textarea { height: 84px; }
  .mo-modal .mo-btn--full { justify-content: center; gap: 10px; }
  .mo-modal__legal { font-size: 12.5px; line-height: 1.5; }
  .mo-modal__done { padding-bottom: 4px; }
}
@keyframes moSheet { from { transform: translateY(100%); } }
@keyframes moSheetOut { to { transform: translateY(100%); } }

/* ═════ плавность наведений и раскрытий (04.11, melen: «проверь плавность блоков, что раскрываются, и ховеров») ═════ */
/* наведение: цвет и фон там, где они менялись рывком (замер скриптом по всем правилам :hover шести вариантов) */
.mo-ask__tel, .mo-foot__bottom a, .mo-foot__map li a, .mo-show__tel, .mo-top__phone, .mo-search button, .v6-map__list a, .mo-city__btn, .mo-mega__dirs button { transition: color .2s var(--ease), background-color .2s var(--ease); }
.mo-foot__nav a { transition: opacity .2s var(--ease); }
.mo-city__list button { transition: background-color .18s var(--ease), color .18s var(--ease); }
.mo-soc { transition: background-color .25s var(--ease), filter .25s var(--ease); }
.mo-proto a, .mo-proto button { transition: background-color .2s var(--ease); }
.mo-totop { transition: opacity .3s, transform .3s, color .2s; }
/* меню разделов: переход на соседний раздел без наложения двух выпадашек: прежняя закрывается сразу, новая проявляется */
.mo-catbar__list.is-switch .mo-drop { transition: none; }
.mo-catbar__list.is-switch > li.is-open .mo-drop { animation: moDropSwap .18s var(--ease); }
@keyframes moDropSwap { from { opacity: .15; transform: translateY(-3px); } }
/* мега-меню: подразделы раздела сменяются плавно, а не подменяются */
.mo-mega__pane.is-on { animation: moPaneIn .2s var(--ease); }
@keyframes moPaneIn { from { opacity: .25; transform: translateX(6px); } }   /* не с нуля: при быстром ведении мышью не мигает пустым */
/* сообщения «Добавлено в КП», «Заявка отправлена», счётчик КП: появляются, а не выскакивают */
.mo-calc__ok:not([hidden]), .mo-cta__done:not([hidden]), .mo-modal__done:not([hidden]) { animation: moPop .32s var(--ease); }
.mo-basket__n:not([hidden]), .mo-basket__n.is-bump { animation: moPop .3s var(--ease); }
@keyframes moPop { from { opacity: 0; transform: translateY(6px) scale(.97); } }
/* калькулятор: «3D / Чертёж» сменяются проявлением, а не подменой */
.mo-calc__draw.is-switched[data-mode="plan"] .mo-rack, .mo-calc__draw.is-switched[data-mode="3d"] .mo-rack3d { animation: moViewIn .32s var(--ease); }
@keyframes moViewIn { from { opacity: 0; transform: scale(.985); } }
/* прототип одной главной: подсказка вместо перехода на ещё не свёрстанную внутреннюю страницу */
.mo-note { position: fixed; left: 50%; bottom: 72px; z-index: 90; width: max-content; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 12px; border: 1px solid rgba(255,255,255,.14); background: var(--graphite); color: #fff; font-size: 14px; line-height: 1.4; text-align: center; opacity: 0; transform: translate(-50%, 8px); pointer-events: none; transition: opacity .2s var(--ease), transform .25s var(--ease); }
.mo-note.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 1024px) { .mo-note { bottom: calc(136px + env(safe-area-inset-bottom)); } }
@media (max-width: 767px) { .mo-note { bottom: calc(80px + env(safe-area-inset-bottom)); } }
@media (prefers-reduced-motion: reduce) { .mo-note { transition: opacity .2s; transform: translate(-50%, 0); } }
/* прикрепить план или фото: всё поле: цель для нажатия и для перетаскивания файла */
.mo-file { margin-bottom: 14px; }
.mo-file[hidden] { display: none; }
.mo-file__pick { position: relative; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 16px; border: 1.5px dashed #C3C7D4; border-radius: var(--r-field); background: #fff; cursor: pointer; transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.mo-file__pick input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
.mo-file__pick .mo-ic { flex: none; width: 18px; height: 18px; color: var(--accent); }
.mo-file__pick span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mo-file__pick b { font-size: 15px; font-weight: 600; color: var(--ink); }
.mo-file__pick small { font-size: 13px; font-weight: 400; color: var(--muted); }
@media (hover: hover) { .mo-file__pick:hover { border-color: var(--accent); } }
.mo-file__pick.is-over, .mo-file__pick:has(input:focus-visible) { border-color: var(--accent); border-style: solid; background: var(--accent-soft); }
.mo-file__list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.mo-file__list[hidden] { display: none; }
.mo-file__list li { display: flex; align-items: center; gap: 10px; padding: 4px 4px 4px 14px; border-radius: 10px; background: var(--surface); font-size: 14px; animation: moPop .25s var(--ease); }
.mo-file__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; color: var(--ink); }
.mo-file__size { flex: none; color: var(--muted); font-variant-numeric: tabular-nums; }
.mo-file__x { flex: none; width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); transition: background-color .2s var(--ease), color .2s var(--ease); }
.mo-file__x .mo-ic { width: 12px; height: 12px; }
@media (hover: hover) { .mo-file__x:hover { background: #fff; color: var(--ink); } }
.mo-file__err { margin: 8px 0 0; font-size: 13px; font-weight: 600; color: #C8322E; }
.mo-file__err[hidden] { display: none; }
.mo-cta__form .mo-file { margin: 2px 0 8px; }
