/* Page-level helpers on top of colors_and_type.css */

* { box-sizing: border-box; }

/* fs:image-guard:start */
/* Anti-save: запрет drag/сохранения изображений. СГЕНЕРИРОВАНО из
   frontend/scripts/image_guard.mjs (там же всё обоснование) — руками не править.
   Обновить: node scripts/sync_image_guard.mjs. Контракт: src/lib/imageGuard.test.ts */
img,
picture {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
}
img,
picture,
svg {
  -webkit-user-drag: none;
  user-drag: none;
}
[data-fs-saveable] img,
[data-fs-saveable] picture {
  -webkit-touch-callout: default;
  -webkit-user-select: auto;
  -moz-user-select: auto;
  user-select: auto;
  -webkit-user-drag: element;
  user-drag: element;
}
/* fs:image-guard:end */

.fs-landing-skeleton {
  min-height: 100vh;
  padding: clamp(18px, 5vw, 56px);
  background:
    radial-gradient(640px 360px at 50% -120px, rgba(60,195,106,0.16), transparent 72%),
    var(--surface-1);
}

.fs-landing-skeleton__bar,
.fs-landing-skeleton__hero {
  max-width: 1280px;
  margin: 0 auto;
  border: 1px solid rgba(15,27,45,0.08);
  background: rgba(15,27,45,0.05);
  box-shadow: 0 22px 54px -34px rgba(15,27,45,0.18);
}

.fs-landing-skeleton__bar {
  height: 72px;
  border-radius: 18px;
}

.fs-landing-skeleton__hero {
  height: clamp(260px, 58vh, 560px);
  margin-top: clamp(22px, 5vw, 56px);
  border-radius: 28px;
}

.page {
  width: 1440px;
  background: white;
  color: var(--ink-900);
  font-family: var(--font-sans);
  overflow: hidden;
}

.section {
  width: 1440px;
  padding: 96px 80px;
}
.section--tight { padding: 64px 80px; }
.section--alt { background: var(--surface-1); }
.section--dark { background: var(--ink-900); color: white; }

.container { max-width: 1280px; margin: 0 auto; }

/* ============================================================
   Fundstate Header V5 (brand navy)
   Imported from the designer export and adapted to the shared
   React Header component used by all public landing pages.
   ============================================================ */
:root {
  --fsh-stone: var(--ink-900);
  --fsh-cream: #FFFFFF;
  --fsh-cream-mid: rgba(255,255,255,0.76);
  --fsh-gold: var(--green-500);
  --fsh-gold-soft: var(--green-400);
  --fsh-gold-bright: var(--green-300);
  --fsh-line: rgba(60,195,106,0.24);
  --fsh-ease: cubic-bezier(0.2, 0, 0, 1);
}

.fs-header {
  position: relative;
  padding: 0 clamp(24px, 6vw, 80px);
  background:
    radial-gradient(680px 220px at 84% -52%, rgba(60,195,106,0.16), transparent 72%),
    var(--fsh-stone);
  border-bottom: 1px solid var(--fsh-line);
  font-family: var(--font-sans), 'Open Sans', system-ui, sans-serif;
}

.fs-header--sticky {
  position: sticky;
  top: 0;
  z-index: 100;
}

.fs-header__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 0;
  display: flex;
  align-items: center;
  gap: 52px;
}

.fs-header__logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.fs-header__logo img {
  height: 34px;
  width: auto;
  display: block;
}

.fs-header__nav,
.fs-header__mobile-nav {
  align-items: center;
}

.fs-header__nav {
  display: flex;
  gap: 32px;
}

.fs-header__nav a,
.fs-header__mobile-nav a {
  position: relative;
  font-size: 15.5px;
  font-weight: 400;
  color: var(--fsh-cream-mid);
  text-decoration: none;
  padding: 4px 0;
  white-space: nowrap;
  transition: color 140ms var(--fsh-ease);
}

.fs-header__nav a:hover,
.fs-header__nav a[aria-current="page"],
.fs-header__mobile-nav a:hover,
.fs-header__mobile-nav a[aria-current="page"] {
  color: var(--fsh-cream);
}

.fs-header__nav a::after,
.fs-header__mobile-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--fsh-gold-soft);
  border-radius: 2px;
  transition: right 240ms var(--fsh-ease);
}

.fs-header__nav a:hover::after,
.fs-header__nav a[aria-current="page"]::after,
.fs-header__mobile-nav a:hover::after,
.fs-header__mobile-nav a[aria-current="page"]::after {
  right: 0;
}

.fs-header__spacer {
  flex: 1;
}

.fs-header__login {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fsh-gold-bright);
  background: transparent;
  border: 1.5px solid rgba(60,195,106,0.44);
  border-radius: 999px;
  padding: 12px 22px;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 140ms var(--fsh-ease), background 140ms var(--fsh-ease);
}

.fs-header__login:hover {
  border-color: var(--fsh-gold-soft);
  background: rgba(60,195,106,0.10);
}

.fs-header__login:focus-visible,
.fs-header__account:focus-visible,
.fs-header__burger:focus-visible {
  outline: 2px solid var(--fsh-gold-soft);
  outline-offset: 2px;
}

.fs-header__account {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 7px 12px 7px 8px;
  color: var(--fsh-cream);
  text-decoration: none;
  font: inherit;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  cursor: pointer;
  transition:
    background 140ms var(--fsh-ease),
    border-color 140ms var(--fsh-ease),
    transform 140ms var(--fsh-ease);
}

.fs-header__account:hover,
.fs-header__account[aria-expanded="true"] {
  background: rgba(255,255,255,0.09);
  border-color: rgba(31,142,84,0.55);
}

.fs-header__account-wrap {
  position: relative;
  flex-shrink: 0;
  padding-bottom: 18px;
  margin-bottom: -18px;
}

