/* ============================================================================
   Chess Prime — перебранные блоки Tilda
   ----------------------------------------------------------------------------
   Сюда переезжают блоки, которые в экспорте свёрстаны абсолютным
   позиционированием (zero-block) и разваливаются на узких экранах.
   ========================================================================== */

/* ---------------------------------------------------------------------------
   ЛОГОТИП-ПИЛЮЛИ (общий для шапки и подвала)
   ---------------------------------------------------------------------------
   Белая «реплика» с уголком-хвостиком + коралловая пилюля. Векторный,
   картинка не нужна — значит, не зависит от CDN и не мылится на ретине.
   -------------------------------------------------------------------------- */

.cp-logo {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  text-decoration: none;
  line-height: 0;
}

.cp-logo__chess,
.cp-logo__prime {
  font-family: var(--cp-font-display);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: var(--cp-tracking-tight);
  line-height: 1;
  padding: 8px 12px;
  white-space: nowrap;
}
@media (min-width: 768px) {
  .cp-logo__chess,
  .cp-logo__prime {
    font-size: 14px;
    padding: 9px 14px;
  }
}

.cp-logo__chess {
  position: relative;
  background: #fff;
  color: var(--cp-indigo-800);
  border-radius: 16px 16px 16px 3px;
  box-shadow: var(--shadow-sm);
}
/* хвостик-«уголок» под левым нижним углом — как у речевого облачка */
.cp-logo__chess::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 12px;
  height: 12px;
  background: #fff;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.cp-logo__prime {
  color: #fff;
  background: var(--cp-gradient-brand);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-brand);
}

/* крупный вариант — в подвале */
.cp-logo--lg .cp-logo__chess,
.cp-logo--lg .cp-logo__prime {
  font-size: 15px;
  padding: 11px 17px;
}

/* ---------------------------------------------------------------------------
   ШАПКА
   ---------------------------------------------------------------------------
   Была zero-блоком (rec2287173321): пунктам меню на сетке 960 задан
   top:-317px — они уезжали за верх артборда, и ниже 1200px навигации не
   было вовсе (её подменял плавающий бургер поверх контента). Переверстана
   на flow: липкая полоса, пункты-«пилюли», бургер с выпадающей панелью.

   CTA — «Личный кабинет» (lk.chessprime.online), телефон рядом остаётся
   кликабельным и на мобильном уезжает в раскрытое меню.
   -------------------------------------------------------------------------- */

.cp-header {
  --cp-header-h: 80px;
  position: sticky;
  top: 0;
  /* ниже попапов Tilda (10000001) и выше любых блоков страницы */
  z-index: 9000;
  isolation: isolate;
  background: var(--cp-gradient-indigo);
  color: #fff;
  font-family: var(--cp-font-sans);
  transition: box-shadow var(--cp-dur) var(--cp-ease-out);
}
@media (max-width: 639px) {
  .cp-header {
    --cp-header-h: 70px;
  }
}

/* тень появляется только когда страницу прокрутили — скрипт ставит атрибут */
.cp-header[data-scrolled='true'] {
  box-shadow: 0 12px 28px -12px rgba(26, 7, 51, 0.55);
}

/* сетка-подложка: та же, что в подвале, но слабее */
.cp-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(ellipse 70% 100% at 50% 0%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 70% 100% at 50% 0%, #000 40%, transparent 100%);
  pointer-events: none;
}

/* коралловое свечение справа — перекликается с «кляксой» в подвале */
.cp-header::after {
  content: '';
  position: absolute;
  z-index: -1;
  top: -96px;
  right: 6%;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 118, 90, 0.22) 0%, rgba(255, 118, 90, 0) 68%);
  filter: blur(70px);
  pointer-events: none;
}

