/* =============================================================================
   v2.css — стили НОВОГО макета migip.ru (октябрь 2026, design/new-main.svg).

   Подключается в чанке head_v2 ВМЕСТО старого css.css: на страницах нового
   макета старая вёрстка не грузится вовсе. Все классы — с префиксом v2-.
   Значения (цвета, кегли, размеры карточек) сняты с макета 1440px:
   рабочая область 1230px, поля 105px.

   При правке поднимать ?v=N в head_v2 и чистить core/cache.

   Разделы (ищутся по номеру):
     00 Шрифты и токены     06 Методы             12 FAQ
     01 База                07 Рекомендуем        13 Подвал
     02 Общие элементы      08 Карточка события   14 Cookie
     03 Шапка               09 Новости и медиа
     04 Первый экран        10 Баннер-призыв
     05 О нас и цифры, чипы 11 (резерв)
   ============================================================================= */

/* 00 · Шрифты и токены ------------------------------------------------------ */

@font-face {
  font-family: "Open Sans";
  src: url("../fonts/open-sans/open-sans-cyrillic.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Open Sans";
  src: url("../fonts/open-sans/open-sans-latin.woff2") format("woff2");
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
  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 {
  --v2-bg: #f5f5f5;
  --v2-text: #323232;
  --v2-muted: #757575;
  --v2-line: #d0d0d0;
  --v2-teal: #4f7874;
  --v2-teal-dark: #1e5748;
  --v2-teal-light: #66928e;
  --v2-yellow: #ffe29e;
  --v2-mint: #72d1a6;
  --v2-green: #4eb486;
  --v2-tile: #e9e7e7;
  --v2-sage: #e9eee3;
  --v2-white: #fff;

  /* Цвета карточек событий по направлению */
  --v2-c-gestalt: #d8e9c4;
  --v2-c-gestalt-2: #baf2d6;
  --v2-c-psy: #bce0f0;
  --v2-c-both: #cbd9d8;
  --v2-c-other: #f1e6c8;

  /* Фирменный градиент (плитка «30 лет», баннер-призыв) */
  --v2-gradient: #05ab9e 0%, #34b7ac 14.7%, #74c3a7 41.1%, #51ca64 84.4%;

  --v2-font: "Open Sans", Arial, sans-serif;
  /* Множитель кегля для версии для слабовидящих (1 — обычный размер).
     Все font-size / line-height в px и высоты кнопок умножаются на него:
     calc(16px * var(--v2-fs)). Меняется классом fontsize-* на <html>. */
  --v2-fs: 1;
  --v2-content: 1230px;
  --v2-gutter: 24px;
  --v2-gap: 30px;
  --v2-section: 80px;
  --v2-r-s: 10px;
  --v2-r-l: 20px;
}
@media (max-width: 1000px) {
  :root {
    --v2-section: 64px;
    --v2-gap: 20px;
  }
}
@media (max-width: 600px) {
  :root {
    --v2-section: 48px;
    --v2-gutter: 16px;
    --v2-gap: 16px;
  }
}

/* 01 · База ----------------------------------------------------------------- */

/* Сброс — через :where(), с нулевой специфичностью: иначе `.v2 h2 { margin: 0 }`
   перебивает отступы, заданные одним классом (.v2-method__title и т. п.). */
:where(.v2) *,
:where(.v2) *::before,
:where(.v2) *::after {
  box-sizing: border-box;
}
.v2 [hidden] {
  display: none !important;
}

body.v2 {
  margin: 0;
  background: var(--v2-bg);
  color: var(--v2-text);
  font-family: var(--v2-font);
  font-size: calc(16px * var(--v2-fs));
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
/* Страницы старого оформления: body без .v2, новые только шапка и подвал —
   их обёртки (.v2-scope) получают ту же базовую типографику, что body.v2.
   Правила для слабовидящих тоже пишутся через :is(body.v2, .v2-scope). */
.v2-scope {
  color: var(--v2-text);
  font-family: var(--v2-font);
  font-size: calc(16px * var(--v2-fs));
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}
/* css.css старых страниц задаёт глобальные правила (*, p, a, h1/h2, :focus) —
   внутри шапки и подвала возвращаем то, что было бы без него (как на главной).
   Специфичность не выше, чем у css.css: правила v2 с классами главнее. */
:where(.v2-scope) :where(*, *::before, *::after) {
  margin: revert;
  padding: revert;
}
:where(.v2-scope) p {
  line-height: inherit;
}
:where(.v2-scope) a {
  text-decoration: revert;
}
:where(.v2-scope) :is(h1, h2) {
  text-transform: revert;
}
:where(.v2-scope) :is(input, textarea, option, label) {
  font-family: revert;
}
:where(.v2-scope) :focus {
  outline: revert;
}
:where(.v2) img {
  max-width: 100%;
  height: auto;
  display: block;
}
:where(.v2) a {
  color: inherit;
}
:where(.v2) :is(h1, h2, h3, p) {
  margin: 0;
}
:where(.v2) ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
:where(.v2) button {
  font: inherit;
}

.v2-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.v2-wrap {
  max-width: calc(var(--v2-content) + 2 * var(--v2-gutter));
  margin-inline: auto;
  padding-inline: var(--v2-gutter);
}
.v2-section {
  margin-top: var(--v2-section);
}

/* 02 · Общие элементы ------------------------------------------------------- */

/* Стрелка ↗ — маской, красится цветом текста */
.v2-arrow {
  display: inline-block;
  flex: none;
  width: 0.75em;
  height: 0.75em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 13.5L13 3M4.5 2.5H13.5V11.5' fill='none' stroke='%23000' stroke-width='1.8'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 13.5L13 3M4.5 2.5H13.5V11.5' fill='none' stroke='%23000' stroke-width='1.8'/%3E%3C/svg%3E")
    center / contain no-repeat;
  transition: transform 0.2s ease;
}

.v2-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}
.v2-btn_dark {
  height: calc(36px * var(--v2-fs));
  padding: 0 18px;
  border-radius: var(--v2-r-s);
  background: var(--v2-text);
  color: #fff !important;
  font-size: calc(13px * var(--v2-fs));
  font-weight: 500;
}
.v2-btn_dark:hover {
  background: #000;
}
.v2-btn_dark .v2-arrow {
  width: 11px;
  height: 11px;
}
/* Зелёная — того же размера, что тёмная («Оплата» в шапке) */
.v2-btn_green {
  height: calc(36px * var(--v2-fs));
  padding: 0 18px;
  border-radius: var(--v2-r-s);
  background: var(--v2-green);
  color: #fff !important;
  font-size: calc(13px * var(--v2-fs));
  font-weight: 600;
}
.v2-btn_green:hover {
  background: var(--v2-teal-dark);
}
.v2-btn_light {
  height: calc(54px * var(--v2-fs));
  padding: 0 28px;
  border-radius: 27px;
  background: #d4ffbf;
  color: var(--v2-text) !important;
  font-size: calc(18px * var(--v2-fs));
}
.v2-btn_light:hover {
  background: #fff;
}
.v2-btn_light .v2-arrow {
  width: 12px;
  height: 12px;
}

.v2-h2 {
  font-size: calc(48px * var(--v2-fs));
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--v2-text);
}
.v2-h2_center {
  text-align: center;
}
@media (max-width: 1000px) {
  .v2-h2 {
    font-size: calc(38px * var(--v2-fs));
  }
}
@media (max-width: 600px) {
  .v2-h2 {
    font-size: calc(30px * var(--v2-fs));
  }
}

/* Заголовок блока + ссылка «Все …» справа по нижней линии */
/* Не влезают в строку — ссылка «Все …» переносится под заголовок целиком,
   а не сжимает его и не вылезает за край экрана. */
.v2-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 32px;
}
.v2-head .v2-h2 {
  min-width: 0;
  overflow-wrap: break-word;
}
.v2-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 6px;
  font-size: calc(13px * var(--v2-fs));
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(50, 50, 50, 0.45);
}
.v2-more .v2-arrow {
  width: 9px;
  height: 9px;
}
.v2-more:hover {
  color: var(--v2-teal);
}

