:root {
  /* Палитра: белый как основа, нейтрали с холодным подтоном, один акцент — цвет логотипа Telegram */
  --page-bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f5f7f9;
  --line: #e3e8ec;
  --text-primary: #12171c;
  --text-secondary: #46515c;
  --text-muted: #7a8793;
  --accent: #229ed9;       /* Telegram */
  --accent-ink: #1479ad;   /* акцентный текст на белом, AA 4.9:1 */
  --accent-hover: #1a86ba;
  --accent-tint: #eaf5fb;
  --shadow: 0 1px 2px rgba(18, 23, 28, 0.04), 0 12px 32px rgba(18, 23, 28, 0.05);
  --font: "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--page-bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.page-shell {
  width: min(100%, 640px);
  margin: 0 auto;
  padding: 14px 14px 108px;
}

.hero,
.block {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  padding: 24px 22px;
}

.block {
  margin-top: 14px;
}

/* eyebrow — плоская, без плашки */
.eyebrow {
  margin: 0 0 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent);
  vertical-align: middle;
}

/* headings */
h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(1.4rem, 5.1vw, 2.25rem);
  line-height: 1.16;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.4rem, 4.6vw, 1.85rem);
  line-height: 1.18;
  margin-bottom: 16px;
}

h3 {
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.32;
}

/* text */
.lead {
  margin: 16px 0 0;
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.tagline {
  margin: 12px 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.nb {
  white-space: nowrap;
}

.promise {
  margin: 22px 0 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--accent-tint);
  font-size: 0.98rem;
  line-height: 1.52;
  color: var(--text-primary);
}

.promise strong {
  white-space: nowrap;
  color: var(--accent-ink);
}

/* expert */
.expert {
  margin-top: 26px;
}

.expert__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: center;
}

.expert__media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 16px;
  background: var(--surface-soft);
}

.expert__media.is-empty::before {
  content: attr(data-initial);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--text-muted);
}

.expert__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

.expert__name {
  margin: 0;
  font-size: clamp(1.35rem, 6vw, 1.8rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text-secondary);
}

.expert__points {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
  font-size: 0.94rem;
  line-height: 1.44;
  color: var(--text-secondary);
}

.expert__points li {
  padding-left: 16px;
  position: relative;
}

.expert__points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

/* cta — сплошной цвет, без градиента */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 56px;
  margin-top: 22px;
  padding: 14px 20px;
  border: 0;
  border-radius: 14px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font);
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  transition: background 160ms ease, transform 160ms ease;
}