.cp-header__bar {
  position: relative;
  z-index: 1;
  width: min(100% - 40px, 1240px);
  margin-inline: auto;
  min-height: var(--cp-header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
@media (max-width: 479px) {
  .cp-header__bar {
    width: calc(100% - 28px);
    gap: 10px;
  }
}

/* --- пункты меню: «пилюли» с тонкой обводкой ------------------------------ */

.cp-header__nav {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
  gap: 6px;
}
/* Своя навигация включается с 1200px: ровно там, где в старом экспорте
   пункты уезжали за верх артборда. */
@media (min-width: 1200px) {
  .cp-header__nav {
    display: flex;
  }
}

.cp-header__link {
  display: inline-flex;
  align-items: center;
  padding: 7px 15px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: var(--cp-tracking-normal);
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--cp-dur-fast) var(--cp-ease-out),
    border-color var(--cp-dur-fast) var(--cp-ease-out),
    background var(--cp-dur-fast) var(--cp-ease-out);
}
.cp-header__link:hover,
.cp-header__link:focus-visible {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* --- правая группа: телефон, ЛК, бургер ----------------------------------- */

.cp-header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cp-header__phone {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--cp-dur-fast) var(--cp-ease-out),
    border-color var(--cp-dur-fast) var(--cp-ease-out),
    background var(--cp-dur-fast) var(--cp-ease-out);
}
@media (min-width: 1024px) {
  .cp-header__phone {
    display: inline-flex;
  }
}
.cp-header__phone:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.cp-header__lk {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 11px 20px;
  border-radius: var(--radius-full);
  background: var(--cp-gradient-brand);
  box-shadow: var(--shadow-brand);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: var(--cp-tracking-normal);
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--cp-dur-fast) var(--cp-ease-out),
    box-shadow var(--cp-dur) var(--cp-ease-out), filter var(--cp-dur-fast) var(--cp-ease-out);
}
@media (min-width: 768px) {
  .cp-header__lk {
    display: inline-flex;
  }
}
.cp-header__lk:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: var(--shadow-brand-lg);
}
.cp-header__lk:active {
  transform: translateY(0) scale(0.985);
}

.cp-header__burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  background: transparent;
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background var(--cp-dur-fast) var(--cp-ease-out);
}
.cp-header__burger:hover {
  background: rgba(255, 255, 255, 0.1);
}
.cp-header__burger[aria-expanded='true'] {
  background: rgba(255, 255, 255, 0.16);
}
@media (min-width: 1200px) {
  .cp-header__burger {
    display: none;
  }
}

/* --- выпадающая панель ----------------------------------------------------- */

.cp-header__panel {
  position: relative;
  z-index: 1;
  display: none;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--cp-gradient-indigo);
  max-height: calc(100dvh - var(--cp-header-h));
  overflow-y: auto;
  overscroll-behavior: contain;
}
.cp-header__panel[data-open='true'] {
  display: block;
  animation: cp-header-drop var(--cp-dur) var(--cp-ease-out) both;
}
/* На десктопе панели нет никогда: там видно всё меню целиком. */
@media (min-width: 1200px) {
  .cp-header__panel {
    display: none !important;
  }
}

@keyframes cp-header-drop {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.cp-header__panel-inner {
  width: min(100% - 40px, 1240px);
  margin-inline: auto;
  padding: 4px 0 28px;
}
@media (max-width: 479px) {
  .cp-header__panel-inner {
    width: calc(100% - 28px);
  }
}

.cp-header__panel-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cp-header__panel-link {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--cp-font-display);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: var(--cp-tracking-tight);
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color var(--cp-dur-fast) var(--cp-ease-out);
  /* пункты въезжают по очереди — индекс приходит из разметки */
  animation: cp-header-item var(--cp-dur) var(--cp-ease-out) both;
  animation-delay: calc(var(--i, 0) * 40ms);
}
.cp-header__panel-link:hover,
.cp-header__panel-link:active {
  color: var(--cp-orange-400);
}

