/* =====================================================================
   Твой Биокод — визуальный слой по макету «Главная страница» (Figma, 02.10.2026)
   Порядок: tokens.css → biocode.css → site.css (этот файл переопределяет).
   Единица масштаба героя --u: 1px при ширине макета (1920 / 393), дальше — пропорционально.
   ===================================================================== */

/* ---------- Шрифты: Manrope (текст), Unbounded (цифры), Onest (меню) ---------- */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/manrope-cyrillic-400-normal.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; font-display: swap; src: url('/fonts/manrope-latin-400-normal.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+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/manrope-cyrillic-500-normal.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: 500; font-display: swap; src: url('/fonts/manrope-latin-500-normal.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+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/manrope-cyrillic-600-normal.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: 600; font-display: swap; src: url('/fonts/manrope-latin-600-normal.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+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/manrope-cyrillic-700-normal.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: 700; font-display: swap; src: url('/fonts/manrope-latin-700-normal.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+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/manrope-cyrillic-800-normal.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: 800; font-display: swap; src: url('/fonts/manrope-latin-800-normal.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+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 300; font-display: swap; src: url('/fonts/unbounded-cyrillic-300-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 300; font-display: swap; src: url('/fonts/unbounded-latin-300-normal.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+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/unbounded-cyrillic-400-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/unbounded-latin-400-normal.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+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/unbounded-cyrillic-500-normal.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Unbounded'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/unbounded-latin-500-normal.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+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- База ---------- */
:root {
  --u: clamp(0.62px, calc(100vw / 1920), 1px);
  --wrap: calc(1432 * var(--u));
  --gutter: calc(244 * var(--u));
  --head-top: calc(34 * var(--u));
  --head-h: calc(103 * var(--u));
}
@media (max-width: 1023px) {
  :root {
    --u: clamp(0.84px, calc(100vw / 393), 1.6px);
    --wrap: calc(350 * var(--u));
    --gutter: calc((100vw - var(--wrap)) / 2);
    --head-top: calc(20 * var(--u));
    --head-h: calc(80 * var(--u));
  }
}
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-top) + var(--head-h) + 16px); -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; transition: background-color .6s var(--ease-out); }
h1, h2, h3 { font-weight: 800; letter-spacing: -0.02em; }
::selection { background: var(--hero-bg); color: #fff; }
.theme-public .container, .theme-auth .container { width: min(100% - 32px, 1200px); }

/* ---------- Кнопки ---------- */
.btn {
  position: relative;
  overflow: hidden;
  font-weight: 700;
  letter-spacing: -0.01em;
  isolation: isolate;
  transition: transform .35s var(--ease-spring), background-color .25s, border-color .25s, color .25s, box-shadow .35s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform .8s var(--ease-out);
  pointer-events: none;
}
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn:hover::before { transform: translateX(120%); }
}
.btn:active { transform: translateY(0) scale(.98); transition-duration: .1s; }
.btn--light { background: #fff; color: #1A1A1A; border-color: #fff; box-shadow: 0 10px 30px -12px rgba(27, 18, 16, .35); }
.btn--light:hover { box-shadow: 0 18px 40px -14px rgba(27, 18, 16, .45); color: #1A1A1A; }
.btn--glass {
  background: var(--hero-glass);
  color: #fff;
  border-color: rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.btn--glass:hover { background: var(--hero-glass-2); color: #fff; }
.btn--glass::before { background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .25) 50%, transparent 65%); }
.btn--primary { color: var(--on-brand); }

/* ---------- Переключатель цвета ---------- */
.accent-switch { display: inline-flex; align-items: center; gap: 8px; }
.accent-switch__dot {
  --size: 22px;
  width: var(--size) !important;
  height: var(--size);
  min-height: 0 !important;
  padding: 0;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .85) !important;
  background: var(--dot) !important;
  cursor: pointer;
  position: relative;
  flex: 0 0 auto;
  transition: transform .35s var(--ease-spring), box-shadow .3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
}
.accent-switch__dot::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid #fff;
  opacity: 0;
  transform: scale(.6);
  transition: opacity .3s, transform .4s var(--ease-spring);
}
.accent-switch__dot[aria-checked="true"]::after { opacity: 1; transform: scale(1); }
.accent-switch__dot:hover { transform: scale(1.15); }
.accent-switch--footer .accent-switch__dot { --size: 28px; border-color: rgba(255, 255, 255, .25) !important; }
.accent-switch--menu .accent-switch__dot { --size: 36px; }

/* ---------- Шапка-«пилюля» ---------- */
.site-header.site-header--pill {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  width: auto;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: var(--head-top) 0 0;
  display: block;
  background: none;
  color: #fff;
  pointer-events: none;
  transition: transform .5s var(--ease-out), padding .4s var(--ease-out);
}
.nav-pill {
  pointer-events: auto;
  width: var(--wrap);
  height: var(--head-h);
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 0 calc(31 * var(--u)) 0 calc(61 * var(--u));
  border-radius: 150px;
  background: var(--hero-glass);
  border: 1px solid rgba(255, 255, 255, .14);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  transition: background-color .4s, box-shadow .4s, height .4s var(--ease-out);
}
.site-header--pill.is-scrolled { padding-top: 12px; }
.site-header--pill.is-scrolled .nav-pill {
  background: color-mix(in srgb, var(--hero-bg) 86%, transparent);
  box-shadow: 0 18px 40px -20px rgba(27, 18, 16, .45);
  height: calc(var(--head-h) * .78);
}
.site-header--pill.is-hidden { transform: translateY(-140%); }
.site-header--pill .logo img { width: calc(160 * var(--u)); min-width: 110px; height: auto; display: block; }
.nav-links {
  display: flex;
  justify-content: center;
  gap: calc(54 * var(--u));
  font-family: var(--font-nav);
}
.nav-links a {
  position: relative;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: max(15px, calc(18 * var(--u)));
  line-height: 1.16;
  padding: 8px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease-out);
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav-right { display: flex; align-items: center; gap: calc(22 * var(--u)); }
.nav-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: calc(148 * var(--u));
  min-width: 96px;
  height: calc(66 * var(--u));
  min-height: 46px;
  border-radius: 100px;
  background: #fff;
  color: #1A1A1A;
  font: 600 max(15px, calc(18 * var(--u)))/1.1 var(--font-nav);
  text-decoration: none;
  transition: transform .35s var(--ease-spring), box-shadow .3s;
}
.nav-login:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(27, 18, 16, .45); }
.nav-burger { display: none; }
.site-header--pill .site-header__back { display: contents; }
.site-header--pill .back-link[href="/"] { display: none; }
.site-header--pill .back-link {
  min-height: 40px;
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, .45);
  font-size: 15px;
  white-space: nowrap;
}

@media (max-width: 1023px) {
  .nav-pill { grid-template-columns: auto 1fr; padding: 0 calc(20 * var(--u)) 0 calc(36 * var(--u)); }
  .nav-links, .accent-switch--header, .site-header--pill .site-header__back { display: none; }
  .site-header--pill .logo img { width: calc(121 * var(--u)); min-width: 0; }
  .nav-right { justify-self: end; gap: calc(8 * var(--u)); }
  .nav-login { width: calc(112 * var(--u)); min-width: 0; height: calc(50 * var(--u)); min-height: 44px; font-size: max(14px, calc(14 * var(--u))); }
  .nav-burger {
    display: inline-grid;
    place-content: center;
    gap: 6px;
    width: calc(50 * var(--u)) !important;
    min-width: 44px;
    height: calc(50 * var(--u));
    min-height: 44px !important;
    padding: 0;
    border-radius: 50%;
    background: var(--hero-glass-2) !important;
    border: 1px solid rgba(255, 255, 255, .25) !important;
    cursor: pointer;
    flex: 0 0 auto;
  }
  .nav-burger span { display: block; width: 18px; height: 2px; border-radius: 2px; background: #fff; transition: transform .4s var(--ease-out); }
  .nav-burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
}

/* Публичная навигация: светлая поверхность отделяется от цветного первого экрана. */
.site-header--pill:not(.site-header--cabinet) .nav-pill {
  background: rgba(255, 253, 248, .97);
  border-color: rgba(255, 255, 255, .85);
  box-shadow: 0 10px 32px rgba(65, 37, 18, .12), 0 1px 3px rgba(65, 37, 18, .06);
  color: #21342d;
}
.site-header--pill:not(.site-header--cabinet) .logo img { filter: brightness(0); }
.site-header--pill:not(.site-header--cabinet) .nav-links a { color: #21342d; }
.site-header--pill:not(.site-header--cabinet) .nav-links a::after { background: var(--brand); }
.site-header--pill:not(.site-header--cabinet) .nav-login { background: var(--brand); color: #172a24; }
.site-header--pill:not(.site-header--cabinet) .back-link { color: #21342d; border-color: #d5d9d1; }
.site-header--pill:not(.site-header--cabinet) .nav-burger { background: #ecefe7 !important; border-color: #d5d9d1 !important; }
.site-header--pill:not(.site-header--cabinet) .nav-burger span { background: #21342d; }
.site-header--pill:not(.site-header--cabinet) a:focus-visible,
.site-header--pill:not(.site-header--cabinet) button:focus-visible { outline: 3px solid #21342d; outline-offset: 4px; }

/* ---------- Мобильное меню ---------- */
.mnav {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--head-top) + var(--head-h) + 32px) var(--gutter) calc(32px + env(safe-area-inset-bottom));
  background: var(--hero-bg);
  color: #fff;
  overflow-y: auto;
  clip-path: circle(0 at calc(100% - 60px) 60px);
  transition: clip-path .6s var(--ease-out), background-color .6s;
}
.mnav[hidden] { display: none; }
.mnav.is-open { clip-path: circle(150% at calc(100% - 60px) 60px); }
.mnav__links { display: flex; flex-direction: column; gap: 4px; }
.mnav__links a {
  color: #fff;
  text-decoration: none;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .2);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .5s var(--ease-out), transform .6s var(--ease-out);
  transition-delay: calc(var(--i) * 50ms + 120ms);
}
.mnav.is-open .mnav__links a { opacity: 1; transform: none; }
.mnav__foot { margin-top: 32px; }
.mnav__label { margin: 0 0 12px; opacity: .85; font-size: 16px; }
.mnav__cta { display: grid; gap: 10px; margin-top: 24px; }
.mnav__cta .btn { min-height: 64px; font-size: 18px; }
body.is-menu-open { overflow: hidden; }

/* ---------- Цветная верхняя полоса ---------- */
.topband {
  position: relative;
  overflow: hidden;
  background-color: var(--hero-bg);
  color: #fff;
  padding-top: calc(var(--head-top) + var(--head-h));
  min-height: calc(var(--head-top) + var(--head-h) + 72px);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  transition: background-color .6s var(--ease-out);
}
.topband::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Cpath d='M10 0v20M0 10h20' stroke='white' stroke-opacity='.6'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Cpath d='M10 0v20M0 10h20' stroke='white' stroke-opacity='.6'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20'%3E%3Cpath d='M10 0v20M0 10h20' stroke='white' stroke-opacity='.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: calc(20 * var(--u)) calc(20 * var(--u));
  background-position: 9.5% 19.4%, 96.7% 65.7%, 5% 84.3%;
  animation: twinkle 6s ease-in-out infinite;
}
@keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.topband--hero { border-radius: 0 0 var(--r-xl) var(--r-xl); }
.topband--auth { min-height: calc(var(--head-top) + var(--head-h) + 160px); }
.topband--public:not(.topband--hero) { min-height: calc(var(--head-top) + var(--head-h) + 120px); }
.topband--public:not(.topband--hero) + main.page {
  position: relative;
  margin-top: -72px;
  background: var(--card);
  border-radius: 32px;
  padding: 32px 20px 48px;
  box-shadow: 0 30px 60px -40px rgba(27, 18, 16, .35);
  animation: rise .7s var(--ease-out) both;
}
@media (min-width: 768px) { .topband--public:not(.topband--hero) + main.page { padding: 48px 56px 64px; } }
.topband--auth + main.auth-wrap { position: relative; margin-top: -120px; }
.topband--auth + main .auth-card {
  border-radius: 32px;
  padding: 28px 22px;
  box-shadow: 0 30px 60px -36px rgba(27, 18, 16, .4);
  animation: rise .7s var(--ease-out) both;
}
@media (min-width: 768px) { .topband--auth + main .auth-card { padding: 40px 44px; } }
@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: none; }
}

/* =====================================================================
   ГЕРОЙ ГЛАВНОЙ (макет 1920×1080 и 393×1514)
   ===================================================================== */
.hhero {
  position: relative;
  width: var(--wrap);
  margin-inline: auto;
  min-height: calc(1080 * var(--u) - var(--head-top) - var(--head-h));
  display: grid;
  grid-template-columns: calc(875 * var(--u)) 1fr;
  column-gap: calc(55 * var(--u));
  align-items: start;
  padding-bottom: calc(80 * var(--u));
}
.hhero__copy { padding-top: calc(69 * var(--u)); position: relative; z-index: 2; }
.hhero__title {
  margin: 0;
  font-family: var(--font);
  font-weight: 700;
  font-size: max(40px, calc(85 * var(--u)));
  line-height: 1;
  letter-spacing: -0.04em;
  color: #fff;
  overflow-wrap: normal;
  word-break: normal;
}
.hhero__title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hhero__title .line > span { display: inline-block; }
.hhero__lead {
  margin: calc(44 * var(--u)) 0 0;
  max-width: calc(875 * var(--u));
  font-size: max(17px, calc(24 * var(--u)));
  line-height: 1.32;
  color: #fff;
}
.hhero__cta { display: flex; gap: calc(19 * var(--u)); margin-top: calc(55 * var(--u)); }
.btn--xl {
  height: calc(100 * var(--u));
  min-height: 56px;
  padding: 0 calc(24 * var(--u));
  white-space: nowrap;
  font-size: max(16px, calc(24 * var(--u)));
  border-radius: 100px;
  width: auto;
  flex: 0 0 auto;
}
.hhero__cta .btn:first-child { width: calc(324 * var(--u)); }
.hhero__cta .btn:last-child { width: calc(441 * var(--u)); }
.hhero__note { margin: calc(30 * var(--u)) 0 0 calc(8 * var(--u)); font-size: max(16px, calc(18 * var(--u))); color: #fff; }
.hhero__stats {
  margin: calc(45 * var(--u)) 0 0;
  padding-top: calc(38 * var(--u));
  width: calc(754 * var(--u));
  border-top: 1px solid rgba(255, 255, 255, .45);
  display: grid;
  grid-template-columns: calc(323 * var(--u)) calc(262 * var(--u)) auto;
}
.hhero__stats dt {
  font-family: var(--font-num);
  font-weight: 400;
  font-size: max(26px, calc(38 * var(--u)));
  line-height: 1.1;
  color: #fff;
  white-space: nowrap;
}
.hhero__stats dd { margin: calc(8 * var(--u)) 0 0; font-size: max(14px, calc(16 * var(--u))); color: rgba(255, 255, 255, .92); line-height: 1.3; }
.hhero__visual { position: relative; padding-top: calc(82 * var(--u)); z-index: 1; }
.hhero__ruler {
  position: absolute;
  left: 0; right: 0;
  bottom: calc(36 * var(--u));
  height: calc(20 * var(--u));
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .45) 0 2px, transparent 2px calc(20 * var(--u))) left 0 top 50% / 100% calc(12 * var(--u)) repeat-x;
  -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  animation: ruler 40s linear infinite;
}
.hhero__ruler span {
  position: absolute;
  left: calc(-138 * var(--u));
  width: calc(350 * var(--u));
  top: 0; bottom: 0;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .7) 0 2px, transparent 2px calc(180 * var(--u)));
}
@keyframes ruler { to { background-position-x: calc(400 * var(--u)); } }

