/* ============================================================
   Crystal Ice — фотографический премиум-лендинг
   Дизайн-система: design-system/crystal-ice/MASTER.md
   Фон — реальные снимки гор, ледниковых озёр и воды,
   поверх — стеклянные панели и арктический градиент.
   ============================================================ */

/* ---------- 1. Токены ---------- */
:root {
  --ink-900: #04111F;
  --ink-800: #071A2C;
  --ink-700: #0B2740;
  --brand-800: #0A4D8C;
  --brand-700: #0C5FA8;
  --brand-600: #0284C7;
  --aqua-500: #06B6D4;
  --aqua-400: #22D3EE;
  --ice-300: #7DD3FC;
  --ice-100: #DCF2FD;

  --bg: #FFFFFF;
  --bg-tint: #F2F9FE;
  --surface: #FFFFFF;
  --muted: #EDF5FA;
  --border: #E1EDF6;
  --border-str: #C3DFF1;

  --fg: #08182A;
  --fg-muted: #51657A;
  --on-dark: #FFFFFF;
  --on-dark-muted: #AFC9DE;

  --danger: #D13438;
  --success: #0E7A50;

  --font-head: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;

  --space-1: 6px;  --space-2: 12px; --space-3: 20px;
  --space-4: 32px; --space-5: 52px; --space-6: 80px; --space-7: 112px;

  --radius-sm: 12px; --radius: 18px; --radius-lg: 28px; --radius-pill: 999px;

  --shadow-sm: 0 2px 10px rgba(6, 30, 55, .07);
  --shadow: 0 16px 40px rgba(6, 30, 55, .12);
  --shadow-lg: 0 32px 80px rgba(3, 18, 35, .28);

  --ease: cubic-bezier(.22, .68, .26, 1);
  --dur: .28s;

  --container: 1240px;
  --header-h: 92px;

  --glass: rgba(255, 255, 255, .10);
  --glass-line: rgba(255, 255, 255, .20);
}

/* ---------- 2. База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 10px); }
body {
  margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.65;
  color: var(--fg); background: var(--bg); overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-head); margin: 0; line-height: 1.08; letter-spacing: -.028em; }
p { margin: 0; }
img, svg { max-width: 100%; }
img { height: auto; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--brand-700); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--brand-600); }
button { font: inherit; }
.sprite { display: none; }

.ic { width: 22px; height: 22px; flex: none; }
.ic--lg { width: 30px; height: 30px; }
.ic--xl { width: 56px; height: 56px; }

.container {
  width: 100%; max-width: var(--container); margin: 0 auto;
  padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px));
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -200px; z-index: 300;
  background: var(--ink-900); color: #fff; padding: 12px 20px; border-radius: 0 0 12px 12px;
}
.skip-link:focus { top: 0; color: #fff; }

:focus-visible { outline: 3px solid var(--aqua-400); outline-offset: 3px; border-radius: 6px; }

/* индикатор прокрутки */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 200; pointer-events: none; }
.progress span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--brand-600), var(--aqua-400));
  box-shadow: 0 0 18px rgba(34, 211, 238, .7);
}

/* ---------- 3. Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 13px 26px;
  font-family: var(--font-head); font-weight: 700; font-size: 15px; line-height: 1.2;
  border: 1px solid transparent; border-radius: var(--radius-pill);
  cursor: pointer; text-align: center; white-space: nowrap;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              background-color var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background-image: linear-gradient(135deg, var(--brand-800), var(--brand-700));
  color: #fff; box-shadow: 0 8px 22px rgba(10, 77, 140, .26);
}
.btn--primary:hover { color: #fff; box-shadow: 0 14px 34px rgba(10, 77, 140, .34); }

.btn--accent {
  background-image: linear-gradient(135deg, #0EC9E8, var(--aqua-400));
  color: #04202C; box-shadow: 0 10px 26px rgba(14, 201, 232, .34);
}
.btn--accent:hover { color: #04202C; box-shadow: 0 16px 40px rgba(14, 201, 232, .44); }

.btn--glass {
  background: var(--glass); color: #fff; border-color: var(--glass-line);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.btn--glass:hover { background: rgba(255, 255, 255, .2); color: #fff; }

.btn--sm { min-height: 44px; padding: 10px 20px; font-size: 14px; }
.btn--lg { min-height: 58px; padding: 17px 34px; font-size: 16px; }
.btn--full { width: 100%; }

/* ---------- 4. Шапка ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 150;
  transition: background-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}
.header .container { max-width: 1420px; }
.header__inner { display: flex; align-items: center; gap: var(--space-2); min-height: var(--header-h); }
.header__logo {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  flex: 0 1 auto; min-width: 0;
}
.header__logoImg { width: 232px; max-width: 100%; height: auto; }
.header__logoImg--dark { display: none; }
.header.is-stuck .header__logoImg--light { display: none; }
.header.is-stuck .header__logoImg--dark { display: block; }

.nav { display: flex; gap: 2px; margin-inline: auto; flex-wrap: nowrap; }
.nav__link {
  display: inline-flex; align-items: center; min-height: 40px; padding: 8px 11px;
  border-radius: var(--radius-pill); font-size: 13.5px; font-weight: 500; color: #fff; white-space: nowrap;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav__link:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.nav__link.is-active { background: rgba(255, 255, 255, .18); color: #fff; font-weight: 600; }

.header__actions { display: flex; align-items: center; gap: var(--space-2); flex: none; }

.lang { display: inline-flex; padding: 3px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .14); }
.lang__btn {
  min-width: 44px; min-height: 44px; padding: 6px 10px; border: 0; background: transparent;
  border-radius: var(--radius-pill); font-family: var(--font-head); font-size: 13px; font-weight: 700;
  color: rgba(255, 255, 255, .78); cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.lang__btn:hover { color: #fff; }
.lang__btn.is-active { background: #fff; color: var(--ink-800); }

.header__phone {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 44px; min-height: 44px;
  font-family: var(--font-head); font-weight: 700; font-size: 15px; color: #fff;
}
.header__phone:hover { color: var(--ice-300); }

.burger {
  display: none; align-items: center; justify-content: center; width: 48px; height: 48px;
  border: 1px solid rgba(255, 255, 255, .26); background: rgba(255, 255, 255, .12);
  border-radius: 14px; color: #fff; cursor: pointer; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}

/* прилипшая светлая шапка */
.header.is-stuck {
  background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-color: var(--border); box-shadow: var(--shadow-sm);
}
.header.is-stuck .nav__link,
.header.is-stuck .header__phone { color: var(--fg); }
.header.is-stuck .nav__link:hover { background: var(--bg-tint); color: var(--brand-800); }
.header.is-stuck .nav__link.is-active { background: var(--ice-100); color: var(--brand-800); }
.header.is-stuck .lang { background: var(--muted); }
.header.is-stuck .lang__btn { color: var(--fg-muted); }
.header.is-stuck .lang__btn.is-active { background: #fff; color: var(--brand-800); box-shadow: var(--shadow-sm); }
.header.is-stuck .burger { color: var(--fg); background: #fff; border-color: var(--border); }

/* ---------- 5. Hero ---------- */
.hero { position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: min(100vh, 920px); min-height: min(100svh, 920px);
  padding-top: calc(var(--header-h) + 40px); padding-bottom: var(--space-5);
  color: #fff; overflow: hidden; }

.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); will-change: transform; }
.hero__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 17, 31, .86) 0%, rgba(4, 17, 31, .56) 38%, rgba(4, 17, 31, .82) 78%, rgba(4, 17, 31, .96) 100%),
    linear-gradient(100deg, rgba(5, 32, 56, .9) 0%, rgba(5, 32, 56, .42) 50%, rgba(5, 32, 56, .08) 78%);
}

