/* ====== Токены цвета и размеров ====== */
:root {
  --main-bg: #0e1726;
  --main-blue: #be37fc;
  --cyan: #be37fc;
  --hero-grad: linear-gradient(140deg, #000000, #0a0428 45%, #000000);
  --text: #e9eef6;
  --muted: #a8b3c7;
  --radius-xl: 28px;
  --radius-lg: 18px;
  --shadow-lg: 0 40px 60px rgb(0 0 0 / 85%);
  --grid-c: rgb(204 120 255 / 22%);
  --grid-c-strong: rgb(214 120 255 / 32%);
  --grid-scroll: 0;
  --grid-doc-h: 3000;
  --grid-y: calc(var(--grid-scroll) * -1px);
  --content-max: 1180px;
  --quote-bg: #101a27;
  --quote-border: rgb(98 98 98);
  --quote-accent: #8426ff;
  /* светлая тема секций */
  --light-bg: #ffffff;
  --light-bg-2: #f3f4f9;
  --light-text: #111426;
  --light-muted: #4b556b;
  --light-heading: #070a12;
  --light-border: rgba(17,20,38,0.08);
  --light-surface: rgba(190,55,252,0.08);
  --light-surface-border: rgba(17,20,38,0.10);
  --light-quote-bg: rgba(190,55,252,0.06);
  --light-quote-border: rgba(190,55,252,0.35);
  --light-details-bg: rgba(190,55,252,0.06);
  --light-details-border: rgba(17,20,38,0.10);
  /* Fonts (важно для одинаковой жирности на всех устройствах) */
  --font-display: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", sans-serif;
  --font-hero: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", sans-serif;
  --font-h2-alt: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", sans-serif;
}

/* ====== Базовые стили ====== */
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", sans-serif;
  color: var(--text);
  background: linear-gradient(90deg, #0e0319, #0a0428 45%, #0e0319);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  isolation: isolate;
}

/* Текст/контент — выше сетки */
.page{
  position: relative;
  isolation: isolate;

  /* чтобы footer всегда был снизу при короткой странице */
  min-height: 100svh;          /* современная высота экрана на мобилках */
  display: flex;
  flex-direction: column;
}

.page::before{
  content:"";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;

  /* Лёгкая сетка без масок/анимаций — это убирает лаги при скролле */
  background-image:
    linear-gradient(var(--grid-c) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-c) 1px, transparent 1px),
    linear-gradient(var(--grid-c-strong) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-c-strong) 1px, transparent 1px);

  background-size: 28px 28px, 28px 28px, 140px 140px, 140px 140px;
  background-position: 0 0, 0 0, 0 0, 0 0;

  opacity: .18;
  contain: paint;
}
/* отключаем фоновую сетку на страницах с классом no-grid */
.no-grid .page::before{
  display: none !important;
}
.no-hero-shadow .hero{
  box-shadow: none !important;
  border-bottom: 0 !important;
}

.footer { 
  position: relative; 
  z-index: 2; 
  margin-top: auto; /* прибивает вниз, если контента мало */
}

/* 2) Снижаем внутренний верхний padding у обёртки именно тех статей,
      где находятся эти заголовки (чтобы убрать гигантскую «пустоту»
      между p.s./предыдущим блоком и заголовком) */
/* ====== HERO ====== */
.hero {
  width: 100%;
  background: var(--hero-grad);
  box-shadow: var(--shadow-lg);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: relative;
  overflow: hidden;
  background-image: var(--hero-grad);
  background-repeat: no-repeat, no-repeat;
  background-position: center center, center;
}
.hero::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;

  background-image:
    linear-gradient(var(--grid-c) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-c) 1px, transparent 1px),
    linear-gradient(var(--grid-c-strong) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-c-strong) 1px, transparent 1px);

  background-size: 28px 28px, 28px 28px, 140px 140px, 140px 140px;
  background-position: 0 0, 0 0, 0 0, 0 0;
  opacity: .18;
}
.hero h1,
.article h1{
  font-family: var(--font-hero);
  letter-spacing: .5px;
  text-transform: uppercase; /* если хочешь именно “плакатный” Oswald */
}

.h2-sans{
  font-family: var(--font-h2-alt);
}