/* ---------- Карточка-пример ---------- */
.hcard-wrap {
  --cu: var(--u);
  position: relative;
  width: calc(500 * var(--cu));
  transform-style: preserve-3d;
  perspective: 1400px;
}
.orbit {
  position: absolute;
  width: calc(853 * var(--cu));
  height: calc(853 * var(--cu));
  left: 50%; top: 50%;
  translate: -50% -50%;
  overflow: visible;
  pointer-events: none;
  z-index: -1;
}
.orbit__dash { transform-box: view-box; transform-origin: 50% 50%; animation: spin 90s linear infinite; }
.orbit__sat { transform-box: view-box; transform-origin: 50% 50%; animation: orbit 26s linear infinite; }
.orbit__globe { transform-box: view-box; transform-origin: 50% 50%; animation: breathe 9s ease-in-out infinite; }
@keyframes orbit { to { transform: rotate(-360deg); } }
@keyframes breathe { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.025); opacity: .8; } }

.hcard {
  margin: 0;
  position: relative;
  width: calc(500 * var(--cu));
  min-height: calc(740 * var(--cu));
  padding: calc(36 * var(--cu)) calc(25 * var(--cu)) calc(28 * var(--cu));
  border-radius: calc(40 * var(--cu));
  background: #fff;
  color: var(--card-ink);
  box-shadow: 0 calc(60 * var(--cu)) calc(90 * var(--cu)) calc(-40 * var(--cu)) rgba(80, 30, 10, .45), 0 2px 0 rgba(255, 255, 255, .6) inset;
  font-family: var(--font);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .6s var(--ease-out);
}
.hcard__head { display: flex; align-items: center; gap: calc(14 * var(--cu)); height: calc(52 * var(--cu)); padding-left: calc(4 * var(--cu)); }
.hcard__ava {
  width: calc(52 * var(--cu)); height: calc(52 * var(--cu));
  border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #FF9A6B, var(--card-accent));
  color: #fff; font-weight: 700; font-size: calc(22 * var(--cu));
  flex: 0 0 auto;
}
.hcard__who { display: flex; flex-direction: column; line-height: 1.25; flex: 1 1 auto; }
.hcard__who b { font-size: calc(20 * var(--cu)); }
.hcard__who small { font-size: calc(15 * var(--cu)); color: var(--card-ink-2); }
.hcard__badge {
  align-self: flex-start;
  margin-top: calc(8 * var(--cu));
  padding: 0 calc(16 * var(--cu));
  height: calc(36 * var(--cu));
  display: inline-flex; align-items: center;
  border-radius: 100px;
  background: #FFEDE5;
  color: var(--card-accent-deep);
  font-weight: 700;
  font-size: calc(14 * var(--cu));
}
.hcard__main { display: grid; grid-template-columns: calc(180 * var(--cu)) 1fr; gap: calc(50 * var(--cu)); margin-top: calc(62 * var(--cu)); padding-left: calc(5 * var(--cu)); }
.hcard__ring { position: relative; width: calc(180 * var(--cu)); height: calc(180 * var(--cu)); }
.hcard__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.hcard__ring-val { stroke-dasharray: 82 100; }
.hcard__score { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hcard__score b { font-family: var(--font-num); font-weight: 400; font-size: calc(48 * var(--cu)); line-height: 1; }
.hcard__score small { margin-top: calc(6 * var(--cu)); font-size: calc(15 * var(--cu)); color: var(--card-ink-2); }
.hcard__label { display: block; font-size: calc(14 * var(--cu)); color: var(--card-ink-2); line-height: 1.3; }
.hcard__value { display: block; font-size: calc(21 * var(--cu)); font-weight: 700; line-height: 1.35; white-space: nowrap; }
.hcard__chart svg { display: block; width: calc(226 * var(--cu)); height: calc(104 * var(--cu)); margin-top: calc(-1 * var(--cu)); overflow: visible; }
.hcard__line { stroke-dasharray: 100; }
.hcard__halo { transform-box: fill-box; transform-origin: center; animation: halo 2.4s var(--ease-out) infinite; }
@keyframes halo { 0% { transform: scale(.5); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
.hcard__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(13 * var(--cu)); margin-top: calc(50 * var(--cu)); }
.hcard__tile {
  height: calc(112 * var(--cu));
  padding: calc(18 * var(--cu)) calc(16 * var(--cu)) 0;
  border-radius: calc(20 * var(--cu));
  background: var(--card-tile);
}
.hcard__tile .hcard__value { margin-top: calc(6 * var(--cu)); }
.hcard__bar { display: block; margin-top: calc(10 * var(--cu)); height: calc(4 * var(--cu)); border-radius: 4px; background: #FFDCCB; overflow: hidden; }
.hcard__bar span { display: block; height: 100%; border-radius: inherit; background: var(--card-accent); transform-origin: left; transform: scaleX(var(--fill)); }
.hcard__rec {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: calc(20 * var(--cu));
  height: calc(100 * var(--cu));
  padding: 0 calc(22 * var(--cu)) 0 calc(20 * var(--cu));
  border-radius: calc(20 * var(--cu));
  background: #F7F3F1;
}
.hcard__rec svg { width: calc(212 * var(--cu)); height: calc(50 * var(--cu)); overflow: visible; margin-right: calc(30 * var(--cu)); }
.hcard__ecg-base { opacity: .35; stroke-dasharray: 100; }
.hcard__ecg { stroke-dasharray: 0 100; }
.hcard__task {
  display: flex; align-items: center; gap: calc(31 * var(--cu));
  margin-top: calc(20 * var(--cu));
  height: calc(80 * var(--cu));
  padding-left: calc(23 * var(--cu));
  border-radius: calc(20 * var(--cu));
  background: linear-gradient(90deg, var(--card-accent), #FF6A2B);
  color: #fff;
  box-shadow: 0 calc(16 * var(--cu)) calc(30 * var(--cu)) calc(-14 * var(--cu)) rgba(245, 80, 26, .7);
}
.hcard__task b { font-size: calc(17 * var(--cu)); }
.hcard__check {
  width: calc(32 * var(--cu)); height: calc(32 * var(--cu));
  border-radius: 50%;
  background: #fff;
  color: var(--card-accent);
  display: grid; place-items: center;
  flex: 0 0 auto;
}
.hcard__check svg { width: 62%; height: 62%; }
.hcard__check path { stroke-dasharray: 1; }

.hpill {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: calc(10 * var(--cu));
  height: calc(54 * var(--cu));
  padding: 0 calc(22 * var(--cu));
  border-radius: 100px;
  background: var(--pill-ink);
  color: #fff;
  font-weight: 700;
  font-size: calc(17 * var(--cu));
  white-space: nowrap;
  box-shadow: 0 calc(16 * var(--cu)) calc(30 * var(--cu)) calc(-14 * var(--cu)) rgba(27, 18, 16, .6);
}
.hpill--streak { left: calc(-147 * var(--cu)); top: calc(121 * var(--cu)); animation: bob 6s ease-in-out infinite; }
.hpill--vita { left: calc(295 * var(--cu)); top: calc(-40 * var(--cu)); animation: bob 7s ease-in-out -2s infinite; }
.hpill__dot { width: calc(12 * var(--cu)); height: calc(12 * var(--cu)); border-radius: 50%; background: var(--card-accent); position: relative; }
.hpill__dot--ok { background: #3DDC84; }
.hpill__dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 2s var(--ease-out) infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .8; } 80%, 100% { transform: scale(2.6); opacity: 0; } }
.hpill__typing { display: inline-flex; gap: 3px; margin-left: 2px; }
.hpill__typing i { width: 4px; height: 4px; border-radius: 50%; background: #fff; animation: typing 1.2s ease-in-out infinite; }
.hpill__typing i:nth-child(2) { animation-delay: .15s; }
.hpill__typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(calc(-10 * var(--cu))); } }

/* ---------- Анимация появления героя ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .hhero__title .line > span { animation: lineUp 1s var(--ease-out) both; }
  .js .hhero__title .line:nth-child(2) > span { animation-delay: .08s; }
  .js .hhero__title .line:nth-child(3) > span { animation-delay: .16s; }
  .js .hhero__lead { animation: fadeUp .9s var(--ease-out) .35s both; }
  .js .hhero__cta .btn { animation: fadeUp .9s var(--ease-out) both; }
  .js .hhero__cta .btn:first-child { animation-delay: .45s; }
  .js .hhero__cta .btn:last-child { animation-delay: .53s; }
  .js .hhero__note { animation: fadeUp .9s var(--ease-out) .6s both; }
  .js .hhero__stats { animation: lineIn 1.2s var(--ease-out) .6s both; }
  .js .hhero__stats > div { animation: fadeUp .9s var(--ease-out) both; }
  .js .hhero__stats > div:nth-child(1) { animation-delay: .7s; }
  .js .hhero__stats > div:nth-child(2) { animation-delay: .78s; }
  .js .hhero__stats > div:nth-child(3) { animation-delay: .86s; }
  .js .hhero__visual .hcard { animation: cardIn 1.3s var(--ease-out) .25s backwards; }
  .js .hhero__visual .orbit { animation: orbitIn 1.8s var(--ease-out) .1s both; }
  .js .hpill--streak { animation: popIn .8s var(--ease-spring) 1.3s backwards, bob 6s ease-in-out 2.1s infinite; }
  .js .hpill--vita { animation: popIn .8s var(--ease-spring) 1.5s backwards, bob 7s ease-in-out 2.3s infinite; }
  .js .hcard__ring-val { animation: ring 1.8s var(--ease-out) .9s both; }
  .js .hcard__line { animation: draw 1.6s var(--ease-out) 1.1s both; }
  .js .hcard__halo, .js .hcard__dot { animation-delay: 2.4s; }
  .js .hcard__dot { animation: popIn .5s var(--ease-spring) 2.4s both; transform-box: fill-box; transform-origin: center; }
  .js .hcard__tile { animation: fadeUp .7s var(--ease-out) both; animation-delay: calc(1.1s + var(--i) * .1s); }
  .js .hcard__bar span { animation: bar 1.2s var(--ease-out) both; animation-delay: calc(1.4s + var(--i) * .12s); }
  .js .hcard__rec { animation: fadeUp .7s var(--ease-out) 1.45s both; }
  .js .hcard__ecg-base { animation: draw 1.4s var(--ease-out) 1.5s both; }
  .js .hcard__ecg { animation: ecg 2.6s linear 2.4s infinite; }
  .js .hcard__task { animation: fadeUp .7s var(--ease-out) 1.6s both; }
  .js .hcard__check { animation: popIn .6s var(--ease-spring) 2.2s both; }
  .js .hcard__check path { animation: draw .6s var(--ease-out) 2.5s both; }
  .js .hhero__ruler { animation: fadeIn 1s ease .9s both, ruler 40s linear infinite; }
}
@keyframes lineUp { from { transform: translateY(105%); } to { transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes lineIn { from { border-top-color: transparent; } }
@keyframes popIn { from { opacity: 0; transform: scale(.6) translateY(10px); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(60px) rotateX(14deg) rotateY(-10deg) scale(.94); } }
@keyframes orbitIn { from { opacity: 0; transform: scale(.85) rotate(-20deg); } }
@keyframes ring { from { stroke-dasharray: 0 100; } }
@keyframes draw { from { stroke-dashoffset: 100; } }
@keyframes bar { from { transform: scaleX(0); } }
@keyframes ecg {
  0% { stroke-dasharray: 0 100; stroke-dashoffset: 0; }
  15% { stroke-dasharray: 22 100; stroke-dashoffset: 0; }
  100% { stroke-dasharray: 22 100; stroke-dashoffset: -100; }
}


/* ---------- Герой: мобильная версия (393) ---------- */
@media (max-width: 1023px) {
  .hhero {
    grid-template-columns: 1fr;
    min-height: 0;
    text-align: center;
    padding-bottom: calc(40 * var(--u));
  }
  .hhero__copy { padding-top: calc(26 * var(--u)); }
  .hhero__title { font-size: clamp(28px, 8vw, 34px); letter-spacing: -0.03em; line-height: 1.08; }
  .hhero__title .line { display: block; overflow: visible; }
  .hhero__title .line > span { display: inline; }
  .hhero__title .line:not(:last-child)::after,
  .hhero__title .line:nth-child(2)::after { content: none; white-space: normal; }
  .hhero__lead { margin-top: calc(14 * var(--u)); font-size: max(16px, calc(16 * var(--u))); line-height: 1.3; max-width: none; }
  .hhero__cta { flex-direction: column; gap: calc(10 * var(--u)); margin-top: calc(40 * var(--u)); }
  .btn--xl { height: calc(80 * var(--u)); font-size: max(17px, calc(18 * var(--u))); }
  .hhero__cta .btn:first-child, .hhero__cta .btn:last-child { width: 100%; }
  .hhero__note { margin: calc(26 * var(--u)) 0 0; font-size: max(15px, calc(16 * var(--u))); }
  .hhero__stats {
    width: auto;
    margin-top: calc(40 * var(--u));
    padding: calc(24 * var(--u)) calc(22 * var(--u)) 0;
    grid-template-columns: 1fr 1fr;
    row-gap: calc(18 * var(--u));
    column-gap: calc(12 * var(--u));
    text-align: left;
  }
  .hhero__stats dt { font-size: calc(30 * var(--u)); }
  .hhero__stats dd { font-size: max(13px, calc(12 * var(--u))); margin-top: calc(4 * var(--u)); }
  .hhero__visual { padding-top: calc(86 * var(--u)); display: flex; justify-content: center; }
  .hhero__ruler { position: absolute; top: auto; bottom: auto; margin-top: calc(-66 * var(--u)); left: 0; right: 0; }
  .hhero__visual .hhero__ruler { display: none; }
  .hcard-wrap { --cu: calc(var(--u) * .7); }
  .orbit { width: calc(718 * var(--cu)); height: calc(718 * var(--cu)); }
  .hpill { display: none; }
  .hcard__score b { font-size: calc(34 * var(--cu)); }
  .hcard__label, .hcard__score small, .hcard__who small { font-size: calc(15 * var(--cu)); }
}
@media (max-width: 1023px) {
  .hhero__ruler { position: relative; grid-row: 2; height: calc(20 * var(--u)); margin: calc(36 * var(--u)) 0 0; bottom: auto; }
  .hhero__ruler span { left: 0; }
  .hhero__visual { grid-row: 3; padding-top: calc(46 * var(--u)); }
}

/* ---------- Герой страницы «Партнёрам» ---------- */
.phero {
  width: var(--wrap);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 48px;
  align-items: center;
  padding: calc(60 * var(--u)) 0 calc(110 * var(--u));
  color: #fff;
}
.phero h1 { color: #fff; font-size: max(34px, calc(64 * var(--u))); line-height: 1.04; letter-spacing: -0.04em; font-weight: 700; margin: 0 0 20px; overflow-wrap: normal; word-break: normal; }
.phero__lead { font-size: max(17px, calc(24 * var(--u))); line-height: 1.35; color: #fff; max-width: 36em; }
.phero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.phero__cta .btn { min-width: min(100%, 280px); }
.phero__trust { margin-top: 20px; opacity: .92; }
.phero__media { position: relative; justify-self: center; width: min(100%, calc(520 * var(--u))); aspect-ratio: 1; min-width: 240px; }
.phero__media img { position: relative; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 8px solid rgba(255, 255, 255, .22); box-shadow: 0 40px 80px -40px rgba(27, 18, 16, .55); }
.phero__ring { position: absolute; inset: -9%; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .45); animation: spin 60s linear infinite; }
.phero__ring::after { content: ''; position: absolute; top: 50%; right: -7px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 8px rgba(255, 255, 255, .2); }
@media (prefers-reduced-motion: no-preference) {
  .js .phero__copy > * { animation: fadeUp .9s var(--ease-out) both; }
  .js .phero__copy > :nth-child(2) { animation-delay: .08s; }
  .js .phero__copy > :nth-child(3) { animation-delay: .16s; }
  .js .phero__copy > :nth-child(4) { animation-delay: .24s; }
  .js .phero__media img { animation: cardIn 1.2s var(--ease-out) .2s both; }
}
@media (max-width: 1023px) {
  .phero { grid-template-columns: 1fr; text-align: center; padding-top: 24px; gap: 32px; }
  .phero h1 { font-size: clamp(26px, 6.8vw, 34px); line-height: 1.16; letter-spacing: -0.03em; }
  .phero__lead { font-size: 17px; }
  .phero__media { order: -1; width: min(70vw, 300px); }
  .phero__cta { justify-content: center; }
  .phero__cta .btn { width: 100%; }
  .phero .eyebrow-pill { margin-inline: auto; }
}

/* =====================================================================
   СЕКЦИИ ГЛАВНОЙ
   ===================================================================== */
.page-home main.page, .page-partners main.page { padding-top: 24px; }
.hsec { margin: 0 0 clamp(72px, 9vw, 128px); }
.hsec:first-of-type { margin-top: clamp(48px, 6vw, 96px); }
.invite { margin-top: 24px; }
.shead { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.shead h2, .page-partners h2 { font-size: clamp(32px, 4vw, 56px); line-height: 1.04; letter-spacing: -0.035em; margin: 0; }
.shead__lead { margin: 16px 0 0; font-size: clamp(18px, 1.4vw, 22px); color: var(--ink-2); }
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  margin: 0 0 18px;
  padding: 4px 16px 4px 12px;
  border-radius: 100px;
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-weight: 700;
  font-size: 16px;
}
.eyebrow-pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.eyebrow-pill--light, .eyebrow-pill--glass { background: rgba(255, 255, 255, .18); color: #fff; }
.eyebrow-pill--light::before, .eyebrow-pill--glass::before { background: #fff; }

.steps--num { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: none; }
@media (min-width: 800px) { .steps--num { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.step {
  position: relative;
  padding: 28px 26px 30px;
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.step::after {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 160px; height: 160px;
  border-radius: 50%;
  background: var(--brand-soft);
  transition: transform .7s var(--ease-out);
}
.step:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -36px rgba(27, 18, 16, .35); }
.step:hover::after { transform: scale(1.5); }
.step > * { position: relative; z-index: 1; }
.step__n { display: block; font-family: var(--font-num); font-size: 44px; line-height: 1; color: var(--brand); margin-bottom: 28px; }
.step h3 { font-size: 24px; margin-bottom: 10px; }
.step p { color: var(--ink-2); margin: 0; }

.vita-intro__grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .vita-intro__grid { grid-template-columns: .85fr 1.15fr; gap: 64px; } }
.vita-intro__photo {
  --cu: var(--u);
  position: relative;
  border-radius: 40px;
  overflow: hidden;
  max-width: 520px;
}
.vita-intro__photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}
.page-home .vita-intro__photo .hpill { animation: none; opacity: 1; }
@media (max-width: 1023px) {
  .vita-intro__photo .hpill { display: inline-flex; max-width: 78%; }
}
.vita-intro__photo .hpill--vita { left: 4%; top: 7%; }
.vita-intro__photo .hpill--note { left: auto; right: 4%; bottom: 8%; top: auto; }
.chat-demo { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.bubble { max-width: 34em; padding: 16px 20px; border-radius: 24px; margin: 0; font-size: 18px; line-height: 1.5; box-shadow: var(--shadow); }
.bubble--user { align-self: flex-end; background: var(--brand); color: var(--on-brand); border-bottom-right-radius: 8px; }
.bubble--vita { align-self: flex-start; background: var(--card); border: 0; border-bottom-left-radius: 8px; position: relative; padding-left: 72px; }
.bubble--vita::before { content: ''; position: absolute; left: 16px; top: 16px; width: 40px; height: 40px; border-radius: 50%; background: url('/img/vita-avatar-orange.webp') center / cover; }
.bubble--typing { display: none; align-self: flex-start; gap: 5px; padding: 18px 20px; background: var(--card); border-bottom-left-radius: 8px; }
.bubble--typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink-2); animation: typing 1.2s ease-in-out infinite; }
.bubble--typing i:nth-child(2) { animation-delay: .15s; }
.bubble--typing i:nth-child(3) { animation-delay: .3s; }
.js .chat-demo.is-typing .bubble--typing { display: inline-flex; }
.js .chat-demo:not(.is-done) .bubble--vita { display: none; }
.js .chat-demo.is-done .bubble--vita { animation: fadeUp .7s var(--ease-out) both; }

.day-grid { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .day-grid { grid-template-columns: 1fr 1fr; gap: 64px; } }
.day-grid__text { font-size: 20px; color: var(--ink-2); max-width: 30em; }
.day-demo { padding: 32px 28px; border-radius: 32px; box-shadow: 0 40px 80px -50px rgba(27, 18, 16, .45); background: var(--card); }
.day-demo__kicker { color: var(--brand-ink); font-weight: 700; margin-bottom: 8px; }
.day-demo h3 { font-size: clamp(24px, 2.2vw, 30px); }
.day-demo .seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 20px 0 12px; }
.seg__btn {
  min-height: 60px !important;
  border-radius: 18px !important;
  border: 2px solid var(--line) !important;
  background: var(--surface-2) !important;
  color: var(--ink) !important;
  font: 700 18px/1.1 var(--font) !important;
  cursor: pointer;
  transition: transform .3s var(--ease-spring), background-color .25s, border-color .25s !important;
}
.seg__btn:hover { border-color: var(--brand) !important; }
.seg__btn.is-on { background: var(--brand) !important; border-color: var(--brand) !important; color: var(--on-brand) !important; transform: scale(1.04); }

.about__grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .about__grid { grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: start; } }
.about__text { font-size: clamp(19px, 1.6vw, 24px); line-height: 1.5; margin: 0; }
.about__facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.about__facts li { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow); border-left: 6px solid var(--brand); }
.about__facts b { font-size: 20px; }
.about__facts span { color: var(--ink-2); }

.test-card {
  display: grid;
  gap: 24px;
  align-items: center;
  padding: clamp(28px, 4vw, 56px);
  border-radius: 40px;
  background: var(--night);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.test-card::before { content: ''; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, var(--hero-bg) 0%, transparent 70%); opacity: .55; transition: background .6s; }
.test-card > * { position: relative; }
.test-card h2 { color: #fff; font-size: clamp(28px, 3vw, 44px); }
.test-card p { color: rgba(255, 255, 255, .86); max-width: 40em; }
@media (min-width: 900px) { .test-card { grid-template-columns: 1fr auto; } .test-card .btn { min-width: 300px; min-height: 72px; } }

/* Тарифы */
.plans { gap: 20px; }
.plans.is-loading { min-height: 320px; }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 32px 28px !important;
  border-radius: 32px !important;
  border: 2px solid transparent;
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .3s;
}
.plan:hover { transform: translateY(-6px); box-shadow: 0 34px 70px -40px rgba(27, 18, 16, .45); }
.plan h3 { font-size: 22px; }
.plan .plan__price { font-family: var(--font-num); font-weight: 400; font-size: clamp(32px, 3vw, 42px); letter-spacing: -0.02em; margin: 16px 0 4px; }
.plan > p:last-child { margin-top: auto; padding-top: 16px; margin-bottom: 0; }
.plan > p:last-child .btn { width: 100%; min-height: 60px; }
.plan--rec { border-color: var(--brand) !important; background: linear-gradient(180deg, var(--brand-soft), var(--card) 45%) !important; }
.plan--rec::before { content: 'Выгоднее'; position: absolute; top: -14px; left: 28px; padding: 4px 14px; border-radius: 100px; background: var(--brand); color: var(--on-brand); font-weight: 700; font-size: 15px; }

/* FAQ */
.faq__list { display: grid; gap: 12px; max-width: 900px; }
.faq details {
  margin: 0;
  padding: 0;
  border-radius: 24px;
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: box-shadow .3s;
  interpolate-size: allow-keywords;
}
.faq details::details-content { height: 0; overflow: hidden; transition: height .45s var(--ease-out), content-visibility .45s allow-discrete; }
.faq details[open]::details-content { height: auto; }
.faq summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 14px 24px;
  font-size: 20px;
  font-weight: 700;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath d='M8 2v12M2 8h12' stroke='%231C1A22' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center no-repeat;
  transition: transform .4s var(--ease-spring), background-color .3s;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--brand); }