@keyframes cp-header-item {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.cp-header__panel-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}
.cp-header__panel-actions .cp-header__lk,
.cp-header__panel-actions .cp-header__phone {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  font-size: 15px;
  min-height: 52px;
}
/* Кнопка ЛК с 768px видна в самой полосе — в меню её дублировать незачем. */
@media (min-width: 768px) {
  .cp-header__panel-actions .cp-header__lk {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cp-header__panel[data-open='true'],
  .cp-header__panel-link {
    animation: none;
  }
}

/* Пока меню открыто, страница под ним не прокручивается.

   Блокируем именно <html>, а не <body>: `overflow:hidden` на body делает его
   контейнером прокрутки, и липкая шапка внутри него мгновенно уезжает вверх
   вместе со страницей. */
html.cp-header-open {
  overflow: hidden;
}

/* ---------------------------------------------------------------------------
   ПОДВАЛ
   ---------------------------------------------------------------------------
   Был zero-блоком: на 375px пункты «Меню» и «Партнерства» лежали друг на
   друге, реквизиты наезжали на копирайт, а название школы уезжало на x=784
   при ширине экрана 375. Переверстан на flow-сетку из двух карточек:
   узкая тёмная (бренд, соцсети, копирайт) и широкая светлая (ссылки и
   форма записи). Тёмная карточка держит основной цвет сайта — #2b0c4d.
   -------------------------------------------------------------------------- */

.cp-footer {
  position: relative;
  isolation: isolate;
  background: var(--cp-lavender-100);
  padding: clamp(28px, 4vw, 56px) 0 clamp(24px, 3vw, 40px);
  font-family: var(--cp-font-sans);
  font-size: 15px;
  line-height: 1.55;
  color: var(--foreground);
}

.cp-footer__inner {
  width: min(100% - 40px, 1240px);
  margin-inline: auto;
}
@media (max-width: 479px) {
  .cp-footer__inner {
    width: calc(100% - 28px);
  }
}

.cp-footer__cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (min-width: 900px) {
  .cp-footer__cards {
    flex-direction: row;
    align-items: stretch;
  }
}

/* --- тёмная карточка: бренд ----------------------------------------------- */

.cp-footer__brand {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-height: 300px;
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--radius-2xl);
  background: var(--cp-gradient-indigo);
  color: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-lg);
}
@media (min-width: 900px) {
  .cp-footer__brand {
    width: 34%;
    flex-shrink: 0;
    min-height: 560px;
  }
}

/* Зерно: тот же приём, что в исходном компоненте (feTurbulence), только
   не отдельным <svg> в разметке, а фоном — data-URI, ноль запросов. */
.cp-footer__brand::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

/* Живая коралловая «клякса» — та же, что в тарифах (см. cp-pricing.css). */
.cp-footer__brand::after {
  content: '';
  position: absolute;
  z-index: -1;
  top: -22%;
  right: -30%;
  width: min(420px, 90%);
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 118, 90, 0.34) 0%, rgba(255, 118, 90, 0) 68%);
  filter: blur(60px);
  pointer-events: none;
  border-radius: 58% 42% 37% 63% / 44% 56% 44% 56%;
  animation: cp-blob 26s var(--cp-ease-out) infinite;
}
@media (prefers-reduced-motion: reduce) {
  .cp-footer__brand::after {
    animation: none;
  }
}

.cp-footer__brand-bottom {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.cp-footer__slogan {
  margin: 0;
  font-family: var(--cp-font-display);
  font-size: clamp(17px, 1.5vw, 20px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: var(--cp-tracking-tight);
  color: #fff;
}

.cp-footer__tagline {
  margin: -10px 0 0;
  font-size: 14px;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.62);
  max-width: 34ch;
}

.cp-footer__socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cp-footer__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background var(--cp-dur-fast) var(--cp-ease-out),
    transform var(--cp-dur-fast) var(--cp-ease-out);
}
.cp-footer__social:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-3px);
}
.cp-footer__social img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

.cp-footer__copy {
  margin: 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

/* --- светлая карточка: ссылки и запись ------------------------------------ */

.cp-footer__links {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-width: 0;
  padding: clamp(24px, 3vw, 48px);
  border-radius: var(--radius-2xl);
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 900px) {
  .cp-footer__links {
    flex: 1 1 auto;
  }
}

.cp-footer__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 20px;
}
@media (min-width: 768px) {
  .cp-footer__cols {
    /* колонка контактов шире: в неё должен уместиться адрес почты целиком */
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 0.95fr) minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 32px 20px;
  }
}