.hero__inner {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: clamp(28px, 4vw, var(--space-6)); align-items: center;
  padding-block: clamp(32px, 5vw, var(--space-6));
}

.pill {
  display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px 8px 12px;
  border-radius: var(--radius-pill); background: var(--glass); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  font-family: var(--font-head); font-size: 13px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: #fff;
}
.pill .ic { width: 18px; height: 18px; color: var(--aqua-400); }

.hero__title {
  margin-top: var(--space-3);
  font-size: clamp(38px, 6.4vw, 84px); font-weight: 800; letter-spacing: -.04em;
  text-shadow: 0 6px 40px rgba(0, 0, 0, .35);
}
.hero__lead {
  margin-top: var(--space-3); max-width: 54ch;
  font-size: clamp(16px, 1.45vw, 20px); color: rgba(255, 255, 255, .88);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }

.hero__video {
  display: inline-flex; align-items: center; gap: 12px; margin-top: var(--space-4);
  font-size: 14.5px; font-weight: 500; color: rgba(255, 255, 255, .86);
}
.hero__video:hover { color: #fff; }
.hero__videoIcon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--glass); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.hero__video:hover .hero__videoIcon { background: rgba(255, 255, 255, .24); transform: scale(1.06); }

/* стеклянная панель с фактами */
.panel {
  display: grid; gap: var(--space-3); padding: var(--space-3);
  background: rgba(8, 26, 44, .52); border: 1px solid var(--glass-line);
  border-radius: var(--radius-lg); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  box-shadow: var(--shadow-lg);
}
.panel__head { display: flex; align-items: center; gap: var(--space-3); }
.panel__head img {
  width: 132px; height: auto; aspect-ratio: 851 / 1280; object-fit: cover;
  border-radius: 14px; box-shadow: 0 14px 26px rgba(0, 0, 0, .5);
}
.panel__head strong { display: block; font-family: var(--font-head); font-size: 17px; color: #fff; }
.panel__head span { font-size: 13.5px; color: var(--on-dark-muted); }
.panel__facts { display: grid; gap: 10px; padding-top: var(--space-3); border-top: 1px solid rgba(255, 255, 255, .14); }
.panel__facts li { display: flex; gap: 11px; align-items: flex-start; font-size: 14.5px; color: rgba(255, 255, 255, .92); }
.panel__facts .ic { width: 19px; height: 19px; color: var(--aqua-400); margin-top: 2px; }

/* метрики */
.metrics {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: rgba(255, 255, 255, .16); border: 1px solid var(--glass-line);
  border-radius: var(--radius); overflow: hidden; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
}
.metric { display: grid; gap: 2px; padding: var(--space-3) var(--space-2); background: rgba(6, 22, 38, .54); text-align: center; }
.metric__num {
  font-family: var(--font-head); font-size: clamp(26px, 3.4vw, 40px); font-weight: 800;
  letter-spacing: -.03em; color: #fff;
}
.metric span { font-size: 13px; color: var(--on-dark-muted); }

/* ---------- 6. Бегущая строка ---------- */
.marquee {
  overflow: hidden; padding-block: 16px; background: var(--ink-900); color: #fff;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.marquee__track {
  display: flex; align-items: center; gap: 28px; width: max-content;
  animation: slide 38s linear infinite;
  font-family: var(--font-head); font-size: 14px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
}
.marquee__track i { width: 7px; height: 7px; border-radius: 50%; background: var(--aqua-400); flex: none; }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 7. Секции ---------- */
.section { position: relative; padding-block: clamp(60px, 7.5vw, var(--space-7)); }
.section--tint { background: var(--bg-tint); }
/* две одинаковые секции подряд читаются как одна — убираем двойной отступ */
.section--tint + .section--tint { padding-top: 0; }
.section--dark + .section--dark { padding-top: 0; }
.section--dark { background: var(--ink-900); color: #fff; overflow: hidden; }
.section--dark .section__lead { color: var(--on-dark-muted); }

/* фотофоны секций */
#tech::before, #calc::before, #how::before, .section--lead::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center; opacity: .3;
}
#tech::before { background-image: url('../img/bg/tech.jpg'); }
#calc::before { background-image: url('../img/bg/wave.jpg'); opacity: .22; }
#how::before { background-image: url('../img/bg/peaks.jpg'); opacity: .13; }
.section--lead::before { background-image: url('../img/bg/mist.jpg'); opacity: .34; }
#tech > .container, #calc > .container, #how > .container, .section--lead > .container { position: relative; z-index: 1; }

/* Светлые секции: снимок под белой вуалью, чтобы не было пустых белых полей.
   Фото видно процентов на десять — текст и карточки остаются чистыми. */
.section--photo::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background-image: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .88)), var(--photo);
  background-size: cover; background-position: center;
}
.section--tint.section--photo::before {
  background-image: linear-gradient(180deg, rgba(242, 249, 254, .95), rgba(234, 245, 253, .89)), var(--photo);
}
.section--photo > .container { position: relative; z-index: 1; }

#about    { --photo: url('../img/bg/lake.jpg'); }
#catalog  { --photo: url('../img/bg/mist.jpg'); }
#b2b      { --photo: url('../img/bg/peaks.jpg'); }
#quality  { --photo: url('../img/bg/tech.jpg'); }
#reviews  { --photo: url('../img/bg/hero.jpg'); }
#partners { --photo: url('../img/bg/lake.jpg'); }
#faq      { --photo: url('../img/bg/mist.jpg'); }
#share    { --photo: url('../img/bg/peaks.jpg'); }

.glow { position: absolute; border-radius: 50%; filter: blur(110px); pointer-events: none; z-index: 0; }
.glow--tech { width: 620px; height: 620px; top: -220px; right: -160px; background: rgba(2, 132, 199, .34); }
.glow--calc { width: 540px; height: 540px; bottom: -220px; left: -140px; background: rgba(34, 211, 238, .26); }
.glow--lead { width: 660px; height: 660px; top: -200px; left: 40%; background: rgba(13, 148, 196, .3); }

.section__head { max-width: 780px; margin: 0 auto clamp(32px, 4vw, var(--space-5)); text-align: center; }
.section__head--left { margin-inline: 0; text-align: left; }
.section__head--split {
  display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-4);
  max-width: none; text-align: left;
}
.section__head--split > div { max-width: 720px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: var(--space-2);
  font-family: var(--font-head); font-size: 12.5px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--brand-600);
}
.eyebrow--light { color: var(--aqua-400); }

.section__title { font-size: clamp(28px, 3.9vw, 50px); font-weight: 800; }
.section__lead { margin-top: var(--space-3); font-size: clamp(16px, 1.25vw, 18px); color: var(--fg-muted); }
.note { margin-top: var(--space-3); font-size: 14px; color: var(--fg-muted); text-align: center; }
.section--dark .note { color: var(--on-dark-muted); }

/* переход к следующему блоку: каждая секция подводит к следующему шагу */
.section__next {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: var(--space-1) var(--space-3); margin-top: var(--space-4); text-align: center;
}
.section__next p { font-size: 15px; color: var(--fg-muted); }
.section--dark .section__next p { color: var(--on-dark-muted); }
.section__nextLink {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-family: var(--font-head); font-size: 15px; font-weight: 700;
}
.section--dark .section__nextLink { color: var(--aqua-400); }
.section__nextLink .ic { width: 20px; height: 20px; transition: transform var(--dur) var(--ease); }
.section__nextLink:hover .ic { transform: translateX(5px); }