.faq__body { padding: 0 24px 22px; color: var(--ink-2); }
.faq__body p { margin: 0; }

/* CTA-блок */
.promo.promo--accent {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(48px, 7vw, 110px) 20px;
  border-radius: 48px;
  background: var(--hero-bg);
  color: #fff;
  transition: background-color .6s;
}
.promo--accent::before { display: none; }
.promo--accent h2 { color: #fff; font-size: clamp(34px, 5vw, 72px); line-height: 1.02; letter-spacing: -0.04em; max-width: 14em; margin: 0 auto 16px; }
.promo--accent p { color: #fff; opacity: 1; font-size: clamp(18px, 1.5vw, 22px); }
.promo__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 32px; }
.promo__cta .btn { width: min(100%, 320px); }
.promo__glow {
  position: absolute;
  width: 640px; height: 640px;
  left: 50%; top: 50%;
  translate: -50% -50%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .35);
  box-shadow: 0 0 0 80px rgba(255, 255, 255, .05), 0 0 0 200px rgba(255, 255, 255, .04);
  animation: breathe 8s ease-in-out infinite;
  pointer-events: none;
}

/* Партнёрам: карточки и подписи */
.page-partners .steps { gap: 16px; }
.page-partners .steps .card { border-radius: 24px; padding: 24px; transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.page-partners .steps .card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -40px rgba(27, 18, 16, .4); }
.page-partners .steps .icon { color: var(--brand); width: 32px; height: 32px; margin-bottom: 12px; }
.page-partners section > h2 { margin: 0 0 24px; }
.page-partners details { border-radius: 20px; padding: 6px 20px; box-shadow: var(--shadow); }
.page-partners .networkers { background: var(--night); color: #fff; border-radius: 40px; padding: clamp(28px, 4vw, 56px); }
.page-partners .networkers h2, .page-partners .networkers p { color: #fff; }
.page-partners .networkers::before { display: none; }
.page-partners .promo { background: var(--hero-bg); border-radius: 40px; text-align: center; padding: clamp(40px, 6vw, 80px) 20px; }
.page-partners .promo::before { display: none; }
.page-partners .promo__plate { background: transparent; color: #fff; padding: 0; }
.page-partners .promo__plate h2 { color: #fff; font-size: clamp(32px, 4vw, 56px); }
.page-partners .promo__plate .hint { color: rgba(255, 255, 255, .9); }
.page-partners .promo__plate .btn--primary { background: #fff; border-color: #fff; color: #1A1A1A; min-width: min(100%, 300px); min-height: 64px; }

/* ---------- Появление при прокрутке ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}

/* =====================================================================
   ПОДВАЛ
   ===================================================================== */
.site-footer {
  width: auto;
  max-width: none;
  margin: clamp(64px, 8vw, 120px) 0 0;
  padding: clamp(48px, 6vw, 80px) 0 calc(28px + env(safe-area-inset-bottom));
  background: var(--foot-bg);
  color: rgba(255, 255, 255, .78);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  font-size: 16px;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: '';
  position: absolute;
  left: -10%; right: -10%; top: 0;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--hero-bg), transparent);
  opacity: .9;
  transition: background .6s;
}
.footer__inner {
  width: min(100% - 32px, 1200px);
  margin-inline: auto;
  display: grid;
  gap: 36px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .footer__inner { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .footer__inner { grid-template-columns: 1.3fr .8fr 1.2fr 1fr; gap: 48px; } }
.footer__logo img { width: 150px; height: auto; display: block; margin-bottom: 18px; }
.footer__about { max-width: 26em; margin-bottom: 22px; }
.footer__label { margin: 0 0 10px; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .55); }
.footer__title { margin: 0 0 14px; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .55); font-weight: 700; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.site-footer a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; min-height: 40px; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 8px) / 0 1px no-repeat; transition: background-size .4s var(--ease-out), color .2s; }
.site-footer a:hover { background-size: 100% 1px; }
.footer__logo { min-height: 0 !important; background: none !important; }
.footer__mail { font-size: 20px; font-weight: 700; }
.footer__note { font-size: 15px; color: rgba(255, 255, 255, .6); }
.site-footer p { margin: 0 0 8px; }
.footer__bottom {
  width: min(100% - 32px, 1200px);
  margin: 40px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  font-size: 15px;
  color: rgba(255, 255, 255, .6);
}
.theme-cabinet .site-footer { margin-bottom: 0; padding-bottom: calc(110px + env(safe-area-inset-bottom)); }
@media (min-width: 1024px) { .theme-cabinet .site-footer { padding-bottom: 32px; } }

/* =====================================================================
   ВСПЛЫВАЮЩЕЕ: cookie, модальные окна, тосты
   ===================================================================== */
.cookiebar {
  left: 16px; right: 16px; bottom: 16px;
  max-width: 420px;
  padding: 20px 20px calc(18px + env(safe-area-inset-bottom));
  border: 0;
  border-radius: 28px;
  background: var(--card);
  box-shadow: 0 30px 80px -30px rgba(27, 18, 16, .5), 0 0 0 1px rgba(27, 18, 16, .04);
  animation: sheetUp .7s var(--ease-out) .8s both;
}
.cookiebar p { font-size: 16px; line-height: 1.45; }
.cookiebar__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cookiebar__actions .btn { width: 100%; min-height: 52px; padding: 10px 12px; font-size: 16px; }
.cookiebar__actions a { grid-column: 1 / -1; justify-self: center; min-height: 40px; display: inline-flex; align-items: center; }
body:has(.cookiebar:not([hidden])) { padding-bottom: 0; }
@media (max-width: 520px) { .cookiebar { left: 8px; right: 8px; bottom: 8px; max-width: none; } }
@keyframes sheetUp { from { opacity: 0; transform: translateY(40px) scale(.97); } }

.modal {
  background: rgba(20, 17, 26, .45);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: fadeIn .3s ease both;
}
.modal__card {
  border-radius: 32px;
  padding: 28px 24px;
  width: min(100%, 480px);
  box-shadow: 0 40px 100px -30px rgba(20, 17, 26, .6);
  animation: modalIn .5s var(--ease-spring) both;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.94); } }
