/* Стили сайта учебного центра «БИОМ». Один файл на все страницы.
   Визуальный язык — по образцу numa.uprock.pro: тёплый белый фон, тёмно-синий
   текст, крупные скругления, «пилюли» вместо кнопок. Классы — с префиксом nm-.
   Раздел «Сведения» добавляет к этому свой sveden.css. */

/* ---------- Шрифт ---------- */

/* Onest лежит в static/site/fonts — сайт не обращается к Google Fonts.
   Файлы вариативные (вес 100–900 в одном файле), разбиты по наборам символов, как у
   Google: браузер скачивает только те, символы которых есть на странице.
   Знак ₽ (U+20BD) — в latin-ext. */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/onest-cyrillic-ext.11a468877c94.woff2") format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/onest-cyrillic.fe2bd26ae82a.woff2") format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/onest-latin-ext.3e2cb9888206.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/onest-latin.3db826ed1c5d.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;
}

/* ---------- Сброс ---------- */

/* Небольшой сброс вместо Tailwind: на него опираются все правила ниже. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  background: #fffefc;
  scroll-behavior: smooth;
  /* Полоса прокрутки страницы скрыта; колесо, тачпад, клавиши и свайп работают как обычно. */
  scrollbar-width: none;
}

html::-webkit-scrollbar { display: none; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  font-family: 'Onest', system-ui, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, figure, dl, dd {
  margin: 0;
}

h1, h2, h3, h4 {
  font-size: inherit;
  font-weight: inherit;
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

img, svg, video, iframe {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: inherit;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

table {
  border-collapse: collapse;
}

/* Страница занимает всю высоту окна, подвал прижат к низу. */
.nm-main {
  flex: 1 0 auto;
}

/* На страницах без фото во весь экран шапка лежит над содержимым — оставляем под неё место. */
body:not(.has-hero) .nm-main {
  padding-top: calc(var(--nm-gap) + 46px + 2 * clamp(10px, 1.4vw, 20px));
}

/* ---------- Переменные ---------- */

.nm {
  --nm-ink: #010f2b;
  --nm-muted: rgba(1, 15, 43, 0.56);
  --nm-bg: #fffefc;
  --nm-soft: #f1f4f9;
  --nm-mist: #dbe4ec;
  --nm-gap: clamp(8px, 1.05vw, 16px);          /* отступ блоков от края окна */
  --nm-pad: clamp(16px, 2.4vw, 40px);          /* внутренние поля блоков */
  --nm-r: clamp(22px, 2.3vw, 40px);            /* скругление блоков */
  background: var(--nm-bg);
  color: var(--nm-ink);
}

/* ---------- Пилюли ---------- */

.nm-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 46px;
  padding: 0.7rem 1.3rem;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
}

.nm-pill:hover { transform: translateY(-1px); }
.nm-pill:disabled { opacity: 0.35; cursor: default; transform: none; }

.nm-pill--light { background: #fff; color: var(--nm-ink); }
.nm-pill--light:hover { background: var(--nm-ink); color: #fff; }

.nm-pill--dark { background: var(--nm-ink); color: #fff; }
.nm-pill--dark:hover { background: #17305f; }

.nm-pill--soft { background: var(--nm-soft); color: var(--nm-ink); }

.nm-pill--glass {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.nm-pill--glass:hover { background: #fff; color: var(--nm-ink); }

.nm-pill--icon { width: 46px; padding: 0; }

.nm-pill--lg {
  min-height: 64px;
  padding: 1rem 1.9rem;
  font-size: clamp(1rem, 1.25vw, 1.2rem);
}

/* ---------- Шапка ---------- */

.nm-header {
  position: fixed;
  top: calc(var(--nm-gap) + clamp(10px, 1.4vw, 20px));
  left: calc(var(--nm-gap) + clamp(10px, 1.4vw, 20px));
  right: calc(var(--nm-gap) + clamp(10px, 1.4vw, 20px));
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  pointer-events: none;                       /* сквозь пустые места шапки можно кликать */
}

.nm-header > * { pointer-events: auto; }
.nm-header > :first-child { justify-self: start; }

.nm-header__right {
  display: flex;
  gap: 0.5rem;
  justify-self: end;
}

.nm-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  text-decoration: none;
  transition: color 0.25s ease;
}

.nm-logo span { font-style: italic; }

/* Логотип — чёрные линии; поверх фото делаем его белым. */
.nm-logo img {
  width: 1.5em;
  height: 1.5em;
  object-fit: contain;
  filter: invert(1);
  transition: filter 0.25s ease;
}

/* Тёмный вид шапки: ниже первого экрана (класс is-solid ставит site.js)
   и сразу — на страницах без фото во весь экран. */
body:not(.has-hero) .nm-header .nm-logo,
.nm-header.is-solid .nm-logo { color: var(--nm-ink); }
body:not(.has-hero) .nm-header .nm-logo img,
.nm-header.is-solid .nm-logo img { filter: none; }

body:not(.has-hero) .nm-header .nm-pill--glass,
.nm-header.is-solid .nm-pill--glass {
  background: rgba(219, 228, 236, 0.82);
  color: var(--nm-ink);
}

body:not(.has-hero) .nm-header .nm-pill--glass:hover,
.nm-header.is-solid .nm-pill--glass:hover { background: var(--nm-ink); color: #fff; }

/* Затемнение страницы под открытым меню. */
.nm-scrim {
  position: fixed;
  inset: 0;
  z-index: 45;
  background: rgba(1, 15, 43, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nm-scrim.is-open {
  opacity: 1;
  visibility: visible;
}

/* Панель меню выезжает слева (класс is-open ставит site.js). */
.nm-menu {
  position: fixed;
  top: var(--nm-gap);
  bottom: var(--nm-gap);
  left: var(--nm-gap);
  z-index: 50;
  display: flex;
  flex-direction: column;
  width: min(440px, calc(100vw - 2 * var(--nm-gap)));
  padding: var(--nm-pad);
  background: var(--nm-bg);
  border-radius: var(--nm-r);
  color: var(--nm-ink);
  transform: translateX(calc(-100% - 2 * var(--nm-gap)));
  visibility: hidden;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.4s;
}

.nm-menu.is-open {
  transform: translateX(0);
  visibility: visible;
}

.nm-menu__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nm-menu__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--nm-muted);
}

.nm-menu__nav {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
}

.nm-menu__nav a {
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: var(--nm-ink);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

/* Выделенный пункт («Личный кабинет»). Селектор с .nm-menu__nav — чтобы перебить
   цвет из правила .nm-menu__nav a выше. */
.nm-menu__nav .nm-menu__accent { color: #e06c00; }

.nm-menu__nav a:hover { opacity: 0.5; }
.nm-menu__nav a[aria-current="page"] { opacity: 0.35; }

.nm-menu__foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  font-weight: 600;
}

.nm-menu__foot a { color: var(--nm-ink); text-decoration: none; }
.nm-menu__foot .nm-pill { margin-top: 1rem; align-self: stretch; }

/* ---------- Первый экран ---------- */

.nm-hero {
  position: relative;
  height: calc(100vh - 2 * var(--nm-gap));
  height: calc(100svh - 2 * var(--nm-gap));
  min-height: 560px;
  margin: var(--nm-gap);
  border-radius: var(--nm-r);
  overflow: hidden;
  background: #6f93b3;
  color: #fff;
}

.nm-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% 30%;
}

/* Затемнение слева и снизу — под текст. */
.nm-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(1, 15, 43, 0.72) 0%, rgba(1, 15, 43, 0.32) 48%, rgba(1, 15, 43, 0) 75%),
    linear-gradient(0deg, rgba(1, 15, 43, 0.45) 0%, rgba(1, 15, 43, 0) 45%);
}

.nm-hero__copy {
  position: absolute;
  left: var(--nm-pad);
  right: var(--nm-pad);
  bottom: var(--nm-pad);
  z-index: 1;
}

/* ---------- Карточка справа ---------- */

.hero-badge {
  position: absolute;
  top: 20%;
  right: clamp(16px, 4vw, 64px);
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: clamp(240px, 18vw, 300px);
  padding: 1rem;
  background: #e0e0e0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  text-align: left;
  color: #111;
  border-radius: 10px;
}

.hero-badge__img {
  display: block;
  flex: 0 0 30%;
  width: 30%;
  height: auto;
}

.hero-badge__text {
  margin: 0;
  font-size: clamp(0.8rem, 0.95vw, 1rem);
  font-weight: 600;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nm-hero__title {
  max-width: 17em;
  margin: 0;
  font-size: clamp(2rem, 4.7vw, 5.2rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.nm-hero__title2 {
  max-width: 17em;
  margin: 0;
  font-size: clamp(2rem, 4.7vw, 5.2rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.98;
  color: #ff7b00;
}

.nm-hero__lead {
  max-width: 32em;
  margin: clamp(1rem, 1.8vw, 1.75rem) 0 0;
  font-size: clamp(1rem, 1.3vw, 1.3rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.82);
}

.nm-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: clamp(1.5rem, 2.6vw, 2.75rem);
}

/* ---------- Секции ---------- */

.nm-section {
  padding: clamp(3.5rem, 7.5vw, 8rem) calc(var(--nm-gap) + var(--nm-pad));
}

/* Секция-плашка на светло-сером фоне. */
.nm-section--soft {
  margin: 0 var(--nm-gap);
  padding-left: var(--nm-pad);
  padding-right: var(--nm-pad);
  background: var(--nm-soft);
  border-radius: var(--nm-r);
}

.nm-title {
  margin: 0 0 clamp(1.75rem, 3.6vw, 3.75rem);
  font-size: clamp(2rem, 4.6vw, 4.8rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}

.nm-title2 {
  margin: 0 0 clamp(1.75rem, 3.6vw, 3.75rem);
  font-size: clamp(2rem, 4.6vw, 4.8rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
  color: #e06c00;
}

.nm-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  margin-bottom: clamp(1.75rem, 3.6vw, 3.75rem);
}

.nm-head .nm-title { margin-bottom: 0; }

.nm-kicker {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--nm-muted);
}

.nm-text {
  margin: 0;
  font-size: clamp(1rem, 1.15vw, 1.15rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.4;
  color: var(--nm-muted);
}

.nm-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: var(--nm-soft);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.nm-chip--light { background: #fff; }

/* ---------- Цифры ---------- */

.nm-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--nm-gap);
}

.nm-fact {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(280px, 30vw, 480px);
  padding: var(--nm-pad);
  border-radius: var(--nm-r);
  overflow: hidden;
}

.nm-fact--soft { background: var(--nm-mist); }
.nm-fact--dark { background: var(--nm-ink); color: #fff; }
.nm-fact--photo { color: #fff; }

.nm-fact--photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nm-fact--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(1, 15, 43, 0.78) 0%, rgba(1, 15, 43, 0.1) 70%);
}

.nm-fact__value,
.nm-fact__label {
  position: relative;
  z-index: 1;
  margin: 0;
}

/* Весь текст карточки с фото — поверх фотографии и затемнения, а не только цифра
   и подпись: иначе подпись-«кикер» и заголовок прячутся под картинкой. */
.nm-fact--photo > :not(img) {
  position: relative;
  z-index: 1;
}

.nm-fact--photo .nm-kicker { color: rgba(255, 255, 255, 0.75); }

/* Выделенная подпись: полупрозрачная «пилюля» — сквозь неё видно фото, тонкая светлая
   рамка и размытие фона держат её читаемой (как кнопки в шапке).
   <p class="nm-kicker nm-kicker--chip">Документ</p> */
.nm-kicker--chip,
.nm-fact--photo .nm-kicker--chip {
  align-self: flex-start;
  padding: 0.4rem 0.85rem;
  border: 1px solid rgba(0, 0, 0, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #000000;
  font-weight: 700;
}

.nm-fact__value {
  /* Самое длинное значение — диапазон часов вида «8–400 ч.»: должно влезать в треть ширины. */
  font-size: clamp(3.25rem, 6.6vw, 7rem);
  font-weight: 600;
  letter-spacing: -0.06em;
  line-height: 0.9;
  white-space: nowrap;
}

.nm-fact__value span {
  font-size: 0.32em;
  letter-spacing: -0.03em;
}

.nm-fact__label {
  max-width: 20em;
  margin-top: 1rem;
  font-size: clamp(0.98rem, 1.2vw, 1.2rem);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.3;
  opacity: 0.72;
}

/* ---------- Для кого подходит ---------- */

/* Широкая карточка на весь ряд, под ней две карточки с цифрами. */
.nm-facts--audience {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nm-feature {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--nm-gap);
  padding: clamp(8px, 0.8vw, 12px);
  border-radius: var(--nm-r);
  background: var(--nm-soft);
}

/* Фото по высоте описания, лишнее обрезается (как у блоков преимуществ). */
.nm-feature__img {
  width: 100%;
  height: 0;
  min-height: 100%;
  object-fit: cover;
  border-radius: calc(var(--nm-r) - 8px);
}

/* min-width: 0 — иначе бегущая строка (её лента шире экрана) раздвигает карточку. */
.nm-feature__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  padding: clamp(1rem, 2.4vw, 2.5rem);
}

.nm-feature__title {
  font-size: clamp(1.8rem, 3.4vw, 3.6rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.02;
}

/* Подчёркнутое слово в заголовке: <span class="nm-underline">Без</span>.
   Оранжевая линия, отодвинута от букв; толщина и отступ — от размера шрифта. */
.nm-underline {
  text-decoration: underline;
  text-decoration-color: #000000;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.12em;
}

.nm-feature__title2 {
  font-size: clamp(1.8rem, 3.4vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.02;
  color: #ff7b00;
}

/* Выделенные слова в заголовке — как маркером. */
.nm-feature__title mark {
  padding: 0 0.12em;
  border-radius: 0.18em;
  background: var(--nm-mist);
  color: inherit;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Список преимуществ с галочками в кружках. */
.nm-checks {
  display: grid;
  gap: 0.6rem;
  width: 100%;
  margin: 0.25rem 0;
}

/* Выделенная цифра или слово внутри пункта: <span class="nm-checks_text">…</span>. */
.nm-checks_text {
  color: #ff7b00;
  font-size: 1.10em;
  gap: 0.6rem;
  margin: 0.25rem 0;
  /* font-weight: 700; */
  /* letter-spacing: -0.03em; */
  /* line-height: 1; */
}

/* Пункт — обычный текстовый блок, чтобы выделение внутри стояло в строке;
   галочка вынесена влево абсолютно. */
.nm-checks li {
  position: relative;
  display: block;
  padding: 0.85rem 1.1rem 0.85rem calc(0.85rem + 34px + 0.9rem);
  border-radius: 18px;
  background: #fff;
  font-size: clamp(0.98rem, 1.15vw, 1.12rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.nm-checks li::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0.85rem;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--nm-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.nm-feature__body .nm-pill { margin-top: auto; }

/* Пункты с иконками вместо галочки: иконка лежит в том же кружке. */
.nm-checks--icons li::before { content: none; }

.nm-checks__icon {
  position: absolute;
  top: 50%;
  left: 0.85rem;
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 50%;
  background: var(--nm-ink);
  color: #fff;
  transform: translateY(-50%);
}

/* Бегущая строка логотипов. Лента — два одинаковых списка подряд;
   она сдвигается на ширину одного списка и начинает заново. */
.nm-marquee {
  display: flex;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border-radius: 18px;
  background: #fff;
  /* края растворяются, чтобы логотипы не обрывались резко */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.nm-marquee__track {
  display: flex;
  flex: none;
  align-items: center;
  animation: nm-marquee 30s linear infinite;
}

/* Наведение останавливает ленту — логотип можно рассмотреть. */
.nm-marquee:hover .nm-marquee__track { animation-play-state: paused; }

@keyframes nm-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}

.nm-marquee__item {
  display: flex;
  flex: none;
  align-items: center;
  justify-content: center;
  height: 72px;
  padding: 0 clamp(1.25rem, 2.2vw, 2.25rem);
}

.nm-marquee__item img {
  width: auto;
  max-width: 140px;
  max-height: 40px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter 0.25s ease, opacity 0.25s ease;
}

.nm-marquee__item img:hover {
  filter: none;
  opacity: 1;
}

/* Партнёр без логотипа — название текстом. */
.nm-marquee__item span {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: var(--nm-muted);
}

.nm-marquee__empty {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 1.5px dashed var(--nm-mist);
  border-radius: 18px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--nm-muted);
}

/* Без анимаций: логотипы просто стоят в ряд с переносом, копия скрыта. */
@media (prefers-reduced-motion: reduce) {
  .nm-marquee { -webkit-mask-image: none; mask-image: none; }
  .nm-marquee__track { flex-wrap: wrap; flex: 1; justify-content: center; animation: none; }
  .nm-marquee__track[aria-hidden="true"] { display: none; }
}

@media (max-width: 900px) {
  .nm-facts--audience,
  .nm-feature { grid-template-columns: 1fr; }

  /* В одну колонку фото над текстом, высоту задаём сами. */
  .nm-feature__img { height: clamp(220px, 56vw, 340px); min-height: 0; }
  .nm-feature__body { padding: 0.75rem 0.75rem 1rem; }
}

/* ---------- Преимущества: три блока подряд ---------- */

.nm-panels {
  display: grid;
  gap: var(--nm-gap);
}

.nm-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: var(--nm-gap);
}

/* Каждый второй блок зеркальный: фото слева, текст справа. */
.nm-panel:nth-child(even) {
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
}

.nm-panel:nth-child(even) .nm-panel__img { order: -1; }

@keyframes nm-fade {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.nm-panel__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  padding: var(--nm-pad);
  border-radius: var(--nm-r);
  background: var(--nm-soft);
}

.nm-panel__title {
  margin: auto 0 0;
  padding-top: 2rem;
  font-size: clamp(1.5rem, 2.6vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.nm-panel__title2 {
  margin: auto 0 0;
  padding-top: 2rem;
  font-size: clamp(1.5rem, 2.6vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #e06c00;
}

/* Фото ровно по высоте текстового блока слева: само в высоту строки
   не вкладывается (height: 0) и растягивается на неё (min-height: 100%),
   поэтому строку задаёт только текст. Лишнее у фото обрезается (cover). */
.nm-panel__img {
  width: 100%;
  height: 0;
  min-height: 100%;
  object-fit: cover;
  border-radius: var(--nm-r);
}

/* Карточка-акцент внутри текстового блока: иконка и короткая фраза. */
/* Сетка из двух колонок: иконка слева на всю высоту, справа — заголовок
   и, если есть, пояснение (nm-kicker) под ним. */
.nm-badge {
  display: inline-grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.2rem 0.9rem;
  max-width: 28rem;
  padding: 0.75rem 1.25rem 0.75rem 0.85rem;
  border-radius: 22px;
  background: #fff;
}

.nm-badge__img {
  grid-row: 1 / span 2;
  width: 68px;
  height: auto;
}

/* С пояснением заголовок прижат к нему, а не стоит по центру своей строки. */
.nm-badge__text:not(:last-child) { align-self: end; }

.nm-badge .nm-kicker {
  grid-column: 2;
  align-self: start;
  line-height: 1.3;
}

.nm-badge__text {
  font-size: clamp(0.95rem, 1.1vw, 1.08rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

/* ---------- Кто стоит за «БИОМ» ---------- */

.nm-accent { color: #ff7b00; }
/* «Чем мы не являемся»: красный курсив, зачёркнутый. Толщина линии — от размера шрифта. */
.nm-accent2 {
  /* color: #ff0000; */
  font-style: italic;
  text-decoration: line-through;
  text-decoration-thickness: 0.07em;
}

/* Плашка над заголовком: мелкие прописные на светлом фоне. */
.nm-label {
  display: inline-block;
  margin-bottom: 1rem;
  padding: 0.4rem 0.85rem;
  border-radius: 10px;
  background: #fff1e5;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e06c00;
}

.nm-about__head .nm-title { margin-bottom: 1.25rem; }
.nm-about__lead { max-width: 46em; }

/* Подзаголовок внутри секции: подпись и тонкая линия до края. */
.nm-subhead {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: clamp(2rem, 4vw, 3.5rem) 0 1.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nm-muted);
}

.nm-subhead::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(1, 15, 43, 0.12);
}

/* Карточки с обращениями: фото слева, текст и подпись справа. */
.nm-people {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--nm-gap);
}

.nm-person {
  display: grid;
  grid-template-columns: minmax(140px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(1rem, 2vw, 1.75rem);
  padding: clamp(12px, 1.4vw, 20px);
  border-radius: var(--nm-r);
  background: var(--nm-soft);
}

/* Одна карточка — на всю ширину, но фото не раздувается. */
.nm-person:only-child {
  grid-column: 1 / -1;
  grid-template-columns: minmax(160px, 260px) minmax(0, 1fr);
}

.nm-person__media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: calc(var(--nm-r) - 10px);
  overflow: hidden;
  background: var(--nm-mist);
}

.nm-person__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nm-person__play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #ff7b00;
  color: #fff;
  transform: translate(-50%, -50%);
  transition: transform 0.25s ease;
}

.nm-person__play:hover { transform: translate(-50%, -50%) scale(1.08); }

.nm-person__badge {
  position: absolute;
  left: 0.6rem;
  bottom: 0.6rem;
  font-size: 0.72rem;
}

.nm-person__body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.25rem 0;
}

.nm-person__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e06c00;
}

.nm-person__quote {
  font-size: clamp(0.98rem, 1.15vw, 1.1rem);
  font-weight: 500;
  line-height: 1.5;
  color: rgba(1, 15, 43, 0.78);
}

.nm-person__quote strong { color: var(--nm-ink); font-weight: 700; }

.nm-person__sign {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.75rem;
}

.nm-person__sign img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.nm-person__name {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.nm-person__position {
  font-size: 0.85rem;
  color: var(--nm-muted);
}

/* Ряд аватарок команды: фото внахлёст, в конце — «+N». */
.nm-team {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
}

.nm-team__faces {
  display: flex;
  align-items: center;
}

.nm-team__faces > * {
  width: 48px;
  height: 48px;
  margin-left: -12px;
  border: 3px solid var(--nm-bg);
  border-radius: 50%;
}

.nm-team__faces > :first-child { margin-left: 0; }
.nm-team__faces img { object-fit: cover; }

.nm-team__more {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--nm-soft);
  font-size: 0.85rem;
  font-weight: 700;
}

.nm-team .nm-text strong { color: var(--nm-ink); }

/* Цифры в ряд, между ними тонкие разделители. */
.nm-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem 0;
}

.nm-stats > div {
  padding: 0.25rem clamp(1rem, 2vw, 2rem);
  border-left: 1px solid rgba(1, 15, 43, 0.12);
}

.nm-stats > div:first-child { padding-left: 0; border-left: 0; }

.nm-stats dt {
  font-size: clamp(2.4rem, 4.6vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
  color: #ff7b00;
  white-space: nowrap;
}

.nm-stats dd {
  margin-top: 0.5rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--nm-muted);
}

@media (max-width: 900px) {
  .nm-people { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .nm-person,
  .nm-person:only-child { grid-template-columns: 1fr; }
  .nm-person__media { aspect-ratio: 4 / 3; }
  .nm-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nm-stats > div { padding-left: 1rem; }
  .nm-stats > div:nth-child(odd) { padding-left: 0; border-left: 0; }
}

/* ---------- Слайдер программ ---------- */

.nm-slider-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nm-counter {
  margin-right: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--nm-muted);
}

.nm-counter span { color: var(--nm-ink); }

.nm-track {
  display: flex;
  gap: var(--nm-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.nm-track::-webkit-scrollbar { display: none; }

.nm-course {
  display: flex;
  flex: 0 0 clamp(280px, 31.5%, 460px);
  flex-direction: column;
  padding: clamp(8px, 0.8vw, 12px);
  border-radius: var(--nm-r);
  background: #fff;
  scroll-snap-align: start;
}

.nm-course__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: calc(var(--nm-r) - 8px);
  overflow: hidden;
}

.nm-course__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.nm-course:hover .nm-course__media img { transform: scale(1.04); }

.nm-course__media .nm-chip {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
}

.nm-course__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 1rem;
  padding: 1.25rem clamp(0.5rem, 1vw, 1rem) clamp(0.5rem, 1vw, 1rem);
}

.nm-course__title {
  margin: 0;
  font-size: clamp(1.05rem, 1.35vw, 1.35rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.18;
}

/* Названия программ бывают очень длинными — не больше четырёх строк. */
.nm-course__title a {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.nm-course__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Низ карточки: цена, под ней кнопки друг под другом во всю ширину. */
.nm-course__foot {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.5rem;
}

.nm-course__actions {
  display: grid;
  gap: 0.5rem;
}

/* Длинные подписи кнопок переносятся, а не вылезают за карточку. */
.nm-course__actions .nm-pill { white-space: normal; text-align: center; }

/* На белой карточке серая «пилюля» почти не видна — делаем её чуть темнее. */
.nm-course .nm-pill--soft { background: var(--nm-soft); }
.nm-course .nm-pill--soft:hover { background: var(--nm-mist); }

.nm-course__price {
  font-size: clamp(1.1rem, 1.5vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.nm-directions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: clamp(1.5rem, 2.6vw, 2.5rem);
}

/* ---------- Три шага ---------- */

.nm-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--nm-gap);
}

.nm-step {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-height: clamp(260px, 24vw, 380px);
  padding: var(--nm-pad);
  border-radius: var(--nm-r);
  background: var(--nm-soft);
}

.nm-step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: clamp(48px, 4.4vw, 72px);
  height: clamp(48px, 4.4vw, 72px);
  margin-bottom: auto;
  border-radius: 50%;
  background: var(--nm-ink);
  color: #fff;
  font-size: clamp(1.1rem, 1.6vw, 1.6rem);
  font-weight: 600;
}

.nm-step__title {
  margin: 2rem 0 0;
  font-size: clamp(1.35rem, 2.1vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

/* ---------- Финальный призыв ---------- */

.nm-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: min(82vh, 820px);
  margin: 0 var(--nm-gap);
  padding: var(--nm-pad);
  border-radius: var(--nm-r);
  overflow: hidden;
  background: var(--nm-ink);
  color: #fff;
  text-align: center;
}

.nm-cta__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nm-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(1, 15, 43, 0.58);
}

.nm-cta__copy {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.nm-cta__title {
  margin: 0;
  font-size: clamp(2.6rem, 9vw, 9.4rem);
  font-weight: 600;
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.nm-cta__lead_more {
  max-width: 30em;
  margin: clamp(1rem, 2vw, 2rem) 0 clamp(1.5rem, 2.6vw, 2.75rem);
  font-size: clamp(2rem, 2.3vw, 2.3rem);
  font-weight: 1000;
  letter-spacing: -0.02em;
  line-height: 5.3;
  color: rgba(255, 255, 255, 0.82);
}

.nm-cta__lead {
  max-width: 30em;
  margin: clamp(1rem, 2vw, 2rem) 0 clamp(1.5rem, 2.6vw, 2.75rem);
  font-size: clamp(1rem, 1.3vw, 1.3rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.82);
}

/* ---------- Контакты ---------- */

#contacts { scroll-margin-top: 1rem; }

.nm-contacts {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: var(--nm-gap);
}

.nm-contacts__map {
  position: relative;
  min-height: clamp(320px, 36vw, 560px);
  border-radius: var(--nm-r);
  overflow: hidden;
  background: var(--nm-mist);
}

.nm-contacts__map iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.nm-contacts__list {
  display: grid;
  gap: var(--nm-gap);
}

.nm-contact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  padding: clamp(1rem, 1.8vw, 1.75rem) var(--nm-pad);
  border-radius: calc(var(--nm-r) * 0.75);
  background: var(--nm-soft);
  color: var(--nm-ink);
  text-decoration: none;
  transition: background-color 0.25s ease;
}

a.nm-contact:hover { background: var(--nm-mist); }

.nm-contact__value {
  font-size: clamp(1.1rem, 1.6vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

/* ---------- Подвал ---------- */

.nm-footer {
  margin: var(--nm-gap) var(--nm-gap) var(--nm-gap);
  padding: clamp(2rem, 4vw, 4rem) var(--nm-pad) var(--nm-pad);
  border-radius: var(--nm-r);
  background: var(--nm-ink);
  color: #fff;
}

.nm-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 2rem;
}

.nm-logo--footer {
  align-self: start;
  font-size: clamp(2rem, 4vw, 4rem);
}

.nm-footer__nav {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 1rem;
  font-weight: 500;
}

.nm-footer__nav a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nm-footer__nav a:hover { color: #fff; }

.nm-footer__legal {
  margin-top: clamp(2rem, 5vw, 5rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.5);
}

.nm-footer__legal p { margin: 0 0 0.3rem; }

/* ---------- Появление при прокрутке ---------- */

/* Класс nm-reveal-on ставит numa.js: без скрипта всё видно сразу. */
.nm-reveal-on [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.nm-reveal-on [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Карточки в ряду появляются по очереди. */
.nm-reveal-on .nm-facts > :nth-child(2),
.nm-reveal-on .nm-steps > :nth-child(2) { transition-delay: 0.1s; }
.nm-reveal-on .nm-facts > :nth-child(3),
.nm-reveal-on .nm-steps > :nth-child(3) { transition-delay: 0.2s; }

/* ---------- Планшет и телефон ---------- */

@media (max-width: 900px) {
  .nm-facts,
  .nm-steps,
  .nm-contacts,
  .nm-panel,
  .nm-panel:nth-child(even),
  .nm-footer__top { grid-template-columns: 1fr; }

  .nm-fact { min-height: 240px; }
  .nm-step { min-height: 0; }
  .nm-step__num { margin-bottom: 1.5rem; }
  /* В одну колонку фото стоит над текстом, и высоту ему задаём сами. */
  .nm-panel__img { order: -1; height: clamp(240px, 60vw, 320px); min-height: 0; }
  .nm-panel__title { margin-top: 0; padding-top: 0.5rem; }
  .nm-course { flex-basis: 82%; }
  .nm-hero::after {
    background: linear-gradient(0deg, rgba(1, 15, 43, 0.82) 0%, rgba(1, 15, 43, 0.25) 60%, rgba(1, 15, 43, 0.15) 100%);
  }
}

@media (max-width: 560px) {
  /* В шапке остаются меню, логотип и «глаз»; запись — в меню и на первом экране. */
  .nm-header__right .nm-pill:not(.nm-pill--icon) { display: none; }
  .nm-pill--lg { min-height: 56px; padding: 0.9rem 1.4rem; }
  .nm-hero__actions .nm-pill { flex: 1 1 100%; }
}

/* ====================================================================
   Внутренние страницы: каталог, страница программы, окна и формы
   ==================================================================== */

/* Плашка без заголовка (сетка каталога): поля как у карточки, а не как у секции. */
.nm-section--tight {
  padding-top: var(--nm-pad);
  padding-bottom: var(--nm-pad);
}

/* Две серые плашки подряд не слипаются. */
.nm-section--soft + .nm-section--soft,
.nm-section--soft + .nm-trust,
.nm-trust + .nm-section--soft {
  margin-top: var(--nm-gap);
}

/* Заголовок слева, содержимое справа. */
.nm-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

.nm-split .nm-title { margin-bottom: 1.25rem; }
.nm-split .nm-text + .nm-text { margin-top: 0.75rem; }

.nm-link {
  color: var(--nm-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* ---------- Заголовок страницы (каталог) ---------- */

.nm-pagehead {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  padding-top: clamp(1.5rem, 3vw, 3rem);
  padding-bottom: clamp(2rem, 4vw, 4rem);
}

.nm-pagehead .nm-title { margin: 0.75rem 0 0; }

.nm-pagehead__side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.nm-directions--top {
  margin: 0 0 clamp(1.25rem, 2.2vw, 2rem);
}

/* ---------- Сетка карточек ---------- */

.nm-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--nm-gap);
}

.nm-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: var(--nm-pad);
  border-radius: var(--nm-r);
  background: #fff;
}

.nm-empty__title {
  font-size: clamp(1.4rem, 2.4vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

/* ---------- Первый экран программы ---------- */

.nm-offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--nm-gap);
  margin: 0 var(--nm-gap);
}

.nm-offer__media {
  position: relative;
  min-height: clamp(300px, 46vw, 720px);
  border-radius: var(--nm-r);
  overflow: hidden;
  background: var(--nm-mist);
}

.nm-offer__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nm-offer__media .nm-chip {
  position: absolute;
  top: var(--nm-pad);
  left: var(--nm-pad);
}

.nm-offer__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  padding: var(--nm-pad);
  border-radius: var(--nm-r);
  background: var(--nm-soft);
}

.nm-back {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--nm-muted);
  transition: color 0.2s ease;
}

.nm-back:hover { color: var(--nm-ink); }

/* Название программы — целое предложение, поэтому мельче заголовков секций. */
.nm-offer__title {
  font-size: clamp(1.5rem, 2.7vw, 2.9rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.nm-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.5rem;
  width: 100%;
}

.nm-specs > div {
  padding: 0.9rem 0;
  border-top: 1px solid rgba(1, 15, 43, 0.12);
}

.nm-specs dt {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--nm-muted);
}

.nm-specs dd {
  margin-top: 0.15rem;
  font-size: clamp(1rem, 1.25vw, 1.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.nm-offer__buy {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  margin-top: auto;
  padding-top: 1rem;
}

.nm-offer__price {
  font-size: clamp(1.75rem, 3vw, 3.2rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}

.nm-offer__price .nm-kicker {
  display: block;
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}

/* Карточки «Что вы получаете»: вместо цифры — подпись и заголовок. */
.nm-fact--plain { background: var(--nm-soft); }

.nm-fact--text .nm-kicker { margin-bottom: auto; }

.nm-fact__title {
  padding-top: 2rem;
  font-size: clamp(1.5rem, 2.5vw, 2.7rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

/* ---------- Почему профессия окупается (страница курса) ---------- */

/* Три карточки с цифрами: вакансии, зарплата, старт без опыта. */
.nm-payoff {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--nm-gap);
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
}

.nm-payoff__card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: clamp(200px, 18vw, 260px);
  padding: var(--nm-pad);
  border-radius: var(--nm-r);
  background: var(--nm-soft);
}

.nm-payoff__card .nm-kicker { margin-bottom: auto; }

.nm-payoff__card--dark { background: var(--nm-ink); color: #fff; }
.nm-payoff__card--dark .nm-kicker,
.nm-payoff__card--dark .nm-payoff__note { color: rgba(255, 255, 255, 0.62); }
.nm-payoff__card--accent { background: #fff1e5; }

.nm-payoff__value {
  /* Вмещает диапазон вида «60 000 – 110 000 ₽» в одну строку на десктопе. */
  font-size: clamp(1.8rem, 2.6vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: 1;
}

.nm-payoff__card--accent .nm-payoff__value { color: #e06c00; }

.nm-payoff__note {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--nm-muted);
}

.nm-payoff__note a { text-decoration: underline; text-underline-offset: 0.15em; }

/* «Как растёт доход»: текст и три строки «этап — зарплата» слева, фото курса справа. */
.nm-income-panel { margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.nm-section > .nm-income-panel:first-child { margin-top: 0; }

.nm-income {
  display: grid;
  gap: 0.5rem;
  width: 100%;
}

.nm-income li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding: 0.9rem 1.15rem;
  border-radius: 18px;
  background: #fff;
}

.nm-income__label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nm-muted);
}

.nm-income__value {
  font-size: clamp(1.3rem, 1.9vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.nm-income__value--accent { color: #e06c00; }

/* Пояснение к этапу — отдельной строкой под названием и суммой. */
.nm-income__text {
  flex-basis: 100%;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--nm-muted);
}

/* «Куда можно вырасти»: ступени в ряд, номер в кружке, между ступенями — стрелка. */
/* На широком экране все ступени в один ряд (сколько бы их ни было) — стрелки
   «→» тогда всегда указывают на следующую. На узком — столбиком со стрелками «↓». */
.nm-growth {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: var(--nm-gap);
}

.nm-growth__step {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: clamp(1rem, 1.8vw, 1.5rem);
  border-radius: calc(var(--nm-r) - 6px);
  background: var(--nm-soft);
}

.nm-growth__step:not(:last-child)::after {
  content: "→";
  position: absolute;
  top: 50%;
  right: calc(var(--nm-gap) / -2);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  color: #ff7b00;
  font-weight: 700;
  transform: translate(50%, -50%);
  box-shadow: 0 2px 8px rgba(1, 15, 43, 0.08);
}

.nm-growth__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin-bottom: 0.5rem;
  border-radius: 50%;
  background: var(--nm-ink);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
}

.nm-growth__title {
  font-size: clamp(1.05rem, 1.4vw, 1.3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.nm-growth__salary {
  font-weight: 700;
  color: #e06c00;
}

.nm-growth__text {
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--nm-muted);
}

@media (max-width: 900px) {
  .nm-growth { grid-auto-flow: row; }

  .nm-payoff__card { min-height: 0; }
  .nm-payoff__card .nm-kicker { margin-bottom: 0.75rem; }

  .nm-growth__step:not(:last-child)::after {
    content: "↓";
    top: auto;
    right: 50%;
    bottom: calc(var(--nm-gap) / -2);
    transform: translate(50%, 50%);
  }
}

/* Ответ гида — текст из админки: абзацы и списки. */
.nm-faq__answer {
  max-width: 42em;
  padding: 0 0 clamp(1rem, 1.6vw, 1.6rem);
}

.nm-faq__answer p,
.nm-faq__answer li { color: var(--nm-muted); }

/* Таблица в ответе гида: во всю ширину колонки, без прокрутки вбок.
   Двойной класс — чтобы перебить общее .rich-text table { min-width: 560px }. */
.nm-faq__answer.rich-text table {
  width: 100%;
  min-width: 0;
  margin: 0.5rem 0 1.25rem;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 18px;
  background: var(--nm-soft);
  overflow: hidden;
}

.nm-faq__answer caption {
  padding-bottom: 0.75rem;
  text-align: left;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--nm-ink);
}

.nm-faq__answer td,
.nm-faq__answer th {
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid #fff;
  font-size: 0.92rem;
  vertical-align: top;
}

.nm-faq__answer tr:last-child td { border-bottom: 0; }

/* Первая колонка (разряд и т. п.) — акцентом. */
.nm-faq__answer td:first-child,
.nm-faq__answer .rank {
  width: 1%;
  white-space: nowrap;
  font-weight: 700;
  color: #e06c00;
}

/* Врезка-пояснение и ссылка на закон под таблицей. */
.nm-faq__answer .note {
  padding: 1rem 1.15rem;
  border-left: 3px solid #ff7b00;
  border-radius: 0 14px 14px 0;
  background: #fff8f2;
}

.nm-faq__answer .note p:last-child { margin-bottom: 0; }

.nm-faq__answer .law {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nm-muted);
}

/* На телефоне строка таблицы — карточка: подпись колонки берётся из data-label. */
@media (max-width: 640px) {
  .nm-faq__answer table,
  .nm-faq__answer tbody,
  .nm-faq__answer tr,
  .nm-faq__answer td { display: block; width: auto; }

  .nm-faq__answer.rich-text table { background: none; border-radius: 0; overflow: visible; }

  /* Заголовок таблицы — обычной строкой во всю ширину, а не узким столбиком. */
  .nm-faq__answer caption { display: block; }

  .nm-faq__answer tr {
    margin-bottom: 0.5rem;
    padding: 0.75rem 0.9rem;
    border-radius: 16px;
    background: var(--nm-soft);
  }

  .nm-faq__answer td { padding: 0.25rem 0; border: 0; white-space: normal; }

  .nm-faq__answer td[data-label]::before {
    content: attr(data-label);
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--nm-muted);
  }
}

/* «Остались вопросы» в конце страницы курса — тёмная карточка, как блок лицензии. */
.nm-ask .nm-trust__text a { color: #fff; text-decoration: underline; text-underline-offset: 0.15em; }
.nm-ask .nm-directions { margin-top: 1.5rem; }

/* ---------- Учебный план ---------- */

.nm-plan-scroll {
  padding: clamp(0.5rem, 1.6vw, 1.75rem);
  border-radius: calc(var(--nm-r) - 8px);
  background: #fff;
  overflow-x: auto;
}

.nm-plan {
  width: 100%;
  min-width: 560px;
  font-size: clamp(0.92rem, 1.1vw, 1.08rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.nm-plan th,
.nm-plan td {
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid var(--nm-soft);
  text-align: left;
  vertical-align: top;
}

.nm-plan thead th {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--nm-muted);
  white-space: nowrap;
}

.nm-plan__num {
  color: var(--nm-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.nm-plan__group td {
  background: var(--nm-soft);
  font-weight: 600;
}

.nm-plan__group td:first-child { border-radius: 12px 0 0 12px; }
.nm-plan__group td:last-child { border-radius: 0 12px 12px 0; }

.nm-plan tfoot th {
  border-bottom: 0;
  font-size: 1.15em;
  font-weight: 600;
}

/* ---------- Юридические документы (политика, согласие) ---------- */

/* Узкая колонка текста — длинный документ так легче читать. */
/* ---------- Страница 404 ---------- */

.nm-error { max-width: 1100px; }

.nm-error__code {
  margin: 0;
  font-size: clamp(6rem, 18vw, 14rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.9;
  color: #e06c00;
}

.nm-error .nm-title { margin: 1rem 0 1.25rem; color: var(--nm-ink); }
.nm-error__text { max-width: 640px; }

.nm-error__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

@media (max-width: 640px) {
  .nm-error__actions .nm-pill { width: 100%; }
}

.nm-doc-page { max-width: 920px; }
.nm-doc-page .nm-title { margin: 0.75rem 0 clamp(1.5rem, 3vw, 2.5rem); }
.nm-doc-page .rich-text h2 { font-size: clamp(1.25rem, 2vw, 1.75rem); }

/* ---------- Текст из админки ---------- */

/* Сброс убирает оформление заголовков, списков и таблиц —
   для HTML из админки оно задано заново. */
.rich-text { max-width: 1100px; }

.rich-text h2 {
  margin: 2.5rem 0 1rem;
  font-size: clamp(1.6rem, 3vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.rich-text h3 {
  margin: 2rem 0 0.75rem;
  font-size: clamp(1.15rem, 1.7vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.rich-text > :first-child { margin-top: 0; }

.rich-text p,
.rich-text li {
  font-size: clamp(1rem, 1.1vw, 1.1rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.5;
  color: rgba(1, 15, 43, 0.78);
}

.rich-text p { margin: 0 0 0.65rem; }

.rich-text ul,
.rich-text ol {
  margin: 0 0 1rem;
  padding-left: 1.3rem;
}

.rich-text ul { list-style: disc; }
.rich-text ol { list-style: decimal; }
.rich-text strong { color: var(--nm-ink); }

.rich-text a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.rich-text .sv-table-scroll {
  margin: 1rem 0 1.5rem;
  padding: clamp(0.5rem, 1.4vw, 1.5rem);
  border-radius: calc(var(--nm-r) - 8px);
  background: var(--nm-soft);
  overflow-x: auto;
}

.rich-text table {
  width: 100%;
  min-width: 560px;
}

.rich-text th,
.rich-text td {
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid rgba(1, 15, 43, 0.1);
  text-align: left;
  vertical-align: top;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
}

.rich-text th {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--nm-muted);
}

.rich-text tr:last-child td { border-bottom: 0; }

.rich-text td p {
  margin: 0 0 0.3rem;
  font-size: inherit;
}

/* Таблица-«карточки» в тексте из админки: <table class="nm-cards"> с data-label у ячеек
   (категории работников в направлении «Охрана труда»). На компьютере — таблица на светлой
   плашке, на телефоне — строка становится карточкой. Другие таблицы текста не затрагивает.
   Селектор .rich-text table.nm-cards перебивает общее .rich-text table { min-width: 560px }. */
.rich-text table.nm-cards {
  min-width: 0;
  margin: 1rem 0 1.5rem;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: calc(var(--nm-r) - 8px);
  background: var(--nm-soft);
  overflow: hidden;
}

.nm-cards th,
.nm-cards td { padding: 1rem 1.15rem; border-bottom: 1px solid #fff; }

.nm-cards td:first-child { width: 24%; font-weight: 700; color: var(--nm-ink); }
.nm-cards td ul { margin: 0; padding-left: 1.1rem; }
.nm-cards td li,
.nm-cards td p { font-size: 0.95rem; }
.nm-cards td p { margin: 0 0 0.25rem; color: var(--nm-ink); }

/* На телефоне строка таблицы — карточка: подпись колонки берётся из data-label. */
@media (max-width: 640px) {
  .nm-cards thead { display: none; }

  .nm-cards,
  .nm-cards tbody,
  .nm-cards tr,
  .nm-cards td { display: block; width: auto; }

  .rich-text table.nm-cards { background: none; border-radius: 0; overflow: visible; }

  .nm-cards tr {
    margin-bottom: 0.75rem;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    background: var(--nm-soft);
  }

  .nm-cards td { padding: 0.35rem 0; border: 0; }
  .nm-cards td:first-child { width: auto; font-size: 1.05rem; }

  .nm-cards td[data-label]:not(:first-child)::before {
    content: attr(data-label);
    display: block;
    margin: 0.4rem 0 0.2rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--nm-muted);
  }
}

/* ---------- Блок доверия ---------- */

.nm-trust {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  margin: 0 var(--nm-gap);
  padding: clamp(2.5rem, 6vw, 6rem) var(--nm-pad);
  border-radius: var(--nm-r);
  background: var(--nm-ink);
  color: #fff;
}

.nm-trust .nm-title { margin: 0; }

.nm-trust__lead {
  font-size: clamp(1.2rem, 2vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.nm-trust__text {
  max-width: 36em;
  margin-top: 1rem;
  font-size: clamp(1rem, 1.15vw, 1.15rem);
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.62);
}

/* ---------- Вопросы и ответы ---------- */

/* Кнопка под заголовком секции вопросов. */
.nm-faq__cta { margin-top: 1.5rem; }

.nm-faq details {
  border-bottom: 1px solid rgba(1, 15, 43, 0.12);
}

.nm-faq details:first-child {
  border-top: 1px solid rgba(1, 15, 43, 0.12);
}

.nm-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1rem, 1.6vw, 1.6rem) 0;
  font-size: clamp(1.1rem, 1.6vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
  list-style: none;
  cursor: pointer;
}

.nm-faq summary::-webkit-details-marker { display: none; }

/* Плюс в кружке; у открытого вопроса поворачивается в крестик. */
.nm-faq__icon {
  position: relative;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--nm-soft);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.nm-faq__icon::before,
.nm-faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 1.6px;
  background: var(--nm-ink);
  transform: translate(-50%, -50%);
}

.nm-faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }

.nm-faq details[open] .nm-faq__icon {
  background: var(--nm-ink);
  transform: rotate(45deg);
}

.nm-faq details[open] .nm-faq__icon::before,
.nm-faq details[open] .nm-faq__icon::after { background: #fff; }

.nm-faq details > p {
  max-width: 42em;
  padding: 0 0 clamp(1rem, 1.6vw, 1.6rem);
  font-size: clamp(1rem, 1.15vw, 1.15rem);
  font-weight: 500;
  line-height: 1.45;
  color: var(--nm-muted);
}

/* Кнопка-ссылка под ответом: <button class="nm-faq__action" data-modal-open="…">.
   Ответ над ней теряет нижний отступ — он переходит к кнопке. */
.nm-faq details > p:has(+ .nm-faq__action) { padding-bottom: 0.75rem; }

.nm-faq__action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 clamp(1rem, 1.6vw, 1.6rem);
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: #fff1e5;
  color: #e06c00;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nm-faq__action span { transition: transform 0.2s ease; }

.nm-faq__action:hover {
  background: #ff7b00;
  color: #fff;
}

.nm-faq__action:hover span { transform: translateX(3px); }

/* ---------- Формы ---------- */

.nm-form {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}

/* Форма на странице курса: белая карточка внутри серой секции. */
.nm-form--card {
  margin-top: 0;
  padding: var(--nm-pad);
  border-radius: calc(var(--nm-r) - 8px);
  background: #fff;
}

.nm-form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.nm-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--nm-muted);
}

.nm-field--wide { grid-column: 1 / -1; }

/* Поле, скрытое скриптом (ИНН у физ. лица): display у .nm-field не должен его вернуть. */
.nm-field[hidden],
.nm-form__consent[hidden] { display: none; }

/* Переключатель «физ. лицо / организация» над полями заявки. */
.nm-switch {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--nm-soft);
}

.nm-switch__option {
  position: relative;
  flex: 1;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  color: var(--nm-muted);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

/* Сама радиокнопка невидима, но остаётся в форме и ловит клавиатуру. */
.nm-switch__option input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.nm-switch__option:has(input:checked) {
  background: #fff;
  color: var(--nm-ink);
  box-shadow: 0 2px 10px rgba(1, 15, 43, 0.08);
}

.nm-switch__option:has(input:focus-visible) { outline: 2px solid var(--nm-ink); outline-offset: 2px; }

/* Пометка «необязательно» в подписи поля. */
.nm-field__optional { font-weight: 500; color: rgba(1, 15, 43, 0.4); }

.nm-field input,
.nm-field textarea {
  width: 100%;
  min-height: 56px;
  padding: 0.8rem 1.1rem;
  border: 1.5px solid var(--nm-mist);
  border-radius: 18px;
  background: #fff;
  font-size: 1rem;
  font-weight: 500;
  outline: none;
  transition: border-color 0.2s ease;
}

.nm-field input:focus,
.nm-field textarea:focus { border-color: var(--nm-ink); }
.nm-field input::placeholder,
.nm-field textarea::placeholder { color: rgba(1, 15, 43, 0.35); }

.nm-field textarea {
  display: block;
  min-height: 120px;
  resize: vertical;
  line-height: 1.45;
}

.nm-form__consent {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.85rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--nm-muted);
  cursor: pointer;
}

.nm-form__consent input {
  flex: none;
  width: 1.1rem;
  height: 1.1rem;
  margin: 0.1rem 0 0;
  accent-color: var(--nm-ink);
}

.nm-form__consent a {
  color: var(--nm-ink);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* Ловушка для ботов: убрана с экрана, но остаётся в разметке. */
.nm-form__trap {
  position: absolute;
  left: -9999px;
}

.nm-alert {
  padding: 0.85rem 1.1rem;
  border-radius: 18px;
  font-size: 0.98rem;
  font-weight: 600;
}

.nm-alert--ok { background: #e3f3e8; color: #17603a; }
.nm-alert--err { background: #fde8e6; color: #96281b; }

/* ---------- Окно заявки ---------- */

.nm-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--nm-gap);
  background: rgba(1, 15, 43, 0.45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.nm-overlay.is-open { display: flex; }

.nm-modal {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  width: 100%;
  max-width: 36rem;
  max-height: calc(100vh - 2 * var(--nm-gap));
  padding: var(--nm-pad);
  border-radius: var(--nm-r);
  background: var(--nm-bg);
  overflow-y: auto;
  animation: nm-fade 0.3s ease;
}

.nm-modal__close {
  position: absolute;
  top: calc(var(--nm-pad) - 10px);
  right: calc(var(--nm-pad) - 10px);
}

/* В заголовок подставляется название программы — оно бывает длинным. */
.nm-modal__title {
  padding-right: 3rem;
  font-size: clamp(1.4rem, 2.2vw, 2.1rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.nm-modal .nm-form { margin-top: 0.4rem; }

/* ---------- Cookie-баннер ---------- */

.nm-cookie {
  position: fixed;
  left: var(--nm-gap);
  right: var(--nm-gap);
  bottom: var(--nm-gap);
  z-index: 55;
  display: none;
  align-items: center;
  gap: 1.25rem;
  max-width: 780px;
  margin: 0 auto;
  padding: 1rem 1rem 1rem 1.5rem;
  border-radius: calc(var(--nm-r) * 0.8);
  background: #fff;
  box-shadow: 0 18px 50px rgba(1, 15, 43, 0.16);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--nm-muted);
}

.nm-cookie.is-open { display: flex; }

.nm-cookie a {
  color: var(--nm-ink);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* ---------- Внутренние страницы: планшет и телефон ---------- */

@media (max-width: 1100px) {
  .nm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .nm-pagehead,
  .nm-offer,
  .nm-split,
  .nm-trust { grid-template-columns: 1fr; }

  .nm-offer__media { min-height: 260px; }
}

@media (max-width: 640px) {
  .nm-grid,
  .nm-specs,
  .nm-form__grid { grid-template-columns: 1fr; }

  /* В сетке карточка занимает всю ширину, а не 82%, как в слайдере. */
  .nm-grid .nm-course { flex-basis: auto; }

  .nm-offer__buy .nm-pill { width: 100%; }
  .nm-form .nm-pill { width: 100%; }

  .nm-cookie {
    flex-direction: column;
    align-items: stretch;
    padding: 1.1rem;
  }
}