/* ---------- 8. Бенто ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
.bento__item {
  position: relative; overflow: hidden; padding: var(--space-4);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.bento__item:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-str); }
.bento__item--wide { grid-column: span 2; min-height: 310px; }
.bento__item--wide .card__text { max-width: 46ch; }
.bento__item--dark { background: linear-gradient(145deg, var(--ink-800), var(--brand-800)); border-color: transparent; color: #fff; }
.bento__item--dark .card__text { color: var(--on-dark-muted); }

.bento__visual {
  position: absolute; right: -40px; bottom: -40px; width: 320px; height: 240px;
  background: url('../img/bg/lake.jpg') center/cover; border-radius: 50% 18px 18px 50%;
  opacity: .5; filter: saturate(1.1);
  -webkit-mask-image: radial-gradient(circle at 70% 70%, #000 35%, transparent 72%);
          mask-image: radial-gradient(circle at 70% 70%, #000 35%, transparent 72%);
}

.cards { display: grid; gap: var(--space-2); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  padding: var(--space-4); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-str); }

.card__icon {
  display: inline-grid; place-items: center; width: 54px; height: 54px; margin-bottom: var(--space-3);
  background: linear-gradient(140deg, var(--ice-100), #EFFAFE); border-radius: 16px; color: var(--brand-700);
}
.card__icon--light { background: rgba(255, 255, 255, .14); color: var(--aqua-400); }
.card__title { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.card__text { font-size: 15px; color: var(--fg-muted); }
.bento__item--dark .card__title { color: #fff; }

/* ---------- 9. Лента ступеней ---------- */
.rail__nav { display: flex; gap: 8px; flex: none; }
.rail__btn {
  display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); color: #fff;
  cursor: pointer; transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.rail__btn:hover { background: rgba(255, 255, 255, .22); transform: translateY(-2px); }

.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr);
  gap: var(--space-2); overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: var(--space-2); scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }

.stepcard {
  scroll-snap-align: start; display: flex; flex-direction: column; gap: 14px;
  min-height: 170px; padding: var(--space-3);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .13);
  border-radius: var(--radius); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.stepcard:hover { background: rgba(255, 255, 255, .12); transform: translateY(-4px); }
.stepcard--hl { background: linear-gradient(150deg, rgba(34, 211, 238, .22), rgba(2, 132, 199, .14)); border-color: rgba(34, 211, 238, .4); }
.stepcard__num { font-family: var(--font-head); font-size: 30px; font-weight: 800; color: var(--aqua-400); letter-spacing: -.04em; }
.stepcard__name { font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, .92); margin-top: auto; }

.rail__progress { height: 3px; margin-top: var(--space-2); background: rgba(255, 255, 255, .14); border-radius: 3px; overflow: hidden; }
.rail__progress span { display: block; height: 100%; width: 25%; background: linear-gradient(90deg, var(--brand-600), var(--aqua-400)); border-radius: 3px; }

/* ---------- 10. Плейсхолдеры и медиа ---------- */
.is-placeholder {
  background:
    repeating-linear-gradient(135deg, rgba(2, 132, 199, .06) 0 14px, transparent 14px 28px),
    var(--muted);
  border: 2px dashed var(--border-str); color: var(--brand-700);
}
.section--dark .is-placeholder {
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .05) 0 14px, transparent 14px 28px), rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .22); color: #fff;
}

.media {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  margin: var(--space-5) 0 0; padding: clamp(32px, 6vw, 76px) var(--space-3);
  border-radius: var(--radius-lg); text-align: center; aspect-ratio: 16 / 7; overflow: hidden;
}
.media figcaption { display: flex; flex-direction: column; gap: 4px; }
.media strong { font-family: var(--font-head); font-size: 17px; }
.media span { font-size: 14px; opacity: .78; }
/* ролик снят вертикально, поэтому показываем кадр целиком, а поля по бокам
   закрываем размытым стоп-кадром — чёрных полос не остаётся */
.media.has-content {
  border: 0; padding: 0; background: #04111f; aspect-ratio: auto;
  display: block; overflow: hidden;
  /* Карточка под вертикальный кадр: узкая и по центру, иначе ролик
     теряется посреди широкой пустой рамки. */
  max-width: min(100%, 520px); margin-inline: auto;
}
.media__frame {
  position: relative; display: grid; place-items: center; overflow: hidden;
  height: clamp(380px, 56vh, 580px);
}
.media__frame::before {
  content: ''; position: absolute; inset: 0;
  background: url('../img/card/production-poster.jpg') center / cover;
  filter: blur(28px) brightness(.45); transform: scale(1.12);
}
/* Рамка подстраивается под ролик, а не режет его: ролик вертикальный,
   при жёсткой высоте у него уезжали за край кнопки плеера. */
.media.has-content .media__frame {
  height: auto;
  padding: clamp(12px, 1.6vw, 24px);
}
.media.has-content video {
  position: relative; z-index: 1;
  display: block; width: auto; height: auto;
  /* Привязка к экрану, а не проценты: ролик целиком влезает в окно
     вместе с кнопками плеера. */
  max-height: min(62vh, 560px);
  max-width: 100%; object-fit: contain;
  border-radius: var(--radius); box-shadow: 0 18px 44px rgba(0, 0, 0, .5);
}
/* Широкий экран: карточка горизонтальная. Ролик снят вертикально, и во
   весь рост он растягивал секцию на целый экран — теперь он вписан в
   кадр 16:9 по центру, а поля закрывает размытый фон. */
@media (min-width: 768px) {
  .media.has-content { max-width: min(100%, 880px); }
  /* Высота в переменной, а не в процентах: процент от высоты этого кадра
     браузер не считает (проверено — ролик оставался 1080 px), а одна
     переменная держит рамку и ролик в одном размере. */
  .media.has-content .media__frame {
    --frame-h: clamp(360px, 34vw, 520px);
    height: var(--frame-h);
    padding: 0;
  }
  .media.has-content video {
    height: auto; width: auto;
    max-height: var(--frame-h); max-width: 100%;
    border-radius: 0; box-shadow: none;
  }
}

.media__cap {
  padding: 14px var(--space-3); font-size: 13.5px; line-height: 1.5;
  color: var(--on-dark-muted); text-align: center;
  /* без этого подпись рвётся в неудачном месте — «20» и «л» на разных строках */
  text-wrap: balance;
}

/* ---------- 11. Каталог ---------- */
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: var(--space-2); }
.product {
  position: relative; display: flex; flex-direction: column; padding: var(--space-3);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--border-str); }
.product--hit { border-color: var(--aqua-500); box-shadow: 0 10px 30px rgba(6, 182, 212, .16); }

