/* ==========================================================================
   «Путь к себе через числа и энергию» — Галина Пронина
   Стили лендинга. Палитра и типографика повторяют оформление Teletype
   (Inter, колонка 700px, серые блоки-заметки, акцент #5B41F5 / #6D68E4).
   ========================================================================== */

/* ---------- Токены ---------- */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f6f6;
  --note-1: rgba(255, 255, 255, .80);
  --note-2: rgba(255, 255, 255, .46);
  --note-border: rgba(40, 40, 44, .12);
  --text: #1a1919;
  --text-soft: #4a4a4a;
  --muted: #696969;
  --accent: #5b41f5;
  --accent-hover: #4a32e0;
  --accent-soft: #eeeef0;
  --border: #eeeeee;
  --divider: rgba(26, 25, 25, .08);
  --topbar-bg: rgba(255, 255, 255, .62);
  --note-shadow: 0 12px 32px -14px rgba(30, 30, 36, .20);
  --radius: 10px;
  --radius-sm: 7px;
  --column: 700px;
  --font: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --shadow: 0 18px 36px rgba(0, 0, 0, .06);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #232323;
    --bg-soft: #2b2b2c;
    --note-1: rgba(255, 255, 255, .10);
    --note-2: rgba(255, 255, 255, .035);
    --note-border: rgba(255, 255, 255, .12);
    --text: #ebebeb;
    --text-soft: #cfcfcf;
    --muted: #949494;
    --accent: #6d68e4;
    --accent-hover: #837fea;
    --accent-soft: #3a3a3d;
    --border: #393939;
    --divider: rgba(255, 255, 255, .09);
    --topbar-bg: rgba(26, 26, 26, .58);
    --note-shadow: 0 12px 32px -14px rgba(0, 0, 0, .55);
    --shadow: 0 18px 36px rgba(0, 0, 0, .35);
  }
}

/* ---------- Сброс ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: var(--bg);
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Мягкий градиентный фон: фиксированный слой, не растягивается на всю высоту */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: var(--bg);
  background-image:
    radial-gradient(58% 52% at 12% 0%, rgba(88, 88, 94, .17) 0%, rgba(88, 88, 94, 0) 62%),
    radial-gradient(52% 46% at 94% 6%, rgba(124, 124, 130, .15) 0%, rgba(124, 124, 130, 0) 64%),
    radial-gradient(70% 62% at 50% 100%, rgba(68, 68, 74, .17) 0%, rgba(68, 68, 74, 0) 66%),
    linear-gradient(160deg, #ebebeb 0%, #ffffff 48%, #efefef 100%);
}

@media (prefers-color-scheme: dark) {
  body::before {
    background-image:
      radial-gradient(58% 52% at 12% 0%, rgba(255, 255, 255, .12) 0%, rgba(255, 255, 255, 0) 62%),
      radial-gradient(52% 46% at 94% 6%, rgba(255, 255, 255, .08) 0%, rgba(255, 255, 255, 0) 64%),
      radial-gradient(70% 62% at 50% 100%, rgba(255, 255, 255, .09) 0%, rgba(255, 255, 255, 0) 66%),
      linear-gradient(160deg, #313131 0%, #1c1c1c 48%, #272727 100%);
  }
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover { color: var(--accent-hover); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.01em;
}

ul, ol {
  margin: 0 0 1em;
  padding-left: 1.5em;
}

li { margin-bottom: .5em; }
li:last-child { margin-bottom: 0; }

s { opacity: .55; }

strong { font-weight: 700; }
em { font-style: italic; }

.center { text-align: center; }

/* Доступность */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Верхняя панель ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--topbar-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--divider);
}