@media (max-width: 520px) {
  .modal { place-items: end center; padding: 0; }
  .modal__card { width: 100%; border-radius: 32px 32px 0 0; padding-bottom: calc(24px + env(safe-area-inset-bottom)); animation: sheetUp .5s var(--ease-out) both; }
}
.toast {
  border-radius: 100px;
  padding: 14px 22px;
  font-weight: 600;
  box-shadow: 0 20px 40px -16px rgba(20, 17, 26, .5);
  animation: toastIn .5s var(--ease-spring) both;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 20px) scale(.9); } }

/* Формы на публичных страницах */
.theme-auth .auth-card h1, .theme-auth .auth-card h2 { letter-spacing: -0.03em; }
.theme-auth .auth-card h1 { font-size: clamp(28px, 3vw, 40px); }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 4px var(--brand-soft); transition: box-shadow .2s; }
.field input, input[type=email], input[type=password], input[type=text], input[type=tel], select, textarea { border-radius: 16px; }

/* Юридические страницы внутри белой карточки */
.topband--public:not(.topband--hero) + main .legal h1 { font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -0.03em; }

/* Переход между цветами (View Transitions API) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { z-index: 9999; }

@media (prefers-reduced-motion: reduce) {
  .orbit__dash, .orbit__sat, .orbit__globe, .hpill, .hhero__ruler, .topband::before,
  .step__ico .draw, .step__ico .pop, .step__smile, .step__dots, .step__sheet,
  .vita-intro__photo img, .plan--trial::after,
  .plan--rec::before, .promo__bit, .promo__float, .orbit--bg, .promo__cta .btn--light::after,
  .promo__title .line > span { animation: none !important; }
  .js .step .draw, .js .step .pop, .js .step .step__smile { stroke-dashoffset: 0; }
  .js .promo__title .line > span, .js .steps__line, .js .steps__runner { transform: none; }
  .mnav { transition: none; }
}

/* biocode.css задаёт .site-footer nav{display:flex} — в новом подвале колонки блочные */
.site-footer nav.footer__col { display: block; margin: 0; }
@media (max-width: 899px) {
  .vita-intro__photo { max-width: 420px; margin-inline: auto; }
}
/* Внешний спрайт icons.svg: fill/stroke корня не наследуются в <use> — задаём явно */
svg.icon { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; color: var(--brand); }

/* =====================================================================
   Главная: движение ниже первого экрана
   ===================================================================== */
.step__ico {
  display: block;
  width: 60px;
  height: 60px;
  margin: 0 0 8px;
  overflow: visible;
  perspective: 240px;
}
.step__ico .draw,
.step__ico .pop,
.step__smile {
  fill: none;
  stroke: var(--brand);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.step__dots circle { fill: var(--brand); }
.step__n { margin-bottom: 18px; }
.js .step.is-in:hover { transform: translateY(-6px); }

.page-home .plan--trial {
  grid-column: 1 / -1;
  background: var(--hero-bg) !important;
  color: #fff !important;
  border-color: transparent !important;
  overflow: hidden;
}
.page-home .plan--trial .plan__trial-title {
  margin: 0;
  color: #fff;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.page-home .plan--trial .plan__trial-note {
  margin: 8px 0 0;
  color: #fff;
  font-size: 18px;
  line-height: 1.35;
  font-weight: 500;
}
.page-home .plan--trial .btn { width: min(100%, 320px); min-height: 60px; margin-top: 8px; }
.page-home .plan--trial::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 36%, rgba(255, 255, 255, .34) 50%, transparent 64%);
  transform: translateX(-130%);
  pointer-events: none;
}
.page-home #home-offers.plans { padding-top: 8px; gap: 32px; }
.page-home .plan__was s { text-decoration: line-through; }
.page-home .plan--rec,
.page-home .plan--rec:hover { transform: translateY(-8px); }
.page-home .plan--rec {
  box-shadow: 0 28px 50px -30px color-mix(in srgb, var(--brand) 70%, transparent);
}
.page-home .plan--rec:hover { transform: translateY(-12px); }
.page-home .plan--rec::before { transform-origin: 20% 50%; }

.page-home .promo__sky { z-index: 0; }
.promo__sky { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.promo__sky .orbit { width: min(980px, 150%); height: auto; opacity: .5; }
.promo__title, .page-home .promo__lead, .promo__cta { position: relative; z-index: 2; }
.page-home .promo__lead {
  color: #fff;
  opacity: 1;
  font-weight: 500;
}
.promo__bit {
  position: absolute;
  bottom: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .75);
  left: calc(8% + var(--i) * 12%);
}
.promo__float { display: none; }
.promo__cta .btn--light { position: relative; z-index: 1; }
.promo__cta .btn--light::after {
  content: '';
  position: absolute;
  inset: 6px;
  z-index: -1;
  border-radius: inherit;
  box-shadow: 0 16px 36px rgba(255, 255, 255, .55);
  opacity: .3;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .js .step .draw,
  .js .step .pop,
  .js .step .step__smile { stroke-dasharray: 1; stroke-dashoffset: 1; }
  .js .step.is-in .draw { animation: strokeIn .9s var(--ease-out) forwards; }
  .js .step.is-in .pop { animation: strokeIn .45s var(--ease-out) .75s forwards; }
  .js .step.is-in .step__sheet {
    transform-box: fill-box;
    transform-origin: 50% 0;
    animation: pageFlip .9s var(--ease-out) both;
  }
  .js .step.is-in .step__dots circle {
    transform-box: fill-box;
    transform-origin: center;
    animation: dotHop .5s var(--ease-out) 2 both;
  }
  .js .step.is-in .step__dots circle:nth-child(2) { animation-delay: .14s; }
  .js .step.is-in .step__dots circle:nth-child(3) { animation-delay: .28s; }
  .js .step.is-in .step__dots { animation: dotsAway .25s var(--ease-out) 1.35s forwards; }
  .js .step.is-in .step__smile { animation: strokeIn .45s var(--ease-out) 1.4s forwards; }
  .vita-intro__photo img { animation: vitaBreath 6s var(--ease-out) infinite; animation-play-state: paused; }
  .vita-intro__photo.is-live img { animation-play-state: running; }
  .vita-intro__photo .orbit__dash,
  .vita-intro__photo .orbit__sat,
  .vita-intro__photo .orbit__globe,
  .vita-intro__photo .hpill,
  .vita-intro__photo .hpill__typing i,
  .vita-intro__photo .hpill__dot::after { animation-play-state: paused; }
  .page-home #pricing.is-live .plan--trial::after { animation: trialShine 6s var(--ease-out) infinite; }
  .promo__sky .orbit--bg,
  .promo__bit,
  .promo__cta .btn--light::after { animation-play-state: paused; }
  .promo.is-live .promo__cta .btn--light::after { animation: btnGlow 3s var(--ease-out) infinite; animation-play-state: running; }
  .js .promo__title .line { display: block; overflow: hidden; }
  .js .promo__title .line > span { display: inline-block; transform: translateY(110%); }
  .js .promo.is-in .promo__title .line > span { animation: lineUp .9s var(--ease-out) both; }
  .js .promo.is-in .promo__title .line:nth-child(2) > span { animation-delay: .12s; }
}
@media (min-width: 800px) and (prefers-reduced-motion: no-preference) {
  .vita-intro__photo.is-live .orbit__dash,
  .vita-intro__photo.is-live .orbit__sat,
  .vita-intro__photo.is-live .orbit__globe,
  .vita-intro__photo.is-live .hpill__typing i,
  .vita-intro__photo.is-live .hpill__dot::after { animation-play-state: running; }
  .vita-intro__photo.is-live .hpill { animation: bob 7s ease-in-out infinite; }
  .page-home #pricing.is-live .plan--rec::before { animation: badgeWobble 2.8s var(--ease-out) infinite; }
  .promo.is-live .orbit--bg { animation: spin 80s linear infinite; animation-play-state: running; }
  .promo.is-live .promo__bit { animation: promo-rise 9s var(--ease-out) infinite; animation-delay: calc(var(--i) * -1.15s); animation-play-state: running; }
}
@keyframes strokeIn { to { stroke-dashoffset: 0; } }
@keyframes pageFlip {
  0% { transform: rotateX(0); }
  42% { transform: rotateX(-12deg); }
  100% { transform: rotateX(0); }
}
@keyframes dotHop {
  0%, 100% { transform: translateY(0); opacity: .4; }
  40% { transform: translateY(-5px); opacity: 1; }
}
@keyframes dotsAway { to { opacity: 0; } }
@keyframes drawX { to { transform: scaleX(1); } }
@keyframes runX { to { transform: translateX(calc(100cqi - 12px)); } }
@keyframes vitaBreath {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}
@keyframes trialShine {
  0%, 64% { transform: translateX(-130%); }
  100% { transform: translateX(130%); }
}
@keyframes badgeWobble {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-3deg); }
}
@keyframes btnGlow {
  0%, 100% { opacity: .28; transform: scale(1); }
  50% { opacity: .9; transform: scale(1.05); }
}
@keyframes promo-rise {
  0% { transform: translateY(20px); opacity: 0; }
  18% { opacity: .85; }
  100% { transform: translateY(-460px); opacity: 0; }
}

