/* ============================================================
   JOIN — landing v2
   Тёмный hero + светлое тело в стиле приложения JOIN:
   белые карточки, мягкие тени, оранжевый акцент, пилюли.
   Mobile-first, без сборки и внешних зависимостей.
   ============================================================ */

/* Manrope, переменный шрифт с весами 400–800. Лицензия SIL OFL 1.1 лежит
   рядом: assets/fonts/OFL.txt. Файлы и unicode-range взяты с Google Fonts,
   только латиница и кириллица: других символов на странице нет. */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg:          #ffffff;
  --surface:     #ffffff;
  --surface-2:   #f4f6fa;   /* внутренние панели/плитки */
  --surface-3:   #e9edf3;

  --ink:         #14181f;   /* заголовки */
  --ink-2:       #434b5a;   /* основной текст */
  --muted:       #8b93a2;   /* вторичный */
  --line:        #e2e6ee;   /* границы */
  --line-2:      #edf0f5;   /* лёгкие разделители */

  --accent:      #f28c28;   /* тот же оранжевый, что в приложении JOIN */
  --accent-press:#d96f0f;
  --accent-soft: #fff0e0;
  --accent-ink:  #b15d11;

  --green:       #15a05a;

  /* тёмная палитра (hero, финальный CTA, навигация) */
  --dark-bg:     #0f1318;
  --dark-text:   #aab3c2;
  --dark-muted:  #8a93a5;

  --radius-lg:   22px;

  --shadow-sm:   0 1px 2px rgba(20, 24, 31, .05);
  --shadow-pop:  0 16px 40px -20px rgba(20, 24, 31, .28);
  --ring:        0 0 0 3px rgba(242, 129, 30, .25);

  --maxw:        1120px;
  --text-maxw:   720px;
  --font: "Manrope", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: Consolas, "SFMono-Regular", Menlo, Monaco, "Courier New", monospace;
}

