/* mass.sewing — сайт цеха, v10. Один файл стилей (вместо base + production + слоёв v5–v9).
   Система:
   · материал — «жидкое стекло» Apple: там, где под ним фото или видео; в Chrome/Firefox — настоящее преломление
     (библиотека Glass-HQ/liquid-glass, класс html.lg-gpu и .is-glass у сцены), иначе — CSS-стекло этого файла;
   · скругления везде: фото и панели — --r-tile, кнопки/плашки/переключатели — капсула, поля — --r-field;
   · кнопки: основная — синяя; второстепенная — стекло, при наведении и нажатии наливается синим;
   · синий логотипа mass — только кнопки, цифры и выбранное;
   · типографика: заголовки Jost 600 в одну строку без точки + подзаголовок; текст Inter. */

/* ——— Шрифты (локально) ——— */
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url('../fonts/jost-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url('../fonts/jost-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url('../fonts/jost-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('../fonts/inter-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ——— Токены ——— */
:root {
  --milk: #f6f3ec; --milk-2: #ede8de; --paper: #fbfaf6;
  --graphite: #1c1e21; --ink: #23252a; --muted: #5c5a55; --sub: #6e6a62;
  --on-dark: #f3efe7; --on-dark-muted: rgba(243,239,231,.74);
  --line: rgba(28,30,33,.1); --line-dark: rgba(243,239,231,.14);
  --blue: #303f90; --blue-2: #4153b8; --blue-hover: #24306f; --blue-on-dark: #9aa7f0;
  --font: 'Inter', -apple-system, 'SF Pro Text', system-ui, sans-serif;
  --font-head: 'Jost', 'Futura', 'Century Gothic', system-ui, sans-serif;
  --r-tile: 28px; --r-card: 24px; --r-field: 14px; --r-pill: 999px;
  --edge: 12px; --gutter: clamp(16px, 4vw, 56px); --maxw: 1320px; --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* стекло: светлое и тёмное */
  --gl-bg: rgba(255,255,255,.55);
  --gl-edge: inset 1px 1px 0 rgba(255,255,255,.95), inset -1px -1px 0 rgba(255,255,255,.4), inset 0 0 0 1px rgba(255,255,255,.35);
  --gl-drop: 0 1px 2px rgba(28,30,33,.05), 0 14px 34px -16px rgba(28,30,33,.3);
  --gd-bg: rgba(255,255,255,.12);
  --gd-edge: inset 1px 1px 0 rgba(255,255,255,.42), inset -1px -1px 0 rgba(255,255,255,.1), inset 0 0 0 1px rgba(255,255,255,.12);
  --gd-drop: 0 16px 36px -18px rgba(0,0,0,.6);
  --blur: blur(22px) saturate(175%);
}
@media (max-width: 760px) { :root { --r-tile: 22px; --r-card: 20px; --edge: 8px; --header-h: 68px; } }

/* ——— Основа ——— */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
body { margin: 0; background: var(--milk); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.55; letter-spacing: -.006em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.hero :focus-visible, .on-dark :focus-visible, .vit :focus-visible, .bento :focus-visible, .shot :focus-visible { outline-color: #fff; }
.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.lg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
p, li, dd, summary { text-wrap: pretty; }
b { font-weight: 600; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ——— Заголовки разделов: одна строка без точки + подзаголовок ——— */
.section { padding-block: clamp(56px, 7vw, 104px); }
.head { margin-bottom: clamp(28px, 3.4vw, 48px); }
.title { font-family: var(--font-head); font-size: clamp(30px, 3.6vw, 52px); line-height: 1.08; font-weight: 600; letter-spacing: -.025em; color: var(--ink); text-wrap: balance; }
.sub { margin-top: 12px; font-family: var(--font-head); font-size: clamp(19px, 1.9vw, 27px); line-height: 1.3; font-weight: 500; letter-spacing: -.015em; color: var(--sub); max-width: 46ch; }
@media (min-width: 1081px) { .title { white-space: nowrap; } }
.on-dark .title { color: var(--on-dark); }
.on-dark .sub { color: var(--on-dark-muted); }

/* ——— Кнопки ——— */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border: 0; border-radius: var(--r-pill);
  background: linear-gradient(180deg, var(--blue-2) 0%, var(--blue) 100%); color: #fff; text-decoration: none; cursor: pointer; white-space: nowrap;
  font-size: 15px; font-weight: 600; letter-spacing: -.005em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 8px 20px -10px rgba(48,63,144,.75);
  transition: background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease), transform .15s var(--ease); }
.btn:hover { background: linear-gradient(180deg, #4a5cc4 0%, var(--blue-2) 100%); }
.btn:active { transform: scale(.97); background: var(--blue-hover); }
.btn--lg { min-height: 56px; padding: 0 30px; font-size: 16px; }
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
/* второстепенная — стекло; при наведении, фокусе и нажатии наливается синим */
.btn--glass { background: var(--gd-bg); color: #fff; -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--gd-edge), var(--gd-drop); }
.btn--light { background: rgba(255,255,255,.88); color: var(--ink); box-shadow: inset 1px 1px 0 #fff, 0 10px 24px -12px rgba(0,0,0,.5); }
.btn--glass:hover, .btn--glass:focus-visible, .btn--glass:active,
.btn--light:hover, .btn--light:focus-visible, .btn--light:active {
  background: linear-gradient(180deg, var(--blue-2) 0%, var(--blue) 100%); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 10px 24px -10px rgba(48,63,144,.8); }

/* ——— Шапка: плавающая стеклянная капсула ——— */
.header { position: fixed; inset: 12px 0 auto 0; z-index: 50; color: #fff; pointer-events: none; }
.header__pill { pointer-events: auto; display: flex; align-items: center; gap: 22px; width: min(1180px, calc(100% - 24px)); height: 56px; margin-inline: auto;
  padding: 0 8px 0 24px; border-radius: var(--r-pill); background: rgba(255,255,255,.1); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: var(--gd-edge), 0 10px 30px -14px rgba(0,0,0,.5); transition: background .35s var(--ease), box-shadow .35s var(--ease), color .35s var(--ease); }
.lg-refract .header__pill { -webkit-backdrop-filter: url(#lg-refract) var(--blur); backdrop-filter: url(#lg-refract) var(--blur); }
.header.is-solid { color: var(--ink); }
.header.is-solid .header__pill, .menu-open .header .header__pill { background: rgba(251,250,246,.66); box-shadow: var(--gl-edge), var(--gl-drop); color: var(--ink); }
.logo { display: inline-flex; align-items: baseline; gap: 8px; padding-block: 8px; text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: 19px; letter-spacing: .01em; }
.logo small { font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; opacity: .7; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: var(--r-pill); text-decoration: none; font-size: 14px; font-weight: 500; opacity: .9; transition: background .2s, opacity .2s; }
.nav a:hover { background: rgba(255,255,255,.16); opacity: 1; }
.header.is-solid .nav a:hover { background: rgba(28,30,33,.06); }
.header__tel { text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; }
.burger { display: none; position: relative; width: 44px; height: 44px; margin-left: auto; border: 0; background: none; cursor: pointer; }
.burger span, .burger::before, .burger::after { content: ''; position: absolute; left: 12px; right: 12px; height: 1.5px; background: currentColor; transition: transform .25s var(--ease), opacity .2s; }
.burger::before { top: 16px; } .burger span { top: 21.5px; } .burger::after { top: 27px; }
.menu-open .burger::before { transform: translateY(5.5px) rotate(45deg); }
.menu-open .burger span { opacity: 0; }
.menu-open .burger::after { transform: translateY(-5.5px) rotate(-45deg); }
@media (max-width: 1080px) {
  .nav, .header__tel, .header__pill > .btn { display: none; }
  .burger { display: block; }
  .header__pill { height: 52px; padding: 0 6px 0 18px; }
}
.mobile-menu { position: fixed; inset: 0; z-index: 49; display: flex; flex-direction: column; gap: 4px; overflow-y: auto;
  padding: calc(var(--header-h) + 20px) var(--gutter) calc(28px + env(safe-area-inset-bottom));
  background: rgba(246,243,236,.86); -webkit-backdrop-filter: blur(24px) saturate(180%); backdrop-filter: blur(24px) saturate(180%); color: var(--ink);
  opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s .25s; }
.menu-open .mobile-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mobile-menu a:not(.btn) { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); text-decoration: none; font-family: var(--font-head); font-size: 26px; font-weight: 500; }
.mobile-menu .mobile-menu__tel { font-size: 22px; border: 0; margin-top: 12px; }
.mobile-menu .btn { margin-top: 20px; }
html.menu-open, html.menu-open body { overflow: hidden; }

/* ——— Первый экран: видео во весь экран, без рамки (просьба Марии 13.10) ——— */
.hero { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 100svh; margin: 0;
  border-radius: 0; overflow: hidden; isolation: isolate; color: #fff; background: #15171a; }
.hero__media, .hero__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.hero__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,13,16,.5) 0%, rgba(12,13,16,.26) 34%, rgba(12,13,16,.44) 62%, rgba(12,13,16,.8) 100%); }
.hero__body { position: relative; padding-top: calc(var(--header-h) + clamp(48px, 9vh, 120px)); padding-bottom: clamp(32px, 5vh, 64px); }
.hero__kicker { margin-bottom: 18px; font-size: 15px; font-weight: 500; color: rgba(255,255,255,.86); text-shadow: 0 1px 12px rgba(0,0,0,.4); }
.hero__title { font-family: var(--font-head); font-weight: 600; font-size: clamp(36px, 4.6vw, 72px); line-height: 1; letter-spacing: -.035em; white-space: nowrap;
  background: linear-gradient(180deg, #fff 30%, #d9dde8 100%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 24px rgba(0,0,0,.35)); }
.hero__sub { margin-top: 20px; font-size: clamp(18px, 1.6vw, 22px); color: rgba(255,255,255,.92); text-shadow: 0 1px 14px rgba(0,0,0,.35); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__pause { position: absolute; right: var(--gutter); bottom: clamp(32px, 5vh, 64px); display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%;
  color: #fff; background: var(--gd-bg); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--gd-edge); cursor: pointer; transition: background .2s; }
.hero__pause:hover { background: var(--blue); }
.hero__pause svg { width: 14px; height: 14px; }
.hero__pause[hidden] { display: none; }
.hero__pause .i-play, .hero__pause[aria-pressed="true"] .i-pause { display: none; }
.hero__pause[aria-pressed="true"] .i-play { display: block; }
@media (max-width: 760px) {
  .hero__body { padding-top: calc(var(--header-h) + 48px); padding-bottom: 24px; }
  .hero__title { white-space: normal; font-size: clamp(32px, 9vw, 40px); line-height: 1.02; }
  .hero__sub { font-size: 17px; margin-top: 14px; }
  .hero__cta { margin-top: 22px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__pause { top: calc(var(--header-h) + 12px); bottom: auto; right: 14px; width: 38px; height: 38px; }
}
/* лента: переходы + шкала + цифры, стеклянная панель внизу первого экрана */
.band { position: relative; margin: 0 var(--edge) var(--edge); border-radius: calc(var(--r-tile) - 6px); overflow: hidden; background: rgba(18,19,22,.3);
  -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); box-shadow: inset 0 1px 0 rgba(255,255,255,.22), inset 0 0 0 1px rgba(255,255,255,.08); }
.lg-refract .band { -webkit-backdrop-filter: url(#lg-refract) blur(20px) saturate(160%); backdrop-filter: url(#lg-refract) blur(20px) saturate(160%); }
.band__jl { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.band__jl a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 62px; padding-right: 20px; text-decoration: none;
  font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.9); box-shadow: inset -1px 0 0 rgba(255,255,255,.14);
  transition: color .2s, background .3s var(--ease); }
.band__jl li + li a { padding-left: 20px; }
.band__jl li:last-child a { box-shadow: none; }
.band__jl a:hover { color: #fff; background: rgba(255,255,255,.07); }
.band__jl svg { width: 12px; height: 12px; flex: none; opacity: .7; transition: transform .25s var(--ease); }
.band__jl a:hover svg { transform: translateY(3px); opacity: 1; }
.band__facts { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.band__facts::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 8px; opacity: .6;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.5) 0 1px, transparent 1px 12px); box-shadow: 0 -1px 0 rgba(255,255,255,.16); }
.fact { display: grid; gap: 10px; align-content: start; padding: clamp(24px, 2.8vw, 38px) 24px clamp(22px, 2.6vw, 34px) 0; }
.fact + .fact { padding-left: clamp(20px, 2.4vw, 36px); box-shadow: inset 1px 0 0 rgba(255,255,255,.14); }
.fact dt { font-family: var(--font-head); font-size: clamp(34px, 3.4vw, 52px); line-height: 1; font-weight: 500; letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.fact dt small { font-size: .6em; font-weight: 500; color: rgba(255,255,255,.72); }
.fact dd { margin: 0; font-size: 14px; line-height: 1.45; color: rgba(255,255,255,.78); max-width: 24ch; }
@media (max-width: 900px) {
  .band__jl { display: flex; overflow-x: auto; scrollbar-width: none; }
  .band__jl::-webkit-scrollbar { display: none; }
  .band__jl li { flex: none; }
  .band__jl a { min-height: 50px; padding: 0 16px; font-size: 12px; letter-spacing: .08em; }
  .band__jl li:first-child a { padding-left: 0; }
  .band__facts { grid-template-columns: 1fr 1fr; }
  .fact { padding: 16px 12px 14px 0; gap: 6px; }
  .fact + .fact { padding-left: 0; box-shadow: none; }
  .fact:nth-child(even) { padding-left: 16px; box-shadow: inset 1px 0 0 rgba(255,255,255,.14); }
  .fact:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); }
  .fact dt { font-size: clamp(28px, 8.4vw, 38px); }
  .fact dd { font-size: 13px; }
}

/* ——— Плитки с фото: общий материал ——— */
.ph, .vit__ph { position: absolute; inset: 0; display: block; overflow: hidden; background: #2a2b2e; }
.ph img, .vit__ph img { width: 100%; height: 100%; object-fit: cover; }
/* подпись к фото — стеклянная капсула */
.cap, .bento__tile figcaption, .shot figcaption { position: absolute; left: 16px; bottom: 16px; z-index: 2; padding: 10px 18px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 500; color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.35);
  background: rgba(20,21,24,.34); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--gd-edge), 0 8px 20px -12px rgba(0,0,0,.5); }
.lg-gpu .is-glass figcaption[data-glass] { background: rgba(20,21,24,.16); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }

/* ——— Что делаем: витрина ——— */
.dirs { padding-top: clamp(56px, 7vw, 104px); padding-bottom: clamp(32px, 4vw, 56px); }
.vitrina { display: grid; grid-template-columns: 1fr 1fr; gap: var(--edge); padding-inline: var(--edge); }
.vit { position: relative; display: grid; align-items: end; justify-items: start; min-height: min(62vh, 620px); overflow: hidden; isolation: isolate; border-radius: var(--r-tile); color: #fff; }
.vit--wide { grid-column: 1 / -1; min-height: min(80vh, 760px); }
.vit__ph { z-index: -2; }
.vit__ph img { object-position: 50% 70%; }
.vit::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(12,13,16,0) 55%, rgba(12,13,16,.32) 100%); }
.vit__card { display: grid; justify-items: start; gap: 10px; max-width: 460px; margin: clamp(16px, 2.4vw, 32px); padding: clamp(22px, 2.4vw, 32px);
  border-radius: var(--r-card); background: rgba(20,21,24,.36); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--gd-edge), var(--gd-drop); }
.lg-gpu .is-glass .vit__card { background: rgba(20,21,24,.22); -webkit-backdrop-filter: none; backdrop-filter: none; }
.vit__tag { font-size: 14px; font-weight: 500; color: rgba(255,255,255,.78); }
.vit__title { font-family: var(--font-head); font-size: clamp(26px, 2.6vw, 38px); line-height: 1.08; font-weight: 600; letter-spacing: -.02em; }
.vit__text { font-size: 16px; line-height: 1.5; color: rgba(255,255,255,.88); }
.vit__card .btn { margin-top: 8px; }
@media (max-width: 760px) {
  .vitrina { grid-template-columns: 1fr; }
  .vit { min-height: 52svh; }
  .vit--wide { min-height: 66svh; }
  .vit__card { margin: 10px; max-width: none; width: calc(100% - 20px); }
}

/* ——— Калькулятор: стекло поверх светлого фото ——— */
.calc-sec { padding-block: var(--edge); }
.calc-stage { position: relative; isolation: isolate; margin-inline: var(--edge); padding-block: clamp(48px, 6vw, 88px); border-radius: var(--r-tile); }
.calc-stage__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; border-radius: inherit; background: #e9e4da; }
.calc-stage__bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(6px) saturate(.9); transform: scale(1.04); }
.calc-stage__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(246,243,236,.86) 0%, rgba(246,243,236,.62) 30%, rgba(246,243,236,.4) 100%); }
.calc { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(16px, 2vw, 24px); align-items: start; }
.calc__controls, .calc__result { border-radius: var(--r-card); background: var(--gl-bg); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--gl-edge), var(--gl-drop); }
.lg-gpu .is-glass .calc__controls, .lg-gpu .is-glass .calc__result { background: rgba(255,255,255,.4); -webkit-backdrop-filter: none; backdrop-filter: none; }
.calc__controls { padding: clamp(6px, 1.2vw, 14px) clamp(20px, 2.4vw, 32px); }
.calc__group { min-width: 0; margin: 0; padding: 20px 0 22px; border: 0; }
.calc__group + .calc__group { box-shadow: inset 0 1px 0 var(--line); }
.calc__group legend { float: left; width: 100%; padding: 0; margin-bottom: 12px; font-size: 14px; font-weight: 600; color: var(--ink); }
.calc__group legend + * { clear: both; }
/* плашки: стекло, выбранное — синее */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; cursor: pointer; }
.chip input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.chip > span, .chip--btn { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 8px 16px; border: 0; border-radius: var(--r-pill); cursor: pointer;
  font-size: 15px; font-weight: 500; line-height: 1.3; color: var(--ink); background: rgba(255,255,255,.6);
  box-shadow: inset 1px 1px 0 #fff, inset 0 0 0 1px rgba(28,30,33,.07), 0 2px 6px -3px rgba(28,30,33,.2); transition: background .2s, color .2s, box-shadow .2s; }
.chip small { font-size: 12px; color: var(--muted); }
.chip:hover > span, .chip--btn:hover { background: rgba(255,255,255,.92); }
.chip input:checked + span, .chip--btn.is-on { background: linear-gradient(180deg, var(--blue-2), var(--blue)); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 8px 18px -8px rgba(48,63,144,.7); }
.chip input:checked + span small { color: rgba(255,255,255,.75); }
.chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.chip--btn { font-variant-numeric: tabular-nums; }
.chip--own { color: var(--blue); }
.calc__qty { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.qty { display: inline-flex; align-items: stretch; height: 52px; overflow: hidden; border-radius: var(--r-pill); background: rgba(255,255,255,.75);
  box-shadow: inset 1px 1px 0 #fff, inset 0 0 0 1px rgba(28,30,33,.08), 0 2px 6px -3px rgba(28,30,33,.2); }
.qty:focus-within { box-shadow: inset 0 0 0 2px var(--blue); }
.qty input { width: 96px; border: 0; padding: 0 4px; background: transparent; text-align: center; font-family: var(--font-head); font-size: 22px; font-weight: 600;
  font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty input:focus { outline: none; }
.qty__unit { align-self: center; padding: 0 8px 0 2px; font-size: 14px; color: var(--muted); }
.qty__step { display: grid; place-items: center; width: 52px; border: 0; background: transparent; cursor: pointer; color: var(--ink); transition: background .2s; }
.qty__step:hover { background: rgba(48,63,144,.08); }
.qty__step:active { background: var(--blue); color: #fff; }
.qty__step svg { width: 14px; height: 14px; }
.calc__hint { margin-top: 12px; font-size: 14px; color: var(--muted); }
.calc__eg { padding: 8px 2px; margin: -8px 0; border: 0; background: none; cursor: pointer; font: inherit; font-weight: 600; color: var(--blue);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
/* материалы — переключатель-капсула: синяя подложка переезжает на выбранное */
.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 5px; border-radius: var(--r-pill); background: rgba(28,30,33,.06);
  box-shadow: inset 0 1px 2px rgba(28,30,33,.08); isolation: isolate; }
.seg__opt { position: relative; cursor: pointer; }
.seg__opt input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.seg__opt span { display: grid; justify-items: center; gap: 1px; padding: 10px 12px; border-radius: var(--r-pill); text-align: center; transition: color .3s var(--ease); }
.seg__opt b { font-size: 15px; font-weight: 600; }
.seg__opt small { font-size: 12px; color: var(--muted); transition: color .3s; }
.seg__opt input:checked + span { color: #fff; }
.seg__opt input:checked + span small { color: rgba(255,255,255,.78); }
.seg__opt input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.seg__thumb { position: absolute; z-index: -1; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: var(--r-pill);
  background: linear-gradient(180deg, var(--blue-2), var(--blue)); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 8px 18px -8px rgba(48,63,144,.7);
  transition: transform .45s cubic-bezier(.3, 1.3, .5, 1); }
.seg:has(.seg__opt:nth-child(2) input:checked) .seg__thumb { transform: translateX(100%); }
/* доп. услуги — тумблеры как в iPhone */
.togs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tog { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px 12px 18px; border-radius: var(--r-field); cursor: pointer;
  background: rgba(255,255,255,.55); box-shadow: inset 1px 1px 0 #fff, inset 0 0 0 1px rgba(28,30,33,.07); transition: background .2s, box-shadow .2s; }
.tog:hover { background: rgba(255,255,255,.85); }
.tog__txt { display: grid; gap: 1px; min-width: 0; }
.tog__txt b { font-size: 15px; font-weight: 500; }
.tog__txt small, .tog__txt em { font-size: 13px; font-style: normal; color: var(--muted); }
.tog input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.tog__sw { position: relative; flex: none; width: 46px; height: 28px; border-radius: var(--r-pill); background: rgba(28,30,33,.16); box-shadow: inset 0 1px 2px rgba(28,30,33,.15); transition: background .25s var(--ease); }
.tog__sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff;
  box-shadow: 0 2px 6px rgba(28,30,33,.28); transition: transform .3s cubic-bezier(.3, 1.3, .5, 1); }
.tog input:checked ~ .tog__sw { background: var(--blue); }
.tog input:checked ~ .tog__sw::after { transform: translateX(18px); }
.tog:has(input:checked) { background: rgba(255,255,255,.92); box-shadow: inset 0 0 0 1.5px rgba(48,63,144,.45), 0 8px 18px -12px rgba(48,63,144,.6); }
.tog input:focus-visible ~ .tog__sw { outline: 2px solid var(--blue); outline-offset: 2px; }
/* итог */
.calc__result { position: sticky; top: calc(var(--header-h) + 16px); display: grid; gap: 16px; padding: clamp(24px, 2.6vw, 34px); }
.calc__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.calc__cap { font-size: 14px; font-weight: 600; color: var(--muted); }
.calc__sketch { position: relative; flex: none; width: 60px; height: 60px; margin-top: -6px; }
.calc__sketch svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--ink); stroke-width: 1.1; stroke-linejoin: round; opacity: 0; transition: opacity .35s var(--ease); }
.calc__sketch svg .dash { stroke-dasharray: 2.5 2.5; stroke: var(--muted); }
.calc__sketch svg.is-on { opacity: .8; }
.calc__unit { min-height: 1.06em; margin-top: -4px; font-family: var(--font-head); font-size: clamp(54px, 5.6vw, 84px); line-height: 1.06; font-weight: 600; letter-spacing: -.035em;
  color: var(--blue); white-space: nowrap; font-variant-numeric: lining-nums tabular-nums; }
.calc__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 16px; border-radius: var(--r-field); background: rgba(28,30,33,.05); font-size: 15px; color: var(--muted); }
.calc__total b { font-family: var(--font-head); font-size: 24px; font-weight: 600; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.calc__lines { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; padding-inline: 4px; font-size: 15px; }
.calc__lines:empty { display: none; }
.calc__lines dt { color: var(--muted); }
.calc__lines dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.calc__note { font-size: 15px; font-weight: 500; }
.calc__note:empty { display: none; }
.calc__send { width: 100%; }
.calc__fine { font-size: 13px; line-height: 1.5; color: var(--muted); }
.odo { display: inline-flex; align-items: baseline; }
.odo__d { display: inline-block; height: 1.06em; overflow: hidden; line-height: 1.06; vertical-align: bottom; }
.odo__s { display: flex; flex-direction: column; transition: transform .7s cubic-bezier(.2, .8, .15, 1); }
.odo__s > span { height: 1.06em; }
.odo__c { white-space: pre; }
/* мобильная панель цены */
.calc-bar { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 8px 8px 22px; border-radius: var(--r-pill); color: var(--on-dark); background: rgba(24,26,30,.96);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--gd-edge), var(--gd-drop); }
.calc-bar[hidden] { display: none; }
html.calc-bar-on body { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
.calc-bar__txt { display: grid; min-width: 0; line-height: 1.25; }
.calc-bar__txt b { font-size: 15px; font-weight: 400; }
.calc-bar__txt .calc-bar__n { font-size: 17px; font-weight: 600; color: var(--blue-on-dark); font-variant-numeric: tabular-nums; }
.calc-bar__txt > span { overflow: hidden; font-size: 13px; color: var(--on-dark-muted); white-space: nowrap; text-overflow: ellipsis; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } .calc__result { position: static; } }
@media (max-width: 520px) {
  .calc__controls { padding: 4px 16px; }
  .chips--qty { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; gap: 6px; }
  .chips--qty .chip--btn { justify-content: center; padding: 8px 4px; font-size: 14px; }
  .qty { width: 100%; }
  .qty input { flex: 1; width: auto; min-width: 0; }
  .togs { grid-template-columns: 1fr; }
}

/* ——— Пять шагов ——— */
.steps-sec { padding-bottom: clamp(36px, 4vw, 56px); }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.steps__item { display: grid; align-content: start; gap: 10px; padding: 26px 22px 28px; border-radius: var(--r-card); background: rgba(255,255,255,.5);
  box-shadow: inset 1px 1px 0 #fff, inset 0 0 0 1px rgba(28,30,33,.05); transition: background .6s var(--ease), box-shadow .6s var(--ease); }
.steps__n { margin-bottom: 14px; font-family: var(--font-head); font-size: clamp(64px, 5.6vw, 92px); line-height: .9; font-weight: 600; letter-spacing: -.04em;
  color: rgba(48,63,144,.18); transition: color .7s var(--ease); font-variant-numeric: lining-nums; }
.steps__item.is-lit .steps__n { color: var(--blue); }
.steps__item.is-lit { background: rgba(255,255,255,.85); }
.steps__title { font-family: var(--font-head); font-size: clamp(21px, 1.7vw, 25px); font-weight: 600; letter-spacing: -.015em; line-height: 1.2; }
.steps__item p { font-size: 16px; color: var(--muted); }
@media (max-width: 1080px) and (min-width: 861px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 8px; }
  .steps__item { grid-template-columns: 56px 1fr; column-gap: 14px; padding: 18px; }
  .steps__n { grid-row: 1 / span 2; margin: 0; font-size: 52px; }
}

/* ——— Цех ——— */
.ceh { padding-top: clamp(36px, 4vw, 56px); }
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--edge); padding-inline: var(--edge); }
.bento__tile { position: relative; margin: 0; aspect-ratio: 3 / 4; overflow: hidden; isolation: isolate; border-radius: var(--r-tile); }
.bento__tile--wide { grid-column: 1 / -1; aspect-ratio: 21 / 8; }
.bento__tile--wide .ph img { object-position: 50% 64%; }
@media (max-width: 760px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .bento__tile--wide { aspect-ratio: 4 / 3; }
  .bento__tile:nth-child(2) { grid-column: 1 / -1; aspect-ratio: 4 / 3.4; }
}
.kit { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: var(--edge) var(--edge) 0; padding: clamp(16px, 3.4vw, 48px);
  border-radius: var(--r-tile); overflow: hidden; isolation: isolate; }
.kit__media { position: absolute; inset: 0; z-index: -1; background: #2a2b2e; }
.kit__media img { width: 100%; height: 100%; object-fit: cover; }
.kit__card { display: grid; grid-template-rows: auto auto 1fr; gap: 14px; padding: clamp(22px, 2.6vw, 36px); border-radius: var(--r-card);
  background: rgba(251,250,246,.66); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: var(--gl-edge), var(--gl-drop); }
.lg-gpu .is-glass .kit__card { background: rgba(251,250,246,.3); -webkit-backdrop-filter: none; backdrop-filter: none; }
.kit__lead { display: flex; align-items: center; gap: 14px; min-height: 3.2em; font-size: 17px; line-height: 1.4; }
.kit__big { flex: none; font-family: var(--font-head); font-size: 56px; line-height: 1; font-weight: 600; letter-spacing: -.04em; color: var(--blue); }
.kit__label { font-size: 14px; font-weight: 600; color: var(--muted); }
.kit__list { display: grid; grid-template-rows: repeat(8, 46px); }
.kit__list li { display: flex; align-items: center; gap: 12px; font-size: 16px; box-shadow: inset 0 -1px 0 var(--line); }
.kit__list li:last-child { box-shadow: none; }
.kit__list li::before { content: ''; flex: none; width: 6px; height: 6px; border-radius: 50%; background: rgba(28,30,33,.45); }
@media (max-width: 860px) {
  .kit { grid-template-columns: 1fr; padding: 10px; gap: 10px; }
  .kit__lead { min-height: 0; }
  .kit__list { grid-template-rows: none; }
  .kit__list li { min-height: 46px; padding-block: 8px; }
}

/* ——— Наши работы ——— */
.works { padding-top: clamp(56px, 6vw, 88px); }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: clamp(240px, 26vw, 420px); grid-auto-flow: dense; gap: var(--edge); padding-inline: var(--edge); }
.shot { position: relative; margin: 0; overflow: hidden; isolation: isolate; border-radius: var(--r-tile); background: #2a2b2e; }
.shot--wide { grid-column: span 2; }
.shot--tall { grid-row: span 2; }
.shot .ph img { transition: transform 1.1s var(--ease); }
@media (hover: hover) { .shot:hover .ph img, .bento__tile:hover .ph img { transform: scale(1.035); } }
.bento__tile .ph img { transition: transform 1.2s var(--ease); }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .shot { aspect-ratio: 3 / 4; }
  .shot--wide { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
  .shot--tall { grid-row: auto; grid-column: 1 / -1; aspect-ratio: 4 / 4.4; }
  .cap, .bento__tile figcaption, .shot figcaption { left: 10px; bottom: 10px; padding: 7px 12px; font-size: 13px; }
}
.clients { margin-top: clamp(48px, 6vw, 80px); }
.clients__t { margin-bottom: 16px; font-family: var(--font-head); font-size: clamp(22px, 2vw, 28px); font-weight: 600; letter-spacing: -.015em; }
.clients__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.clients__row li { display: grid; align-content: start; gap: 6px; padding: 22px; border-radius: var(--r-card); background: rgba(255,255,255,.55);
  box-shadow: inset 1px 1px 0 #fff, inset 0 0 0 1px rgba(28,30,33,.06), 0 10px 26px -18px rgba(28,30,33,.35); }
.clients__row b { font-family: var(--font-head); font-size: clamp(20px, 1.8vw, 25px); font-weight: 600; letter-spacing: -.015em; line-height: 1.15; }
.clients__row span { font-size: 14px; line-height: 1.45; color: var(--muted); }
@media (max-width: 860px) { .clients__row { grid-template-columns: 1fr 1fr; gap: 8px; } .clients__row li { padding: 16px; } }
.horeca-pill { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 10px; padding: 18px 18px 18px 28px; border-radius: var(--r-pill);
  text-decoration: none; color: var(--ink); background: rgba(255,255,255,.55);
  box-shadow: inset 1px 1px 0 #fff, inset 0 0 0 1px rgba(28,30,33,.06), 0 10px 26px -18px rgba(28,30,33,.35); transition: background .3s var(--ease), color .3s var(--ease); }
.horeca-pill__t { font-family: var(--font-head); font-size: clamp(19px, 1.9vw, 26px); font-weight: 600; letter-spacing: -.02em; }
.horeca-pill .btn svg { width: 16px; height: 12px; transition: transform .25s var(--ease); }
.horeca-pill:hover .btn { background: linear-gradient(180deg, var(--blue-2) 0%, var(--blue) 100%); color: #fff; }
.horeca-pill:hover .btn svg { transform: translateX(4px); }
@media (max-width: 560px) { .horeca-pill { flex-direction: column; align-items: flex-start; padding: 20px; border-radius: var(--r-card); } }

/* ——— Тёмный блок: вопросы и контакты — одна скруглённая панель ——— */
.dark { position: relative; margin: var(--edge); margin-top: clamp(56px, 6vw, 88px); border-radius: var(--r-tile); overflow: hidden; overflow: clip; background: var(--graphite); color: var(--on-dark); }
.on-dark { color: var(--on-dark); }
.faq { padding-bottom: clamp(28px, 3vw, 48px); }
.contact { padding-top: clamp(28px, 3vw, 48px); }
.faq__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); gap: 28px clamp(32px, 6vw, 96px); align-items: start; }
.faq__head { position: sticky; top: calc(var(--header-h) + 32px); }
.faq__head .title { white-space: normal; }
.faq__list { display: grid; gap: 8px; }
.faq__item { padding: 0 22px; border-radius: var(--r-field); background: rgba(255,255,255,.06); box-shadow: inset 1px 1px 0 rgba(255,255,255,.16), inset 0 0 0 1px rgba(255,255,255,.07);
  transition: background .25s; }
.faq__item[open] { background: rgba(255,255,255,.1); }
.faq__item summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 44px; padding: 19px 0; cursor: pointer; list-style: none; font-size: 17px; font-weight: 500; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ''; flex: none; width: 28px; height: 28px; border-radius: 50%; opacity: .9; transition: transform .3s var(--ease), background .2s;
  background: linear-gradient(currentColor, currentColor) center / 11px 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 11px no-repeat, rgba(255,255,255,.1); }
.faq__item summary:hover::after { background-color: var(--blue); }
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { max-width: 62ch; padding: 0 24px 22px 0; font-size: 16px; color: var(--on-dark-muted); }
.faq__item p b { color: var(--on-dark); }
@media (max-width: 860px) { .faq__in { grid-template-columns: 1fr; } .faq__head { position: static; } .faq__item summary { font-size: 16px; padding: 16px 0; } .faq__item p { padding-right: 0; } }

.contact__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 40px clamp(32px, 6vw, 112px); align-items: start; }
.contact__info { display: grid; justify-items: start; }
.contact__info .title { white-space: normal; }
.contact__tel { margin-top: 28px; font-family: var(--font-head); font-size: clamp(30px, 3.4vw, 46px); font-weight: 600; letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
.contact__tel:hover { color: #fff; }
.contact__links { width: 100%; max-width: 420px; margin-top: 20px; }
.contact__links li { display: grid; grid-template-columns: 100px 1fr; align-items: center; gap: 12px; border-bottom: 1px solid var(--line-dark); font-size: 15px; }
.contact__links span { font-size: 13px; color: var(--on-dark-muted); }
.contact__links a, .contact__links p { display: flex; align-items: center; min-height: 48px; }
.contact__links a { text-decoration: none; }
.contact__links a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 860px) { .contact__in { grid-template-columns: 1fr; } }

/* форма — тёмное стекло */
.lead-form { padding: clamp(22px, 2.8vw, 40px); border-radius: var(--r-card); background: rgba(255,255,255,.07); box-shadow: var(--gd-edge), var(--gd-drop); }
.lead-form__t { margin-bottom: 20px; font-family: var(--font-head); font-size: 24px; font-weight: 600; letter-spacing: -.015em; }
.lead-form__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; }
.field { display: grid; gap: 8px; }
.field--wide { grid-column: 1 / -1; }
.field > span { font-size: 13px; font-weight: 500; color: var(--on-dark-muted); }
.input, .textarea { width: 100%; min-height: 52px; padding: 14px 16px; border: 0; border-radius: var(--r-field); color: var(--on-dark); font-size: 16px;
  background: rgba(255,255,255,.08); box-shadow: inset 1px 1px 0 rgba(255,255,255,.12), inset 0 0 0 1px rgba(255,255,255,.06); transition: background .2s, box-shadow .2s; }
.textarea { min-height: 120px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: rgba(243,239,231,.45); }
.input:focus, .textarea:focus { outline: none; background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1.5px var(--blue-on-dark); }
.field__err { display: none; font-size: 14px; font-style: normal; color: #f19a8f; }
.field.is-invalid .field__err { display: block; }
.field.is-invalid .input, .field.is-invalid .textarea { box-shadow: inset 0 0 0 1.5px #f19a8f; }
/* согласие — скруглённая галочка, нативный input остаётся для доступности */
.check { position: relative; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--on-dark-muted); cursor: pointer; }
.check input { position: absolute; left: 0; top: 0; width: 22px; height: 22px; margin: 0; opacity: 0; cursor: pointer; }
.check__box { flex: none; width: 22px; height: 22px; border-radius: 7px; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); transition: background .2s, box-shadow .2s; }
.check input:checked + .check__box { background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6 11.5l3.4 3.4L16 8' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat; box-shadow: none; }
.check input:focus-visible + .check__box { outline: 2px solid #fff; outline-offset: 2px; }
.field.is-invalid .check__box { box-shadow: inset 0 0 0 1.5px #f19a8f; }
.check a { color: var(--on-dark); text-underline-offset: 3px; }
.lead-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 24px; }
.lead-form__fine { max-width: 30ch; font-size: 14px; color: var(--on-dark-muted); }
.lead-form.is-done .lead-form__fields, .lead-form.is-done .lead-form__foot, .lead-form.is-done .lead-form__t { display: none; }
.lead-form__done { display: grid; gap: 14px; justify-items: start; outline: none; }
.lead-form__done[hidden] { display: none; }
.lead-form__done-t { font-family: var(--font-head); font-size: clamp(22px, 2.2vw, 30px); font-weight: 600; }
.lead-form__done p:not(.lead-form__done-t) { max-width: 46ch; color: var(--on-dark-muted); }
.lead-form__done-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
@media (max-width: 560px) {
  .lead-form__fields { grid-template-columns: 1fr; }
  .lead-form__foot .btn, .lead-form__done-cta .btn { width: 100%; }
  .lead-form__fine { max-width: none; }
}

/* ——— Подвал ——— */
.footer { padding-block: 28px calc(32px + env(safe-area-inset-bottom)); font-size: 14px; color: var(--muted); }
.footer__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.footer a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--ink); }
.footer a:hover { color: var(--blue); }
@media (max-width: 760px) { .footer__in { flex-direction: column; align-items: flex-start; gap: 0; } }

/* ——— Появление и параллакс ——— */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .rv.is-in { opacity: 1; transform: none; }
.plx { overflow: hidden; }
.plx > img { transform: translate3d(0, var(--py, 0px), 0) scale(1.1); will-change: transform; }
@media (prefers-reduced-motion: reduce) { .js .rv { opacity: 1; transform: none; } .plx > img { transform: none; } }

/* ——— Курсор-игла: острие в точке мыши, стеклянное кольцо догоняет ——— */
.needle { display: none; }
@media (any-hover: hover) and (any-pointer: fine) and (prefers-reduced-motion: no-preference) {
  html.has-needle, html.has-needle a, html.has-needle button, html.has-needle label, html.has-needle summary,
  html.has-needle input[type="checkbox"], html.has-needle input[type="radio"] { cursor: none; }
  html.has-needle input:not([type="checkbox"]):not([type="radio"]), html.has-needle textarea { cursor: text; }
  .has-needle .needle { display: block; position: fixed; left: 0; top: 0; z-index: 1000; pointer-events: none; }
  .needle__pin { position: fixed; left: 0; top: 0; width: 34px; height: 34px; color: var(--ink); transition: color .25s, opacity .2s; filter: drop-shadow(0 1px 0 rgba(255,255,255,.8)); }
  .needle__thread { position: fixed; inset: 0; width: 100vw; height: 100vh; overflow: visible; color: var(--blue); transition: opacity .2s, color .25s; }
  .needle__thread path { fill: none; stroke: url(#needle-fade); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
  .needle.is-hover .needle__pin { color: var(--blue); }
  .needle.is-dark .needle__pin { color: #fff; filter: drop-shadow(0 1px 4px rgba(0,0,0,.45)); }
  .needle.is-dark .needle__thread { color: #aab6ff; }
  .needle.is-text .needle__pin, .needle.is-text .needle__thread, .needle.is-out .needle__pin, .needle.is-out .needle__thread { opacity: 0; }
}

/* ——— Если прозрачность выключена или стекло не поддерживается — плотные подложки ——— */
@media (prefers-reduced-transparency: reduce) {
  .header__pill, .header.is-solid .header__pill { background: rgba(251,250,246,.98); color: var(--ink); }
  .band, .vit__card, .cap, .bento__tile figcaption, .shot figcaption, .btn--glass, .hero__pause, .calc-bar { background: rgba(20,21,24,.88); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .calc__controls, .calc__result, .kit__card { background: rgba(251,250,246,.97); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .mobile-menu { background: var(--milk); }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .header__pill { background: rgba(28,30,33,.7); }
  .header.is-solid .header__pill { background: rgba(251,250,246,.97); }
  .band, .vit__card, .cap, .bento__tile figcaption, .shot figcaption, .btn--glass, .hero__pause, .calc-bar { background: rgba(20,21,24,.82); }
  .calc__controls, .calc__result, .kit__card { background: rgba(251,250,246,.95); }
  .mobile-menu { background: var(--milk); }
}

/* плитки цеха и работ живут внутри .wrap — выводим их на ширину экрана, как витрину */
.bento, .gallery { margin-inline: calc(50% - 50vw); }
.kit { margin-inline: calc(50% - 50vw + var(--edge)); }

.calc-stage .sub { color: #4f4b44; }

/* Видео не стартовало само (энергосбережение на iPhone/Mac): постер медленно «дышит», пока не коснутся экрана */
.hero.is-still .hero__media { background: var(--poster) center / cover no-repeat; animation: still-drift 22s ease-in-out 2 alternate both; }
.hero.is-still .hero__media video { opacity: 0; }
@keyframes still-drift { from { transform: scale(1.02) translate3d(-1%, 0, 0); } to { transform: scale(1.12) translate3d(1.5%, -1%, 0); } }
@media (prefers-reduced-motion: reduce) { .hero.is-still .hero__media { animation: none; } }

/* ——— v12: телефон и планшет, без изменения десктопа ——— */
@media (max-width: 899px) {
  :root { --header-h: 62px; }
  .section { padding-block: 36px; }
  .head { margin-bottom: 22px; }
  .title { font-size: clamp(28px, 4.6vw, 34px); line-height: 1.1; }
  .sub { margin-top: 9px; font-size: 19px; line-height: 1.3; }
  .btn--sm { min-height: 44px; }

  .header { top: 8px; }
  .header__pill { height: 48px; width: calc(100% - 16px); padding-left: 16px; background: rgba(24,26,30,.78); }
  .header.is-solid .header__pill, .menu-open .header .header__pill { background: rgba(251,250,246,.96); }
  .mobile-menu { background: rgba(246,243,236,.98); }
  .header__pill .logo { min-height: 44px; align-items: center; }
  .lg-refract .header__pill { -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); }
  .hero__pause { top: calc(var(--header-h) + 12px); right: var(--gutter); bottom: auto; width: 44px; height: 44px; }
  .hero__body { padding-top: calc(var(--header-h) + 74px); padding-bottom: 20px; }
  .hero__kicker { margin-bottom: 14px; font-size: 14px; }
  .hero__sub { margin-top: 14px; }
  .hero__cta { flex-wrap: nowrap; gap: 8px; margin-top: 20px; }
  .hero__cta .btn { flex: 1 1 auto; min-height: 48px; padding-inline: 16px; font-size: 14px; }
  .band__jumps { position: relative; }
  .band__jumps::after { content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 24px; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(18,19,22,.65)); }
  .band__jl { gap: 0; padding-inline: 12px 28px; scroll-padding-inline: 12px; scroll-snap-type: x proximity; }
  .band__jl li { scroll-snap-align: start; }
  .band__jl a { min-height: 44px; padding-inline: 14px; font-size: 13px; letter-spacing: 0; text-transform: none; }
  .band__jl li + li a { padding-left: 14px; }
  .fact { gap: 4px; padding-block: 12px; }
  .fact dt { font-size: 30px; }
  .fact dd { font-size: 12px; line-height: 1.4; }

  .dirs { padding-block: 36px 28px; }
  .vitrina { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 86%; align-items: stretch; overflow-x: auto; padding-bottom: 8px;
    scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge); scrollbar-width: thin; scrollbar-color: rgba(28,30,33,.25) transparent; }
  .vit, .vit--wide { grid-column: auto; min-height: 440px; align-content: end; }
  .vit__card { width: calc(100% - 20px); max-width: none; margin: 10px; padding: 18px; gap: 8px; }
  .vit { scroll-snap-align: start; scroll-snap-stop: normal; }
  .vit__title { font-size: 25px; }
  .vit__text { font-size: 15px; line-height: 1.45; }
  .vit__card .btn { margin-top: 6px; min-height: 44px; padding-inline: 18px; font-size: 14px; }
  .vit__ph img { object-position: 50% 45%; }

  .calc-sec { padding-block: var(--edge); }
  .calc-stage { padding-block: 30px; }
  .calc-stage > .wrap { padding-inline: 16px; }
  .calc { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .calc__controls, .calc__result { min-width: 0; }
  .calc__controls { padding: 2px 14px; }
  /* Панель прячется при пересечении с полями; пустой карман под ней не нужен. */
  .calc__controls { padding-bottom: 8px; }
  .calc__controls label, .calc__controls button, .qty { scroll-margin-block: 80px; }
  .calc__group { padding-block: 14px 16px; }
  .calc__group legend { margin-bottom: 10px; }
  #calc-items { display: grid; grid-template-rows: repeat(2, auto); grid-auto-flow: column; grid-auto-columns: max-content; gap: 6px;
    overflow-x: auto; padding: 4px 3px 8px; margin-inline: -3px; scroll-padding-inline: 3px; scrollbar-width: thin; scrollbar-color: rgba(28,30,33,.2) transparent; }
  .chip > span, .chip--btn { min-height: 44px; padding: 8px 12px; font-size: 14px; }
  .calc__qty { gap: 8px; }
  .qty { width: 100%; height: 48px; }
  .qty input { flex: 1; width: auto; min-width: 0; }
  .chips--qty { display: flex; flex-wrap: nowrap; overflow-x: auto; width: 100%; gap: 6px; padding-block: 2px 6px; scrollbar-width: thin; scrollbar-color: rgba(28,30,33,.2) transparent; }
  .chips--qty .chip--btn { flex: none; justify-content: center; padding-inline: 14px; }
  .calc__hint { margin-top: 4px; font-size: 14px; }
  .calc__eg { min-width: 44px; min-height: 44px; padding: 10px 4px; margin-block: -10px; }
  .seg__opt span { min-height: 56px; padding: 8px 6px; }
  .seg__opt b { font-size: 14px; }
  .seg__opt small { font-size: 12px; }
  .togs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .tog { min-height: 68px; padding: 10px; gap: 6px; align-items: flex-start; }
  .tog__txt b { font-size: 14px; line-height: 1.3; }
  .tog__txt small, .tog__txt em { font-size: 13px; line-height: 1.4; }
  .tog__sw { width: 38px; height: 24px; }
  .tog__sw::after { width: 18px; height: 18px; }
  .tog input:checked ~ .tog__sw::after { transform: translateX(14px); }
  .calc__result { padding: 20px; gap: 12px; }
  .calc__unit { font-size: 56px; }
  .calc__total { flex-wrap: wrap; padding: 10px 12px; gap: 4px 10px; }
  .calc__total b { font-size: 22px; }
  .calc__lines { font-size: 14px; gap: 6px 12px; }
  .calc__note { font-size: 14px; }
  .calc__send { min-height: 48px; font-size: 14px; padding-inline: 10px; }
  html.calc-bar-on body { padding-bottom: 0; }
  .calc-bar { gap: 8px; padding: 6px 6px 6px 18px; }
  .calc-bar__txt b { font-size: 13px; }
  .calc-bar__txt .calc-bar__n { font-size: 16px; }
  .calc-bar__txt > span { font-size: 12px; }
  /* После выбора цена стоит под выбранной группой и не закрывает соседние поля. */
  .calc-bar.is-inline { position: static; width: 100%; margin-top: 14px; }
  .calc-bar.is-inline[hidden] { display: flex; visibility: hidden; pointer-events: none; }

  .steps-sec { padding-bottom: 18px; }
  .steps { grid-template-columns: 1fr; gap: 6px; }
  .steps__item { grid-template-columns: 36px 1fr; gap: 4px 12px; padding: 14px 16px; }
  .steps__n { grid-row: 1 / span 2; margin: 0; font-size: 38px; }
  .steps__title { font-size: 21px; }
  .steps__item p { font-size: 14px; line-height: 1.45; }
  .ceh { padding-top: 24px; padding-bottom: 18px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento__tile { aspect-ratio: 1 / 1.05; }
  .bento__tile--wide { aspect-ratio: 16 / 10; }
  .bento__tile:nth-child(2) { grid-column: auto; aspect-ratio: 1 / 1.05; }
  .bento__tile:last-child { grid-column: 1 / -1; aspect-ratio: 2.4 / 1; }
  .kit { grid-template-columns: 1fr; padding: 8px; gap: 8px; }
  .kit__card { grid-template-rows: auto auto; padding: 16px; gap: 8px; background: rgba(251,250,246,.9); }
  .kit__lead { min-height: 0; font-size: 15px; gap: 12px; }
  .kit__big { font-size: 44px; }
  .kit__list { grid-template-rows: none; }
  .kit__list li { min-height: 40px; padding-block: 8px; font-size: 14px; }
  .kit__details summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; cursor: pointer; list-style: none; }
  .kit__details summary::-webkit-details-marker { display: none; }
  .kit__details summary::after { content: ''; width: 9px; height: 9px; margin-right: 4px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg); transition: transform .2s var(--ease); }
  .kit__details[open] summary::after { transform: rotate(225deg); }
  .kit__details[open] .kit__list { margin-top: 6px; }

  .works { padding-top: 30px; padding-bottom: 18px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 128px; }
  .shot, .shot--wide, .shot--tall { grid-column: auto; grid-row: span 2; aspect-ratio: auto; }
  .shot--tall { grid-row: span 3; }
  .shot--wide { grid-row: span 2; }
  .shot:nth-child(3) { grid-row: span 1; }
  .shot:last-child { grid-column: 1 / -1; grid-row: span 1; }
  .cap, .bento__tile figcaption, .shot figcaption { max-width: calc(100% - 16px); left: 8px; bottom: 8px; padding: 7px 10px; font-size: 13px; line-height: 1.35; }
  .clients { margin-top: 26px; }
  .clients__t { margin-bottom: 12px; font-size: 23px; }
  .clients__row { grid-template-columns: 1fr 1fr; gap: 8px; }
  .clients__row li { padding: 14px; }
  .clients__row b { font-size: 21px; }
  .clients__row span { font-size: 13px; }
  .horeca-pill { margin-top: 10px; gap: 12px; padding: 16px; border-radius: var(--r-card); }
  .horeca-pill__t { font-size: 20px; }

  .dark { margin-top: 28px; }
  .faq { padding-block: 30px 16px; }
  .faq__in { gap: 20px; }
  .faq__item { padding-inline: 16px; }
  .faq__item summary { min-height: 54px; padding-block: 13px; font-size: 15px; gap: 12px; }
  .contact { padding-block: 24px 30px; }
  .contact__in { gap: 26px; }
  .contact__tel { margin-top: 18px; font-size: 30px; }
  .contact__links { margin-top: 12px; }
  .lead-form { padding: 0; background: none; box-shadow: none; }
  .lead-form__t { margin-bottom: 16px; }
  .lead-form__fields { gap: 14px; }
  .input, .textarea { font-size: 16px; }
  .textarea { min-height: 104px; }
  .lead-form__foot { margin-top: 20px; gap: 12px; }
  .lead-form__foot .btn { min-height: 48px; }
  .check { min-height: 44px; }
  .footer { padding-top: 20px; }
  .footer__in { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
  .footer__in .logo, .footer__in p { grid-column: 1 / -1; }
  .footer__in > a:last-child { grid-column: 1 / -1; }
}

@media (max-width: 599px) {
  /* Полная строка тумблера сохраняет читаемые цены и названия на узком iPhone. */
  .togs { grid-template-columns: 1fr; }
  .tog { min-height: 56px; align-items: center; }
}

@media (min-width: 600px) and (max-width: 899px) {
  .hero__title { font-size: clamp(44px, 6.2vw, 52px); white-space: normal; }
  .hero__cta .btn { flex: none; }
  .band__facts { grid-template-columns: repeat(4, 1fr); }
  .fact:nth-child(n+3) { border-top: 0; }
  .fact + .fact { padding-left: 16px; box-shadow: inset 1px 0 0 rgba(255,255,255,.14); }
  .vitrina { grid-auto-columns: 46%; }
  .gallery { grid-auto-rows: 180px; }
}

@media (max-width: 899px) and (prefers-reduced-transparency: reduce) {
  .header__pill, .header.is-solid .header__pill { background: var(--paper); color: var(--ink); }
  .header__pill, .lg-refract .header__pill { -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* Телефон: чипы калькулятора переносятся, а не режутся краем; подвал ровными строками */
@media (max-width: 899px) {
  #calc-items, .chips--qty { display: flex; flex-wrap: wrap; overflow: visible; }
  .chips--qty .chip--btn { flex: 1 0 auto; }
  .footer__in { grid-template-columns: max-content max-content; justify-content: start; gap: 0 28px; }
  .footer__in > a[href^="tel:"] { grid-column: 1 / -1; }
}

/* Телефон: размытие только там, где оно видно (шапка, меню, панель цены, полоса цифр на видео).
   Подписи к фото и карточки — плотной подложкой без размытия: каждое размытие — отдельный тяжёлый слой для видеокарты телефона. */
@media (max-width: 899px) {
  .cap, .bento__tile figcaption, .shot figcaption { background: rgba(20,21,24,.6); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .vit__card { background: rgba(20,21,24,.66); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .kit__card { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .calc__controls, .calc__result { background: rgba(251,250,246,.93); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .band, .lg-refract .band { -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
}
/* Полоса цифр лежит на идущем видео: преломление через SVG пересчитывалось бы на каждом кадре ролика */
.lg-refract .band { -webkit-backdrop-filter: blur(20px) saturate(160%); backdrop-filter: blur(20px) saturate(160%); }

/* v14: видео не стартовало само (энергосбережение iPhone, «Уменьшить движение») — заметная капсула «Смотреть видео» вместо маленького кружка */
.hero__pause-t { display: none; }
.hero.is-still .hero__pause { width: auto; padding: 0 18px 0 14px; gap: 8px; grid-auto-flow: column; border-radius: var(--r-pill); font-size: 14px; font-weight: 600; }
.hero.is-still .hero__pause-t { display: inline; }

/* v14 (24.10): «Коротко о главном» — заголовок и вопросы появляются по очереди, ответы раскрываются плавно (JS в glass.js) */
.faq--anim .faq__head .title, .faq--anim .faq__item { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease), background .3s var(--ease); }
.faq--anim .faq__item { transition-delay: calc(120ms + var(--i, 0) * 70ms), calc(120ms + var(--i, 0) * 70ms), 0s; }
.faq--anim.is-in .faq__head .title, .faq--anim.is-in .faq__item { opacity: 1; transform: none; }
.faq__item { transition: background .3s var(--ease); }
@media (hover: hover) { .faq__item:not([open]):hover { background: rgba(255,255,255,.09); } }
.faq__item summary::after { transition: transform .4s var(--ease), background-color .2s; }
.faq__item.is-closing summary::after { transform: none; }
@media (prefers-reduced-motion: reduce) { .faq--anim .faq__head .title, .faq--anim .faq__item { opacity: 1; transform: none; transition: none; } }

/* v15: боевые заявки — отправка, ошибка с повтором, ловушка для ботов */
.lead-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lead-form { position: relative; }
.lead-form [type="submit"]:disabled { cursor: progress; opacity: .78; transform: none; }
.lead-form__err { display: grid; gap: 12px; margin-top: 18px; padding: 16px 18px; border-radius: var(--r-field); background: rgba(241,154,143,.1); box-shadow: inset 0 0 0 1px rgba(241,154,143,.4); }
.lead-form__err[hidden] { display: none; }
.lead-form__err-t { color: var(--on-dark); font-size: 15px; line-height: 1.45; }
.lead-form__err-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.lead-form__err-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-dark); font-size: 14px; font-weight: 500; text-underline-offset: 3px; }
/* v15: в шапке добавилось «Обучение» — на узком десктопе чуть плотнее, чтобы всё влезло в капсулу */
@media (min-width: 1081px) and (max-width: 1200px) { .header__pill { gap: 16px; } .nav a { padding-inline: 9px; } }

/* Ссылка на визитку со всеми площадками — тихая, в футере */
.footer a.footer__hub { color: var(--muted); text-decoration: underline; text-decoration-color: rgba(28,30,33,.25); text-underline-offset: 4px; }
.footer a.footer__hub:hover { color: var(--blue); text-decoration-color: currentColor; }