.topbar__inner {
  max-width: calc(var(--column) + 80px);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.brand__mark {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #8f8f96 0%, #5e5e65 100%);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .02em;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand__text b { font-size: 14px; font-weight: 700; }
.brand__text small { font-size: 11px; color: var(--muted); }

.topnav {
  display: flex;
  gap: 20px;
  margin-left: auto;
}

.topnav a {
  color: var(--text-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

.topnav a:hover { color: var(--accent); }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font: 600 15px/1 var(--font);
  text-decoration: none;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.btn:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--accent);
  box-shadow: inset 0 0 0 1.5px var(--accent);
}

.btn--ghost:hover {
  background: var(--accent-soft);
  color: var(--accent);
}

.btn--big {
  min-height: 54px;
  padding: 0 30px;
  font-size: 16px;
}

.icon-tg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }

/* ---------- Статья ---------- */
.article {
  width: 100%;
  max-width: calc(var(--column) + 40px);
  margin: 0 auto;
  padding: 0 20px 90px;
}

.article__header { padding: 34px 0 10px; }

/* Автор */
.author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}

.author__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #66b3c9;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
}

.author__meta { display: flex; flex-direction: column; line-height: 1.35; }
.author__name { font-size: 15px; font-weight: 600; }
.author__date { font-size: 14px; color: var(--muted); }

.article h1 {
  font-size: 38px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 34px;
}

.article h2 {
  font-size: 28px;
  line-height: 1.3;
  margin: 34px 0 14px;
  scroll-margin-top: 90px;
}

.article h3 {
  font-size: 20px;
  line-height: 1.4;
  margin: 22px 0 8px;
}

.article h2 em,
.article h1 em { font-style: italic; }

/* ---------- Блок-«заметка» (серый) ---------- */
.note {
  background: linear-gradient(135deg, var(--note-1), var(--note-2));
  border: 1px solid var(--note-border);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin: 0 0 18px;
  box-shadow: var(--note-shadow);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.note > :last-child { margin-bottom: 0; }
.note h2 { margin-top: 0; }
.note h2:not(:first-child) { margin-top: 26px; }
.note ul { margin-bottom: 0; }

/* ---------- Декоративный линейный фон под блоками «Для кого» / «На программе ты» ---------- */
.deco {
  position: relative;
}

.deco__art {
  position: absolute;
  top: 50%;
  right: 0;
  left: auto;
  z-index: -1;
  height: 120%;
  aspect-ratio: 1 / 1;
  transform: translateY(-50%);
  background: url("../img/deco-flower.webp") center / contain no-repeat;
  mix-blend-mode: multiply;
  opacity: .32;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(closest-side, #000 42%, rgba(0, 0, 0, .5) 74%, transparent 100%);
  mask-image: radial-gradient(closest-side, #000 42%, rgba(0, 0, 0, .5) 74%, transparent 100%);
}

@media (prefers-color-scheme: dark) {
  .deco__art {
    filter: invert(1);
    mix-blend-mode: screen;
    opacity: .28;
  }
}

/* ---------- Фон-балерина в блоке «Главные результаты» ---------- */
.deco--dancer .deco__art--dancer {
  top: 50%;
  right: 0;
  left: auto;
  height: 124%;
  aspect-ratio: 650 / 916;
  transform: translateY(-50%);
  background: url("../img/deco-dancer.jpg") center / contain no-repeat;
  filter: grayscale(1) brightness(1.06) contrast(1.06);
  mix-blend-mode: multiply;
  opacity: .24;
  -webkit-mask-image: none;
  mask-image: none;
}

@media (prefers-color-scheme: dark) {
  .deco--dancer .deco__art--dancer {
    filter: grayscale(1) brightness(1.06) contrast(1.06) invert(1);
    mix-blend-mode: screen;
    opacity: .15;
  }
}

/* Шаг с портретом внутри плашки */
.step {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 22px;
  align-items: center;
}

.step__media { margin: 0; }

.step__media img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 14px 22px rgba(30, 30, 36, .45));
}

/* Светлые «фантомные» картинки: контраст, свечение и подчёркнутый силуэт */
.step__media--light img {
  filter:
    contrast(1.35)
    brightness(.96)
    drop-shadow(0 0 7px rgba(255, 255, 255, .22))
    drop-shadow(0 0 1px rgba(255, 255, 255, .45))
    drop-shadow(0 16px 24px rgba(30, 30, 36, .5));
}

/* Тёмное древо: поднимаем яркость, чтобы читалось на тёмной плашке */
.step__media--tree img {
  filter:
    brightness(1.4)
    contrast(1.05)
    drop-shadow(0 16px 24px rgba(30, 30, 36, .5));
}

.step__body > :last-child { margin-bottom: 0; }

/* ---------- Изображения ---------- */
.figure {
  margin: 0 0 22px;
  text-align: center;
}

.figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  object-fit: cover;
}

.figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

/* Компактная лента «фото + фраза» под блоком «Кто я» */
.highlights {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0 30px;
}

.highlight { margin: 0; }

.highlight img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 9px;
  box-shadow: 0 10px 22px -12px rgba(20, 20, 24, .55);
}

.highlight figcaption {
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
}

/* ---------- Тарифы ---------- */
.plan {
  margin-bottom: 18px;
}

.plan h2 {
  position: relative;
  display: inline-block;
  margin: 0 0 16px;
  padding: 0 0 10px;
  font-size: 25px;
  font-style: italic;
  font-weight: 800;
  letter-spacing: .02em;
}

.plan h2 > span {
  background-image: linear-gradient(100deg, #262530 0%, #4a4954 52%, #85848f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.plan h2::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin: 0 11px 2px 1px;
  transform: rotate(45deg);
  border-radius: 1px;
  background: linear-gradient(135deg, #8f8f96, #45444e);
  box-shadow: 0 0 8px rgba(90, 89, 102, .28);
}

.plan h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(90, 89, 102, .55) 0%, rgba(90, 89, 102, .18) 48%, rgba(90, 89, 102, 0) 100%);
}

@media (prefers-color-scheme: dark) {
  .plan h2 > span {
    background-image: linear-gradient(100deg, #ffffff 0%, #dcdbe4 50%, #9695a3 100%);
  }

  .plan h2::before {
    background: linear-gradient(135deg, #eeedf5, #8a8996);
    box-shadow: 0 0 8px rgba(220, 219, 230, .22);
  }

  .plan h2::after {
    background: linear-gradient(90deg, rgba(220, 219, 230, .45) 0%, rgba(220, 219, 230, .14) 48%, rgba(220, 219, 230, 0) 100%);
  }
}

.plan h3 {
  font-size: 21px;
  font-weight: 700;
  margin: 6px 0 2px;
  color: var(--text);
}

.plan h3:last-child { margin-bottom: 0; }

.plan .price-old {
  margin: 14px 0 8px;
  color: var(--muted);
}

.plan ul { margin-bottom: 14px; }

/* ---------- Бонусный блок: монеты справа ---------- */
.note--bonus {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px;
  gap: 16px;
  align-items: center;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.bonus__art { margin: 0; }

/* Цены бонусов: прижаты к правому краю строки, зачёркнуты */
.note--bonus li {
  position: relative;
  padding-right: 90px;
}

.note--bonus li s {
  position: absolute;
  top: 0;
  right: 0;
  white-space: nowrap;
  color: var(--muted);
  font-weight: 500;
  text-decoration-thickness: 1px;
}

.bonus__total {
  grid-column: 1 / -1;
  margin: 16px 0 0;
  text-align: center;
  font-size: 19px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .01em;
}

.bonus__total s { text-decoration-thickness: 1px; }

.bonus__art img {
  width: 100%;
  height: auto;
  filter: grayscale(1) brightness(1.06) contrast(1.05);
  mix-blend-mode: multiply;
  opacity: .82;
}

@media (prefers-color-scheme: dark) {
  .bonus__art img {
    filter: grayscale(1) brightness(1.06) contrast(1.05) invert(1);
    mix-blend-mode: screen;
    opacity: .85;
  }
}

/* ---------- CTA ---------- */
.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 10px;
}

/* ---------- Отзывы: карусель по 2 карточки ---------- */
.reviews {
  --media-h: 420px;
  position: relative;
  margin: 22px 0 28px;
}

.reviews__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 20px) / 2);
  gap: 20px;
  align-items: start;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
}

