/* Токены и база макета LOMA / Академия Dahua (rebrand + Dev Mode). */

/* Roboto: локальные woff2 (кириллица + латиница). Веса 400–700 через variable font. */
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/roboto-400-cyr.woff2") format("woff2-variations"),
       url("../fonts/roboto-400-cyr.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/roboto-400-lat.woff2") format("woff2-variations"),
       url("../fonts/roboto-400-lat.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Явные лица 400 / 500 / 700 (те же файлы) — для браузеров без VF-range */
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/roboto-400-cyr.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/roboto-400-lat.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/roboto-500-cyr.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/roboto-500-lat.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/roboto-700-cyr.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Roboto";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/roboto-700-lat.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* LOMA/rebrand colors */
  --blue-900: #0d2b54;
  --blue-700: #195699;
  --blue-500: #216bbd;
  --cyan-600: #3899c2;
  --cyan-500: #5dc4e3;
  --cyan-200: #bfe6f3;
  --cyan-100: #d6e8fa;
  --cyan-50: #eef7fc;
  --neutral-900: #171717;
  --neutral-700: #525c69;
  --neutral-500: #99a0ab;
  --neutral-300: #d5d9de;
  --neutral-200: #e6ecf2;
  --neutral-100: #f4f7fa;
  --neutral-50: #f7f7f7;
  --white: #ffffff;
  --error-500: #e5484d;
  --partner-nikomax: #f08019;
  --gradient-hero: linear-gradient(90deg, #d6e8fa 0%, #f7fafe 100%);
  --gradient-accent: linear-gradient(90deg, #5dc4e3 0%, #195699 100%);

  --font: "Roboto", Arial, sans-serif;
  /* ≥1440: поля 40; на 1440 контент = 1360; на 1920 секции тянутся (fluid).
     768–1439: поля 32, контент 704. <768: поля 16–20. */
  --container: 1360px;
  --pad: 40px;
  --pad-menu-left: 81px;
  --pad-menu-right: 41px;
  --radius: 24px;
  --ease: 150ms ease-out;
  --ease-menu: 200ms ease-out;
  --header-h: 128px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--neutral-900);
  background: var(--white);
}

img { max-width: 100%; display: block; height: auto; }

body, button, input, textarea, select {
  font-family: "Roboto", Arial, sans-serif;
}

button, input, select, textarea { font: inherit; color: inherit; }

/* Класс не должен перебивать атрибут hidden, иначе скрытые окна видны сразу */
[hidden] { display: none !important; }

a { color: var(--blue-700); }

h1, h2, h3, h4, h5, p { margin: 0; }

/* Текстовые стили макета (Desktop) */
h1, .text-h1 {
  font-size: 80px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h2, .text-h2 {
  font-size: 56px;
  font-weight: 500;
  line-height: 1.15;
  color: var(--blue-900);
  letter-spacing: -0.015em;
}

h3, .text-h3 {
  font-size: 40px;
  font-weight: 500;
  line-height: 1.2;
}

h4, .text-h4 {
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
}

h5, .text-h5 {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.25;
}

.text-title { font-size: 20px; font-weight: 500; line-height: 1.3; }
.text-body-l { font-size: 20px; font-weight: 400; line-height: 1.4; }
.text-body { font-size: 16px; font-weight: 400; line-height: 1.4; }
.text-body-s { font-size: 14px; font-weight: 400; line-height: 1.4; }
.text-caption { font-size: 12px; font-weight: 400; line-height: 1.4; }
.text-label { font-size: 14px; font-weight: 500; line-height: 1.2; }
.text-chip { font-size: 13px; font-weight: 500; line-height: 1.2; }

ul, ol { margin: 0; padding: 0; list-style: none; }

/* Fluid-контейнер: тянется между брейкпоинтами, поля через --pad */
.container {
  width: 100%;
  max-width: none;
  margin-inline: auto;
  padding-inline: var(--pad);
  box-sizing: border-box;
}

/* Блоки страницы независимы: у каждого свой фон и вертикальный ритм */
.page-block { position: relative; }
.error-page { min-height: 55vh; padding-top: 100px; padding-bottom: 100px; }
.error-page h1 { margin-bottom: 24px; color: var(--blue-900); }
.error-page p { max-width: 600px; margin-bottom: 32px; font-size: 20px; color: var(--neutral-700); }
.error-page .btn { justify-content: center; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-sizing: border-box;
  height: 46px;
  min-height: 46px;
  padding: 6px 9px 6px 28px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background: transparent;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease-out, color 150ms ease-out, border-color 150ms ease-out;
}

.btn:focus-visible {
  outline: 2px solid #195699;
  outline-offset: 3px;
}

.btn:disabled { opacity: .6; cursor: wait; }
.btn:active { transition-duration: 80ms; }

.btn--primary {
  background: #5DC4E3;
  color: #fff;
}

.btn--primary:hover { background: #4AB2D6; }
.btn--primary:hover .btn__arrow { background: #195699; color: #fff; }
.btn--primary:active { background: #3899C2; }
.btn--primary:active .btn__arrow { background: #195699; color: #fff; }

.btn--white {
  background: #fff;
  color: #195699;
  border-color: #fff;
}

.btn--white:hover { background: var(--cyan-50); border-color: var(--cyan-50); }
.btn--white:hover .btn__arrow { background: #5DC4E3; }
.btn--white:active { background: #E0EDFA; border-color: #E0EDFA; }

.btn--outline {
  justify-content: center;
  height: 52px;
  min-height: 52px;
  padding: 16.5px 28px;
  background: #fff;
  color: #195699;
  border-color: #195699;
}

.btn--outline:hover { background: #195699; color: #fff; border-color: #195699; }
.btn--outline:active { background: #0D2B54; color: #fff; border-color: #0D2B54; }

.btn__arrow {
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  margin: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #5DC4E3;
  line-height: 0;
  transition: background-color 200ms ease-out, color 200ms ease-out, transform 200ms ease-out;
}

.btn:hover .btn__arrow { transform: translateX(8px) rotate(45deg); }

.btn__arrow svg {
  display: block;
  width: 18px;
  height: 18px;
}

.btn--white .btn__arrow { background: #195699; color: #fff; }

.eyebrow {
  color: var(--cyan-600);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ——— Шапка (Header + Menu, Figma 3176:4446) ——— */
.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;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
}

.header__top-wrap {
  background: var(--white);
}

.header__top {
  display: flex;
  align-items: center;
  gap: 27px;
  min-height: 128px;
  /* Как Header / bar в Figma: padding 40 на всю ширину кадра */
  padding: 40px;
}

.logo {
  display: inline-flex;
  flex-shrink: 0;
  text-decoration: none;
  color: #161616;
}

.logo__mark {
  position: relative;
  display: block;
  width: 230px;
  height: 49px;
}

.logo__img {
  width: 230px;
  height: 49px;
  display: block;
}

.logo__dot {
  position: absolute;
  left: 90.6px;
  top: 24.9px;
  width: 4px;
  height: 4px;
  animation: logo-dot 1.6s ease-in-out infinite;
}

@keyframes logo-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.15; }
}

.header-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding: 10px 20px;
  border-radius: 40px;
  background: #f8f8f8;
  color: #161616;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
  /* Default: лёгкий inset; Hover/Pressed — по макету Header/Button */
  box-shadow: inset 1px 4px 9px rgba(26, 24, 24, 0.02);
  transition: background 150ms ease-out, box-shadow 150ms ease-out;
}

/* Hover: фон тот же, глубже inset (node 3128:1294) */
.header-chip:hover {
  background: #f8f8f8;
  box-shadow: inset 1px 4px 15.1px rgba(26, 24, 24, 0.29);
}

/* Pressed: фон на тон темнее #e0e8f0 (node 3131:1618), 80 мс */
.header-chip:active {
  background: #e0e8f0;
  box-shadow: inset 1px 4px 15.1px rgba(26, 24, 24, 0.29);
  transition: background 80ms ease-out, box-shadow 80ms ease-out;
}

.header-chip img { display: block; width: 24px; height: 24px; }

.header-search {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  gap: 10px;
  min-width: 220px;
  position: relative;
}

/* form search.title — не ломает flex у .header-search */
.header-search__form {
  display: contents;
}

.header-search__icon {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 100px;
  background: #f8f8f8;
  box-shadow: 0 8px 16px rgba(157, 157, 157, 0.1);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--ease);
}

.header-search__icon:hover { background: #efefef; }
.header-search__icon img { width: 18px; height: 18px; }

.header-search__field {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.header-search__field input {
  width: 100%;
  height: 44px;
  box-sizing: border-box;
  border: 1px solid transparent;
  border-radius: 100px;
  background: #f8f8f8;
  padding: 10px 24px;
  font-size: 16px;
  font-weight: 500;
  color: #161616;
  box-shadow: inset 0 8px 16px rgba(0, 0, 0, 0.02);
  outline: none;
  caret-color: #195699;
  transition: background-color 150ms ease-out, color 150ms ease-out, border-color 150ms ease-out, box-shadow 150ms ease-out;
}

.header-search__field input::placeholder { color: #999; }
.header-search__field input::-webkit-search-cancel-button { display: none; }
.header-search__field input:hover { border-color: #5DC4E3; }
.header-search__field input:focus {
  background: #fff;
  border: 1.5px solid #195699;
  box-shadow: 0 0 0 3px rgba(93, 196, 227, 0.35);
}
.header-search.has-query .header-search__field input,
.header-search.is-loading .header-search__field input { padding-right: 52px; }
.header-search__close {
  position: absolute;
  right: 103px;
  top: 50%;
  z-index: 2;
  display: none;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--blue-900);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.header-search.has-query .header-search__close { display: grid; }
.header-search.is-loading .header-search__close { display: none; }
.header-search__spinner {
  position: absolute;
  right: 17px;
  top: 50%;
  display: none;
  width: 18px;
  height: 18px;
  margin-top: -9px;
  border: 2px solid rgba(25, 86, 153, 0.2);
  border-top-color: #195699;
  border-radius: 50%;
  animation: search-spin 800ms linear infinite;
}
.header-search.is-loading .header-search__spinner { display: block; }
@keyframes search-spin { to { transform: rotate(360deg); } }
.search-hit__placeholder { display: inline-flex; flex: 0 0 44px; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 12px; background: #F0F7FC; }
.search-hit__placeholder svg { stroke: #195699; stroke-width: 1.46667; stroke-linecap: round; stroke-linejoin: round; }
.search-hit__content { display: grid; gap: 2px; min-width: 0; }

.header-search__btn,
.header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  min-height: 44px;
  padding: 10px 20px;
  border: 0;
  border-radius: 30px;
  background: var(--cyan-500);
  color: #f8f8f8;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(159, 159, 159, 0.25);
  transition: background 150ms ease-out, box-shadow 150ms ease-out;
}

/* Поиск: Hover #007ACC (node 3128:1311), Pressed #195699 (node 3131:1633) */
.header-search__btn:hover {
  background: #007acc;
  box-shadow: 0 12px 12px rgba(159, 159, 159, 0.25);
}

.header-search__btn:active {
  background: #195699;
  box-shadow: 0 12px 12px rgba(159, 159, 159, 0.25);
  transition: background 80ms ease-out, box-shadow 80ms ease-out;
}

/* «Запрос счета» — те же Hover/Pressed, что у .header-search__btn */
.header-btn:hover {
  background: #007acc;
  box-shadow: 0 12px 12px rgba(159, 159, 159, 0.25);
}

.header-btn:active {
  background: #195699;
  box-shadow: 0 12px 12px rgba(159, 159, 159, 0.25);
  transition: background 80ms ease-out, box-shadow 80ms ease-out;
}

.burger {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  padding: 8px;
  cursor: pointer;
  flex-shrink: 0;
}

.burger span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: #161616;
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Меню поверх hero */
.header__menu-wrap {
  position: relative;
  z-index: 5;
  /* Меню/utils в верхнем вырезе hero: ~32px сверху и снизу от кнопок */
  margin-bottom: -88px;
  padding-top: 32px;
  pointer-events: none;
}

.header__menu {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  /* Menu row: pl 81 / pr 41 на кадре 1920 */
  padding: 0 var(--pad-menu-right) 0 var(--pad-menu-left);
  pointer-events: none;
}

/* Шапка по макету 1920: на всю ширину, свои поля (не контейнер 1360) */
.header__top.container,
.header__menu.container {
  max-width: none;
  padding-inline: 0;
}

.header__top.container {
  padding: 40px;
}

.header__menu.container {
  padding: 0 var(--pad-menu-right) 0 var(--pad-menu-left);
}

.header__menu > * { pointer-events: auto; }

.menu-bar {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  box-sizing: border-box;
  width: 999px;
  max-width: calc(100% - 270px);
  height: 60px;
  padding: 8px 14px;
  border-radius: 30px;
  background: #f7f7f7;
}

.menu-bar__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  box-sizing: border-box;
  border: 0;
  background: transparent;
  padding: 10px;
  border-radius: 30px;
  color: #171717;
  font-size: 14px;
  font-weight: 700;
  line-height: 19.6px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 150ms ease-out, color 150ms ease-out;
}

.menu-bar__link:hover,
.nav__item.is-open > .menu-bar__link {
  background: var(--cyan-500);
  color: var(--white);
}

.menu-bar__link:active {
  background: var(--cyan-600);
  color: var(--white);
  transition-duration: 80ms;
}

.header__utils {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  flex-shrink: 0;
}

.header-call {
  width: 58px;
  height: 56px;
  border-radius: 100px;
  background: #f8f8f8;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.1), inset 0 4px 10px rgba(0, 0, 0, 0.13);
  transition: background 150ms ease-out, box-shadow 150ms ease-out;
}

/* Hover: голубая подсветка rgba(93,196,227,0.25) (node 3132:1582) */
.header-call:hover {
  background: rgba(93, 196, 227, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.09), inset -1px 4px 13px rgba(0, 0, 0, 0.3);
}

/* Pressed: темнее rgba(56,153,194,0.35) (node 3132:1590), 80 мс */
.header-call:active {
  background: rgba(56, 153, 194, 0.35);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.09), inset -1px 4px 13px rgba(0, 0, 0, 0.3);
  transition: background 80ms ease-out, box-shadow 80ms ease-out;
}

.header-call img { width: 30px; height: 30px; }

/* Корзина: 165×56 по макету; шире при сумме > 0 — min-width, без фиксированной width */
/* Обёртка sale.basket.basket.line — не ломает flex order у .header-cart */
.header-cart-wrap {
  display: contents;
}

.header-cart {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
  box-sizing: border-box;
  min-width: 165px;
  width: max-content;
  max-width: 100%;
  height: 56px;
  padding: 10px 20px;
  border-radius: 30px;
  background: #f8f8f8;
  color: #000;
  text-decoration: none;
  flex-shrink: 0;
  box-shadow: 0 4px 2px rgba(0, 0, 0, 0.07), inset 0 4px 4px rgba(0, 0, 0, 0.11);
  backdrop-filter: blur(2px);
  transition: background 150ms ease-out, box-shadow 150ms ease-out;
}

/* Hover: голубая подсветка (node 3132:1614) */
.header-cart:hover {
  background: rgba(93, 196, 227, 0.25);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.07), inset 0 4px 4px rgba(0, 0, 0, 0.11);
}

/* Pressed: темнее (node 3132:1630), 80 мс */
.header-cart:active {
  background: rgba(56, 153, 194, 0.35);
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.07), inset 0 4px 4px rgba(0, 0, 0, 0.11);
  transition: background 80ms ease-out, box-shadow 80ms ease-out;
}

.header-cart__icon {
  position: relative;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
}

.header-cart__icon img { width: 30px; height: 30px; display: block; }

.header-cart__count {
  position: absolute;
  top: -2px;
  right: -4px;
  box-sizing: border-box;
  min-width: 11px;
  height: 12px;
  padding: 0 3px;
  border-radius: 10px;
  background: var(--cyan-500);
  color: var(--white);
  font-size: 12px;
  line-height: 12px;
  text-align: center;
  white-space: nowrap;
}

.header-cart__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
  flex-shrink: 0;
}

.header-cart__text strong {
  font-size: 15px;
  font-weight: 500;
  line-height: 16.5px;
  white-space: nowrap;
}

.header-cart__sum {
  font-size: 16px;
  font-weight: 400;
  line-height: 17.6px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Компактная корзина в верхней панели — только ≤768 */
.header-cart--compact {
  display: none;
}

.menu-bar__link.is-current { background: var(--cyan-600); color: var(--white); }

.nav__item { position: relative; }

.nav__drop {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  box-sizing: border-box;
  display: grid;
  gap: 6px;
  width: 496px;
  max-width: calc(100vw - 32px);
  padding: 8px;
  background: var(--white);
  border-radius: 30px;
  box-shadow: 0 16px 40px rgba(13, 43, 84, 0.12);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  z-index: 5;
  transition: opacity var(--ease-menu), transform var(--ease-menu), visibility 0s linear 200ms;
}

.nav__item.is-open .nav__drop,
.nav__item:hover .nav__drop {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
}

.nav__drop a {
  display: flex;
  align-items: center;
  width: 100%;
  height: 40px;
  min-height: 40px;
  padding: 10px 20px;
  border-radius: 40px;
  background: #F7F7F7;
  text-decoration: none;
  color: #161616;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 12px;
  line-height: 19.6px;
  transition: background-color 150ms ease-out, color 150ms ease-out;
}

.nav__drop a:hover { background: var(--cyan-500); color: var(--white); }
.nav__drop a:active {
  background: var(--cyan-600);
  color: var(--white);
  transition-duration: 80ms;
}
.nav__drop a.is-current { background: var(--cyan-600); color: var(--white); }

/* Выпадающие подсказки поиска */
.title-search-result,
div.title-search-result {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  display: block;
  box-sizing: border-box;
  width: 100%;
  background: var(--white);
  border: 0;
  border-radius: 28px;
  box-shadow: 0 16px 40px rgba(13, 43, 84, 0.14);
  padding: 12px 8px 8px;
  z-index: 1100;
  max-height: min(70vh, 420px);
  overflow: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 200ms ease-out, transform 200ms ease-out, visibility 0s linear 200ms;
}

.title-search-result.title-search-result-open,
div.title-search-result.title-search-result-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
}

.search-title-result__cat + .search-title-result__cat {
  margin-top: 6px;
  padding-top: 6px;
}

.search-title-result__title {
  margin: 0 0 6px;
  padding: 4px 12px 2px;
  color: #99A1AB;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
}

.search-hit {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  padding: 8px 10px;
  border-radius: 16px;
  text-decoration: none;
  color: #171717;
  transition: background-color 150ms ease-out, color 150ms ease-out;
}

.search-hit:hover,
.search-hit.is-active { background: #EFF7FC; }
.search-hit:active { background: rgba(93, 196, 227, 0.22); transition-duration: 80ms; }
.search-hit img { width: 44px; height: 44px; object-fit: cover; border-radius: 12px; background: #F0F7FC; }
.search-hit__name { font-size: 14px; line-height: 1.3; }
.search-hit__section { color: #99A1AB; font-size: 12px; line-height: 1.4; }
.search-hit small { color: var(--neutral-500); }
.search-hit b { color: inherit; font-weight: 700; }
.search-hit .search-hit__price { color: #171717; font-size: 14px; font-weight: 500; line-height: 1.2; white-space: nowrap; }

.search-categories { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 12px 6px; }
.search-category {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 14px;
  border: 1px solid #CCD6E0;
  border-radius: 100px;
  color: #171717;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 150ms ease-out, color 150ms ease-out;
}
.search-category:hover,
.search-category.is-active { background: #EFF7FC; }
.search-category:active { background: rgba(93, 196, 227, 0.22); }

.title-search-result:has(.search-suggestions) { padding-top: 24px; }
.search-suggestions,
.search-suggestions__section { display: grid; gap: 10px; }
.search-suggestions__title { color: #738091; font-size: 12px; font-weight: 500; line-height: 14px; letter-spacing: 0.04em; text-transform: uppercase; }
.search-suggestions .search-categories { padding: 0; }

.search-title-result__all {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  margin-top: 6px;
  padding: 12px;
  border-radius: 16px;
  background: #F0F7FC;
  color: #195699;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 150ms ease-out, color 150ms ease-out;
}
.search-title-result__all::after { content: "→"; flex: 0 0 18px; font-size: 18px; text-align: center; }
.search-title-result__all:hover,
.search-title-result__all.is-active { background: #E0E8F0; }
.search-title-result__all:active { background: rgba(93, 196, 227, 0.22); }

.search-skeleton { display: grid; grid-template-columns: 44px 1fr 56px; align-items: center; gap: 12px; min-height: 60px; padding: 8px 10px; }
.search-skeleton__thumb { width: 44px; height: 44px; border-radius: 12px; background: #EBF0F5; }
.search-skeleton__text { display: grid; gap: 8px; }
.search-skeleton__text::before,
.search-skeleton__text::after,
.search-skeleton__price { content: ""; display: block; background: #EBF0F5; }
.search-skeleton__text::before { width: 76%; height: 12px; border-radius: 6px; }
.search-skeleton__text::after { width: 42%; height: 10px; border-radius: 5px; }
.search-skeleton__price { width: 56px; height: 12px; border-radius: 6px; }

.title-search-result:has(.search-empty) { padding-top: 24px; }
.search-empty { text-align: center; }
.search-empty__icon {
  display: block;
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40' fill='none'%3E%3Cpath d='M29.9993 18.3337C29.9993 24.777 24.776 30.0003 18.3327 30.0003C11.8894 30.0003 6.66602 24.777 6.66602 18.3337C6.66602 11.8903 11.8894 6.66699 18.3327 6.66699C24.776 6.66699 29.9993 11.8903 29.9993 18.3337Z' stroke='%235DC4E3' stroke-width='2.66667' stroke-linecap='round'/%3E%3Cpath d='M33.3327 33.3337L26.666 26.667M14.166 14.167L18.3327 18.3337M18.3327 18.3337L22.4993 22.5003M18.3327 18.3337L22.4993 14.167M18.3327 18.3337L14.166 22.5003' stroke='%235DC4E3' stroke-width='2.66667' stroke-linecap='round'/%3E%3C/svg%3E") center / 40px no-repeat;
}
.search-empty__title { color: #171717; font-size: 16px; font-weight: 500; line-height: 1.2; }
.search-empty__text { margin-top: 12px; color: #737D8A; font-size: 14px; line-height: 1.4; }

.mobile-menu {
  position: fixed;
  z-index: 39;
  left: 0;
  right: 0;
  top: 60px;
  bottom: 0;
  overflow: auto;
  padding: 12px 20px 28px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
}
.mobile-menu__nav { display: flex; flex-direction: column; gap: 4px; }

.mobile-menu__link,
.acc__btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 28px;
  padding: 4px 42px 5px 20px;
  border: 0;
  border-radius: 16px;
  background: none;
  color: #171717;
  font-size: 16px;
  font-weight: 500;
  line-height: 19px;
  text-align: left;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 150ms ease-out, color 150ms ease-out;
}

.mobile-menu__link::after,
.acc__btn::after {
  position: absolute;
  right: 20px;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: #99A0AB;
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}
.mobile-menu__link::after {
  content: "";
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 18 18' fill='none'%3E%3Cpath d='M6.75 4.5L11.25 9L6.75 13.5' stroke='%2399A0AB' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.acc__btn::after {
  content: "";
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%2399A0AB' stroke-width='1.66667' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 150ms ease-out;
}
.acc.is-open .acc__btn::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7.5L10 12.5L15 7.5' stroke='%23195699' stroke-width='1.66667' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  transform: rotate(180deg);
}
.acc.is-open .acc__btn { background: #EEF7FC; color: #195699; }

.acc__panel { padding: 4px 0 8px 16px; }
.acc__panel:not([hidden]) { display: flex; flex-direction: column; gap: 2px; }
.acc__panel > [hidden] { display: none; }
.acc__panel a {
  display: flex;
  align-items: center;
  min-height: 37px;
  padding: 10px 16px;
  border-radius: 14px;
  background: #F7F7F7;
  color: #171717;
  font-size: 14px;
  font-weight: 500;
  line-height: 17px;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 150ms ease-out, color 150ms ease-out;
}
.acc__panel a.is-current { background: var(--cyan-50); color: var(--blue-700); }
.acc__more,
.acc__collapse {
  align-self: flex-start;
  min-height: 25px;
  padding: 8px 0 0 16px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #195699;
  font-size: 14px;
  font-weight: 500;
  line-height: 17px;
  cursor: pointer;
}

.mobile-menu__contacts {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid #E5ECF2;
}
.mobile-menu__phone-icon {
  display: inline-flex;
  flex: 0 0 40px;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #F7F7F7;
}
.mobile-menu__phone-icon svg { width: 22px; height: 22px; stroke: #5DC4E3; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.mobile-menu__contact-text { display: flex; flex-direction: column; gap: 2px; }
.mobile-menu__phone { color: #171717; font-size: 20px; font-weight: 500; line-height: 26px; text-decoration: none; }
.mobile-menu__contact-text > span { color: #99A0AB; font-size: 12px; line-height: 17px; }

.mobile-menu__actions { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px; margin-top: 4px; padding-top: 8px; }
.mobile-menu__actions > .mobile-menu__pill:nth-child(1) { flex-basis: 149px; width: 149px; }
.mobile-menu__actions > .mobile-menu__pill:nth-child(2) { flex-basis: 150px; width: 150px; }
.mobile-menu__actions > .mobile-menu__pill:nth-child(3) { flex-basis: 110px; width: 110px; }
.mobile-menu__pill,
.header-cart--mobile {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  min-width: 0;
  height: 36px;
  min-height: 36px;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: #F7F7F7;
  box-shadow: none;
  color: #171717;
  font-size: 13px;
  font-weight: 500;
  line-height: 16px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 150ms ease-out, color 150ms ease-out;
}
.mobile-menu__pill--primary,
.header-cart--mobile { background: var(--cyan-500); color: #fff; }
.mobile-menu__actions > .header-cart--mobile { min-width: 110px; }
.header-cart--mobile .header-cart__icon,
.header-cart--mobile .header-cart__count { display: none; }
.header-cart--mobile .header-cart__mobile-text { font-size: 13px; font-weight: 500; }

/* ——— Первый экран ——— */
.block-hero {
  background: var(--white);
}

.hero {
  position: relative;
  min-height: 640px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  background: transparent;
}

/* Сцена с фото: на ≤768 — только картинка; чипы выходят из потока ниже */
.hero__stage {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: inherit;
  overflow: hidden;
}

/* Кадр с фото: на больших экранах — форма Subtract из макета */
.hero__frame {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--blue-900);
}

.hero__media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 33, 61, 0.7) 0%, rgba(15, 33, 61, 0.3) 70%, rgba(15, 33, 61, 0.1) 100%),
    url("../assets/hero/hero-bg.jpg") center/cover no-repeat;
}

.hero__content {
  position: relative;
  z-index: 1;
  /* Только вертикаль — горизонтальные поля даёт .container;
     снизу запас под абсолютные чипы и партнёров */
  padding-block: 120px 180px;
}

.hero__title {
  font-size: 80px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

/* «Dahua» — акцент cyan, как в макете */
.hero__brand {
  color: var(--cyan-500);
}

/* Второй ряд: пилюля «в ЛОМА» + лид справа */
.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 20px;
  max-width: 720px;
}

.hero__pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 200px;
  width: 200px;
  height: 71px;
  padding: 10px 24px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: 999px;
  background: rgba(13, 43, 84, 0.35);
  backdrop-filter: blur(12px);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.hero__lead {
  flex: 1 1 240px;
  max-width: 460px;
  margin: 0;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 500;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* На ≥769 — поверх фото; на ≤768 — в потоке ниже сцены */
.hero__chips {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 96px;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0 var(--pad);
  list-style: none;
  box-sizing: border-box;
  width: 100%;
}

.hero__chips li {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 13px;
  font-weight: 500;
}

/* Текст в span — <br> корректно работает внутри flex-чипа */
.hero__chips li span {
  display: block;
  text-align: center;
}

/* Партнёры ЛОМА × Dahua — белая капсула справа снизу */
.hero__partners {
  position: absolute;
  right: var(--pad);
  bottom: 24px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0;
  width: fit-content;
  padding: 16px 28px;
  background: var(--white);
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(13, 43, 84, 0.1);
}

.hero__partners-x {
  color: var(--neutral-500);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
}

.hero__partners-loma {
  width: 85px;
  height: 40px;
}

.hero__partners-dahua {
  width: 140px;
  height: 42px;
}

/* ——— region + course: слева голубой радиальный, справа белый ——— */
.region-course {
  position: relative;
  overflow: hidden;
  background-color: #fff;
  background-image:
    radial-gradient(
      ellipse 68% 95% at 0% 48%,
      #bfe6f3 0%,
      #d6e8fa 20%,
      #eef7fc 40%,
      rgba(255, 255, 255, 0.96) 64%,
      #ffffff 80%
    );
}

/* Усиление пятна слева (общий слой на оба блока) */
.region-course__glow {
  position: absolute;
  z-index: 0;
  left: -8%;
  top: 5%;
  bottom: 5%;
  width: min(58%, 900px);
  pointer-events: none;
  background: radial-gradient(
    ellipse 90% 80% at 20% 50%,
    rgba(93, 196, 227, 0.28) 0%,
    rgba(191, 230, 243, 0.18) 35%,
    rgba(255, 255, 255, 0) 70%
  );
}

.region-course > .page-block {
  position: relative;
  z-index: 1;
  background: transparent;
}

/* ——— 02 Региональный центр компетенций (Figma 3176:4087) ——— */
.block-region {
  padding: 40px 0 24px;
  background: transparent;
}

/* Те же поля, что у .hero (margin-inline: var(--pad)) —
   заголовок на одной линии с левым краем фонового кадра */
.block-region > .container {
  max-width: none;
  padding-inline: var(--pad);
}

.region {
  position: relative;
  min-height: 720px;
}

.region__content {
  position: relative;
  z-index: 2;
  max-width: 997px;
  padding-top: 24px;
}

.region__title-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.region__title {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--blue-700);
  font-size: 56px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

/* Иконка академической шапочки справа от первой строки заголовка */
.region__icon {
  flex: 0 0 auto;
  width: 70px;
  height: 70px;
  margin-top: 4px;
}

.region__text {
  max-width: 448px;
  margin: 140px 0 0 40px;
  color: var(--blue-700);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
}

.region__visual {
  position: absolute;
  right: 0;
  top: 80px;
  width: min(700px, 52%);
  height: 620px;
  z-index: 1;
  pointer-events: none;
}

.region__arc {
  position: absolute;
  right: 0;
  top: 0;
  width: 583px;
  max-width: 100%;
  height: auto;
  user-select: none;
}

.region__logo {
  position: absolute;
  right: 14%;
  top: 42%;
  width: 288px;
  max-width: 46%;
  height: auto;
  z-index: 2;
}

.region__tags {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  z-index: 3;
}

.region__tags li {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 76px;
  padding: 20px 40px;
  border-radius: 20px;
  background: var(--neutral-100);
  border: 1px solid #e5ecf2;
  color: var(--neutral-900);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.25;
  white-space: nowrap;
}

/* Позиции чипов относительно правого кластера, как в макете */
.region__tags li:nth-child(1) { top: 18%; left: 2%; }
.region__tags li:nth-child(2) { top: 38%; left: 6%; }
.region__tags li:nth-child(3) { top: 58%; left: 0; }
.region__tags li:nth-child(4) { top: 78%; left: 30%; }

/* ≥1440: форма экрана как в Figma (node 3176:4065) —
   скругления слева-сверху и справа-снизу; TR/BL — прямоугольные вырезы со скруглением */


/* ——— Ближайший курс (Figma 3176:4103) ——— */
.block-course {
  padding: 40px 0 56px;
  background: transparent;
}

/* Текст + фото + синяя панель (Figma 3176:4103 / 3176:4130) */
.course {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 470px 230px;
  gap: 20px;
  align-items: stretch;
  min-height: 499px;
}

.course__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 32px;
  border-radius: 30px;
  background: var(--neutral-100);
  border: 1px solid var(--neutral-200);
}

.course__head {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.course__head .badge { position: static; }

.course__title {
  margin: 0;
  font-size: clamp(28px, 2.08vw, 32px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--neutral-900);
  letter-spacing: -0.02em;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(93, 196, 227, 0.16);
  border: 1px solid var(--cyan-500);
  color: var(--blue-700);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan-500); flex-shrink: 0; }
.badge--open { background: none; border-color: var(--cyan-500); color: var(--blue-700); }

.course__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: 100%;
  margin-bottom: 20px;
}

.course__meta dt { margin: 0 0 4px; font-size: 14px; font-weight: 400; line-height: 1.4; color: var(--neutral-500); }
.course__meta dt::after { content: ":"; }
.course__meta dd { margin: 0; font-size: 16px; font-weight: 400; line-height: 1.3; color: var(--neutral-900); }

.course__format {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 0 20px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--neutral-900);
}
.course__format-label { font-size: 14px; font-weight: 400; line-height: 1.4; color: var(--neutral-500); }
.course__format-value { font-size: 16px; font-weight: 400; line-height: 1.35; color: var(--neutral-900); }

.course__text { margin: 0 0 24px; max-width: 52em; font-size: 14px; font-weight: 400; line-height: 1.4; color: var(--neutral-500); }
.course__btn { margin-top: auto; }

.course__media {
  position: relative;
  min-width: 0;
  min-height: 0;
  margin: 0;
  border-radius: 30px;
  overflow: hidden;
  background: var(--neutral-200);
}
.course__media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; border-radius: 30px; }

.course__features {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 230px;
  min-height: 0;
  padding: 24px 16px;
  border-radius: 30px;
  background: #195699;
  color: #fff;
}

.course__features-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  width: fit-content;
  max-width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  align-items: stretch;
  gap: 24px;
}

.course__features-list li {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  column-gap: 12px;
}

.course__features-list img {
  display: block;
  width: auto;
  height: auto;
  max-width: 53px;
  max-height: 53px;
  flex-shrink: 0;
}

.course__feature-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  color: #fff;
  text-align: left;
}

.course__feature-text strong {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
}

.course__feature-text > span {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  width: auto;
}

/* ——— 04 Больше, чем поставка (Figma 3118:1510) ——— */
.block-more {
  /* Нижний padding компенсирует выступ карточек из .more */
  padding: 24px 0 96px;
  background: none;
  overflow: visible;
}

.more {
  position: relative;
  z-index: 0;
  padding: 56px 0 0;
  overflow: visible;
  background: none;
}

/* Серая плашка короче контента — карточки выступают снизу */
.more::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  top: 0;
  bottom: 48px;
  border-radius: 40px;
  background: #F4F7FA;
}

.more__title {
  box-sizing: border-box;
  margin: 0 0 20px;
  padding: 0 22px;
  max-width: 100%;
  color: var(--blue-700);
  font-size: 56px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

/* Подсветка слова «Больше» как в макете */
.more__mark {
  position: relative;
  z-index: 0;
  display: inline-block;
}

.more__mark::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -6px;
  right: -6px;
  bottom: 0.12em;
  height: 0.42em;
  border-radius: 8px;
  background: rgba(93, 196, 227, 0.45);
}

.more__lead {
  box-sizing: border-box;
  margin: 0 0 40px 0;
  margin-left: auto;
  padding-right: 22px;
  max-width: 1000px;
  color: var(--neutral-700);
  font-size: 28px;
  font-weight: 400;
  line-height: 1.35;
  text-align: right;
}

.more__cards {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.more-card {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  border-radius: 30px;
  border: 1px solid #E6ECF2;
  background: #F4F7FA;
  box-shadow: none;
  overflow: hidden;
}

.more-card__body {
  flex: 1 1 auto;
  padding: 20px 20px 16px;
}

.more-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--blue-900);
}

.more-card p {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--neutral-700);
}

.more-card__media {
  display: block;
  width: calc(100% - 24px);
  height: 140px;
  margin: 0 12px 12px;
  overflow: hidden;
  border-radius: 30px;
  background: var(--neutral-200);
}
.more-card__media > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

/* ——— steps + stats + why: общий левый радиальный градиент ——— */
.academy-mid {
  position: relative;
  overflow: hidden;
  background: #fff;
}

.academy-mid__glow {
  position: absolute;
  z-index: 0;
  left: -12%;
  top: 0;
  bottom: 0;
  width: min(55%, 960px);
  pointer-events: none;
  background: radial-gradient(61.98% 61.98% at 50% 50%, #D6E8FA 0%, rgba(255, 255, 255, 0) 87.5%);
}

.academy-mid > .page-block {
  position: relative;
  z-index: 1;
  background: transparent;
}

/* ——— Карточки (общие / другие блоки) ——— */
.block-steps,
.block-why,
.block-program,
.block-form { padding: 56px 0; }

.section-head {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: end;
  margin-bottom: 28px;
}

.section-head p { color: var(--neutral-700); font-size: 18px; }

.steps__title {
  /* Как левый край 4-й карточки story (padding .story) */
  margin: 0 0 40px 40px;
  font-weight: 500;
  font-size: 56px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: #195699;
  vertical-align: middle;
}

/* ——— 05 Кому будет полезно (Figma 3118:1540) ——— */
.block-audience {
  padding: 56px 0;
  background: #fff;
}

.audience {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 672px;
  gap: 40px;
  align-items: start;
}

.audience__title {
  margin: 0;
  max-width: 10em;
  color: var(--blue-700);
  font-size: 56px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.audience__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.audience-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  aspect-ratio: auto;
  height: 260px;
  min-height: 0;
  padding: 20px 24px;
  border-radius: 30px;
  border: 1px solid #E6ECF2;
  background: #F4F7FA;
  box-shadow: none;
}

.audience-card__icon {
  display: block;
  width: 34px;
  height: auto;
  max-width: 37px;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.audience-card h3 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--blue-900);
}

.audience-card p {
  margin: 0;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--neutral-700);
}

.cards { display: flex; flex-wrap: wrap; gap: 16px; }

.cards--4 > .card { flex: 1 1 240px; }

.card {
  padding: 24px;
  border-radius: 20px;
  background: var(--cyan-50);
  min-height: 180px;
}

.cards--soft .card { background: var(--neutral-100); }

.card__index {
  display: block;
  margin-bottom: 16px;
  color: var(--cyan-600);
  font-weight: 500;
}

.card h3 {
  font-size: 20px;
  font-weight: 500;
  color: var(--blue-900);
  margin-bottom: 8px;
  line-height: 1.3;
  letter-spacing: 0;
}
.card p { color: var(--neutral-700); font-size: 16px; line-height: 1.4; }

/* ——— 06 Эко-тренеры (Figma 3118:1493) ——— */
.block-trainers {
  padding: 56px 0;
  background: #fff;
}

.trainers__title {
  margin: 0 0 16px;
  max-width: 18em;
  color: var(--blue-700);
  font-size: 56px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.trainers__title-row {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.trainers__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px 0 4px;
  border-radius: 999px;
  background: #195699;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  margin-bottom: 32px;
}

.trainers__badge svg {
  display: block;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.trainers__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.trainer {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: 32px 40px;
  align-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.trainer__media {
  display: block;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 5 / 4;
  border-radius: 30px;
  overflow: hidden;
  background: var(--neutral-100);
}

.trainer__photo {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
  border-radius: 0;
}

.trainer__name {
  margin: 0 0 8px;
  font-size: 32px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--blue-900);
}

.trainer__role {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--neutral-900);
}

.trainer__text {
  margin: 0;
  max-width: 36em;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--neutral-700);
}

/* ——— История ——— */
/* ——— 07 Как это было (Figma 3176:4229) ——— */
.block-story {
  padding: 40px 0 64px;
  background: #fff;
}

.story {
  padding: 40px 40px 32px;
  border-radius: 40px;
  border: 0;
  background: #fff;
}

.story__head {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 32px;
}

.story__head-text {
  text-align: right;
}

.story__eyebrow-row {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 8px;
}

.story__icon {
  display: block;
  width: 70px;
  height: 70px;
  flex-shrink: 0;
}

.story__eyebrow {
  margin: 0;
  color: #4778AD;
  font-size: 48px;
  font-weight: 500;
  line-height: 1.15;
}

.story__title {
  margin: 0;
  color: #195699;
  font-size: 56px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.story__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: 297px 264px;
  gap: 20px;
}

.story-card {
  margin: 0;
  min-height: 0;
  height: 100%;
  border-radius: 30px;
}

.story-card--cyan { grid-column: span 4; }
.story-card--class { grid-column: span 5; }
.story-card--navy { grid-column: span 3; }
.story-card--trainer,
.story-card--quote { grid-column: span 6; }

.story-card p { margin: 0; color: #fff; font-size: 16px; font-weight: 500; line-height: 1.35; }

.story-card--cyan,
.story-card--navy,
.story-card--quote {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  box-sizing: border-box;
  padding: 40px 20px;
  overflow: visible;
}

.story-card--cyan { padding-bottom: 39px; background: #5DC4E3; }
.story-card--navy { padding-bottom: 35px; background: #195699; }
.story-card--quote { padding-bottom: 42px; background: linear-gradient(251.46deg, #5DC4E3 39.33%, #185698 78.45%); }

.story-card__text { display: flex; flex-direction: column; justify-content: center; gap: 10px; width: 100%; text-align: left; }
.story-card__lead { font-size: 16px; font-weight: 500; }
.story-card--cyan .story-card__text p { font-size: 20px; font-weight: 500; line-height: 1.3; opacity: 1; }
.story-card--navy .story-card__lead { font-size: 14px; line-height: 1.2; }
.story-card--navy p.story-card__note { font-size: 14px; font-weight: 400; line-height: 1.4; opacity: 1; }
.story-card--quote .story-card__text p { font-size: 20px; font-weight: 500; line-height: 1.3; }

.story-card--media {
  display: block;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.story-card--media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  border-radius: inherit;
  object-fit: cover;
  background: var(--neutral-200);
}

.story__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  margin: 24px auto 0;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid var(--cyan-200);
  background: #fff;
}

.story__dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: var(--cyan-200);
  cursor: pointer;
}

.story__dots button.is-active {
  width: 10px;
  height: 10px;
  background: #5DC4E3;
}

.story__dots-label {
  margin-left: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--blue-700);
}

/* ——— Шаги (Figma 3176:4252) ——— */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0 20px;
  position: relative;
  max-width: 1200px;
  margin-inline: auto;
  counter-reset: step;
}

.steps li {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 4px;
}

/* Пунктир от правого края окружности к левому краю следующей */
.steps li:not(:last-child)::before {
  content: "";
  position: absolute;
  top: 80px;
  left: calc(50% + 80px);
  width: calc(100% - 160px + 20px);
  border-top: 1px dashed #5DC4E3;
  z-index: 0;
  pointer-events: none;
}

/* Точка на пересечении пунктира со следующей окружностью (15×15) */
.steps li:not(:first-child)::after {
  content: "";
  position: absolute;
  top: 72.5px;
  left: calc(50% - 80px - 7.5px);
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #5DC4E3;
  z-index: 3;
  pointer-events: none;
}

.steps__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 160px;
  height: 160px;
  margin: 0 auto 18px;
}

/* Окружность шага — вписана в квадрат 160×160 (Figma 3176:4294) */
.steps__icon::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid #195699;
  border-radius: 50%;
  background: #fff;
  box-sizing: border-box;
  z-index: 0;
  pointer-events: none;
}

.steps__icon img,
.steps__icon svg {
  position: relative;
  z-index: 1;
  width: 86px;
  height: 86px;
  display: block;
  object-fit: contain;
}

.steps h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--blue-900);
}

.steps p {
  margin: 0 auto;
  max-width: 220px;
  color: var(--neutral-700);
  font-size: 14px;
  line-height: 1.4;
}

/* ——— Цифры (Figma 3176:4252) ——— */
.block-stats { padding: 8px 0 64px; }

.stats {
  padding: 48px 48px 40px;
  border-radius: 40px;
  background: var(--neutral-100);
  text-align: center;
}

.stats__title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 0 36px;
  width: 100%;
  font-weight: 500;
  font-size: 56px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: #195699;
}

.stats__badge {
  display: grid;
  place-items: center;
  flex: 0 0 59px;
  width: 59px;
  height: 59px;
}

.stats__badge img {
  display: block;
  width: 59px;
  height: 59px;
}

.stats__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 32px;
  align-items: start;
  max-width: 1200px;
  margin-inline: auto;
}

.stats__list li {
  padding: 0 8px;
  text-align: center;
}

.stats__list strong {
  display: block;
  font-size: 64px;
  font-weight: 500;
  line-height: 1.05;
  color: var(--cyan-500);
  letter-spacing: -0.03em;
}

.stats__list span {
  display: block;
  margin: 10px auto 0;
  max-width: 220px;
  font-weight: 500;
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: 0;
  text-align: center;
  color: #171717;
}

/* ——— Почему Академия (Figma 3176:4306) ——— */
.why__title {
  position: relative;
  max-width: 1800px;
  margin: 0 auto 36px;
  font-weight: 500;
  font-size: 56px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: #195699;
}

.why__brand {
  position: relative;
  display: inline-block;
  color: inherit;
  padding-bottom: 10px;
}

.why__spark {
  position: absolute;
  top: -58px;
  right: -66px;
  display: block;
  width: 50px;
  height: 42px;
  pointer-events: none;
}

.why__wave {
  position: absolute;
  left: 0;
  bottom: -4px;
  display: block;
  width: 100%;
  max-width: 200px;
  height: 18px;
  pointer-events: none;
}

.why__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 280px;
  gap: 20px;
  max-width: 1800px;
  width: 100%;
  margin-inline: auto;
}

.why__card {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 28px 24px;
  height: 280px;
  border-radius: 24px;
  background: #F4F7FA;
  border: 0;
  box-sizing: border-box;
  text-align: center;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
  color: #171717;
}

/* Ширина в ряду из 4 */
.why__card.wid1 { grid-column: span 1; }
.why__card.wid2 { grid-column: span 2; }
.why__card.wid3 { grid-column: span 3; }
.why__card.wid4 { grid-column: span 4; }

/* Пустая ячейка сетки */
.why__card.empty {
  background: transparent;
  padding: 0;
  border-radius: 0;
  pointer-events: none;
}

/* Цветные модификаторы */
.why__card.colbg1 {
  background: #195699;
  color: #fff;
  box-shadow: 0 12px 28px rgba(25, 86, 153, 0.22);
}

.why__card.colbg2 {
  background: #5DC4E3;
  color: #fff;
}

/* Только фото */
.why__card.piconly {
  position: relative;
  padding: 0;
  overflow: hidden;
  background: var(--neutral-200);
}

.why__card.piconly img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Фото + текст, затемнение #5DC4E3 30% */
.why__card.picwtext {
  position: relative;
  overflow: hidden;
  padding: 32px;
  color: #fff;
  background: var(--neutral-200);
}

.why__card.picwtext img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.why__card.picwtext::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(93, 196, 227, 0.3); /* #5DC4E3 / 30% */
  z-index: 1;
  pointer-events: none;
}

.why__card.picwtext p {
  position: relative;
  z-index: 2;
  margin: 0;
  max-width: 36em;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.35;
  color: #fff;
}

/* ——— Программа (Figma 3176:4346) ——— */
.block-program {
  padding: 56px 0 72px;
  background: #fff;
}

.program__title {
  margin: 0 0 36px;
  font-weight: 500;
  font-size: 38px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: #195699;
  white-space: nowrap; /* ровно 2 строки через <br>, без лишних переносов */
}

.checklist {
  position: relative;
  margin: 0 120px 0 260px;
  padding: 0 0 0 28px;
  max-width: 1200px;
  list-style: none;
}

/* Вертикальный пунктир через точки */
.checklist::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 10px;
  bottom: 10px;
  border-left: 1.5px dashed #5DC4E3;
  pointer-events: none;
}