.cp-footer__col {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.cp-footer__heading {
  margin: 0;
  font-family: var(--cp-font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: var(--cp-tracking-tight);
  color: var(--foreground);
}

.cp-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cp-footer__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  font-weight: 500;
  color: var(--muted-foreground);
  text-decoration: none;
  overflow-wrap: break-word;
  hyphens: auto;
  transition: color var(--cp-dur-fast) var(--cp-ease-out),
    transform var(--cp-dur-fast) var(--cp-ease-out);
}
.cp-footer__link:hover {
  color: var(--foreground);
  transform: translateX(3px);
}
.cp-footer__link morph-icon {
  color: var(--cp-coral-400);
  flex-shrink: 0;
}

/* телефон в колонке контактов — крупнее и темнее остальных ссылок */
.cp-footer__link--phone {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: var(--cp-tracking-tight);
  color: var(--foreground);
  min-height: 42px;
  white-space: nowrap;
}

.cp-footer__link--mail {
  /* адрес почты должен уместиться в колонку одной строкой */
  font-size: 13px;
}
.cp-footer__link--phone:hover {
  color: var(--cp-coral-600);
}

.cp-footer__note-inline {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  font-size: 14px;
  color: var(--muted-foreground);
}
.cp-footer__note-inline morph-icon {
  color: var(--cp-coral-400);
  flex-shrink: 0;
}

/* --- форма записи ---------------------------------------------------------- */

.cp-footer__signup {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cp-footer__signup-title {
  margin: 0;
  font-family: var(--cp-font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: var(--cp-tracking-tight);
  color: var(--foreground);
}

.cp-footer__form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 640px;
  width: 100%;
  margin: 0;
}

.cp-footer__field {
  flex: 1 1 190px;
  min-width: 0;
  height: 50px;
  padding: 0 16px;
  border: 1px solid var(--input);
  border-radius: var(--radius-md);
  background: var(--background);
  font-family: inherit;
  font-size: 15px;
  color: var(--foreground);
  transition: border-color var(--cp-dur-fast) var(--cp-ease-out),
    box-shadow var(--cp-dur-fast) var(--cp-ease-out);
}
.cp-footer__field::placeholder {
  color: rgba(107, 100, 128, 0.7);
}
.cp-footer__field:focus {
  outline: none;
  border-color: var(--ring);
  box-shadow: 0 0 0 3px rgba(255, 118, 90, 0.18);
}

.cp-footer__submit {
  flex: 0 0 auto;
  min-height: 50px;
  padding: 0 28px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--cp-gradient-brand);
  box-shadow: var(--shadow-brand);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--cp-dur-fast) var(--cp-ease-out),
    box-shadow var(--cp-dur) var(--cp-ease-out), filter var(--cp-dur-fast) var(--cp-ease-out);
}
.cp-footer__submit:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: var(--shadow-brand-lg);
}
.cp-footer__submit:active {
  transform: translateY(0) scale(0.985);
}
@media (max-width: 479px) {
  .cp-footer__field,
  .cp-footer__submit {
    flex: 1 1 100%;
  }
}