.fs-header__account > svg {
  width: 18px;
  height: 18px;
  color: rgba(245,247,246,0.6);
  transition: transform 240ms var(--ease-standard), color 140ms var(--ease-standard);
}

.fs-header__account[aria-expanded="true"] > svg {
  color: #fff;
  transform: rotate(180deg);
}

.fs-header__account-menu {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  z-index: 102;
  width: 286px;
  max-width: calc(100vw - 24px);
  overflow: hidden;
  color: var(--ink-900);
  background: white;
  border: 1px solid var(--ink-100);
  border-radius: 18px;
  box-shadow: 0 2px 6px rgba(14,27,46,0.06), 0 22px 48px rgba(14,27,46,0.20);
  transform-origin: top right;
  animation: fs-account-menu-in 220ms var(--ease-out) both;
}

@keyframes fs-account-menu-in {
  from { opacity: 0; transform: translateY(-8px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.fs-header__account-menu-id {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 18px 18px 16px;
  background: linear-gradient(180deg, var(--green-50), #fff);
}

.fs-header__account-menu-avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 50%;
  background: linear-gradient(150deg, #2EA866, #176B41);
  box-shadow: 0 0 0 3px rgba(46,168,102,0.16);
  color: #fff;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
}

.fs-header__account-menu-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.fs-header__account-menu-meta {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.fs-header__account-menu-name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: var(--ink-900);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.15;
}

.fs-header__account-menu-name-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fs-header__account-menu-badge {
  flex: 0 0 auto;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-700);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.fs-header__account-email {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--ink-500);
  font-size: 12.5px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fs-header__account-menu-body {
  display: grid;
  gap: 8px;
  padding: 14px 16px 16px;
}

.fs-header__account-menu-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 13px 18px;
  border: 0;
  border-radius: 999px;
  background: var(--green-500);
  box-shadow: 0 8px 18px rgba(60,195,106,0.32);
  color: #fff;
  font: inherit;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  transition: background 140ms var(--ease-standard);
}

.fs-header__account-menu-cta:hover { background: var(--green-600); }
.fs-header__account-menu-cta:active { background: var(--green-700); }
.fs-header__account-menu-cta:focus-visible {
  outline: 2px solid var(--green-700);
  outline-offset: 2px;
}

.fs-header__account-menu-arrow {
  width: 18px;
  height: 18px;
  transition: transform 240ms var(--ease-out);
}

.fs-header__account-menu-cta:hover .fs-header__account-menu-arrow { transform: translateX(2px); }

.fs-header__account-menu-out {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink-400);
  cursor: pointer;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  transition: background 140ms var(--ease-standard), color 140ms var(--ease-standard);
}

.fs-header__account-menu-out:hover {
  background: #FDF1EF;
  color: #C8392B;
}

.fs-header__account-menu-out:focus-visible {
  outline: 2px solid #C8392B;
  outline-offset: 2px;
}

.fs-header__account-menu-out-icon {
  width: 16px;
  height: 16px;
}

.fs-header__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(150deg, #2EA866, #176B41);
  box-shadow: 0 0 0 2px rgba(46,168,102,0.35);
  color: white;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  overflow: hidden;
}

.fs-header__avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.fs-header__account-meta {
  display: grid;
  gap: 2px;
  line-height: 1.1;
  min-width: 0;
}

.fs-header__account-meta strong {
  max-width: 178px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--fsh-cream);
}

.fs-header__account-meta small {
  font-size: 12px;
  color: var(--green-300);
}

.fs-header__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.fs-header__burger span {
  width: 24px;
  height: 2px;
  background: var(--fsh-cream);
  border-radius: 2px;
}

.fs-header__mobile-nav {
  display: none;
}

@media (max-width: 760px) {
  .fs-header__inner {
    padding: 16px 0;
    gap: 20px;
  }

  .fs-header__nav {
    display: none;
  }

  .fs-header__logo img {
    height: 29px;
  }

  .fs-header__burger {
    display: inline-flex;
  }

  .fs-header__spacer {
    display: none;
  }

  .fs-header__login {
    margin-left: auto;
    padding: 10px 15px;
    font-size: 10.5px;
    letter-spacing: 0.06em;
  }

  .fs-header__account-wrap {
    margin-left: auto;
  }

  .fs-header__account {
    min-height: 42px;
    padding: 5px 9px 5px 5px;
    gap: 8px;
  }

  .fs-header__account-menu {
    min-width: min(238px, calc(100vw - 48px));
  }

  .fs-header__avatar {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }

  .fs-header__account-meta strong {
    max-width: 108px;
    font-size: 12px;
  }

  .fs-header__account-meta small {
    display: none;
  }

  .fs-header__mobile-nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    padding: 0 0 18px;
  }

  .fs-header__mobile-nav a {
    align-self: flex-start;
    font-size: 15px;
  }
}

/* Eyebrow label */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-700);
}

/* Buttons */
.btn-primary {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-sans); font-weight: 600; font-size: 16px;
  padding: 15px 26px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--green-500); color: white;
  text-decoration: none;
  box-shadow: var(--shadow-btn);
  transition: background var(--dur-fast) var(--ease-standard);
}
.btn-primary:hover { background: var(--green-600); }
.btn-primary:active { background: var(--green-700); }
/* Стрелка кнопки — общий стандарт проекта (см. блок --arrow-mask ниже). */

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-sans); font-weight: 600; font-size: 15px;
  padding: 14px 22px; border-radius: 999px;
  background: transparent; color: var(--ink-900);
  border: 1.5px solid var(--ink-200); cursor: pointer;
  transition: border-color var(--dur-fast), color var(--dur-fast);
}
.btn-ghost:hover { border-color: var(--green-500); color: var(--green-700); }