@media (min-width: 1108px){ .hero{ background-size: 100% auto, cover; } }
@media (max-width: 1107px){ .hero{ background-size: auto 100%, cover; } }
.hero__wrap { max-width: var(--content-max); margin: 0 auto; padding: clamp(28px, 5vw, 52px) 16px clamp(22px, 7vw, 40px); display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; z-index: 1; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px; border-radius: 9999px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04); backdrop-filter: blur(6px); margin: 0 auto 14px; }
.badge img { width: 28px; height: 28px; border-radius: 9999px; object-fit: cover; }
.badge span { font-weight: 800; letter-spacing: .02em; }
.title { font-weight: 900; font-size: clamp(26px, 5.2vw, 56px); line-height: 1.22; margin: 0 0 22px; letter-spacing: .2px; text-align: center; }
@media (max-width: 640px) { .title { font-size: clamp(24px, 4.2vw, 56px); } }
.subtitle { color: var(--muted); font-weight: 500; font-size: clamp(13px, 2.2vw, 22px); max-width: 980px; margin: 0 auto; text-align: center; }
.accent { color: var(--main-blue); }
.sub-strong { color: #fff; font-weight: 700; }
.cta-row { display: flex; justify-content: center; margin-top: clamp(16px, 3.5vw, 28px); }
.cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-radius: 9999px;
  background: linear-gradient(90deg, #6118a9, #c52fff 45%, #6118a9);
  color: #fff; text-decoration: none; font-weight: 800; letter-spacing: .02em;
  box-shadow: 0 0px 30px rgb(201 38 255 / 35%);
  margin: 0px;
  border: 1px solid rgba(255,255,255,0.12);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.cta:hover { transform: translateY(-1px); box-shadow: 0 5px 30px 10px rgb(201 38 255 / 35%); filter: brightness(1.05); }
.cta svg { width: 18px; height: 18px; display: block; }

/* ===== HERO MEDIA (картинка вместо видео) — rebuilt from scratch ===== */
.hero-media{
  width: min(980px, 100%);
  max-width: 100%;
  margin: 18px auto 0;
  position: relative;
  box-sizing: border-box;
  /* никаких рамок/теней */
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.hero-media__img{
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  /* НЕ обрезаем, просто вписываем */
  object-fit: contain;
  object-position: center bottom;
}

.hero-media__cta{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: clamp(10px, 3vw, 18px);
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0 14px;
  box-sizing: border-box;
  z-index: 2;
  pointer-events: none; /* чтобы клики шли только по кнопке */
}
.hero-media__cta .cta{
  pointer-events: auto;
  margin: 0; /* убираем любые маргины, чтобы не разъезжалось */
}

/* Телефоны: гарантируем центр и запрет вылезания по ширине */
@media (max-width: 640px){
  html, body, .page{ overflow-x: hidden; }
  .hero__wrap{ padding-left: 16px; padding-right: 16px; }
  .hero-media{
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-media__img{
    width: 100%;
    max-width: 100%;
    height: auto;
  }
  .hero-media__cta{ padding: 0 12px; }
}

/* ====== Тема секций: тёмная (по умолчанию) + белая (как на референсах) ====== */
.article{
  /* default (dark) */
  --section-bg: transparent;
  --section-text: var(--text);
  --section-muted: var(--muted);
  --section-heading: #fff;
  --section-border: rgba(255,255,255,0.06);

  --section-quote-bg: #150429;
  --section-quote-border: rgba(255,255,255,0.18);

  --section-details-bg: linear-gradient(102deg, #271135, #15071d);
  --section-details-border: rgba(255,255,255,.06);

  color: var(--section-text);
  background: var(--section-bg);
}

/* Белая секция: фон белый, текст тёмный, акцент — фиолетовый */
.article.theme-light{
  --section-bg: linear-gradient(180deg, var(--light-bg) 0%, var(--light-bg-2) 100%);
  --section-text: var(--light-text);
  --section-muted: var(--light-muted);
  --section-heading: var(--light-heading);
  --section-border: var(--light-border);

  --section-quote-bg: var(--light-quote-bg);
  --section-quote-border: var(--light-quote-border);

  --section-details-bg: var(--light-details-bg);
  --section-details-border: var(--light-details-border);
}



/* ссылки внутри статьи */
.article a{ color: #fff; text-decoration: none; }
.article a:hover{ text-decoration: underline; }

/* ====== Статья ====== */
.article { position: relative; }
.article__wrap {
  padding: clamp(24px, 4.8vw, 42px) 16px clamp(36px, 7vw, 64px);
}
/* плотный подпараграф для новых секций */
.article__wrap.sub { padding: 14px 18px 18px; }
.article p { font-size: clamp(18px, 2.6vw, 22px); line-height: 1.95; margin: 0 0 1.05em;   color: var(--section-text);
}
.article h2 { font-size: clamp(26px, 5vw, 38px); font-weight: 800; line-height: 1.25; margin: 2em 0 .6em; color: var(--section-heading);
  letter-spacing: .2px; }
.article h3 { font-size: clamp(20px, 3.8vw, 26px); color: var(--section-heading);
  margin: 1.4em 0 .5em; }

/* ===== Step pill headings in "How it works" ===== */
#how-it-works .step-pill{
  display: inline-flex;
  align-items: center;
  gap: clamp(12px, 2vw, 18px);
  width: fit-content;
  max-width: min(100%, 760px);
  box-sizing: border-box;

  margin: 1.4em 0 .5em;
  padding: clamp(8px, 1.3vw, 12px) clamp(14px, 2.2vw, 22px) clamp(8px, 1.3vw, 12px) clamp(10px, 1.5vw, 14px);

  border-radius: 999px;
  background: linear-gradient(90deg, #7d1fff 0%, #be37fc 100%);
  color: #fff;

  font-size: clamp(20px, 3.8vw, 26px);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.01em;
  vertical-align: top;
}

#how-it-works .step-pill__num{
  flex: 0 0 clamp(54px, 6vw, 72px);
  width: clamp(54px, 6vw, 72px);
  height: clamp(54px, 6vw, 72px);

  display: grid;
  place-items: center;

  border-radius: 50%;
  background: #fff;
  color: var(--main-blue);

  font-size: clamp(28px, 4.4vw, 42px);
  line-height: 1;
  font-weight: 800;
}

#how-it-works .step-pill__text{
  display: block;
  color: #fff;
  flex: 0 1 auto;
  min-width: 0;
}

@media (max-width: 640px){
  #how-it-works .step-pill{
    display: flex;
    width: 100%;
    max-width: 100%;
    gap: 12px;
    padding: 8px 14px 8px 10px;
    border-radius: 26px;
    font-size: clamp(17px, 4.6vw, 21px);
    line-height: 1.16;
  }

  #how-it-works .step-pill__num{
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    font-size: 27px;
  }

  #how-it-works .step-pill__text{
    max-width: none;
    flex: 1 1 auto;
  }
}

.article .list { margin: .6em 0 1.2em; padding: 0; list-style: none; font-size: clamp(18px, 2.6vw, 22px); }
.article .list li { position: relative; padding-left: 1.5em; margin: .55em 0; }
.article .list li::before { content: ""; position: absolute; left: 0; top: .6em; width: .6em; height: .6em; border-radius: 9999px; background: #c52fff; box-shadow: 0 0 0 4px rgba(38,149,255,.18); }
.article .ordered { counter-reset: num; }
.article .ordered li { padding-left: 2.2em; }
.article .ordered li::before { counter-increment: num; content: counter(num) "."; top: .15em; width: auto; height: auto; background: none; box-shadow: none; font-weight: 900; color: var(--main-blue); }

.mark { background: linear-gradient(90deg, #6118a9, #c52fff 45%, #6118a9); border-radius: 6px; color: #fff; font-weight: bold; padding: .05em .25em .15em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.ink { color: var(--main-blue); font-weight: 800; }
.strong { font-weight: 700; }

/* ====== HERO: предупреждение + видео ====== */
.top-warning{
  width: 100%;
  display: flex;
  justify-content: center;
  text-align: center;

  /* отступы сверху/снизу, чтобы не липло к краю */
  margin-top: calc(env(safe-area-inset-top) + 10px);
  margin-bottom: 24px;

  background: transparent;
  pointer-events: none;
}

.top-warning > span{
  display: inline-block;
  padding: 10px 18px;

  font-family: var(--font-display);
  font-size: clamp(16px, 4.4vw, 24px);
  line-height: 1.2;

  color: #ff2b2b;

  animation: warnPulse 2.4s ease-in-out infinite;
  will-change: opacity;
}

@keyframes warnPulse{
  0%, 100% { opacity: 0.25; }
  50%      { opacity: 1; }
}

/* мобильная подстройка */
@media (max-width: 640px){
  .top-warning > span{
    padding: 10px 14px;
    max-width: 92vw;
  }
}

quote{
  display:block;
  text-align: center;
  margin: 1.2em 0;
  padding: 18px;
    background: var(--section-quote-bg);
  border: 2px dashed var(--section-quote-border);
  border-radius: 16px;
  font-size: clamp(18px, 2.6vw, 22px);
    color: var(--section-text);
  position: relative;
  line-height: 1.7;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
@media (max-width: 480px){ quote{ padding: 14px; } }

.figure { margin: 1.2em 0 1.4em; }
.figure picture{ display:block; }
.figure img { width: 100%; height: auto; justify-self: center; display: block; border-radius: 10px; }

/* ====== FAQ ====== */
.faq .q { font-weight: 800; }
details { background: var(--section-details-bg); border: 1px solid var(--section-details-border); border-radius: 14px; padding: 14px 16px; margin: 12px 0; color: var(--section-text); }
summary { cursor: pointer; outline: none; }
details[open] { background: var(--section-details-bg); }

/* ====== Footer ====== */
.footer { background: black; border-top: 1px solid rgba(255,255,255,.06); color: var(--muted); }
.footer__wrap { max-width: var(--content-max); margin: 0 auto; padding: 28px 18px 48px; font-size: 14px; line-height: 1.8; }
.footer a { color: var(--main-blue); text-decoration: none; }

/* ================= (Carousel Styles) ================= */
.infinite-carousel{
  --gap: 18px;
  --slide-h: clamp(360px, 56vh, 560px);     /* высота карточки (портрет) */
  --ratio: 0.58037;                          /* 497 / 856 */
  --caption-size: clamp(14px, 1.8vw, 16px);

  /* кнопки */
  --btn-size: 46px;
  --btn-bg: linear-gradient(135deg, #bb2df6, #6619ad);
  --btn-glow: 0 0 0 16px rgb(167 38 255 / 22%);
  --btn-glow-hover: 0 0 0 20px rgba(167,38,255,.28);

  position: relative;
  width: 100%;
  margin: 18px auto 42px;
}

.carousel-viewport{
  overflow: hidden;
  position: relative;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.carousel-track{
  display: flex;
  align-items: flex-start;
  gap: var(--gap);
  will-change: transform;
  touch-action: pan-y;   /* свайп по горизонтали; вертикальная прокрутка не блокируется */
  cursor: grab;
}

.carousel-item{
  flex: 0 0 auto;
  width: calc(var(--slide-h) * var(--ratio));
  display: flex;
  flex-direction: column;
  align-items: center;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.carousel-item img{
  display: block;
  width: 100%;
  height: var(--slide-h);
  object-fit: cover;
  border-radius: 16px;
  background: #0b1524;
  box-shadow: 0 16px 40px rgba(0,0,0,.35);
  -webkit-user-drag: none;  /* нельзя перетаскивать в новую вкладку */
  user-drag: none;
  pointer-events: auto;
}

.carousel-item figcaption{
  margin-top: 10px;
  width: 100%;          /* подпись строго не шире картинки */
  max-width: 100%;
  font-size: var(--caption-size);
  line-height: 1.5;
  color: var(--section-text);
  opacity: .92;
  text-wrap: pretty;
}

/* Кнопки */
.carousel-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: var(--btn-size);
  height: var(--btn-size);
  border-radius: 999px;
  border: none;
  background: var(--btn-bg);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 34px rgba(0,0,0,.5), var(--btn-glow);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
  z-index: 2;
}
.carousel-btn svg{ width: 22px; height: 22px; }
.carousel-btn:hover{ transform: translateY(-50%) scale(1.08); box-shadow: 0 18px 44px rgba(0,0,0,.55), var(--btn-glow-hover); filter: saturate(1.06); }
.carousel-btn.left{ left: 10px; }
.carousel-btn.right{ right: 10px; }

@media (max-width: 768px){
  .infinite-carousel{ --gap: 14px; --btn-size: 42px; }
  .carousel-btn.left{ left: 6px; } .carousel-btn.right{ right: 6px; }
}
@media (max-width: 480px){
  .infinite-carousel{ --gap: 12px; --btn-size: 40px; }
  .carousel-item img{ border-radius: 14px; }
}

/* === TRIAL (ЕСЛИ ПОКУПАТЬ ПО ОТДЕЛЬНОСТИ) — ПЕРЕПИСАНО И ОБНОВЛЕНО === */
.pricing-trial-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  max-width: var(--container, 1120px);
  margin: 0px auto;
  padding: 0 16px;
  align-items: flex-start;
}

@media (max-width: 700px) {
  .pricing-trial-wrapper { margin: 0 auto; }
}

/* Левая колонка с таблицей ценности */
.trial-card {
  background: rgba(12, 59, 103, 0.12);
  backdrop-filter: blur(18px) saturate(132%);
  border: 1.7px solid rgba(66, 184, 255, 0.13);
  border-radius: var(--radius-lg, 22px);
  box-shadow: var(--shadow, 0 10px 36px rgba(0,0,0,.20));
  padding: 24px;
  display: flex;
  flex-direction: column;
  height: auto;
  align-self: stretch;
  flex: 1 1 560px;
  max-width: 720px;
  min-width: 280px;
}

/* EN DASH / HYPHEN совместимость для модификатора */
.trial-card.trial-card–table,
.trial-card.trial-card--table { max-width: 720px; }

/* Таблица ценности */
.trial-table {
  width: 100%;
  border-collapse: collapse;
  color: #fff;
  table-layout: fixed;
}
.trial-table td {
  padding: 10px 8px;
  line-height: 1.35;
  vertical-align: middle;
}

/* ЛЕВАЯ КОЛОНКА — одна строка + флюидный размер шрифта */
.trial-table td:first-child {
  width: 72%;
  text-align: left;
  opacity: 0.85;
  white-space: nowrap;
  font-size: clamp(0.82rem, 0.72rem + 0.6vw, 1rem);
  letter-spacing: -0.01em;
}

/* ПРАВАЯ КОЛОНКА — цены */
.trial-table td:last-child {
  width: 28%;
  text-align: right;
  color: #fff;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

/* Разделители строк */
.trial-table tr:not(.trial-total-row) { border-bottom: 1px solid rgba(255,255,255,.1); }

/* Итоговая строка */
.trial-table tr.trial-total-row { background-color: rgba(38,149,255,.1); }
.trial-table tr.trial-total-row td {
  padding: 15px 8px;
  font-size: clamp(1.2rem, 1rem + 0.6vw, 1.5rem);
}
.trial-table tr.trial-total-row td:last-child {
  color: #2695ff;
  border-bottom-right-radius: 10px;
}
.trial-table tr.trial-total-row td:first-child { border-bottom-left-radius: 10px; }

/* ПРАВАЯ УЗКАЯ ПРОМО-КОЛОНКА */
.trial-card–promo,
.trial-card--promo {
  background: linear-gradient(100deg, #142543 0, #2476c3 100%);
  backdrop-filter: blur(18px) saturate(132%);
  border: 1.7px solid #2476c3;
  border-radius: var(--radius-lg, 22px);
  box-shadow: var(--shadow, 0 10px 36px rgba(0,0,0,.20));
  padding: 24px;
  height: auto;
  align-self: flex-end;
  flex: 0 1 260px;
  max-width: 300px;
  min-width: 240px;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.trial-card–promo .trial-promo-text,
.trial-card--promo .trial-promo-text {
  color: #fff;
  text-align: left;
  width: 100%;
  margin-bottom: 20px;
  font-size: 1.06rem;
  font-weight: 500;
  line-height: 1.55;
}
.trial-card–promo .trial-price-block,
.trial-card--promo .trial-price-block {
  background-color: #2695ff;
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 20px;
  text-align: center;
}
.trial-card–promo .trial-price-block .trial-price-old,
.trial-card--promo .trial-price-block .trial-price-old {
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 6px;
}
.trial-card–promo .trial-price-block .trial-price,
.trial-card--promo .trial-price-block .trial-price {
  font-size: 2.3rem;
  font-weight: 900;
  color: #fff;
}
.trial-card–promo .tariff-btn,
.trial-card--promo .tariff-btn {
  display: block;
  width: 100%;
  margin: 0;
  padding: 14px 16px;
  background-color: rgba(27,47,78,.86);
  border: none;
  border-radius: 0 0 var(--radius-lg, 22px) var(--radius-lg, 22px);
  color: #fff;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  transition: background .3s ease;
}
.trial-card–promo .tariff-btn:hover,
.trial-card--promo .tariff-btn:hover { background-color: #2695ff; }

.trial-card–promo a,
.trial-card--promo a {
  text-decoration: none;
  color: inherit;
  display: block;
}
.trial-card–promo a:hover,
.trial-card--promo a:hover { text-decoration: none; }

/* АДАПТИВ ДЛЯ TRIAL */
@media (max-width: 1024px) {
  .pricing-trial-wrapper { gap: 20px; padding: 0 14px; }
  .trial-card { max-width: 680px; }
  .trial-card–promo, .trial-card--promo { max-width: 280px; }
}

@media (max-width: 820px) {
  .trial-card,
  .trial-card.trial-card–table,
  .trial-card.trial-card--table {
    flex: 1 1 100%;
    max-width: 85%;
  }
  .trial-card–promo,
  .trial-card--promo {
    flex: 1 1 100%;
    max-width: 85%;
    margin: 0 auto;
    align-self: stretch;
  }

  /* На планшетах немного больше места слева и лёгкое уменьшение шрифта */
  .trial-table td:first-child {
    width: 78%;
    font-size: clamp(0.8rem, 0.68rem + 0.7vw, 0.98rem);
    letter-spacing: -0.012em;
  }
  .trial-table td { padding: 9px 6px; }
}

/* ТЕЛЕФОНЫ */
@media (max-width: 560px) {
  .trial-card,
  .trial-card–promo,
  .trial-card--promo {
    padding: 18px;
    max-width: 85%;
    border-radius: 16px;
  }
  .trial-table { table-layout: fixed; width: 100%; }
  .trial-table td { padding: 9px 6px; }

  .trial-table td:first-child {
    width: 82%;
    white-space: nowrap;
    font-size: clamp(0.74rem, 0.56rem + 1.2vw, 0.94rem);
    letter-spacing: -0.014em;
  }
  .trial-table td:last-child {
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    padding-left: 6px;
  }

  .trial-table tr.trial-total-row td {
    font-size: clamp(1.06rem, 0.9rem + 0.9vw, 1.3rem);
  }

  .trial-card–promo .trial-promo-text,
  .trial-card--promo .trial-promo-text { font-size: 1rem; }
  .trial-card–promo .trial-price-block .trial-price,
  .trial-card--promo .trial-price-block .trial-price { font-size: 2rem; }
}

/* === PRICING === */
.pricing-cards-3 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  margin: 0 auto;
  padding: 40px 0px 20px 0px;
  max-width: var(--container, 1120px);
}

/* Карта тарифа */
.tariff-card {
  width: 100%;
  max-width: 420px;
  min-width: 280px;
  border-radius: 32px;
  padding: 28px 22px 26px;
  box-shadow: 0 8px 38px 0 rgb(90 38 190 / 13%), inset 0 0 0 1.5px #5f5f5f44;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform .18s ease, box-shadow .18s ease;
}
.tariff-card:hover {
  box-shadow: 0 16px 48px 0 rgba(90,38,190,.21);
}
.tariff-light {
  background: linear-gradient(120deg, #f7fbfe 70%, #e7edf2 100%);
  color: #1d2636;
}

/* Типографика и списки */
.tariff-title {
  font-family: 'Oswald',sans-serif;
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 12px;
  letter-spacing: -1px;
  text-transform: uppercase;
  text-align: center;
}
.tariff-limit {
  font-size: 1rem;
  margin-bottom: 12px;
  color: #c02efb;
  font-weight: bold;
  text-transform: uppercase;
}
.tariff-section-title {
  width: 100%;
  font-size: 1.2rem;
  font-family: Unbounded, sans-serif;
  font-weight: 600;
  margin: 18px 0 10px;
  color: #c02efb;
  text-align: left;
  text-transform: uppercase;
}
.tariff-list,
.tariff-bonus-list {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55em;
  font-size: 1.06rem;
  font-weight: 500;
  line-height: 1.45;
}
.tariff-list li,
.tariff-bonus-list li {
  position: relative;
  padding-left: 1.2em;
  font-weight: bold;
  color: #452082;
}
.tariff-list li::before,
.tariff-bonus-list li::before {
  content: ">";
  position: absolute;
  left: 0;
  top: 0.05em;
  font-size: 0.9em;
}

/* Цена и кнопка */
.tariff-price-old {
  font-family: Unbounded, sans-serif;
  font-size: 1.5rem;
  color: #d63333;
  text-decoration: line-through;
  margin: 8px 0 0;
}
.tariff-price {
  font-family: Unbounded, sans-serif;
  font-size: 2.6rem;
  font-weight: 900;
  margin: 6px 0 12px;
}
.tariff-note {
  font-size: 0.95rem;
  color: #6c7a8f;
  text-align: center;
  line-height: 1.4;
  margin: 0 0 16px;
}
.tariff-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(90deg, #6118a9, #c52fff 45%, #6118a9);
  color: #fff;
  font-family: var(--title-font, Unbounded), sans-serif;
  font-weight: 800;
  font-size: 1.02rem;
  height: 52px;
  padding: 0 24px;
  border: none;
  border-radius: 17px;
  box-shadow: 0 0 30px rgb(180 55 252 / 33%), 0 8px 32px 0 rgba(38, 149, 255, .12);
  cursor: pointer;
  text-decoration: none;
}

/* Адаптив для PRICING */
@media (max-width: 1024px) {
  .pricing-cards-3 { gap: 24px; }
  .tariff-card { max-width: 420px; }
}
@media (max-width: 820px) {
  .tariff-card { max-width: 85%; }
}
@media (max-width: 480px) {
  .tariff-card {
    max-width: 85%;
    padding: 22px 18px 20px;
    border-radius: 22px;
  }
  .tariff-title { font-size: 2rem; }
  .tariff-section-title { font-size: 1.1rem; }
  .tariff-list, .tariff-bonus-list { font-size: 1rem; }
  .tariff-price { font-size: 2.2rem; }
  .tariff-price-old { font-size: 1.3rem; }
  .tariff-btn { height: 48px; font-size: 0.98rem; }
}

.section, .article { width: 100%; }
.article__wrap { margin: 0 auto; max-width: 93ch; }

@media (max-width: 1000px) {
  .article__wrap { max-width: 80ch; }
}
@media (max-width: 840px) {
  .article__wrap { max-width: 60ch; }
}
@media (max-width: 660px) {
  .article__wrap { max-width: 50ch; }
}

/* ===== Longread fixes ===== */

/* 1) Center CTA rows (for buttons inserted outside wraps) */
.cta-row{
  display:flex;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  gap:12px;
  width:100%;
  margin:22px 0;
}

@media (max-width: 560px){
  .cta-row{
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .cta-row .cta{
    width: 100%;
    max-width: 520px;
    justify-content: center;
    padding: 14px 18px;
  }
}

.cta-row .cta{ margin:0; }

/* 1) Ensure CTA/button typography consistent */
.cta, .tariff-btn{
  font-family: inherit;
  font-weight: 700;
  letter-spacing: .02em;
}
.tariff-btn{
  border: 0;
  cursor: pointer;
}

/* 2) Remove underline on hover for button-like links inside articles */
.article a:hover{ text-decoration: underline; }
.article a.cta:hover,
.article a.cta:focus,
.article a.tariff-btn:hover,
.article a.btn:hover,
.article a.tariff-btn:focus{
  text-decoration: none !important;
}

/* FIX: hidden должен реально скрывать элементы, даже если другие правила задают display */
[hidden] { 
  display: none !important; 
}

/* ===== FIX: убрать пространство между низом hero и низом hero-картинки ===== */
/* Причина: padding-bottom у .hero__wrap добавляет «подушку» под последним элементом */
.hero__wrap{ padding-bottom: 0 !important; }
.hero-media{ margin-bottom: 0 !important; }

@media (max-width: 640px){
  .hero__wrap{ padding-bottom: 0 !important; }
  .hero-media{ margin-bottom: 0 !important; }
}

/* ================= Infinite Marquee (CSS-only, no JS) =================
   Inspired by the “duplicate set + translate” technique (Logto blog demo).
   Smooth: transform-only animation, GPU-friendly, no layout thrash.
*/

/* =========================
   INFINITE STRIP (CSS-only) — отзывы под HERO
   Цель: красиво, без лагов/рывков, мобилка+ПК.
   Трюк: 2 одинаковых трека внутри inner, inner едет на -50%.
   ВАЖНО: между треками gap = 0 (иначе будет микрорывок).
========================= */

.strip.article.theme-light{
  /* чтобы белая секция была ВПЛОТНУЮ к HERO */
  border-top: 0 !important;
  margin-top: 0 !important;
  background: var(--section-bg);
}

.strip__wrap{
  /* убираем “пустой” верхний отступ (на скрине выглядело уродски) */
  padding-top: 50px !important;
  padding-bottom: 70px !important;
}

.strip__head{
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(16px, 3vw, 24px) 16px 10px;
  text-align: center;
}

.strip__kicker{
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  color: var(--section-muted);
}

.strip__title{
  margin-top: 6px;
  font-weight: 950;
  letter-spacing: -.02em;
  font-size: clamp(18px, 2.4vw, 26px);
  color: var(--section-heading);
}

.marquee{
  /* отдельный слой, чтобы ничего не “обрезало” */
  position: relative;
  overflow: hidden;
  width: 100%;
  padding: 15px 0 30px;
  /* мягкий fade по краям */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}

.marquee__inner{
  --duration: 42s;                 /* скорость */
  --gap: clamp(14px, 2.2vw, 22px); /* расстояние между карточками */
  display: flex;
  width: max-content;
  will-change: transform;
  transform: translate3d(0,0,0);
  animation: marquee var(--duration) linear infinite;
}

.marquee:hover .marquee__inner,
.marquee:focus-within .marquee__inner{
  animation-play-state: paused;
}

.marquee__track{
  display: flex;
  gap: var(--gap);
  padding: 0 16px;
  flex: 0 0 auto;
}

/* Критично: между двумя треками НЕ должно быть gap */
.marquee__inner > .marquee__track + .marquee__track{
  margin-left: 0 !important;
}

@keyframes marquee{
  from { transform: translate3d(0,0,0); }
  to   { transform: translate3d(-50%,0,0); }
}

.card{
  flex: 0 0 auto;
  width: clamp(220px, 34vw, 300px);
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 22px;
  /* УБРАЛИ тени полностью (чтобы ничего не обрезалось и не “колхозило”) */
  box-shadow: none !important;
  background: #0b1524;
  border: 1px solid var(--light-border);
}

.card figcaption{
  margin-top: 10px;
  max-width: 100%;
  text-align: center;
  font-weight: 800;
  font-size: clamp(13px, 1.8vw, 15px);
  line-height: 1.3;
  color: var(--section-muted);
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--light-surface);
  border: 1px solid var(--light-surface-border);
}

@media (max-width: 560px){
  .marquee__inner{ --duration: 34s; }
  .card{ width: clamp(190px, 68vw, 260px); }
  .card img{ border-radius: 18px; }
}

/* Доступность: если у человека “уменьшить движение” — отключаем анимацию */
@media (prefers-reduced-motion: reduce){
  .marquee{ overflow-x: auto; scroll-snap-type: x mandatory; }
  .marquee__inner{ animation: none !important; }
  .card{ scroll-snap-align: start; }
}

/* ===== CTA overflow FIX (mobile-only, safe for desktop) ===== */
@media (max-width: 560px){
  /* гасим горизонтальный скролл только на мобилке */
  html, body { overflow-x: clip; }

  .cta-row{
    display:flex;
    width: 100%;
    max-width: 100%;
    flex-direction: column;   /* строго колонка */
    align-items: stretch;
    justify-content: center;
    gap: 10px;
    box-sizing: border-box;
  }

  .cta-row .cta{
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: center;
    text-align: center;

    /* разрешаем перенос внутри кнопки */
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;

    padding: 14px 16px;
  }
}

/* ===== Value stacking (в стиле сайта) ===== */
#value .vs-accent { color: var(--main-blue); }

#value .vs-list{
  margin: 1.2em 0 1.6em;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#value .vs-item{
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--section-border);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.03);
}

#value .vs-num{
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: #fff;
  background: radial-gradient(circle at 30% 30%, rgba(190,55,252,0.98), rgba(190,55,252,0.55));
  box-shadow: 0 14px 30px rgba(190,55,252,0.18);
  flex: 0 0 auto;
}

#value .vs-title{
  font-size: clamp(18px, 2.4vw, 22px);
  line-height: 1.25;
  font-weight: 800;
  color: var(--section-heading);
  letter-spacing: .1px;
}

#value .vs-note{
  font-weight: 700;
  color: #ffda00;
}

#value .vs-desc{
  margin-top: .35em;
  color: var(--section-muted);
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.45;
}

/* --- ИТОГО: по центру и не на всю ширину --- */
#value .vs-total{
  width: fit-content;
  max-width: min(760px, 100%);
  margin: 1.8em auto 2.2em;      /* центр */
  padding: 18px 20px;

  border: 1px solid rgb(255 255 255 / 26%);
  border-radius: var(--radius-xl);
  background: linear-gradient(120deg, rgb(14 3 26), rgb(10 4 39));

  display: flex;
  flex-direction: column;         /* чтобы не было "по краям" */
  align-items: center;
  justify-content: center;
  gap: 8px;

  text-align: center;
  box-sizing: border-box;
}

#value .vs-total__label{
	font-size: clamp(22px, 3.4vw, 34px);
    line-height: 1.15;
    color: var(--section-heading);
    font-weight: 800;
    padding: 10px;
    letter-spacing: -0.02em;
    margin: 0;
}

#value .vs-total__sum{
  font-size: clamp(32px, 5.6vw, 52px);
  color: var(--section-heading);
  font-weight: 950;
  letter-spacing: .2px;
  margin: 0;
}

