/* ===== Цвета и базовые настройки (взяты из PDF-буклета) ===== */
:root {
  --navy: #23335e;
  --navy-dark: #1a2750;
  --blue: #35a0da;
  --blue-dark: #1d6fc0;
  --blue-text: #2786bd; /* голубой потемнее — для текста, чтобы хватало контраста */
  --blue-light: #d6ebf8;
  --bg: #ebf5fc;
  --white: #fff;
  --red: #c8302a;
  --green: #23803b;
  --muted: #3d4a6b;
  --wa: #11803f; /* зелёный WhatsApp, затемнён для контраста с белым текстом */

  --navy-grad: linear-gradient(135deg, #2b3f78 0%, var(--navy) 55%, var(--navy-dark) 100%);
  --blue-grad: linear-gradient(135deg, #5cc0f0 0%, var(--blue) 50%, #1f7fc0 100%);
  --text-grad: linear-gradient(180deg, #5cc0f0 0%, var(--blue) 55%, #1f7fc0 100%);

  --radius: 24px;
  --shadow-sm: 0 1px 2px rgba(35, 51, 94, .06), 0 4px 12px rgba(35, 51, 94, .06);
  --shadow: 0 2px 4px rgba(35, 51, 94, .05), 0 14px 32px -6px rgba(35, 51, 94, .16);
  --shadow-lg: 0 30px 60px -16px rgba(35, 51, 94, .32);
  --ease: cubic-bezier(.2, .7, .2, 1);

  --header-h: 76px;
  --wave-h: clamp(36px, 5.5vw, 84px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.55;
  color: var(--navy);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
p, li { text-wrap: pretty; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.icon { width: 1.2em; height: 1.2em; flex-shrink: 0; }

/* Ссылка «Перейти к содержанию» — видна только при фокусе с клавиатуры */
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px; background: var(--navy); color: var(--white);
  font-weight: 700; text-decoration: none; transition: top .2s;
}
.skip:focus { top: 12px; }

/* ===== Кнопки ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 17px 30px; border-radius: 999px;
  font: 700 16px/1 "Montserrat", sans-serif; text-transform: uppercase; letter-spacing: .02em;
  text-decoration: none; border: 2px solid transparent;
  transition: transform .2s var(--ease), background-color .2s, color .2s, box-shadow .2s;
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--navy-grad); color: var(--white); box-shadow: 0 10px 22px -6px rgba(35, 51, 94, .45); }
.btn--ghost { border-color: var(--navy); color: var(--navy); }
.btn--wa { background: linear-gradient(135deg, #1a9a4e, var(--wa)); color: var(--white); box-shadow: 0 10px 22px -6px rgba(17, 128, 63, .45); }

/* Hover только для устройств с мышкой — на тач-экране он «залипает» */
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn--primary:hover { background: var(--blue-grad); box-shadow: 0 12px 24px -6px rgba(53, 160, 218, .55); }
  .btn--ghost:hover { background: var(--navy); color: var(--white); }
  .btn--wa:hover { box-shadow: 0 12px 24px -6px rgba(17, 128, 63, .6); }
}

/* ===== Шапка ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid rgba(35, 51, 94, .06);
  transition: box-shadow .2s;
}
.header.is-scrolled { box-shadow: 0 4px 20px rgba(35, 51, 94, .1); }
.header__inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }

.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.logo img { width: 130px; height: auto; }
.logo__caption {
  font-size: 11px; font-weight: 700; line-height: 1.25; text-transform: uppercase;
  color: var(--navy); border-left: 2px solid var(--blue); padding-left: 10px;
}
.logo--light .logo__caption { color: var(--white); }

.nav { display: flex; align-items: center; gap: 24px; margin-left: auto; order: 1; }
.nav a {
  position: relative; padding: 6px 0;
  font-weight: 700; font-size: 15px; text-decoration: none; text-transform: uppercase; color: var(--navy);
  white-space: nowrap; transition: color .2s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--blue);
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav a:hover, .nav a[aria-current="true"] { color: var(--blue-dark); }
.nav a:hover::after, .nav a[aria-current="true"]::after { transform: scaleX(1); }
.nav .nav__call, .nav .nav__wa { display: none; }

.header__phone {
  display: inline-flex; align-items: center; gap: 8px; order: 2; flex-shrink: 0;
  font-weight: 800; font-size: 16px; text-decoration: none; white-space: nowrap;
  color: var(--white); background: var(--navy-grad); padding: 12px 20px; border-radius: 999px;
  box-shadow: 0 8px 18px -6px rgba(35, 51, 94, .45);
  transition: box-shadow .2s;
}
.header__phone:hover { box-shadow: 0 10px 22px -6px rgba(53, 160, 218, .6); }

.burger { display: none; }

/* Переключатель языка РУС / ҚАЗ */
.lang {
  display: inline-flex; align-items: center; justify-content: center; order: 2; flex-shrink: 0;
  height: 44px; min-width: 52px; padding: 0 12px; border: 2px solid var(--navy); border-radius: 999px;
  font-weight: 800; font-size: 14px; text-decoration: none; color: var(--navy);
  transition: color .2s, border-color .2s;
}
.lang:hover { color: var(--blue-dark); border-color: var(--blue); }

/* ===== Общие стили секций ===== */
.section { padding: 96px 0; }
.eyebrow {
  margin-bottom: 10px;
  font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .12em; color: var(--blue-dark);
}
.eyebrow--center { text-align: center; }
.title {
  font-weight: 900; text-transform: uppercase; line-height: 1.05; letter-spacing: -.015em;
  font-size: clamp(32px, 4.6vw, 56px); color: var(--navy); text-wrap: balance;
}
.title span { color: var(--blue-text); }
.title--center { text-align: center; max-width: 900px; margin-left: auto; margin-right: auto; }
.title--light { color: var(--white); }
.title--light span { color: var(--blue); }

/* Волна сверху секции — как в буклете. Цвет волны = фон самой секции (--sec-bg) */
.wave-top { position: relative; }
.wave-top::before {
  content: ""; position: absolute; left: 0; right: 0; top: 1px; height: var(--wave-h);
  transform: translateY(-100%); background: var(--sec-bg); pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 80V44C200 0 420 8 700 38s520 36 740-18V80Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 80V44C200 0 420 8 700 38s520 36 740-18V80Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}

/* ===== Первый экран ===== */
.hero {
  position: relative; overflow: hidden;
  padding: 64px 0 72px;
  background:
    radial-gradient(700px 420px at 8% 12%, rgba(53, 160, 218, .16), transparent 70%),
    radial-gradient(900px 500px at 100% 0, rgba(35, 51, 94, .10), transparent 65%),
    linear-gradient(180deg, var(--white) 0%, var(--bg) 100%);
}
.hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }

.hero__title { text-transform: uppercase; line-height: .95; font-weight: 900; }
.hero__title-main {
  display: block; font-size: clamp(56px, 7.6vw, 108px); letter-spacing: -.02em;
  background: linear-gradient(180deg, #2b3f78, var(--navy-dark));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__title-accent {
  position: relative; display: inline-block; margin-top: 6px; padding-bottom: 16px; white-space: nowrap;
  font-size: clamp(34px, 4.6vw, 62px);
  background: var(--text-grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__title-accent::after { /* росчерк-подчёркивание, как в буклете */
  content: ""; position: absolute; left: 0; bottom: 0; width: 80%; height: 7px; border-radius: 8px;
  background: linear-gradient(90deg, var(--blue), transparent);
  transform-origin: left; animation: swoosh .9s .3s var(--ease) both;
}
@keyframes swoosh { from { transform: scaleX(0); } }

.hero__lead { margin-top: 22px; max-width: 470px; font-size: clamp(18px, 1.9vw, 21px); font-weight: 600; line-height: 1.45; color: var(--muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.benefits { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.benefit {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .75); border: 1px solid rgba(255, 255, 255, .9); box-shadow: var(--shadow-sm);
  font-weight: 700; font-size: 14px; line-height: 1.2;
}
.benefit__icon {
  display: grid; place-items: center; flex-shrink: 0;
  width: 34px; height: 34px; border-radius: 50%; color: var(--white); background: var(--navy-grad);
}
.benefit__icon svg { width: 18px; height: 18px; }

.hero__visual { position: relative; isolation: isolate; }
.hero__visual > img {
  width: 100%; aspect-ratio: 16 / 12; object-fit: cover; object-position: 30% 50%;
  border-radius: 200px 40px 40px 40px; box-shadow: var(--shadow-lg);
}
.hero__visual::before { /* сдвинутая подложка — даёт глубину */
  content: ""; position: absolute; z-index: -1; inset: 24px -18px -24px 24px;
  border-radius: 200px 40px 40px 40px; background: var(--blue-grad); opacity: .5;
}
.hero__badge {
  position: absolute; top: 18px; right: -10px;
  font-style: italic; font-weight: 800; font-size: clamp(18px, 2.1vw, 26px); line-height: 1.1; text-align: center;
  color: var(--navy); padding: 14px 22px; border-radius: 18px;
  background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .7); border-bottom: 4px solid var(--blue);
  box-shadow: var(--shadow); rotate: -8deg;
  animation: bob 6s ease-in-out infinite;
}
.hero__raw {
  position: absolute; left: 24px; bottom: 22px;
  padding: 10px 18px; border-radius: 999px; color: var(--white);
  background: rgba(29, 111, 192, .9); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .02em;
  box-shadow: 0 8px 18px -4px rgba(26, 39, 80, .45);
}
@keyframes bob { 50% { translate: 0 -8px; } }

/* ===== Параметры ===== */
/* Сверху маленький отступ — фон продолжает первый экран без разрыва */
.params { --sec-bg: var(--bg); background: var(--bg); padding-top: 24px; padding-bottom: calc(96px + var(--wave-h)); }
.params__inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
/* «Рукава для полива» — градиентом, как в буклете */
.params .title span { background: var(--text-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.stats { margin-top: 32px; }
.stats__head { margin-bottom: 14px; font-weight: 800; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.stats__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat {
  position: relative; overflow: hidden; isolation: isolate;
  display: flex; flex-direction: column; justify-content: flex-end; min-height: 180px;
  padding: 22px 24px; border-radius: var(--radius); color: var(--white);
  background: var(--navy-grad); box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, .14);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.stat--accent { background: linear-gradient(135deg, #2f9ad6 0%, var(--blue-dark) 60%, var(--navy) 130%); }
.stat > svg { /* иконка — полупрозрачный водяной знак */
  position: absolute; z-index: -1; right: -14px; top: -14px;
  width: 120px; height: 120px; color: var(--white); opacity: .13; rotate: -8deg;
}
.stat__label { margin-bottom: 6px; font-weight: 600; font-size: 14px; opacity: .9; }
.stat__value {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 6px;
  font-size: clamp(40px, 4.8vw, 64px); font-weight: 900; line-height: .95; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.stat__value b { font-weight: inherit; }
.stat__value small { font-size: 16px; font-weight: 700; letter-spacing: 0; opacity: .9; }
@media (hover: hover) {
  .stat:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
}

.params__visual img {
  width: 100%; max-height: 680px; object-fit: cover; object-position: 50% 40%;
  border-radius: var(--radius);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%);
          mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%);
}

/* ===== Важно знать до заказа ===== */
.know { --sec-bg: var(--navy); background: var(--navy-grad); color: var(--white); padding: 56px 0 calc(64px + var(--wave-h)); }
.know__title { margin-bottom: 24px; font-weight: 900; font-size: clamp(24px, 3vw, 34px); text-transform: uppercase; text-align: center; }
.know__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.know__item {
  display: flex; align-items: flex-start; gap: 16px; padding: 22px;
  border-radius: 20px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
  font-size: 15px; line-height: 1.45;
}
.know__item strong { display: block; margin-bottom: 4px; font-size: 17px; font-weight: 800; }
.know__item--red { background: var(--red); border-color: transparent; box-shadow: 0 12px 26px -8px rgba(200, 48, 42, .6); }
.know__icon {
  width: 48px; height: 48px; padding: 10px; flex-shrink: 0;
  border-radius: 14px; background: rgba(255, 255, 255, .14);
}

/* ===== Рукав и труба ===== */
.product {
  --sec-bg: var(--white);
  background: radial-gradient(700px 360px at 100% 0, rgba(53, 160, 218, .10), transparent 70%), var(--white);
  padding-bottom: calc(96px + var(--wave-h));
}
.product__intro { max-width: 760px; margin: 20px auto 0; text-align: center; font-size: 18px; color: var(--muted); }
.product__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 56px; }

.card {
  padding: 32px; border-radius: var(--radius);
  background: linear-gradient(160deg, var(--white), var(--bg));
  border: 1px solid var(--blue-light); box-shadow: var(--shadow);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.card img { transition: transform .5s var(--ease); }
@media (hover: hover) {
  .card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
  .card:hover img { transform: scale(1.04); }
}
.card__title { margin-bottom: 24px; font-weight: 800; font-size: 22px; text-transform: uppercase; text-align: center; }

.anatomy__body { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.anatomy__body img { border-radius: 12px; mix-blend-mode: multiply; }
.anatomy__list { display: grid; gap: 20px; }
.anatomy__list li { position: relative; padding-left: 22px; font-weight: 600; line-height: 1.35; }
.anatomy__list li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 10px; height: 10px; border-radius: 50%; background: var(--blue);
  box-shadow: 0 0 0 4px rgba(53, 160, 218, .2);
}

.pipe { display: flex; flex-direction: column; }
.pipe__body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: center; flex: 1; }
.pipe__body img { mix-blend-mode: multiply; }
.pipe__size { font-weight: 600; color: var(--muted); }
.pipe__size strong { display: block; margin-top: 4px; font-size: 30px; font-weight: 900; line-height: 1.15; color: var(--navy); }
.pipe__note { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--blue-light); text-align: center; font-weight: 600; }

.product__row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 28px; }
.stock {
  display: flex; align-items: center; gap: 22px; padding: 28px 32px;
  border-radius: var(--radius); background: linear-gradient(135deg, #e3f2fc, #cfe8f8); box-shadow: var(--shadow-sm);
}
.stock__icon {
  display: grid; place-items: center; flex-shrink: 0;
  width: 68px; height: 68px; border-radius: 20px; color: var(--white);
  background: var(--blue-grad); box-shadow: 0 10px 20px -4px rgba(29, 111, 192, .5);
}
.stock__icon svg { width: 34px; height: 34px; }
.stock p { font-weight: 600; font-size: 17px; line-height: 1.4; }
.stock strong { display: block; font-weight: 900; font-size: 22px; text-transform: uppercase; }

.raw {
  display: flex; align-items: center; gap: 24px; padding: 24px 32px;
  border-radius: var(--radius); background: var(--navy-grad); color: var(--white); box-shadow: var(--shadow);
}
.raw img {
  width: 110px; height: 110px; flex-shrink: 0; border-radius: 50%;
  object-fit: cover; object-position: 45% 45%;
  border: 4px solid rgba(255, 255, 255, .9); box-shadow: 0 0 0 6px rgba(255, 255, 255, .12);
}
.raw__title { margin-bottom: 6px; font-weight: 900; font-size: 24px; text-transform: uppercase; line-height: 1.1; }
.raw p { font-weight: 600; opacity: .9; }

/* ===== Инструкция ===== */
.guide {
  --sec-bg: var(--bg);
  background-color: var(--bg);
  background-image: radial-gradient(rgba(35, 51, 94, .07) 1.2px, transparent 1.2px);
  background-size: 22px 22px;
  padding-bottom: calc(96px + var(--wave-h));
}

/* Быстрые ссылки на шаги */
.steps-nav {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 32px;
}
.steps-nav a {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px 0 6px;
  border-radius: 999px; background: var(--white); box-shadow: var(--shadow-sm);
  font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s;
}
.steps-nav b {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--navy-grad); color: var(--white); font-size: 14px;
}
.steps-nav a:hover { background: var(--navy); color: var(--white); }

/* Таймлайн: вертикальная линия с номерами, линия заполняется при прокрутке (--p от 0 до 1) */
.timeline { --num: 56px; --tl-pad: 84px; position: relative; margin-top: 48px; padding-left: var(--tl-pad); }
.timeline::before, .timeline::after {
  content: ""; position: absolute; z-index: 0; left: calc(var(--num) / 2 - 2px); top: 28px; width: 4px; border-radius: 4px;
}
.timeline::before { bottom: 28px; background: rgba(53, 160, 218, .22); }
.timeline::after { height: calc((100% - 56px) * var(--p, 0)); background: linear-gradient(180deg, var(--blue), var(--navy)); }

.step {
  /* z-index: 1 — карточка и кружок с номером лежат поверх линии таймлайна */
  position: relative; z-index: 1; margin-top: 32px; scroll-margin-top: calc(var(--header-h) + 16px);
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
}
.step:first-child { margin-top: 0; }
.step__head {
  position: relative; padding: 28px 32px 0;
  font-weight: 800; font-size: clamp(19px, 2.1vw, 24px); line-height: 1.25; color: var(--navy); text-wrap: balance;
}
.step__num {
  position: absolute; left: calc(-1 * var(--tl-pad)); top: 22px;
  display: grid; place-items: center; width: var(--num); height: var(--num); border-radius: 50%;
  font-size: 24px; font-weight: 900; color: var(--white); background: var(--navy-grad);
  box-shadow: 0 0 0 8px var(--bg), 0 10px 20px -4px rgba(35, 51, 94, .45);
  transition: background .4s, color .4s, transform .4s var(--ease);
}
/* Пока шаг не появился на экране — кружок «пустой», потом заполняется */
.js .step:not(.is-in) .step__num { background: var(--white); color: var(--navy); transform: scale(.85); }

.step__body { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: start; padding: 24px 32px 32px; }
.step__body--reverse .step__text { order: 2; }
.step__lead { margin-bottom: 20px; font-size: clamp(18px, 1.9vw, 20px); font-weight: 700; line-height: 1.45; }

/* width: 100% — чтобы место под картинку резервировалось до её загрузки (иначе страница «прыгает») */
.step__media { width: 100%; }
.step__media img { width: 100%; border-radius: 16px; }
.step__media--plain img { border-radius: 0; }
.step__media--tall { max-width: 380px; justify-self: center; }
.step__media--inset { position: relative; max-width: 460px; justify-self: center; }
.inset {
  position: absolute; right: -10px; bottom: -14px; width: 36%;
  border-radius: 50%; overflow: hidden; border: 5px solid var(--white); box-shadow: var(--shadow);
}
.inset img { border-radius: 0; }

.checks { display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; line-height: 1.5; }
.checks svg { width: 24px; height: 24px; flex-shrink: 0; margin-top: 1px; color: var(--green); }
.checks strong { font-weight: 800; }

.alert, .tip { margin-top: 22px; padding: 14px 18px; border-radius: 0 14px 14px 0; font-weight: 700; font-size: 15px; line-height: 1.45; }
.alert { background: rgba(200, 48, 42, .07); border-left: 5px solid var(--red); color: var(--red); }
.tip { display: flex; align-items: center; gap: 14px; background: rgba(53, 160, 218, .1); border-left: 5px solid var(--blue); }
.tip svg { width: 30px; height: 30px; flex-shrink: 0; color: var(--blue-dark); }

/* Схема расстояния между отверстиями (проценты подогнаны под картинку img/hose-holes.webp) */
.distance { margin: 0 0 24px; }
.distance__mark {
  position: relative; display: block; width: 26%; margin-left: 34%; padding-bottom: 8px;
  text-align: center; font-weight: 800; font-size: 15px; border-bottom: 2px solid var(--navy);
}
.distance__mark::before, .distance__mark::after {
  content: ""; position: absolute; bottom: -10px; width: 2px; height: 18px; background: var(--navy);
}
.distance__mark::before { left: 0; }
.distance__mark::after { right: 0; }
.distance img { margin-top: 10px; }

/* Выбор диаметра */
.holes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 24px 32px 32px; }
.hole {
  display: flex; flex-direction: column; padding: 16px;
  border-radius: 18px; background: var(--bg); border-top: 5px solid var(--navy);
}
.hole--red { border-top-color: var(--red); }
.hole--blue { border-top-color: var(--blue); }
.hole--green { border-top-color: var(--green); }
.hole figcaption {
  flex: 1; display: flex; flex-direction: column; justify-content: flex-end;
  margin-bottom: 12px; text-align: center; font-size: 14px; font-weight: 600; line-height: 1.3;
}
.hole figcaption strong { font-size: 17px; font-weight: 800; }
.hole--red figcaption strong { color: var(--red); }
.hole--blue figcaption strong { color: var(--blue-dark); }
.hole--green figcaption strong { color: var(--green); }
.hole__img { position: relative; border-radius: 14px; overflow: hidden; }
.hole__img img { width: 100%; aspect-ratio: 3 / 1.4; object-fit: cover; }
.hole__size {
  position: absolute; left: 10px; top: 10px; padding: 6px 14px; border-radius: 999px;
  background: var(--white); color: var(--navy); font-weight: 800; font-size: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
}

/* Финальный шаг с кнопкой звонка */
.step--final .step__body { align-items: center; }
.step__cta-text { margin-bottom: 22px; color: var(--muted); }
.step__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ===== Контакты ===== */
.contacts {
  --sec-bg: var(--navy);
  background:
    radial-gradient(700px 360px at 0 100%, rgba(53, 160, 218, .40), transparent 70%),
    radial-gradient(600px 300px at 100% 0, rgba(53, 160, 218, .22), transparent 70%),
    var(--navy-grad);
  color: var(--white);
}
.contacts__inner { display: grid; grid-template-columns: 1.5fr 1fr; gap: 56px; align-items: center; }
.contacts__lead { margin-top: 18px; max-width: 520px; font-size: 18px; opacity: .9; }

/* Крупные кнопки-телефоны (удобно попадать пальцем) */
.phones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.phone {
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 22px;
  border-radius: 16px; font-weight: 800; font-size: 18px; text-decoration: none; white-space: nowrap;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18);
  transition: background-color .2s, border-color .2s, transform .2s var(--ease);
}
.phone .icon { color: var(--blue); }
.phone--main { background: var(--white); color: var(--navy); border-color: var(--white); }
.phone--main .icon { color: var(--blue-dark); }
.phone--wa { background: var(--wa); border-color: var(--wa); }
.phone--wa .icon { color: var(--white); }
.phone:active { transform: scale(.98); }
@media (hover: hover) {
  .phone:hover { background: rgba(255, 255, 255, .16); border-color: var(--blue); }
  .phone--main:hover { background: var(--bg); }
}

.contacts__list { display: grid; gap: 6px; margin-top: 24px; }
.contacts__list li { display: flex; align-items: center; gap: 14px; font-size: 17px; font-weight: 700; }
.contacts__list .icon {
  width: 44px; height: 44px; padding: 11px; border-radius: 14px; color: var(--white);
  background: rgba(255, 255, 255, .1);
}
.contacts__list a { display: inline-flex; align-items: center; min-height: 48px; text-decoration: none; overflow-wrap: anywhere; transition: color .2s; }
.contacts__list a:hover { color: var(--blue); }

.qr {
  justify-self: center; padding: 22px; border-radius: 24px; text-align: center;
  background: var(--white); color: var(--navy);
  box-shadow: 0 0 0 10px rgba(255, 255, 255, .08), 0 0 0 22px rgba(255, 255, 255, .04), 0 30px 60px -10px rgba(0, 0, 0, .45);
}
.qr img { width: 210px; margin: 0 auto; border-radius: 8px; }
.qr p { margin-top: 12px; font-weight: 800; font-size: 14px; text-transform: uppercase; }

/* ===== Подвал ===== */
.footer { position: relative; background: var(--navy-dark); color: rgba(255, 255, 255, .85); }
.footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), transparent 70%);
}
.footer__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding-top: 28px; padding-bottom: 28px;
}
.footer__slogan { font-weight: 800; font-size: 15px; text-transform: uppercase; color: var(--white); }
.footer__copy { font-size: 14px; }

/* ===== Липкая кнопка звонка (по умолчанию скрыта, включается на ≤960px) ===== */
.callbar { display: none; }

/* ===== Появление блоков при прокрутке ===== */
/* Используем свойство translate, а для hover — transform, чтобы они не мешали друг другу */
.js .reveal {
  opacity: 0; translate: 0 28px;
  transition: opacity .6s var(--ease) var(--d, 0s), translate .6s var(--ease) var(--d, 0s);
}
.js .reveal.is-in { opacity: 1; translate: 0 0; }

/* ===== Фокус с клавиатуры ===== */
a:focus-visible, button:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* ===== Адаптив: ноутбук — в шапке не хватает места на номер, оставляем иконку ===== */
@media (max-width: 1240px) {
  .header__phone { width: 48px; height: 48px; padding: 0; justify-content: center; border-radius: 14px; }
  .header__phone-text { display: none; }
  .lang { height: 48px; border-radius: 14px; }
}

/* ===== Адаптив: небольшой ноутбук ===== */
@media (max-width: 1080px) {
  .header__inner { gap: 20px; }
  .nav { gap: 18px; }
  .phones { flex-direction: column; align-items: flex-start; }
}

/* ===== Адаптив: планшет ===== */
@media (max-width: 960px) {
  :root { --header-h: 68px; }
  .section { padding: 72px 0; }
  .header__inner { gap: 10px; }
  .header__phone { margin-left: auto; order: 0; }
  /* Переключатель языка прижимаем вправо, телефон встаёт сразу за ним */
  .lang { margin-left: auto; order: 0; }
  .lang ~ .header__phone { margin-left: 0; }
  .burger { flex-shrink: 0; }

  /* Мобильное меню */
  .burger {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    width: 48px; height: 48px; padding: 0 11px;
    background: var(--navy); border: 0; border-radius: 14px; cursor: pointer;
  }
  .burger span { display: block; height: 3px; background: var(--white); border-radius: 2px; transition: transform .25s, opacity .25s; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

  .nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 8px 20px 20px;
    background: var(--white); box-shadow: 0 16px 30px rgba(35, 51, 94, .15);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility .2s;
  }
  .nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .nav a { padding: 18px 0; font-size: 16px; border-bottom: 1px solid var(--blue-light); }
  .nav a::after { display: none; }
  .nav .nav__call, .nav .nav__wa {
    display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px;
    padding: 16px; border: 0; border-radius: 999px; background: var(--navy-grad); color: var(--white);
  }
  .nav .nav__wa { margin-top: 10px; background: var(--wa); }

  /* Первый экран: фото сверху на всю ширину, текст под ним */
  .hero { padding: 0 0 48px; }
  .hero__inner { grid-template-columns: 1fr; gap: 28px; }
  .hero__visual { order: -1; margin: 0 -20px; }
  .hero__visual::before { display: none; }
  .hero__visual > img { aspect-ratio: 4 / 3; border-radius: 0 0 48px 48px; }
  .hero__text { text-align: center; }
  .hero__lead { margin-left: auto; margin-right: auto; }
  .hero__actions, .benefits { justify-content: center; }
  .hero__badge { right: 16px; }

  .params__inner, .contacts__inner { grid-template-columns: 1fr; }
  .params__visual { max-width: 560px; margin: 0 auto; }

  .know__list { grid-template-columns: 1fr; }
  .product__grid, .product__row { grid-template-columns: 1fr; }

  .step__body { grid-template-columns: 1fr; gap: 24px; }
  .step__body--reverse .step__text { order: 0; }
  .step--final .step__text { order: 2; }
  .step__media--plain { max-width: 480px; justify-self: center; }
  .holes { grid-template-columns: 1fr; max-width: 560px; }

  /* QR-код на телефоне бесполезен — его нечем сканировать */
  .qr { display: none; }

  /* Липкая кнопка звонка снизу */
  body { padding-bottom: 84px; }
  .callbar {
    display: flex; gap: 10px; position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    box-shadow: 0 -6px 20px rgba(35, 51, 94, .15);
    transform: translateY(110%); transition: transform .3s var(--ease);
  }
  .callbar.is-visible { transform: none; }
  .callbar__call, .callbar__wa {
    flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 54px; border-radius: 999px; text-decoration: none; font-weight: 800;
    font-size: 16px; text-transform: uppercase; letter-spacing: .02em; color: var(--white);
  }
  .callbar__call { background: var(--navy-grad); box-shadow: 0 10px 22px -8px rgba(35, 51, 94, .6); }
  .callbar__wa { background: var(--wa); box-shadow: 0 10px 22px -8px rgba(17, 128, 63, .6); }
  /* Казахская версия: «Қоңырау шалу» длиннее «Позвонить» — держим в одну строку */
  :lang(kk) .callbar__call, :lang(kk) .callbar__wa {
    flex: 1 1 auto; padding: 0 12px; white-space: nowrap; letter-spacing: 0; font-size: clamp(13px, 3.6vw, 16px);
  }
}

/* ===== Адаптив: телефон ===== */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .logo img { width: 110px; }
  .logo__caption { font-size: 10px; padding-left: 8px; }
  .section { padding: 56px 0; }
  .title { font-size: clamp(26px, 8vw, 32px); }

  .hero__badge { font-size: 15px; padding: 10px 14px; top: 12px; }
  .hero__raw { display: none; }
  .btn { width: 100%; }
  .benefits { margin-top: 24px; gap: 8px; }
  .benefit { padding: 6px 12px 6px 6px; font-size: 13px; gap: 8px; }
  .benefit__icon { width: 28px; height: 28px; }
  .benefit__icon svg { width: 15px; height: 15px; }

  .stats__grid { gap: 10px; }
  .stat { min-height: 140px; padding: 16px; }
  .stat__value { font-size: clamp(32px, 10vw, 44px); }
  .stat__value small { font-size: 13px; }
  .stat__label { font-size: 13px; }
  .params__visual img { max-height: 440px; }

  .know { padding-top: 40px; }
  .know__item { padding: 18px; }

  .card { padding: 22px; }
  .anatomy__body, .pipe__body { grid-template-columns: 1fr; }
  .anatomy__body img { max-width: 220px; margin: 0 auto; }
  .pipe__size { text-align: center; }
  .stock, .raw { padding: 22px; gap: 16px; }
  .stock__icon { width: 56px; height: 56px; }
  .stock strong { font-size: 19px; }
  .raw img { width: 84px; height: 84px; }
  .raw__title { font-size: 20px; }

  /* Быстрые ссылки на шаги — горизонтальная лента */
  .steps-nav {
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 24px -20px 0; padding: 4px 20px 12px;
    scroll-snap-type: x proximity; scrollbar-width: none;
  }
  .steps-nav::-webkit-scrollbar { display: none; }
  .steps-nav a { flex: none; scroll-snap-align: start; }

  .timeline { --num: 36px; --tl-pad: 46px; margin-top: 28px; }
  .step__head { padding: 20px 18px 0; }
  .step__num { top: 16px; font-size: 16px; box-shadow: 0 0 0 5px var(--bg), 0 6px 12px -3px rgba(35, 51, 94, .4); }
  .step__body { padding: 18px 18px 22px; }
  .holes { padding: 18px 18px 22px; gap: 14px; }
  .inset { right: 4px; bottom: -10px; width: 40%; }
  .distance__mark { width: 40%; margin-left: 30%; }

  .phones { align-items: stretch; }
  .phone { justify-content: center; }
  .contacts__list li { font-size: 16px; }

  .footer__inner { flex-direction: column; align-items: flex-start; }
}

/* ===== Адаптив: очень узкие телефоны ===== */
@media (max-width: 400px) {
  .logo__caption { display: none; }
  .stock, .raw { flex-direction: column; align-items: flex-start; }
  .stat__value small { flex-basis: 100%; }
}

/* Уважение к настройке «меньше анимации» */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; translate: none; }
}
