

/* Start:/local/assets/home/home.css?179227639634955*/
/*
 * Главная — редизайн 15.10.2026. Разметка: local/templates/dveryaninov/include/home-page.php,
 * движение: home.js (GSAP). Префикс .hm-*.
 *
 * ГОЧИ общих стилей (css/main.css): [class*="btn"], [class*="__tab"], [class*="field"]
 * дают скругление полей, [class*="__panel"] — скругление картинок, поля ввода
 * скругляет правило весом (0,4,1). Поэтому здесь селекторы от .hm и углы заданы явно.
 *
 * Правило заказчика: заливки не темнее подвала (#333) — кнопки и наведение бордовые
 * или светлые, чёрных плашек нет. Тёмным остаётся только текст.
 */
.hm {
  --bg: #F7F5F2;
  --stone: #EDE8E1;
  --ink: #1A1A1A;
  --mute: #75706A;
  --line: rgba(26, 26, 26, .12);
  --accent: #8C1F3B;
  --accent-h: #6E1630;
  --pad: clamp(16px, 3vw, 40px);
  --edge: max(var(--pad), calc((100% - 1440px) / 2 + var(--pad)));
  --ease: cubic-bezier(.22, .61, .36, 1);
  display: block;
  width: 100%;
  background: #fff;
  color: var(--ink);
  font-family: Manrope, system-ui, sans-serif;
  overflow-x: clip;
}
.hm *, .hm *::before, .hm *::after { box-sizing: border-box; }
.hm img { display: block; max-width: 100%; }
.hm a { color: inherit; text-decoration: none; }
.hm h1, .hm h2, .hm h3, .hm p, .hm ol, .hm figure { margin: 0; padding: 0; }
.hm ol { list-style: none; }
.hm svg { width: 14px; height: 14px; flex: none; }

/* Появление при прокрутке: прячем, только если JS запустился (класс hm-js).
   Страховка: если скрипт не дошёл до hm-go за 3 с, CSS показывает всё сам. */
html.hm-js:not(.hm-go) .hm [data-hm-reveal],
html.hm-js:not(.hm-go) .hm [data-hm-intro],
html.hm-js:not(.hm-go) .hm [data-hm-line] { opacity: 0; animation: hm-safe .01s 3s forwards; }
@keyframes hm-safe { to { opacity: 1; } }

/* ---------- общие элементы ---------- */
.hm .hm-sec { padding: clamp(72px, 10vw, 140px) var(--edge) 0; }
.hm .hm-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 48px;
  margin-bottom: clamp(32px, 4vw, 56px); flex-wrap: wrap;
}
.hm .hm-h2 {
  font-size: clamp(32px, 4.2vw, 60px); line-height: 1.04; letter-spacing: -.035em; font-weight: 500;
  max-width: 14em; color: inherit;
}
.hm .hm-h2 > span:not(.hm-w) { display: block; color: var(--mute); }
/* Слова заголовка (home.js) — каждое под своей маской. */
.hm .hm-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; color: inherit; }
.hm .hm-w > span { display: inline-block; color: inherit; will-change: transform; }
.hm .hm-head__note { max-width: 380px; color: var(--mute); font-size: 15px; line-height: 1.6; }
.hm .hm-link {
  display: inline-flex; align-items: center; gap: 10px; padding-bottom: 8px;
  font-size: 15px; font-weight: 500; color: var(--ink);
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .5s var(--ease), color .25s;
}
.hm .hm-link:hover { color: var(--accent); background-size: 40% 1px; }
.hm .hm-link svg { transition: transform .35s var(--ease); }
.hm .hm-link:hover svg { transform: translate(2px, -2px); }
.hm .hm-small { font-size: 13px; line-height: 1.5; color: var(--mute); }
.hm .hm-small a { text-decoration: underline; text-underline-offset: 3px; }

.hm .hm-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 28px; border: 1px solid transparent; border-radius: 0;
  font: 500 15px/1.2 Manrope, system-ui, sans-serif; letter-spacing: 0; white-space: nowrap;
  cursor: pointer; overflow: hidden; isolation: isolate;
  transition: color .35s var(--ease), border-color .35s, background-color .35s;
}
/* Заливка «поднимается» снизу при наведении. */
.hm .hm-btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; transform: scaleY(0); transform-origin: 50% 100%;
  transition: transform .45s var(--ease);
}
.hm .hm-btn:hover::before { transform: scaleY(1); }
.hm .hm-btn:active { transform: translateY(1px); }
.hm .hm-btn svg { transition: transform .35s var(--ease); }
.hm .hm-btn:hover svg { transform: translate(2px, -2px); }
.hm .hm-btn_light { background: #fff; color: var(--ink); }
.hm .hm-btn_light::before { background: var(--accent); }
.hm .hm-btn_light:hover { color: #fff; }
.hm .hm-btn_glass { color: #fff; border-color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .08); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hm .hm-btn_glass::before { background: #fff; }
.hm .hm-btn_glass:hover { color: var(--ink); }
.hm .hm-btn_line { background: transparent; color: var(--ink); border-color: rgba(26, 26, 26, .3); }
.hm .hm-btn_line::before { background: var(--accent); }
.hm .hm-btn_line:hover { color: #fff; border-color: var(--accent); }
.hm .hm-btn_accent { background: var(--accent); color: #fff; }
.hm .hm-btn_accent::before { background: var(--accent-h); }
.hm .hm-btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- первый экран ---------- */
.hm .hm-hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff; background: #cfc9bf;
  height: calc(100svh - var(--dv-header-h, 104px)); min-height: 600px; max-height: 1040px;
}
.hm .hm-hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; border-radius: 0; }
.hm .hm-hero__img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; will-change: transform; }
.hm .hm-hero__shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(22, 18, 14, .62) 0%, rgba(22, 18, 14, .34) 42%, rgba(22, 18, 14, 0) 70%),
    linear-gradient(0deg, rgba(22, 18, 14, .5) 0%, rgba(22, 18, 14, 0) 45%);
}
.hm .hm-hero__inner {
  position: absolute; left: var(--edge); bottom: clamp(48px, 10vh, 120px); width: min(1040px, 70%);
}
.hm .hm-hero__kicker { font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .9; margin-bottom: 22px; }
.hm .hm-hero__kicker-tail { white-space: nowrap; }
.hm .hm-hero__title { font-size: clamp(42px, 5.4vw, 92px); line-height: .98; letter-spacing: -.045em; font-weight: 500; color: #fff; }
.hm .hm-line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.hm .hm-line > span { display: block; will-change: transform; }
/* Две строки и не больше: строка заголовка не переносится, размер считается от ширины экрана. */
.hm .hm-hero__title .hm-line > span { white-space: nowrap; }
.hm .hm-hero__lead { max-width: 540px; margin: 26px 0 34px; font-size: clamp(16px, 1.25vw, 19px); line-height: 1.55; opacity: .94; }
.hm .hm-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hm .hm-hero__coll {
  position: absolute; right: var(--edge); bottom: clamp(48px, 10vh, 120px); width: 300px;
  display: grid; grid-template-columns: 1fr auto; column-gap: 16px; align-items: center;
  padding: 18px 18px 18px 22px; color: #fff;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .32);
  -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
  transition: background-color .35s, border-color .35s;
}
.hm .hm-hero__coll:hover { background: rgba(255, 255, 255, .22); border-color: rgba(255, 255, 255, .6); }
.hm .hm-hero__coll-k { grid-column: 1; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.hm .hm-hero__coll-n { grid-column: 1; margin-top: 6px; font-size: 24px; font-weight: 500; letter-spacing: -.02em; }
.hm .hm-hero__coll-m { grid-column: 1; margin-top: 2px; font-size: 13px; opacity: .85; }
.hm .hm-hero__coll-a {
  grid-column: 2; grid-row: 1 / span 3; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--ink);
  transition: transform .4s var(--ease), background-color .3s, color .3s;
}
.hm .hm-hero__coll:hover .hm-hero__coll-a { transform: rotate(45deg); background: var(--accent); color: #fff; }

.hm .hm-hero__cue { position: absolute; left: 50%; bottom: 0; width: 40px; height: 72px; margin-left: -20px; display: block; }
.hm .hm-hero__cue span { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.hm .hm-hero__cue span::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: #fff; animation: hm-cue 2.2s var(--ease) infinite; }
@keyframes hm-cue { to { top: 100%; } }

/* ---------- факты ---------- */
.hm .hm-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0 var(--edge); border-bottom: 1px solid var(--line); }
.hm .hm-fact { padding: clamp(24px, 3vw, 40px) clamp(16px, 2vw, 28px); border-left: 1px solid var(--line); display: grid; gap: 8px; }
.hm .hm-fact:first-child { border-left: 0; padding-left: 0; }
.hm .hm-fact strong { font-size: clamp(34px, 3.6vw, 56px); font-weight: 500; letter-spacing: -.04em; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.hm .hm-fact small { font-size: .42em; letter-spacing: 0; color: var(--ink); font-weight: 500; }
.hm .hm-fact > span { font-size: 14px; color: var(--mute); line-height: 1.45; }

/* ---------- модели ---------- */
.hm .hm-models__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.8vw, 28px); }
.hm .hm-models__grid .card { width: auto; margin: 0; }
.hm .hm-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hm .hm-cats a {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 22px clamp(14px, 1.6vw, 24px); font-size: 15px; font-weight: 500; border-left: 1px solid var(--line);
  isolation: isolate; overflow: hidden; transition: color .35s;
}
.hm .hm-cats a:first-child { border-left: 0; }
.hm .hm-cats a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--bg); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .45s var(--ease); }
.hm .hm-cats a:hover::before { transform: scaleY(1); }
.hm .hm-cats a:hover { color: var(--accent); }