/* 03 · Шапка ---------------------------------------------------------------- */

.v2-header {
  position: relative;
  z-index: 50;
  background: var(--v2-bg);
}
.v2-header__bar {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 90px;
}
.v2-header__logo {
  flex: none;
  display: block;
}
.v2-header__logo img {
  width: 136px;
  height: 49px;
}
.v2-header__panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-width: 0;
}
.v2-header__cta {
  flex: none;
  margin-left: -14px;
}
/* «Оплата» — между поиском и «Подать заявку», зазоры по 10px */
.v2-header__pay {
  flex: none;
  margin-left: -14px;
}
.v2-header__burger {
  display: none;
}

/* В макете меню прижато к поиску: 73px от его левого края */
.v2-menu {
  display: flex;
  margin-left: auto;
  margin-right: 49px;
}
.v2-menu__list {
  display: flex;
  gap: 28px;
}
.v2-menu__item {
  position: relative;
}
.v2-menu__link {
  display: block;
  padding: 10px 0;
  font-size: calc(14px * var(--v2-fs));
  font-weight: 600;
  color: #585857 !important;
  text-decoration: none;
  white-space: nowrap;
}
.v2-menu__link:hover {
  color: var(--v2-teal) !important;
}
.v2-menu__sub {
  position: absolute;
  top: 100%;
  left: -20px;
  min-width: 260px;
  padding: 12px 0;
  border-radius: var(--v2-r-s);
  background: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition:
    opacity 0.15s ease,
    transform 0.15s ease,
    visibility 0.15s;
}
.v2-menu__item_sub:hover .v2-menu__sub,
.v2-menu__item_sub:focus-within .v2-menu__sub {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.v2-menu__sub a {
  display: block;
  padding: 8px 20px;
  font-size: calc(14px * var(--v2-fs));
  text-decoration: none;
}
.v2-menu__sub a:hover {
  background: var(--v2-bg);
  color: var(--v2-teal);
}

.v2-search {
  position: relative;
  flex: none;
  width: 151px;
}
.v2-search__input {
  width: 100%;
  height: calc(36px * var(--v2-fs));
  padding: 0 12px 0 40px;
  border: 1px solid #d4d4d4;
  border-radius: var(--v2-r-s);
  background: #fff;
  color: var(--v2-text);
  font: calc(13px * var(--v2-fs)) var(--v2-font);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.v2-search__input::placeholder {
  color: #585857;
}
.v2-search__input:focus {
  border-color: var(--v2-teal);
}
.v2-search__btn {
  position: absolute;
  top: 0;
  left: 0;
  width: 40px;
  height: 36px;
  border: 0;
  background: #585857;
  cursor: pointer;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 36'%3E%3Ccircle cx='20.5' cy='17' r='6.5' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3Cpath d='M25.3 21.8L29 25.5' stroke='%23000' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E")
    center / 40px 36px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 36'%3E%3Ccircle cx='20.5' cy='17' r='6.5' fill='none' stroke='%23000' stroke-width='1.6'/%3E%3Cpath d='M25.3 21.8L29 25.5' stroke='%23000' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E")
    center / 40px 36px no-repeat;
}

/* Десктоп: в покое поиск — квадратная кнопка-лупа (36×36, рамка как у поля).
   Нажатие на лупу (v2.js) ставит фокус в поле, и оно растягивается влево
   поверх меню, а меню под ним гаснет — текст не накладывается. Класс .is-search
   ставит v2.js на фокус поля. Лупа едет вместе с левым краем поля. */
@media (min-width: 1261px) {
  .v2-menu {
    transition:
      opacity 0.2s ease,
      visibility 0.2s;
  }
  .v2-search {
    width: calc(36px * var(--v2-fs));
    height: calc(36px * var(--v2-fs));
    --v2-search-w: calc(36px * var(--v2-fs));
  }
  .v2-search__input {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    width: var(--v2-search-w);
    padding: 0;
    transition:
      width 0.25s ease,
      padding 0.25s ease,
      box-shadow 0.25s ease;
  }
  /* Свёрнутое поле — пустой квадрат: ни текста, ни подсказки */
  .v2-header:not(.is-search) .v2-search__input {
    color: transparent;
  }
  .v2-header:not(.is-search) .v2-search__input::placeholder {
    color: transparent;
  }
  .v2-search__btn {
    left: auto;
    right: calc(var(--v2-search-w) - 36px * var(--v2-fs));
    z-index: 3;
    width: calc(36px * var(--v2-fs));
    height: 100%;
    transition: right 0.25s ease;
  }
  .v2-header.is-search .v2-search {
    --v2-search-w: 420px;
  }
  .v2-header.is-search .v2-search__input {
    padding: 0 12px 0 40px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  }
  .v2-header.is-search .v2-menu {
    opacity: 0;
    visibility: hidden;
  }
}

/* ≤1260: меню и поиск — в выпадающую панель под бургером.
   Порог 1260: в боевом меню шесть пунктов, шапке в одну строку нужно ~1235px. */
@media (max-width: 1260px) {
  .v2-header__bar {
    height: 76px;
    gap: 12px;
  }
  .v2-header__logo {
    margin-right: auto;
  }
  .v2-header__cta,
  .v2-header__pay {
    margin-left: 0;
  }
  .v2-header__burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0 9px;
    border: 0;
    border-radius: var(--v2-r-s);
    background: transparent;
    cursor: pointer;
  }
  .v2-header__burger span {
    display: block;
    height: 2px;
    border-radius: 1px;
    background: var(--v2-text);
    transition:
      transform 0.2s ease,
      opacity 0.2s ease;
  }
  .v2-header.is-open .v2-header__burger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .v2-header.is-open .v2-header__burger span:nth-child(2) {
    opacity: 0;
  }
  .v2-header.is-open .v2-header__burger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .v2-header__panel {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    /* Обычная колонка, порядок — через order: поиск, меню, кнопка (телефон).
       column-reverse не годится: прокручиваемая панель открывалась бы с конца. */
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
    padding: 8px var(--v2-gutter) 24px;
    background: var(--v2-bg);
    box-shadow: 0 16px 24px rgba(0, 0, 0, 0.08);
  }
  .v2-header.is-open .v2-header__panel {
    display: flex;
  }
  .v2-search {
    width: 100%;
  }
  .v2-header__panel .v2-search {
    order: -1;
  }
  .v2-header__cta-m {
    order: 1;
  }
  .v2-search__input {
    height: calc(44px * var(--v2-fs));
    font-size: calc(16px * var(--v2-fs));
  }
  .v2-search__btn {
    height: 44px;
  }
  .v2-menu {
    margin: 0;
  }
  .v2-menu__list {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }
  .v2-menu__item {
    border-bottom: 1px solid var(--v2-line);
  }
  .v2-menu__link {
    padding: 14px 0;
    font-size: calc(17px * var(--v2-fs));
  }
  .v2-menu__sub {
    position: static;
    min-width: 0;
    padding: 0 0 12px;
    background: none;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .v2-menu__sub a {
    padding: 6px 0 6px 16px;
    font-size: calc(15px * var(--v2-fs));
    color: #585857;
  }
  .v2-menu__sub a:hover {
    background: none;
  }
}
/* «Подать заявку» для панели бургера — видна только на телефоне */
.v2-header__cta-m {
  display: none;
}

/* Телефон (≤599): в шапке логотип, «Оплата» и бургер. Поиск — в панели
   бургера, как на планшете (и на главной ещё под баннером),
   «Подать заявку» — в панели под меню, на всю ширину. */
@media (max-width: 599px) {
  .v2-header__logo img {
    width: 112px;
    height: auto;
  }
  .v2-header__cta {
    display: none;
  }
  /* Кнопка прилипает к низу панели: подпунктов меню много, панель
     прокручивается, а «Подать заявку» всегда остаётся под пальцем. */
  .v2-header__cta-m {
    display: flex;
    flex: none;
    position: sticky;
    bottom: 0;
    z-index: 1;
    height: calc(48px * var(--v2-fs));
    margin-top: 8px;
    border-radius: 24px;
    font-size: calc(16px * var(--v2-fs));
    /* подложка цвета фона: плавно сверху, сплошная снизу (закрывает нижний отступ панели) */
    box-shadow:
      0 -16px 16px var(--v2-bg),
      0 16px 0 16px var(--v2-bg);
  }
  .v2-header__cta-m .v2-arrow {
    width: 12px;
    height: 12px;
  }
}

/* 04 · Первый экран --------------------------------------------------------- */
/* Баннер — картинка из макета (решение 19.10.2026), живая только кнопка.
   Десктоп: hero-desk.svg 1230×587 — ширина рабочей области, не больше 1230.
   Телефон (≤599): hero-mob.svg 358×587. Кнопка — в cqw от ширины баннера
   (container-type: inline-size), числа: x/1230×100 и x/358×100. */

.v2-hero {
  position: relative;
  container-type: inline-size;
}
.v2-hero__img {
  display: block;
  width: 100%;
  height: auto;
}
/* Слоган — только на десктопе и планшете (в мобильной картинке он нарисован) */
.v2-hero__slogan {
  position: absolute;
  left: 5.122cqw; /* 63 */
  top: 28.89cqw; /* 355: прописные с 366 — на 40 ниже «30» */
  margin: 0;
  font-weight: 400;
  font-size: 3.211cqw; /* 39.5 */
  line-height: 3.821cqw; /* 47 */
  text-transform: uppercase;
  color: var(--v2-yellow);
}
.v2-hero__btn {
  position: absolute;
  left: 5.285cqw; /* 65 — по левому краю «30» */
  top: 39.431cqw; /* 485: снизу 48 */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 19.024cqw; /* 234 */
  height: 4.39cqw; /* 54 */
  border-radius: 999px;
  background: var(--v2-teal-dark);
  color: var(--v2-yellow) !important;
  font-size: 1.463cqw; /* 18 */
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease;
}
.v2-hero__btn:hover {
  background: #164437;
}
/* Поиск под баннером — только на телефоне */
.v2-search_page {
  display: none;
}

/* Планшет: картинка уменьшается, а кнопка — не меньше удобного размера */
@media (max-width: 1100px) {
  .v2-hero__btn {
    width: max(170px, 19.024cqw);
    height: max(40px, 4.39cqw);
    font-size: max(14px, 1.463cqw);
  }
}

/* Телефон: карточка hero-mob.svg (358×587), кнопка на всю ширину, как в макете */
@media (max-width: 599px) {
  .v2-hero {
    max-width: 440px;
    margin: 0 auto;
  }
  /* Слоган нарисован в hero-mob.svg. Живой текст — это <h1>, поэтому не
     display:none, а скрыт визуально (как .v2-sr). В режимах цвета и без
     картинок он показывается — см. конец раздела 13. */
  html:not(.color-contrast, .color-invers, .picture-off) .v2-hero__slogan {
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .v2-hero__btn {
    left: 9.08cqw; /* 32.5 */
    top: 142.74cqw; /* 511 */
    width: 81.84cqw; /* 293 */
    height: 12.29cqw; /* 44 */
    font-size: 5.03cqw; /* 18 */
    color: #e4e3e1 !important;
  }
  .v2-search_page {
    display: block;
    max-width: 440px;
    margin: 23px auto 0;
  }
}

/* 05 · О нас и цифры, «Чаще всего ищут» ------------------------------------ */

.v2-about {
  margin-top: 70px;
}
.v2-about__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 13px;
}
.v2-about__lead {
  grid-column: span 2;
  align-self: start;
  max-width: 520px;
  font-size: calc(22px * var(--v2-fs));
  line-height: calc(28px * var(--v2-fs));
  color: var(--v2-text);
}
.v2-stat {
  display: flex;
  flex-direction: column;
  min-height: 206px;
  padding: 30px 32px;
  border-radius: var(--v2-r-s);
  background: var(--v2-tile);
}
.v2-stat__num {
  font-size: calc(72px * var(--v2-fs));
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.01em;
}
.v2-stat__label {
  margin-top: 16px;
  font-size: calc(22px * var(--v2-fs));
  font-weight: 600;
  line-height: calc(28px * var(--v2-fs));
}
.v2-stat_accent {
  grid-column: span 2;
  padding-left: 37px;
  background: linear-gradient(228deg, var(--v2-gradient));
  color: #fff;
}
.v2-stat_accent .v2-stat__label {
  max-width: 360px;
  margin-top: 12px;
}

@media (max-width: 1000px) {
  .v2-about {
    margin-top: 56px;
  }
  .v2-about__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .v2-about__lead {
    grid-column: span 2;
    max-width: none;
    margin-bottom: 16px;
  }
  .v2-stat {
    min-height: 170px;
  }
  .v2-stat__num {
    font-size: calc(56px * var(--v2-fs));
  }
}
@media (max-width: 600px) {
  .v2-about {
    margin-top: 40px;
  }
  .v2-about__lead {
    font-size: calc(18px * var(--v2-fs));
    line-height: calc(25px * var(--v2-fs));
  }
  .v2-stat {
    min-height: 0;
    padding: 20px;
  }
  .v2-stat__num {
    font-size: calc(40px * var(--v2-fs));
  }
  .v2-stat__label {
    margin-top: 10px;
    font-size: calc(16px * var(--v2-fs));
    line-height: calc(21px * var(--v2-fs));
  }
}

/* Чипы: обёртку .rd-chips рисует сниппет rdTopLinks */
.v2-topics {
  margin-top: 94px;
}
.v2-topics .v2-h2 {
  margin-bottom: 42px;
}
.v2-topics .rd-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 18px;
  max-width: 1060px;
  margin: 0 auto;
}
.v2-chip {
  display: inline-flex;
  align-items: center;
  height: calc(68px * var(--v2-fs));
  padding: 0 56px;
  border: 1px solid #bababa;
  border-radius: 30px;
  color: #585857 !important;
  font-size: calc(22px * var(--v2-fs));
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}
/* Зелёный чип в макете — это состояние при наведении (уточнение 19.10.2026),
   а не выделение «подобранной» темы: все чипы выглядят одинаково. */
.v2-chip:hover,
.v2-chip:focus-visible {
  border-color: var(--v2-mint);
  background: var(--v2-mint);
  color: #fff !important;
}
@media (max-width: 1000px) {
  .v2-topics {
    margin-top: var(--v2-section);
  }
  .v2-topics .v2-h2 {
    margin-bottom: 28px;
  }
  .v2-chip {
    height: calc(52px * var(--v2-fs));
    padding: 0 28px;
    font-size: calc(17px * var(--v2-fs));
  }
}
@media (max-width: 600px) {
  .v2-topics .rd-chips {
    gap: 10px;
  }
  .v2-chip {
    height: calc(44px * var(--v2-fs));
    padding: 0 18px;
    font-size: calc(15px * var(--v2-fs));
  }
}

/* 06 · Методы --------------------------------------------------------------- */

.v2-methods {
  margin-top: 97px;
}
.v2-methods__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 26px;
}
.v2-method {
  display: flex;
  flex-direction: column;
  min-height: 314px;
  padding: 36px 30px 30px;
  border-radius: var(--v2-r-l);
  background: var(--v2-sage);
}
.v2-method__kicker {
  font-size: calc(16px * var(--v2-fs));
  font-weight: 600;
  color: var(--v2-muted);
}
.v2-method__title {
  margin-top: 22px;
  font-size: calc(28px * var(--v2-fs));
  font-weight: 600;
  line-height: 1.2;
  color: #000;
}
.v2-method__text {
  margin-top: 16px;
  max-width: 520px;
  font-size: calc(20px * var(--v2-fs));
  line-height: calc(28px * var(--v2-fs));
}
.v2-method__link {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 28px;
  font-size: calc(18px * var(--v2-fs));
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  color: #000 !important;
}
.v2-method_dark {
  background: var(--v2-teal);
}
.v2-method_dark .v2-method__kicker {
  color: #cacaca;
}
.v2-method_dark .v2-method__title,
.v2-method_dark .v2-method__link {
  color: #fff !important;
}
.v2-method_dark .v2-method__text {
  color: var(--v2-sage);
}
.v2-method__link:hover {
  text-decoration-thickness: 2.5px;
}