/* =====================================================================
   Кабинет
   Внешний вид поверх biocode.css. Тексты, id и логика не здесь.
   ===================================================================== */

.topband--cabinet { min-height: calc(var(--head-top) + var(--head-h) + 28px); }
.site-header--cabinet .nav-pill {
  grid-template-columns: minmax(0, 1fr) auto;
}
.site-header--cabinet .logo { min-width: 0; }
.site-header--cabinet .logo img { max-width: 100%; }
.site-header--cabinet .site-header__actions {
  width: auto;
  justify-self: end;
  gap: 10px;
}
.site-header--cabinet .header-name {
  flex: 0 0 auto;
  color: var(--hero-ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
  overflow-wrap: normal;
}
@media (max-width: 1023px) {
  .site-header--cabinet .logo { min-width: 96px; }
  .site-header--cabinet .logo img {
    width: 96px;
    min-width: 96px;
    max-width: none;
    height: auto;
  }
}
@media (max-width: 480px) {
  .site-header--cabinet .nav-pill { padding-inline: 12px; }
  .site-header--cabinet .header-name { font-size: 16px; }
  .header-help { padding: 6px 12px; }
}
.site-header--cabinet .header-avatar img,
.site-header--cabinet .header-avatar__empty {
  width: 44px;
  height: 44px;
  border: 2px solid var(--hero-ink);
  background-color: var(--hero-glass-2);
}

/* Помощь в шапке — отдельный блок, его легко убрать целиком. */
.header-help-wrap { position: relative; flex: 0 0 auto; }
.header-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 48px;
  min-height: 48px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--card);
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
}
.header-help .nav-ico { color: var(--brand); width: 22px; height: 22px; }
.site-header--cabinet button.header-help-hint {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 5;
  width: max-content;
  max-width: min(240px, 70vw);
  min-height: 0;
  margin: 0;
  padding: 12px 14px;
  border: 0;
  border-radius: var(--r-md);
  background: var(--ink);
  color: var(--on-dark);
  font: 600 16px/1.3 var(--font);
  text-align: left;
  white-space: normal;
  cursor: pointer;
  box-shadow: var(--shadow);
  animation: helpHintIn .35s var(--ease-out) both;
}
@keyframes helpHintIn { from { opacity: 0; transform: translateY(-6px); } }
@media (prefers-reduced-motion: reduce) {
  .header-help-hint { animation: none; }
}
@media (max-width: 400px) {
  .site-header--cabinet .header-name { display: none; }
}
.theme-cabinet .cab-panel,
.theme-cabinet .cab-panel h1,
.theme-cabinet #agreement-block,
.theme-cabinet #f h2 {
  scroll-margin-top: calc(var(--head-top) + var(--head-h) + 12px);
}

.theme-cabinet .card,
.theme-cabinet .modal__card,
.theme-auth .auth-card,
.theme-public main.page {
  border-radius: var(--r-card);
}
.theme-cabinet .eyebrow { color: var(--brand-ink); font-weight: 700; }
.theme-cabinet .footer__label,
.theme-cabinet .accent-switch--footer { display: none; }
.accent-switch--profile .accent-switch__dot { --size: 36px; }

.theme-cabinet .tabbar {
  overflow-x: hidden;
  height: auto;
  min-height: calc(84px + env(safe-area-inset-bottom));
  align-items: stretch;
  background: color-mix(in srgb, var(--card) 88%, transparent);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.theme-cabinet .tabbar a {
  flex: 1 1 0;
  min-width: 0;
  white-space: nowrap;
  hyphens: none;
  overflow-wrap: normal;
  font-size: 15px;
  line-height: 1.15;
  padding: 8px 2px 10px;
}
.theme-cabinet .page--cabinet { padding-bottom: calc(184px + env(safe-area-inset-bottom)); }
.theme-cabinet .cab-panel > .row { margin-bottom: 0; }
.cab-help-line { margin: 8px 0 0; }
.cab-help-line a {
  color: var(--brand-ink);
  font-size: 16px;
  font-weight: 700;
  text-decoration: underline;
}
#upgrade-card .btn { min-height: 52px; width: 100%; }
.help-entry {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 72px;
  color: var(--ink);
  text-decoration: none;
}
.help-entry .nav-ico { flex: 0 0 auto; color: var(--brand); width: 28px; height: 28px; }
.help-entry__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.help-entry__body strong { font-size: 18px; }
.help-entry__body span { font-size: 16px; color: var(--ink); }
.help-entry__go {
  margin-left: auto;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: var(--r-pill);
  background: var(--brand-soft);
  color: var(--brand-ink);
  font-size: 22px;
  font-weight: 700;
}
.theme-cabinet .tabbar a,
.theme-cabinet .cabinet-nav a {
  transition: color .25s var(--ease-out), background-color .25s var(--ease-out);
}
.theme-cabinet .tabbar a.is-active,
.theme-cabinet .tabbar a.is-active .tabbar__icon,
.theme-cabinet .cabinet-nav a.is-active { color: var(--brand-ink); }
.theme-cabinet .tabbar a { position: relative; }
.theme-cabinet .tabbar a::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 6px;
  height: 3px;
  border-radius: 3px;
  background: var(--brand);
  transform: scaleX(0);
  transition: transform .3s var(--ease-out);
}
.theme-cabinet .tabbar a.is-active::after { transform: scaleX(1); }
@media (min-width: 1024px) {
  .theme-cabinet .cabinet-nav {
    position: sticky;
    top: calc(var(--head-top) + var(--head-h) + 12px);
    align-self: start;
    padding: 12px;
    background: var(--card);
    border-radius: var(--r-card);
    box-shadow: var(--shadow);
  }
  .theme-cabinet .cabinet-nav a.is-active { background: var(--brand-soft); }
}

.theme-cabinet .cab-hello { overflow-wrap: normal; }
.theme-cabinet .today-hello > div { min-width: 0; }
.theme-cabinet .today-hello__vita {
  width: 96px;
  height: 96px;
  border: 4px solid var(--card);
  box-shadow: 0 0 0 4px var(--brand-soft);
}
@media (max-width: 480px) {
  .theme-cabinet .cab-hello { font-size: 30px; }
}
.theme-cabinet #today > .card--accent {
  padding: 32px 28px;
  border-radius: var(--r-lg);
}
.theme-cabinet #today > .card--accent h2 {
  font-size: clamp(18px, 4.8vw, 32px);
  line-height: 1.2;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}
.theme-cabinet .gs-q {
  border: 0;
  margin: 0 0 16px;
  padding: 0;
}
.theme-cabinet .gs-q legend {
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}
.theme-cabinet .checkin { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 800px) {
  .theme-cabinet .checkin { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.theme-cabinet .checkin .btn { min-height: 60px; border-radius: var(--r-md); }

.today-meters { display: flex; align-items: center; gap: 20px; margin: 8px 0 16px; }
.streak-ring { position: relative; width: 148px; height: 148px; flex: 0 0 auto; }
.streak-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.streak-ring__track { fill: none; stroke: var(--brand-soft); stroke-width: 3; }
.streak-ring__val { fill: none; stroke: var(--brand); stroke-width: 3; stroke-linecap: round; }
.streak-ring__num {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.streak-ring__num b {
  font-family: var(--font-num);
  font-weight: 400;
  font-size: 40px;
  line-height: 1;
  color: var(--ink);
}
.streak-ring__num small { margin-top: 4px; font-size: 16px; color: var(--ink-2); }
.theme-cabinet .hcard__bar,
.theme-cabinet .progress__track {
  height: 8px;
  margin-top: 0;
  border-radius: 4px;
  background: var(--brand-soft);
}
.theme-cabinet .hcard__bar span,
.theme-cabinet .progress__bar { background: var(--brand); }
.today-meters .hcard__bar,
.today-meters .progress { flex: 1 1 auto; min-width: 0; }
.theme-cabinet .path-streak {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 12px 0;
  font-size: 18px;
  color: var(--ink);
}
.theme-cabinet .path-streak::before {
  content: "";
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 8px solid var(--brand-soft);
  border-top-color: var(--brand);
  flex: 0 0 auto;
}
.theme-cabinet .path-cal { gap: 10px; grid-template-columns: repeat(7, minmax(0, 1fr)); }
/* 7 кружков по 44 px + промежутки не помещались в карточку на 390 px (страница уезжала вправо): кружок сжимается, не меньше 28 px */
.theme-cabinet .path-day { width: 100%; max-width: 44px; height: auto; aspect-ratio: 1; min-width: 28px; }
.theme-cabinet .path-habits { padding-left: 0; list-style: none; }
.theme-cabinet .path-habits li {
  margin: 0 0 8px;
  padding: 14px 16px;
  border-radius: var(--r-card);
  background: var(--surface-2);
  font-size: 18px;
}

.theme-cabinet .vita-log { gap: 12px; }
/* Figma 198:276 / 198:79: чат и карточка наставника. */
.theme-cabinet .vita-layout { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(240px, 1fr); gap: 24px; align-items: start; }
.theme-cabinet .vita-layout[hidden] { display: none; }
.vita-conversation { min-width: 0; padding: 24px; background: var(--card); border-radius: 24px; }
.vita-conversation__head { display: flex; align-items: center; gap: 16px; padding-bottom: 20px; margin-bottom: 24px; border-bottom: 1px solid var(--cab-line); }
.vita-conversation__head img, .vita-about > img { border-radius: 50%; object-fit: cover; }
.vita-conversation__head p { margin: 0; }
.vita-conversation__note { color: var(--cab-ink-2); font-size: 12px; margin: 12px 0 0; }
.vita-about { text-align: center; margin: 0; padding: 28px 24px; }
.vita-about h2 { font: 700 38px Caveat, cursive; margin: 0; }
.vita-about h3 { font-size: 18px; }
.vita-about p { font-size: 16px; }
.vita-about hr { border: 0; border-top: 1px solid var(--cab-line); margin: 24px 0; }
.vita-about .btn { display: flex; width: 100%; margin-top: 12px; background: var(--cab-peach-2); border-color: transparent; color: var(--cab-accent-deep); font-size: 16px; }
.theme-cabinet .vita-conversation .vita-bubble { max-width: 90%; font-size: 16px; box-shadow: none; }
.theme-cabinet .vita-conversation .vita-bubble--vita { background-color: var(--cab-peach); border: 1px solid var(--cab-peach-2); border-radius: 24px; }
.theme-cabinet .vita-conversation .vita-bubble--user { border-radius: 24px; }
.theme-cabinet .vita-conversation .vita-compose { background: var(--card); margin-top: 20px; border: 1px solid var(--cab-line); border-radius: 28px; padding: 8px; }
.theme-cabinet .vita-conversation .vita-compose textarea { flex: 1 1 160px; min-width: 0; background: transparent; border: 0; resize: vertical; min-height: 44px; }
.theme-cabinet .vita-conversation .vita-send { width: 44px; height: 44px; min-height: 44px; border-radius: 50%; }
/* Figma 198:178 / 198:428: структура по доступной первой линии API. */
.structure-back { color: var(--cab-accent-deep); font-weight: 700; }
.structure-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.structure-stats article { background: var(--card); border-radius: 24px; padding: 24px 32px; }
.structure-stats strong { display: block; font-size: 40px; line-height: 1.3; }
.structure-stats span { color: var(--cab-ink-2); }
.structure-tree { padding: 32px 24px; }
.structure-tree h2 { font-size: 22px; }
.structure-sponsor { display: flex; flex-direction: column; gap: 4px; padding: 16px 24px; max-width: 380px; border: 1px solid var(--cab-line); border-radius: 24px; background: var(--card); margin: 24px auto; }
.structure-self { max-width: 460px; margin: 24px auto 0; }
.structure-self .structure-person { border: 2px solid var(--brand); background: var(--cab-peach); }
.structure-person { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 16px; border: 1px solid var(--cab-line); border-radius: 20px; min-width: 0; background: var(--card); }
.structure-person strong { flex: 1; overflow-wrap: anywhere; }
.structure-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: var(--on-brand); font-size: 14px; font-weight: 700; }
.structure-status { background: var(--cab-locked); color: var(--cab-ink-2); border-radius: 30px; padding: 4px 12px; font-size: 14px; }
.structure-status.is-active { background: var(--cab-peach-2); color: var(--cab-accent-deep); }
.structure-branches { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; padding-top: 28px; margin-top: 28px; border-top: 1px solid var(--cab-line); position: relative; }
.structure-branches::before { content: ''; position: absolute; top: -28px; left: 50%; height: 28px; border-left: 1px solid var(--cab-line); }
.structure-empty { max-width: 760px; text-align: center; padding: 32px; }
.structure-empty__diagram { color: var(--cab-muted); padding: 4px 0 24px; font-size: 28px; }
.structure-empty__diagram span { display: grid; place-items: center; border: 2px solid var(--brand); border-radius: 50%; width: 60px; height: 60px; margin: 0 auto 24px; color: var(--cab-accent-deep); font-size: 16px; }
.structure-link { padding: 18px; border-radius: 20px; background: var(--cab-peach); border: 1px solid var(--cab-peach-2); overflow-wrap: anywhere; text-align: left; font-weight: 700; }
.structure-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.structure-actions > * { flex: 1; }
@media (max-width: 1100px) { .theme-cabinet .vita-layout { grid-template-columns: minmax(0, 1fr); } .vita-about { display: none; } }
@media (max-width: 600px) {
  .vita-conversation { padding: 20px 16px; }
  .vita-conversation__head { display: none; }
  .theme-cabinet .vita-conversation .vita-bubble { max-width: 94%; font-size: 16px; padding: 16px; }
  .theme-cabinet .vita-conversation .vita-bubble--vita { padding-left: 44px; background-size: 28px 28px; background-position: 8px 12px; }
  .structure-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .structure-stats article { padding: 20px; }
  .structure-stats strong { font-size: 36px; }
  .structure-tree, .structure-empty { padding: 24px 16px; }
  .structure-branches { grid-template-columns: minmax(0, 1fr); padding-left: 24px; border-left: 1px solid var(--cab-line); border-top: 0; }
  .structure-actions { flex-direction: column; }
}
.theme-cabinet .vita-bubble {
  max-width: min(34em, 100%);
  padding: 16px 20px;
  border-radius: 24px;
  font-size: 18px;
  box-shadow: var(--shadow);
}
.theme-cabinet .vita-bubble--user {
  background: var(--brand);
  color: var(--on-brand);
  border: 0;
  border-bottom-right-radius: 8px;
}
.theme-cabinet .vita-bubble--vita {
  display: block;
  border: 0;
  border-bottom-left-radius: 8px;
  padding-left: 72px;
  background: var(--card) url('/img/vita-avatar-orange.webp') 16px 16px / 40px 40px no-repeat;
}
.theme-cabinet .vita-bubble--typing {
  display: inline-flex;
  align-self: flex-start;
  gap: 6px;
  margin-right: auto;
  padding: 18px 22px;
  background: var(--card);
  border-bottom-left-radius: 8px;
}
.theme-cabinet .vita-bubble--typing i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ink-2);
  animation: typing 1.2s var(--ease-out) infinite;
}
.theme-cabinet .vita-bubble--typing i:nth-child(2) { animation-delay: .15s; }
.theme-cabinet .vita-bubble--typing i:nth-child(3) { animation-delay: .3s; }