.checklist li {
  position: relative;
  padding: 10px 0 10px 20px;
  font-weight: 500;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: 0;
  vertical-align: middle;
  color: #171717;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 16px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #5DC4E3;
  z-index: 1;
}

/* ——— Форма (Figma 3176:4365) ——— */
.block-form {
  padding: 40px 0 72px;
  background: #fff;
}

.form-layout {
  display: grid;
  grid-template-columns: 625px minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.form-layout__intro { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.form-cta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 32px;
  border-radius: 28px;
  background: #F4F7FA;
  box-sizing: border-box;
}

.form-cta__title { margin: 0; font-size: 24px; font-weight: 500; line-height: 1.25; letter-spacing: 0; color: #171717; }

/* Перенос заголовка — только мобильный */
.form-cta__br { display: none; }

.form-cta__icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-left: 10px;
  border-radius: 50%;
  background: #5DC4E3;
  vertical-align: middle;
}

.form-cta__icon img {
  display: block;
  width: 25px;
  height: 25px;
}

.form-cta__texts {
  display: grid;
  gap: 8px;
}

.form-cta__text {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  color: #171717;
  text-align: left;
}

.form-cta__text--lead {
  font-size: 20px;
  line-height: 1.3;
}

.form-cta__btns {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  margin-top: auto;
  padding-top: 8px;
}

.form-cta__btns .btn { flex: 0 0 auto; }
.form-cta__btns .btn--outline { color: #195699; border-color: #195699; background: transparent; }

.form-brands {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-brands__item {
  display: grid;
  place-items: center;
  min-height: 96px;
  padding: 20px;
  border-radius: 24px;
  background: #F4F7FA;
  box-sizing: border-box;
}

.form-brands__item img {
  display: block;
  max-width: 100%;
  height: 40px;
  width: auto;
  object-fit: contain;
}

.form-brands__item:first-child img {
  height: 36px;
}

.form-brands__item:last-child img {
  height: 44px;
}

.form {
  background: #F4F7FA;
  border-radius: 28px;
  padding: 36px 32px;
  border: 0;
  box-sizing: border-box;
}

.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}

.field { display: grid; gap: 4px; align-content: start; }
.field--wide { grid-column: 1 / -1; }
.field > span { padding-left: 16px; font-size: 12px; font-weight: 400; line-height: 1.4; color: #262B36; text-align: left; }
.field i { color: var(--error-500); font-style: normal; }

.field input,
.field select,
.field textarea {
  width: 100%;
  height: 38px;
  border: 1px solid rgba(93, 196, 227, 0.6);
  border-radius: 16px;
  padding: 8px 16px;
  background: #F7F7F7;
  outline: none;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: #171717;
  text-align: left;
  transition: background-color 150ms ease-out, color 150ms ease-out, border-color 150ms ease-out, box-shadow 150ms ease-out;
  box-sizing: border-box;
}

.field input::placeholder,
.field textarea::placeholder { color: #99A1AB; opacity: 1; }

.field textarea {
  height: auto;
  min-height: 84px;
  padding: 12px 16px;
  border-radius: 16px;
  resize: vertical;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 48px; /* стрелка с отступом 20px от края */
  background-color: #F7F7F7;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23195699' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 12px 8px;
  color: #99A1AB; /* «Выберите тему» */
}

.field input:not(:disabled):hover,
.field select:not(:disabled):hover,
.field textarea:not(:disabled):hover,
.field input:not(:placeholder-shown):not(:disabled),
.field textarea:not(:placeholder-shown):not(:disabled),
.field select:has(option:checked:not([value=""])):not(:disabled) {
  background-color: #fff;
  border-color: #5DC4E3;
}

.field select:has(option:checked:not([value=""])) {
  color: #171717;
}

.field select option {
  color: #171717;
}

.field select option[value=""] {
  color: #99A1AB;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  background-color: #fff;
  border-color: #195699;
  border-width: 1.5px;
  box-shadow: 0 0 0 3px rgba(93, 196, 227, 0.35);
  color: #171717;
  caret-color: #195699;
}

.field select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 6.5L6 1.5L11 6.5' stroke='%23195699' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.field.is-error input,
.field.is-error select,
.field.is-error textarea {
  background-color: #FFF5F5;
  border-color: #E5474D;
  border-width: 1.5px;
  box-shadow: none;
}

.field__error { padding-left: 16px; color: #E5474D; font-size: 12px; font-weight: 400; line-height: 1.4; }
.field__hint { color: var(--neutral-500); font-size: 12px; }

.field input:disabled,
.field select:disabled,
.field textarea:disabled {
  background-color: #EDF0F2;
  border-color: transparent;
  box-shadow: none;
  color: #B8BFC7;
  cursor: not-allowed;
  opacity: 1;
  -webkit-text-fill-color: #B8BFC7;
}

.field input:disabled::placeholder,
.field textarea:disabled::placeholder { color: #B8BFC7; }

.field select:disabled {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23B8BFC6' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.field:has(:disabled) > span { color: #B8BFC7; }

.form__alert {
  display: flex;
  align-items: center;
  gap: 12px;
  box-sizing: border-box;
  min-height: 30px;
  margin-bottom: 12px;
  padding: 3px 20px;
  border: 1px solid #E5474D;
  border-radius: 16px;
  background: #FFF2F2;
  color: #E5474D;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.form__alert::before {
  content: "";
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22' fill='none'%3E%3Ccircle cx='11' cy='11' r='8.25' stroke='%23E5484D' stroke-width='1.833'/%3E%3Cpath d='M11 6.4v5.2M11 15.6v.1' stroke='%23E5484D' stroke-width='1.833' stroke-linecap='round'/%3E%3C/svg%3E") center / 22px no-repeat;
}

.field__hint-inline {
  margin-left: 6px;
  font-size: 12px;
  font-weight: 400;
  color: #99A1AB;
}

.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 38px;
  padding: 0;
  border: 1px solid var(--cyan-500);
  border-radius: 16px;
  background: #fff;
  box-sizing: border-box;
}
.stepper:focus-within { background: #fff; border-color: #5DC4E3; }
.stepper__btn {
  display: grid;
  place-items: center;
  flex: 0 0 44px;
  width: 44px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  background: rgba(93, 196, 227, 0.15);
  color: #195699;
  cursor: pointer;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.2;
  transition: background-color 150ms ease-out, color 150ms ease-out;
}
.stepper__btn:not(:disabled):hover { background: rgba(93, 196, 227, 0.25); }
.stepper__btn:not(:disabled):active { background: rgba(56, 153, 194, 0.25); transition-duration: 80ms; }
.stepper__btn--plus { background: rgba(93, 196, 227, 0.15); color: #195699; }
.stepper__btn:disabled { background: transparent; color: #B8BFC7; cursor: default; }
.stepper__value { flex: 1; min-width: 0; text-align: center; font-weight: 500; font-size: 16px; line-height: 1.2; color: #171717; }

.form__submit { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 24px; }
.form__consent-wrap { min-width: 0; }
.consent { position: relative; display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.consent > input { position: absolute; width: 20px; height: 20px; margin: 0; opacity: 0; }
.consent__box { flex: 0 0 20px; width: 20px; height: 20px; border: 1px solid var(--cyan-200); border-radius: 6px; background: #fff; box-sizing: border-box; }
.consent > input:checked + .consent__box { border-color: var(--cyan-500); background: var(--cyan-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M3 7.2 5.6 10 11 4' fill='none' stroke='white' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat; }
.consent > input:focus-visible + .consent__box { outline: 2px solid #195699; outline-offset: 2px; }
.consent.is-error .consent__box { border: 2px solid var(--error-500); }
.consent__text { font-size: 12px; font-weight: 400; line-height: 1.4; color: var(--neutral-700); }
.consent__text a { color: var(--blue-700); }
.consent__error { display: block; margin: 6px 0 0 32px; color: #c9363b; font-size: 12px; }
.consent__error[hidden] { display: none; }

/* ——— Подвал (Figma 3176:4404) ——— */
.block-footer { padding: 0; }

.footer {
  background: #0D2B54;
  color: var(--white);
  padding: 56px 0 32px;
}

.footer__inner {
  display: grid;
  gap: 40px;
}

.footer a {
  color: #FFFFFFB8;
  text-decoration: none;
  transition: color var(--ease);
}

.footer a:hover { color: var(--white); }

.footer__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 32px; align-items: start; }
.footer__logo { display: inline-block; line-height: 0; }
.footer__logo img { display: block; width: 148px; height: auto; }
.footer__about p { margin-top: 16px; max-width: 280px; color: #FFFFFFB8; font-size: 14px; font-weight: 400; line-height: 1.6; }
.footer__title { margin: 0 0 16px; color: #5DC4E3; font-size: 14px; font-weight: 500; line-height: 1.4; }
.footer__list { display: grid; gap: 10px; }
.footer__list a { font-size: 14px; line-height: 1.4; font-weight: 400; }
.footer__phone { display: inline-block; margin-bottom: 14px; color: var(--white) !important; font-size: 24px; font-weight: 500; line-height: 1.15; }
.footer__contacts { display: grid; gap: 10px; }
.footer__contacts a { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; line-height: 1.4; }
.footer__contacts img { flex: 0 0 auto; display: block; }
.stores { padding-top: 36px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.stores__title { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 20px; color: var(--white); font-size: 16px; font-weight: 400; line-height: 1.4; }
.stores__title img { display: block; flex: 0 0 auto; }
.stores__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stores__card { display: grid; gap: 10px; padding: 20px 22px; border-radius: 16px; background: rgba(255, 255, 255, 0.06); box-sizing: border-box; }
.stores__address { color: var(--white); font-size: 16px; font-weight: 500; line-height: 1.35; }
.stores__meta { display: inline-flex; align-items: flex-start; gap: 8px; color: #FFFFFFB8; font-size: 14px; line-height: 1.4; font-weight: 400; }
.footer a.stores__tel { display: inline-flex; align-items: flex-start; gap: 8px; font-weight: 400; font-size: 18px; line-height: 1.3; color: #FFFFFF; }
.stores__meta img,
.stores__tel img { flex: 0 0 auto; margin-top: 2px; display: block; }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px 40px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.12); color: var(--cyan-200); font-size: 14px; line-height: 1.45; }
.footer__copy { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; flex: 0 1 auto; color: #FFFFFF8F; }
.footer__copy p { margin: 0; }
.footer .footer__copy a { color: #FFFFFFB8; }
.footer__legal { flex: 1 1 420px; max-width: 640px; margin: 0 0 0 auto; font-weight: 400; font-size: 12px; line-height: 1.4; text-align: right; color: #FFFFFF8F; }

/* ——— Cookie, чат, модалки ——— */
.cookies {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 50;
  width: min(420px, calc(100% - 32px));
}

.cookies__card {
  display: grid;
  gap: 16px;
  background: var(--white);
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 16px 40px rgba(13, 43, 84, 0.14);
  box-sizing: border-box;
}

.cookies__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #171717;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.3;
}

.cookies__icon {
  display: block;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
}

.cookies__card p {
  margin: 0;
  color: #525C69;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
}

.cookies__card p a {
  color: #195699;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookies__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cookies__actions .btn,
.modal__actions .btn {
  height: 41px;
  min-height: 41px;
  padding: 12px 22px;
  justify-content: center;
  font-size: 14px;
}

.cookies .btn--primary:hover,
[data-cookie-modal] .btn--primary:hover { background: #216BBD; }
.cookies .btn--primary:active,
[data-cookie-modal] .btn--primary:active { background: #3899C2; }

.cookies__actions .btn--outline,
.modal__actions .btn--outline {
  color: #195699;
  border-color: transparent;
  background: #F7F7F7;
}

.cookies__actions .btn--outline:hover,
.modal__actions .btn--outline:hover {
  background: #EFF7FC;
  border-color: transparent;
}

.cookies__actions .btn--outline:active,
.modal__actions .btn--outline:active { background: #BFE6F3; color: #0D2B54; }

.modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(13, 43, 84, 0.45);
  display: grid;
  place-items: center;
  padding: 20px;
}

.modal__dialog {
  width: min(440px, 100%);
  background: var(--white);
  border-radius: 24px;
  padding: 24px;
  display: grid;
  gap: 12px;
}

.modal__dialog h3 { font-size: 28px; font-weight: 500; color: var(--blue-900); }

[data-cookie-modal] .modal__dialog {
  width: min(420px, 100%);
  gap: 16px;
  border-radius: 28px;
  box-shadow: 0 16px 40px rgba(13, 43, 84, 0.14);
}

[data-cookie-modal] .modal__dialog h3 { color: #171717; font-size: 20px; line-height: 1.3; }
.modal__actions { display: flex; flex-wrap: wrap; gap: 10px; }

[data-success] .modal__dialog {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  box-sizing: border-box;
  width: min(638px, 100%);
  min-height: 0;
  padding: 32px 48px 24px;
  border-radius: 30px;
  text-align: center;
}

[data-success] .modal__dialog h3 { color: #171717; font-size: 24px; line-height: 1.25; }
[data-success] .modal__dialog p { max-width: 542px; color: #525C69; font-size: 15px; line-height: 1.4; }
.success__icon { display: block; flex: 0 0 64px; width: 64px; height: 64px; margin-top: -48px; }
.success__icon svg { display: block; width: 64px; height: 64px; }

.toggle {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  min-height: 61px;
  padding: 12px 0;
  border-bottom: 1px solid #E5ECF2;
  cursor: pointer;
}
.toggle:has(input:disabled) { cursor: default; }
.toggle > input { position: absolute; width: 44px; height: 26px; margin: 0; opacity: 0; }
.toggle__content { display: grid; flex: 1; gap: 2px; min-width: 0; }
.toggle__content strong { color: #171717; font-size: 14px; font-weight: 500; line-height: 1.2; }
.toggle__content small { color: #99A0AB; font-size: 12px; font-weight: 400; line-height: 1.4; }
.toggle__track {
  position: relative;
  flex: 0 0 44px;
  width: 44px;
  height: 26px;
  border-radius: 100px;
  background: #D5D9DE;
  transition: background-color 150ms ease-out;
}
.toggle__knob {
  position: absolute;
  left: 3px;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 150ms ease-out;
}
.toggle > input:checked ~ .toggle__track { background: #5DC4E3; }
.toggle > input:checked ~ .toggle__track .toggle__knob { transform: translateX(18px); }
.toggle > input:disabled ~ .toggle__track { background: #BFE6F3; }
.toggle > input:focus-visible ~ .toggle__track { outline: 2px solid #195699; outline-offset: 2px; }

.chat { position: fixed; right: 24px; bottom: 24px; z-index: 55; }

.chat__fab {
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 50%;
  background: var(--blue-700);
  color: var(--white);
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(13, 43, 84, 0.25);
  position: relative;
}

.chat__fab svg { width: 28px; height: 28px; }
.chat__fab:hover { background: var(--blue-500); }

.chat__badge {
  position: absolute;
  top: 6px;
  right: 6px;
  min-width: 18px;
  height: 18px;
  border-radius: 99px;
  background: var(--error-500);
  color: var(--white);
  font-size: 11px;
  display: grid;
  place-items: center;
}

.chat__preview {
  position: absolute;
  right: 0;
  bottom: 76px;
  width: 280px;
  background: var(--white);
  border-radius: 18px;
  padding: 12px 32px 12px 12px;
  display: flex;
  gap: 10px;
  box-shadow: 0 12px 32px rgba(13, 43, 84, 0.16);
}

.chat__preview img,
.chat__head img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.chat__preview button,
.chat__head button {
  position: absolute;
  top: 6px;
  right: 8px;
  border: 0;
  background: none;
  font-size: 20px;
  cursor: pointer;
}

.chat__window {
  position: absolute;
  right: 0;
  bottom: 76px;
  width: 380px;
  height: 560px;
  max-height: calc(100vh - 120px);
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(13, 43, 84, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.chat__head {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 14px;
  background: var(--blue-900);
  color: var(--white);
  position: relative;
}

.chat__head span { display: block; font-size: 12px; color: var(--cyan-200); }
.chat__head button { color: var(--white); }

.chat__log { flex: 1; overflow: auto; padding: 14px; display: grid; align-content: start; gap: 8px; }

.chat__bubble {
  max-width: 85%;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--neutral-100);
}

.chat__bubble--me { margin-left: auto; background: var(--cyan-100); }

.chat__quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 8px; }
.chat__quick button {
  border: 1px solid var(--cyan-200);
  background: var(--white);
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 13px;
}

.chat__form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--neutral-200); }
.chat__form input { flex: 1; border: 1px solid var(--neutral-300); border-radius: 12px; padding: 10px; }
.chat__form button { width: 42px; border: 0; border-radius: 12px; background: var(--cyan-500); cursor: pointer; }

.chat__offline { padding: 10px 12px 0; display: grid; gap: 8px; }
.chat__offline input { border: 1px solid var(--neutral-300); border-radius: 12px; padding: 10px; }

.chat__channels {
  display: flex;
  gap: 12px;
  padding: 8px 12px 12px;
  font-size: 13px;
}

.chat.is-open .chat__preview { display: none !important; }

body.has-cookie-banner .b24-widget-button-wrapper,
body.has-cookie-banner .b24-widget-button-block,
body.has-cookie-banner .b24-widget-button-social,
body.has-cookie-banner [class*="b24-widget-button"] { display: none !important; }



/* Планшет 768–1439: поля 32 px, контейнер 704 на кадре 768 */


/* Планшет ≤768 (Figma 3179:5949): шапка 60px, поиск-пилюля, опт, вход, корзина, бургер */


/* Мобильный ≤480 (Figma 3179:6097): лого | отступ | поиск, опт (текст), вход, бургер */


/* Узкий мобильный ≤360: текст опта мельче, лого компактнее */


/* Bitrix24: чат, виджет и CRM-формы — вместо Helvetica */
.b24-widget-button-wrapper,
.b24-widget-button-block,
.b24-widget-button-inner-container,
.b24-widget-button-social,
.bx-livechat-wrapper,
.bx-livechat-box,
.bx-im-bar,
.bx-messenger-box,
.b24-window,
.b24-form,
.b24-form-wrapper,
.b24-form-btn,
.b24-form-control,
.crm-webform-wrapper,
[class*="b24-form"],
[class*="b24-widget"],
[class*="bx-livechat"],
[class*="crm-webform"] {
  font-family: "Roboto", Arial, sans-serif !important;
}

.b24-form input,
.b24-form textarea,
.b24-form select,
.b24-form button,
.b24-form-control,
[class*="b24-form"] input,
[class*="b24-form"] textarea,
[class*="b24-form"] select,
[class*="b24-form"] button {
  font-family: "Roboto", Arial, sans-serif !important;
}








@media (min-width: 1440px) {
  .menu-bar { margin-right: 40px; }
  .course { gap: 1px; }
  .course__meta { grid-template-columns: minmax(220px, 1.5fr) .7fr 1fr; }
  .course__meta dd { white-space: nowrap; text-align: center; }
  .trainers__badge { margin-left: 514px; }
  .footer > .container { padding-inline: 80px; }

  .hero {
    min-height: 722px;
    margin-inline: var(--pad);
    overflow: visible;
    justify-content: flex-start;
  }

  .hero__stage {
    min-height: 722px;
    overflow: visible;
    justify-content: flex-start;
  }

  .hero__frame {
    inset: 0;
    border-radius: 0;
    /* Fallback-маска; JS updateHeroUtilsMask() подгоняет TR-вырез под ширину .header__utils */
    -webkit-mask-image: url("../assets/hero/hero-shape.svg?v=6");
    mask-image: url("../assets/hero/hero-shape.svg?v=6");
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
  }

  .hero__content.container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    /* Отступ сверху от плавающего меню + поле слева как в макете */
    padding: 168px 80px 200px;
    max-width: none;
    width: 100%;
  }

  /* Чипы в белом вырезе слева-снизу */
  .hero__chips {
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: min(498px, 30%);
    margin: 0;
    padding: 0;
    color: var(--neutral-900);
  }

  /* Капсула логотипов в правом нижнем углу кадра */
  .hero__partners {
    position: absolute;
    right: 24px;
    bottom: 24px;
    z-index: 2;
    margin: 0;
  }

  .hero__chips li {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 49px;
    padding: 10px 24px;
    border-radius: 40px;
    background: var(--white);
    border: 1px solid #e5ecf2;
    color: #000;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
  }
}

@media (min-width: 1440px) and (max-width: 1440px) {
  .hero__meta { gap: 16px 48px; }
  .region__content { max-width: 1079px; }
  .course__head { position: relative; display: block; width: 100%; }
  .course__head .badge { position: absolute; top: 0; right: 0; font-size: 13px; }
  .course__title { font-size: 24px; line-height: 1.25; white-space: nowrap; }
  .course__meta { grid-template-columns: 177px 87px 130px; gap: 0 60px; height: 65px; margin: 0 0 30px; }
  .course__meta dd { white-space: normal; text-align: center; font-weight: 500; line-height: 1.2; }
  .course__format { gap: 10px; font-size: 20px; font-weight: 500; }
  .course__format-value { max-width: 390px; font-size: 20px; font-weight: 500; text-align: center; }
  .trainers { position: relative; }
  .trainers__title { max-width: 20em; }
  .trainers__title-row { display: inline; }
  .trainers__badge {
    position: absolute;
    top: 99px;
    left: 508px;
    height: 44px;
    margin: 0;
    padding: 8px 18px 8px 8px;
    font-size: 13px;
    line-height: 1.2;
  }
  .trainers__badge svg { width: 28px; height: 28px; }
  .story { padding: 40px 0 32px; }
  .steps__title { margin-left: 0; }
  .checklist { margin-left: 184px; }
}

@media (min-width: 1441px) {
  .course { grid-template-columns: minmax(0, 1fr) 465px 230px; }
  .course__body { padding: 40px; }
  .course__head {
    position: relative;
    display: block;
    width: 573px;
    max-width: 100%;
    margin-bottom: 20px;
  }
  .course__head .badge {
    position: absolute;
    top: 4px;
    right: auto;
    left: 374px;
    height: 31px;
    font-size: 13px;
  }
  .course__title {
    font-size: 24px;
    line-height: 1.25;
    letter-spacing: 0;
    white-space: nowrap;
  }
  .course__meta {
    grid-template-columns: 177px 87px 130px;
    gap: 0 60px;
    width: 573px;
    max-width: 100%;
    height: 65px;
    margin: 0 0 30px;
  }
  .course__meta dt {
    margin-bottom: 10px;
    font-weight: 500;
    line-height: 1.2;
  }
  .course__meta dd {
    font-weight: 500;
    line-height: 1.2;
    white-space: normal;
    text-align: center;
  }
  .course__meta > div:nth-child(3) dt { text-align: center; }
  .course__format {
    gap: 10px;
    width: 390px;
    max-width: 100%;
    margin-bottom: 40px;
    font-size: 20px;
    font-weight: 500;
  }
  .course__format-label { font-weight: 500; line-height: 1.2; }
  .course__format-value {
    width: 100%;
    max-width: 390px;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
  }
  .course__text {
    width: 573px;
    max-width: 100%;
    margin-bottom: 0;
    font-weight: 500;
    line-height: 1.2;
  }
  .trainers { position: relative; }
  .trainers__badge {
    position: absolute;
    top: 79px;
    left: 514px;
    margin: 0;
  }
}

.audience-trainers { position: relative; z-index: 0; overflow-x: clip; }

@media (min-width: 769px) {
  .audience-trainers::before {
    content: "";
    position: absolute;
    z-index: 0;
    top: -439px;
    right: -1249px;
    width: 2031px;
    height: 1683px;
    pointer-events: none;
    background: radial-gradient(61.98% 61.98% at 50% 50%, #D6E8FA 0%, rgba(255, 255, 255, 0) 87.5%);
    filter: blur(10px);
  }
  .audience-trainers > .page-block {
    position: relative;
    z-index: 1;
    background: transparent;
  }
}

@media (max-width: 1439px) {
  :root {
    --pad: 32px;
    --container: 704px;
    --pad-menu-left: 32px;
    --pad-menu-right: 32px;
  }
  h1, .text-h1 { font-size: 56px; line-height: 1.1; }
  h2, .text-h2 { font-size: 44px; line-height: 1.15; }
  h3, .text-h3 { font-size: 34px; line-height: 1.2; }
  h4, .text-h4 { font-size: 28px; line-height: 1.2; }
  .hero__title { font-size: 56px; }
  .hero__pill { height: 44px; font-size: 18px; }
  .hero__lead { font-size: 16px; }
  .course { grid-template-columns: 1fr; gap: 16px; }
  .course__body { padding: 32px; }
  .course__title { font-size: 34px; }
  .course__meta { grid-template-columns: 1fr 1fr; }
  .course__media {
    margin-block: 0;
    min-height: 280px;
  }
  .course__features {
    width: 100%;
    min-height: 0;
    padding: 28px 24px;
  }
  .course__features-list {
    min-height: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
  }
  .story__eyebrow { font-size: 36px; }
  .story__title { font-size: 44px; }
  .story { padding: 32px 24px 24px; }
  .steps__title { margin-left: 24px; }
  .story__grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    min-height: 0;
  }
  .story-card { height: auto; min-height: 200px; }
  .story-card--cyan,
  .story-card--navy,
  .story-card--quote { grid-column: span 1; }
  .story-card--class,
  .story-card--trainer { grid-column: 1 / -1; min-height: 220px; }
  .form-cta__title { font-size: 28px; }
  .form-cta { padding: 28px 24px; }
  .form { padding: 28px 24px; }
  .more { padding: 40px 32px 0; }
  .more::before { bottom: 36px; border-radius: 32px; }
  .more__title { font-size: 44px; max-width: none; white-space: normal; }
  .more__lead { max-width: none; text-align: left; margin-left: 0; font-size: 22px; }
  .more__cards { grid-template-columns: 1fr 1fr; gap: 16px; }
  .audience { grid-template-columns: 1fr; gap: 28px; }
  .audience__title { font-size: 44px; max-width: none; }
  .trainers__title { font-size: 44px; }
  .trainer { grid-template-columns: minmax(200px, 280px) 1fr; gap: 24px; }
  .section-head, .form-layout, .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer { padding: 48px 0 28px; }
  .footer__inner { gap: 32px; }
  .footer__phone { font-size: 24px; }
  .stores__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .stores__card { padding: 16px 18px; }
  .footer__legal { text-align: left; margin-left: 0; max-width: none; }
  .program__title { font-size: 34px; white-space: normal; max-width: 14em; }
  .checklist { margin-right: 48px; margin-left: 24px; }
  .why__title { font-size: 44px; max-width: none; }
  .why__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: dense;
    grid-auto-rows: minmax(160px, auto);
    max-width: none;
    gap: 16px;
  }
  .why__card { height: auto; min-height: 160px; }
  .why__card.wid1,
  .why__card.wid2,
  .why__card.wid3,
  .why__card.wid4 { grid-column: span 1; }
  .why__card.wid2.picwtext { grid-column: span 2; min-height: 220px; }
  .why__card.empty { display: none; }
  .header__top,
  .header__top.container { gap: 12px; min-height: 96px; padding: 24px 32px; }
  .logo__mark,
  .logo__img { width: 168px; height: 36px; }
  .logo__dot { left: 66px; top: 18px; }
  .header-chip--login span { max-width: 72px; overflow: hidden; text-overflow: ellipsis; }
  .header-search__btn { padding-inline: 14px; font-size: 16px; }
  .header-btn { padding-inline: 14px; font-size: 16px; }
  .menu-bar { gap: 4px 10px; padding: 8px 14px; }
  .menu-bar__link { font-size: 12px; padding: 8px; }
  .header__menu-wrap .header-cart { width: auto; min-width: 56px; justify-content: center; padding-inline: 14px; }
  .header__menu-wrap .header-cart__text { display: none; }
  .stats { padding: 40px 32px 32px; border-radius: 36px; }
  .stats__title { font-size: 44px; margin-bottom: 28px; }
  .stats__list strong { font-size: 48px; }
  .steps__icon { width: 120px; height: 120px; }
  .steps__icon img,
  .steps__icon svg { width: 72px; height: 72px; }
  .steps li:not(:last-child)::before {
    top: 60px;
    left: calc(50% + 60px);
    width: calc(100% - 120px + 20px);
  }
  .steps li:not(:first-child)::after {
    top: 52.5px;
    left: calc(50% - 60px - 7.5px);
  }
  .region { min-height: 0; }
  .region__title { font-size: 44px; }
  .region__text { margin: 28px 0 0; font-size: 24px; text-align: left; max-width: 36em; }
  .region__visual {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    height: 420px;
    margin-top: 12px;
  }
  .region__tags li { min-height: 64px; padding: 16px 32px; font-size: 22px; }
}

@media (max-width: 768px) {
  :root {
    --pad: 16px;
    --pad-menu-left: 16px;
    --pad-menu-right: 16px;
    --header-h: 60px;
  }
  h1, .text-h1 { font-size: 40px; line-height: 1.1; }
  h2, .text-h2 { font-size: 32px; line-height: 1.15; }
  h3, .text-h3 { font-size: 28px; line-height: 1.2; }
  h4, .text-h4 { font-size: 24px; line-height: 1.2; }
  h5, .text-h5 { font-size: 20px; line-height: 1.25; }
  .text-body-l { font-size: 17px; line-height: 1.4; }

  .header__top-wrap {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(16px);
  }

  .header__top,
  .header__top.container {
    display: flex;
    align-items: center;
    min-height: 60px;
    height: 60px;
    padding: 8px 16px;
    gap: 10px;
  }

  .logo { order: 1; }
  .header-search { order: 2; }
  .header-chip:not(.header-chip--login) { order: 3; }
  .header-chip--login { order: 4; }
  .header-cart--compact { order: 5; }
  .burger { order: 6; }

  .header__menu-wrap { display: none; margin-bottom: 0; padding-top: 0; }
  .header-btn { display: none; }

  .logo__mark,
  .logo__img {
    width: 148px;
    height: 32px;
  }
  .logo__dot {
    left: 58px;
    top: 16px;
    width: 3px;
    height: 3px;
  }

  .header-search {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 280px;
    gap: 0;
    height: 40px;
    border-radius: 40px;
    background: #f8f8f8;
    box-shadow: inset 1px 4px 9px rgba(26, 24, 24, 0.02);
    overflow: hidden;
  }
  .header-search__icon {
    width: 40px;
    height: 40px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    flex-shrink: 0;
  }
  .header-search__icon:hover { background: transparent; }
  .header-search__icon img { width: 18px; height: 18px; }
  .header-search__field {
    flex: 1 1 auto;
    min-width: 0;
  }
  .header-search__field input {
    height: 40px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0 12px 0 0;
    font-size: 14px;
  }
  .header-search__btn { display: none; }
  .header-search:focus-within,
  .header-search.has-query,
  .header-search.is-loading { overflow: visible; }
  .header-search__close { right: 52px; }

  .header-chip {
    height: 40px;
    padding: 8px 14px;
    gap: 8px;
    font-size: 13px;
    white-space: nowrap;
  }
  .header-chip img { width: 22px; height: 22px; }
  .header-chip--login {
    width: 40px;
    height: 40px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }
  .header-chip--login span { display: none; }
  .header-chip--login img { width: 24px; height: 24px; }

  .header-cart--compact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    min-width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
    gap: 0;
    box-shadow: none;
    backdrop-filter: none;
    transition: none;
  }
  .header-cart--compact:hover,
  .header-cart--compact:active {
    box-shadow: none;
    transition: none;
  }
  .header-cart--compact .header-cart__icon {
    width: 24px;
    height: 24px;
  }
  .header-cart--compact .header-cart__icon img {
    width: 24px;
    height: 24px;
  }
  .header-cart--compact .header-cart__count {
    display: none;
  }

  .burger {
    display: block;
    width: 40px;
    height: 40px;
    margin-left: 0;
    padding: 8px;
  }

  .mobile-menu { top: 60px; }

  /* Hero планшет (Figma 3179:3906 / 3907 / 3915): 704×518, pad 48/40, gap 16 */
  .block-hero {
    padding: 16px 32px 24px;
  }
  .hero {
    min-height: 0;
    height: auto;
    margin-inline: 0;
    border-radius: 0;
    overflow: visible;
    justify-content: flex-start;
    gap: 16px;
    color: var(--neutral-900);
  }
  .hero__stage {
    flex: none;
    height: 518px;
    min-height: 518px;
    border-radius: 40px;
    overflow: hidden;
    justify-content: flex-start;
    color: var(--white);
  }
  .hero__frame {
    border-radius: 40px;
  }
  .hero__content,
  .hero__content.container {
    padding: 48px 40px 40px;
    max-width: none;
    width: 100%;
  }
  .hero__title {
    font-size: 56px;
    line-height: 1.1;
    letter-spacing: -0.02em;
  }
  .hero__meta {
    margin-top: 24px;
    gap: 12px 20px;
    max-width: 606px;
    align-items: center;
  }
  .hero__pill {
    height: 64px;
    font-size: 34px;
    line-height: 1.2;
    letter-spacing: -0.005em;
    padding: 0 22px;
  }
  .hero__lead {
    font-size: 13px;
    line-height: 1.2;
    max-width: 420px;
    flex: 1 1 200px;
  }
  .hero__actions {
    margin-top: 24px;
    gap: 16px;
  }
  .hero__actions .btn {
    min-height: 46px;
    height: 46px;
    font-size: 16px;
    padding: 6px 9px 6px 28px;
    gap: 16px;
  }
  .hero__chips {
    position: static;
    z-index: auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 0;
    color: var(--neutral-900);
  }
  .hero__chips li {
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 56px;
    min-height: 56px;
    padding: 10px 40px;
    border-radius: 999px;
    background: var(--white);
    border: 1px solid #e5ecf2;
    color: #000;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.01em;
    text-align: center;
    backdrop-filter: none;
  }
  .hero__partners {
    position: absolute;
    right: 32px;
    bottom: 32px;
    z-index: 2;
    margin: 0;
    padding: 10px 19px;
    gap: 16px;
  }
  .hero__partners-loma { width: 68px; height: 32px; }
  .hero__partners-dahua { width: 112px; height: 33px; }
  .hero__partners-x { font-size: 22px; }
  .search { top: 100%; }
  .section-head,
  .form-layout,
  .form__grid,
  .search__cols { grid-template-columns: 1fr; }

  /* Footer планшет (Figma 3179:5974): about на всю ширину → 3 колонки → магазины столбиком */
  .footer {
    padding: 48px 0 28px;
  }
  .footer > .container {
    padding-inline: 32px;
  }
  .footer__inner {
    gap: 32px;
  }
  .footer__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 20px;
  }
  .footer__about {
    grid-column: 1 / -1;
  }
  .footer__logo img { width: 132px; }
  .footer__about p {
    margin-top: 12px;
    max-width: 420px;
    font-size: 14px;
  }
  .footer__title {
    margin-bottom: 14px;
    font-size: 16px;
  }
  .footer__list { gap: 8px; }
  .footer__list a { font-size: 14px; }
  .footer__phone {
    margin-bottom: 12px;
    font-size: 22px;
  }
  .footer__contacts { gap: 8px; }
  .footer__contacts a { font-size: 14px; gap: 8px; }
  .stores {
    padding-top: 28px;
  }
  .stores__title {
    margin-bottom: 16px;
    font-size: 16px;
  }
  .stores__list {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .stores__card {
    gap: 8px;
    padding: 16px 18px;
    border-radius: 14px;
  }
  .stores__address { font-size: 15px; }
  .stores__meta { font-size: 13px; }
  .footer a.stores__tel { font-size: 18px; }
  .footer__bottom {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding-top: 20px;
  }
  .footer__copy { gap: 8px 16px; }
  .footer__legal {
    text-align: left;
    margin-left: 0;
    max-width: none;
    flex: none;
  }

  .footer { padding: 56px 0 32px; }
  .footer > .container { padding-inline: 24px; }
  .footer__title { font-size: 14px; }
  .footer__phone { font-size: 24px; }
  .stores__title { font-size: 18px; }
  .stores__address { font-size: 16px; }

  /* Cookies планшет (Figma 3288:17905): карточка 736×189, отступы 16 */
  .cookies {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
    max-width: 736px;
    margin-inline: auto;
  }
  .cookies__card {
    padding: 24px 28px;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(13, 43, 84, 0.14);
  }
  .cookies__title {
    gap: 10px;
    margin-bottom: 12px;
    font-size: 18px;
  }
  .cookies__icon {
    width: 28px;
    height: 28px;
  }
  .cookies__card p {
    margin-bottom: 16px;
    font-size: 14px;
  }
  .cookies__actions {
    flex-wrap: nowrap;
    gap: 12px;
  }
  .cookies__actions .btn {
    flex: 0 0 auto;
    min-height: 44px;
    font-size: 14px;
  }

  /* Program планшет (Figma 3179:4169): title + checklist без больших отступов desktop */
  .block-program {
    padding: 40px 0;
  }
  .block-program > .container {
    padding-inline: 32px;
  }
  .program__title {
    margin: 0 0 28px;
    font-size: 32px;
    line-height: 1.15;
    white-space: normal;
    max-width: none;
  }
  .checklist {
    margin: 0;
    max-width: none;
    padding: 0 0 0 24px;
  }
  .checklist::before {
    left: 4px;
    top: 8px;
    bottom: 8px;
  }
  .checklist li {
    padding: 8px 0 8px 16px;
    font-size: 20px;
    line-height: 1.25;
  }
  .checklist li::before {
    left: -24px;
    top: 14px;
    width: 10px;
    height: 10px;
  }
  /* Form планшет (скрин): CTA на всю ширину → кнопки в ряд слева → бренды 2 в ряд */
  .block-form {
    padding: 40px 0;
  }
  .block-form > .container {
    padding-inline: 32px;
  }
  .form-layout {
    gap: 16px;
  }
  .form-layout__intro {
    gap: 16px;
  }
  .form-cta {
    flex: none;
    gap: 20px;
    padding: 32px 28px;
    border-radius: 28px;
  }
  .form-cta__title {
    font-size: 28px;
    line-height: 1.2;
    text-align: left;
    white-space: normal;
    max-width: none;
  }
  .form-cta__br { display: inline; }
  .form-cta__icon { display: none; }
  .form-cta__texts { gap: 8px; }
  .form-cta__text,
  .form-cta__text--lead {
    color: #171717;
  }
  .form-cta__text--lead { font-size: 20px; }
  .form-cta__text:not(.form-cta__text--lead) { font-size: 14px; }
  .form-cta__btns {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-top: 0;
    padding-top: 0;
  }
  .form-cta__btns .btn {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    justify-content: center;
    padding-inline: 18px;
    font-size: 14px;
  }
  .form-brands {
    gap: 16px;
  }
  .form-brands__item {
    min-height: 80px;
    padding: 20px 16px;
    border-radius: 24px;
  }

  /* Form планшет: одна колонка, компактные поля как на скрине */
  .form {
    padding: 36px 40px;
    border-radius: 32px;
  }
  .form__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .form__grid > .field {
    width: 50%;
    max-width: 50%;
  }
  .form__grid > .field--wide {
    width: 100%;
    max-width: 100%;
  }
  .field { gap: 6px; }
  .field span { font-size: 13px; }
  .field__hint-inline { font-size: 12px; }
  .field input,
  .field select {
    height: 48px;
    padding: 12px 16px;
    font-size: 15px;
    border-radius: 12px;
    border-color: #CDE7F5;
    background: #F7F7F7;
  }
  .field select {
    padding-right: 44px;
    background-position: right 16px center;
  }
  .field textarea {
    min-height: 112px;
    padding: 12px 16px;
    font-size: 15px;
    border-radius: 12px;
    border-color: #CDE7F5;
    background: #F7F7F7;
  }
  .form__submit {
    justify-content: flex-start;
    margin-top: 24px;
  }
  .form__submit .btn {
    min-height: 48px;
    padding-inline: 22px;
    font-size: 15px;
  }
  .stepper {
    height: 48px;
    border-radius: 12px;
    border-color: #CDE7F5;
  }
  .stepper__btn {
    width: 60px;
    height: 100%;
    margin: 0;
    border-radius: 22%;
    background: rgba(93, 196, 227, 0.15);
    font-size: 22px;
    color: #195699;
  }
  .stepper__btn:not(:disabled):hover {
    background: rgba(93, 196, 227, 0.25);
  }
  .stepper__btn--plus {
    color: #195699;
    font-weight: 500;
  }
  .stepper__value {
    font-size: 16px;
  }
  /* Why планшет (Figma 3179:4131): 2 колонки, empty скрыты, dense */
  .block-why {
    padding: 40px 0;
  }
  .block-why > .container {
    padding-inline: 32px;
  }
  .why__title {
    font-size: 36px;
    margin-bottom: 28px;
    max-width: none;
  }
  .why__spark,
  .why__wave {
    display: none;
  }
  .why__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: dense;
    grid-auto-rows: minmax(140px, auto);
    gap: 16px;
    max-width: none;
  }
  .why__card.wid1,
  .why__card.wid2,
  .why__card.wid3,
  .why__card.wid4 { grid-column: span 1; }
  .why__card.wid2.picwtext {
    grid-column: span 2;
    min-height: 220px;
    padding: 28px 24px;
  }
  .why__card.empty { display: none !important; }
  .why__card {
    height: auto;
    min-height: 200px;
    font-size: 16px;
    padding: 24px 20px;
    border-radius: 24px;
  }
  .why__card.picwtext p { font-size: 16px; }
  .why__card.piconly {
    height: 200px;
    min-height: 200px;
    max-height: 200px;
    overflow: hidden;
  }
  .why__card.piconly img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  /* Trainers планшет (Figma 3179:4041): кадр 768×766, фото | текст */
  .block-trainers {
    padding: 40px 0;
  }
  .block-trainers > .container {
    padding-inline: 32px;
  }
  .trainers__title {
    max-width: none;
    font-size: 32px;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 32px;
  }
  .trainers__badge { display: none; }
  .trainers__list { gap: 32px; }
  .trainer {
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
    gap: 24px;
    align-items: center;
  }
  .trainer__media {
    max-width: 280px;
    aspect-ratio: 5 / 4;
    border-radius: 24px;
  }
  .trainer__name {
    font-size: 28px;
    margin-bottom: 6px;
    color: var(--neutral-900);
  }
  .trainer__role {
    font-size: 16px;
    margin-bottom: 12px;
  }
  .trainer__text {
    max-width: none;
    font-size: 14px;
    line-height: 1.4;
  }
  /* Story планшет (Figma 3179:4059): title ←; cyan|navy → class → trainer → quote */
  .block-story {
    padding: 40px 0;
  }
  .block-story > .container {
    padding-inline: 32px;
  }
  .story {
    padding: 0;
    border-radius: 0;
  }
  .story__head {
    justify-content: flex-start;
    margin-bottom: 24px;
  }
  .story__head-text { text-align: left; }
  .story__eyebrow-row {
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 6px;
  }
  .story__icon {
    display: none;
  }
  .story__eyebrow {
    font-size: 32px;
    line-height: 1.15;
    color: #195699;
  }
  .story__title {
    display: inline-block;
    width: 100%;
    font-size: 32px;
    line-height: 1.15;
    text-align: right;
  }
  .story__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
    gap: 16px;
  }
  .story-card {
    height: auto;
    min-height: 0;
    border-radius: 24px;
  }
  .story-card--media { border-radius: 40px; }
  .story-card--cyan {
    order: 1;
    grid-column: auto;
    min-height: 280px;
  }
  .story-card--navy {
    order: 2;
    grid-column: auto;
    min-height: 220px;
  }
  .story-card--class {
    order: 3;
    grid-column: 1 / -1;
    min-height: 200px;
    aspect-ratio: 16 / 9;
  }
  .story-card--trainer {
    order: 4;
    grid-column: 1 / -1;
    min-height: 200px;
    aspect-ratio: 16 / 9;
  }
  .story-card--quote {
    order: 5;
    grid-column: 1 / -1;
    min-height: 280px;
  }
  .story-card--cyan,
  .story-card--navy,
  .story-card--quote {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px 20px;
  }
  .story-card--cyan .story-card__text,
  .story-card--navy .story-card__text,
  .story-card--quote .story-card__text {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    height: auto;
    margin-top: auto;
    justify-content: flex-end;
  }
  .story-card--cyan .story-card__text p { font-size: 16px; opacity: 1; }
  .story-card--cyan .story-card__text p.story-card__lead { font-weight: 500; line-height: 1.2; }
  .story-card--cyan .story-card__text p.story-card__note { font-weight: 400; line-height: 1.4; }
  .story-card--navy .story-card__lead { font-size: 14px; font-weight: 500; line-height: 1.2; }
  .story-card--navy p.story-card__note { font-size: 14px; line-height: 1.4; opacity: 1; }
  .story-card--quote { padding: 24px 24px 18px; }
  .story-card--quote .story-card__text p { font-size: 20px; line-height: 1.3; }
  .story-card--media,
  .story-card--media img {
    min-height: 0;
    height: 100%;
  }
  .story__head { margin-bottom: 20px; }
  .story__eyebrow-row { margin-bottom: 20px; }
  .story__eyebrow { font-size: 44px; }
  .story__title { font-size: 34px; line-height: 1.2; }
  .story-card--class,
  .story-card--trainer { height: 320px; min-height: 320px; aspect-ratio: auto; }
  .story-card--quote { min-height: 266px; }
  /* Steps планшет (Figma 3179:4081): вертикальный список icon | текст, с номерами */
  .block-steps {
    padding: 40px 0;
  }
  .block-steps > .container {
    padding-inline: 32px;
  }
  .steps__title {
    margin: 0 0 32px;
    font-size: 36px;
    line-height: 1.15;
    letter-spacing: -0.015em;
  }
  .steps {
    max-width: none;
    margin-inline: 0;
    grid-template-columns: 1fr;
    gap: 28px;
    counter-reset: step;
  }
  .steps li:not(:last-child)::before,
  .steps li:not(:first-child)::after { display: none; }
  .steps li {
    text-align: left;
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 20px;
    row-gap: 0;
    align-items: start;
    padding: 0;
  }
  .steps__icon {
    grid-column: 1;
    grid-row: 1 / -1;
    align-self: start;
    width: 80px;
    height: 80px;
    margin: 0;
  }
  .steps__icon img,
  .steps__icon svg {
    width: 44px;
    height: 44px;
  }
  .steps h3 {
    grid-column: 2;
    grid-row: 1;
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.25;
    color: #171717;
  }
  .steps h3::before {
    counter-increment: step;
    content: counter(step) ". ";
  }
  .steps p {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
    max-width: none;
    font-size: 14px;
    line-height: 1.4;
    color: var(--neutral-700);
  }
  .stats { padding: 28px 20px; border-radius: 28px; }
  .stats__title { font-size: 32px; margin-bottom: 24px; gap: 10px; }
  .academy-mid__glow { display: none; }
  .stats__badge { display: none; }
  .stats__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px 12px;
  }
  .stats__list li { text-align: left; }
  .stats__list strong { font-size: 40px; }
  .stats__list span {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
    font-size: 14px;
    text-align: left;
  }
  .chat { right: 16px; bottom: 16px; }
  .chat__window { width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 110px)); }
  /* Course планшет (Figma 3179:3942): body → photo+features, gap 20 */
  .block-course {
    padding: 24px 0 48px;
  }
  .block-course > .container {
    padding-inline: 32px;
  }
  .course {
    display: grid;
    grid-template-columns: minmax(0, 434fr) minmax(200px, 250fr);
    grid-template-areas:
      "body body"
      "media features";
    gap: 20px;
    align-items: stretch;
  }
  .course__body {
    grid-area: body;
    padding: 40px;
    border-radius: 40px;
  }
  .course__head {
    gap: 12px;
    margin-bottom: 20px;
  }
  .course__title {
    font-size: 28px;
    line-height: 1.2;
  }
  .course__head .badge {
    display: none;
  }
  .course__meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 24px;
    margin-bottom: 30px;
  }
  .course__meta dt {
    font-size: 14px;
    margin-bottom: 10px;
  }
  .course__meta dd {
    font-size: 16px;
    font-weight: 500;
  }
  .course__format {
    gap: 10px;
    margin: 0 0 40px;
    font-size: 20px;
    font-weight: 500;
  }
  .course__format-label {
    font-size: 14px;
    font-weight: 500;
  }
  .course__format-value {
    font-size: 20px;
    font-weight: 500;
  }
  .course__text {
    margin: 0 0 24px;
    max-width: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
  }
  .course__btn {
    margin-top: 0;
    min-height: 46px;
    height: 46px;
    padding: 6px 9px 6px 28px;
    font-size: 16px;
  }
  .course__media {
    grid-area: media;
    margin: 0;
    min-height: 454px;
    height: 454px;
    border-radius: 30px;
  }
  .course__media img { border-radius: 30px; }
  .course__features {
    grid-area: features;
    width: auto;
    min-height: 454px;
    height: 454px;
    padding: 36px 20px 36px 24px;
    border-radius: 30px;
  }
  .course__features-list {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    grid-template-columns: none;
    gap: 0;
    width: 100%;
    height: 100%;
  }
  .course__features-list li {
    column-gap: 12px;
  }
  .course__features-list img {
    max-width: 53px;
    max-height: 53px;
  }
  .course__feature-text { gap: 5px; }
  .course__feature-text strong {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
  }
  .course__feature-text > span {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
  }

  .block-region, .block-more, .block-audience, .block-trainers, .block-form { padding: 36px 0; }

  /* More планшет (Figma 3179:3984): плашка 704, карточки 2×2 gap 16 */
  .block-more {
    padding: 48px 0;
  }
  .block-more > .container {
    padding-inline: 32px;
  }
  .more {
    padding: 32px 24px 32px;
  }
  .more::before {
    bottom: 0;
    border-radius: 40px;
  }
  .more__title {
    margin: 0 0 24px;
    padding: 0;
    font-size: 44px;
    line-height: 1.15;
    white-space: normal;
    max-width: none;
  }
  .more__mark::before {
    height: 0;
  }
  .more__lead {
    margin: 0 0 24px;
    margin-left: 0;
    padding-right: 0;
    max-width: none;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.25;
    text-align: left;
  }
  .more__cards {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .more-card {
    min-height: 260px;
    border-radius: 30px;
  }
  .more-card__body {
    padding: 20px 20px 12px;
  }
  .more-card h3 {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
  }
  .more-card p {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
  }
  .more-card__media {
    width: calc(100% - 20px);
    height: 130px;
    margin: auto 10px 9px;
    border-radius: 30px;
  }
  /* Audience планшет (Figma 3179:4013): title → карточки 2×2 */
  .block-audience {
    padding: 48px 0;
  }
  .block-audience > .container {
    padding-inline: 32px;
  }
  .audience {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .audience__title {
    font-size: 44px;
    line-height: 1.15;
    max-width: none;
  }
  .audience__grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .audience-card {
    aspect-ratio: auto;
    min-height: 260px;
    height: auto;
    padding: 20px;
    border-radius: 30px;
  }
  .audience-card__icon {
    margin-bottom: 10px;
  }
  .audience-card h3 {
    margin-bottom: 10px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
  }
  .audience-card p {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
  }

  /* Region планшет (Figma 3179:3924): title → visual 704×420 → text, gap 59 */
  .block-region {
    padding: 48px 0;
  }
  .block-region > .container {
    padding-inline: 32px;
  }
  .region {
    display: flex;
    flex-direction: column;
    gap: 59px;
    min-height: 0;
  }
  .region__content {
    display: contents;
    max-width: none;
    padding-top: 0;
  }
  .region__title-row { order: 1; }
  .region__icon { display: none; }
  .region__title {
    font-size: 44px;
    line-height: 1.15;
    letter-spacing: -0.015em;
  }
  .region__visual {
    order: 2;
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    height: 420px;
    margin-top: 0;
    min-height: 0;
  }
  .region__text {
    order: 3;
    margin: 0;
    max-width: none;
    font-size: 24px;
    line-height: 1.25;
    text-align: left;
  }
  .region__arc {
    right: 0;
    top: 0;
    left: auto;
    width: 60%;
    opacity: 1;
  }
  .region__logo {
    left: 65.2%;
    right: auto;
    top: 41.7%;
    width: 32.7%;
    max-width: none;
  }
  .region__tags {
    position: absolute;
    inset: 0;
    display: block;
    padding: 0;
  }
  .region__tags li {
    position: absolute;
    display: inline-flex;
    width: auto;
    height: 76px;
    min-height: 76px;
    margin: 0;
    padding: 20px 40px;
    border-radius: 20px;
    font-size: 28px;
    line-height: 1.2;
    white-space: nowrap;
  }
  .region__tags li:nth-child(1) { top: 11.9%; left: 19.7%; }
  .region__tags li:nth-child(2) { top: 33.3%; left: 25.9%; }
  .region__tags li:nth-child(3) { top: 54.8%; left: 13.2%; }
  .region__tags li:nth-child(4) { top: 76.2%; left: 33.8%; }
}

@media (max-width: 768px) {
  .hero__lead { font-size: 14px; font-weight: 400; }
  .form-cta__btns .btn { font-size: 16px; }
  .form-cta__btns .btn--primary { height: 46px; min-height: 46px; padding: 6px 9px 6px 28px; justify-content: space-between; }
  .form-cta__btns .btn--outline { height: 52px; min-height: 52px; padding: 16.5px 28px; }
  .field { gap: 4px; }
  .field > span { font-size: 12px; font-weight: 400; }
  .field input,
  .field select { height: 38px; padding: 8px 16px; border-color: var(--cyan-200); border-radius: 16px; font-size: 14px; }
  .field select { padding-right: 44px; }
  .field textarea { min-height: 84px; padding: 12px 16px; border-color: var(--cyan-200); border-radius: 16px; font-size: 14px; }
  .stepper { height: 38px; border-color: var(--cyan-500); border-radius: 16px; }
  .stepper__btn { flex-basis: 44px; width: 44px; height: 38px; border-radius: 14px; font-size: 18px; }
  .stepper__btn--plus { background: rgba(93, 196, 227, 0.15); color: #195699; }
  .stepper__value { font-weight: 500; }
  .form-cta__text:not(.form-cta__text--lead) { font-size: 12px; }
  .form-cta__text--lead { font-size: 16px; }
  .form-brands__item { min-height: 100px; padding: 20px 16px; border-radius: 24px; }
  .form__submit { flex-direction: column; align-items: stretch; gap: 16px; }
  .form__consent-wrap { width: 100%; }
  .form__submit .btn { align-self: flex-end; width: auto; height: 52px; min-height: 52px; padding: 6px 9px 6px 28px; font-size: 16px; }
  .course__text { font-weight: 400; }
  .story-card--cyan { order: 1; grid-column: auto; min-height: 260px; }
  .story-card--cyan .story-card__lead,
  .story-card--navy .story-card__lead { font-size: 14px; font-weight: 500; }
  .story-card--cyan .story-card__text p { font-size: 14px; opacity: 1; }
  .story-card--cyan .story-card__text p.story-card__lead { font-weight: 600; line-height: 1.2; }
  .story-card--navy p.story-card__note { font-size: 13px; line-height: 1.4; opacity: 1; }
  .story-card--quote .story-card__text p { font-size: 16px; font-weight: 300; }
  .cookies__actions .btn { width: auto; height: 46px; min-height: 46px; padding: 0 20px; justify-content: center; font-size: 14px; }
  .footer__bottom { color: var(--cyan-200); font-size: 11px; }
  .stores__address { font-size: 14px; }
  .stores__meta { font-size: 13px; line-height: 1.6; }
  .footer a.stores__tel { font-size: 16px; font-weight: 400; }
  .footer__legal { text-align: left; margin-left: 0; max-width: none; flex: none; font-size: 10px; }
}

@media (min-width: 481px) and (max-width: 768px) {
  .more__lead { color: var(--neutral-900); }
  .audience__grid { width: 672px; max-width: 100%; }
  .header__top,
  .header__top.container { padding: 10px 12px 10px 16px; gap: 8px; }
  .logo { margin-right: auto; }
  .logo__mark,
  .logo__img { width: 112px; height: 26px; }
  .logo__dot { left: 40px; top: 12px; width: 2px; height: 2px; }
  .header-search { flex: 0 0 220px; width: 220px; min-width: 220px; max-width: 220px; background: #F7F7F7; box-shadow: none; }
  .header-search__icon { padding-left: 6px; }
  .header-chip:not(.header-chip--login) { flex: 0 0 149px; width: 149px; height: 36px; padding: 10px 14px; gap: 0; background: #F7F7F7; }
  .header-chip:not(.header-chip--login) img { display: none; }
  .header-chip--login { background: #F7F7F7; }
  .header-chip--login img { width: 22px; height: 22px; }
  .header-cart--compact { background: #F7F7F7; }
  .burger { padding: 9px; }
  .header--search-open .header__top > :not(.header-search) { display: none; }
  .header--search-open .header__top,
  .header--search-open .header__top.container { height: 65px; min-height: 65px; }
  .header--search-open .header-search { flex: 1 1 auto; width: 100%; min-width: 0; max-width: none; height: 45px; border-radius: 999px; background: transparent; box-shadow: none; overflow: visible; }
  .header--search-open .header-search__form { display: flex; align-items: center; width: 100%; gap: 8px; }
  .header--search-open .header-search__close,
  .header--search-open .header-search.is-loading .header-search__close { position: static; display: grid; place-items: center; order: 1; flex: 0 0 40px; width: 40px; height: 40px; padding: 0; transform: none; }
  .header--search-open .header-search__field { display: block; order: 2; }
  .header--search-open .header-search__icon { order: 3; flex: 0 0 40px; width: 40px; max-width: 40px; height: 40px; padding: 0; border-radius: 50%; background-color: #F7F7F7 !important; box-shadow: none; }
  .header--search-open .header-search__field input { height: 45px; padding: 10px 16px; border: 1.5px solid #195699; border-radius: 999px; background: #FFF; box-shadow: 0 0 0 3px rgba(93, 196, 227, 0.35); font-size: 16px; }
}

@media (max-width: 480px) {
  :root {
    --pad: 16px;
    --header-h: 60px;
  }

  .header__top-wrap {
    overflow-x: clip;
  }

  .header__top,
  .header__top.container {
    padding: 10px 12px 10px 16px;
    gap: 8px;
    min-width: 0;
  }

  /* Отступ справа от логотипа до остальных элементов */
  .logo {
    flex: 0 1 auto;
    min-width: 0;
    margin-right: auto;
    padding-right: 8px;
  }

  .logo__mark,
  .logo__img {
    width: 112px;
    height: 26px;
  }
  .logo__dot {
    left: 40px;
    top: 12px;
    width: 2px;
    height: 2px;
  }

  /* Поиск — только круглая иконка */
  .header-search {
    flex: 0 0 40px;
    width: 40px;
    max-width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #F7F7F7;
    box-shadow: none;
  }
  .header-search__field,
  .header-search__btn { display: none; }
  .header-search__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
  }
  .header-search__icon img { width: 22px; height: 22px; }

  /* Опт: всегда текст, ширина по содержимому, шрифт сжимается */
  .header-chip:not(.header-chip--login) {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
    height: 36px;
    padding: 10px clamp(6px, 2.9vw, 14px);
    gap: 0;
    background: #F7F7F7;
    font-size: clamp(9px, 2.7vw, 13px);
    line-height: 16px;
    white-space: nowrap;
  }
  .header-chip:not(.header-chip--login) img { display: none; }
  .header-chip:not(.header-chip--login) span {
    display: inline;
    overflow: visible;
    text-overflow: unset;
    white-space: nowrap;
  }

  .header-chip--login {
    width: 40px;
    height: 40px;
    background: #F7F7F7;
  }
  .header-chip--login img { width: 22px; height: 22px; }

  .header-cart--compact { display: none; }

  .burger {
    width: 40px;
    height: 40px;
    margin-left: 0;
    padding: 9px;
  }

  /* Hero мобильный (Figma 3179:4256): кадр 440×735, контент top 177 / left 24 */
  .block-hero {
    padding: 0 20px 0;
  }
  .hero {
    min-height: 0;
    height: auto;
    border-radius: 0;
    gap: 9px;
  }
  .hero__stage {
    height: 735px;
    min-height: 735px;
    border-radius: 40px;
    justify-content: flex-start;
  }
  .hero__frame {
    border-radius: 40px;
  }
  .hero__content,
  .hero__content.container {
    /* Figma: content 400×354, left 24 / top 177 от кадра 440 */
    padding: 177px 16px 120px 24px;
  }
  .hero__title {
    font-size: 40px;
    line-height: 1.1;
    letter-spacing: -0.02em;
    max-width: 200px;
  }
  .hero__brand {
    display: block;
  }
  .hero__meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-top: 16px;
    max-width: none;
  }
  .hero__pill {
    height: 40px;
    font-size: 20px;
    line-height: 1.25;
    padding: 0 14px;
  }
  .hero__lead {
    max-width: none;
    flex: none;
    font-size: 14px;
    line-height: 1.2;
  }
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
    margin-top: 24px;
    gap: 10px;
    width: 100%;
    max-width: 260px;
  }
  .hero__actions .btn {
    width: 100%;
    justify-content: space-between;
    min-height: 52px;
    height: 52px;
    font-size: 16px;
    padding: 0 9px 0 24px;
    gap: 8px;
  }
  .hero__chips {
    gap: 7px;
  }
  .hero__chips li {
    height: 37px;
    min-height: 37px;
    /* Узкие поля + span: «практика на действующем» остаётся в 1 строке до <br> */
    padding: 4px 6px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: -0.02em;
  }
  .hero__partners {
    left: 24px;
    right: auto;
    bottom: 22px;
    padding: 7px 13px;
    gap: 11px;
  }
  .hero__partners-loma { width: 47px; height: 22px; }
  .hero__partners-dahua { width: 78px; height: 23px; }
  .hero__partners-x { font-size: 16px; }

  /* Region мобильный (Figma 3179:4274): 480×518, абсолютная компоновка */
  .block-region {
    padding: 0;
  }
  .block-region > .container {
    padding-inline: 0;
  }
  .region {
    display: block;
    position: relative;
    height: 518px;
    min-height: 518px;
    gap: 0;
  }
  .region__content {
    display: contents;
  }
  .region__title-row {
    position: absolute;
    left: 4.2%;
    top: 1.4%;
    z-index: 3;
    max-width: 66%;
    order: unset;
  }
  .region__title {
    font-size: 20px;
    line-height: 1.25;
    letter-spacing: -0.01em;
  }
  .region__visual {
    position: absolute;
    inset: 0;
    order: unset;
    width: 100%;
    height: 100%;
    margin: 0;
  }
  .region__arc {
    left: 30.8%;
    right: auto;
    top: 5.2%;
    width: 72.1%;
    opacity: 1;
  }
  .region__logo {
    left: 48.8%;
    right: auto;
    top: 35.5%;
    width: 35.4%;
  }
  .region__tags li {
    height: 43px;
    min-height: 43px;
    padding: 12px 24px;
    border-radius: 20px;
    font-size: 14px;
    line-height: 1.2;
  }
  .region__tags li:nth-child(1) { top: 23.9%; left: 12.9%; }
  .region__tags li:nth-child(2) { top: 37.7%; left: 15.4%; }
  .region__tags li:nth-child(3) { top: 51.6%; left: 12.3%; }
  .region__tags li:nth-child(4) { top: 65.5%; left: 37%; }
  .region__text {
    position: absolute;
    left: 8.1%;
    right: 8.1%;
    top: 77.6%;
    order: unset;
    margin: 0;
    max-width: none;
    font-size: 20px;
    line-height: 1.3;
    text-align: center;
  }

  /* Course мобильный (Figma 3179:4290): body → photo + features */
  .block-course {
    padding: 24px 0 32px;
  }
  .block-course > .container {
    padding-inline: 20px;
  }
  .course {
    grid-template-columns: minmax(0, 251fr) minmax(0, 179fr);
    gap: 16px 10px;
  }
  .course__body {
    padding: 24px 20px;
    border-radius: 40px;
  }
  .course__title {
    font-size: 20px;
    line-height: 1.3;
  }
  .course__head {
    margin-bottom: 20px;
  }
  .course__meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 30px;
  }
  .course__meta dt {
    font-size: 12px;
    margin-bottom: 6px;
  }
  .course__meta dd {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.25;
  }
  .course__format {
    gap: 10px;
    margin: 0 0 40px;
    font-size: 14px;
  }
  .course__format-label,
  .course__format-value {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
  }
  .course__text {
    margin: 0 0 24px;
    font-size: 14px;
    line-height: 1.2;
  }
  .course__media {
    min-height: 354px;
    height: 354px;
    border-radius: 30px;
  }
  .course__features {
    min-width: 0;
    min-height: 354px;
    height: 354px;
    padding: 24px 10px 24px 12px;
    border-radius: 30px;
    overflow: visible;
  }
  .course__features-list {
    min-width: 0;
  }
  .course__features-list img {
    width: 32px;
    height: 32px;
    max-width: 32px;
    max-height: 32px;
  }
  .course__features-list li {
    column-gap: 6px;
    min-width: 0;
  }
  .course__feature-text {
    flex: 1 1 auto;
    min-width: 0;
    gap: 2px;
  }
  .course__feature-text strong {
    font-size: 13px;
    line-height: 1.15;
    letter-spacing: -0.02em;
  }
  .course__feature-text > span {
    font-size: 11px;
    line-height: 1.25;
    letter-spacing: -0.02em;
  }
  .course__feature-text--swap strong {
    font-size: 13px;
  }
  .course__feature-text--swap > span {
    font-size: 11px;
  }

  /* More мобильный (Figma 3179:4332): без плашки, лид справа, карточки 2×2 */
  .block-more {
    padding: 20px 0 32px;
  }
  .block-more > .container {
    padding-inline: 20px;
  }
  .more {
    padding: 0;
  }
  .more::before {
    display: none;
  }
  .more__title {
    margin: 0 0 12px;
    padding: 0;
    font-size: clamp(14px, 4.167vw, 20px);
    line-height: 1.25;
    letter-spacing: 0;
    white-space: nowrap;
  }
  .more__mark::before {
    height: 0;
  }
  .more__lead {
    margin: 0 0 24px auto;
    max-width: 352px;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.375;
    text-align: right;
  }
  .more__cards {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    align-items: stretch;
  }
  /* Текст сверху, фото снизу inset 10 — без aspect-ratio у карточки (иначе фото наезжает) */
  .more-card {
    min-height: 240px;
    height: 240px;
    border-radius: 30px;
    box-shadow: none;
    overflow: hidden;
  }
  .more-card__body {
    flex: 0 0 auto;
    padding: clamp(12px, 4.167vw, 20px) clamp(12px, 4.167vw, 20px) 0;
  }
  .more-card h3 {
    margin: 0 0 clamp(8px, 2.083vw, 10px);
    font-size: clamp(12px, 2.917vw, 14px);
    font-weight: 500;
    line-height: 1.2;
  }
  .more-card p {
    font-size: clamp(11px, 2.917vw, 14px);
    font-weight: 500;
    line-height: 1.2;
  }
  .more-card__media {
    flex: 0 0 auto;
    width: calc(100% - 20px);
    height: clamp(69px, calc(26.333vw - 15px), 150px);
    max-height: none;
    margin: auto 10px 10px;
    border-radius: 20px;
    object-fit: cover;
  }

  /* Audience мобильный (Figma 3179:4377): title → карточки в 1 колонку */
  .block-audience {
    padding: 32px 0;
  }
  .block-audience > .container {
    padding-inline: 20px;
  }
  .audience {
    gap: 20px;
  }
  .audience__title {
    font-size: 28px;
    line-height: 1.2;
  }
  .audience__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .audience-card {
    aspect-ratio: auto;
    min-height: 0;
    height: auto;
    padding: 24px;
    border-radius: 0;
  }
  .audience-card__icon {
    width: 32px;
    margin-bottom: 14px;
  }
  .audience-card h3 {
    font-size: 16px;
    font-weight: 500;
    line-height: 1.25;
    margin-bottom: 10px;
  }
  .audience-card p {
    font-size: 14px;
    line-height: 1.35;
  }

  /* Trainers мобильный (Figma 3179:4360): кадр 480×728, фото | текст */
  .block-trainers {
    padding: 32px 0;
  }
  .block-trainers > .container {
    padding-inline: 20px;
  }
  .trainers__title {
    font-size: 28px;
    line-height: 1.15;
    margin-bottom: 24px;
  }
  .trainers__list { gap: 24px; }
  .trainer {
    grid-template-columns: 158px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
  }
  /* Геометрия кадра как в макете (Figma 3179:4360): overflow, фото по центру */
  .trainer__media {
    width: 158px;
    height: 212px;
    max-width: none;
    aspect-ratio: auto;
    border-radius: 30px;
    overflow: hidden;
  }
  .trainer__photo {
    width: 100%;
    height: 100%;
    object-fit: none;
    object-position: center center;
  }
  .trainer__name {
    font-size: 22px;
    margin-bottom: 4px;
  }
  .trainer__role {
    font-size: 13px;
    line-height: 1.3;
    margin-bottom: 8px;
  }
  .trainer__text {
    font-size: 13px;
    line-height: 1.35;
  }

  /* Story мобильный (Figma 3179:4405): 1 колонка в порядке HTML */
  .block-story {
    padding: 32px 0;
  }
  .block-story > .container {
    padding-inline: 20px;
  }
  .story__head {
    display: block;
    margin-bottom: 20px;
  }
  .story__eyebrow-row {
    display: block;
  }
  .story__eyebrow {
    display: block;
    width: 100%;
    font-size: 24px;
    text-align: right;
  }
  .story__title {
    font-size: 18px;
  }
  .story__grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .story-card--cyan,
  .story-card--class,
  .story-card--navy,
  .story-card--trainer,
  .story-card--quote {
    order: 0;
    grid-column: auto;
    min-height: 0;
  }
  .story-card--cyan,
  .story-card--navy,
  .story-card--quote {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    min-height: 260px;
  }
  .story-card--cyan .story-card__text,
  .story-card--navy .story-card__text,
  .story-card--quote .story-card__text {
    margin-top: auto;
  }
  .story-card--class,
  .story-card--trainer {
    aspect-ratio: 16 / 10;
    min-height: 180px;
  }
  .story-card--cyan .story-card__lead {
    font-size: 15px;
  }
  .story-card--cyan .story-card__note,
  .story-card--navy .story-card__lead,
  .story-card--navy .story-card__note {
    font-size: 13px;
  }
  .story-card--quote .story-card__text p,
  .story-card p {
    font-size: 14px;
  }

  /* Steps мобильный (Figma 3179:4428): тот же список, компактнее */
  .block-steps {
    padding: 32px 0;
  }
  .block-steps > .container {
    padding-inline: 20px;
  }
  .steps__title {
    margin-bottom: 24px;
    font-size: 28px;
  }
  .steps {
    gap: 20px;
  }
  .steps li {
    grid-template-columns: 56px minmax(0, 1fr);
    column-gap: 14px;
  }
  .steps__icon {
    width: 56px;
    height: 56px;
  }
  .steps__icon img,
  .steps__icon svg {
    width: 32px;
    height: 32px;
  }
  .steps h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: #171717;
  }
  .steps p {
    font-size: 13px;
    line-height: 1.35;
  }

  /* Stats мобильный: 2×2 */
  .stats__list {
    grid-template-columns: 1fr 1fr;
    gap: 20px 12px;
  }
  .stats__list li { padding: 0; text-align: center; }
  .stats__list strong { font-size: 36px; }
  .stats__list span { font-size: 12px; }

  /* Why мобильный: как на планшете — 2 колонки, empty скрыты, dense */
  .block-why {
    padding: 0;
  }
  .block-why > .container {
    padding-inline: 20px;
  }
  .why__title {
    font-size: clamp(20px, 5.6vw, 26px);
    margin-bottom: 20px;
    text-align: center;
    white-space: nowrap;
  }
  .why__spark,
  .why__wave {
    display: none;
  }
  .why__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-flow: dense;
    grid-auto-rows: minmax(8px, auto);
    gap: 10px;
  }
  .why__card.wid1,
  .why__card.wid2,
  .why__card.wid3,
  .why__card.wid4 { grid-column: span 1; }
  .why__card.wid2.picwtext {
    grid-column: span 2;
    min-height: 180px;
    padding: 20px 16px;
  }
  .why__card {
    min-height: 120px;
    font-size: 11px;
    padding: 16px 14px;
    border-radius: 20px;
  }
  .why__card.picwtext p { font-size: 11px; }
  .why__card.piconly {
    height: 120px;
    min-height: 120px;
    max-height: 120px;
    overflow: hidden;
  }
  .why__card.piconly img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .why__card.empty { display: none !important; }

  /* Program мобильный (Figma 3179:4517): компактнее, пункты UPPERCASE */
  .block-program {
    padding: 32px 0;
  }
  .block-program > .container {
    padding-inline: 20px;
  }
  .program__title {
    margin-bottom: 20px;
    font-size: 20px;
    line-height: 1.2;
    white-space: normal;
    max-width: none;
  }
  .checklist {
    margin-left: 40px;
    margin-right: 40px;
    padding-left: 20px;
  }
  .checklist::before {
    left: 3px;
    top: 6px;
    bottom: 6px;
  }
  .checklist li::before {
    left: -20px;
    top: 10px;
    width: 8px;
    height: 8px;
  }

  /* Form мобильный: геометрия полей как на скрине */
  .form {
    padding: 24px 20px;
    border-radius: 28px;
  }
  .form__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .form__grid > .field,
  .form__grid > .field--wide {
    width: 100%;
    max-width: 100%;
  }
  .field { gap: 6px; }
  .field span { font-size: 12px; }
  .field__hint-inline { font-size: 11px; }
  .field input,
  .field select {
    height: 48px;
    padding: 12px 14px;
    font-size: 14px;
    border-radius: 16px;
    border-color: #CDE7F5;
    background: #F7F7F7;
  }
  .field select {
    padding-right: 40px;
    background-position: right 14px center;
    background-size: 11px 7px;
  }
  .field textarea {
    min-height: 104px;
    padding: 12px 14px;
    font-size: 14px;
    border-radius: 16px;
    border-color: #CDE7F5;
    background: #F7F7F7;
  }
  .stepper {
    height: 48px;
    border-radius: 16px;
    border-color: #CDE7F5;
  }
  .stepper__btn {
    width: 48px;
    height: 100%;
    margin: 0;
    border-radius: 22%;
    background: rgba(93, 196, 227, 0.15);
    font-size: 20px;
  }
  .stepper__btn:not(:disabled):hover {
    background: rgba(93, 196, 227, 0.25);
  }
  .stepper__btn--plus {
    color: #195699;
    font-weight: 500;
  }
  .stepper__value { font-size: 15px; }
  .form__submit {
    justify-content: flex-start;
    margin-top: 20px;
  }
  .form__submit .btn {
    width: auto;
    min-height: 48px;
    padding-inline: 20px;
    font-size: 14px;
  }

  /* Form мобильный (скрин): CTA-карточка → кнопки столбиком → бренды 2 в ряд */
  .block-form {
    padding: 32px 0;
  }
  .block-form > .container {
    padding-inline: 20px;
  }
  .form-layout {
    gap: 16px;
  }
  .form-layout__intro {
    gap: 12px;
  }
  .form-cta {
    flex: none;
    gap: 16px;
    padding: 24px 20px;
    border-radius: 24px;
  }
  .form-cta__title {
    font-size: 18px;
    line-height: 1.2;
    text-align: left;
    white-space: normal;
    max-width: none;
  }
  .form-cta__br { display: inline; }
  .form-cta__texts {
    gap: 6px;
  }
  .form-cta__text--lead {
    font-size: 16px;
    color: #171717;
  }
  .form-cta__text:not(.form-cta__text--lead) {
    font-size: 12px;
    opacity: 0.6;
  }
  .form-cta__btns {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: 10px;
    margin-top: 0;
    padding-top: 0;
  }
  .form-cta__btns .btn {
    width: auto;
    max-width: 100%;
    flex: none;
    justify-content: center;
    font-size: 14px;
    min-height: 48px;
    padding-inline: 18px;
  }
  .form-brands {
    gap: 12px;
  }
  .form-brands__item {
    min-height: 100px;
    padding: 20px 16px;
    border-radius: 24px;
  }
  .form-brands__item img {
    height: 28px;
  }
  .form-brands__item:first-child img { height: 26px; }
  .form-brands__item:last-child img { height: 32px; }

  /* Footer мобильный (Figma 3179:6117): всё в одну колонку */
  .footer {
    padding: 36px 0 24px;
  }
  .footer > .container {
    padding-inline: 20px;
  }
  .footer__inner {
    gap: 28px;
  }
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer__about {
    grid-column: auto;
  }
  .footer__logo img { width: 120px; }
  .footer__about p {
    margin-top: 12px;
    max-width: none;
    font-size: 13px;
    line-height: 1.6;
  }
  .footer__title {
    margin-bottom: 12px;
    font-size: 15px;
  }
  .footer__list { gap: 8px; }
  .footer__list a { font-size: 14px; }
  .footer__phone {
    margin-bottom: 12px;
    font-size: 20px;
  }
  .footer__contacts a { font-size: 14px; }
  .stores {
    padding-top: 24px;
  }
  .stores__title {
    margin-bottom: 14px;
    font-size: 15px;
  }
  .stores__list {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .stores__card {
    gap: 8px;
    padding: 14px 16px;
    border-radius: 14px;
  }
  .stores__address { font-size: 14px; }
  .stores__meta { font-size: 10px; }
  .footer a.stores__tel { font-size: 16px; }
  .footer__bottom {
    flex-direction: column;
    gap: 10px;
    padding-top: 16px;
    font-size: 11px;
  }
  .footer__copy {
    flex-wrap: nowrap;
    gap: 8px 12px;
    font-size: 11px;
    white-space: nowrap;
  }
  .footer__copy a {
    white-space: nowrap;
  }
  .footer__legal {
    font-size: 10px;
    text-align: left;
  }

  /* Cookies мобильный (Figma 3288:17955): карточка 448×189, отступы 16 */
  .cookies {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
    max-width: 448px;
    margin-inline: auto;
  }
  .cookies__card {
    padding: 20px;
    border-radius: 16px;
  }
  .cookies__title {
    gap: 8px;
    margin-bottom: 10px;
    font-size: 16px;
  }
  .cookies__icon {
    width: 24px;
    height: 24px;
  }
  .cookies__card p {
    margin-bottom: 14px;
    font-size: 13px;
    line-height: 1.35;
  }
  .cookies__actions {
    flex-wrap: nowrap;
    gap: 10px;
  }
  .cookies__actions .btn {
    flex: 1 1 0;
    min-width: 0;
    min-height: 42px;
    padding-inline: 14px;
    font-size: 13px;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .header__top,
  .header__top.container { gap: 8px; padding: 10px 12px 10px 16px; }
  .logo__mark,
  .logo__img { width: 112px; }
  .logo__dot { left: 40px; }
  .header-chip:not(.header-chip--login) { padding-inline: 14px; }
  .header--search-open .header__top > :not(.header-search) { display: none; }
  .header--search-open .header__top,
  .header--search-open .header__top.container { height: 65px; min-height: 65px; }
  .header--search-open .header-search { flex: 1 1 auto; width: 100%; max-width: none; height: 45px; border-radius: 999px; background: transparent; box-shadow: none; overflow: visible; }
  .header--search-open .header-search__form { display: flex; align-items: center; width: 100%; gap: 8px; }
  .header--search-open .header-search__close,
  .header--search-open .header-search.is-loading .header-search__close { position: static; display: grid; place-items: center; order: 1; flex: 0 0 40px; width: 40px; height: 40px; padding: 0; transform: none; }
  .header--search-open .header-search__field { display: block; order: 2; }
  .header--search-open .header-search__icon { order: 3; flex: 0 0 40px; width: 40px; max-width: 40px; height: 40px; border-radius: 50%; background-color: #F7F7F7 !important; box-shadow: none; }
  .header--search-open .header-search__field input { height: 45px; padding: 10px 16px; border: 1.5px solid #195699; border-radius: 999px; background: #FFF; box-shadow: 0 0 0 3px rgba(93, 196, 227, 0.35); font-size: 16px; }
  body:has(.header--search-open) .title-search-result { position: fixed !important; top: 73px !important; left: 16px !important; right: 16px !important; width: auto !important; height: auto; max-height: none; overflow: visible; }

  .hero__lead { width: 100%; }
  .hero__chips li { height: auto; min-height: 44px; padding: 8px; font-size: 14px; }
  .course__meta dt { font-size: 14px; font-weight: 400; }
  .course__meta dd { font-size: 14px; font-weight: 500; }
  .course__format-label { font-weight: 400; }
  .course__format-value { font-weight: 400; }
  .course__media,
  .course__features { min-height: 300px; height: 300px; }
  .course__feature-text strong,
  .course__feature-text--swap strong { font-size: 14px; }
  .course__feature-text > span,
  .course__feature-text--swap > span { font-size: 12px; }
  .more-card p { font-weight: 500; }
  .trainer__role,
  .trainer__text { font-size: 12px; }
  .story__eyebrow { font-size: 28px; }
  .story-card--cyan { padding: 24px 24px 10px; }
  .story-card--cyan .story-card__text p { font-size: 14px; font-weight: 500; opacity: 1; }
  .story-card--cyan .story-card__text p.story-card__lead { font-weight: 600; line-height: 1.2; }
  .story-card--cyan .story-card__text p.story-card__note { line-height: 1.3; opacity: 1; }
  .story-card--navy { padding: 24px 24px 61px; }
  .story-card--navy .story-card__lead { font-size: 14px; font-weight: 500; line-height: 1.2; }
  .story-card--navy p.story-card__note { font-size: 13px; font-weight: 400; line-height: 1.4; opacity: 1; }
  .story-card--quote { padding: 24px; }
  .story-card--quote .story-card__text p { font-size: 16px; font-weight: 300; line-height: 1.25; }
  .steps p { font-size: 13px; }
  .why__card { height: 90px; min-height: 90px; font-size: 10px; font-weight: 500; padding: 0 14px; border-radius: 20px; }
  .why__card.wid2.picwtext { grid-column: span 2; min-height: 160px; padding: 20px 16px; }
  .why__card.picwtext p { font-size: 14px; font-weight: 400; }
  .why__card.piconly { height: 90px; min-height: 90px; max-height: 150px; }
  .checklist li { padding: 6px 0 6px 14px; font-size: 13px; line-height: 1.25; }
  .form-cta__text:not(.form-cta__text--lead) { font-size: 12px; }
  .form-cta__btns .btn { font-size: 16px; }
  .form-cta__btns .btn--primary { height: 46px; min-height: 46px; padding: 6px 9px 6px 28px; }
  .form-cta__btns .btn--outline { height: 42px; min-height: 42px; padding: 10px 28px; }
  .field > span { font-size: 12px; }
  .field input,
  .field select { height: 38px; padding: 8px 16px; border-radius: 16px; font-size: 14px; }
  .field textarea { min-height: 84px; padding: 12px 16px; border-radius: 16px; font-size: 14px; }
  .stepper { height: 38px; border-radius: 16px; }
  .stepper__btn { flex-basis: 44px; width: 44px; height: 38px; border-radius: 14px; font-size: 18px; }
  .stepper__btn--plus { background: rgba(93, 196, 227, 0.15); color: #195699; }
  .stepper__value { font-size: 16px; font-weight: 500; }
  .form__submit { margin-top: 20px; }
  .form__submit .btn { height: 52px; min-height: 52px; padding: 6px 9px 6px 28px; font-size: 16px; }
  .footer__about p { font-size: 12px; }
  .footer__phone { font-size: 24px; }
  .stores__address { font-size: 14px; }
  .stores__meta { font-size: 13px; line-height: 1.6; }
  .footer a.stores__tel { font-size: 16px; font-weight: 400; }
  .footer__bottom,
  .footer__copy { font-size: 11px; }
  .footer__legal { text-align: left; margin-left: 0; max-width: none; flex: none; font-size: 10px; }
  .cookies__card p { font-size: 14px; }
  .cookies__actions .btn { flex: 0 0 auto; width: auto; height: 46px; min-height: 46px; padding: 0 20px; font-size: 14px; }
  .header__top,
  .header__top.container { display: flex; align-items: center; }
  .logo { margin-right: auto; padding-right: 0; }
  .header--search-open .header__top { display: flex; }
  .hero__pill { flex: none; width: 107px; height: 40px; }
  .hero__lead { width: 100%; max-width: 100%; min-width: 0; white-space: normal; }
  .story-card__text { min-width: 0; max-width: 100%; }
  .story-card p { white-space: normal; overflow-wrap: break-word; }
  .story-card--cyan { min-height: 260px; }
  .story-card--navy { min-height: 276px; }
  .story-card--class,
  .story-card--trainer { height: 260px; min-height: 260px; aspect-ratio: auto; }
  .story-card--quote { min-height: 266px; }
  .field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23195699' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
  }
  .footer { padding: 40px 0 32px; }
  .footer > .container { padding-inline: 16px; }
  .footer__logo img { width: 148px; }
  .footer__title { font-size: 14px; }
  .stores__title { font-size: 20px; }
  .stores__card { gap: 10px; padding: 20px 24px; border-radius: 24px; }
  .footer a.stores__tel { font-size: 16px; font-weight: 400; }
}

@media (min-width: 401px) and (max-width: 480px) {
  .header-chip:not(.header-chip--login) { flex-basis: 149px; width: 149px; }
}

@media (max-width: 400px) {
  .course { column-gap: 8px; }
  .course__features { padding-inline: 10px; }
  .course__features-list img { width: 24px; height: 24px; max-width: 24px; max-height: 24px; }
  .course__features-list li { column-gap: 4px; }
  .course__feature-text strong,
  .course__feature-text--swap strong { font-size: 13px; }
  .course__feature-text > span,
  .course__feature-text--swap > span { font-size: 11px; }
}

@media (max-width: 360px) {
  :root { --pad: 12px; }

  .block-hero { padding: 0 12px 0; }
  .hero__stage {
    height: 640px;
    min-height: 640px;
  }
  .hero__content,
  .hero__content.container {
    padding: 140px 12px 100px 16px;
  }
  .hero__title { font-size: 36px; max-width: 180px; }
  .hero__actions { max-width: 260px; gap: 10px; }

  .header__top,
  .header__top.container {
    padding: 8px;
    gap: 4px;
  }

  .logo {
    padding-right: 6px;
  }

  .logo__mark,
  .logo__img {
    width: 88px;
    height: 19px;
  }
  .logo__dot {
    left: 35px;
    top: 9px;
    width: 2px;
    height: 2px;
  }

  .header-search,
  .header-search__icon {
    width: 32px;
    max-width: 32px;
    height: 32px;
  }

  .header-chip:not(.header-chip--login) {
    height: 32px;
    padding: 4px 6px;
    font-size: clamp(8px, 2.4vw, 10px);
  }

  .header-chip--login {
    width: 32px;
    height: 32px;
  }
  .header-chip--login img { width: 20px; height: 20px; }

  .burger {
    width: 32px;
    height: 32px;
    padding: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn__arrow, .menu-bar__link, .nav__drop, .nav__drop a, .header-chip, .header-btn, .header-search__btn, .header-call, .header-cart, .field input, .field select, .field textarea, .stepper__btn, .header-search__field input, .title-search-result, .search-hit, .search-category, .search-title-result__all, .toggle__track, .toggle__knob { transition: none; }
  .logo__dot,
  .header-search__spinner { animation: none; }
}