@media (max-width: 900px) {
  .v2-methods {
    margin-top: var(--v2-section);
  }
  .v2-methods__grid {
    grid-template-columns: 1fr;
    gap: var(--v2-gap);
  }
  .v2-method {
    min-height: 0;
  }
}
@media (max-width: 600px) {
  .v2-method {
    padding: 24px 20px;
  }
  .v2-method__title {
    margin-top: 14px;
    font-size: calc(24px * var(--v2-fs));
  }
  .v2-method__text {
    font-size: calc(17px * var(--v2-fs));
    line-height: calc(24px * var(--v2-fs));
  }
  .v2-method__link {
    font-size: calc(16px * var(--v2-fs));
    padding-top: 20px;
  }
}

/* 07 · Рекомендуем ---------------------------------------------------------- */

.v2-recommend__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--v2-gap);
}
.v2-rec {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 412px;
  padding: 27px 30px 28px;
  overflow: hidden;
  border-radius: var(--v2-r-l);
  /* Карточка без картинки — один цвет для всех направлений (решение 19.10.2026) */
  background: #b0b9ed;
  color: #fff !important;
  text-decoration: none;
}
.v2-rec__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.v2-rec_img::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0) 35%,
    rgba(0, 0, 0, 0.6) 100%
  );
}
.v2-rec:hover .v2-rec__img {
  transform: scale(1.03);
}
.v2-rec__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.v2-rec__top .v2-arrow {
  width: 20px;
  height: 20px;
  margin-top: 3px;
}
.v2-rec__pill {
  padding: 5px 20px;
  border-radius: 14px;
  background: #7a83b3;
  font-size: calc(12px * var(--v2-fs));
  line-height: calc(17px * var(--v2-fs));
}
.v2-rec__label {
  display: block;
  font-size: calc(13px * var(--v2-fs));
  font-weight: 600;
}
.v2-rec__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  overflow: hidden;
  margin-top: 10px;
  font-size: calc(32px * var(--v2-fs));
  font-weight: 600;
  line-height: calc(32px * var(--v2-fs));
}
.v2-rec.anons-card_soon {
  cursor: default;
}
.v2-rec.anons-card_soon .v2-arrow {
  display: none;
}