/* --- ЦЕНА СЕЙЧАС: по центру и не на всю ширину --- */
#value .vs-deal{
width: fit-content;
    max-width: min(520px, 100%);
    margin: 1.0em auto 2.0em;
    padding: 16px 20px;
    font-family: Unbounded, sans-serif;
    /* border: 1px solid rgb(255 255 255 / 26%); */
    /* border-radius: var(--radius-xl); */
    /* background: linear-gradient(120deg, rgb(14 3 26), rgb(10 4 39)); */
    text-align: center;
    box-sizing: border-box;
}

#value .vs-deal__row{
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  text-align: center;
}

#value .vs-deal__now{
  font-size: clamp(30px, 7vw, 50px);
  font-weight: 950;
  color: var(--section-heading);
  letter-spacing: .2px;
}

#value .vs-deal__old{
  font-family: Unbounded, sans-serif;
  font-size: clamp(20px, 3.4vw, 28px);
  color: #999999;
  font-weight: 900;
  text-decoration: line-through;
  margin: 8px 0 0;
}

#value .vs-deal__hint{
  margin-top: 10px;
  text-align: center;
  color: var(--section-muted);
  font-size: clamp(14px, 2vw, 16px);
  line-height: 1.45;
}



/* ====== PRE-APPLICATION MODAL ====== */
.preapply-modal{
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 12px;
  transition: opacity .18s ease, visibility .18s ease;
}
.preapply-modal[aria-hidden="true"]{
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.preapply-modal[aria-hidden="false"]{
  opacity: 1;
  visibility: visible;
}
.preapply-modal__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 18, .76);
  backdrop-filter: blur(8px);
}
.preapply-modal__dialog{
  position: relative;
  width: min(620px, calc(100vw - 24px));
  max-height: min(88svh, 920px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 6px;
  border-radius: 28px;
  isolation: isolate;
  background:
    radial-gradient(circle at top left, rgba(197,47,255,.14), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.025)),
    linear-gradient(180deg, rgba(4,8,20,.98), rgba(9,13,28,.98));
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: 0 40px 100px rgba(0,0,0,.58), 0 0 0 1px rgba(255,255,255,.03) inset;
  color: var(--text);
}
.preapply-modal__scroll{
  width: 100%;
  max-height: calc(min(88svh, 920px) - 12px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 22px 16px 20px 22px;
  border-radius: 22px;
  clip-path: inset(0 round 22px);
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(190,55,252,.68) rgba(255,255,255,.04);
  box-sizing: border-box;
}
.preapply-modal__scroll::-webkit-scrollbar{
  width: 8px;
}
.preapply-modal__scroll::-webkit-scrollbar-track{
  background: rgba(255,255,255,.04);
  border-radius: 999px;
  margin: 12px 2px 12px 0;
}
.preapply-modal__scroll::-webkit-scrollbar-thumb{
  background: linear-gradient(180deg, rgba(190,55,252,.92), rgba(127,24,212,.78));
  border-radius: 999px;
  border: 1.5px solid transparent;
  background-clip: padding-box;
}
.preapply-modal__close{
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: #fff;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.preapply-modal__close:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.16);
}
.preapply-modal__close svg{
  width: 18px;
  height: 18px;
}
.preapply-modal__header{
  padding-right: 52px;
  margin-bottom: 14px;
}
.preapply-modal__eyebrow{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 30px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: rgba(233,238,246,.76);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .10em;
  text-transform: uppercase;
}
.preapply-modal__title{
  margin: 0;
  color: #fff;
  font-weight: 900;
  font-size: clamp(28px, 4.8vw, 44px);
  line-height: 1.01;
  text-transform: uppercase;
  letter-spacing: .01em;
}
.preapply-modal__subtitle{
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}
.preapply-form{
  display: grid;
  gap: 12px;
  min-width: 0;
}
.preapply-field{
  display: grid;
  gap: 8px;
  min-width: 0;
}
.preapply-field label{
  color: rgba(233,238,246,.92);
  font-size: 14px;
  font-weight: 700;
}
.preapply-field input,
.preapply-field textarea{
  width: 100%;
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.04);
  color: #fff;
  font: inherit;
  line-height: 1.4;
  transition: border-color .14s ease, box-shadow .14s ease, background .14s ease;
  box-sizing: border-box;
}
.preapply-field textarea{
  min-height: 128px;
  resize: vertical;
}
.preapply-field input::placeholder,
.preapply-field textarea::placeholder{
  color: rgba(168,179,199,.88);
}
.preapply-field input:focus,
.preapply-field textarea:focus{
  outline: none;
  border-color: rgba(190,55,252,.72);
  box-shadow: 0 0 0 4px rgba(190,55,252,.14);
  background: rgba(255,255,255,.055);
}
.preapply-native-select{
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.preapply-ui-select{
  display: grid;
  gap: 8px;
  min-width: 0;
}
.preapply-ui-select__button{
  width: 100%;
  min-width: 0;
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.03));
  color: #fff;
  font: inherit;
  line-height: 1.4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color .14s ease, box-shadow .14s ease, background .14s ease, transform .08s ease;
}
.preapply-ui-select__button:hover{
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.04));
}
.preapply-ui-select__button:focus-visible{
  outline: none;
  border-color: rgba(190,55,252,.72);
  box-shadow: 0 0 0 4px rgba(190,55,252,.14);
}
.preapply-ui-select__value{
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.preapply-ui-select:not(.has-value) .preapply-ui-select__value{
  color: rgba(168,179,199,.88);
}
.preapply-ui-select__chevron{
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(233,238,246,.92);
  background: rgba(255,255,255,.05);
  transition: transform .14s ease, background .14s ease;
}
.preapply-ui-select__chevron svg{
  width: 16px;
  height: 16px;
}
.preapply-ui-select.is-open .preapply-ui-select__button{
  border-color: rgba(190,55,252,.78);
  box-shadow: 0 0 0 4px rgba(190,55,252,.14);
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.04));
}
.preapply-ui-select.is-open .preapply-ui-select__chevron{
  transform: rotate(180deg);
  background: rgba(190,55,252,.18);
}
.preapply-ui-select__menu{
  display: none;
  gap: 8px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.10);
  background:
    radial-gradient(circle at top left, rgba(197,47,255,.12), transparent 44%),
    linear-gradient(180deg, rgba(10,16,32,.98), rgba(8,12,24,.98));
  box-shadow: 0 16px 40px rgba(0,0,0,.32);
}
.preapply-ui-select.is-open .preapply-ui-select__menu{
  display: grid;
}
.preapply-ui-select__option{
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  color: rgba(233,238,246,.95);
  text-align: left;
  font: inherit;
  line-height: 1.35;
  cursor: pointer;
  transition: background .12s ease, border-color .12s ease, transform .08s ease, color .12s ease;
}
.preapply-ui-select__option:hover,
.preapply-ui-select__option:focus-visible{
  outline: none;
  background: rgba(190,55,252,.16);
  border-color: rgba(190,55,252,.34);
  color: #fff;
}
.preapply-ui-select__option.is-selected{
  background: linear-gradient(90deg, rgba(97,24,169,.54), rgba(197,47,255,.36));
  border-color: rgba(190,55,252,.52);
  color: #fff;
}
.preapply-check{
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 2px;
  color: rgba(233,238,246,.85);
  font-size: 14px;
  line-height: 1.45;
}
.preapply-check input{
  margin-top: 2px;
  width: 18px;
  height: 18px;
  accent-color: var(--main-blue);
}
.preapply-submit{
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-height: 58px;
  padding: 14px 18px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #6118a9, #c52fff 45%, #6118a9);
  color: #fff;
  font: inherit;
  font-weight: 900;
  font-size: 16px;
  letter-spacing: .03em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 30px rgba(201, 38, 255, .35);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease, opacity .12s ease;
}
.preapply-submit:hover{
  transform: translateY(-1px);
  box-shadow: 0 5px 30px 10px rgba(201, 38, 255, .35);
  filter: brightness(1.05);
}
.preapply-submit:disabled{
  cursor: wait;
  opacity: .86;
}
.preapply-submit__glow{
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(90% 80% at 50% -10%, rgba(255,255,255,.30), rgba(255,255,255,0) 70%);
}
.preapply-message{
  min-height: 1.3em;
  text-align: center;
  color: #ffb9b9;
  font-size: 14px;
  font-weight: 700;
}
.preapply-message.is-success{
  color: #c6ffd9;
}
.preapply-hp{
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.preapply-success{
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
  padding: 10px 4px 4px;
}
.preapply-success__icon{
  width: 72px;
  height: 72px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at top, rgba(255,255,255,.22), rgba(255,255,255,0) 62%),
    linear-gradient(180deg, rgba(97,24,169,.95), rgba(197,47,255,.92));
  color: #fff;
  font-size: 34px;
  font-weight: 900;
  box-shadow: 0 18px 42px rgba(197,47,255,.28);
}
.preapply-success__title{
  margin: 0;
  color: #fff;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.08;
  font-weight: 900;
  text-transform: uppercase;
}
.preapply-success__text{
  margin: 0;
  max-width: 480px;
  color: rgba(233,238,246,.86);
  font-size: 15px;
  line-height: 1.6;
}
.preapply-success__button{
  min-width: 180px;
  min-height: 54px;
  padding: 14px 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #6118a9, #c52fff 45%, #6118a9);
  color: #fff;
  font: inherit;
  font-weight: 900;
  letter-spacing: .03em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 30px rgba(201, 38, 255, .35);
  transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}