/* ---------- сцена коллекций ---------- */
.hm .hm-scene {
  --wall: #d9d4cc; --ink: #1c1a17;
  margin-top: clamp(72px, 10vw, 140px); padding: clamp(64px, 8vw, 112px) var(--edge);
  background: var(--wall); color: var(--ink);
}
.hm .hm-scene .hm-h2 > span:not(.hm-w) { color: inherit; opacity: .55; }
.hm .hm-scene__wrap { display: grid; grid-template-columns: minmax(280px, 4fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.hm .hm-scene__side { position: sticky; top: calc(var(--dv-header-h, 104px) + 32px); display: grid; gap: clamp(28px, 3vw, 44px); }
.hm .hm-scene__list { display: grid; border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent); }
.hm .hm-scene .hm-scene__tab {
  position: relative; display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 16px;
  width: 100%; padding: 16px 0 18px; border: 0; border-radius: 0; background: none; color: inherit; text-align: left; cursor: pointer;
  border-bottom: 1px solid color-mix(in srgb, currentColor 22%, transparent); font-family: inherit;
}
.hm .hm-scene__name { font-size: clamp(22px, 2.1vw, 32px); font-weight: 500; letter-spacing: -.03em; line-height: 1.1; opacity: .45; transition: opacity .35s, transform .45s var(--ease); }
.hm .hm-scene__meta { font-size: 13px; opacity: .6; white-space: nowrap; }
.hm .hm-scene__tab:hover .hm-scene__name { opacity: .8; }
.hm .hm-scene__tab.is-active .hm-scene__name { opacity: 1; transform: translateX(10px); }
.hm .hm-scene__bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; pointer-events: none; }
.hm .hm-scene__bar i { position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }
.hm .hm-scene__tab.is-active .hm-scene__bar i { transform: scaleX(var(--p, 1)); }
.hm .hm-scene__all { justify-self: start; color: inherit; }