/* ───────────── База ───────────── */
* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  scrollbar-width: none;
}
html.is-dragging-scrollbar { scroll-behavior: auto; }
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  background: transparent;
}
html::-webkit-scrollbar-button,
body::-webkit-scrollbar-button {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
body {
  margin: 0; font-family: var(--font); color: var(--ink-2);
  background: var(--bg);
  line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
button, input, textarea, select { font-family: var(--font); }
h1, h2, h3 { color: var(--ink); line-height: 1.14; letter-spacing: -.015em; margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
::selection { background: #ffd9af; color: var(--ink); }

/* Кастомный скролл страницы — геометрия и состояния как в редакторе «Студии» JOIN. */
.landing-scrollbar {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 90;
  width: 20px;
  pointer-events: none;
}
.landing-scrollbar[hidden] { display: none; }
.landing-scrollbar__thumb {
  position: absolute;
  top: 0;
  right: 7px;
  width: 6px;
  border-radius: 999px;
  background: rgba(102, 112, 133, .58);
  cursor: grab;
  pointer-events: auto;
}
.landing-scrollbar__thumb:hover,
.landing-scrollbar__thumb:active {
  background: rgba(102, 112, 133, .74);
}
.landing-scrollbar__thumb:active { cursor: grabbing; }

/* ───────────── Бренд ───────────── */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { font-family: "Segoe UI Black", "Segoe UI", sans-serif; font-weight: 800; font-size: 21px; letter-spacing: -0.03em; color: var(--ink); }

.logomark {
  display: block; width: 28px; height: 28px;
  box-shadow: none; flex: none;
}
.brand--footer .logomark { width: 38px; height: 38px; }
.brand--footer .brand__mark { font-size: 2.35rem; line-height: 1; }

/* ───────────── Плавающая навигация ───────────── */
.nav {
  position: fixed; top: 12px; left: 0; right: 0; z-index: 40;
  display: flex; justify-content: center; padding: 0 12px;
  pointer-events: none;
  /* скрыта, пока пользователь в hero; выезжает сверху при прокрутке дальше */
  transform: translateY(-140%);
  opacity: 0;
  visibility: hidden;
  transition: transform .4s cubic-bezier(.22, .61, .36, 1), opacity .35s ease, visibility 0s .4s;
}
.nav.is-visible,
.nav:focus-within { transform: translateY(0); opacity: 1; visibility: visible; transition-delay: 0s; }
.nav__pill {
  pointer-events: auto;
  width: min(1080px, 100%);
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px 8px 16px;
  background: rgba(15, 19, 24, .8);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  box-shadow: 0 12px 32px -16px rgba(5, 8, 12, .6);
}
.nav .brand__mark { color: #fff; }
.nav__links { display: none; }
.nav__menu-link {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  color: #c3cad6;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  padding: 10px 13px;
  border-radius: 999px;
  white-space: nowrap;
  transition: color .15s, background .15s;
}
.nav__menu-link:hover,
.nav__menu-link:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, .07);
  outline: none;
}
.nav__cta { margin-left: 0; }
/* CTA в навигации — плоский оранжевый, без орео-свечения
   (специфичнее, чем .btn--primary, поэтому переопределяет его тень) */
.nav__pill .nav__cta { box-shadow: none; }

/* ───────────── Кнопки ───────────── */
.btn {
  --pad: 11px 18px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: var(--pad); border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 15px; line-height: 1;
  cursor: pointer; border: 1px solid transparent;
  transition: background .16s ease, border-color .16s ease, color .15s, transform .08s;
  white-space: nowrap;
}
.btn--primary { color: #fff; background: var(--accent); box-shadow: 0 6px 20px -8px rgba(242, 129, 30, .6); }
.btn--primary:hover { background: var(--accent-press); }
.btn--primary:active { transform: translateY(1px); }
.btn--dark { color: #fff; background: rgba(255, 255, 255, .07); border-color: rgba(255, 255, 255, .16); }
.btn--dark:hover { border-color: rgba(255, 255, 255, .34); }
.btn--lg { --pad: 15px 28px; font-size: 16px; }
.btn--sm { --pad: 9px 16px; font-size: 14px; }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }

/* ───────────── Секции ───────────── */
.section { max-width: var(--maxw); margin: 0 auto; padding: 56px 18px; }
.section__head { max-width: var(--text-maxw); margin: 0 0 32px; }
.section__sub { color: var(--muted); font-size: 17px; margin: 0; }

.section__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  font-size: inherit;
  line-height: 1;
  letter-spacing: 0;
}

.section-chip {
  display: inline-flex;
  flex-shrink: 0;
  /* Допуск на округление размеров: доля пикселя не должна добавлять строку. */
  max-width: calc(100% + 1px);
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  white-space: normal;
  text-align: center;
}

.section-chip--accent {
  color: #b95f08;
  background: rgba(242, 140, 40, .12);
  border-color: rgba(242, 140, 40, .16);
}

.section-chip--muted {
  color: #667085;
  background: #f8fafc;
  border-color: #eaecf0;
}

/* ───────────── Пилюли / чипы / прогресс ───────────── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pill {
  font-size: 13px; font-weight: 700; color: var(--ink-2);
  background: var(--surface-2); border: 1px solid var(--line);
  padding: 5px 12px; border-radius: 999px; white-space: nowrap;
}
.pill--accent { background: var(--accent-soft); color: var(--accent-ink); border-color: #f7dcc1; }

.progress { height: 8px; background: var(--surface-3); border-radius: 999px; overflow: hidden; }
.progress span {
  display: block; height: 100%; border-radius: 999px; background: var(--accent);
  transition: width .48s cubic-bezier(.22, .72, .24, 1);
}

/* ───────────── Hero (тёмный) ───────────── */
.hero {
  position: relative;
  width: calc(100% - 36px); max-width: var(--maxw); margin: 0 auto;
  background: #05070a; /* чёрный фон под световые лучи */
  color: var(--dark-text);
  border-radius: 0 0 26px 26px;
  overflow: hidden;
}
.hero__inner { max-width: var(--maxw); margin: 0 auto; padding: 18px 18px 8px; position: relative; z-index: 1; }
.hero__grid { display: grid; grid-template-columns: 1fr; }

/* ───────────── Световые лучи hero ───────────── */
.light-rays-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: .45; /* интенсивность лучей — крути здесь */
}
.light-rays-canvas { display: block; width: 100%; height: 100%; }
.light-rays-fallback {
  position: absolute; inset: 0; display: none;
  background: radial-gradient(58% 46% at 50% -6%,
    rgba(255, 255, 255, .16), rgba(255, 255, 255, .05) 40%, transparent 70%);
}
.light-rays-bg.is-fallback .light-rays-canvas { display: none; }
.light-rays-bg.is-fallback .light-rays-fallback { display: block; }
.hero__copy { max-width: 720px; margin: 0 auto; text-align: center; }

.hero__title {
  position: relative;
  color: #fff; font-size: clamp(28px, 4.8vw, 38px); font-weight: 800;
  letter-spacing: -.02em; line-height: 1.16; margin: 0 0 18px;
  min-height: 2.35em; /* резерв под две строки: без прыжка макета при печати */
}
.title-line { display: block; }
.title-line--bridge,
.title-line--bridge .tw-settled {
  background: linear-gradient(92deg, #fff 0%, #fff 18%, #ffe2c3 72%, #ffb15e 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.title-line--accent,
.title-line--accent .tw-settled {
  background: linear-gradient(92deg, #ffb15e, var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Полный заголовок сохраняет размер и доступность; печать рисуется поверх. */
.hero__title.is-typing > .hero__title-line { opacity: 0; }
.hero__typing-layer { position: absolute; inset: 0; pointer-events: none; }
.tw-caret {
  display: inline-block;
  width: 0.34em;
  height: 1.02em;
  margin-left: 0.06em;
  vertical-align: -0.14em;
  background: var(--accent);
  border-radius: 2px;
}

.hero__lead { color: var(--dark-text); font-size: 17.5px; max-width: 580px; margin: 0 auto 26px; }

.hero__nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  gap: 12px;
}
.hero__nav-row {
  display: contents;
}
.hero__nav-row .btn {
  --pad: 0 22px;
  width: 100%; max-width: 100%; height: 46px; min-width: 0;
  font-size: 15px;
}
/* hero-кнопка «Открыть JOIN» — плоская, без орео-свечения */
.hero__nav .btn--primary { box-shadow: none; }
.hero__facts { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin: 26px 0 0; padding: 0; }
.hero__facts li { display: inline-flex; align-items: center; gap: 7px; color: var(--dark-muted); font-size: 14px; font-weight: 600; }
.hero__facts li svg { color: var(--accent); flex: none; }

/* ───────────── Карточка кейса ───────────── */
.case {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop); overflow: hidden;
}
.case__head { padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.case__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 8px; margin-bottom: 12px; }
.case__topic { font-variant-numeric: normal; }
.case__count { font-variant-numeric: tabular-nums; }
.case__body { padding: 18px 20px 20px; }

/* Вопрос, варианты и разбор повторяют компоненты практики JOIN. */
.case__prompt { display: grid; gap: 10px; margin: 0; color: #667085; }
.chips + .case__prompt { margin-top: 12px; }
.case__prompt + .option-list { margin-top: 14px; }
.task-prompt { color: #667085; font-size: .94rem; line-height: 1.52; font-weight: 400; }

.markdown-text { display: grid; gap: 8px; min-width: 0; color: inherit; overflow-wrap: anywhere; }
.markdown-text-task { gap: 10px; }
.markdown-text-heading { margin: 0; color: #101828; font-size: .86rem; line-height: 1.3; letter-spacing: 0; font-weight: 700; }
.markdown-text-paragraph { margin: 0; color: inherit; font-size: .94rem; line-height: 1.58; letter-spacing: 0; font-weight: 400; }
.markdown-text-list { display: grid; gap: 6px; margin: 0; padding-left: 18px; color: inherit; }
.markdown-text-list-item { margin: 0; padding-left: 2px; color: inherit; font-size: .94rem; line-height: 1.52; letter-spacing: 0; }
.markdown-text-code {
  display: inline; padding: 1px 5px 2px;
  border: 1px solid rgba(15, 23, 42, .08); border-radius: 6px;
  background: rgba(15, 23, 42, .045); color: #344054;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: .92em; line-height: 1.4;
  /* Не разрывать числовые группы с NBSP, даже если соседний текст переносится. */
  overflow-wrap: normal; word-break: normal;
}
.markdown-text-strong { color: #101828; font-weight: 700; }
.markdown-text-inline,
.markdown-text-inline .markdown-text-heading,
.markdown-text-inline .markdown-text-paragraph,
.markdown-text-inline .markdown-text-list,
.markdown-text-inline .markdown-text-list-item { display: block; }
.markdown-text-option { gap: 5px; text-align: left; }
.markdown-text-option .markdown-text-heading { font-size: .78rem; }
.markdown-text-option .markdown-text-paragraph,
.markdown-text-option .markdown-text-list-item { font-size: .92rem; line-height: 1.36; }
.markdown-text-inline .markdown-text-list { gap: 4px; padding-left: 0; }
.markdown-text-inline .markdown-text-list-item { position: relative; padding-left: 14px; }
.markdown-text-inline .markdown-text-list-item::before {
  position: absolute; top: .72em; left: 2px; width: 4px; height: 4px;
  border-radius: 999px; background: currentColor; content: ""; opacity: .45;
}

.option-list { display: grid; gap: 5px; }
.option-button {
  position: relative; width: 100%; min-height: 46px; padding: 10px 12px;
  border: 1px solid #e4e7ec; border-radius: 14px; background: var(--surface);
  color: #101828; text-align: left; font: inherit; cursor: pointer;
  box-shadow: none; backdrop-filter: none;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}
.option-button:hover:not(:disabled),
.option-button:focus-visible { border-color: rgba(242, 140, 40, .18); background: #f8fafc; box-shadow: none; }
.option-button:focus-visible { outline: 2px solid rgba(242, 140, 40, .24); outline-offset: 2px; }
.option-button.selected { border-color: rgba(242, 140, 40, .26); background: rgba(242, 140, 40, .035); color: #101828; }
.option-button.idle-muted { border-color: #eaecf0; background: rgba(255, 255, 255, .98); color: #475467; }
.option-button:disabled { cursor: default; opacity: 1; }
.option-button.checked-correct { border-color: rgba(22, 163, 74, .18); background: rgba(22, 163, 74, .045); color: #101828; }
.option-button.checked-wrong { border-color: rgba(220, 38, 38, .14); background: rgba(220, 38, 38, .04); color: #101828; }
.option-button.checked-muted { border-color: #eaecf0; background: rgba(248, 250, 252, .9); color: #475467; }
.option-button-content { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; }
.option-text { flex: 1 1 auto; min-width: 0; font-size: .92rem; line-height: 1.32; letter-spacing: -.01em; }
.option-indicator {
  display: inline-grid; place-items: center; flex: 0 0 auto;
  width: 18px; min-width: 18px; height: 18px; padding: 0;
  border: 1.5px solid rgba(152, 162, 179, .5); border-radius: 999px;
  background: rgba(248, 250, 252, .92); color: #667085;
}
.option-indicator-idle { border-color: rgba(152, 162, 179, .52); background: rgba(248, 250, 252, .92); }
.option-indicator-selected { border-color: var(--accent); background: var(--accent); color: #fff; }
.option-indicator-correct { border-color: rgba(22, 163, 74, .34); background: rgba(22, 163, 74, .9); color: transparent; }
.option-indicator-wrong { border-color: rgba(220, 38, 38, .28); background: rgba(220, 38, 38, .82); color: transparent; }
.option-indicator-muted { border-color: rgba(208, 213, 221, .92); background: rgba(248, 250, 252, .88); color: #98a2b3; }

[data-feedback-slot] { margin-top: 12px; }
.feedback { display: grid; gap: 10px; padding: 10px 12px; border: 1px solid rgba(15, 23, 42, .06); border-radius: 10px; }
.feedback-header { display: block; }
.feedback-title { margin: 0; color: #101828; font-size: .91rem; line-height: 1.3; letter-spacing: -.01em; font-weight: 600; }
.markdown-text-feedback { gap: 7px; color: #667085; }
.feedback .markdown-text-heading { color: #101828; font-size: .82rem; }
.feedback .markdown-text-paragraph,
.feedback .markdown-text-list-item { color: #667085; font-size: .87rem; line-height: 1.5; }
.feedback-correct { background: rgba(22, 163, 74, .045); border-color: rgba(22, 163, 74, .18); }
.feedback-wrong { background: rgba(220, 38, 38, .04); border-color: rgba(220, 38, 38, .14); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.case__foot {
  display: grid; grid-template-columns: 1fr; justify-items: center; gap: 12px;
  margin: 18px -20px -20px; padding: 16px 20px 20px; min-height: 36px;
  border-top: 1px solid var(--line-2);
}
.case__check { width: 100%; min-height: 48px; padding: 0 16px; border-radius: 14px; letter-spacing: -.01em; box-shadow: none; }
.case__check:disabled { background: #d0d5dd; border-color: #d0d5dd; color: #fff; cursor: default; opacity: 1; transform: none; }

/* Общая рамка карточек и мягкая заливка информационных панелей. */
.animated-border {
  position: relative;
  display: grid; grid-template-columns: 1fr; gap: 0;
  border: 1px solid #d9dee8; border-radius: 8px;
}
.animated-border::before {
  content: ""; position: absolute; z-index: 2; pointer-events: none;
  inset: -2px; padding: 2px; border-radius: 9px;
  background: conic-gradient(
    from var(--cycle-border-angle),
    transparent 0deg 292deg,
    rgba(242, 140, 40, 0) 300deg,
    #ffad5b 320deg,
    var(--accent) 338deg,
    rgba(242, 140, 40, 0) 358deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: cycle-border-run 5.6s linear infinite;
}
.warm-panel {
  background: linear-gradient(112deg, #fff8f0 0%, #fff 30%, #fff1e2 50%, #fff 70%, #fff8f0 100%);
  background-size: 220% 100%;
  border: 1px solid #d9dee8; border-radius: 8px;
  animation: daily-gradient-shift 9s ease-in-out infinite;
}
.meta-row { display: flex; align-items: center; gap: 10px; }
.meta-row::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.meta-accent {
  font-family: var(--mono); color: var(--accent-press);
  font-size: 13px; font-weight: 800; letter-spacing: .08em;
}
.meta-accent--label { text-transform: uppercase; }
.meta-kicker {
  color: #7c8595; font-size: 11px; font-weight: 800;
  letter-spacing: .08em; text-transform: uppercase;
}

/* ───────────── Для кого ───────────── */
#who { padding-top: 0; }
.section__lead {
  max-width: 780px; color: #667085; font-size: 17.5px;
  font-weight: 400; line-height: 1.6;
}
.who, .topicslist { overflow: visible; background: #fff; }
.who__card {
  position: relative; min-width: 0; padding: 24px;
  background: transparent; border: 0; border-bottom: 1px solid var(--line-2);
}
.who__card:last-child { border-bottom: 0; }
.who__meta { margin-bottom: 26px; }
.who__card h3 { font-size: 19px; line-height: 1.3; margin-bottom: 9px; }
.who__card p { max-width: 350px; color: #667085; font-size: 14.5px; line-height: 1.6; margin: 0; }
.fit-check {
  display: grid; grid-template-columns: 1fr; gap: 0;
  margin-top: 22px; overflow: hidden;
}
.fit-check__item {
  display: block;
  padding: 20px; background: transparent; border-bottom: 1px solid var(--line-2);
}
.fit-check__item:last-child { border-bottom: 0; }
.fit-check__mark {
  display: grid; place-items: center; width: 18px; height: 18px; flex: none;
  color: #667085;
}
.fit-check__item--yes .fit-check__mark { color: var(--green); }
.fit-check__item--no .fit-check__mark { color: #d92d20; }
.fit-check__item strong { color: var(--ink); font-size: 14px; white-space: nowrap; }
.fit-check__item > p { margin: 14px 0 0; color: #667085; font-size: 13.5px; line-height: 1.5; }

/* ───────────── Тренировочный цикл ───────────── */
.section__lead--muted { color: var(--muted); }
.cycle { list-style: none; margin: 0; padding: 0; }
.cycle__step {
  position: relative; padding: 24px;
  background: transparent; border-bottom: 1px solid var(--line-2);
}
.cycle__step:last-child { border-bottom: 0; }
.cycle__meta { margin-bottom: 30px; }
.cycle__step h3 { font-size: 19px; line-height: 1.3; margin-bottom: 9px; }
.cycle__step p { max-width: 340px; color: #667085; font-size: 14.5px; line-height: 1.6; margin: 0; }
.how-note {
  display: block; margin-top: 22px; padding: 24px;
  color: var(--ink);
  box-shadow: 0 14px 30px -30px rgba(42, 52, 70, .32);
}
.how-note__copy { display: flex; flex-direction: column; gap: 12px; }
.how-note__copy > span { max-width: 850px; color: #667085; font-size: 14.5px; line-height: 1.55; }
.how-note__facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 2px; }
.how-note__facts span {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--ink-2); font-size: 12.5px; font-weight: 700;
}
.how-note__facts svg { width: 16px; height: 16px; flex: none; color: var(--accent); }

@property --cycle-border-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes cycle-border-run {
  to { --cycle-border-angle: 360deg; }
}

@keyframes daily-gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ───────────── Направления ───────────── */
#topics { padding-top: 0; }
.topiccard {
  position: relative; display: block; min-width: 0; padding: 24px;
  background: transparent; border: 0; border-bottom: 1px solid var(--line-2);
}
.topiccard:last-child { border-bottom: 0; }
.topiccard__meta { margin-bottom: 22px; }
.topiccard__text { min-width: 0; }
.topiccard h3 { font-size: 19px; line-height: 1.3; margin-bottom: 7px; }
.topiccard p { max-width: 470px; color: #667085; font-size: 14.5px; line-height: 1.6; margin: 0; }
.practice-format {
  display: block; margin-top: 22px; padding: 24px; overflow: hidden;
  color: var(--ink);
}
.practice-format__intro h3 { line-height: 1.3; }
.practice-format__list {
  list-style: none; display: grid; grid-template-columns: 1fr;
  gap: 0; margin: 20px 0 0; padding: 0;
}
.practice-format__list li {
  display: flex; flex-direction: column; gap: 3px; min-width: 0;
  padding: 14px 0; background: transparent; border-top: 1px solid var(--line-2);
}
.practice-format__list li:first-child { border-top: 0; padding-top: 0; }
.practice-format__list li:last-child { padding-bottom: 0; }
.practice-format__list strong { color: var(--ink); font-size: 15px; }
.practice-format__list span { color: #667085; font-size: 12.5px; line-height: 1.4; }

/* ───────────── Демо с табами ───────────── */
.section.section--demo { padding-top: 0; }
.tabs {
  position: relative;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 0 28px; overflow: visible;
  background: #fff; border: 1px solid #d9dee8; border-radius: 8px;
}
.tab {
  position: relative; display: flex; align-items: center; gap: 10px; min-width: 0;
  padding: 18px 16px; font: inherit; text-align: left; color: #7c8595;
  background: #fff; border: 0; border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line); cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.tab:nth-child(2n) { border-right: 0; }
.tab:nth-of-type(n + 3) { border-bottom: 0; }
.tab:nth-of-type(1) { border-radius: 7px 0 0 0; }
.tab:nth-of-type(2) { border-radius: 0 7px 0 0; }
.tab:nth-of-type(3) { border-radius: 0 0 0 7px; }
.tab:nth-of-type(4) { border-radius: 0 0 7px 0; }
.tab:hover { background: #fffaf5; }
.tab.is-active { color: var(--ink); background: #fff; }
.tab:focus-visible { z-index: 1; outline: none; box-shadow: inset var(--ring); }
.tab__num {
  flex: none; font-family: var(--mono); color: var(--accent-press);
  font-size: 12px; font-weight: 800; letter-spacing: .08em;
}
.tab__label {
  min-width: 0; font-size: 13px; font-weight: 800; line-height: 1.3;
  letter-spacing: .025em;
  overflow-wrap: anywhere;
}
.tabs__indicator {
  position: absolute; z-index: 3; left: 0; top: 0;
  box-sizing: border-box; width: 0; height: 0;
  border: 2px solid var(--accent); border-radius: 0; box-shadow: none;
  pointer-events: none; will-change: transform, width, height;
}
.tabs__indicator.is-ready {
  transition:
    transform .34s cubic-bezier(.22, .72, .24, 1),
    width .34s cubic-bezier(.22, .72, .24, 1),
    height .34s cubic-bezier(.22, .72, .24, 1),
    border-radius .22s ease;
}
.demo__stage {
  display: block;
}
.demo__panels { min-width: 0; }
.demo__controls {
  display: flex; align-items: center; justify-content: center;
  gap: 10px; margin: 0;
}
.demo-nav {
  display: grid; place-items: center; width: 48px; height: 48px;
  color: var(--ink-2); background: #fff; border: 1px solid #d9dee8;
  border-radius: 50%; box-shadow: 0 8px 22px -16px rgba(42, 52, 70, .65);
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease, background .16s ease, opacity .16s ease;
}
.demo-nav:hover:not(:disabled) {
  color: var(--accent-press); background: #fff8f0;
  border-color: rgba(242, 140, 40, .42);
}
.demo-nav:focus-visible { outline: none; box-shadow: var(--ring); }
.demo-nav:disabled { opacity: .28; cursor: default; box-shadow: none; }
.demo__panel[hidden] { display: none; }
.demo__panel .case { max-width: 620px; margin: 0 auto; }

@media (min-width: 760px) {
  .tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tab { min-height: 76px; padding: 20px; border-bottom: 0; }
  .tab:nth-of-type(n) { border-radius: 0; }
  .tab:first-of-type { border-radius: 7px 0 0 7px; }
  .tab:last-of-type { border-radius: 0 7px 7px 0; }
  .tab:nth-child(2n) { border-right: 1px solid var(--line); }
  .tab__label { font-size: 13.5px; }
}

/* ───────────── FAQ ───────────── */
#faq { padding-top: 0; }
.faq { width: 100%; max-width: none; display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  width: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq__item[open] {
  border-color: rgba(242, 140, 40, .28);
  box-shadow: 0 8px 22px rgba(242, 140, 40, .06);
}
.faq__item summary {
  padding: 16px 18px; cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-weight: 800; color: var(--ink); font-size: 15.5px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; color: var(--muted); font-size: 22px; font-weight: 500; line-height: 1;
  transition: color .2s ease, transform .2s ease; flex: none;
}
.faq__item[open] summary::after { color: var(--accent); transform: rotate(45deg); }
.faq__answer { overflow: hidden; }
.faq__item p { margin: 0; padding: 0 18px 16px; color: var(--ink-2); font-size: 15px; }
.alpha-cta {
  display: grid; grid-template-columns: 1fr; gap: 24px;
  margin-top: 26px; padding: 30px 24px;
  background:
    radial-gradient(520px 240px at 88% -30%, rgba(242, 129, 30, .24), transparent 62%),
    var(--dark-bg);
  border-radius: 22px; box-shadow: var(--shadow-pop);
}
.alpha-cta h3 {
  max-width: 580px; margin: 0 0 12px;
  font-size: clamp(23px, 3vw, 31px); font-weight: 800; line-height: 1.2; letter-spacing: -.02em;
  color: #fff;
}
.alpha-cta p { max-width: 580px; margin: 0; color: var(--dark-text); font-size: 17.5px; }
.alpha-cta__actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.alpha-cta__actions .btn { width: 100%; }
/* Нижняя кнопка «Открыть JOIN» остаётся плоской во всех состояниях. */
.alpha-cta__actions .btn--primary { box-shadow: none; filter: none; }
.alpha-cta__actions .btn--primary:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .86);
  outline-offset: 3px;
  box-shadow: none;
}

/* ───────────── Подвал ───────────── */
.footer { border-top: 1px solid var(--line); background: var(--surface); }
.footer__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  width: calc(100% - 36px); max-width: calc(var(--maxw) - 36px);
  margin: 0 auto; padding: 24px 0;
}
.footer__meta {
  margin: 0 0 0 auto; color: var(--muted); font-size: 14px;
  text-align: left; white-space: nowrap;
}

@media (max-width: 680px) {
  .footer__inner { align-items: flex-start; flex-direction: column; gap: 12px; }
  .footer__meta { margin-left: 0; white-space: normal; }
}

@media (min-width: 640px) {
  .footer__inner {
    width: calc(100% - 48px);
    max-width: calc(var(--maxw) - 48px);
  }
}

/* ───────────── Появление при скролле ───────────── */
.reveal.reveal-pending { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.reveal-pending.in { opacity: 1; transform: none; }

/* ───────────── Адаптив: планшет и шире ───────────── */
@media (min-width: 640px) {
  .section { padding: 72px 24px; }
  .hero__inner { padding: 18px 24px 8px; }

  .who { grid-template-columns: 1fr; }
  .fit-check { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fit-check__item { border-bottom: 0; }
  .fit-check__item + .fit-check__item { border-left: 1px solid var(--line-2); }
  .topicslist { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topiccard:nth-child(odd) { border-right: 1px solid var(--line-2); }
  .topiccard:nth-last-child(-n + 2) { border-bottom: 0; }
  .cycle { gap: 0; }
  .how-note { padding: 26px; }
}

@media (max-width: 420px) {
  .nav__pill { gap: 6px; padding-left: 8px; padding-right: 8px; }
  .nav .brand__mark { display: none; }
  .nav__menu-link { padding: 9px 10px; font-size: 13.5px; }
  .nav__cta { --pad: 8px 12px; font-size: 13.5px; }

  .hero__title { min-height: 4.7em; }

  .practice-format__list { grid-template-columns: 1fr; }
  .alpha-cta { padding: 26px 20px; }

  .section__chips {
    gap: 6px;
    margin-bottom: 18px;
    max-width: 100%;
  }

  .section-chip {
    min-height: 40px;
    padding: 9px 8px;
    font-size: 15px;
  }

  .hero__nav { gap: 8px; }

  .hero__nav-row .btn {
    --pad: 0 10px;
    height: 42px;
    font-size: 13.5px;
  }
}

@media (max-width: 340px) {
  .hero__title { min-height: 5.85em; }

  .hero__nav { grid-template-columns: 1fr; }
}

/* ───────────── Адаптив: desktop ───────────── */
@media (min-width: 960px) {
  .section { padding: 88px 24px; }
  .hero__inner { padding: 18px 24px 12px; }

  .nav__pill { gap: 16px; }
  .nav__menu-link { display: none; }
  .nav__links { display: flex; gap: 4px; margin-left: auto; }
  .nav__links a {
    color: #c3cad6; font-size: 14.5px; font-weight: 600;
    padding: 8px 13px; border-radius: 999px;
    transition: color .15s, background .15s;
  }
  .nav__links a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
  .nav__cta { margin-left: 6px; }

  .cycle { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .cycle__step { padding: 30px 28px 28px; border-bottom: 0; border-right: 1px solid var(--line); }
  .cycle__step:last-child { border-right: 0; }
  .how-note { padding: 28px; }
  .cycle__step h3 { font-size: 19px; }
  .cycle__step p { font-size: 14.5px; }

  .who { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .who__card { border-bottom: 0; border-right: 1px solid var(--line-2); }
  .who__card:last-child { border-right: 0; }
  .practice-format { padding: 24px; }
  .practice-format__list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .practice-format__list li {
    padding: 0 8px; border-top: 0; border-left: 1px solid var(--line-2);
  }
  .practice-format__list span { font-size: 11px; white-space: nowrap; }
  .practice-format__list li:first-child { padding: 0 8px 0 0; border-left: 0; }
  .practice-format__list li:last-child { padding: 0 0 0 8px; }
  .alpha-cta { grid-template-columns: 1fr auto; align-items: center; padding: 36px; }
  .alpha-cta__actions { min-width: 220px; }
}

@media (min-width: 1200px) {
  .practice-format__list li { padding: 0 14px; }
  .practice-format__list li:first-child { padding: 0 14px 0 0; }
  .practice-format__list li:last-child { padding: 0 0 0 14px; }
  .practice-format__list span { font-size: 12.5px; }
}

/* ───────────── Меньше движения ───────────── */
@media (forced-colors: active) {
  .brand__mark.join-brand-word { -webkit-text-fill-color: LinkText; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal.reveal-pending { opacity: 1; transform: none; transition: none; }
  .btn, .option-button, .who__card, .topiccard, .tab, .tabs__indicator.is-ready, .demo-nav, .progress span { transition: none; }
  .animated-border::before, .warm-panel { animation: none; }
  .nav { transition: none; }
  .faq__item, .faq__item summary::after { transition: none; }
}