.preapply-success__button:hover{
  transform: translateY(-1px);
  box-shadow: 0 5px 30px 10px rgba(201, 38, 255, .35);
  filter: brightness(1.05);
}

@media (max-width: 640px){
  .preapply-modal{
    padding: 8px;
    place-items: end center;
  }
  .preapply-modal__dialog{
    width: 100%;
    max-height: min(94svh, 980px);
    padding: 4px;
    border-radius: 22px;
  }
  .preapply-modal__scroll{
    max-height: calc(min(94svh, 980px) - 8px);
    padding: 18px 12px 16px 16px;
    border-radius: 18px;
    clip-path: inset(0 round 18px);
  }
  .preapply-modal__close{
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
  }
  .preapply-modal__header{
    padding-right: 46px;
    margin-bottom: 12px;
  }
  .preapply-modal__eyebrow{
    margin-bottom: 30px;
    padding: 6px 10px;
    font-size: 11px;
  }
  .preapply-modal__title{
    font-size: clamp(24px, 8vw, 34px);
    line-height: 1.02;
  }
  .preapply-modal__subtitle{
    margin-top: 7px;
    font-size: 14px;
    line-height: 1.42;
  }
  .preapply-field input,
  .preapply-field textarea,
  .preapply-ui-select__button{
    padding: 13px 14px;
    border-radius: 14px;
    font-size: 16px;
  }
  .preapply-ui-select__menu{
    gap: 6px;
    padding: 8px;
    border-radius: 16px;
  }
  .preapply-ui-select__option{
    padding: 12px 13px;
    border-radius: 12px;
    font-size: 15px;
  }
  .preapply-field textarea{
    min-height: 120px;
  }
  .preapply-check{
    font-size: 13px;
    gap: 10px;
  }
  .preapply-submit{
    min-height: 54px;
    font-size: 15px;
  }
  .preapply-success{
    gap: 12px;
    padding: 6px 0 2px;
  }
  .preapply-success__icon{
    width: 62px;
    height: 62px;
    font-size: 30px;
  }
  .preapply-success__title{
    font-size: clamp(22px, 7.2vw, 30px);
  }
  .preapply-success__text{
    font-size: 14px;
    line-height: 1.5;
  }
  .preapply-success__button{
    width: 100%;
    min-height: 52px;
    font-size: 15px;
  }
}