.btn-pill-sm {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-weight: 600; font-size: 13.5px;
  padding: 11px 18px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--green-500); color: white;
  transition: background var(--dur-fast);
}
.btn-pill-sm:hover { background: var(--green-600); }

.link-underline {
  color: var(--ink-900); font-family: var(--font-sans); font-size: 14.5px;
  font-weight: 500; text-decoration: underline; text-underline-offset: 4px;
  cursor: pointer;
}
.link-underline:hover { color: var(--green-700); }

/* Generic card */
.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}
.card:hover { border-color: var(--ink-200); box-shadow: var(--shadow-sm); }

/* Tag / chip */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  font-family: var(--font-sans); font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em; color: var(--green-700);
  background: var(--green-50); border: 1px solid var(--green-200);
}
.chip-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green-500); }

/* Headlines override — keep them tight & bold like the live site */
.h-hero {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 4.2vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin: 0;
}
.h-section {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 56px;
  line-height: 1.04;
  letter-spacing: -0.018em;
  color: var(--ink-900);
  margin: 0;
}
.h-card {
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 26px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink-900);
  margin: 0;
}
.lead-text {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-500);
  margin: 0;
}

/* Tabular nums */
.num { font-variant-numeric: tabular-nums; }

/* Scrollbar hide for embedded iframe stuff (not needed but defensive) */
::-webkit-scrollbar { width: 0; height: 0; }

/* ============================================================
   :target highlight — when an anchor link (e.g. /privacy/#cookies)
   lands on a heading, draw the eye to it: a brief flash + a
   persistent green accent bar to the left.
   ============================================================ */
h1:target,
h2:target,
h3:target,
h4:target {
  position: relative;
  animation: target-flash 1.8s ease-out 0.2s;
}
h1:target::before,
h2:target::before,
h3:target::before,
h4:target::before {
  content: '';
  position: absolute;
  left: -18px;
  top: 8px; bottom: 8px;
  width: 4px;
  background: var(--green-500);
  border-radius: 2px;
}
@keyframes target-flash {
  0%   { background: var(--green-50); }
  60%  { background: var(--green-50); }
  100% { background: transparent; }
}
@media (prefers-reduced-motion: reduce) {
  h1:target, h2:target, h3:target, h4:target { animation: none; }
}

/* ============================================================
   Course card entry animation — used by CoursesPageList when
   filter changes (cards re-mount and fade up with a small stagger).
   ============================================================ */
@keyframes course-card-in {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .course-card-anim { animation: none !important; }
}

/* ============================================================
   Мобильная адаптация страниц с документами (оферта / политика /
   раскрытие рисков). На этих страницах снят body{min-width:1024px},
   поэтому медиа-запросы срабатывают по ширине устройства. На главных
   страницах лендинга min-width остаётся → layout-viewport ≥1024 и эти
   правила там не активируются (десктоп не меняется).
   ============================================================ */