.hm .hm-scene__stage { display: grid; min-width: 0; }
.hm .hm-scene .hm-scene__panel { grid-area: 1 / 1; display: grid; gap: clamp(24px, 3vw, 40px); border-radius: 0; min-width: 0; }
.hm .hm-scene__panel[hidden] { display: none; }
.hm .hm-scene__panel.is-leaving { display: grid; pointer-events: none; }
.hm .hm-scene__cover { aspect-ratio: 16 / 10; overflow: hidden; background: color-mix(in srgb, var(--wall) 80%, #000); }
.hm .hm-scene__cover img { width: 100%; height: 100%; object-fit: cover; }
.hm .hm-scene__under { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); align-items: end; }
.hm .hm-scene__doors { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; gap: clamp(8px, 1.1vw, 16px); }
/* Двери кликабельны — как на /collections/: под курсором дверь пружинисто поднимается,
   над ней ярлык «название · цена». Двигаем КАРТИНКУ, не ссылку: ссылке GSAP при появлении
   ставит transform в style, и CSS-подъём на ней молча не срабатывал. */
.hm .hm-scene__door { position: relative; display: block; width: 100%; max-width: 116px; aspect-ratio: 480 / 1067; cursor: pointer; }
.hm .hm-scene__door:hover, .hm .hm-scene__door:focus-visible { z-index: 2; }
.hm .hm-scene__door img {
  width: 100%; height: 100%; object-fit: contain; transform-origin: 50% 100%;
  filter: drop-shadow(0 14px 14px rgba(30, 24, 18, .18));
  transition: transform .55s cubic-bezier(.34, 1.56, .64, 1), filter .4s var(--ease);
}
.hm .hm-scene__door:hover img, .hm .hm-scene__door:focus-visible img {
  transform: translateY(-14px); filter: drop-shadow(0 24px 18px rgba(30, 24, 18, .26));
}
.hm .hm-scene__tag {
  position: absolute; left: 50%; bottom: calc(100% + 4px); padding: 7px 12px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 12.5px; font-weight: 600; line-height: 1.2; white-space: nowrap;
  transform: translate(-50%, 6px); opacity: 0; pointer-events: none;
  transition: opacity .2s, transform .3s var(--ease);
}
.hm .hm-scene__tag b { margin-left: 4px; font-weight: 500; opacity: .85; }
.hm .hm-scene__door:hover .hm-scene__tag, .hm .hm-scene__door:focus-visible .hm-scene__tag { opacity: 1; transform: translate(-50%, -14px); }
@media (hover: none) { .hm .hm-scene__tag { display: none; } }
.hm .hm-scene__copy { display: grid; gap: 22px; justify-items: start; }
.hm .hm-scene__copy p { font-size: 16px; line-height: 1.6; opacity: .85; max-width: 42ch; }

/* ---------- фабрика ---------- */
.hm .hm-factory__body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 100px); margin-bottom: clamp(32px, 4vw, 56px); }
.hm .hm-factory__media {
  position: sticky; top: calc(var(--dv-header-h, 104px) + 32px); align-self: start;
  aspect-ratio: 4 / 5; max-height: calc(100vh - var(--dv-header-h, 104px) - 64px); width: 100%;
  overflow: hidden; background: var(--stone);
}
.hm .hm-factory__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; clip-path: inset(100% 0 0 0); }
.hm .hm-factory__img.is-active { clip-path: inset(0 0 0 0); }
.hm .hm-factory__count { position: absolute; left: 16px; bottom: 16px; padding: 8px 12px; background: rgba(255, 255, 255, .9); font-size: 13px; font-weight: 600; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.hm .hm-factory__steps { display: grid; }
.hm .hm-factory__step {
  position: relative; min-height: 42vh; padding: 28px 0 28px 64px; border-top: 1px solid var(--line);
  display: grid; align-content: center; gap: 14px; opacity: .35; transition: opacity .5s var(--ease);
}
.hm .hm-factory__step:last-child { border-bottom: 1px solid var(--line); }
.hm .hm-factory__step.is-active { opacity: 1; }
.hm .hm-factory__step::before { content: ""; position: absolute; left: 0; top: -1px; width: 0; height: 2px; background: var(--accent); transition: width .7s var(--ease); }
.hm .hm-factory__step.is-active::before { width: 48px; }
.hm .hm-factory__no { position: absolute; left: 0; top: 50%; transform: translateY(-50%); font-size: 14px; font-weight: 600; color: var(--accent); font-variant-numeric: tabular-nums; }
.hm .hm-factory__step h3 { font-size: clamp(22px, 2.2vw, 34px); font-weight: 500; letter-spacing: -.03em; line-height: 1.15; }
.hm .hm-factory__step p { font-size: 16px; line-height: 1.65; color: var(--mute); max-width: 46ch; }
.hm .hm-factory__thumb { display: none; }

/* ---------- проекты ---------- */
.hm .hm-cases__grid { display: grid; grid-template-columns: 7fr 5fr; grid-template-rows: auto auto; gap: clamp(20px, 2.4vw, 36px); }
.hm .hm-case { display: grid; gap: 8px; align-content: start; }
.hm .hm-case_0 { grid-row: 1 / span 2; }
.hm .hm-case__img { position: relative; display: block; overflow: hidden; background: var(--stone); aspect-ratio: 4 / 3; }
.hm .hm-case_0 .hm-case__img { aspect-ratio: auto; height: clamp(420px, 52vw, 760px); }
.hm .hm-case__img img { position: absolute; inset: -8% 0; width: 100%; height: 116%; object-fit: cover; transition: scale 1.2s var(--ease); }
.hm .hm-case:hover .hm-case__img img { scale: 1.05; }
.hm .hm-case__go {
  position: absolute; right: 16px; top: 16px; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; color: var(--ink);
  transform: scale(.6); opacity: 0; transition: transform .45s var(--ease), opacity .35s;
}
.hm .hm-case:hover .hm-case__go { transform: scale(1); opacity: 1; }
.hm .hm-case__name { margin-top: 10px; font-size: clamp(18px, 1.5vw, 22px); font-weight: 500; letter-spacing: -.02em; line-height: 1.3; }
.hm .hm-case__meta { font-size: 14px; color: var(--mute); }

/* ---------- примерка ---------- */
.hm .hm-try {
  margin-top: clamp(72px, 10vw, 140px); padding: clamp(64px, 8vw, 112px) var(--edge);
  background: var(--stone); display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 88px); align-items: center;
}
.hm .hm-try__visual { display: grid; gap: 16px; min-width: 0; }
.hm .hm-try__room { position: relative; aspect-ratio: 880 / 604; overflow: hidden; background: #e2ddd5; }
.hm .hm-try__photo { width: 100%; height: 100%; object-fit: cover; }
/* Слот — дверь на фото: левый край наличника 640 px, верх 37 px, 200×447 px из 880×604. */
.hm .hm-try__slot { position: absolute; left: 72.6%; top: 6.05%; width: 22.85%; height: 74.4%; pointer-events: none; }
.hm .hm-try__slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; filter: drop-shadow(0 6px 8px rgba(40, 32, 24, .16)); }
.hm .hm-try__frame { position: absolute; left: 70.5%; top: 3.5%; width: 27%; height: 79.5%; pointer-events: none; opacity: 0; }
.hm .hm-try__frame i { position: absolute; width: 18px; height: 18px; border: 2px solid #fff; }
.hm .hm-try__frame i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.hm .hm-try__frame i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.hm .hm-try__frame i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.hm .hm-try__frame i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.hm .hm-try__picker { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.hm .hm-try .hm-try__pick {
  display: grid; gap: 6px; justify-items: center; padding: 10px 4px 8px; border: 1px solid transparent; border-radius: 0;
  background: rgba(255, 255, 255, .5); color: var(--ink); cursor: pointer; font-family: inherit;
  transition: background-color .3s, border-color .3s, transform .3s var(--ease);
}
.hm .hm-try .hm-try__pick:hover { background: #fff; transform: translateY(-2px); }
.hm .hm-try .hm-try__pick.is-active { background: #fff; border-color: var(--accent); }
.hm .hm-try .hm-try__pick-img { display: block; width: 100%; height: 64px; border-radius: 0; }
.hm .hm-try__pick-img img { width: 100%; height: 100%; object-fit: contain; }
.hm .hm-try .hm-try__pick-img_none { width: 28px; margin: 0 auto; border: 1.5px dashed rgba(26, 26, 26, .35); }
.hm .hm-try__pick-n { font-size: 11px; font-weight: 500; line-height: 1.25; text-align: center; }
.hm .hm-try__copy { display: grid; gap: 24px; justify-items: start; }
.hm .hm-try__lead { font-size: 17px; line-height: 1.6; color: #4a4640; max-width: 46ch; }
.hm .hm-try__steps { display: grid; gap: 14px; }
.hm .hm-try__steps li { display: grid; grid-template-columns: 32px 1fr; align-items: center; font-size: 15px; line-height: 1.45; }
.hm .hm-try__steps b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 12px; font-weight: 600; }
.hm .hm-try__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- сервис ---------- */
.hm .hm-service__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hm .hm-service__row a {
  position: relative; display: grid; grid-template-rows: auto 1fr; gap: 48px; min-height: 200px;
  padding: 24px clamp(16px, 2vw, 28px) 28px; border-left: 1px solid var(--line); isolation: isolate; overflow: hidden; transition: color .45s var(--ease);
}
.hm .hm-service__row a:first-child { border-left: 0; }
.hm .hm-service__row a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--stone); transform: translateY(101%); transition: transform .55s var(--ease); }
.hm .hm-service__row a:hover { color: var(--accent); }
.hm .hm-service__row a:hover::before { transform: translateY(0); }
.hm .hm-service__row span { font-size: 13px; font-weight: 600; color: var(--accent); transition: color .45s; }
.hm .hm-service__row b { align-self: end; font-size: clamp(19px, 1.7vw, 24px); font-weight: 500; letter-spacing: -.02em; line-height: 1.25; max-width: 12em; }
/* Стрелка при наведении улетает вверх-вправо и возвращается снизу-слева. Без поворота:
   тонкая диагональ при rotate прыгает по пиксельной сетке и выглядит как подвисание. */
.hm .hm-service__row svg { position: absolute; right: clamp(16px, 2vw, 28px); top: 24px; width: 18px; height: 18px; will-change: transform; }
.hm .hm-service__row a:hover svg { animation: hm-fly .6s var(--ease); }
@keyframes hm-fly {
  0% { transform: translate(0, 0); opacity: 1; }
  45% { transform: translate(14px, -14px); opacity: 0; }
  46% { transform: translate(-14px, 14px); opacity: 0; }
  100% { transform: translate(0, 0); opacity: 1; }
}

/* ---------- журнал ---------- */
.hm .hm-journal { position: relative; }
.hm .hm-journal__list { border-top: 1px solid var(--line); }
.hm .hm-post {
  position: relative; display: grid; grid-template-columns: minmax(160px, 3fr) minmax(0, 8fr) auto; align-items: center; gap: 24px;
  padding: clamp(22px, 2.4vw, 34px) 0; border-bottom: 1px solid var(--line); transition: padding .45s var(--ease), color .3s;
}
.hm .hm-post__thumb { display: none; }
.hm .hm-post__meta { font-size: 13px; color: var(--mute); }
.hm .hm-post__name { font-size: clamp(19px, 1.9vw, 28px); font-weight: 500; letter-spacing: -.02em; line-height: 1.25; }
.hm .hm-post__go { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); transition: background-color .3s, color .3s, transform .45s var(--ease); }
.hm .hm-post:hover { padding-left: 16px; color: var(--accent); }
.hm .hm-post:hover .hm-post__go { background: var(--accent); color: #fff; border-color: var(--accent); transform: rotate(45deg); }
.hm .hm-journal__float {
  position: absolute; left: 0; top: 0; width: 280px; aspect-ratio: 4 / 3; overflow: hidden; pointer-events: none; z-index: 3;
  opacity: 0; transform: scale(.85); box-shadow: 0 24px 48px rgba(40, 30, 20, .18);
}
.hm .hm-journal__float img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- отзывы: отступ в ритм страницы ---------- */
.hm .yreviews_home { margin-top: clamp(72px, 10vw, 140px); }

/* ---------- заявка ---------- */
.hm .hm-lead {
  margin-top: clamp(72px, 10vw, 140px); padding: clamp(64px, 8vw, 112px) var(--edge);
  background: var(--bg); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 100px);
}
.hm .hm-lead__intro { display: grid; align-content: start; gap: 22px; }
.hm .hm-lead__intro > p { font-size: 17px; line-height: 1.6; color: #4a4640; max-width: 40ch; }
.hm .hm-lead__phone { margin-top: 12px; font-size: clamp(28px, 3vw, 44px); font-weight: 500; letter-spacing: -.03em; transition: color .3s; }
.hm .hm-lead__phone:hover { color: var(--accent); }
.hm .hm-form { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 32px; align-content: start; }
.hm .hm-form .hm-field { display: grid; gap: 6px; border-radius: 0; font-size: 13px; font-weight: 500; color: var(--mute); }
.hm .hm-form .hm-field_wide { grid-column: 1 / -1; }
.hm .hm-form .hm-field input:not([type="checkbox"]):not([type="radio"]),
.hm .hm-form .hm-field textarea {
  width: 100%; min-height: 48px; padding: 10px 0; border: 0; border-bottom: 1px solid rgba(26, 26, 26, .28); border-radius: 0;
  background: transparent; color: var(--ink); font: 400 17px/1.4 Manrope, system-ui, sans-serif; outline: none; box-shadow: none; resize: vertical;
  transition: border-color .3s;
}
.hm .hm-form .hm-field input:not([type="checkbox"]):not([type="radio"]):focus,
.hm .hm-form .hm-field textarea:focus { border-bottom-color: var(--accent); outline: none; }
.hm .hm-form .hm-field textarea { min-height: 80px; }
.hm .hm-form .hm-field.is-bad input, .hm .hm-form .hm-field.is-bad textarea { border-bottom-color: #b3261e; }
.hm .hm-consent { grid-column: 1 / -1; display: flex; gap: 12px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--mute); cursor: pointer; }
.hm .hm-consent input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.hm .hm-consent a { text-decoration: underline; text-underline-offset: 3px; }
.hm .hm-consent.is-bad { color: #b3261e; }
.hm .hm-form .hm-btn { justify-self: start; }
.hm .hm-form__msg { grid-column: 1 / -1; font-size: 15px; line-height: 1.5; min-height: 1.5em; }
.hm .hm-form__msg.is-error { color: #b3261e; }
.hm .hm-form__msg.is-ok { color: #2f6b3a; }

/* ---------- шоурум ---------- */
.hm .hm-salon {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px 40px; flex-wrap: wrap;
  padding: clamp(28px, 3vw, 44px) var(--edge); background: var(--stone); isolation: isolate; overflow: hidden;
}
.hm .hm-salon::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #e3ddd4; transform: scaleX(0); transform-origin: 0 50%; transition: transform .7s var(--ease); }
.hm .hm-salon:hover::before { transform: scaleX(1); }
.hm .hm-salon__t { font-size: clamp(22px, 2.2vw, 32px); font-weight: 500; letter-spacing: -.03em; }
.hm .hm-salon__a { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; color: #4a4640; }

/* ================= планшет ================= */
@media (max-width: 1100px) {
  .hm .hm-hero__inner { width: min(760px, 88%); bottom: 170px; }
  .hm .hm-hero__coll { left: var(--edge); right: auto; bottom: 40px; }
  .hm .hm-models__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm .hm-scene__wrap { grid-template-columns: minmax(0, 1fr); }
  .hm .hm-scene__side { position: static; }
  .hm .hm-scene__list { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; }
  .hm .hm-try { grid-template-columns: minmax(0, 1fr); }
  .hm .hm-lead { grid-template-columns: minmax(0, 1fr); }
  .hm .hm-service__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm .hm-service__row a:nth-child(3) { border-left: 0; }
  .hm .hm-service__row a:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ================= телефон ================= */
@media (max-width: 760px) {
  .hm .hm-sec { padding-top: 72px; }
  .hm .hm-head { align-items: flex-start; flex-direction: column; gap: 18px; margin-bottom: 28px; }
  /* Нижняя панель сайта (Главная, Каталог…) ~64 px перекрывает низ экрана — первый экран заканчивается над ней. */
  .hm .hm-hero { height: calc(100svh - var(--dv-header-h, 64px) - 64px); min-height: 540px; }
  .hm .hm-hero__title { font-size: min(8.4vw, 40px); }
  .hm .hm-hero__shade { background: linear-gradient(0deg, rgba(22, 18, 14, .78) 0%, rgba(22, 18, 14, .45) 48%, rgba(22, 18, 14, .12) 100%); }
  .hm .hm-hero__inner { left: var(--pad); right: var(--pad); width: auto; bottom: 150px; }
  .hm .hm-hero__kicker { font-size: 11px; margin-bottom: 14px; }
  /* Перенос строго перед «с 12-летней историей» (просьба заказчика). */
  .hm .hm-hero__kicker-tail { display: block; }
  .hm .hm-hero__lead { margin: 16px 0 22px; font-size: 15px; }
  .hm .hm-hero__actions { display: grid; grid-template-columns: 1fr; }
  .hm .hm-hero__actions .hm-btn { width: 100%; min-height: 50px; }
  .hm .hm-hero__coll { left: var(--pad); right: var(--pad); width: auto; bottom: 24px; padding: 12px 12px 12px 16px; }
  .hm .hm-hero__coll-k { font-size: 10px; letter-spacing: .1em; }
  .hm .hm-hero__coll-n { margin-top: 3px; font-size: 18px; }
  .hm .hm-hero__coll-a { width: 38px; height: 38px; }
  .hm .hm-hero__cue { display: none; }

  .hm .hm-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hm .hm-fact { padding: 22px 0 22px 16px; }
  .hm .hm-fact:nth-child(odd) { border-left: 0; padding-left: 0; }
  .hm .hm-fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .hm .hm-fact > span { font-size: 13px; }

  .hm .hm-models__grid { gap: 10px; }
  .hm .hm-cats { grid-template-columns: 1fr; }
  .hm .hm-cats a { border-left: 0; border-top: 1px solid var(--line); padding-inline: 0; }
  .hm .hm-cats a:first-child { border-top: 0; }

  .hm .hm-scene { margin-top: 72px; padding-block: 56px; }
  .hm .hm-scene__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .hm .hm-scene .hm-scene__tab { grid-template-columns: 1fr; padding: 12px 0 14px; }
  .hm .hm-scene__name { font-size: 20px; }
  .hm .hm-scene__tab.is-active .hm-scene__name { transform: none; }
  .hm .hm-scene__meta { font-size: 12px; white-space: normal; }
  .hm .hm-scene__under { grid-template-columns: 1fr; }
  .hm .hm-scene__doors { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .hm .hm-scene__door:nth-child(n+5) { display: none; }

  .hm .hm-factory__body { grid-template-columns: 1fr; }
  .hm .hm-factory__media { display: none; }
  /* Телефон: шаги на вертикальной шкале. Линия заполняется бордовым по прокрутке
     (--rail из home.js), точка шага «зажигается», когда шкала до неё дошла. */
  .hm .hm-factory__steps { position: relative; padding-left: 30px; }
  .hm .hm-factory__steps::before,
  .hm .hm-factory__steps::after { content: ""; position: absolute; left: 6px; top: 30px; bottom: 30px; width: 2px; }
  .hm .hm-factory__steps::before { background: var(--line); }
  .hm .hm-factory__steps::after { background: var(--accent); transform: scaleY(var(--rail, 1)); transform-origin: 50% 0; }
  .hm .hm-factory__step { min-height: 0; padding: 24px 0 28px; opacity: 1; border-top: 0; }
  .hm .hm-factory__step:last-child { border-bottom: 0; }
  .hm .hm-factory__step::before {
    left: -30px; top: 27px; width: 14px; height: 14px; border-radius: 50%; z-index: 1;
    background: #fff; border: 2px solid var(--line); transition: background-color .4s, border-color .4s, transform .5s cubic-bezier(.34, 1.56, .64, 1);
  }
  .hm .hm-factory__step.is-active::before { width: 14px; }
  .hm .hm-factory__step.is-on::before { background: var(--accent); border-color: var(--accent); transform: scale(1.15); }
  .hm .hm-factory__thumb { display: block; position: relative; overflow: hidden; aspect-ratio: 4 / 3; margin-bottom: 8px; background: var(--stone); order: -1; }
  .hm .hm-factory__thumb img { position: absolute; left: 0; top: -8%; width: 100%; height: 116%; object-fit: cover; }
  .hm .hm-factory__no { position: static; transform: none; font-size: 13px; }

  .hm .hm-cases__grid { grid-template-columns: 1fr; }
  .hm .hm-case_0 { grid-row: auto; }
  .hm .hm-case_0 .hm-case__img { height: auto; aspect-ratio: 4 / 5; }
  .hm .hm-case__go { opacity: 1; transform: none; width: 40px; height: 40px; }

  .hm .hm-try { margin-top: 72px; padding-block: 56px; }
  .hm .hm-try__picker { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hm .hm-try__actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .hm .hm-try__actions .hm-btn { width: 100%; }

  .hm .hm-service__row { grid-template-columns: 1fr; }
  .hm .hm-service__row a { border-left: 0; border-top: 1px solid var(--line); min-height: 0; gap: 14px; padding: 20px 0; }
  .hm .hm-service__row a:first-child { border-top: 0; }
  .hm .hm-service__row a::before { display: none; }
  .hm .hm-service__row a:hover { color: inherit; }
  .hm .hm-service__row svg { right: 0; top: 22px; }

  .hm .hm-post { grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: auto auto; gap: 6px 16px; }
  .hm .hm-post__thumb { display: block; grid-row: 1 / span 2; aspect-ratio: 1; overflow: hidden; }
  .hm .hm-post__thumb img { width: 100%; height: 100%; object-fit: cover; }
  .hm .hm-post__name { font-size: 17px; }
  .hm .hm-post__go { display: none; }
  .hm .hm-post:hover { padding-left: 0; }
  .hm .hm-journal__float { display: none; }

  .hm .hm-lead { margin-top: 72px; padding-block: 56px; }
  .hm .hm-form { grid-template-columns: 1fr; gap: 22px; }
  .hm .hm-form .hm-btn { width: 100%; }
}

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

/* End */


/* Start:/css/geometry.css?17948336947742*/
/*
 * Геометрия сайта как на новой главной (решение заказчика 17.10.2026): прямоугольники — с острыми
 * углами, мелкие индикаторы (счётчики, точки, чипы, свотчи) — круги и «таблетки».
 *
 * Слой включается классом html.dv-geo (header.php): пока только по cookie dv_geo=1 — ссылка
 * ?dvgeo=1 включает, ?dvgeo=0 выключает. После одобрения класс ставится всем.
 * Кабинет менеджера не затрагивается: у него своя оболочка без этого класса.
 *
 * Список селекторов собран скриптом из CSS публичной части (все border-radius, кроме 0 и 50%).
 * Оставлены как есть: CSS-сердечко, точки, чипы и теги-«таблетки», тонкие полоски прогресса,
 * круглые свотчи. Специфичность (+0,1,1) перебивает исходные правила без !important.
 */
html.dv-geo {
  --radius-btn: 0; --radius-card: 0; --radius-input: 0; --radius-img: 0;
}

/* Счётчики корзины/избранного и бейдж кабинета — круг (при двух цифрах — «таблетка»). */
html.dv-geo .header__wishlist-count,
html.dv-geo .account-nav__badge {
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; line-height: 18px;
  background: var(--color-accent, #8C1F3B); color: #fff; font-weight: 600;
}

html.dv-geo .btn,
html.dv-geo .header__topbar-callback,
html.dv-geo .footer__social-links a,
html.dv-geo .footer__pay-logo,
html.dv-geo .footer__pay-logo_wide,
html.dv-geo .config-chip,
html.dv-geo .info-page__note,
html.dv-geo .legal-page__note,
html.dv-geo .cart-item,
html.dv-geo .cart-item__resize,
html.dv-geo .resize-modal__panel,
html.dv-geo .resize-modal__size,
html.dv-geo .cart-comp,
html.dv-geo .cart-comp__img,
html.dv-geo .cart-details__panel,
html.dv-geo .cart-details__media-btn,
html.dv-geo .img-zoom__img,
html.dv-geo .cart-summary__content,
html.dv-geo .cart-summary__slider,
html.dv-geo .cfg-modal__share,
html.dv-geo .dv-share-toast,
html.dv-geo .cfg-modal__calc-popover,
html.dv-geo .cfg-modal__calc-input,
html.dv-geo .cfg-btn,
html.dv-geo .cfg-item,
html.dv-geo .cfg-item__thumb,
html.dv-geo .cfg-item__zoom,
html.dv-geo .cfg-item__qty,
html.dv-geo .cfg-item_active,
html.dv-geo .coatings-popup__swatch,
html.dv-geo .coatings-popup__color,
html.dv-geo .cfg-coating-swatch,
html.dv-geo .cfg-coating-swatch__color,
html.dv-geo .cfg-swatch-zoom,
html.dv-geo .cfg-color-tile,
html.dv-geo .cfg-radio-group .cfg-item,
html.dv-geo .cfg-dep-toast,
html.dv-geo .product__blade-corner,
html.dv-geo .home-promo__body,
html.dv-geo .home-promo__media,
html.dv-geo .question-modal__panel,
html.dv-geo .question-form__input,
html.dv-geo .question-form__submit,
html.dv-geo .account-order-card,
html.dv-geo .order-detail-modal__panel,
html.dv-geo .collection-hero__media,
html.dv-geo input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
html.dv-geo select,
html.dv-geo textarea,
html.dv-geo [class*="btn"],
html.dv-geo [class*="submit"],
html.dv-geo [class*="input"],
html.dv-geo [class*="field"],
html.dv-geo [class*="chip"],
html.dv-geo [class*="__tab"],
html.dv-geo [class*="__cta"],
html.dv-geo [class*="__panel"],
html.dv-geo [class*="__dialog"],
html.dv-geo [class*="__summary"],
html.dv-geo [class*="card"],
html.dv-geo .cart__item,
html.dv-geo .cart-services__item,
html.dv-geo .account-content,
html.dv-geo .account-aside,
html.dv-geo .order-detail__item,
html.dv-geo .home-build__cell,
html.dv-geo .cfilter__list_scroll,
html.dv-geo .card,
html.dv-geo .cookie-consent,
html.dv-geo .cookie-consent__btn,
html.dv-geo .blog-lead__media,
html.dv-geo .blog-index__thumb,
html.dv-geo .blog-empty,
html.dv-geo .post__cover img,
html.dv-geo .post__video,
html.dv-geo .post__body img,
html.dv-geo .post__tag,
html.dv-geo .post__cta,
html.dv-geo .post-more__card,
html.dv-geo .post-more__media,
html.dv-geo .contact-claims,
html.dv-geo .about-facts__item,
html.dv-geo .blog-item,
html.dv-geo .blog-item__media,
html.dv-geo .home-tile,
html.dv-geo .service-hero,
html.dv-geo .map-module,
html.dv-geo .step-card,
html.dv-geo .faq-item,
html.dv-geo .contact-card,
html.dv-geo .projects-grid .project-card,
html.dv-geo .project-card__media,
html.dv-geo .projects-empty,
html.dv-geo .project-hero__media,
html.dv-geo .project-shot,
html.dv-geo .project-cta,
html.dv-geo .project-lightbox__img,
html.dv-geo .yreviews__frame,
html.dv-geo .auth-page__box,
html.dv-geo .site-search__panel,
html.dv-geo .site-search__x,
html.dv-geo .ss-opt,
html.dv-geo .ss-thumb,
html.dv-geo .ss-icon,
html.dv-geo .ss-col__img,
html.dv-geo .ss-col_skel,
html.dv-geo .ss-quick__link,
html.dv-geo .ss-skel,
html.dv-geo .ss-btn,
html.dv-geo .pdp-toggle,
html.dv-geo .pdp-size,
html.dv-geo .pdp-swatch,
html.dv-geo .pdp-btn,
html.dv-geo .pdp-fav,
html.dv-geo .pdp-coatings-menu,
html.dv-geo .pdp-coatings-menu__grid::-webkit-scrollbar-thumb,
html.dv-geo .pdp-coatings-menu__swatch,
html.dv-geo .pdp-coating-zoom,
html.dv-geo .lp-btn,
html.dv-geo .lp-hero__media img,
html.dv-geo .lp-fact,
html.dv-geo .lp-selector,
html.dv-geo .lp-step,
html.dv-geo .lp-risk,
html.dv-geo .lp-faq__item,
html.dv-geo .lp-form,
html.dv-geo .lp-field__input,
html.dv-geo .lp-method,
html.dv-geo .hw-row,
html.dv-geo .hw-row__media,
html.dv-geo .pay__card,
html.dv-geo .pay__error,
html.dv-geo .pay__btn,
html.dv-geo .catalog-filter__btn,
html.dv-geo .bx-blog-card,
html.dv-geo .cat-tile__img,
html.dv-geo .cfilter__box,
html.dv-geo .cfilter__search,
html.dv-geo .cfilter__swatch,
html.dv-geo .cfilter__price-field,
html.dv-geo .cfilter__range::before,
html.dv-geo .cfilter__apply,
html.dv-geo .cfilter__reset_btn,
html.dv-geo .catalog-toolbar__filter-btn,
html.dv-geo .catalog-toolbar__sort-select,
html.dv-geo .catalog-toolbar__view-btn,
html.dv-geo .card__badge,
html.dv-geo .catalog__pagination a,
html.dv-geo .catalog__pagination span,
html.dv-geo .catalog__loadmore,
html.dv-geo .cfilter__scroll::-webkit-scrollbar-thumb,
html.dv-geo .cfilter,
html.dv-geo .checkout-captcha__img,
html.dv-geo .checkout-captcha__reload,
html.dv-geo .geo-modal__panel,
html.dv-geo .geo-modal__close,
html.dv-geo .geo-modal__find,
html.dv-geo .geo-modal__city,
html.dv-geo[data-bitrix] .order-block,
html.dv-geo[data-bitrix] .order-block__status,
html.dv-geo[data-bitrix] .order-block__service-flag,
html.dv-geo[data-bitrix] .order-door__img,
html.dv-geo .card__image-wrap,
html.dv-geo .cfg-kit__toggle,
html.dv-geo .dv-tri__leaf figcaption,
html.dv-geo .dv-who__photo,
html.dv-geo .dv-inside__frame,
html.dv-geo .dv-doc__sheet,
html.dv-geo .dv-doc__sheet b,
html.dv-geo .dv-salon,
html.dv-geo .dv-ph__map,
html.dv-geo .dv-ch,
html.dv-geo .dv-topic,
html.dv-geo .hd-wall__photo,
html.dv-geo .hd-sys__opt,
html.dv-geo .hd-sys__img,
html.dv-geo .hd-panels__photo,
html.dv-geo .hd-profiles img,
html.dv-geo .hd-fit__tile,
html.dv-geo .hd-fit__list .hw-row,
html.dv-geo .hd-fit__list .hw-row__media,
html.dv-geo .hd-form__card.lp-form,
html.dv-geo .hd-form__card .lp-field__input,
html.dv-geo .hd-form__card .lp-method,
html.dv-geo .dv-channel,
html.dv-geo .dv-wait__slab,
html.dv-geo .dv-wait__seal,
html.dv-geo .dv-services .dv-service-result,
html.dv-geo .dv-button,
html.dv-geo .dv-tags span,
html.dv-geo .dv-contact-options button,
html.dv-geo .dv-svc__services,
html.dv-geo .dv-svc__service:first-child,
html.dv-geo .dv-svc__service:last-child,
html.dv-geo .cv-btn {
  border-radius: 0;
}

/* End */


/* Start:/local/assets/kits/kits.css?179490060918118*/
/* Готовые сочетания (17.11.2026). Разметка — include/ready-kits.php, логика — kits.js.
   Вид — DESIGN.md (17.11.2026): токены и кнопки как на главной/в каталоге, острые углы,
   бордовый только у действий и выбранного, на телефоне всё столбиком. */
.rk {
  --ink: #1A1A1A;
  --mute: #75706A;
  --soft: #8C857D;
  --line: rgba(26, 26, 26, .12);
  --plate: #F3F2F0;
  --stone: #EDE8E1;
  --accent: #8C1F3B;
  --accent-h: #6E1630;
  --pad: clamp(16px, 3vw, 40px);
  --edge: max(var(--pad), calc((100% - 1440px) / 2 + var(--pad)));
  --ease: cubic-bezier(.22, .61, .36, 1);
  --out: cubic-bezier(.16, 1, .3, 1);
  display: block;
  padding: clamp(72px, 10vw, 140px) var(--edge) clamp(56px, 7vw, 100px);
  background: #fff;
  color: var(--ink);
  font-family: Manrope, system-ui, sans-serif;
}
.rk *, .rk *::before, .rk *::after { box-sizing: border-box; }
.rk h2, .rk h3, .rk p, .rk ul { margin: 0; padding: 0; }
.rk ul { list-style: none; }
.rk a { color: inherit; text-decoration: none; }
.rk button, .rk a, .rk img, .rk span, .rk article, .rk div { border-radius: 0; }
.rk img { display: block; max-width: 100%; }
.rk svg { width: 14px; height: 14px; flex: none; }

/* ---------- заголовок ---------- */
.rk .rk__title {
  max-width: 20em; font-size: clamp(32px, 4.2vw, 60px); line-height: 1.04; letter-spacing: -.035em; font-weight: 500;
  text-wrap: balance;
}
.rk .rk__title > span { display: block; color: var(--mute); }

/* ---------- вопрос о стиле ---------- */
.rk .rk__ask { margin-top: clamp(32px, 4vw, 56px); }
.rk .rk__q { margin-bottom: 16px; font-size: 15px; font-weight: 500; color: var(--mute); }
.rk .rk__styles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.1vw, 18px); }
.rk .rk-style {
  appearance: none; display: flex; flex-direction: column; gap: 14px; min-width: 0; margin: 0; padding: 0;
  border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.rk .rk-style__img {
  position: relative; display: block; aspect-ratio: 5 / 2; overflow: hidden; background: var(--stone);
}
/* Выбранный стиль — бордовая полоса снизу фото, как у миниатюр карточки товара. */
.rk .rk-style__img::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .45s var(--out);
}
.rk .rk-style__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--out), filter .4s var(--ease); }
.rk .rk-style[aria-pressed="false"] .rk-style__img img { filter: saturate(.75) brightness(.97); }
.rk .rk-style:hover .rk-style__img img { transform: scale(1.03); filter: none; }
.rk .rk-style[aria-pressed="true"] .rk-style__img::after { transform: scaleX(1); }
.rk .rk-style__label {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: clamp(17px, 1.4vw, 20px); font-weight: 500; letter-spacing: -.01em; color: var(--soft); transition: color .25s;
}
.rk .rk-style__label::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  transform: scale(0); transition: transform .3s var(--out);
}
.rk .rk-style:hover .rk-style__label { color: var(--ink); }
.rk .rk-style[aria-pressed="true"] .rk-style__label { color: var(--ink); }
.rk .rk-style[aria-pressed="true"] .rk-style__label::before { transform: scale(1); }
.rk .rk-style:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }

/* ---------- сочетания ---------- */
.rk .rk__list {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px) clamp(16px, 2vw, 28px);
  margin-top: clamp(40px, 4.4vw, 64px);
}
.rk .rk-card { display: flex; flex-direction: column; min-width: 0; }
.rk.rk_js .rk-card { display: none; }
.rk.rk_js .rk-card.is-shown { display: flex; animation: rk-in .6s var(--out) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes rk-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.rk .rk-card__img {
  display: flex; justify-content: center; align-items: center;
  height: clamp(320px, 30vw, 460px); background: var(--plate); overflow: hidden;
}
.rk .rk-card__img img { width: auto; height: 88%; max-width: 70%; object-fit: contain; transition: transform .5s var(--out); }
.rk .rk-card:hover .rk-card__img img { transform: scale(1.035); }
.rk .rk-card__body { display: flex; flex-direction: column; flex: 1; padding-top: 18px; }
.rk .rk-card__top { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 0 16px; }
.rk .rk-card__name { font-size: 16px; font-weight: 500; line-height: 1.3; letter-spacing: .025em; text-transform: uppercase; }
.rk .rk-card__name a { transition: color .25s; }
.rk .rk-card__name a:hover { color: var(--accent); }
.rk .rk-card__price {
  font-size: clamp(20px, 1.7vw, 24px); font-weight: 500; line-height: 1.15; letter-spacing: -.02em;
  white-space: nowrap; font-variant-numeric: tabular-nums;
}
.rk .rk-card__finish { margin-top: 6px; font-size: 15px; line-height: 1.45; }
.rk .rk-opts + .rk-card__finish { margin-top: 14px; font-size: 14px; color: var(--mute); }

/* ---------- переключатели в карточке: покрытие, стекло, кромка ---------- */
.rk .rk-card__img img { transition: transform .5s var(--out), opacity .25s var(--ease); }
.rk .rk-card__img img.is-busy { opacity: .55; }
.rk .rk-opts { display: grid; gap: 14px; margin-top: 16px; }
.rk .rk-opt[hidden] { display: none; }
.rk .rk-opt__head { margin-bottom: 8px; font-size: 13.5px; line-height: 1.35; color: var(--mute); }
.rk .rk-opt__head span { margin-left: 4px; color: var(--ink); }
.rk .rk-opt__list { display: flex; flex-wrap: wrap; gap: 6px; }
/* Образец — квадрат, как свотчи покрытий в карточке товара; выбранный — бордовая обводка. */
.rk .rk-sw {
  position: relative; display: block; flex: none; width: 34px; height: 34px; margin: 0; padding: 0;
  border: 1px solid var(--line); background: var(--plate) center / cover no-repeat; cursor: pointer; overflow: hidden;
  transition: outline-color .2s var(--ease), border-color .2s var(--ease);
  outline: 2px solid transparent; outline-offset: 2px;
}
.rk .rk-sw img { width: 100%; height: 100%; object-fit: cover; }
.rk .rk-sw:hover { border-color: rgba(26, 26, 26, .4); }
.rk .rk-sw[aria-checked="true"] { outline-color: var(--accent); }
.rk .rk-sw:focus-visible { outline-color: var(--ink); }
/* «Без стекла» / «Без кромки» — пустой квадрат с диагональю. */
.rk .rk-sw_none { background: #fff linear-gradient(to top right, transparent calc(50% - .6px), rgba(26, 26, 26, .35) 50%, transparent calc(50% + .6px)); }
/* Кромка — силуэт полотна, полосы или рамка цвета кромки. */
.rk .rk-sw_edge { background: #fff; }
.rk .rk-sw_edge svg { display: block; width: 100%; height: 100%; padding: 3px 0; }
.rk .rk-sw_edge .rk-door { fill: #EFEBE5; stroke: none; }
.rk .rk-sw_edge .rk-edge { fill: none; stroke-width: 2.4; }
.rk .rk-sw_silver .rk-edge { stroke: #A9ADB2; }
.rk .rk-sw_black .rk-edge { stroke: var(--ink); }
.rk .rk-sw_gold .rk-edge { stroke: #BF9B55; }
.rk .rk-card__note { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--mute); }
.rk .rk-card__parts { margin-top: 12px; font-size: 13.5px; line-height: 1.55; color: var(--mute); }
/* Петли и ручка — с миниатюрой: названий покупатель не знает. */
.rk .rk-part { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.rk .rk-part span { min-width: 0; }
.rk .rk-thumb {
  flex: none; width: 40px; height: 40px; margin: 0; padding: 0; border: 1px solid var(--line);
  background: #fff; cursor: zoom-in; overflow: hidden; transition: border-color .2s var(--ease);
}
.rk .rk-thumb img { width: 100%; height: 100%; object-fit: contain; }
.rk .rk-thumb:hover { border-color: rgba(26, 26, 26, .4); }
.rk .rk-thumb:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.rk .rk-sw[data-rk-zoom] { cursor: pointer; }

.rk .rk-card__actions { display: grid; gap: 16px; margin-top: auto; padding-top: 22px; }
.rk .rk-card__more { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; }
/* Главное действие карточки — бордовая кнопка, заливка темнее поднимается снизу (DESIGN.md). */
.rk .rk-book {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; min-height: 52px; margin: 0; padding: 0 24px; border: 0; background: var(--accent); color: #fff;
  font: 500 15px/1.2 Manrope, system-ui, sans-serif; letter-spacing: 0; text-transform: none; cursor: pointer;
}
.rk .rk-book::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent-h);
  transform: scaleY(0); transform-origin: 50% 100%; transition: transform .45s var(--out);
}
.rk .rk-book:hover::before { transform: scaleY(1); }
.rk .rk-book:active { transform: translateY(1px); }
.rk .rk-book svg { transition: transform .35s var(--out); }
.rk .rk-book:hover svg { transform: translate(2px, -2px); }
.rk .rk-book:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.rk .rk-link {
  display: inline-flex; align-items: center; gap: 10px; padding-bottom: 6px;
  font-size: 15px; font-weight: 500; color: var(--ink);
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .5s var(--ease), color .25s;
}
.rk .rk-link:hover { color: var(--accent); background-size: 40% 1px; }
.rk .rk-link svg { transition: transform .35s var(--ease); }
.rk .rk-link:hover svg { transform: translate(2px, -2px); }
.rk .rk-copy {
  appearance: none; margin: 0; padding: 4px 0; border: 0; background: none; cursor: pointer;
  font: 400 13.5px/1.3 Manrope, system-ui, sans-serif; color: var(--mute); transition: color .25s;
}
.rk .rk-copy:hover { color: var(--accent); }
.rk .rk-link:focus-visible, .rk .rk-copy:focus-visible, .rk .rk-card__name a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- низ блока ---------- */
.rk .rk__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px;
  margin-top: clamp(36px, 4vw, 56px);
}
.rk .rk__note { max-width: 46ch; font-size: 14px; line-height: 1.55; color: var(--mute); }
.rk .rk-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 0 28px; border: 1px solid var(--line); background: #fff; color: var(--ink);
  font: 500 15px/1.2 Manrope, system-ui, sans-serif; letter-spacing: 0; text-transform: none; white-space: nowrap;
  cursor: pointer; overflow: hidden; isolation: isolate; transition: color .35s var(--ease), border-color .35s;
}
.rk .rk-btn[hidden] { display: none; }
.rk .rk-btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--accent);
  transform: scaleY(0); transform-origin: 50% 100%; transition: transform .45s var(--out);
}
.rk .rk-btn:hover { color: #fff; border-color: var(--accent); }
.rk .rk-btn:hover::before { transform: scaleY(1); }
.rk .rk-btn:active { transform: translateY(1px); }
.rk .rk-btn svg { transition: transform .5s var(--out); }
.rk .rk-btn:hover svg { transform: rotate(180deg); }
.rk .rk-btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- планшет: тройка остаётся рядом, состав мельче ---------- */
@media (max-width: 1100px) {
  .rk .rk-card__parts { font-size: 13px; }
  .rk .rk-card__top { grid-template-columns: minmax(0, 1fr); }
  .rk .rk-card__price { margin-top: 4px; }
}

/* ---------- телефон и узкий планшет: столбиком, дверь слева от описания ---------- */
@media (max-width: 760px) {
  .rk .rk__title { font-size: 30px; }
  .rk .rk__q { font-size: 14px; margin-bottom: 12px; }
  .rk .rk__styles { gap: 8px; }
  .rk .rk-style { gap: 10px; }
  .rk .rk-style__img { aspect-ratio: 1 / 1; }
  .rk .rk-style__label { font-size: 14px; gap: 6px; }
  .rk .rk-style__label::before { width: 5px; height: 5px; }

  /* Фото сверху и крупно: при переключении покрытия, стекла и кромки дверь должно быть видно. */
  .rk .rk__list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; margin-top: 28px; }
  .rk .rk-card__img { height: clamp(340px, 100vw, 460px); }
  .rk .rk-card__img img { height: 90%; max-width: 76%; }
  .rk .rk-card__body { padding-top: 16px; }
  /* Ряд образцов — восемь равных квадратов на всю ширину (в ряду не больше восьми). */
  .rk .rk-opt__list { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
  .rk .rk-sw { width: auto; height: auto; aspect-ratio: 1 / 1; max-width: 46px; }
  .rk .rk-card__top { grid-template-columns: minmax(0, 1fr); }
  .rk .rk-card__name { font-size: 14px; }
  .rk .rk-card__price { margin-top: 4px; font-size: 20px; }
  .rk .rk-card__finish { font-size: 14px; }
  .rk .rk-card__parts { margin-top: 8px; font-size: 12.5px; line-height: 1.5; }
  .rk .rk-card__actions { padding-top: 18px; }
  .rk .rk-card__more { justify-content: flex-start; }
  .rk .rk-link { font-size: 14px; }

  .rk .rk__foot { margin-top: 24px; flex-direction: column-reverse; align-items: stretch; }
  .rk .rk-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .rk.rk_js .rk-card.is-shown { animation: none; }
  .rk .rk-card__img img, .rk .rk-style__img img, .rk .rk-style__img::after, .rk .rk-btn::before, .rk .rk-btn svg { transition: none; }
}

/* ---------- лупа: миниатюра в 4–5 раз крупнее над самой собой ---------- */
.rk-zoom {
  position: fixed; left: 0; top: 0; z-index: 1000; display: grid; gap: 8px; width: 168px; padding: 8px;
  background: #fff; box-shadow: 0 10px 28px rgba(26, 26, 26, .12); pointer-events: none;
  opacity: 0; visibility: hidden; transition: opacity .18s ease, visibility 0s linear .18s;
  font: 400 13px/1.35 Manrope, system-ui, sans-serif; color: #1A1A1A;
}
.rk-zoom.is-on { opacity: 1; visibility: visible; transition: opacity .18s ease; }
.rk-zoom img { display: block; width: 152px; height: 152px; object-fit: cover; border-radius: 0; background: #F3F2F0; }
.rk-zoom_wide { width: 216px; }
.rk-zoom_wide img { width: 200px; height: 200px; object-fit: contain; background: #fff; }
.rk-zoom span:empty { display: none; }
@media (prefers-reduced-motion: reduce) { .rk-zoom, .rk-zoom.is-on { transition: none; } }

/* ---------- окно «Забронировать комплект» (основа — css/popups.css .dv-pop) ---------- */
.rk-pop .rk-pop__kit { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 14px; align-items: center; margin: 22px 0 4px; }
.rk-pop .rk-pop__img { display: flex; justify-content: center; align-items: center; height: 128px; background: #fff; }
.rk-pop .rk-pop__img img { height: 92%; width: auto; max-width: 90%; object-fit: contain; border-radius: 0; }
.rk-pop .rk-pop__name { margin: 0; font-size: 15px; font-weight: 500; letter-spacing: .025em; text-transform: uppercase; color: #1A1A1A; }
.rk-pop .rk-pop__desc { margin: 4px 0 0; font-size: 13.5px; line-height: 1.45; color: #6E6862; }
.rk-pop .rk-pop__price { margin: 8px 0 0; font-size: 18px; font-weight: 500; letter-spacing: -.01em; color: #1A1A1A; font-variant-numeric: tabular-nums; }
.rk-pop .rk-qty__box { display: flex; align-items: center; gap: 0; }
.rk-pop .rk-qty__btn {
  width: 44px; height: 44px; margin: 0; padding: 0; border: 1px solid rgba(26, 26, 26, .2); border-radius: 0; background: #fff;
  color: #1A1A1A; font: 400 20px/1 Manrope, system-ui, sans-serif; cursor: pointer; transition: border-color .2s, color .2s;
}
.rk-pop .rk-qty__btn:hover { border-color: #8C1F3B; color: #8C1F3B; }
.dv-pop.rk-pop .dv-pop__main .dv-pop__field input.rk-qty__input {
  width: 56px; height: 44px; margin: 0 -1px; padding: 0; border: 1px solid rgba(26, 26, 26, .2); border-radius: 0; background: #fff;
  text-align: center; font: 500 16px/1 Manrope, system-ui, sans-serif; color: #1A1A1A; box-shadow: none;
}
.rk-pop .rk-qty__total { margin-left: 16px; font-size: 15px; font-weight: 500; color: #1A1A1A; font-variant-numeric: tabular-nums; }
.rk-pop .rk-qty__btn:focus-visible, .dv-pop.rk-pop .rk-qty__input:focus-visible { outline: 2px solid #1A1A1A; outline-offset: 2px; }
@media (max-width: 760px) {
  .rk-pop .rk-pop__kit { grid-template-columns: 56px minmax(0, 1fr); margin-top: 14px; }
  .rk-pop .rk-pop__img { height: 100px; }
}

/* ---------- в сетке каталога (после первых двух рядов): во всю ширину колонки, без боковых полей ---------- */
.catalog__grid > .rk { grid-column: 1 / -1; padding: clamp(48px, 6vw, 88px) 0; background: transparent; }
.catalog__grid > .rk .rk__title { font-size: clamp(30px, 3.2vw, 48px); }

/* ---------- после «Избранного»: у страницы свой нижний отступ 144px — свой верхний почти убираем ---------- */
.wl + .rk { padding-top: clamp(16px, 2vw, 32px); }

/* End */
/* /local/assets/home/home.css?179227639634955 */
/* /css/geometry.css?17948336947742 */
/* /local/assets/kits/kits.css?179490060918118 */