/* ===== REEL SHOWCASE / KINESCOPE ===== */
.reel-showcase{
  margin: clamp(26px, 5vw, 46px) 0;
}

.reel-showcase__head{
  max-width: 820px;
  margin: 0 auto clamp(18px, 3vw, 26px);
  text-align: center;
}

.reel-showcase__eyebrow{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.04);
  color: var(--section-text);
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.reel-showcase__title{
  margin: 0 0 10px;
  color: var(--section-heading);
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.12;
  font-weight: 800;
}

.reel-showcase__text{
  margin: 0;
  color: var(--section-muted);
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.6;
}

.reel-showcase__grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
  align-items: start;
}

.reel-showcase__item{
  min-width: 0;
}

.reel-showcase__frame{
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: clamp(20px, 2vw, 28px);
  border: 1px solid rgba(255,255,255,.10);
  background:
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  box-shadow:
    0 18px 40px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.06);
}

.reel-showcase__frame::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
  z-index: 2;
}

.reel-showcase__frame iframe{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #000;
}

/* Светлая секция */
.theme-light .reel-showcase__eyebrow{
  border-color: rgba(17,20,38,.10);
  background: rgba(0,0,0,.03);
  color: var(--section-text);
}

.theme-light .reel-showcase__frame{
  border-color: rgba(17,20,38,.10);
  background:
    linear-gradient(180deg, rgba(255,255,255,.94), rgba(243,244,249,.92));
  box-shadow:
    0 14px 30px rgba(17,20,38,.08),
    inset 0 1px 0 rgba(255,255,255,.75);
}