@media (max-width: 860px) {
  /* Документ: одна колонка во всю ширину; оглавление (TOC) прячем — на мобильном
     оно перекрывало контент. Текст читается линейно. */
  .doc-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
  .doc-toc { display: none !important; }
  /* Определения (термин/значение) — стопкой: значение под термином, а не в 2 колонки. */
  .doc-grid dl { grid-template-columns: 1fr !important; gap: 2px 0 !important; }
  .doc-grid dt { margin-top: 10px; }
  /* Длинные email/URL/слова переносим, чтобы не было горизонтального скролла. */
  .doc-grid, .doc-grid article, .doc-grid p, .doc-grid dd, .doc-grid li {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  /* Шапка: прячем маркетинговую навигацию (на странице документа она не нужна),
     оставляем логотип + компактную кнопку входа. */
  .ls-headerbar { gap: 12px !important; }
  .ls-nav { display: none !important; }
  .ls-login {
    padding: 9px 14px !important;
    font-size: 10px !important;
    letter-spacing: 0.06em !important;
    white-space: nowrap !important;
  }

  /* Подвал: 2 колонки на планшете, 1 — на телефоне; нижняя строка — стопкой. */
  .ls-footer-cols { grid-template-columns: 1fr 1fr !important; gap: 28px !important; }
  .ls-footer-legal { grid-template-columns: 1fr !important; }
}
@media (max-width: 520px) {
  .ls-footer-cols { grid-template-columns: 1fr !important; }
}

/* ============================================================
   PUBLIC TOPBAR — дизайн-handoff «Unified panel» (chrome).
   Внедрено 1:1 из design_handoff_app_chrome/chrome.css. Токены
   light+green СКОУПЛЕНЫ на .fs-topbar (и его потомков — меню), чтобы
   не задеть собственные токены лендинга (--accent-soft/--accent-ink и т.п.).
   Тёмная/золотая темы на публичном лендинге не используются.
   ============================================================ */
.fs-topbar {
  /* токены light + green, локально для топбара и его поповеров */
  --chrome-bg: #FFFFFF;
  --chrome-bg-2: #F5F6F4;
  --chrome-fg: #16201C;
  --chrome-fg-2: #5A6660;
  --chrome-fg-3: #8C968F;
  --chrome-border: #E7E9E6;
  --chrome-hover: #F1F3F0;
  --seam: #E7E9E6;
  --logo-filter: brightness(0) saturate(100%) invert(9%) sepia(18%) saturate(2200%) hue-rotate(176deg) brightness(94%) contrast(96%);
  --menu-shadow: 0 16px 36px -10px rgba(20,30,24,.22), 0 4px 12px -4px rgba(20,30,24,.12), 0 0 0 1px rgba(20,30,24,.03);
  --fs-accent: #3CC36A;
  --fs-accent-600: #2EB35C;
  --fs-accent-ink: #1F8A49;
  --fs-on-accent: #06210F;
  --fs-accent-glow: rgba(60,195,106,.30);
  --fs-avatar-grad: linear-gradient(150deg, #2EA866, #176B41);
  --fs-display: 'Open Sans SemiCondensed', 'Open Sans', system-ui, sans-serif;

  height: 72px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 0 30px;
  background: var(--chrome-bg);
  border-bottom: 1px solid var(--seam);
  position: sticky;   /* лендинг многосекционный — топбар липкий (как прежняя шапка) */
  top: 0;
  z-index: 50;
  box-sizing: border-box;
}
.fs-topbar *, .fs-topbar *::before, .fs-topbar *::after { box-sizing: border-box; }
.fs-topbar__logo { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.fs-topbar__logo img { height: 26px; width: auto; display: block; filter: var(--logo-filter); }

.fs-topbar__nav { display: flex; align-items: center; gap: 4px; }
.fs-topbar .fs-nav-link {
  position: relative; padding: 9px 14px; border-radius: 10px;
  color: var(--chrome-fg-2); font-size: 14.5px; font-weight: 600;
  font-family: var(--font-sans, 'Open Sans', sans-serif);
  text-decoration: none; white-space: nowrap;
  transition: color .14s ease, background .14s ease;
}
.fs-topbar .fs-nav-link:hover { background: var(--chrome-hover); color: var(--chrome-fg); }
.fs-topbar .fs-nav-link.is-active { color: var(--chrome-fg); }
.fs-topbar .fs-nav-link.is-active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 1px; height: 2px;
  border-radius: 2px; background: var(--fs-accent);
}

.fs-topbar__spacer { flex: 1; }

/* поповеры (бургер-меню + аккаунт) */
.fs-topbar .fs-pop { position: relative; display: flex; }
.fs-topbar .fs-pop .chev { transition: transform .2s ease; }
.fs-topbar .fs-pop.is-open .chev { transform: rotate(180deg); }
.fs-topbar .fs-iconbtn {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  display: grid; place-items: center; color: var(--chrome-fg-2);
  transition: background .16s ease, color .16s ease;
}
.fs-topbar .fs-iconbtn:hover { background: var(--chrome-hover); color: var(--chrome-fg); }
.fs-topbar .fs-iconbtn svg { width: 21px; height: 21px; stroke-width: 1.8; }
/* На ДЕСКТОПЕ бургер-меню скрыто целиком (и сам триггер, и пустой flex-слот).
   Прячем весь wrapper .fs-pop[data-pop="nav"], а не только кнопку — иначе пустой
   flex-элемент держал gap, и из-за `.fs-topbar .fs-iconbtn{display:grid}` (выше по
   специфичности) кнопка-бургер всё равно показывалась на десктопе. */
.fs-topbar .fs-pop[data-pop="nav"] { display: none; }

/* аккаунт-чип */
.fs-topbar .fs-acct {
  display: flex; align-items: center; gap: 11px;
  padding: 6px 12px 6px 7px; border-radius: 999px; cursor: pointer;
  background: var(--chrome-bg-2); border: 1px solid var(--chrome-border);
  transition: border-color .16s ease; font-family: var(--font-sans, 'Open Sans', sans-serif);
}
.fs-topbar .fs-acct:hover { border-color: var(--fs-accent); }
.fs-topbar .fs-acct__av {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
  display: grid; place-items: center; background: var(--fs-avatar-grad);
  color: #fff; font-family: var(--fs-display); font-weight: 700; font-size: 15px;
  box-shadow: 0 0 0 2px var(--fs-accent-glow);
}
.fs-topbar .fs-acct__av img { width: 100%; height: 100%; object-fit: cover; }
.fs-topbar .fs-acct__tx { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.fs-topbar .fs-acct__tx .nm { font-size: 13.5px; font-weight: 700; color: var(--chrome-fg); white-space: nowrap; }
.fs-topbar .fs-acct__tx .rl { font-size: 11.5px; color: var(--fs-accent-ink); }
.fs-topbar .fs-acct .chev { width: 16px; height: 16px; color: var(--chrome-fg-3); flex-shrink: 0; }

/* выпадающие меню */
.fs-topbar .fs-menu {
  position: absolute; top: calc(100% + 9px); z-index: 80;
  min-width: 304px; max-width: min(340px, calc(100vw - 24px));
  background: var(--chrome-bg); border: 1px solid var(--chrome-border);
  border-radius: 16px; box-shadow: var(--menu-shadow); padding: 7px;
  opacity: 0; transform: translateY(-6px) scale(.985); transform-origin: top right;
  pointer-events: none; transition: opacity .16s ease, transform .16s ease;
}
.fs-topbar .fs-menu--acct { right: 0; min-width: 326px; padding: 0; overflow: hidden; }
.fs-topbar .fs-menu--nav { right: 0; }
.fs-topbar .fs-pop.is-open .fs-menu { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.fs-topbar .fs-acct-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 14px; }
.fs-topbar .fs-acct-head .av {
  width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
  display: grid; place-items: center; background: var(--fs-avatar-grad);
  color: #fff; font-family: var(--fs-display); font-weight: 700; font-size: 18px;
  box-shadow: 0 0 0 2px var(--fs-accent-glow);
}
.fs-topbar .fs-acct-head .av img { width: 100%; height: 100%; object-fit: cover; }
.fs-topbar .fs-acct-head .meta { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fs-topbar .fs-acct-head .row1 { display: flex; align-items: center; gap: 8px; }
.fs-topbar .fs-acct-head .nm { font-size: 15px; font-weight: 700; color: var(--chrome-fg); }
.fs-topbar .fs-acct-head .badge {
  font-size: 9.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: var(--fs-on-accent); background: var(--fs-accent); border-radius: 999px; padding: 2px 8px;
}
.fs-topbar .fs-acct-head .email { font-size: 12.5px; color: var(--chrome-fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.fs-topbar .fs-menu__sep { height: 1px; background: var(--seam); margin: 0; }
.fs-topbar .fs-menu__list { padding: 7px; display: flex; flex-direction: column; gap: 2px; }
.fs-topbar .fs-ai {
  display: flex; align-items: center; gap: 13px;
  padding: 11px 11px; border-radius: 11px; cursor: pointer;
  text-decoration: none; color: var(--chrome-fg);
  font-size: 14px; font-weight: 600; font-family: var(--font-sans, 'Open Sans', sans-serif);
  appearance: none; border: 0; background: transparent; width: 100%; text-align: left;
  transition: background .14s ease, color .14s ease;
}
.fs-topbar .fs-ai .ic { width: 20px; height: 20px; flex-shrink: 0; display: grid; place-items: center; color: var(--chrome-fg-3); transition: color .14s ease; }
.fs-topbar .fs-ai .ic svg { width: 20px; height: 20px; stroke-width: 1.8; }
.fs-topbar .fs-ai:hover { background: var(--chrome-hover); }
.fs-topbar .fs-ai:hover .ic { color: var(--chrome-fg); }
.fs-topbar .fs-ai--muted { color: var(--chrome-fg-2); }

/* CTA-кнопки (для анонимного посетителя) */
.fs-topbar .fs-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; cursor: pointer;
  font-family: var(--font-sans, 'Open Sans', sans-serif); font-size: 14px; font-weight: 700;
  border: 1px solid transparent; text-decoration: none; white-space: nowrap;
  transition: background .14s ease, border-color .14s ease, color .14s ease;
}
.fs-topbar .fs-btn--primary { background: var(--fs-accent); color: var(--fs-on-accent); }
.fs-topbar .fs-btn--primary:hover { background: var(--fs-accent-600); }
.fs-topbar .fs-btn--ghost { background: var(--chrome-bg); color: var(--chrome-fg); border-color: var(--chrome-border); }
.fs-topbar .fs-btn--ghost:hover { border-color: var(--fs-accent); }
/* инлайн-CTA (Войти / Начать бесплатно) — только на десктопе */
.fs-topbar__cta { display: flex; align-items: center; gap: 10px; }

/* адаптив (по вьюпорту — лендинг не в @container): бургер вместо инлайн-меню.
   На мобиле инлайн-nav и инлайн-CTA скрыты, всё уходит в бургер-меню (три полоски),
   иначе CTA-кнопки ломают вёрстку шапки лендинга. */
@media (max-width: 860px) {
  .fs-topbar { gap: 14px; padding: 0 16px; }
  .fs-topbar__nav { display: none; }
  .fs-topbar .fs-pop[data-pop="nav"] { display: flex; }
  .fs-topbar__cta { display: none; }
}
@media (max-width: 560px) {
  .fs-topbar .fs-acct { padding: 5px; }
  .fs-topbar .fs-acct__tx, .fs-topbar .fs-acct .chev { display: none; }
}

/* ------------------------------------------------------------
   Раздел «Сообщества» с выпадающим меню — единственная новая функция шапки
   (design_handoff_communities, README §1/§2). Живёт здесь, а не в CSS страницы
   /communities: меню обязано работать на ВСЕХ публичных страницах, а app.css
   подключён и на лендингах, и на SEO-страницах (шапка там — тот же Header.jsx).

   Панель меню — раскладка дизайнера (колонка-описание 216px + список), но
   раскрашена токенами нашей шапки (chrome-переменные и fs-accent), а не палитрой
   макета: макет воспроизводил прод-шапку приблизительно, и его хардкоды
   #161A18 / #2FA85A разъехались бы с настоящей при первой же смене темы шапки.

   На мобиле (<=860px) инлайн-навигация скрыта целиком (см. @media выше) — пункты
   меню уходят в бургер отдельными строками, поэтому мобильного варианта панели
   здесь нет: это не упущение, а следствие устройства нашей шапки.
   ------------------------------------------------------------ */
.fs-topbar .fs-dd { position: relative; display: flex; align-items: center; }
/* Триггер — flex-строка «текст + каретка». Без этого ссылка внутри flex-контейнера
   .fs-dd блокифицируется, а inline-svg каретки становится блоком и переносится под
   текст (баг на preview 2026-07-28: «Сообщества» и стрелка в две строки). */
.fs-topbar .fs-dd .fs-nav-link { display: inline-flex; align-items: center; gap: 5px; }
/* Невидимый мост 18px между пунктом и панелью: без него меню закрывается на
   полпути курсора (README §2 — «не удалять»). */
.fs-topbar .fs-dd::before { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 18px; }
.fs-topbar .fs-dd .caret { width: 10px; height: 6px; flex: none; display: block; transition: transform .2s ease; }
.fs-topbar .fs-dd:hover .caret,
.fs-topbar .fs-dd:focus-within .caret,
.fs-topbar .fs-dd.is-open .caret { transform: rotate(180deg); }
.fs-topbar .fs-dd-menu {
  position: absolute; top: calc(100% + 14px); left: -8px; z-index: 80;
  width: 660px; max-width: calc(100vw - 32px);
  background: var(--chrome-bg); border: 1px solid var(--chrome-border);
  border-radius: 22px; box-shadow: var(--menu-shadow);
  display: grid; grid-template-columns: 216px 1fr; overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.fs-topbar .fs-dd:hover .fs-dd-menu,
.fs-topbar .fs-dd:focus-within .fs-dd-menu,
.fs-topbar .fs-dd.is-open .fs-dd-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.fs-topbar .fs-dd-side {
  background: linear-gradient(180deg, #FAFBFA, var(--chrome-bg-2));
  padding: 24px 22px; display: flex; flex-direction: column;
}
.fs-topbar .fs-dd-side h4 { font-family: var(--font-sans, 'Open Sans', sans-serif); font-size: 17px; font-weight: 800; letter-spacing: -.016em; margin: 0 0 8px; color: var(--chrome-fg); }
.fs-topbar .fs-dd-side p { font-size: 13px; line-height: 1.5; color: var(--chrome-fg-2); margin: 0 0 18px; }
/* inline-flex + gap: рядом с текстом теперь маск-стрелка (.arr--sm), а не глиф. */
.fs-topbar .fs-dd-side a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--fs-accent-ink); margin-top: auto; text-decoration: none; }
.fs-topbar .fs-dd-side a:hover { color: var(--fs-accent-600); }
.fs-topbar .fs-dd-list { display: flex; flex-direction: column; }
/* Подсветка строки — на всю ширину пункта, без внутренних скруглений
   («фреймов в фрейме» быть не должно, README §2). */
.fs-topbar .fs-dd-item {
  display: flex; align-items: center; gap: 18px; padding: 20px 24px;
  text-decoration: none; color: var(--chrome-fg);
  transition: background .2s ease;
}
.fs-topbar .fs-dd-item:hover { background: var(--chrome-hover); color: var(--chrome-fg); }
.fs-topbar .fs-dd-item.is-soon { cursor: default; }
.fs-topbar .fs-dd-item.is-soon:hover { background: var(--chrome-bg-2); }
.fs-topbar .fs-dd-item .tt { font-family: var(--font-sans, 'Open Sans', sans-serif); font-size: 17px; font-weight: 700; letter-spacing: -.014em; display: flex; align-items: center; gap: 10px; color: var(--chrome-fg); }
.fs-topbar .fs-dd-item .ds { display: block; font-size: 13.5px; color: var(--chrome-fg-2); line-height: 1.45; margin-top: 4px; }
.fs-topbar .fs-dd-item .rt { margin-left: auto; text-align: right; flex: none; }
.fs-topbar .fs-dd-item .rt .price { display: block; font-family: var(--font-display, 'Open Sans SemiCondensed', sans-serif); font-size: 14px; font-weight: 700; color: var(--chrome-fg); }
.fs-topbar .fs-dd-item .rt .go { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--fs-accent-ink); margin-top: 4px; opacity: 0; transition: opacity .15s ease; }
.fs-topbar .fs-dd-item:hover .rt .go { opacity: 1; }
.fs-topbar .fs-dd-item.is-soon .rt .price { font-family: var(--font-sans, 'Open Sans', sans-serif); font-size: 12.5px; font-weight: 700; color: var(--chrome-fg-3); }
.fs-topbar .fs-mini {
  font-family: var(--font-sans, 'Open Sans', sans-serif); font-size: 10px; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; white-space: nowrap;
}
/* 861–1024px: панель шире, чем расстояние от пункта «Сообщества» до правого края
   экрана (инлайн-навигация живёт с 861px, а панель в 660px начинается примерно с
   270px). Absolutely позиционированная панель даёт ширину скролла даже скрытой,
   поэтому без сжатия на этих ширинах появлялся горизонтальный скролл всей
   страницы — поймано скриншот-прогоном на 900px. */
@media (max-width: 1024px) {
  .fs-topbar .fs-dd-menu { width: calc(100vw - 300px); min-width: 420px; grid-template-columns: 190px 1fr; }
  .fs-topbar .fs-dd-item { padding: 16px 18px; gap: 12px; }
}
.fs-topbar .fs-mini--live { color: var(--fs-accent-ink); background: rgba(47,168,90,.13); }
.fs-topbar .fs-mini--soon { color: var(--chrome-fg-3); background: var(--chrome-bg-2); }
/* Строка бургер-меню для пункта «скоро»: ведёт себя как текст, не как ссылка. */
.fs-topbar .fs-ai--soon { color: var(--chrome-fg-3); cursor: default; }
.fs-topbar .fs-ai--soon:hover { background: transparent; }

/* ------------------------------------------------------------
   СТРЕЛКА КНОПОК — стандарт проекта (design_handoff_communities, README §4).
   Маска, а не символ «→»: юникодные стрелки в разных шрифтах разной толщины и
   базовой линии, а круглая подложка под иконкой отменена дизайнером. Направление
   несёт смысл: → переход на другую страницу, .arr-down прокрутка вниз,
   .arr-up возврат выше. Токен живёт в app.css, чтобы остальные лендинги
   переходили на стандарт без копии data-URI у себя.
   ------------------------------------------------------------ */
:root {
  --arrow-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h14'/%3E%3Cpath d='M12.5 6.5L18 12l-5.5 5.5'/%3E%3C/svg%3E");
}

/* Сама стрелка: маска в цвет текста кнопки, без круглой подложки. `font-size: 0`
   гасит юникодный «→», который остался в разметке некоторых кнопок, — глиф
   рисует ::before, поэтому разметку можно чистить постепенно, не ломая вид.
   Размер 19px (17px на мобильных) и толщина линии — из хэндоффа. */
.arr, .arrow, .fs-arr {
  width: 19px; height: 19px; flex: none; border-radius: 0; background: transparent;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0; line-height: 0;
  transition: transform 240ms var(--ease-standard, cubic-bezier(0.2, 0, 0, 1));
}
.arr::before, .arrow::before, .fs-arr::before {
  content: ""; width: 19px; height: 19px; background: currentColor;
  -webkit-mask: var(--arrow-mask) no-repeat center/contain;
  mask: var(--arrow-mask) no-repeat center/contain;
}
/* Направление несёт смысл: → переход, ↓ прокрутка вниз по странице, ↑ возврат
   выше. Наведение сдвигает стрелку ПО НАПРАВЛЕНИЮ, а не всегда вправо. */
.arr-down { transform: rotate(90deg); }
.arr-up { transform: rotate(-90deg); }
.btn:hover .arr, .btn-primary:hover .arr, .btn-primary:hover .arrow, .fs-btn:hover .fs-arr,
.pill:hover .arr, .reg-submit:hover .arr, a:hover > .arr, button:hover > .arr { transform: translateX(3px); }
.btn:hover .arr-down, .btn-primary:hover .arr-down, a:hover > .arr-down, button:hover > .arr-down {
  transform: rotate(90deg) translateX(3px);
}
.btn:hover .arr-up, .btn-primary:hover .arr-up, a:hover > .arr-up, button:hover > .arr-up {
  transform: rotate(-90deg) translateX(3px);
}
@media (max-width: 620px) {
  .arr, .arrow, .fs-arr, .arr::before, .arrow::before, .fs-arr::before { width: 17px; height: 17px; }
}
/* Уменьшенный вариант для мелких текстовых ссылок (13px: выпадашка шапки
   «Все сообщества», «Перейти», CTA-ссылки SEO-страниц) — полный 19px рядом с
   таким кеглем великоват. vertical-align выравнивает стрелку в СТРОЧНОМ
   контексте (ссылки в прозе SEO-страниц); во flex-контейнерах он игнорируется. */
.arr--sm, .arr--sm::before { width: 14px; height: 14px; }
.arr--sm { vertical-align: -2px; }

/* ============================================================
   ЭТАЛОННЫЙ БЛОК ТАРИФОВ — единственный источник правды по оформлению цен
   на всех лендингах Fundstate. Порт дизайнерского handoff
   `design_handoff_tariffs` (2026-07-25), разметка — components/TariffsBlock.jsx.

   Живёт в app.css сознательно: этот файл подключён на КАЖДОЙ странице
   лендинг-кита и уже имеет свой nginx-роут, поэтому следующий лендинг с ценами
   получает тот же блок без копипаста стилей и без правки серверных конфигов.
   Всё заскоуплено под классы карточки, кнопка — под «.tariff .btn-primary»,
   чтобы золотая кнопка тарифа не перекрасила зелёную «.btn-primary» школы.

   Тёмная карточка самодостаточна: она не зависит от фона секции, поэтому
   работает и на светлом, и на тёмном лендинге.
   ============================================================ */
.tariff-grid {
  display: grid;
  /* Число колонок задаёт админка лендинга (--tariff-cols); дизайн по умолчанию — 3. */
  grid-template-columns: repeat(var(--tariff-cols, 3), 1fr);
  gap: 22px;
  margin-top: 40px;
  align-items: stretch;
}
.tariff {
  position: relative; display: flex; flex-direction: column;
  padding: 0 30px 28px;                 /* верх = 0: шапку рисует .t-name */
  border-radius: 36px;
  background: linear-gradient(180deg, #171c19, #0f1310);
  border: 1px solid rgba(201, 162, 75, 0.22);
  box-shadow: 0 26px 60px -36px rgba(0, 0, 0, 0.55);
}
.tariff--feature {
  background: linear-gradient(180deg, #1d1810, #120f0a);
  border: 1.5px solid rgba(201, 162, 75, 0.6);
  box-shadow: 0 32px 72px -32px rgba(201, 162, 75, 0.42);
}
.tariff-flag {
  position: absolute; top: -15px; left: 38px;
  font-family: 'Open Sans', sans-serif; font-size: 12px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: #241905; background: linear-gradient(180deg, #D9B45C, #C29638);
  padding: 7px 16px; border-radius: 999px;
  box-shadow: 0 12px 26px -12px rgba(201, 162, 75, 0.5);
}
.tariff .t-name {
  position: relative;
  font-family: 'Open Sans', sans-serif; font-weight: 800; font-size: 27px;
  line-height: 1.12; letter-spacing: -0.018em; color: #F5F1E8;
  margin: 0 -30px 24px; padding: 26px 30px 24px;
  border-radius: 35px 35px 0 0;
  background: linear-gradient(180deg, rgba(201, 162, 75, 0.16), rgba(201, 162, 75, 0.03));
  border-bottom: 1px solid rgba(201, 162, 75, 0.2);
}
.tariff .t-name::after {                /* золотая линия по нижней кромке шапки */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px;
  background: linear-gradient(90deg, #E6C46E, rgba(201, 162, 75, 0.25));
}
.tariff--feature .t-name {
  color: #E6C46E; border-radius: 34px 34px 0 0;
  background: linear-gradient(180deg, rgba(201, 162, 75, 0.26), rgba(201, 162, 75, 0.05));
  border-bottom-color: rgba(201, 162, 75, 0.38);
}
.tariff--feature .t-name::after { background: linear-gradient(90deg, #E6C46E, #C9A24B); }

.tariff .t-sub { font-family: 'Open Sans', sans-serif; font-size: 14.5px; line-height: 1.5; color: rgba(245, 241, 232, 0.62); }
.tariff .t-desc { font-family: 'Open Sans', sans-serif; font-size: 15px; line-height: 1.6; color: rgba(245, 241, 232, 0.84); margin: 22px 0 24px; }
.tariff-feats { display: grid; gap: 13px; margin-bottom: 26px; }
.tariff-feats .check { display: flex; gap: 14px; align-items: flex-start; font-family: 'Open Sans', sans-serif; font-size: 15px; line-height: 1.45; color: rgba(245, 241, 232, 0.88); }
.tariff-feats .check .mark {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 50%; margin-top: 1px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
  background: rgba(201, 162, 75, 0.18); color: #E6C46E;
}

/* Подвал на фиксированных слотах: цены и кнопки всех карточек стоят на одной
   горизонтали независимо от того, есть ли у тарифа скидка. Пустые слоты
   рендерятся всегда — без них соседние карточки разъезжаются по вертикали. */
.tariff .t-foot {
  margin-top: auto; padding-top: 24px; border-top: 1px solid rgba(201, 162, 75, 0.18);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.tariff .t-above { order: 1; min-height: 34px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: center; }
.tariff .t-price { order: 2; margin: 10px 0 0; font-family: 'Open Sans SemiCondensed', 'Open Sans', sans-serif; font-weight: 700; font-size: 52px; line-height: 1; letter-spacing: -0.02em; color: #F5F1E8; }
.tariff .t-price small { display: block; margin-top: 6px; font-family: 'Open Sans', sans-serif; font-size: 15px; font-weight: 600; letter-spacing: 0; color: rgba(245, 241, 232, 0.55); }
.tariff .t-foot .btn { order: 4; margin-top: 18px; width: 100%; justify-content: center; }
/* Слот под кнопкой зарезервирован дизайном: если появится строка вроде условий
   оплаты — рендерить её во ВСЕХ карточках, иначе выравнивание снова поедет. */
.tariff .t-below { order: 5; min-height: 24px; display: flex; align-items: center; justify-content: center; margin-top: 14px; }

.tariff .t-strike { font-family: 'Open Sans SemiCondensed', 'Open Sans', sans-serif; font-size: 21px; font-weight: 600; letter-spacing: -0.01em; color: rgba(245, 241, 232, 0.4); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.tariff .save-chip { font-family: 'Open Sans', sans-serif; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
.tariff .save-chip--save { color: #241905; background: #D6B25E; }
/* Чип обратного отсчёта до запланированного повышения цены. Спокойный контур, а
   не заливка «как у выгоды»: это предупреждение о росте цены, и красить его в
   тот же золотой, что и «экономия», значило бы выдавать одно за другое.
   tabular-nums — иначе цифры секунд «дышат» и чип дёргается раз в секунду. */
.tariff .save-chip--rise {
  color: rgba(245, 241, 232, 0.82);
  border: 1px solid rgba(201, 162, 75, 0.45);
  background: rgba(201, 162, 75, 0.10);
  font-variant-numeric: tabular-nums;
}
.tariff .save-chip--rise b { font-weight: 700; color: #F5F1E8; }

/* БОЛЬШОЙ отсчёт до повышения цен — баннер внизу карточки тарифа (директива
   2026-07-29: «таймер должен быть большим и мотивировать купить, подписан явно
   ПОВЫШЕНИЕ ЦЕН ЧЕРЕЗ»). Полная ширина, золотая рамка-плашка, крупные
   tabular-nums цифры (не дышат при тике раз в секунду). */
.tariff .t-rise-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
  margin-top: 16px;
  padding: 12px 10px 14px;
  border: 1px solid rgba(201, 162, 75, 0.45);
  border-radius: 14px;
  background: rgba(201, 162, 75, 0.12);
}
.tariff .t-rise-banner-label {
  color: rgba(245, 241, 232, 0.78);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.tariff .t-rise-banner-clock {
  color: #E6C46E;
  font-size: 27px;
  font-weight: 800;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
@media (max-width: 620px) {
  .tariff .t-rise-banner-clock { font-size: 23px; }
}

/* Кнопка тарифа — золотая независимо от палитры лендинга. Заскоуплена под
   .tariff, чтобы не задеть зелёную .btn-primary школы (см. выше в этом файле). */
.tariff .btn-primary {
  display: inline-flex; align-items: center; gap: 12px; cursor: pointer; text-decoration: none; border: 0;
  font-family: 'Open Sans', sans-serif; font-size: 16px; font-weight: 600; border-radius: 999px;
  padding: 16px 28px; color: #241905;
  background: linear-gradient(180deg, #D9B45C, #C29638);
  box-shadow: 0 14px 30px -14px rgba(201, 162, 75, 0.55);
  transition: background 140ms cubic-bezier(0.2, 0, 0, 1), box-shadow 240ms cubic-bezier(0.2, 0, 0, 1);
}
.tariff .btn-primary:hover { background: linear-gradient(180deg, #E3C067, #CCA043); }
.tariff .btn-primary:active { background: #B98F33; }
/* Стрелка кнопки тарифа — общий стандарт (без круглой подложки). */
.tariff .btn-primary:focus-visible { outline: 2px solid #C9A24B; outline-offset: 2px; }

@media (max-width: 1024px) {
  /* В одну колонку бейдж «хит» (absolute, top:-15px) свисает над карточкой и не
     участвует в потоке — даём выделенной карточке верхний отступ. */
  .tariff-grid { grid-template-columns: 1fr; }
  .tariff--feature { margin-top: 22px; }
}
@media (max-width: 640px) {
  .tariff-grid { gap: 18px; }
  .tariff { padding: 0 22px 26px; }
  .tariff .t-name { margin: 0 -22px 20px; padding: 22px 22px 20px; font-size: 24px; }
  .tariff .t-price { font-size: 40px; }
}
/* LAND-006: строка пересчёта «в месяц» в слоте .t-below, который дизайн и держал
   про запас. Пояснение про горизонт расчёта — мельче и тише самой цифры: оно
   уточняет, а не спорит с ней за внимание. */
.tariff .t-below .t-permo { font-family: 'Open Sans', sans-serif; font-size: 13px; color: rgba(245, 241, 232, 0.62); text-align: center; }
.tariff .t-below .t-permo b { font-weight: 700; color: #E6C46E; }
.tariff .t-below .t-permo-note { color: rgba(245, 241, 232, 0.45); }
@media (max-width: 640px) {
  .tariff .t-below { min-height: 0; margin-top: 10px; }
}