.product__flag {
  position: absolute; top: 14px; right: 14px; z-index: 2; padding: 6px 13px;
  border-radius: var(--radius-pill); background: linear-gradient(135deg, #0EC9E8, var(--aqua-400));
  font-family: var(--font-head); font-size: 11px; font-weight: 800; letter-spacing: .07em;
  text-transform: uppercase; color: #04202C;
}

.product__media {
  position: relative; display: grid; place-items: center; height: 210px; margin-bottom: var(--space-3);
  border-radius: var(--radius); overflow: hidden;
  background: url('../img/bg/ripples.jpg') center/cover;
}
.product__media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(214, 240, 252, .5));
}
.product__media img { position: relative; z-index: 1; height: 196px; width: auto; filter: drop-shadow(0 18px 26px rgba(6, 42, 79, .34)); }
.product__media--empty { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
/* настоящая фотография занимает всю плашку: без водяной подложки и тени */
.product__media--photo { height: 260px; background: var(--muted); }
.product__media--photo::after {
  background: linear-gradient(180deg, transparent 55%, rgba(4, 23, 42, .18));
}
.product__media--photo img {
  width: 100%; height: 100%; object-fit: cover; filter: none;
  transition: transform .5s var(--ease);
}
.product:hover .product__media--photo img { transform: scale(1.04); }
.product__media--empty::after { display: none; }

.product__title { font-size: 19px; font-weight: 700; }
.product__use { margin-top: 6px; font-size: 13.5px; color: var(--fg-muted); min-height: 42px; }
.product__specs { margin: var(--space-3) 0; border-top: 1px solid var(--border); }
.product__specs li {
  display: flex; justify-content: space-between; gap: 10px; padding: 9px 0;
  border-bottom: 1px solid var(--border); font-size: 13.5px;
}
.product__specs span { color: var(--fg-muted); }
.product__specs b { font-weight: 600; text-align: right; }
.product__price { margin-bottom: var(--space-2); font-family: var(--font-head); font-size: 23px; font-weight: 800; color: var(--brand-800); }

/* ---------- 12. Как заказать ---------- */
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
.how__step {
  position: relative; padding: var(--space-4); background: rgba(255, 255, 255, .78);
  border: 1px solid var(--border); border-radius: var(--radius-lg); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.how__num {
  display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: var(--space-3);
  border-radius: 50%; background: linear-gradient(140deg, var(--brand-800), var(--brand-600));
  font-family: var(--font-head); font-size: 20px; font-weight: 800; color: #fff;
}
.how__title { font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.how__text { font-size: 15px; color: var(--fg-muted); }

/* ---------- 13. Калькулятор ---------- */
.calc {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--space-4);
  padding: clamp(20px, 3vw, var(--space-4));
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-lg); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
}
.calc__form { display: grid; gap: var(--space-3); align-content: start; }

.field { display: grid; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field__label { font-family: var(--font-head); font-size: 14px; font-weight: 700; padding: 0; }
.field__hint { font-size: 13px; opacity: .72; }
/* поле-ловушка: уводим за край экрана, но не display:none — иначе боты его игнорируют */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.field__error { font-size: 13px; font-weight: 500; color: var(--danger); }
.section--dark .field__error { color: #FF9AA0; }

.input {
  width: 100%; min-height: 50px; padding: 13px 16px; font: inherit; font-size: 15px;
  color: var(--fg); background: #fff; border: 1px solid var(--border-str); border-radius: var(--radius-sm);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.input:hover { border-color: var(--brand-600); }
.input:focus { outline: none; border-color: var(--brand-600); box-shadow: 0 0 0 4px rgba(2, 132, 199, .18); }
.input.is-invalid { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(209, 52, 56, .14); }
textarea.input { min-height: 98px; resize: vertical; }
select.input {
  appearance: none; padding-right: 44px;
  background-image: linear-gradient(45deg, transparent 50%, var(--brand-700) 50%), linear-gradient(135deg, var(--brand-700) 50%, transparent 50%);
  background-position: right 20px center, right 14px center; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
}

.segmented { display: flex; gap: 8px; flex-wrap: wrap; }
.segmented__item { position: relative; flex: 1 1 150px; }
.segmented__item input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.segmented__item span {
  display: flex; align-items: center; justify-content: center; min-height: 50px; padding: 10px 16px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius-sm); font-size: 14.5px; font-weight: 500; text-align: center; cursor: pointer;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}
.segmented__item input:hover + span { background: rgba(255, 255, 255, .16); }
.segmented__item input:checked + span { background: #fff; border-color: #fff; color: var(--ink-800); font-weight: 600; }
.segmented__item input:focus-visible + span { outline: 3px solid var(--aqua-400); outline-offset: 2px; }

.form .segmented__item span { background: var(--muted); border-color: transparent; color: var(--fg); }
.form .segmented__item input:checked + span { background: #fff; border-color: var(--brand-600); color: var(--brand-800); box-shadow: var(--shadow-sm); }

.stepper { display: flex; align-items: center; gap: 8px; }
.stepper__btn {
  display: grid; place-items: center; width: 50px; height: 50px; flex: none;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius-sm); color: #fff; cursor: pointer;
  transition: background-color var(--dur) var(--ease);
}
.stepper__btn:hover { background: rgba(255, 255, 255, .2); }
.stepper__input {
  width: 100%; min-height: 50px; padding: 13px 16px; text-align: center;
  font-family: var(--font-head); font-size: 19px; font-weight: 700; color: var(--ink-900);
  background: #fff; border: 1px solid transparent; border-radius: var(--radius-sm);
}

.range-row { display: flex; align-items: center; gap: var(--space-2); }
/* дорожка остаётся тонкой, а нажимать можно по всей высоте 44 px */
.range {
  flex: 1; min-width: 0; height: 44px; margin: 0; padding: 0;
  background: transparent; cursor: pointer;
  -webkit-appearance: none; appearance: none;
}
.range::-webkit-slider-runnable-track {
  height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, var(--brand-600), var(--aqua-400));
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 26px; height: 26px; margin-top: -10px; border-radius: 50%;
  background: #fff; border: 4px solid var(--aqua-400);
  box-shadow: 0 4px 12px rgba(4, 17, 31, .35);
}
.range::-moz-range-track {
  height: 6px; border: 0; border-radius: 3px;
  background: linear-gradient(90deg, var(--brand-600), var(--aqua-400));
}
.range::-moz-range-thumb {
  width: 22px; height: 22px; border: 4px solid var(--aqua-400); border-radius: 50%;
  background: #fff; box-shadow: 0 4px 12px rgba(4, 17, 31, .35);
}
.range:focus-visible { outline: 3px solid var(--aqua-400); outline-offset: 4px; }
.range__out { min-width: 70px; text-align: center; font-family: var(--font-head); font-size: 16px; font-weight: 800; color: var(--aqua-400); }

.calc__result {
  display: flex; flex-direction: column; gap: 8px; align-self: start; padding: var(--space-3);
  background: linear-gradient(165deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .05));
  border: 1px solid rgba(255, 255, 255, .18); border-radius: var(--radius-lg);
}
.calc__row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-2); padding: 11px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.calc__row span { font-size: 14px; color: var(--on-dark-muted); }
.calc__row b { font-family: var(--font-head); font-size: 17px; text-align: right; }
.calc__row--hero b { font-size: 26px; color: var(--aqua-400); }
.calc__row--muted b { color: var(--on-dark-muted); }
.calc__result .btn { margin-top: var(--space-2); }
.calc__note { font-size: 12.5px; color: var(--on-dark-muted); }

/* фотография доставки под шагами */
/* кадр показываем целиком: курьер, бутыль и фургон должны попасть в рамку */
.how__shot {
  margin: var(--space-4) auto 0; max-width: 620px;
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--border); background: var(--surface);
}
.how__shot img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.how__shot figcaption {
  padding: 14px var(--space-3); font-size: 13.5px; color: var(--fg-muted);
}

/* лента постов из Instagram */
.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--space-2); }
.post {
  display: block; position: relative; overflow: hidden;
  border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--muted);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.post img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.post--video { margin: 0; cursor: default; }
.post--video:hover { transform: none; }
.post video {
  display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  background: #04111f;
}
.post:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-str); }

/* ---------- 14. B2B ---------- */
.b2b__cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3);
  margin-top: var(--space-4); padding: clamp(24px, 3vw, var(--space-5));
  border-radius: var(--radius-lg); color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(120deg, rgba(4, 17, 31, .92), rgba(10, 77, 140, .85)), url('../img/bg/lake.jpg') center/cover;
}
.b2b__ctaText { max-width: 58ch; }
.b2b__ctaTitle { font-size: clamp(21px, 2.3vw, 29px); font-weight: 800; margin-bottom: 8px; }
.b2b__cta p { color: var(--on-dark-muted); font-size: 15px; }