.cp-footer__consent {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted-foreground);
  max-width: 640px;
}
.cp-footer__consent a {
  color: var(--muted-foreground);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cp-footer__consent a:hover {
  color: var(--cp-coral-600);
}

/* --- согласия под формами (152-ФЗ) ---------------------------------------- */
/*
   Согласие должно быть выражено активным действием: галочки НЕ отмечены
   по умолчанию — ни на обработку данных, ни на рекламу. Проставленная
   заранее отметка согласием не считается (ст. 9 152-ФЗ, ч. 1 ст. 18 38-ФЗ).

   Блок кладётся ВНУТРЬ <form> — перед кнопкой отправки, чтобы значения
   уходили вместе с заявкой и попадали в журнал как доказательство согласия.
*/

.cp-consent {
  flex: 1 1 100%;
  display: grid;
  gap: 10px;
  width: 100%;
  max-width: 640px;
  margin: 2px 0 0;
  text-align: left;
}

.cp-consent__item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--cp-consent-color, var(--muted-foreground, #6b6480));
  cursor: pointer;
}

.cp-consent__box {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  flex: none;
  accent-color: var(--cp-coral-600, #ff765a);
  cursor: pointer;
}

.cp-consent__item a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cp-consent__item a:hover {
  color: var(--cp-coral-600, #ff765a);
}

.cp-consent__req {
  color: var(--cp-coral-600, #ff765a);
}

/* Подсветка, когда обязательную галочку не поставили */
.cp-consent__item.cp-consent__item--invalid .cp-consent__box {
  outline: 2px solid #d64545;
  outline-offset: 2px;
  border-radius: 3px;
}

.cp-consent__error {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #d64545;
}
.cp-consent__error[hidden] {
  display: none;
}

/* Форма в блоке «Контакты» стоит на синей подложке — там весь текст белый */
.tn-atom__form .cp-consent {
  --cp-consent-color: #ffffff;
  max-width: none;
  margin-top: 16px;
}
.tn-atom__form .cp-consent__item a:hover {
  color: rgba(255, 255, 255, 0.7);
}
.tn-atom__form .cp-consent__req {
  color: #ffffff;
}
.tn-atom__form .cp-consent__error {
  color: #ffd9d2;
}
.tn-atom__form .cp-consent__item.cp-consent__item--invalid .cp-consent__box {
  outline-color: #ffd9d2;
}

/* --- нижняя часть: реквизиты и сноски ------------------------------------- */

.cp-footer__legal {
  margin-top: clamp(20px, 2.5vw, 32px);
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 14px 32px;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  align-items: start;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted-foreground);
}
@media (max-width: 767px) {
  .cp-footer__legal {
    grid-template-columns: minmax(0, 1fr);
  }
}

.cp-footer__requisites {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cp-footer__note {
  margin: 0;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(107, 100, 128, 0.8);
}
@media (min-width: 768px) {
  .cp-footer__note {
    text-align: right;
  }
}

/* ============================================================================
   ТОЧЕЧНЫЕ ПОЧИНКИ ЭКСПОРТА
   ----------------------------------------------------------------------------
   Всё ниже — правки конкретных элементов zero-блоков, которые в экспорте
   Tilda встали не туда. Каждая правка подписана: что было и почему.
   `!important` обязателен: tilda-zero-scale-1.0.min.js пишет позиции
   инлайновым style, обычное правило его не перебьёт.
   ========================================================================== */

/* ---------------------------------------------------------------------------
   БЛОК «ПЕРВОЕ ЗАНЯТИЕ И НАШИ ТРЕНЕРЫ» (rec2287173421)
   ---------------------------------------------------------------------------
   Подпись «Бесплатное занятие» лежала поверх «Заявка на обучение»: в
   экспорте у неё для сеток 960 и 640 записана левая колонка вместо правой
   (left +331 / +171 вместо +567 / +407), из-за чего вторая карточка ряда
   осталась без подписи, а первая получила две. Возвращаем в свою колонку —
   значения взяты у соседа по колонке, «Определяем цели».
   -------------------------------------------------------------------------- */

/* Ниже 640px в экспорте координаты уже верные — правку туда не пускаем. */
@media screen and (min-width: 960px) and (max-width: 1199px) {
  #rec2287173421 .tn-elem[data-elem-id="1779384541734000001"] {
    top: 297px !important;
    left: calc(50% - 480px + 567px) !important;
    width: 178px !important;
  }
}
@media screen and (min-width: 640px) and (max-width: 959px) {
  #rec2287173421 .tn-elem[data-elem-id="1779384541734000001"] {
    top: 245px !important;
    left: calc(50% - 320px + 407px) !important;
    width: 178px !important;
  }
}

/* ---------------------------------------------------------------------------
   БЛОК «КОНТАКТЫ» (rec2287173441)
   ---------------------------------------------------------------------------
   Заголовок «Остались вопросы? Получите консультацию» свёрстан под две
   строки, но в блоке шириной 288px переносится на три и наезжает на абзац
   ниже (перекрытие 25px). На планшете расширяем блок — место справа есть,
   на телефоне ужимаем кегль.
   -------------------------------------------------------------------------- */

@media screen and (min-width: 640px) and (max-width: 959px) {
  #rec2287173441 .tn-elem[data-elem-id="1674639307638"] {
    width: 440px !important;
  }
}
@media screen and (max-width: 639px) {
  #rec2287173441 .tn-elem[data-elem-id="1674639307638"] .tn-atom {
    font-size: 23px !important;
    line-height: 1.16 !important;
  }
}

/* ---------------------------------------------------------------------------
   ПЛАВАЮЩАЯ КНОПКА «ЗАПИСЬ НА ПРОБНОЕ ЗАНЯТИЕ»
   ---------------------------------------------------------------------------
   Перекрывала контент внизу экрана и налезала на виджет чата.
   -------------------------------------------------------------------------- */

@media screen and (max-width: 959px) {
  /* запас снизу, чтобы последний экран не уходил под кнопку */
  .cp-footer {
    padding-bottom: calc(clamp(24px, 3vw, 40px) + 76px);
  }
}

/* ---------------------------------------------------------------------------
   БЛОК «НАШ ПОДХОД» (rec2287173381)
   ---------------------------------------------------------------------------
   На телефоне каждая пара «заголовок пункта → описание» разнесена всего на
   17px по вертикали. Заголовок в 15px переносится на две строки (44px) и
   ложится на описание — текст налезает на текст во всех четырёх пунктах.
   Опускаем описания на 30px: этого хватает и для двух строк заголовка,
   и не доводит последний пункт до нижней границы артборда (985px).
   -------------------------------------------------------------------------- */