.cta-button:hover,
.cta-button:focus-visible {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.cta-button:focus-visible {
  outline: 2px solid var(--text-primary);
  outline-offset: 3px;
}

.cta-button__icon {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.cta-button__icon svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* fact list — редакторский стиль, без «баблов» */
.fact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fact-list li {
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 0.97rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.fact-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.fact-list strong {
  color: var(--text-primary);
  font-weight: 800;
}

/* persona list */
.persona-list article {
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.persona-list article:last-child {
  border-bottom: 1px solid var(--line);
}

.persona-list h3 {
  margin-bottom: 10px;
}

.persona-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.persona-list li {
  position: relative;
  padding-left: 16px;
  font-size: 0.94rem;
  line-height: 1.44;
  color: var(--text-secondary);
}

.persona-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.6em;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--text-muted);
}

.persona-list__out {
  position: relative;
  margin: 12px 0 0;
  padding-left: 22px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--text-primary);
}

.persona-list__out::before {
  content: "\2192";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 800;
  color: var(--accent);
}

/* footer — в самом низу, после последней кнопки */
.footer {
  margin-top: 22px;
  padding: 4px 6px 0;
}

.footer__fineprint {
  margin: 0;
  font-size: 0.64rem;
  line-height: 1.45;
  text-align: justify;
  color: rgba(18, 23, 28, 0.42);
}

/* sticky cta */
.sticky-cta {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  z-index: 20;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.sticky-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.cta-button--sticky {
  margin-top: 0;
  min-height: 52px;
  box-shadow: 0 10px 28px rgba(34, 158, 217, 0.28);
}

@media (min-width: 640px) {
  .page-shell {
    padding: 26px 22px 120px;
  }

  .hero,
  .block {
    padding: 30px;
  }

  .expert__row {
    gap: 24px;
  }
}

@media (min-width: 900px) {
  .sticky-cta {
    display: none;
  }
}

/* кружок эксперта */
.vnote {
  position: fixed;
  left: 14px;
  bottom: 80px;
  z-index: 30;
  width: 168px;
  height: 168px;
  opacity: 0;
  transform: translateY(12px) scale(0.82);
  transition: opacity 260ms ease, transform 260ms ease;
  pointer-events: none;
}

.vnote.is-in {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.vnote.is-out {
  opacity: 0;
  transform: translateY(12px) scale(0.82);
  pointer-events: none;
}

.vnote__stage {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 3px solid #fff;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface-soft);
  box-shadow: 0 0 0 1px var(--line), 0 14px 34px rgba(18, 23, 28, 0.18);
  cursor: pointer;
}

.vnote.is-live .vnote__stage {
  border-color: var(--accent);
}

.vnote__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vnote__hint {
  position: absolute;
  right: 5px;
  bottom: 5px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
}

.vnote.is-live .vnote__hint {
  background: var(--accent);
}

.vnote__ico {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.vnote__close {
  position: absolute;
  top: -5px;
  right: -5px;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--text-primary);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vnote__close svg {
  width: 12px;
  height: 12px;
}

@media (min-width: 900px) {
  .vnote {
    left: 20px;
    bottom: 20px;
    width: 198px;
    height: 198px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vnote,
  .vnote.is-out {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .cta-button {
    transition: none;
  }
}

/* заглушка кружка, пока нет видео */
.vnote.is-empty .vnote__stage::before {
  content: "С";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.4rem;
  font-weight: 800;
  color: var(--accent-ink);
  background: var(--accent-tint);
}
.vnote.is-empty .vnote__video { display: none; }
.vnote__hint { z-index: 1; }

/* кейс ученика */
.case { display: grid; gap: 18px; align-items: center; }
.case__shot {
  width: min(100%, 260px);
  margin: 0 auto;
  height: auto;
  border-radius: 22px;
  box-shadow: 0 0 0 1px var(--line), var(--shadow);
}
.case__text p { margin: 0 0 10px; font-size: 0.96rem; line-height: 1.5; color: var(--text-secondary); }
.case__text .case__num { font-size: 1.15rem; font-weight: 800; color: var(--text-primary); }
.case__text .case__num .nb { color: var(--accent-ink); }
@media (min-width: 640px) {
  .case { grid-template-columns: 240px 1fr; gap: 28px; }
  .case__shot { margin: 0; }
}

.expert__row--solo { display: block; }
.expert__row--solo .expert__name { color: var(--text-primary); }

/* живая точка у eyebrow: мягкая пульсация-«волна» */
.eyebrow::before {
  position: relative;
  animation: eyebrow-pulse 2s ease-out infinite;
}
@keyframes eyebrow-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(34, 158, 217, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(34, 158, 217, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 158, 217, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .eyebrow::before { animation: none; }
}

.not-for { margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--surface-soft); font-size: 0.9rem; line-height: 1.5; color: var(--text-secondary); }
.not-for strong { color: var(--text-primary); }

.case-quote { margin-top: 22px; padding: 16px 18px; border-radius: 16px; background: var(--accent-tint); }
.case-quote p { margin: 0; font-size: 0.96rem; line-height: 1.5; color: var(--text-secondary); }
.case-quote .case-quote__num { margin-bottom: 6px; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; color: var(--text-primary); }
.case-quote .case-quote__num .nb { color: var(--accent-ink); }

.case-vid { position: relative; display: block; width: 168px; height: 168px; margin: 0 auto 16px; padding: 0; border: 3px solid #fff; border-radius: 50%; overflow: hidden; background: var(--surface-soft); box-shadow: 0 0 0 1px var(--line), 0 10px 26px rgba(18, 23, 28, 0.14); cursor: pointer; }
.case-vid video { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-vid__play { position: absolute; right: 8px; bottom: 8px; width: 38px; height: 38px; border-radius: 50%; background: var(--accent); }
.case-vid__play::before { content: ""; position: absolute; left: 15px; top: 11px; border-left: 12px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.case-vid.is-playing .case-vid__play { display: none; }
@media (min-width: 640px) { .case-vid { margin: 0 0 16px; } }

/* кружок всегда на экране, но компактный: кнопка остаётся нажимаемой */
.vnote { width: 96px; height: 96px; left: 12px; bottom: 76px; }
.vnote__hint { width: 26px; height: 26px; right: 2px; bottom: 2px; }
.vnote__hint .vnote__ico { width: 15px; height: 15px; }
@media (min-width: 900px) { .vnote { width: 198px; height: 198px; left: 20px; bottom: 20px; } }