/* ---------- 15. Документы и лаборатория ---------- */
.certs { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--space-2); }
.cert {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  margin: 0; padding: var(--space-3) 14px; aspect-ratio: 3 / 4; border-radius: var(--radius); text-align: center;
}
.cert figcaption { font-size: 12.5px; font-weight: 500; color: var(--fg-muted); }
.cert a { display: block; width: 100%; height: 100%; }
.cert img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.cert.has-content { border: 1px solid var(--border); background: #fff; padding: 0; overflow: hidden; }

/* карточка документа: слева место под скан, справа номер и срок действия */
.docs { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-2); }
.doc {
  display: flex; gap: var(--space-3); margin: 0; padding: var(--space-3);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.doc:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-str); }
.doc__media {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  width: 104px; aspect-ratio: 3 / 4; padding: 10px; text-align: center;
  color: var(--brand-600); background: var(--muted);
  border: 1px dashed var(--border-str); border-radius: var(--radius);
}
.doc__scanHint { font-size: 11px; line-height: 1.3; color: var(--fg-muted); }
.doc__media.has-scan { padding: 0; border-style: solid; background: #fff; overflow: hidden; }
.doc__media.has-scan a, .doc__media.has-scan img { display: block; width: 100%; height: 100%; }
.doc__media.has-scan img { object-fit: cover; }
.doc__body { min-width: 0; }
.doc__title { font-family: var(--font-head); font-size: 17px; font-weight: 700; line-height: 1.3; color: var(--fg); }
.doc__meta { margin-top: 10px; display: flex; flex-direction: column; gap: 7px; }
.doc__meta div { display: grid; grid-template-columns: 104px 1fr; gap: 10px; align-items: baseline; }
.doc__meta dt { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--fg-muted); }
.doc__meta dd { font-size: 14px; font-weight: 600; color: var(--fg); overflow-wrap: anywhere; }

.composition { margin-top: var(--space-5); }
.composition__title { font-size: clamp(21px, 2.3vw, 28px); font-weight: 700; margin-bottom: var(--space-3); text-align: center; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.table { width: 100%; border-collapse: collapse; min-width: 480px; }
.table th, .table td { padding: 15px 20px; text-align: left; font-size: 14.5px; border-bottom: 1px solid var(--border); }
.table thead th {
  background: var(--muted); font-family: var(--font-head); font-weight: 700; font-size: 12.5px;
  letter-spacing: .07em; text-transform: uppercase; color: var(--fg-muted);
}
.table tbody th { font-weight: 500; }
.table tbody tr:last-child th, .table tbody tr:last-child td { border-bottom: 0; }
.table .is-empty { color: var(--brand-600); font-weight: 700; }
.table .is-ok { color: var(--brand-700); font-weight: 700; }
.table--lab tbody th { font-weight: 600; }
.table__group th {
  background: var(--muted); font-family: var(--font-head); font-size: 12.5px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; color: var(--brand-800);
}

/* ---------- 16. Отзывы ---------- */
.reviews {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(318px, 1fr));
  gap: var(--space-2); align-items: start;
}
.review {
  display: flex; flex-direction: column; gap: var(--space-2);
  padding: var(--space-3); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.review:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-str); }
.review__stars { display: flex; gap: 3px; color: #F2A33C; }
.review__stars .ic { width: 16px; height: 16px; }
.review__text {
  margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--fg);
}
.review__who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.review__avatar {
  flex: 0 0 auto; display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; color: #fff; font-family: var(--font-head);
  font-size: 15px; font-weight: 700; letter-spacing: .02em;
  background: linear-gradient(140deg, var(--brand-800), var(--brand-600));
}
.review__person { min-width: 0; }
.review__name { display: block; font-size: 15px; font-weight: 700; color: var(--fg); }
.review__role { display: block; font-size: 12.5px; line-height: 1.4; color: var(--fg-muted); }
.review__meta {
  display: flex; flex-wrap: wrap; gap: 8px 14px; padding-top: var(--space-2);
  border-top: 1px solid var(--border); font-size: 12.5px; color: var(--fg-muted);
}
.review__meta span { font-weight: 600; color: var(--brand-700); }
.review.is-placeholder {
  align-items: center; justify-content: center; min-height: 200px; text-align: center;
}
.review.is-placeholder p { font-family: var(--font-head); font-size: 16px; font-weight: 600; color: var(--brand-800); }
.review .hint { font-size: 13px; color: var(--fg-muted); }

/* партнёры и крупные покупатели */
.partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
.partner {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; min-height: 180px; padding: var(--space-3); text-align: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.partner:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-str); }
.partner.is-placeholder { background: transparent; }

.partner__logo {
  display: grid; place-items: center; width: 96px; height: 60px;
  color: var(--brand-700); overflow: hidden;
}
.partner__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.partner__logo--text {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(140deg, var(--brand-800), var(--brand-600));
  font-family: var(--font-head); font-size: 21px; font-weight: 800; color: #fff; letter-spacing: .02em;
}
.partner__name { font-family: var(--font-head); font-size: 16px; font-weight: 700; color: var(--fg); }
.partner__type { font-size: 13px; color: var(--fg-muted); }

/* клиенты, разложенные по отраслям (пока нет логотипов — показываем списком) */
.clients {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(298px, 1fr));
  gap: var(--space-2); align-items: start;
}
.clientGroup {
  padding: var(--space-3); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.clientGroup:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--border-str); }
.clientGroup__head { display: flex; align-items: center; gap: 12px; }
.clientGroup__icon {
  flex: 0 0 auto; display: grid; place-items: center; width: 46px; height: 46px;
  border-radius: 14px; color: #fff;
  background: linear-gradient(140deg, var(--brand-800), var(--brand-600));
}
.clientGroup__title { font-family: var(--font-head); font-size: 17px; font-weight: 700; color: var(--fg); }
.clientGroup__sub { margin-top: 2px; font-size: 12.5px; color: var(--fg-muted); }
.clientGroup__list { margin-top: var(--space-2); display: flex; flex-direction: column; }
.clientGroup__list li {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 0; border-top: 1px solid var(--border);
}
.clientGroup__list .ic { flex: 0 0 auto; margin-top: 2px; color: var(--brand-600); }
.client__name { display: block; font-size: 15px; font-weight: 600; color: var(--fg); }
.client__note { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.45; color: var(--fg-muted); }

/* ---------- 17. Вопросы ---------- */
.faq { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(24px, 4vw, var(--space-6)); align-items: start; }
.faq .section__head { margin-bottom: 0; }
.faq .btn { margin-top: var(--space-3); }
.faq__list { display: grid; gap: 10px; }

.faq__item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.faq__item[open] { border-color: var(--border-str); box-shadow: var(--shadow-sm); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-2);
  padding: 18px var(--space-3); cursor: pointer; list-style: none;
  font-family: var(--font-head); font-size: 16px; font-weight: 700;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .ic { color: var(--brand-600); transition: transform var(--dur) var(--ease); }
.faq__item[open] summary .ic { transform: rotate(180deg); }
.faq__item p { padding: 0 var(--space-3) 18px; font-size: 15px; color: var(--fg-muted); }

/* ---------- 18. Заявка ---------- */
.section--lead { background: var(--ink-900); color: #fff; overflow: hidden; }
.lead { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, var(--space-6)); align-items: center; }
.lead__title { font-size: clamp(27px, 3.6vw, 44px); font-weight: 800; }
.lead__lead { margin-top: var(--space-3); font-size: clamp(15px, 1.3vw, 18px); color: var(--on-dark-muted); }
.lead__list { display: grid; gap: 12px; margin-top: var(--space-4); }
.lead__list li { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; }
.lead__list .ic { color: var(--aqua-400); margin-top: 2px; }