/* Уже 900px три карточки не помещаются — идут одна под другой */
@media (max-width: 1000px) {
  .v2-rec__title {
    font-size: calc(26px * var(--v2-fs));
    line-height: calc(28px * var(--v2-fs));
  }
}
@media (max-width: 900px) {
  .v2-recommend__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .v2-rec {
    min-height: 320px;
  }
}
@media (max-width: 600px) {
  .v2-rec {
    min-height: 280px;
    padding: 22px 22px 24px;
  }
  .v2-rec__title {
    font-size: calc(24px * var(--v2-fs));
    line-height: calc(27px * var(--v2-fs));
  }
}

/* 08 · Карточка события (программы и события) ------------------------------ */

.v2-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--v2-gap);
}
.v2-card {
  display: flex;
  flex-direction: column;
  min-height: 187px;
  padding: 22px 22px 24px;
  border-radius: var(--v2-r-s);
  background: var(--v2-c-other);
  color: var(--v2-text) !important;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.v2-card_gestalt {
  background: var(--v2-c-gestalt);
}
.v2-card_gestalt[data-vid="2 ступень"] {
  background: var(--v2-c-gestalt-2);
}
.v2-card_psy {
  background: var(--v2-c-psy);
}
.v2-card_both {
  background: var(--v2-c-both);
}
.v2-card_online {
  background: var(--v2-c-other);
} /* онлайн-школа (курсы) */
a.v2-card[href]:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}
.v2-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.v2-card__top .v2-arrow {
  width: 16px;
  height: 16px;
}
.v2-card__label {
  min-width: 0;
  font-size: calc(13px * var(--v2-fs));
  line-height: 1.35;
  color: var(--v2-muted);
}
.v2-card__date {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin-top: auto;
  padding-top: 40px;
  font-size: calc(22px * var(--v2-fs));
  font-weight: 700;
  line-height: calc(28px * var(--v2-fs));
}
/* Метка формата «Онлайн» / «Очно и онлайн» рядом с датой */
.v2-card__badge {
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
  font-size: calc(12px * var(--v2-fs));
  font-weight: 600;
  line-height: calc(16px * var(--v2-fs));
  color: var(--v2-teal-dark);
}
/* Название — не больше четырёх строк, дальше троеточие (решение 29.10.2026).
   Один размер в «Программах» и «Событиях» — 22px. */
.v2-card__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  overflow: hidden;
  font-size: calc(22px * var(--v2-fs));
  font-weight: 600;
  line-height: 1.2;
  overflow-wrap: break-word;
}
.v2-card.anons-card_soon .v2-arrow {
  display: none;
}

@media (max-width: 1100px) {
  .v2-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .v2-cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .v2-card {
    min-height: 150px;
  }
  .v2-card__date {
    padding-top: 24px;
    font-size: calc(19px * var(--v2-fs));
  }
  .v2-card__title {
    font-size: calc(19px * var(--v2-fs));
    line-height: calc(25px * var(--v2-fs));
  }
}

/* 09 · Новости и медиа ------------------------------------------------------ */