.theme-cabinet .stat {
  border-radius: var(--r-card);
  padding: 20px 18px;
}
.theme-cabinet .stat__value,
.theme-cabinet .stat__value--sm,
.theme-public .price {
  font-family: var(--font-num);
  font-weight: 400;
  font-size: var(--fs-stat);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.theme-cabinet .stat--accent { background: var(--brand-soft); }
.theme-cabinet .refcard { border-radius: var(--r-card); }

.empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.empty:not(:has(img))::before {
  content: "";
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: var(--brand-soft) url('/img/vita-avatar-orange.webp') center / cover;
}
.empty img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; }
.empty .btn { min-width: min(100%, 240px); }

.is-loading:has(*) {
  color: inherit;
  background: none;
  min-height: 0;
  animation: none;
}
.is-loading:not(:has(*)) {
  position: relative;
  overflow: hidden;
  color: transparent;
  background: var(--line);
  animation: none;
}
.is-loading:not(:has(*))::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--card), transparent);
  transform: translateX(-100%);
  animation: skel 1.2s var(--ease-out) infinite;
}
@keyframes skel { to { transform: translateX(100%); } }

@media (max-width: 760px) {
  .theme-cabinet .lab-table,
  .theme-cabinet .lab-table tbody,
  .theme-cabinet .lab-table tr,
  .theme-cabinet .lab-table td { display: block; width: 100%; }
  .theme-cabinet .lab-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .theme-cabinet .lab-table tr {
    margin: 0 0 12px;
    padding: 8px 16px 12px;
    background: var(--card);
    border-radius: var(--r-card);
    box-shadow: var(--shadow);
  }
  .theme-cabinet .lab-table td { padding: 8px 0; }
  .theme-cabinet .lab-table td::before {
    content: "";
    display: block;
    margin-bottom: 4px;
    font-size: 16px;
    font-weight: 700;
    color: var(--ink-2);
  }
  .theme-cabinet .lab-table td:nth-child(1)::before { content: "Показатель"; }
  .theme-cabinet .lab-table td:nth-child(2)::before { content: "Значение"; }
  .theme-cabinet .lab-table td:nth-child(3)::before { content: "Единицы"; }
  .theme-cabinet .lab-table td:nth-child(4)::before { content: "Референс от"; }
  .theme-cabinet .lab-table td:nth-child(5)::before { content: "Референс до"; }
}

.lab-chart { width: 100%; max-width: 320px; height: auto; display: block; margin: 8px 0 16px; }
.lab-chart__line { stroke: var(--brand); stroke-width: 2; }
.lab-chart__dot { fill: var(--brand); }
.lab-chart__dot--gap { fill: var(--ink-2); }
.lab-dyn { margin: 0 0 16px; }

.theme-cabinet #qr-modal .modal__card { border-radius: var(--r-lg); text-align: center; }
.theme-cabinet #qr-slot svg { width: min(100%, 280px); height: auto; }

.pay-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 16px 0 12px; }
#offers.plans { grid-template-columns: 1fr; }
@media (min-width: 800px) {
  #offers.plans { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}
#offers .plan .btn { width: 100%; min-height: 60px; }
.welcome-partner { display: grid; gap: 20px; }
.welcome-points { margin: 0; padding-left: 1.2em; display: grid; gap: 10px; font-size: 18px; }
.welcome-actions { display: grid; gap: 12px; }
.welcome-actions .btn { min-height: 52px; }
@media (min-width: 720px) {
  .welcome-actions { grid-template-columns: 1fr 1fr; }
}
.partner-start__bar { margin-top: 12px; }
.partner-start__list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 12px; }
.partner-start__item { font-size: 18px; }
.partner-start__item .btn { min-height: 52px; margin-top: 8px; }
.partner-start__item.is-done { color: var(--ink-2); }
.partner-start--done { font-size: 18px; font-weight: 700; }
.sponsor-card__row { display: flex; gap: 12px; align-items: center; }
.sponsor-card__row img, .sponsor-card .partner-head__photo { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }

/* 320 px: подписи нижнего меню 13 px, чтобы пять пунктов помещались без обрезки */
@media (max-width: 340px) {
  .theme-cabinet .cabinet-nav a, .theme-cabinet .tabbar a { font-size: 13px; }
}

/* Баннер cookie над нижним меню кабинета (<1024px): меню остаётся доступным, пока баннер не принят */
:root { --tabbar-h: 76px; }
@media (max-width: 1023px) {
  body:has(.tabbar) .cookiebar { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 8px); }
}

/* общая правка: длинное содержимое модалок прокручивается, кнопки не уходят за экран (телефон) */
.modal__card { max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; }

/* ---------- «Мой путь» по макету (Figma eLeBaeHuREZglUyDbFq5aN, 20.10.2026) ---------- */
.theme-cabinet .pth { display: flex; flex-direction: column; gap: 16px; margin-bottom: 16px; }
.theme-cabinet .pth > * { margin: 0; min-width: 0; }
.theme-cabinet .pth .card { padding: 28px 32px; border: 0; box-shadow: none; }
.theme-cabinet .pth h2 { margin: 0; font-size: 24px; line-height: 1.2; font-weight: 700; letter-spacing: 0; color: var(--ink); }
.theme-cabinet .pth-eyebrow { margin: 0; font-size: 14px; font-weight: 500; color: var(--brand-ink); }
.theme-cabinet .pth-cap { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
.theme-cabinet .pth-note { margin: 12px 0 0; font-size: 14px; color: var(--ink-2); }
.theme-cabinet .pth-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.theme-cabinet .pth-head__note { font-size: 16px; font-weight: 500; color: var(--ink-2); text-align: right; }
.theme-cabinet .pth-outline { background: transparent; color: var(--ink); border: 1px solid var(--line); min-height: 52px; border-radius: var(--r-pill); font-weight: 500; }
.theme-cabinet .pth-soft { background: var(--brand-soft); color: var(--brand-ink); border: 0; min-height: 56px; border-radius: var(--r-pill); font-weight: 700; padding: 0 36px; }
.theme-cabinet .pth-paused { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.theme-cabinet .pth-paused p { margin: 0; }

/* цель */
.theme-cabinet .pth-goal { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "eyebrow badge" "title btn" "route btn" "segs btn"; column-gap: 24px; align-items: start; }
.theme-cabinet .pth-goal .pth-eyebrow { grid-area: eyebrow; }
.theme-cabinet .pth-badge { grid-area: badge; justify-self: end; margin: 0; padding: 10px 20px; border-radius: var(--r-pill); background: var(--ink); color: var(--on-dark); font-size: 14px; font-weight: 700; }
.theme-cabinet .pth-goal__title { grid-area: title; margin: 6px 0 12px !important; font-size: clamp(26px, 3vw, 36px) !important; line-height: 1.15 !important; }
.theme-cabinet .pth-goal__route { grid-area: route; margin: 0; font-size: 16px; font-weight: 500; color: var(--ink-2); }
.theme-cabinet .pth-segs { grid-area: segs; display: flex; gap: 8px; margin-top: 14px; max-width: 520px; }
.theme-cabinet .pth-seg { flex: 1 1 0; height: 4px; border-radius: 4px; background: var(--line); }
.theme-cabinet .pth-seg.is-on { background: var(--brand); }
.theme-cabinet .pth-goal .pth-soft { grid-area: btn; align-self: end; justify-self: end; margin-top: 10px; }

/* календарь и привычки */
.theme-cabinet .pth-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; }
.theme-cabinet .pth-rows { display: grid; gap: 14px; }
.theme-cabinet .pth-row { display: grid; grid-template-columns: 56px repeat(7, minmax(0, 1fr)); align-items: center; justify-items: center; gap: 4px; }
.theme-cabinet .pth-row__label { justify-self: start; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.theme-cabinet .pth-d { display: inline-flex; align-items: center; justify-content: center; width: 100%; max-width: 40px; aspect-ratio: 1; border-radius: 50%; box-sizing: border-box; color: var(--on-dark); }
.theme-cabinet .pth-d svg { width: 55%; height: 55%; }
.theme-cabinet .pth-d--full { background: var(--brand); }
.theme-cabinet .pth-d--half { border: 2px solid var(--brand); background: linear-gradient(90deg, var(--brand) 50%, transparent 50%); }
.theme-cabinet .pth-d--outline { border: 2px solid color-mix(in srgb, var(--ink-2) 45%, transparent); }
.theme-cabinet .pth-d--today { border: 2px dashed var(--brand); }
.theme-cabinet .pth-d--empty { width: 6px; height: 6px; max-width: 6px; background: color-mix(in srgb, var(--ink-2) 35%, transparent); }
.theme-cabinet .pth-d--mini { width: 14px; height: 14px; max-width: 14px; flex: 0 0 14px; }
.theme-cabinet .pth-d--mini.pth-d--empty { width: 6px; height: 6px; max-width: 6px; flex-basis: 6px; }
.theme-cabinet .pth-d--mini.pth-d--full, .theme-cabinet .pth-d--mini.pth-d--half { border-width: 2px; }
.theme-cabinet .pth-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px; font-size: 14px; color: var(--ink-2); }
.theme-cabinet .pth-leg { display: inline-flex; align-items: center; gap: 8px; }

.theme-cabinet .pth-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.theme-cabinet .pth-h { position: relative; display: flex; gap: 14px; padding: 0 0 18px; margin: 0; background: none; border-radius: 0; }
.theme-cabinet .pth-h:last-child { padding-bottom: 0; }
.theme-cabinet .pth-h::after { content: ""; position: absolute; left: 13px; top: 30px; bottom: 2px; width: 2px; background: var(--line); }
.theme-cabinet .pth-h:last-child::after { display: none; }
.theme-cabinet .pth-h--secured::after { background: var(--brand); }
.theme-cabinet .pth-h__node { flex: 0 0 28px; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }
.theme-cabinet .pth-h--secured .pth-h__node { background: var(--brand); color: var(--on-dark); }
.theme-cabinet .pth-h--current .pth-h__node { border: 2px solid var(--brand); background: var(--card); }
.theme-cabinet .pth-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.theme-cabinet .pth-h--locked .pth-h__node { background: var(--bg); color: color-mix(in srgb, var(--ink-2) 55%, transparent); }
.theme-cabinet .pth-h__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding-top: 2px; }
.theme-cabinet .pth-h__text strong { font-size: 17px; font-weight: 700; color: var(--ink); overflow-wrap: anywhere; }
.theme-cabinet .pth-h__text small { font-size: 14px; color: var(--ink-2); }
.theme-cabinet .pth-h--locked .pth-h__text strong { color: color-mix(in srgb, var(--ink-2) 55%, transparent); font-weight: 600; font-size: 16px; }