.form {
  display: grid; gap: var(--space-3); padding: clamp(20px, 3vw, var(--space-4));
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); color: var(--fg);
}
.form .field__hint, .form .field__label { color: var(--fg); }
.checkbox {
  display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding-block: 10px;
  font-size: 14px; color: var(--fg-muted); cursor: pointer;
}
.checkbox input { width: 24px; height: 24px; margin: 0; flex: none; accent-color: var(--brand-600); cursor: pointer; }
.form__status { font-size: 14px; font-weight: 600; min-height: 20px; }
.form__status.is-ok { color: var(--success); }
.form__status.is-error { color: var(--danger); }
.form__fallback { font-size: 14px; color: var(--fg-muted); text-align: center; }
.form__fallback a { display: inline-block; padding: 10px 4px; font-weight: 700; }

/* ---------- 19. Подвал ---------- */
.footer { background: #030D18; color: #fff; padding-block: var(--space-6) var(--space-3); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.1fr; gap: var(--space-4); }
.footer__col { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.footer__logo { width: 248px; max-width: 100%; height: auto; }
.footer__about { font-size: 14px; color: var(--on-dark-muted); }
.footer__legalEntity { margin-top: 6px; font-size: 12.5px; line-height: 1.6; color: rgba(255, 255, 255, .5); }
.footer__title { font-family: var(--font-head); font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.footer__link { font-size: 14.5px; color: var(--on-dark-muted); min-height: 40px; display: inline-flex; align-items: center; }
.footer__link:hover { color: #fff; }
.footer__link--strong { font-family: var(--font-head); font-size: 18px; font-weight: 700; color: #fff; }
.footer__line { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--on-dark-muted); }
.footer__line .ic { color: var(--ice-300); flex: none; }
.footer__social { display: flex; gap: 10px; margin-top: 6px; }
.social {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; color: #fff;
  border: 1px solid rgba(255, 255, 255, .2);
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.social:hover { background: rgba(255, 255, 255, .12); border-color: var(--ice-300); color: #fff; }
.footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--space-2) var(--space-3);
  margin-top: var(--space-5); padding-top: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13.5px; color: var(--on-dark-muted);
}
.footer__copy { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; flex: 0 1 auto; }
.footer__privacy { color: var(--on-dark-muted); text-decoration: underline; text-underline-offset: 3px; }
.footer__privacy:hover { color: #fff; }

/* три гарантии: ряд компактных плашек между копирайтом и политикой */
.footer__guard { display: flex; flex-wrap: wrap; gap: 8px; grid-column: 1 / -1; margin-top: 4px; }
.footer__guard li {
  display: flex; align-items: center; gap: 7px;
  padding: 6px 12px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1);
  font-size: 12.5px; line-height: 1.3; color: var(--on-dark-muted);
}
.footer__guard .ic { width: 15px; height: 15px; color: var(--ice-300); flex: 0 0 auto; }

/* подпись команды и правовая строка */
.sign {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start;
  gap: 14px var(--space-4);
  margin-top: var(--space-3); padding-top: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.sign__made {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 5px 10px;
  padding: 8px 14px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .14);
}
.sign__prefix { font-size: 10.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--on-dark-muted); }
.sign__mark { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px 9px; }
.sign__mark:hover .sign__site { background: var(--ice-300); color: #041B33; border-color: var(--ice-300); }
.sign__mark:hover .sign__brand { color: var(--ice-300); }
.sign__site {
  display: inline-flex; align-items: center; gap: 4px; align-self: center;
  padding: 2px 9px; border-radius: var(--radius-pill);
  border: 1px solid rgba(125, 211, 252, .35); background: rgba(125, 211, 252, .1);
  font-size: 10.5px; font-weight: 700; letter-spacing: .03em; text-transform: lowercase; color: var(--ice-300);
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.sign__site .ic { width: 11px; height: 11px; }
.sign__brand { transition: color var(--dur) var(--ease); }
.sign__brand {
  font-family: var(--font-head); font-size: 13px; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase; color: #fff;
}
.sign__by { font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--on-dark-muted); }
.sign__by b { margin-left: .26em; font-size: 11.5px; font-weight: 800; color: var(--ice-300); letter-spacing: .14em; }
.sign__legal { margin-bottom: 10px; font-size: 12.5px; line-height: 1.6; color: rgba(255, 255, 255, .5); }
.sign__made { align-self: center; }

/* ---------- 20. Нижняя панель и плавающие кнопки ---------- */
.orderbar {
  position: fixed; inset: auto 0 0; z-index: 120; display: none;
  align-items: center; justify-content: space-between; gap: var(--space-2);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(4, 17, 31, .93); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, .14); color: #fff;
  transform: translateY(110%); transition: transform .35s var(--ease);
}
.orderbar.is-on { transform: none; }
.orderbar__text { display: flex; flex-direction: column; line-height: 1.3; }
.orderbar__text strong { font-family: var(--font-head); font-size: 15px; }
.orderbar__text span { font-size: 12.5px; color: var(--on-dark-muted); }

.fab {
  position: fixed; z-index: 110; display: flex; flex-direction: column; gap: 10px;
  right: max(18px, env(safe-area-inset-right, 0px));
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
}
.fab__btn {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: #fff;
  box-shadow: var(--shadow); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.fab__btn:hover { transform: translateY(-3px) scale(1.05); color: #fff; box-shadow: var(--shadow-lg); }
.fab__btn--tg { background: linear-gradient(135deg, #2AABEE, #229ED9); }
.fab__btn--ig { background: linear-gradient(135deg, #F9A03C, #D6356F 55%, #8A3AB9); }
.fab__btn--call { background: linear-gradient(135deg, var(--brand-800), var(--brand-600)); }

/* ---------- 21. Появление ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 20б. Водяная штора при открытии сайта ---------- */
.curtain { position: fixed; inset: 0; z-index: 400; pointer-events: none; overflow: hidden; }
.curtain.is-done { display: none; }

/* стекло: тёмная вода с подсветкой, верхний край — волна */
.curtain__pane {
  position: absolute; inset: -2% 0;
  background:
    radial-gradient(58% 46% at 50% 26%, rgba(125, 211, 252, .26), transparent 72%),
    linear-gradient(180deg, rgba(10, 77, 140, .93), rgba(4, 17, 31, .97) 72%),
    url('../img/bg/wave.jpg') center / 175% auto;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 900' preserveAspectRatio='none'%3E%3Cpath d='M0 54C120 12 232 96 352 58s232-74 352-26 216 92 336 40 160-48 160-48V900H0Z' fill='%23fff'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 900' preserveAspectRatio='none'%3E%3Cpath d='M0 54C120 12 232 96 352 58s232-74 352-26 216 92 336 40 160-48 160-48V900H0Z' fill='%23fff'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  box-shadow: 0 0 120px rgba(125, 211, 252, .35);
  will-change: transform;
  animation: curtain-drain 1.9s .85s cubic-bezier(.55, .06, .25, 1) forwards;
}
/* капли живут внутри стекла: уходят вниз вместе с ним и обрезаются по кромке волны */
.curtain__pane::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 180px; z-index: 2;
  background: linear-gradient(180deg, rgba(214, 245, 255, .7), rgba(125, 211, 252, .18) 45%, transparent);
}

/* мелкий дождь по стеклу */
.curtain__rain, .curtain__drops { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
.curtain__rain i {
  position: absolute; top: -20%; width: 2px; height: 15%; border-radius: 999px;
  background: linear-gradient(180deg, transparent, rgba(198, 242, 255, .5) 55%, rgba(255, 255, 255, .92));
  opacity: 0; animation: rain-fall linear infinite;
}
/* крупные капли сползают и оставляют след */
.curtain__drops b {
  position: absolute; top: -6%; width: 11px; height: 14px;
  border-radius: 52% 52% 58% 58% / 62% 62% 44% 44%;
  background: radial-gradient(circle at 36% 30%, rgba(255, 255, 255, .95), rgba(176, 229, 255, .55) 48%, rgba(8, 54, 92, .3));
  box-shadow: inset 0 -2px 3px rgba(255, 255, 255, .55), 0 3px 8px rgba(0, 0, 0, .25);
  opacity: 0; animation: drop-slide cubic-bezier(.45, 0, .7, .4) forwards;
}
.curtain__drops b::after {
  content: ''; position: absolute; left: 50%; bottom: 100%; width: 2px; height: 90px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, transparent, rgba(198, 242, 255, .45));
}

@keyframes curtain-drain {
  0%   { transform: translateY(0); }
  100% { transform: translateY(104%); }
}
@keyframes rain-fall {
  0%   { transform: translateY(0); opacity: 0; }
  12%  { opacity: .85; }
  88%  { opacity: .85; }
  100% { transform: translateY(800%); opacity: 0; }
}
@keyframes drop-slide {
  0%   { transform: translateY(0) scale(.85); opacity: 0; }
  12%  { opacity: 1; }
  100% { transform: translateY(104vh) scale(1.2); opacity: .2; }
}

.curtain__rain i:nth-child(1) { left: 3%; animation-delay: 0.00s; animation-duration: 1.05s; }
.curtain__rain i:nth-child(2) { left: 9%; animation-delay: 0.35s; animation-duration: 1.30s; }
.curtain__rain i:nth-child(3) { left: 14%; animation-delay: 0.62s; animation-duration: 0.95s; }
.curtain__rain i:nth-child(4) { left: 19%; animation-delay: 0.10s; animation-duration: 1.45s; }
.curtain__rain i:nth-child(5) { left: 25%; animation-delay: 0.80s; animation-duration: 1.15s; }
.curtain__rain i:nth-child(6) { left: 31%; animation-delay: 0.22s; animation-duration: 1.00s; }
.curtain__rain i:nth-child(7) { left: 37%; animation-delay: 0.55s; animation-duration: 1.35s; }
.curtain__rain i:nth-child(8) { left: 43%; animation-delay: 0.05s; animation-duration: 1.20s; }
.curtain__rain i:nth-child(9) { left: 49%; animation-delay: 0.70s; animation-duration: 0.92s; }
.curtain__rain i:nth-child(10) { left: 55%; animation-delay: 0.30s; animation-duration: 1.42s; }
.curtain__rain i:nth-child(11) { left: 61%; animation-delay: 0.48s; animation-duration: 1.08s; }
.curtain__rain i:nth-child(12) { left: 67%; animation-delay: 0.88s; animation-duration: 1.25s; }
.curtain__rain i:nth-child(13) { left: 73%; animation-delay: 0.14s; animation-duration: 0.98s; }
.curtain__rain i:nth-child(14) { left: 79%; animation-delay: 0.60s; animation-duration: 1.38s; }
.curtain__rain i:nth-child(15) { left: 84%; animation-delay: 0.26s; animation-duration: 1.12s; }
.curtain__rain i:nth-child(16) { left: 89%; animation-delay: 0.74s; animation-duration: 1.02s; }
.curtain__rain i:nth-child(17) { left: 94%; animation-delay: 0.40s; animation-duration: 1.28s; }
.curtain__rain i:nth-child(18) { left: 98%; animation-delay: 0.18s; animation-duration: 1.18s; }

.curtain__drops b:nth-child(1) { left: 12%; animation-delay: 0.15s; animation-duration: 2.30s; }
.curtain__drops b:nth-child(2) { left: 27%; animation-delay: 0.55s; animation-duration: 2.70s; }
.curtain__drops b:nth-child(3) { left: 38%; animation-delay: 0.00s; animation-duration: 2.10s; }
.curtain__drops b:nth-child(4) { left: 52%; animation-delay: 0.80s; animation-duration: 2.45s; }
.curtain__drops b:nth-child(5) { left: 66%; animation-delay: 0.32s; animation-duration: 2.85s; }
.curtain__drops b:nth-child(6) { left: 78%; animation-delay: 0.62s; animation-duration: 2.20s; }
.curtain__drops b:nth-child(7) { left: 91%; animation-delay: 0.08s; animation-duration: 2.60s; }

/* ---------- 6б. Река: бегущая строка плывёт по воде ---------- */
.river { position: relative; isolation: isolate; }
.river__flow, .river__wave, .river__shine {
  position: absolute; inset: 0; pointer-events: none;
}
.river__flow {
  background: url('../img/bg/ripples.jpg') center / cover;
  opacity: .3;
}
.river__wave {
  background-repeat: repeat-x;
  background-position: 0 50%;
}
/* дальняя волна — медленнее и бледнее, ближняя быстрее */
.river__wave--back {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 28' preserveAspectRatio='none'%3E%3Cpath d='M0 14c10-8 20-8 30 0s20 8 30 0 20-8 30 0 20 8 30 0v14H0z' fill='%2322D3EE' fill-opacity='.16'/%3E%3C/svg%3E");
  background-size: 360px 100%;
  animation: river-flow 26s linear infinite;
}
.river__wave--front {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 28' preserveAspectRatio='none'%3E%3Cpath d='M0 16c12-9 24-9 36 0s24 9 36 0 24-9 36 0 24 9 36 0v12H0z' fill='%237DD3FC' fill-opacity='.2'/%3E%3C/svg%3E");
  background-size: 240px 100%;
  animation: river-flow 15s linear infinite;
}
.river__shine {
  background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, .14) 50%, transparent 65%);
  background-size: 60% 100%; background-repeat: no-repeat;
  animation: river-shine 11s linear infinite;
}
.river .marquee__track { position: relative; z-index: 1; text-shadow: 0 2px 10px rgba(2, 20, 36, .7); }

@keyframes river-flow { from { background-position-x: 0; } to { background-position-x: -360px; } }
@keyframes river-shine { from { background-position-x: -70%; } to { background-position-x: 170%; } }

/* ---------- 18б. QR-код и пригласительная ---------- */
.share {
  display: grid; grid-template-columns: 1fr .82fr;
  gap: clamp(28px, 4vw, var(--space-6)); align-items: center;
}
.share__side { display: flex; flex-direction: column; align-items: center; gap: var(--space-3); text-align: center; }
.share__code {
  padding: 18px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.share__code canvas { display: block; width: min(300px, 64vw); height: auto; }
.share__link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-family: var(--font-head); font-size: clamp(19px, 2.2vw, 27px); font-weight: 800;
  color: var(--brand-800); word-break: break-all;
}
.share__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); }
.share__status { min-height: 22px; font-size: 14px; font-weight: 600; color: var(--brand-700); }

.share__card { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.share__card canvas {
  display: block; width: 100%; max-width: 400px; height: auto;
  background: var(--ink-900); border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.share__card figcaption { font-size: 13.5px; color: var(--fg-muted); }

.btn--ghost {
  background: transparent; color: var(--brand-800); border-color: var(--border-str);
}
.btn--ghost:hover { background: #fff; color: var(--brand-800); border-color: var(--brand-600); }

/* ---------- 22. Адаптив: от 320 px до широких мониторов ---------- */

/* на широком экране заголовок вопросов идёт рядом со списком */
@media (min-width: 1081px) {
  .faq .section__head { position: sticky; top: calc(var(--header-h) + 24px); }
}

/* широкие мониторы: контейнер шире, hero выше — иначе контент висит узкой колонкой */
@media (min-width: 1600px) {
  :root { --container: 1360px; }
  .header .container { max-width: 1560px; }
  .hero { min-height: min(100vh, 1040px); min-height: min(100svh, 1040px); }
}

/* навигация перестаёт вмещаться целиком */
@media (max-width: 1520px) {
  .nav__link--opt { display: none; }
}

@media (max-width: 1400px) {
  .header__phone span { display: none; }
  .header__logoImg { width: 206px; }
}

@media (max-width: 1240px) {
  .nav__link { padding: 8px 10px; font-size: 13.5px; }
  .header__logoImg { width: 184px; }
  .certs { grid-template-columns: repeat(3, 1fr); }
  .docs { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* планшет и ниже: меню уходит под бургер — в шапке освобождается место,
   логотип снова разворачивается во всю величину */
@media (max-width: 1150px) {
  .header__cta { display: none; }
  .header__logoImg { width: 220px; }
  .burger { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; z-index: 140; flex-direction: column; gap: 2px;
    margin: 0; padding: var(--space-3) 16px var(--space-4);
    background: rgba(4, 17, 31, .97);
    -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    transform: translateY(-120%); opacity: 0; pointer-events: none;
    transition: transform .34s var(--ease), opacity .34s var(--ease);
    max-height: calc(100vh - var(--header-h));
    max-height: calc(100svh - var(--header-h));
    overflow-y: auto; -webkit-overflow-scrolling: touch;
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__link { min-height: 54px; padding: 15px 16px; font-size: 16px; border-radius: 14px; color: #fff; }
  .nav__link--opt { display: inline-flex; }
  .header.is-stuck .nav__link { color: #fff; }
}

@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__item--wide { grid-column: span 2; }
  .hero__inner { grid-template-columns: 1fr; }
  .panel { max-width: 520px; }
  .calc { grid-template-columns: 1fr; }
  .lead { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; }
}

/* планшет в портрете: тройные сетки становятся парными, а не одиночными */
@media (max-width: 1024px) {
  .cards--3 { grid-template-columns: repeat(2, 1fr); }
  .posts { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .share { grid-template-columns: 1fr; }
  .share__card { order: -1; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .section__head--split { flex-direction: column; align-items: flex-start; }
  .partners { grid-template-columns: repeat(2, 1fr); }
  .b2b__cta { flex-direction: column; align-items: flex-start; }
  .b2b__cta .btn { width: 100%; }
  .how { grid-template-columns: 1fr; }
  .orderbar { display: flex; }
  /* на телефоне внизу уже есть панель заказа, а телефон — в шапке:
     плавающие кнопки только перекрывали бы карточки */
  .fab { display: none; }
  /* панель заказа не должна закрывать последние строки подвала */
  .footer { padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
}

@media (max-width: 760px) {
  .section__head--split { gap: var(--space-3); }
  .rail__nav { align-self: flex-start; }
  .composition { margin-top: var(--space-4); }
}

@media (max-width: 640px) {
  :root { --header-h: 78px; }
  .header__inner { gap: 8px; }
  .header__logoImg { width: 174px; }
  .bento { grid-template-columns: 1fr; }
  .bento__item--wide { grid-column: span 1; min-height: 260px; }
  .bento__visual { display: none; }
  .cards--3 { grid-template-columns: 1fr; }
  .product__media--photo { height: 300px; }
  .certs { grid-template-columns: repeat(2, 1fr); }
  .doc { flex-direction: column; }
  .doc__media { width: 96px; }
  .doc__meta div { grid-template-columns: 1fr; gap: 2px; }
  .footer__grid { grid-template-columns: 1fr; }
  .sign { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-bottom: var(--space-4); }
  .hero__cta .btn { width: 100%; }
  .hero__video { margin-top: var(--space-3); }
  .media { aspect-ratio: 4 / 3; }
  .section__title { font-size: clamp(25px, 7.2vw, 34px); }
  .table th, .table td { padding: 12px 14px; }
  .b2b__cta { padding: var(--space-3); }
  .section__next { gap: var(--space-1); }
}

@media (max-width: 480px) {
  .share__actions .btn { width: 100%; }
  .partners { grid-template-columns: 1fr; }
  .segmented__item { flex: 1 1 100%; }
  .product__media { height: 190px; }
  .product__media img { height: 176px; }
  .calc__row b { font-size: 16px; }
  .calc__row--hero b { font-size: 23px; }
  .panel__head img { width: 108px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .sign { grid-template-columns: 1fr; }
  .sign__made { width: 100%; }
}

/* iPhone SE, Galaxy Fold и прочие узкие экраны:
   в шапке остаются логотип, язык и меню — звонок доступен в нижней панели */
@media (max-width: 400px) {
  .header__phone { display: none; }
  .header__actions { gap: 6px; }
  .header__logoImg { width: 152px; }
  .lang__btn { min-width: 36px; padding-inline: 5px; font-size: 12px; }
  .burger { width: 44px; height: 44px; border-radius: 12px; }
  .metric { padding: var(--space-2) 8px; }
  .metric span { font-size: 12px; }
  .orderbar { padding-inline: 12px; }
  .orderbar__text strong { font-size: 14px; }
  .orderbar__text span { font-size: 11.5px; }
  .product__specs li { font-size: 13px; }
  .stepper__btn { width: 46px; height: 46px; }
}

@media (max-width: 340px) {
  .header__logoImg { width: 132px; }
  .btn { padding-inline: 18px; font-size: 14.5px; }
  .btn--lg { padding-inline: 22px; }
}

/* телефон в ландшафте: экран низкий — высокие блоки и нижняя панель мешают */
@media (orientation: landscape) and (max-height: 540px) {
  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + 16px); padding-bottom: var(--space-4);
  }
  .hero__inner { padding-block: var(--space-3); }
  .hero__title { font-size: clamp(26px, 5.2vw, 42px); }
  .section { padding-block: 48px; }
  .media { aspect-ratio: 16 / 9; }
  .orderbar { display: none; }
}

/* ---------- 23. Способ ввода ---------- */

/* тач-экраны: hover не «залипает», нажатие даёт отклик */
@media (hover: none) {
  .btn:hover, .card:hover, .bento__item:hover, .product:hover, .partner:hover,
  .stepcard:hover, .rail__btn:hover, .fab__btn:hover { transform: none; }
  .btn:active { transform: scale(.985); }
  .card:active, .bento__item:active, .product:active, .partner:active { border-color: var(--border-str); }
}

/* палец вместо мыши: цели не меньше 44–48 px */
@media (pointer: coarse) {
  .nav__link { min-height: 48px; }
  .faq__item summary { padding-block: 20px; }
  .footer__link { min-height: 44px; }
  .rail__btn, .social { width: 48px; height: 48px; }
  .lang__btn { min-height: 44px; }
}

/* ---------- 24. Системные настройки ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .marquee__track { animation: none; }
  /* штора не нужна тем, кто отключил анимации */
  .curtain { display: none; }
  .river__wave, .river__shine { animation: none; }
}

/* режим высокой контрастности Windows: фото уходят, остаются рамки и текст */
@media (forced-colors: active) {
  .hero__media, .hero__veil, .glow, .bento__visual, .curtain { display: none; }
  .river__flow, .river__wave, .river__shine { display: none; }
  #tech::before, #calc::before, #how::before, .section--lead::before { display: none; }
  .btn, .card, .bento__item, .product, .partner, .faq__item, .input, .panel, .stepcard, .metric {
    border: 1px solid CanvasText;
  }
  .product__media { background: Canvas; }
  .product__media::after { display: none; }
}

@media print {
  .header, .fab, .orderbar, .btn, .nav, .progress, .section__next, .curtain { display: none !important; }
  body { color: #000; background: #fff; }
  .section, .hero { padding-block: 16px; }
  .hero__media, .glow { display: none; }
}