.v2-feed__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
}
.v2-feed .v2-head {
  margin-bottom: 22px;
}
.v2-news__item {
  position: relative;
  display: block;
  padding: 2px 52px 22px 0;
  margin-bottom: 14px;
  border-bottom: 1px solid #cbcbcb;
  text-decoration: none;
}
.v2-news__item .v2-arrow {
  position: absolute;
  top: 6px;
  right: 3px;
  width: 16px;
  height: 16px;
}
.v2-news__date {
  display: block;
  font-size: calc(13px * var(--v2-fs));
  color: var(--v2-muted);
}
.v2-news__title {
  display: block;
  max-width: 420px;
  margin-top: 8px;
  font-size: calc(20px * var(--v2-fs));
  font-weight: 600;
  line-height: calc(28px * var(--v2-fs));
}
.v2-news__item:hover .v2-news__title {
  color: var(--v2-teal);
}
.v2-news__item:hover .v2-arrow {
  transform: translate(2px, -2px);
}

.v2-media__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.v2-media__item {
  display: block;
  text-decoration: none;
}
/* Обложка — в своих пропорциях, без обрезки (решение 29.10.2026) */
.v2-media__img {
  width: 100%;
  height: auto !important;
  border-radius: var(--v2-r-s);
}
.v2-media__title {
  display: block;
  margin-top: 20px;
  font-size: calc(20px * var(--v2-fs));
  font-weight: 600;
  line-height: calc(28px * var(--v2-fs));
}
.v2-media__item:hover .v2-media__title {
  color: var(--v2-teal);
}
/* Текст карточки — анонс статьи (introtext), не больше пяти строк */
.v2-media__text {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  overflow: hidden;
  margin-top: 12px;
  font-size: calc(16px * var(--v2-fs));
  line-height: calc(20px * var(--v2-fs));
}
.v2-media__date {
  display: block;
  margin-top: 12px;
  font-size: calc(13px * var(--v2-fs));
  color: var(--v2-muted);
}

@media (max-width: 1000px) {
  .v2-feed__grid {
    grid-template-columns: 1fr;
    gap: var(--v2-section);
  }
}
@media (max-width: 600px) {
  .v2-news__title {
    font-size: calc(18px * var(--v2-fs));
    line-height: calc(25px * var(--v2-fs));
  }
  .v2-media__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* 10 · Баннер-призыв -------------------------------------------------------- */

.v2-cta-wrap {
  margin-top: 123px;
}
.v2-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 333px;
  min-height: 246px;
  overflow: hidden;
  border-radius: var(--v2-r-l);
  background: linear-gradient(213deg, var(--v2-gradient));
}
.v2-cta__body {
  padding: 28px 34px 30px;
}
.v2-cta__kicker {
  font-size: calc(13px * var(--v2-fs));
  font-weight: 600;
  color: #fff;
}
.v2-cta__title {
  max-width: 780px;
  margin: 18px 0 26px;
  font-size: calc(38px * var(--v2-fs));
  font-weight: 600;
  line-height: calc(40px * var(--v2-fs));
  color: var(--v2-sage);
}
.v2-cta__photo {
  position: relative;
}
.v2-cta__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100% !important;
  object-fit: cover;
  filter: grayscale(1) contrast(0.95);
}
/* Бирюзовая тонировка фото, как в макете */
.v2-cta__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(79, 160, 150, 0.28);
  mix-blend-mode: multiply;
}
@media (max-width: 1000px) {
  .v2-cta-wrap {
    margin-top: var(--v2-section);
  }
  .v2-cta {
    grid-template-columns: minmax(0, 1fr) 240px;
  }
  .v2-cta__title {
    font-size: calc(30px * var(--v2-fs));
    line-height: calc(34px * var(--v2-fs));
  }
}
@media (max-width: 700px) {
  .v2-cta {
    grid-template-columns: minmax(0, 1fr);
  }
  .v2-cta__photo {
    display: none;
  }
  .v2-cta__body {
    padding: 24px 20px 26px;
  }
  .v2-cta__title {
    font-size: calc(26px * var(--v2-fs));
    line-height: calc(30px * var(--v2-fs));
  }
}
@media (max-width: 400px) {
  .v2-cta__title {
    font-size: calc(22px * var(--v2-fs));
    line-height: calc(26px * var(--v2-fs));
  }
}

/* 12 · FAQ ------------------------------------------------------------------ */

.v2-faq {
  margin-top: 81px;
}
.v2-faq__grid {
  display: grid;
  grid-template-columns: 315px 1fr;
}
.v2-faq__side,
.v2-faq__list {
  border-top: 1px solid var(--v2-line);
}
.v2-faq__side {
  padding-top: 28px;
}
.v2-faq__side .v2-more {
  margin-top: 18px;
}
.v2-faq__item {
  border-bottom: 1px solid var(--v2-line);
}
.v2-faq__item summary {
  position: relative;
  display: block;
  padding: 33px 60px 34px 105px;
  font-size: calc(22px * var(--v2-fs));
  font-weight: 600;
  line-height: calc(29px * var(--v2-fs));
  color: #000;
  cursor: pointer;
  list-style: none;
}
.v2-faq__item summary::-webkit-details-marker {
  display: none;
}
.v2-faq__item summary::after {
  content: "";
  position: absolute;
  top: 41px;
  right: 4px;
  width: 17px;
  height: 17px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 13.5L13 3M4.5 2.5H13.5V11.5' fill='none' stroke='%23000' stroke-width='1.8'/%3E%3C/svg%3E")
    center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 13.5L13 3M4.5 2.5H13.5V11.5' fill='none' stroke='%23000' stroke-width='1.8'/%3E%3C/svg%3E")
    center / contain no-repeat;
  transition: transform 0.2s ease;
}
.v2-faq__item[open] summary::after {
  transform: rotate(90deg);
}
.v2-faq__item summary:hover {
  color: var(--v2-teal);
}
.v2-faq__answer {
  padding: 0 60px 30px 105px;
  font-size: calc(18px * var(--v2-fs));
  line-height: calc(27px * var(--v2-fs));
}
.v2-faq__answer p + p {
  margin-top: 12px;
}
.v2-faq__answer a {
  color: var(--v2-teal);
}

@media (max-width: 1000px) {
  .v2-faq {
    margin-top: var(--v2-section);
  }
  .v2-faq__grid {
    grid-template-columns: 1fr;
  }
  .v2-faq__side {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 24px 0 12px;
    border-top: 0;
  }
  .v2-faq__side .v2-more {
    margin-top: 0;
  }
  .v2-faq__item summary {
    padding: 24px 44px 24px 0;
    font-size: calc(19px * var(--v2-fs));
    line-height: calc(26px * var(--v2-fs));
  }
  .v2-faq__item summary::after {
    top: 29px;
  }
  .v2-faq__answer {
    padding: 0 0 24px;
    font-size: calc(16px * var(--v2-fs));
    line-height: calc(24px * var(--v2-fs));
  }
}

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