@media screen and (max-width: 639px) {
  #rec2287173381 .tn-elem[data-elem-id="1730067678051"] {
    top: 334px !important; /* было 304 */
  }
  #rec2287173381 .tn-elem[data-elem-id="1730067678068"] {
    top: 514px !important; /* было 484 */
  }
  #rec2287173381 .tn-elem[data-elem-id="1730067678058"] {
    top: 700px !important; /* было 670 */
  }
  #rec2287173381 .tn-elem[data-elem-id="1730067678063"] {
    top: 883px !important; /* было 853 */
  }
}

/* ---------------------------------------------------------------------------
   FAQ (rec2287173401) — пять вопросов на виду, остальные под кнопкой
   ---------------------------------------------------------------------------
   Десять аккордеонов подряд превращают экран в простыню, и до блока с формой
   мало кто доскроллит. Показываем первые пять, остальные держим под шторкой:
   из-под градиента видно начало следующего вопроса — это и есть подсказка,
   что там что-то ещё, а кнопка раскрывает список без перезагрузки.
   Разметка: [data-cp-faq] > [data-cp-faq-rest] + [data-cp-faq-more].
   Логика — setupFaq() в js/cp-ui.js (общая с B2B-страницей).
   -------------------------------------------------------------------------- */

#rec2287173401 .t-container {
  --cp-faq-peek: 104px; /* сколько видно из-под шторки; читается из JS */
  position: relative;
}

#rec2287173401 .cp-faq-rest {
  width: 100%;
  overflow: hidden; /* + удерживает флоаты .t-col внутри */
}
/* анимацию включает JS — иначе первый кадр «схлопывания» дёргается */
#rec2287173401 .cp-faq-anim .cp-faq-rest {
  transition: max-height var(--cp-dur-slow) var(--cp-ease-out);
}

#rec2287173401 .cp-faq-more {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: center;
  padding-top: 22px;
}
/* шторка: последний видимый вопрос уходит в фон секции */
#rec2287173401 .cp-faq-more::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: var(--cp-faq-peek, 104px);
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(237, 242, 252, 0) 0%,
    rgba(237, 242, 252, 0.75) 46%,
    var(--cp-lavender-100) 88%
  );
  transition: opacity var(--cp-dur) var(--cp-ease-out);
}
#rec2287173401 .cp-faq-open .cp-faq-more::before {
  opacity: 0;
}

#rec2287173401 .cp-faq-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 22px 8px 8px;
  font-family: var(--cp-font-sans);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: var(--cp-tracking-tight);
  color: var(--cp-indigo-800);
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition:
    transform var(--cp-dur-fast) var(--cp-ease-out),
    border-color var(--cp-dur-fast) var(--cp-ease-out),
    box-shadow var(--cp-dur-fast) var(--cp-ease-out);
}
#rec2287173401 .cp-faq-more-btn:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 118, 90, 0.55);
  box-shadow: var(--shadow-md);
}
#rec2287173401 .cp-faq-more-btn:focus-visible {
  outline: 2px solid var(--cp-coral-400);
  outline-offset: 3px;
}

/* три фигуры «стопкой» — визуальный намёк, что вопросов больше */
#rec2287173401 .cp-faq-more-ico {
  display: inline-flex;
  flex: none;
}
#rec2287173401 .cp-faq-more-ico i {
  width: 30px;
  height: 30px;
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid #fff;
  font-style: normal;
  font-size: 15px;
  line-height: 1;
}
#rec2287173401 .cp-faq-more-ico i + i {
  margin-left: -11px;
}
#rec2287173401 .cp-faq-more-ico i:nth-child(1) {
  background: var(--cp-coral-50);
  color: var(--cp-coral-600);
}
#rec2287173401 .cp-faq-more-ico i:nth-child(2) {
  background: var(--cp-coral-400);
  color: #fff;
}
#rec2287173401 .cp-faq-more-ico i:nth-child(3) {
  background: var(--cp-indigo-800);
  color: #fff;
}

#rec2287173401 .cp-faq-more-n {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted-foreground);
}
#rec2287173401 .cp-faq-open .cp-faq-more-n {
  display: none;
}

@media screen and (max-width: 639px) {
  #rec2287173401 .t-container {
    --cp-faq-peek: 88px;
  }
  #rec2287173401 .cp-faq-more-btn {
    font-size: 14px;
    gap: 10px;
    padding-right: 18px;
  }
  #rec2287173401 .cp-faq-more-ico i {
    width: 26px;
    height: 26px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #rec2287173401 .cp-faq-anim .cp-faq-rest {
    transition: none;
  }
}