.theme-light .reel-showcase__frame::before{
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.65);
}

/* Hover только там, где есть hover */
@media (hover: hover){
  .reel-showcase__item{
    transition: transform .16s ease;
  }

  .reel-showcase__item:hover{
    transform: translateY(-3px);
  }
}

/* Планшеты */
@media (max-width: 980px){
  .reel-showcase__grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Телефоны */
@media (max-width: 640px){
  .reel-showcase{
    margin: 28px 0;
  }

  .reel-showcase__grid{
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .reel-showcase__item{
    width: min(100%, 420px);
    margin: 0 auto;
  }

  .reel-showcase__head{
    margin-bottom: 18px;
  }
}


/* ===== iPhone / Safari white background + footer overscroll fix ===== */

/* 1) Корневой фон страницы всегда тёмный, даже если Safari показывает область вне контента */
html{
  min-height: 100%;
  background: #090412;
  overflow-x: clip;
  overscroll-behavior-x: none;
}

body{
  min-height: 100%;
  background: #090412;
  overflow-x: clip;
  overscroll-behavior-x: none;
  position: relative;
}

/* Фиксированный фон на весь viewport — убирает белые вспышки при fast scroll / rotate */
body::before{
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    linear-gradient(90deg, #0e0319 0%, #0a0428 45%, #0e0319 100%);
  transform: translateZ(0);
  will-change: transform;
}



.page{
  min-height: 100dvh;
  overflow-x: clip;
}

/* 3) Медиа-элементы не должны выталкивать страницу по ширине */
img,
picture,
video,
iframe,
canvas,
svg{
  max-width: 100%;
}

/* 4) Footer на iPhone: убираем белое пространство снизу и учитываем safe area */
.footer{
  background: #000;
  padding-bottom: env(safe-area-inset-bottom);
}

.footer__wrap{
  padding-bottom: calc(48px + env(safe-area-inset-bottom));
}

/* 5) На iPhone в landscape чаще всего вылезает боковой фон из-за 1–2px overflow */
@media (max-width: 932px){
  html,
  body,
  .page{
    overflow-x: clip;
  }

  .hero__wrap,
  .article__wrap,
  .footer__wrap{
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
}

/* 6) Safari repaint fix: чуть стабильнее при быстром скролле */
.page::before,
.hero::before{
  transform: translateZ(0);
  will-change: transform;
}

/* 7) Если какой-то блок всё же толкает ширину, этот clamp его удержит */
body > *{
  max-width: 100%;
}

/* ===== PREAPPLY SUCCESS — cleaner / centered ===== */
.preapply-success{
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 36px 8px 8px;
}

.preapply-success__icon{
  width: 84px;
  height: 84px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(180deg, #c52fff, #7f18d4);
  color: #fff;
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 0 34px rgba(201,38,255,.32);
}

.preapply-success__text{
  margin: 28px 0 0;
  color: rgba(168,179,199,.82);
  font-size: 15px;
  line-height: 1.5;
  max-width: 320px;
}

.preapply-success__button{
  margin-top: 22px;
  min-width: 190px;
  min-height: 54px;
  padding: 12px 20px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #6118a9, #c52fff 45%, #6118a9);
  color: #fff;
  font: inherit;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: .03em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 26px rgba(201,38,255,.30);
}

/* на телефоне не снизу, а по центру */
@media (max-width: 640px){
  .preapply-modal{
    place-items: center;
    padding: 10px;
  }

  .preapply-modal__dialog{
    width: min(100%, 520px);
    max-height: min(88svh, 760px);
    border-radius: 22px;
  }

  .preapply-modal__scroll{
    max-height: min(88svh, 760px);
  }

  .preapply-success{
    padding: 22px 2px 6px;
  }

  .preapply-success__icon{
    width: 70px;
    height: 70px;
    font-size: 34px;
  }

  .preapply-success__text{
    margin-top: 26px;
    font-size: 14px;
    line-height: 1.45;
    max-width: 240px;
  }

  .preapply-success__button{
    margin-top: 18px;
    min-width: 170px;
    min-height: 50px;
    font-size: 14px;
  }
}

/* Icon line: green check / red cross */
.icon-line{
  display: grid;
  grid-template-columns: 0.7lh 1fr;
  column-gap: 10px;
  align-items: start;
}

.icon-line::before{
  content: "";
  width: 0.7lh;
  height: 1lh;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.icon-line--check::before{
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
<circle cx='12' cy='12' r='11' fill='%2398e65f'/>\
<path d='M7 12.5l3.1 3.1L17.5 8.2' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/>\
</svg>");
}

.icon-line--cross::before{
  background-image: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'>\
<circle cx='12' cy='12' r='11' fill='%23f26b6b'/>\
<path d='M8 8l8 8M16 8l-8 8' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round'/>\
</svg>");
}

/* ===== Accent underline for selected text ===== */
.theme-light{
  --scribble-underline: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 12' preserveAspectRatio='none'>\
<defs>\
<linearGradient id='g' x1='0%' y1='0%' x2='100%' y2='0%'>\
<stop offset='0%' stop-color='%236c57ff' stop-opacity='0'/>\
<stop offset='6%' stop-color='%236c57ff' stop-opacity='0.96'/>\
<stop offset='94%' stop-color='%236c57ff' stop-opacity='0.96'/>\
<stop offset='100%' stop-color='%236c57ff' stop-opacity='0'/>\
</linearGradient>\
</defs>\
<path d='M2 8.7C20 7.2 35 9.9 52 8.7C72 7.3 89 6.8 108 7.6C126 8.3 141 8.8 158 7.1' fill='none' stroke='url(%23g)' stroke-width='2.6' stroke-linecap='round'/>\
</svg>");
}

.theme-dark{
  --scribble-underline: url("data:image/svg+xml;utf8,\
<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 12' preserveAspectRatio='none'>\
<defs>\
<linearGradient id='g' x1='0%' y1='0%' x2='100%' y2='0%'>\
<stop offset='0%' stop-color='%238f82ff' stop-opacity='0'/>\
<stop offset='6%' stop-color='%238f82ff' stop-opacity='0.98'/>\
<stop offset='94%' stop-color='%238f82ff' stop-opacity='0.98'/>\
<stop offset='100%' stop-color='%238f82ff' stop-opacity='0'/>\
</linearGradient>\
</defs>\
<path d='M2 8.7C20 7.2 35 9.9 52 8.7C72 7.3 89 6.8 108 7.6C126 8.3 141 8.8 158 7.1' fill='none' stroke='url(%23g)' stroke-width='2.6' stroke-linecap='round'/>\
</svg>");
}

.u-scribble{
  color: inherit;
  font: inherit;
  display: inline;
  padding-bottom: 0.11em;
  background-image: var(--scribble-underline);
  background-repeat: no-repeat;
  background-position: 0 calc(100% - 0.01em);
  background-size: 100% 0.5em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

@media (max-width: 640px){
  .u-scribble{
    padding-bottom: 0.09em;
    background-size: 100% 0.3em;
    background-position: 0 100%;
  }
}

/* ===== Cartoon PNG inserts ===== */
.cartoon-ill{
  --ill-gap: clamp(16px, 2.2vw, 28px);
  --ill-y: 0px;
  position: relative;
  z-index: 1;
  line-height: 0;
}

.cartoon-ill img{
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  transform: translateY(var(--ill-y));
  pointer-events: none;
  user-select: none;
}

.theme-light .cartoon-ill img{
  filter: drop-shadow(0 12px 22px rgba(17,20,38,.08));
}

.theme-dark .cartoon-ill img{
  filter: drop-shadow(0 14px 28px rgba(0,0,0,.28));
}

/* safest universal option */
.cartoon-ill--center{
  width: min(clamp(200px, 30vw, 320px), 100%);
  margin: 18px auto 26px;
}

/* desktop side placement */
@media (min-width: 861px){
  .cartoon-ill--left,
  .cartoon-ill--right{
    margin-top: 8px;
    margin-bottom: 12px;
  }

  .cartoon-ill--left{
    float: left;
    margin-right: var(--ill-gap);
    margin-left: -4px;
  }

  .cartoon-ill--right{
    float: right;
    margin-left: var(--ill-gap);
    margin-right: -4px;
  }

  /* per-image sizing */
  .cartoon-ill--chaos{
    width: clamp(220px, 28vw, 340px);
  }

  .cartoon-ill--dish{
    width: clamp(190px, 24vw, 290px);
  }

  .cartoon-ill--sadness{
    width: clamp(200px, 25vw, 300px);
  }
}

/* mobile: always center + compact */
@media (max-width: 860px){
  .cartoon-ill--left,
  .cartoon-ill--right,
  .cartoon-ill--chaos,
  .cartoon-ill--dish,
  .cartoon-ill--sadness{
    float: none;
    width: min(clamp(190px, 62vw, 320px), 100%);
    margin: 18px auto 24px;
  }
}

.cartoon-clear{
  clear: both;
}