.v2-footer {
  margin-top: 82px;
  border-radius: 30px 30px 0 0;
  background: var(--v2-teal);
  color: #fff;
}
.v2-footer a {
  text-decoration: none;
}
.v2-footer a:hover {
  text-decoration: underline;
}
.v2-footer__main {
  padding: 77px 0 30px;
}
.v2-footer__grid {
  display: grid;
  grid-template-columns: 426px 256px 255px 1fr;
}
.v2-footer__logo img {
  width: 136px;
  height: 49px;
}
.v2-footer__about p {
  max-width: 330px;
  margin-top: 33px;
  font-size: calc(16px * var(--v2-fs));
  line-height: 1.37;
}
.v2-footer__title {
  padding-top: 3px;
  font-size: calc(13px * var(--v2-fs));
  font-weight: 600;
}
.v2-footer__links {
  margin-top: 20px;
}
.v2-footer__links li {
  font-size: calc(13px * var(--v2-fs));
  line-height: calc(26px * var(--v2-fs));
}
.v2-social {
  display: flex;
  gap: 7px;
  margin-top: 11px;
}
.v2-social a {
  position: relative;
  display: block;
  width: 27px;
  height: 27px;
  border-radius: 5px;
  background: #ebe9e8;
}
.v2-social a::after {
  content: "";
  position: absolute;
  inset: 6px;
  background: var(--v2-teal);
  -webkit-mask: var(--ico) center / contain no-repeat;
  mask: var(--ico) center / contain no-repeat;
}
.v2-social a:hover {
  background: #fff;
}
.v2-social__vk {
  --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.8 18.5C5.5 18.5 1.3 13.5 1.1 5h3.7c.1 6.2 2.9 8.9 5 9.4V5h3.5v5.4c2.1-.2 4.4-2.7 5.1-5.4h3.4c-.6 3.3-3 5.8-4.7 6.8 1.7.8 4.4 2.9 5.4 6.7h-3.8c-.8-2.5-2.8-4.5-5.4-4.8v4.8z'/%3E%3C/svg%3E");
}
.v2-social__dzen {
  --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1c.2 6.4 4.6 10.8 11 11-6.4.2-10.8 4.6-11 11-.2-6.4-4.6-10.8-11-11 6.4-.2 10.8-4.6 11-11z'/%3E%3C/svg%3E");
}
.v2-social__tg {
  --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21.5 3.4L2.6 10.7c-1.3.5-1.3 1.2-.2 1.6l4.8 1.5 1.8 5.6c.2.6.4.8.9.8.4 0 .6-.2.9-.5l2.3-2.2 4.8 3.5c.9.5 1.5.2 1.7-.8L22.9 4.9c.3-1.4-.5-2-1.4-1.5zM8.9 13.4l9.2-5.8c.5-.3.8-.1.4.2l-7.6 6.9-.3 3.2-1.7-4.5z'/%3E%3C/svg%3E");
}

.v2-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 56px;
  padding-top: 17px;
  border-top: 1px solid #8d9e9c;
  font-size: calc(12px * var(--v2-fs));
  color: #bababa;
}
.v2-footer__docs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.v2-footer__docs li + li::before {
  content: "•";
  margin: 0 6px 0 4px;
}

.v2-help {
  border-radius: 30px 30px 0 0;
  background: var(--v2-green);
  padding: 47px 0 58px;
  font-size: calc(13px * var(--v2-fs));
  line-height: calc(21px * var(--v2-fs));
}
.v2-help__grid {
  display: grid;
  grid-template-columns: 420px 315px 315px 1fr;
}
.v2-help__intro p {
  max-width: 280px;
}
.v2-help__intro .v2-help__item {
  margin-top: 30px;
}
.v2-help__name {
  max-width: 240px;
  font-weight: 600;
}
.v2-help__item > a,
.v2-help__item > span {
  display: block;
  margin-top: 8px;
}

@media (max-width: 1200px) {
  .v2-footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
    gap: 24px;
  }
  .v2-help__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 24px;
  }
}
@media (max-width: 900px) {
  .v2-footer {
    margin-top: var(--v2-section);
  }
  .v2-footer__main {
    padding-top: 48px;
  }
  .v2-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px 24px;
  }
  .v2-footer__about {
    grid-column: span 2;
  }
  .v2-footer__about p {
    margin-top: 20px;
    max-width: 420px;
  }
  .v2-footer__bottom {
    margin-top: 40px;
  }
  .v2-footer__docs {
    justify-content: flex-start;
  }
  .v2-help__grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 24px;
  }
  .v2-help__intro {
    grid-column: span 2;
  }
  .v2-help__intro p {
    max-width: 460px;
  }
}
@media (max-width: 480px) {
  .v2-footer__grid,
  .v2-help__grid {
    grid-template-columns: 1fr;
  }
  .v2-footer__about,
  .v2-help__intro {
    grid-column: auto;
  }
}

/* Ссылка «Версия для слабовидящих» в подвале — плитка-иконка в стиле соцсетей.
   Старые .block-aa / .version-aa__switch (css.css) удалить при переносе страниц. */
.v2-footer__a11y {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  font-size: calc(13px * var(--v2-fs));
  line-height: calc(18px * var(--v2-fs));
}
.v2-ico-tile {
  position: relative;
  flex: none;
  width: 27px;
  height: 27px;
  border-radius: 5px;
  background: #ebe9e8;
}
.v2-ico-tile::after {
  content: "";
  position: absolute;
  inset: 5px;
  background: var(--v2-teal);
  -webkit-mask: var(--ico) center / contain no-repeat;
  mask: var(--ico) center / contain no-repeat;
}
.v2-footer__a11y:hover .v2-ico-tile {
  background: #fff;
}
.v2-ico-eye {
  --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='6' cy='15' r='4'/%3E%3Ccircle cx='18' cy='15' r='4'/%3E%3Cpath d='M10 14.2c1.3-1 2.7-1 4 0M2.2 13.6 4.5 6.5h2M21.8 13.6 19.5 6.5h-2'/%3E%3C/g%3E%3C/svg%3E");
}

/* Кнопка связи (#contactButton) — круглая, в правом нижнем углу; по нажатию
   карточка с телефоном и почтой. Старые .contact-button / .contact-popup
   (css.css) удалить при переносе страниц. */
.v2-contact {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
}
.v2-contact__btn {
  position: relative;
  display: block;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: var(--v2-teal);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}
.v2-contact__btn::after {
  content: "";
  position: absolute;
  inset: 16px;
  background: #fff;
  -webkit-mask: var(--ico) center / contain no-repeat;
  mask: var(--ico) center / contain no-repeat;
  --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1A17 17 0 0 1 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.3.2 2.5.6 3.6.1.3 0 .7-.2 1z'/%3E%3C/svg%3E");
}
.v2-contact__btn:hover {
  background: var(--v2-teal-dark);
  transform: scale(1.06);
}
.v2-contact__btn[aria-expanded="true"]::after {
  inset: 18px;
  --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4l16 16M20 4 4 20' stroke='%23000' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
}
.v2-contact__pop {
  position: absolute;
  right: 0;
  bottom: 72px;
  width: min(340px, calc(100vw - 40px));
  padding: 24px 26px 26px;
  border-radius: var(--v2-r-l);
  background: #fff;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
  color: var(--v2-text);
}
.v2-contact__title {
  font-size: calc(18px * var(--v2-fs));
  font-weight: 600;
  line-height: calc(24px * var(--v2-fs));
}
.v2-contact__phone {
  display: inline-block;
  margin-top: 16px;
  font-size: calc(22px * var(--v2-fs));
  font-weight: 600;
  line-height: calc(28px * var(--v2-fs));
  color: var(--v2-teal-dark) !important;
  text-decoration: none;
}
.v2-contact__note {
  font-size: calc(13px * var(--v2-fs));
  line-height: calc(18px * var(--v2-fs));
  color: var(--v2-muted);
}
.v2-contact__mail {
  display: inline-block;
  margin-top: 12px;
  font-size: calc(16px * var(--v2-fs));
  line-height: calc(22px * var(--v2-fs));
  color: var(--v2-teal-dark) !important;
}
.v2-contact .v2-social {
  margin-top: 18px;
}
.v2-contact .v2-social a:hover {
  background: var(--v2-mint);
}
/* Пока видна плашка cookie на телефоне (она во всю ширину) — кнопку поднимаем */
@media (max-width: 600px) {
  .v2-contact {
    right: 16px;
    bottom: 16px;
  }
  .v2-contact__btn {
    width: 48px;
    height: 48px;
  }
  .v2-contact__btn::after {
    inset: 13px;
  }
  .v2-contact__btn[aria-expanded="true"]::after {
    inset: 15px;
  }
  .v2-contact__pop {
    bottom: 62px;
    width: calc(100vw - 32px);
  }
  body:has(.v2-cookie:not([hidden])) .v2-contact {
    bottom: 150px;
  }
}