/* итоги месяца */
.theme-cabinet .pth-month { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); grid-template-areas: "title why" "stats why" "actions why"; column-gap: 48px; row-gap: 20px; }
.theme-cabinet .pth-month > h2 { grid-area: title; }
.theme-cabinet .pth-month__stats { grid-area: stats; display: flex; gap: 48px; flex-wrap: wrap; }
.theme-cabinet .pth-big { margin: 0; font-size: 36px; font-weight: 700; line-height: 1.1; color: var(--ink); white-space: nowrap; }
.theme-cabinet .pth-month__why { grid-area: why; display: grid; gap: 20px; align-content: start; }
.theme-cabinet .pth-month__why > div + div { padding-top: 20px; border-top: 1px solid var(--line); }
.theme-cabinet .pth-month__why p:not(.pth-eyebrow) { margin: 4px 0 0; font-size: 16px; font-weight: 500; color: var(--ink); }
.theme-cabinet .pth-month__actions { grid-area: actions; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.theme-cabinet .pth-month__actions .btn { width: auto; }
.theme-cabinet .pth-month #month-mini { grid-column: 1 / -1; }

/* как я восстанавливаюсь */
.theme-cabinet .pth-sub { margin: -8px 0 24px; font-size: 16px; color: var(--ink-2); }
.theme-cabinet .pth-test__body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 32px; align-items: start; }
.theme-cabinet .pth-blocks { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.theme-cabinet .pth-b { display: grid; grid-template-columns: minmax(110px, 150px) 56px minmax(80px, 1fr) 72px 88px; align-items: center; gap: 12px; margin: 0; padding: 0; background: none; border-radius: 0; }
.theme-cabinet .pth-b__name { display: flex; flex-direction: column; min-width: 0; }
.theme-cabinet .pth-b__name strong { font-size: 18px; font-weight: 700; color: var(--ink); }
.theme-cabinet .pth-b__name small { font-size: 14px; color: var(--ink-2); line-height: 1.25; }
.theme-cabinet .pth-dots { display: inline-flex; gap: 4px; }
.theme-cabinet .pth-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink); }
.theme-cabinet .pth-bar { display: block; height: 8px; border-radius: 8px; background: var(--line); overflow: hidden; }
.theme-cabinet .pth-bar span { display: block; height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--orange-line), var(--brand)); }
.theme-cabinet .pth-b__score { font-size: 16px; font-weight: 600; color: var(--ink); white-space: nowrap; text-align: right; }
.theme-cabinet .pth-b__trend { display: inline-flex; align-items: center; gap: 8px; }
.theme-cabinet .pth-trend { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; }
.theme-cabinet .pth-trend--up { background: var(--ok-bg); color: var(--ok-ink); }
.theme-cabinet .pth-trend--same { background: var(--bg); color: var(--ink-2); }
.theme-cabinet .pth-trend--down { background: var(--brand-soft); color: var(--brand-ink); }
.theme-cabinet .pth-diff { font-size: 16px; font-weight: 600; color: var(--ink-2); }
.theme-cabinet .pth-diff--down { color: var(--brand-ink); }
.theme-cabinet .pth-next { padding: 24px; border-radius: var(--r-md); background: var(--bg); display: grid; gap: 4px; }
.theme-cabinet .pth-next__date { margin: 4px 0 0; font-size: 32px; font-weight: 700; line-height: 1.15; color: var(--ink); }
.theme-cabinet .pth-next .btn { margin-top: 16px; width: 100%; }
.theme-cabinet .pth-cta { margin: 20px 0 0; font-size: 16px; }
.theme-cabinet .pth-foot { margin: 20px 0 0; font-size: 14px; color: var(--ink-2); }
.theme-cabinet .pth-test--hidden { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 48px; padding-bottom: 48px; }
.theme-cabinet .pth-lock { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; background: var(--bg); color: var(--ink); margin-bottom: 16px; }
.theme-cabinet .pth-test--hidden h2 { font-size: 30px; margin-bottom: 12px; }
.theme-cabinet .pth-test__lead { margin: 0; font-size: 18px; font-weight: 500; color: var(--ink-2); }
.theme-cabinet .pth-test__hint { margin: 6px 0 24px; font-size: 16px; color: color-mix(in srgb, var(--ink-2) 75%, transparent); }
.theme-cabinet .pth-test__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.theme-cabinet .pth-test__actions .btn { min-width: 220px; }
#adaptation:not([hidden]) { margin-top: 8px; }

@media (max-width: 1023px) {
  .theme-cabinet .pth-grid { grid-template-columns: minmax(0, 1fr); }
  .theme-cabinet .pth-test__body { grid-template-columns: minmax(0, 1fr); }
  .theme-cabinet .pth-month { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "stats" "actions" "why"; }
}
@media (max-width: 760px) {
  .theme-cabinet .pth { gap: 12px; }
  .theme-cabinet .pth .card { padding: 20px; }
  .theme-cabinet .pth h2 { font-size: 20px; }
  .theme-cabinet .pth-goal { grid-template-columns: minmax(0, 1fr); grid-template-areas: "badge" "eyebrow" "title" "route" "segs" "btn"; }
  .theme-cabinet .pth-badge { justify-self: start; margin-bottom: 18px; padding: 8px 16px; }
  .theme-cabinet .pth-goal__title { margin: 4px 0 10px !important; font-size: 26px !important; }
  .theme-cabinet .pth-segs { max-width: none; }
  .theme-cabinet .pth-goal .pth-soft { justify-self: stretch; margin-top: 20px; width: 100%; }
  .theme-cabinet .pth-row { grid-template-columns: 44px repeat(7, minmax(0, 1fr)); gap: 2px; }
  .theme-cabinet .pth-head__note { font-size: 14px; }
  .theme-cabinet .pth-legend { gap: 6px 14px; font-size: 14px; }
  .theme-cabinet .pth-month__stats { gap: 28px; }
  .theme-cabinet .pth-big { font-size: 30px; }
  .theme-cabinet .pth-month__actions { flex-direction: column; align-items: stretch; }
  .theme-cabinet .pth-month__actions .btn { width: 100%; }
  .theme-cabinet .pth-b { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "name score trend" "bar bar bar"; row-gap: 8px; }
  .theme-cabinet .pth-b__name { grid-area: name; }
  .theme-cabinet .pth-dots { display: none; }
  .theme-cabinet .pth-bar { grid-area: bar; }
  .theme-cabinet .pth-b__score { grid-area: score; font-size: 14px; font-weight: 500; color: var(--ink-2); }
  .theme-cabinet .pth-b__trend { grid-area: trend; min-width: 78px; }
  .theme-cabinet .pth-next { padding: 20px; }
  .theme-cabinet .pth-next__date { font-size: 24px; }
  .theme-cabinet .pth-test--hidden { padding: 28px 20px; }
  .theme-cabinet .pth-test--hidden h2 { font-size: 24px; }
  .theme-cabinet .pth-test__actions { flex-direction: column; align-self: stretch; }
  .theme-cabinet .pth-test__actions .btn { width: 100%; }
}

.theme-cabinet .pth-cal, .theme-cabinet .pth-habits { display: flex; flex-direction: column; }
.theme-cabinet .pth-cal .pth-rows { gap: 22px; }
.theme-cabinet .pth-cal .pth-legend { margin-top: 20px; }
@media (min-width: 1024px) { .theme-cabinet .pth-cal { align-self: start; } }
.theme-cabinet .pth-labs { padding: 28px 32px; border: 0; box-shadow: none; }
.theme-cabinet .pth-labs h2 { font-size: 24px; letter-spacing: 0; }
@media (max-width: 760px) { .theme-cabinet .pth-labs { padding: 20px; } .theme-cabinet .pth-labs h2 { font-size: 20px; } }
.theme-cabinet .pth-month__stats > div { min-width: 0; }
@media (max-width: 480px) { .theme-cabinet .pth-big { font-size: 26px; } .theme-cabinet .pth-month__stats { gap: 24px; } }
.theme-cabinet .pth-head { flex-wrap: wrap; }
@media (max-width: 760px) { .theme-cabinet .pth-test .pth-head { flex-direction: column; align-items: flex-start; gap: 4px; } .theme-cabinet .pth-test .pth-head__note { text-align: left; } }