.reviews__track::-webkit-scrollbar { display: none; }

.reviews__track .figure {
  margin: 0;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
}

.reviews__track .figure img {
  width: 100%;
  height: var(--media-h);
  object-fit: contain;
  border-radius: var(--radius);
  background: #fff;
}

.reviews__track .figure figcaption {
  margin-top: 8px;
  font-size: 14px;
}

.reviews__track .figure a { text-decoration: none; font-weight: 500; }

.reviews__nav {
  position: absolute;
  top: calc(var(--media-h) / 2 - 19px);
  z-index: 3;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 50%;
  background: rgba(20, 20, 24, .55);
  color: #fff;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: background .18s, opacity .18s;
}

.reviews__nav:hover:not(:disabled) { background: var(--accent); border-color: transparent; }

.reviews__nav:disabled { opacity: .3; cursor: default; }

.reviews__nav--prev { left: -8px; }
.reviews__nav--next { right: -8px; }

/* Широкая картинка на всю колонку */
.figure--wide { grid-column: 1 / -1; }

/* ---------- Подвал ---------- */
.footer {
  border-top: 1px solid var(--divider);
  margin-top: 20px;
  padding: 34px 20px 50px;
}

.footer__inner {
  max-width: var(--column);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}

.footer a { color: var(--text-soft); }
.footer a:hover { color: var(--accent); }

.footer__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 500;
}

/* Навигация скрывается раньше, чтобы шапка не переполнялась */
@media (max-width: 1024px) {
  .topnav { display: none; }
}

/* ---------- Мобильная версия ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }

  .topbar__inner { gap: 12px; }

  .brand__text small { display: none; }

  .topbar .btn {
    margin-left: auto;
    min-height: 40px;
    padding: 0 16px;
    font-size: 14px;
  }

  .article { padding-bottom: 60px; }

  .article__header { padding-top: 24px; }

  .author { margin-bottom: 20px; }

  .article h1 { font-size: 28px; margin-bottom: 24px; }

  .article h2 { font-size: 22px; }

  .article h3 { font-size: 18px; }

  .note { padding: 16px; -webkit-backdrop-filter: none; backdrop-filter: none; }

  .deco__art { height: auto; width: 100%; }

  .deco--dancer .deco__art--dancer { height: auto; width: 100%; opacity: .15; }

  .step { grid-template-columns: 1fr; gap: 16px; }
  .step__media { max-width: 220px; margin: 0 auto; }

  .reviews { --media-h: 340px; }

  .reviews__track { grid-auto-columns: 100%; gap: 14px; }

  .reviews__nav--prev { left: 4px; }
  .reviews__nav--next { right: 4px; }

  /* Лента фото остаётся в одну линию, но листается по горизонтали */
  .highlights {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 138px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .highlight { scroll-snap-align: start; }
  .highlight figcaption { font-size: 11.5px; }

  .plan h2 { font-size: 22px; }

  .note--bonus { grid-template-columns: 1fr; gap: 10px; }
  .note--bonus li { padding-right: 0; }
  .note--bonus li s { position: static; margin-left: 6px; }
  .bonus__art { max-width: 140px; margin: 0 auto; }
  .bonus__total { margin-top: 10px; font-size: 17px; }

  .plan h3 { font-size: 19px; }

  .cta { flex-direction: column; }

  .cta .btn { width: 100%; }
}

/* ---------- Печать ---------- */
@media print {
  .topbar, .cta, .footer__links { display: none; }
  body { background: #fff; color: #000; font-size: 12pt; }
  .note { background: #f4f4f4; }
  a { color: #000; }
}