/* Панель «Версия для слабовидящих» — <dialog>, открывается из подвала.
   Выбор — классами на <html> (fontsize-*, color-*, letter-*, font-*, picture-*),
   хранится в cookie version.parameters — той же, что у старых страниц
   (version-aa.js), поэтому настройка общая для всего сайта. */
.v2-a11y {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  padding: 0;
  border: 0;
  border-radius: var(--v2-r-l);
  background: #fff;
  color: var(--v2-text);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}
.v2-a11y::backdrop {
  background: rgba(0, 0, 0, 0.55);
}
.v2-a11y__inner {
  position: relative;
  padding: 32px 36px 34px;
}
.v2-a11y__title {
  padding-right: 40px;
  font-size: calc(26px * var(--v2-fs));
  font-weight: 600;
  line-height: calc(32px * var(--v2-fs));
}
.v2-a11y__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--v2-bg);
  cursor: pointer;
}
.v2-a11y__close::after {
  content: "";
  position: absolute;
  inset: 12px;
  background: var(--v2-text);
  -webkit-mask: var(--ico) center / contain no-repeat;
  mask: var(--ico) center / contain no-repeat;
  --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 4l16 16M20 4 4 20' stroke='%23000' stroke-width='2.6' stroke-linecap='round'/%3E%3C/svg%3E");
}
.v2-a11y__close:hover {
  background: var(--v2-tile);
}
.v2-a11y__row {
  margin-top: 26px;
}
.v2-a11y__label {
  font-size: calc(14px * var(--v2-fs));
  font-weight: 600;
  line-height: calc(20px * var(--v2-fs));
}
.v2-a11y__opts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}
.v2-a11y__opt {
  min-height: calc(40px * var(--v2-fs));
  padding: 6px 18px;
  border: 2px solid var(--v2-tile);
  border-radius: 999px;
  background: #fff;
  color: var(--v2-text);
  font-size: calc(15px * var(--v2-fs));
  line-height: calc(20px * var(--v2-fs));
  cursor: pointer;
}
.v2-a11y__opt:hover {
  border-color: var(--v2-teal);
}
.v2-a11y__opt[aria-pressed="true"] {
  border-color: var(--v2-teal);
  background: var(--v2-teal);
  color: #fff;
}
.v2-a11y__opt_arial {
  font-family: Arial, Helvetica, sans-serif;
}
.v2-a11y__opt_times {
  font-family: "Times New Roman", Times, serif;
}
.v2-a11y__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.v2-a11y__foot .v2-btn {
  height: auto;
  min-height: calc(44px * var(--v2-fs));
  padding: 8px 22px;
  font-size: calc(15px * var(--v2-fs));
}
.v2-a11y__reset {
  border: 2px solid var(--v2-text);
  border-radius: var(--v2-r-s);
  background: #fff;
  color: var(--v2-text);
}
@media (max-width: 600px) {
  .v2-a11y__inner {
    padding: 24px 20px 26px;
  }
  .v2-a11y__close {
    top: 16px;
    right: 16px;
  }
  .v2-a11y__title {
    font-size: calc(21px * var(--v2-fs));
    line-height: calc(26px * var(--v2-fs));
  }
}

/* --- Режимы версии для слабовидящих ---------------------------------------- */

/* Размер шрифта: множитель для всех кеглей (см. --v2-fs в разделе 00) */
html.fontsize-125 { --v2-fs: 1.25; }
html.fontsize-150 { --v2-fs: 1.5; }
html.fontsize-175 { --v2-fs: 1.75; }
html.fontsize-200 { --v2-fs: 2; }
/* С крупным шрифтом длинные слова в узких колонках не должны вылезать */
html[class*="fontsize-"] :is(body.v2, .v2-scope) {
  overflow-wrap: break-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}
html[class*="fontsize-"] .v2-btn {
  white-space: normal;
  text-align: center;
}
/* Цифры в плитках и так крупные (до 72px) — не увеличиваем, иначе «35K+»
   разваливается на две строки */
.v2-stat__num {
  --v2-fs: 1;
}
/* Лупа поиска — по центру поля по высоте (поле растёт вместе с текстом) */
html[class*="fontsize-"] .v2-search__btn {
  height: 100%;
}
/* Шапка на десктопе в одну строку уже не помещается: логотип и «Подать заявку»
   сверху, меню и поиск — строкой ниже, меню переносится */
@media (min-width: 1261px) {
  html[class*="fontsize-"] .v2-header__bar {
    flex-wrap: wrap;
    height: auto;
    min-height: 90px;
    padding-block: 16px;
    row-gap: 12px;
  }
  html[class*="fontsize-"] .v2-header__pay {
    margin-left: auto;
  }
  html[class*="fontsize-"] .v2-header__panel {
    order: 3;
    flex: 1 1 100%;
    flex-wrap: wrap;
  }
  html[class*="fontsize-"] .v2-menu {
    margin: 0;
  }
  html[class*="fontsize-"] .v2-menu__list {
    flex-wrap: wrap;
    column-gap: 28px;
  }
}

/* Шрифт */
html.font-arial { --v2-font: Arial, Helvetica, sans-serif; }
html.font-times { --v2-font: "Times New Roman", Times, serif; }

/* Межбуквенный интервал */
html.letter-big :is(body.v2, .v2-scope),
html.letter-big :is(body.v2, .v2-scope) * {
  letter-spacing: 0.12em !important;
}
html.letter-huge :is(body.v2, .v2-scope),
html.letter-huge :is(body.v2, .v2-scope) * {
  letter-spacing: 0.24em !important;
}

/* Изображения выключены. Логотипы оставляем — это навигация. */
html.picture-off :is(body.v2, .v2-scope) img:not(:is(.v2-header__logo, .v2-footer__logo) img) {
  display: none !important;
}
/* …а css.css старых страниц прячет все img подряд (.picture-off img) */
html.picture-off :is(.v2-header__logo, .v2-footer__logo) img {
  display: block !important;
}

/* Цвет: «Контрастный» — чёрное на белом, «Инверсия» — белое на чёрном.
   Цветов, заданных прямо в правилах (часть — с !important), много, поэтому
   перекрашиваем все элементы разом; иконки-маски берут цвет из токенов. */