/* «Как идёт маршрут» */
.theme-cabinet .path-feedback { display: block; }
.theme-cabinet .path-feedback .path-fb__q { margin: 22px 0 10px; font-size: 16px; color: var(--ink); }
.theme-cabinet .path-feedback h2 + .path-fb__q { margin-top: 18px; }
.theme-cabinet .path-feedback label.path-fb__q { display: block; }
.theme-cabinet .path-feedback label.path-fb__q textarea { display: block; margin-top: 10px; width: 100%; }
.theme-cabinet .path-fb__row { display: flex; flex-wrap: wrap; gap: 8px; }
.theme-cabinet .path-fb__row .btn { flex: 1 1 96px; min-width: min-content; min-height: 48px; width: auto; padding-left: 8px; padding-right: 8px; white-space: nowrap; }
.theme-cabinet .path-fb__row--wrap .btn { flex: 1 1 calc(33.333% - 8px); }
.theme-cabinet .path-fb__ease { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.theme-cabinet .path-feedback > p.row { margin-top: 24px; }
.theme-cabinet .path-feedback > p.row .btn { width: 100%; }
@media (max-width: 480px) { .theme-cabinet .path-fb__row .btn { font-size: 14px; } }
/* «Мои анализы» */
.theme-cabinet .pth-labs h3 { margin: 24px 0 10px; font-size: 20px; }

/* ==========================================================================
   Воздух между блоками (задача дизайнера 22.10.2026, п.1–2): между соседними блоками — не меньше
   --space-block (16 px). Общие правила нулевой специфичности меняют только поля по умолчанию;
   остальное — точечно, через токены. Проверка: app/scripts/spacing-audit.mjs.
   ========================================================================== */
:where(body) :is(h1, h2, h3, h4):not(:last-child) { margin-bottom: var(--space-block); }
:where(body) p:not(:last-child) { margin-bottom: var(--space-block); }
:where(body) :is(ul, ol, dl, form, table, details):not(:last-child) { margin-bottom: var(--space-block); }
.row { gap: var(--space-block) var(--space-btn-gap); }

/* Вход, регистрация, сброс и оплата: плоские формы «подпись / поле / кнопка» */
.auth-card form > :is(input, select, textarea) + :is(label, .check, p, .hint, .optional),
.auth-card form > :is(p, .hint, .optional, label.check, .check) + :is(label, input, select, textarea, p, .hint, .optional, .check),
.auth-card form > :is(label.check, .check) + :is(button, .btn),
.auth-card form > :is(input, select, textarea, p, .hint, .optional, .check, label.check) + :is(button, .btn) { margin-top: var(--space-block); }
.auth-card form > :is(button, .btn) + :is(button, .btn) { margin-top: var(--space-block); }
.auth-card form > :is(button, .btn) + :is(p, .hint, .check, label, a) { margin-top: var(--space-block); }
.auth-card > :is(h1, h2, p, .hint, .error, .note) + form,
.auth-card > form + :is(p, .hint, form),
.auth-card > :is(h1, h2) + :is(p, .hint, .error, .note, .seg, div) { margin-top: var(--space-block); }
.auth-card > p.hint + form { margin-top: var(--space-block); }
.auth-card > .seg + :is(div, form, p) { margin-top: var(--space-block); }
.auth-card form > :is(label.check, .check) + :is(label.check, .check) { margin-top: var(--space-block); }
.cookiebar p { margin-bottom: var(--space-block); }
.cookiebar__actions { gap: var(--space-btn-gap) var(--space-btn-gap); row-gap: var(--space-block); }
.hhero__cta, .promo__cta, .phero__cta { row-gap: var(--space-block); }
.day-demo .seg, .pay-tabs { margin-bottom: var(--space-block); }
.day-demo .seg { margin-top: var(--space-block); }
.faq__list, .page-partners section > details + details { gap: var(--space-block); }
main.page > section > details + details { margin-top: var(--space-block); }
.page-home .plan--trial .plan__trial-note { margin-bottom: var(--space-block); }
.page-home .plan--trial .plan__trial-note + p { margin-top: var(--space-block); }
.promo__plate .btn + .hint, .promo__plate .btn--primary + p { margin-top: var(--space-block); }
.cookie-table-wrap { margin-bottom: var(--space-block); }
.cookie-table-wrap + h2 { margin-top: var(--space-section); }
.footer__title { margin-bottom: var(--space-block); }
.footer__col p + p, .footer__col p + ul { margin-top: var(--space-block); }

/* ==========================================================================
   Кабинет по замечаниям дизайнера (22.10.2026). Источник — Figma eLeBaeHuREZglUyDbFq5aN:
   «Сегодня» 149:1283 / 149:1423, «Меню» 149:1285 (desktop) и 149:1600 (mobile). Цвета меню — токены --menu-*.
   ========================================================================== */
@media (max-width: 1023px) { .hhero__lead { margin-top: max(calc(var(--space-block) + 4px), calc(14 * var(--u))); } }

/* Меню desktop */
@media (min-width: 1024px) {
  body.cab-app .cabinet-nav a { font-size: 18px; color: var(--menu-text); }
  body.cab-app .cabinet-nav a.is-active { background: var(--cab-nav-on); color: var(--menu-text-active); font-weight: 700; }
  body.cab-app .cabinet-nav a.is-active::before { top: 14px; bottom: 14px; background: var(--menu-indicator); }
  body.cab-app .cabinet-nav .cab-nav__help { border-top-color: var(--menu-divider); }
  body.cab-app .cabinet-nav .cab-logo .cab-logo__img { background-color: var(--menu-logo); }
  body.cab-app .cab-user .cab-ava { background: linear-gradient(135deg, var(--menu-avatar-a), var(--menu-avatar-b)); }
  body.cab-app .cab-user__name { color: var(--menu-text-active); }
  body.cab-app .cab-user__plan { font-size: 14px; color: var(--menu-user-sub); }
}

/* Нижнее меню mobile: подложка 56×34 только под значком, подпись 12 px */
body.cab-app.theme-cabinet .tabbar { background: #fff; border-top: 0; min-height: calc(80px + env(safe-area-inset-bottom)); }
body.cab-app.theme-cabinet .tabbar a { background: transparent; color: var(--menu-text-tab); font-weight: 400; font-size: 12px; gap: 4px; border-radius: 0; }
body.cab-app.theme-cabinet .tabbar a.is-active { background: transparent; color: var(--menu-accent); font-weight: 700; }
body.cab-app.theme-cabinet .tabbar .tabbar__icon { width: 56px; height: 34px; border-radius: 17px; }
body.cab-app.theme-cabinet .tabbar a.is-active .tabbar__icon { background: var(--menu-pill); color: var(--menu-accent); }
body.cab-app .cab-logo__img { background-color: var(--menu-logo); }

/* «Сегодня»: карточка «Шаг на сегодня» — градиент макета без затемнения */
.today-hero, .tariff-trial { color: #fff; }
.today-hero__top { font-size: 16px; font-weight: 600; color: #fff; text-shadow: var(--cab-hero-text-shadow); }
.today-hero h2 { font-size: clamp(28px, 7.4vw, 52px); font-weight: 600; line-height: .96; letter-spacing: -.02em; text-shadow: var(--cab-hero-text-shadow); }
.today-hero p, .today-hero summary, .today-hero .today-react .hint, .today-hero .today-react p,
.today-hero .system-note, .today-hero .hint, .today-hero .today-why summary,
.tariff-trial p, .tariff-trial h2 { text-shadow: var(--cab-hero-text-shadow); }
.today-easier { font-size: 16px; font-weight: 600; text-shadow: var(--cab-hero-text-shadow); }
.today-hero .checkin .btn, .today-hero .checkin .btn[data-v] {
  min-height: 56px; border-radius: 999px; font-size: 16px; font-weight: 600; padding-inline: 34px;
  background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .7); text-shadow: var(--cab-hero-text-shadow);
}
.today-hero .checkin .btn[data-v="partial"], .today-hero .checkin .btn:nth-child(2) { border-color: rgba(255, 255, 255, .7); }
.today-hero .checkin .btn[data-v="no"], .today-hero .checkin .btn:nth-child(3) { border-color: rgba(255, 255, 255, .45); }
.today-hero .checkin .btn[data-v="yes"], .today-hero .checkin .btn:nth-child(1) { background: #fff; color: #171717; border-color: #fff; font-weight: 700; text-shadow: none; }
.today-hero .checkin .btn[aria-pressed="true"] { background: #fff; color: #171717; border-color: #fff; text-shadow: none; box-shadow: 0 0 0 3px rgba(255, 255, 255, .35); }
.today-hero .today-react .btn, .today-hero .btn--secondary, .today-hero .btn--ghost { border-radius: 999px; }

/* «Сегодня»: остальные блоки по макету */
.cab-today-head h1, .cab-head h1 { color: #1A1A1A; }
.cab-sub, .today-vita__role, .today-week__note, .today-tile__label, body.cab-app .today-more summary .today-more__count { color: var(--cab-muted); }
.today-week, .today-vita { border-radius: 25px; }
.today-tile, .today-wear-add { border-radius: 25px; background: #FFF3EC; }
.today-tile__label { color: #7A6A64; }
.today-tile__value { color: #1B1210; }
.today-week__label { color: #A5573F; }
.today-week__big { color: #2F2F2F; font-size: 36px; }
.today-week__open { color: #2F2F2F; border-bottom-color: #2F2F2F; }
.today-vita__quote { background: #FFF3EC; border-radius: 20px; }
.today-vita .btn { background: var(--cab-cta); border-color: var(--cab-cta); color: var(--cab-cta-ink); min-height: 60px; }
.today-vita .btn:hover { background: var(--cab-cta-hover); border-color: var(--cab-cta-hover); color: var(--cab-cta-ink); }

/* Кабинет: единый вертикальный ритм (задача дизайнера, п.1). Прямые дети панелей лежат в сетке с зазором 16 px;
   собственные внешние отступы детей снимаются, чтобы не складывались с зазором. */
body.cab-app .cab-panel:not(#panel-today) { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-block); align-content: start; }
body.cab-app .cab-panel:not(#panel-today) > * { margin: 0; min-width: 0; }
body.cab-app .cab-panel:not(#panel-today) > :is(h2, h3) { margin-top: 8px; }
body.cab-app .cabinet-main > :is(#tos-notice, #renewal-notice, .alert, .notice) { margin-bottom: var(--space-block); }
body.cab-app .cabinet-main > .cab-panel + .cab-help-line, body.cab-app .cab-help-line { margin-top: var(--space-block); }
/* Карточки и блоки внутри кабинета: заголовок/подпись/содержимое — не теснее 16 px */
:is(.card, .tf-card, .tf-now, .tf-free, article, section) > :is(h2, h3) + :is(p, ul, ol, div, form, .row, details, .progress, .alert) { margin-top: var(--space-block); }
:is(.card, .tf-card, article) > :is(p, ul, ol, div, .row) + :is(p, ul, ol, div, .row, details, form) { margin-top: var(--space-block); }
.tf-card > :is(h3, .tf-price, .tf-for, .tf-lead, .tf-list, .tf-conditions, .tf-terms) + * { margin-top: var(--space-block); }
.card .stat__label + .stat__value, .stat__label + .stat__value, .stat__value + .progress { margin-top: 0; }
.today-hero__bar { margin-top: var(--space-block); }
body.cab-app #today .today-hero > :is(.checkin, .today-q, .today-react, .today-why, .today-easier) { margin-top: var(--space-block); }
.today-vita > * + * { margin-top: 0; }
.today-vita { gap: var(--space-block); }
.today-chart { gap: var(--space-block); }
:is(label.check, .check) + :is(p, button, .btn, div, a, label) { margin-top: var(--space-block); }
#ob-step + #ob-nav, #sf-box + #sf-nav { margin-top: var(--space-block); }
:is(#partner-box, #partner-links) > * + * { margin-top: var(--space-block); }
body.theme-cabinet main.container.page > :is(article, section, form, div, nav, label, table) + :is(article, section, form, div, nav, label, table) { margin-top: var(--space-block); }
body.theme-cabinet main.container.page > :is(article, section, form, div, nav, table) + :is(h2, h3) { margin-top: var(--space-section); }
#health-box > img + p { margin-top: var(--space-block); }
.pth-eyebrow { margin-bottom: var(--space-block); }
.wizard-opts, .checkin, .pth-test__actions, .help-toc, .psections__grid { gap: var(--space-block) var(--space-btn-gap); }
body.cab-app .today-hero .checkin { gap: var(--space-block) var(--space-btn-gap); }
.theme-cabinet #path { display: grid; gap: var(--space-block); }
.theme-cabinet #path > * { margin-top: 0; margin-bottom: 0; }
body.cab-app .cabinet-nav { gap: 12px; }
@media (min-width: 1024px) { body.cab-app .cabinet-nav { gap: 12px; } body.cab-app .cabinet-nav .cab-logo { padding-bottom: 24px; } }
.theme-cabinet .pth-goal .pth-eyebrow + .pth-goal__title, .theme-cabinet .pth-goal__title { margin-top: var(--space-block) !important; }
.theme-cabinet .pth-test__actions { gap: var(--space-block) var(--space-btn-gap); }
@media (max-width: 767px) { p > button + button, p > .btn + .btn { margin-top: var(--space-block); } }
main.page > label ~ #list { margin-top: var(--space-block); }
.today-hero h2 { hyphens: manual; overflow-wrap: break-word; }
/* Первый разговор с Витой: подсказки над полем ввода и вопрос-кнопка под напоминанием */
.vita-actions .btn { white-space: normal; text-align: left; }
/* подсказки внутри закреплённой панели ввода: одна прокручиваемая строка, чтобы не закрывать ленту */
.vita-compose .vita-chips { flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; margin: 0; padding-bottom: 4px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.vita-compose .vita-chips::-webkit-scrollbar { display: none; }
.vita-compose .vita-chips .btn { flex: 0 0 auto; width: auto; min-height: 44px; padding: 8px 16px; white-space: nowrap; font-size: 16px; }

/* Определение сервиса под заголовком главной и открытые страницы для поиска (GEO, журнал п.337) */
.hhero__def {
  margin: calc(28 * var(--u)) 0 0;
  max-width: calc(875 * var(--u));
  font-size: max(17px, calc(22 * var(--u)));
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
}
.hhero__def + .hhero__lead { margin-top: calc(20 * var(--u)); }
@media (max-width: 760px) {
  .hhero__def { margin-top: var(--space-block); font-size: max(16px, calc(16 * var(--u))); max-width: none; }
  .hhero__def + .hhero__lead { margin-top: var(--space-block); }
}
.geo-page { max-width: 860px; margin: 0 auto; display: grid; gap: var(--space-section); }
.geo-page h1 { margin: 0; font-size: clamp(28px, 4.4vw, 44px); line-height: 1.12; letter-spacing: -.02em; }
.geo-updated { margin: 0; font-size: 15px; color: var(--cab-muted, #5E6862); }
.geo-lead { margin: 0; font-size: clamp(18px, 2.2vw, 22px); line-height: 1.45; font-weight: 600; }
.geo-block { display: grid; gap: var(--space-block); padding: var(--space-section); background: #fff; border-radius: 20px; }
.geo-block h2 { margin: 0; font-size: clamp(20px, 2.6vw, 26px); line-height: 1.2; }
.geo-block p { margin: 0; font-size: 17px; line-height: 1.55; }
.geo-table-wrap { overflow-x: auto; background: #fff; border-radius: 20px; padding: var(--space-block); }
.geo-table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 16px; line-height: 1.4; }
.geo-table th, .geo-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-top: 1px solid var(--cab-line, #E3E0D8); }
.geo-table thead th { border-top: 0; font-weight: 700; }
.geo-table tbody th { font-weight: 700; width: 18%; }
.geo-table td:last-child, .geo-table thead th:last-child { background: var(--cab-peach, #FFF3EC); }
.geo-disclaimer { margin: 0; padding: var(--space-block); border-radius: 14px; background: var(--cab-peach, #FFF3EC); font-size: 16px; line-height: 1.45; }
.geo-more { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-block); font-size: 16px; }
.geo-more a:not(.btn) { color: var(--brand-ink, #B63F18); font-weight: 600; }
.ref-film { position:relative; display:grid; justify-items:center; gap:8px; padding:8px 12px 16px; }
.ref-film video { display:block; height:min(66svh,720px); max-width:100%; aspect-ratio:9/16; border-radius:16px; background:#14111a; }
@media (max-width: 600px) { .ref-film video { height:min(55svh, calc(100svh - 340px)); } }
.ref-film .invite { margin:0; max-width:min(100%,560px); }
.partner-film { width:min(1120px,calc(100% - 64px)); margin:auto; padding:32px 0 48px; color:white; display:grid; grid-template-columns:auto minmax(0,1fr); grid-template-rows:1fr auto 1fr; grid-template-areas:"film invite" "film story" "film action"; column-gap:clamp(32px,7vw,108px); }
.partner-film__invite { grid-area:invite; align-self:end; }
.partner-film .invite { display:flex; align-items:center; gap:10px; background:transparent; border:0; box-shadow:none; margin:0; padding:0; color:white; }
.partner-film .invite img { width:32px; height:32px; padding:4px; background:white; border-radius:50%; }
.partner-film .invite__text { color:inherit; font-size:15px; max-width:36em; }
.partner-film__story { grid-area:story; }
.partner-film h1 { color:white; font-size:clamp(42px,4.6vw,68px); letter-spacing:-.045em; line-height:1.02; max-width:13em; margin:24px 0 16px; text-wrap:balance; }
.partner-film__story p { color:white; max-width:31em; font-size:21px; line-height:1.45; }
.partner-film video { grid-area:film; display:block; width:clamp(260px,24vw,345px); height:auto; aspect-ratio:9/16; border-radius:22px; background:#14111a; }
.partner-film__action { grid-area:action; justify-self:start; align-self:start; margin-top:22px; }
@media(max-width:760px) {
  .partner-film { width:calc(100% - 32px); grid-template-columns:1fr; grid-template-rows:auto; grid-template-areas:"invite" "film" "action" "story"; justify-items:center; gap:12px; padding:8px 0 26px; }
  .partner-film__invite { width:min(100%,340px); }
  .partner-film .invite__text { font-size:13px; line-height:1.25; }
  .partner-film video,.partner-film__action { width:min(100%,282px,max(185px,calc((100svh - 248px)*.5625))); }
  .partner-film__action { justify-self:center; margin:0; }
  .partner-film__story { max-width:34em; text-align:center; }
  .partner-film h1 { margin:24px auto 12px; font-size:32px; }
  .partner-film__story p { font-size:16px; }
}