html.color-contrast {
  --v2-bg: #fff;
  --v2-text: #000;
  --v2-muted: #000;
  --v2-line: #000;
  --v2-teal: #000;
  --v2-teal-dark: #000;
  --v2-teal-light: #000;
  --v2-green: #000;
  --v2-a11y-fg: #000;
  --v2-a11y-bg: #fff;
}
html.color-invers {
  --v2-bg: #000;
  --v2-text: #fff;
  --v2-muted: #fff;
  --v2-line: #fff;
  --v2-teal: #fff;
  --v2-teal-dark: #fff;
  --v2-teal-light: #fff;
  --v2-green: #fff;
  --v2-a11y-fg: #fff;
  --v2-a11y-bg: #000;
}
html:is(.color-contrast, .color-invers) :is(body.v2, .v2-scope),
html:is(.color-contrast, .color-invers) :is(body.v2, .v2-scope) * {
  background-color: var(--v2-a11y-bg) !important;
  background-image: none !important;
  color: var(--v2-a11y-fg) !important;
  border-color: var(--v2-a11y-fg) !important;
  box-shadow: none !important;
  text-shadow: none !important;
}
html:is(.color-contrast, .color-invers) :is(body.v2, .v2-scope) *::before,
html:is(.color-contrast, .color-invers) :is(body.v2, .v2-scope) *::after {
  background-image: none !important;
}
/* Иконки-маски (стрелки, лупа, плитки соцсетей) — цветом текста */
html:is(.color-contrast, .color-invers) :is(body.v2, .v2-scope) :is(.v2-arrow, .v2-search__btn),
html:is(.color-contrast, .color-invers) :is(body.v2, .v2-scope) :is(.v2-social a, .v2-ico-tile, .v2-contact__btn, .v2-a11y__close, .v2-faq__item summary)::after,
html:is(.color-contrast, .color-invers) :is(body.v2, .v2-scope) .v2-header__burger span {
  background-color: var(--v2-a11y-fg) !important;
}
/* Отдельные блоки на однотонном фоне иначе сливаются — обводим */
html:is(.color-contrast, .color-invers) :is(body.v2, .v2-scope) :is(.v2-btn, .v2-hero__btn, .v2-chip, .v2-stat, .v2-method, .v2-rec, .v2-card, .v2-card__badge, .v2-rec__pill, .v2-cta, .v2-social a, .v2-ico-tile, .v2-contact__btn, .v2-contact__pop, .v2-a11y, .v2-cookie, .v2-menu__sub, .v2-search__input, .ask-psy-teaser__btn) {
  border: 2px solid var(--v2-a11y-fg) !important;
}
html:is(.color-contrast, .color-invers) :is(body.v2, .v2-scope) .v2-a11y__opt[aria-pressed="true"] {
  background-color: var(--v2-a11y-fg) !important;
  color: var(--v2-a11y-bg) !important;
}
html:is(.color-contrast, .color-invers) :is(body.v2, .v2-scope) img {
  background-color: transparent !important;
}
/* Белый логотип подвала пропадает на белом, серый логотип шапки — на чёрном.
   invert + hue-rotate меняет светлое и тёмное местами, а зелёный кружок
   оставляет зелёным. */
html.color-contrast :is(body.v2, .v2-scope) .v2-footer__logo img,
html.color-invers :is(body.v2, .v2-scope) .v2-header__logo img {
  filter: invert(1) hue-rotate(180deg);
}
/* Фото под текстом карточек мешает читать — убираем */
html:is(.color-contrast, .color-invers) :is(body.v2, .v2-scope) .v2-rec__img,
html:is(.color-contrast, .color-invers) :is(body.v2, .v2-scope) .v2-cta__photo::after {
  display: none !important;
}

/* Баннер — картинка с нарисованным текстом. В режимах цвета и без картинок
   вместо неё — обычный текстовый блок: слоган и кнопка. */
html:is(.color-contrast, .color-invers, .picture-off) .v2-hero picture {
  display: none;
}
html:is(.color-contrast, .color-invers, .picture-off) .v2-hero {
  container-type: normal;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  padding: 40px 0 8px;
}
html:is(.color-contrast, .color-invers, .picture-off) .v2-hero__slogan {
  position: static;
  display: block;
  font-size: calc(36px * var(--v2-fs));
  line-height: calc(44px * var(--v2-fs));
  color: var(--v2-teal-dark);
}
html:is(.color-contrast, .color-invers, .picture-off) .v2-hero__btn {
  position: static;
  width: auto;
  height: auto;
  min-height: calc(48px * var(--v2-fs));
  padding: 8px 32px;
  font-size: calc(18px * var(--v2-fs));
  color: var(--v2-yellow) !important;
}
@media (max-width: 599px) {
  html:is(.color-contrast, .color-invers, .picture-off) .v2-hero__slogan {
    font-size: calc(26px * var(--v2-fs));
    line-height: calc(32px * var(--v2-fs));
  }
}

/* 14 · Cookie --------------------------------------------------------------- */

.v2-cookie {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 520px;
  padding: 16px 18px;
  border-radius: var(--v2-r-s);
  background: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  font-size: calc(13px * var(--v2-fs));
  line-height: calc(18px * var(--v2-fs));
}
.v2-cookie a {
  color: var(--v2-teal);
}
@media (max-width: 600px) {
  .v2-cookie {
    right: 16px;
    flex-direction: column;
    align-items: flex-start;
  }
}

/* 15 · Совсем узкие экраны (≤340px) ----------------------------------------- */
/* Последним в файле, чтобы перекрыть все правила выше. Только уменьшаем
   кегли и отступы — раскладка та же, что на телефоне. */

@media (max-width: 340px) {
  .v2-h2 {
    font-size: calc(26px * var(--v2-fs));
  }

  .v2-about__lead {
    font-size: calc(16px * var(--v2-fs));
    line-height: calc(22px * var(--v2-fs));
  }
  .v2-about__grid {
    gap: 8px;
  }
  .v2-stat {
    padding: 16px 14px;
  }
  .v2-stat__num {
    font-size: calc(30px * var(--v2-fs));
  }
  .v2-stat__label {
    margin-top: 8px;
    font-size: calc(13px * var(--v2-fs));
    line-height: calc(17px * var(--v2-fs));
  }

  .v2-chip {
    height: calc(40px * var(--v2-fs));
    padding: 0 14px;
    font-size: calc(14px * var(--v2-fs));
  }
  .v2-method__title {
    font-size: calc(21px * var(--v2-fs));
  }
  .v2-method__text {
    font-size: calc(15px * var(--v2-fs));
    line-height: calc(21px * var(--v2-fs));
  }
  .v2-rec__title {
    font-size: calc(21px * var(--v2-fs));
    line-height: calc(24px * var(--v2-fs));
  }
  .v2-card__title {
    font-size: calc(17px * var(--v2-fs));
    line-height: calc(22px * var(--v2-fs));
  }
  .v2-news__title,
  .v2-media__title {
    font-size: calc(16px * var(--v2-fs));
    line-height: calc(22px * var(--v2-fs));
  }

  .v2-cta__body {
    padding: 20px 16px 22px;
  }
  .v2-cta__title {
    font-size: calc(19px * var(--v2-fs));
    line-height: calc(23px * var(--v2-fs));
  }
  .v2-btn_light {
    height: calc(46px * var(--v2-fs));
    padding: 0 18px;
    font-size: calc(15px * var(--v2-fs));
  }

  .v2-faq__item summary {
    font-size: calc(16px * var(--v2-fs));
    line-height: calc(22px * var(--v2-fs));
    padding-right: 34px;
  }
  .v2-faq__answer {
    font-size: calc(14px * var(--v2-fs));
    line-height: calc(21px * var(--v2-fs));
  }
}
