/* Шрифт Onest (OFL). Общая подача — светлые плашки и крупная типографика — подсказана sdelaem_agency.
   Цвета типов событий заданы переменными --k/--k-bg в классах .k-*; тип всегда подписан текстом. */
:root {
  /* Три основных цвета проекта; всё остальное — их оттенки. Меняются в палитре (/?palette). */
  --base-accent: #ff7417;
  --base-paper: #f4f4f5;
  --base-ink: #18181b;
  /* Акцент: светлая заливка, основной, при наведении, тёмный для текста */
  --orange-soft: color-mix(in oklab, var(--base-accent) 10%, white);
  --orange: var(--base-accent);
  --orange-strong: color-mix(in oklab, var(--base-accent) 88%, black);
  --orange-deep: color-mix(in oklab, var(--base-accent) 72%, black);
  --orange-ink: color-mix(in oklab, var(--base-accent) 48%, black);
  /* Фон плашек и его ступени темнее: наведение, дорожки графиков, линии */
  --surface: var(--base-paper);
  --surface-2: color-mix(in oklab, var(--base-paper) 94%, var(--base-ink));
  --surface-3: color-mix(in oklab, var(--base-paper) 88%, var(--base-ink));
  --line: color-mix(in oklab, var(--base-paper) 82%, var(--base-ink));
  --line-strong: color-mix(in oklab, var(--base-paper) 70%, var(--base-ink));
  /* Тёмный: основной текст, второстепенный, приглушённый, тёмные секции */
  --ink: var(--base-ink);
  --ink-2: color-mix(in oklab, var(--base-ink) 82%, var(--base-paper));
  --muted: color-mix(in oklab, var(--base-ink) 62%, var(--base-paper));
  --ink-dark: color-mix(in oklab, var(--base-ink) 90%, black);
  /* Наведение на белых карточках — нейтральный серый от тёмного цвета */
  --hover-white: color-mix(in oklab, white 93%, var(--base-ink));
  --white: #fff;
  --shadow: 0 18px 50px #1d18120f;
  /* Скругления: плашки 22/32, кнопки — прямоугольник 18 (не пилюля), метки и фильтры — круглые */
  --radius-lg: 32px;
  --radius: 22px;
  --radius-btn: 18px;
  /* Ширина страницы: одна для шапки и содержимого. Поля растут с экраном до 64px. */
  --page: min(1680px, calc(100% - 2 * clamp(16px, 4vw, 64px)));
  font-family: Onest, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  font-synthesis: weight;
}
.k-announced {
  --k: #6a55d8;
  --k-bg: #eeebff;
}
.k-reset_applied {
  --k: #1c8a52;
  --k-bg: #e3f5ea;
}
.k-reset_grant {
  --k: var(--orange-strong);
  --k-bg: var(--orange-soft);
}
.k-limit_change {
  --k: #2d67d8;
  --k-bg: #e6eeff;
}
.k-program_update {
  --k: #a86a0c;
  --k-bg: #fff3d6;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--white);
}
button,
input,
select {
  font: inherit;
}
button,
a,
summary,
select {
  touch-action: manipulation;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  cursor: pointer;
  border: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2 {
  font-weight: 500;
  letter-spacing: -0.035em;
}
h3 {
  font-weight: 500;
  letter-spacing: -0.02em;
}
p {
  line-height: 1.45;
}
em {
  font-style: normal;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.muted {
  color: var(--muted);
}
.accent {
  color: var(--orange);
}
.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}
.skip {
  position: absolute;
  left: 24px;
  top: -100px;
  z-index: 100;
}
.skip:focus {
  top: 12px;
  background: white;
  padding: 16px;
}
.wrap {
  width: var(--page);
  margin: auto;
}

/* Знаки компаний: настоящий логотип в светлой плитке */
.logo {
  --size: 44px;
  width: var(--size);
  height: var(--size);
  flex: none;
  display: inline-grid;
  place-items: center;
  border-radius: calc(var(--size) * 0.3);
}
.logo img {
  width: 78%;
  height: 78%;
}
.logo.blank {
  background: none;
  box-shadow: none;
}
.logo.xs {
  --size: 26px;
}
.logo.sm {
  --size: 34px;
}
.logo.lg {
  --size: 56px;
}
.logo.xl {
  --size: 88px;
  border-radius: 28px;
}

/* Пилюли, чипы, статусы */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-2);
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1.1;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  padding: 7px 12px;
  border-radius: 100px;
  background: var(--surface);
  font-size: 15px;
  white-space: nowrap;
}
.chip.outline {
  background: transparent;
  background: var(--surface);
}
.chip.dark-chip {
  background: #ffffff14;
  color: #fff;
}
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 100px;
  background: var(--surface);
  color: var(--muted);
  font-size: 16px;
  white-space: nowrap;
}
.status-chip.accent-chip {
  background: var(--orange-soft);
  color: var(--orange-deep);
  font-weight: 500;
}
.demo-tag {
  font-size: 15px;
  color: var(--muted);
  background: var(--surface);
  padding: 5px 10px;
  border-radius: 100px;
  align-self: flex-start;
}
.demo-note {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 26px;
  max-width: 760px;
}
.demo-note .icon {
  margin-top: 2px;
}
.dark .demo-note {
  color: var(--line-strong);
}

/* Шапка */
/* Шапка закреплена сверху: при прокрутке вниз уезжает, при прокрутке вверх сразу возвращается
   (класс hidden ставит main.js). Обёртка на всю ширину пропускает нажатия мимо самой шапки. */
#header {
  /* flow-root: отступ шапки сверху остаётся внутри обёртки, и закреплённая шапка не прилипает к краю */
  display: flow-root;
  position: sticky;
  top: 0;
  z-index: 30;
  pointer-events: none;
  transition: transform 0.3s ease;
}
#header > * {
  pointer-events: auto;
}
#header.hidden {
  transform: translateY(-110%);
}
.site-header {
  height: 76px;
  display: flex;
  gap: 30px;
  align-items: center;
  margin: 24px auto 0;
  padding: 10px 12px 10px 20px;
  border-radius: 28px;
  background: #ffffffe6;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 10;
  width: var(--page);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -1.2px;
}
/* Знак — песочные часы в цвете акцента, рядом слово resets */
.brand-mark {
  width: 40px;
  height: 40px;
  flex: none;
  color: var(--orange);
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  /* По центру между логотипом и кнопками справа */
  margin: 0 auto;
  font-size: 17px;
  font-weight: 500;
}
.desktop-nav > a:hover,
.nav-menu summary:hover {
  color: var(--orange);
}
.header-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
}
.header-controls .icon-button {
  width: 46px;
  height: 46px;
}
.tg-icon {
  width: 20px;
  height: 20px;
}
.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 46px;
  padding: 0 16px 0 14px;
  border-radius: 100px;
  background: var(--surface);
  color: inherit;
  font-size: 16px;
  font-weight: 500;
}
.lang-pill:hover,
.header-controls .icon-button:hover {
  background: var(--surface-2);
}
.lang-menu summary {
  list-style: none;
}
.lang-menu summary::-webkit-details-marker {
  display: none;
}
.lang-popover {
  left: auto;
  right: 0;
  top: 54px;
  min-width: 170px;
}
.lang-option {
  padding: 11px 14px;
  border-radius: 14px;
  background: none;
  color: inherit;
  font-size: 17px;
  text-align: left;
}
.lang-option:hover,
.lang-option[aria-pressed='true'] {
  background: var(--surface);
}
.lang-option[aria-pressed='true'] {
  font-weight: 500;
}
.footer-settings {
  justify-self: start;
  padding: 0;
  font: inherit;
  color: inherit;
  text-align: left;
}
.lang-pill .icon {
  width: 18px;
  height: 18px;
}
.button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.button.orange {
  background: var(--orange);
}
.button.orange:hover {
  background: var(--orange-strong);
}
.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--orange);
  color: #fff;
  border-radius: var(--radius-btn);
  padding: 15px 22px;
  white-space: nowrap;
  font-weight: 500;
}
.plain {
  background: transparent;
  padding: 8px 6px;
  color: inherit;
}
.icon-button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: transparent;
  display: inline-grid;
  place-items: center;
  color: inherit;
}
.icon-button:hover,
.icon-button.pale {
  background: var(--surface);
}
.icon-button .icon {
  width: 22px;
  height: 22px;
}
.nav-menu {
  position: relative;
}
.nav-menu summary {
  cursor: pointer;
  list-style: none;
}
.nav-menu summary::-webkit-details-marker {
  display: none;
}
.nav-menu[open] summary {
  color: var(--orange);
}
.nav-popover {
  position: absolute;
  top: 40px;
  left: -24px;
  padding: 14px;
  display: grid;
  gap: 2px;
  min-width: 230px;
  border-radius: 24px;
  background: white;
  box-shadow: 0 24px 60px #0000001f;
}
.nav-popover a {
  padding: 11px 12px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-popover a:hover {
  background: var(--surface);
}
.mobile-toggle,
.mobile-nav {
  display: none;
}

/* Кнопки */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  text-align: center;
  background: var(--ink);
  color: #fff;
  min-height: 60px;
  padding: 16px 28px;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.2;
  border-radius: var(--radius-btn);
  transition: background 0.15s;
}
.button.pale {
  background: var(--surface);
  color: var(--ink);
}
.button.pale:hover {
  background: var(--surface-2);
}
.button.white {
  background: white;
  color: var(--ink);
}
.button:active {
  opacity: 0.85;
}

/* Первый экран */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 96px;
  margin-top: -92px;
  padding-top: 172px;
  /* Сетка точек — сразу в странице с сервера; подсветку у курсора рисует src/hero-bg.js (шаг 26, r 1,5) */
  background: radial-gradient(
      circle at 13px 13px,
      color-mix(in srgb, var(--base-ink) 11%, transparent) 1.5px,
      transparent 2px
    )
    0 0 / 26px 26px #fff;
}
/* Интерактивная сетка точек за содержимым первого экрана */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.hero > .wrap {
  position: relative;
}
.hero-layout {
  display: grid;
  /* minmax(0, …): ширина колонок не зависит от текста, поэтому печать слова не двигает карточку */
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 64px;
  align-items: center;
}
.hero-layout > div:first-child {
  container-type: inline-size;
}
/* «Сбросы лимитов Gemini» занимает ~11,5 высоты шрифта: размер от ширины колонки держит строку целой */
.hero h1 {
  font-size: clamp(40px, 8.4cqi, 84px);
  line-height: 1.02;
}
.hero-copy {
  font-size: 22px;
  max-width: 640px;
  margin-top: 26px;
  color: var(--ink-2);
}
/* 3D-иллюстрации (Fluent Emoji 3D) */
.art {
  display: inline-block;
  flex: none;
  object-fit: contain;
}
.art-title {
  width: 1.3em;
  height: 1.3em;
}
/* Анимация 3D-иконок по клику: у каждой своё движение по смыслу */
.art-box {
  display: inline-flex;
  position: relative;
  line-height: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
/* В заголовке иконка стоит на строке текста, отступ — у обёртки, чтобы анимации вращались вокруг самой картинки */
h2 .art-box,
h1 .art-box {
  margin-left: 0.12em;
  vertical-align: -0.3em;
}
.art-box > img {
  display: block;
  pointer-events: none;
}
.art-box.play > img {
  animation: art-pop 0.7s ease-out;
}
[data-art='bell'].play > img {
  transform-origin: 50% 8%;
  animation: art-swing 1.3s ease-out;
}
[data-art='alarm-clock'].play > img {
  transform-origin: 50% 90%;
  animation: art-ring 0.9s linear;
}
[data-art='money-bag'].play > img,
[data-art='gift'].play > img {
  transform-origin: 50% 100%;
  animation: art-jump 0.9s ease-out;
}
[data-art='gift'].play > img {
  animation: art-wiggle 0.9s ease-in-out;
}
[data-art='bar-chart'].play > img {
  transform-origin: 50% 100%;
  animation: art-grow 0.9s cubic-bezier(0.2, 1.4, 0.4, 1);
}
[data-art='magnifier'].play > img {
  animation: art-search 1.2s ease-in-out;
}
[data-art='rocket'].play > img {
  animation: art-launch 1.8s ease-in-out;
}
/* Батарейка разряжается и заряжается прямо на картинке: выше уровня заряда она бледнеет,
   остаток краснеет, потом уровень поднимается обратно */
@property --level {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 100%;
}
/* Два слоя маски: верхняя полоса с контактом (13% картинки) видна всегда, разряд — только у корпуса */
[data-art='battery'] > img {
  -webkit-mask:
    linear-gradient(#000 0 13%, transparent 13%),
    linear-gradient(to top, #000 calc(var(--level) - 3%), #0006 calc(var(--level) + 3%));
  mask:
    linear-gradient(#000 0 13%, transparent 13%),
    linear-gradient(to top, #000 calc(var(--level) - 3%), #0006 calc(var(--level) + 3%));
}
[data-art='battery'].play > img {
  animation: art-battery 2.6s ease-in-out;
}
/* Календарь: выделенный день проходит по всем числам и возвращается на своё место */
[data-art='calendar']::before,
[data-art='calendar']::after {
  content: '';
  position: absolute;
  width: 9.4%;
  height: 9.4%;
  border-radius: 1.5px;
  opacity: 0;
  pointer-events: none;
}
[data-art='calendar']::before {
  left: 66%;
  top: 54.7%;
  background: #a69bb6;
}
[data-art='calendar']::after {
  background: #309af5;
}
[data-art='calendar'].play::before {
  animation: cal-cover 2.2s steps(1);
}
[data-art='calendar'].play::after {
  animation: cal-walk 2.2s steps(1);
}
@keyframes art-pop {
  40% {
    transform: scale(1.18) rotate(-6deg);
  }
}
@keyframes art-swing {
  15% {
    rotate: 20deg;
  }
  30% {
    rotate: -16deg;
  }
  45% {
    rotate: 11deg;
  }
  60% {
    rotate: -7deg;
  }
  75% {
    rotate: 3deg;
  }
}
@keyframes art-ring {
  10%,
  30%,
  50%,
  70% {
    rotate: -10deg;
  }
  20%,
  40%,
  60%,
  80% {
    rotate: 10deg;
  }
}
@keyframes art-jump {
  15% {
    transform: scale(1.1, 0.88);
  }
  45% {
    transform: translateY(-28%) scale(0.95, 1.06);
  }
  75% {
    transform: scale(1.08, 0.92);
  }
}
@keyframes art-wiggle {
  15%,
  45% {
    rotate: -12deg;
  }
  30%,
  60% {
    rotate: 12deg;
  }
  80% {
    transform: translateY(-14%);
    rotate: 0deg;
  }
}
@keyframes art-grow {
  0% {
    transform: scaleY(0.15);
  }
}
@keyframes art-search {
  20% {
    transform: translate(10%, -8%) rotate(-8deg);
  }
  45% {
    transform: translate(-2%, -16%) rotate(4deg);
  }
  70% {
    transform: translate(-10%, -6%) rotate(-6deg);
  }
}
@keyframes art-launch {
  0%,
  20% {
    transform: none;
  }
  6%,
  14% {
    transform: translate(-3%, 2%);
  }
  10%,
  18% {
    transform: translate(3%, -2%);
  }
  55% {
    transform: translate(60%, -140%);
    opacity: 0;
  }
  56% {
    transform: translate(-40%, 80%);
    opacity: 0;
  }
  100% {
    transform: none;
    opacity: 1;
  }
}
@keyframes art-battery {
  45%,
  55% {
    --level: 22%;
    filter: hue-rotate(-80deg) saturate(1.4);
  }
}
@keyframes cal-walk {
  0% {
    opacity: 1;
    left: 24.2%;
    top: 37.5%;
  }
  11% {
    left: 44.9%;
    top: 37.5%;
  }
  22% {
    left: 66%;
    top: 37.5%;
  }
  33% {
    left: 24.2%;
    top: 54.7%;
  }
  44% {
    left: 44.9%;
    top: 54.7%;
  }
  55% {
    left: 66%;
    top: 54.7%;
  }
  66% {
    left: 24.2%;
    top: 71.5%;
  }
  77% {
    left: 44.9%;
    top: 71.5%;
  }
  88%,
  100% {
    opacity: 1;
    left: 66%;
    top: 71.5%;
  }
}
@keyframes cal-cover {
  0%,
  100% {
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .art-box.play > img,
  .art-box.play::after {
    animation: none;
  }
}
/* Слово в оранжевой плашке, как «уже» в «уже сделали» у референса */
.word-pill {
  display: inline-block;
  padding: 0 0.22em 0.04em;
  border-radius: 0.32em;
  background: var(--orange);
  color: white;
  line-height: 1.1;
}
/* Плашка над заголовком первого экрана: 3D-значок в круге и тёмная пилюля */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.art-badge {
  width: 64px;
  height: 64px;
  padding: 10px;
  border-radius: 50%;
  background: var(--surface);
}
.hero-badge > .badge-text {
  padding: 14px 24px;
  border-radius: 100px;
  background: var(--ink);
  color: white;
  font-size: 18px;
  font-style: italic;
}
/* Печать названий продуктов */
/* Печатающееся слово на той же строке; ширина заранее под самое длинное слово, поэтому строка
   не переносится по-разному, пока слово печатается и стирается */
.typed-line {
  display: inline-grid;
  justify-items: start;
  white-space: nowrap;
}
/* Все слова в одной ячейке: невидимые задают ширину по самому длинному */
.typed-line > * {
  grid-area: 1 / 1;
}
.typed-ghost {
  visibility: hidden;
}
.typed-line.still .type-cursor {
  visibility: hidden;
}
.type-cursor {
  color: var(--line-strong);
  font-weight: 400;
  margin-left: 0.04em;
  animation: cursor-blink 1s steps(1) infinite;
}
@keyframes cursor-blink {
  50% {
    opacity: 0;
  }
}
/* Три факта под первым экраном */
.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 56px;
}
.fact-plaque {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 22px 26px;
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit;
  transition: background 0.15s;
}
.fact-plaque:hover {
  background: var(--surface-2);
}
.art-fact {
  width: 72px;
  height: 72px;
}
.fact-plaque strong {
  display: block;
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
}
.fact-plaque span {
  display: block;
  margin-top: 6px;
  font-size: 17px;
  line-height: 1.35;
  color: var(--ink-2);
}
/* Бегущие строки: последние сбросы и программы кредитов */
.marquee-band {
  display: grid;
  gap: 12px;
  padding: 8px 0 72px;
  overflow: hidden;
}
.mq-row {
  overflow: hidden;
}
.mq-track {
  display: flex;
  width: max-content;
  animation: marquee 80s linear infinite;
}
.mq-row.reverse .mq-track {
  animation-direction: reverse;
}
.mq-row:hover .mq-track {
  animation-play-state: paused;
}
.mq-copy {
  display: flex;
}
@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}
.mq-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: 12px;
  padding: 10px 20px 10px 12px;
  border-radius: 100px;
  background: var(--surface);
  color: inherit;
  font-size: 17px;
  white-space: nowrap;
}
.mq-chip b {
  font-weight: 500;
}
.mq-chip span {
  color: var(--ink-2);
}
@media (max-width: 900px) {
  .hero-facts {
    grid-template-columns: 1fr;
    margin-top: 36px;
  }
  .hero-badge > .badge-text {
    padding: 10px 18px;
    font-size: 16px;
  }
  .art-badge {
    width: 52px;
    height: 52px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .type-cursor {
    animation: none;
  }
}
/* Статистика компании: плитки с крупными числами */
.company-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}
@media (max-width: 1100px) {
  .company-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .company-stats {
    grid-template-columns: 1fr;
  }
}
.cstat {
  padding: 22px 24px;
  border-radius: var(--radius);
  background: var(--surface);
}
.cstat dt {
  font-size: 17px;
  font-weight: 500;
  color: var(--ink-2);
}
.cstat dd {
  margin: 8px 0 0;
  font-size: 40px;
  font-weight: 500;
  line-height: 1.05;
}
.cstat {
  position: relative;
  display: flex;
  flex-direction: column;
}
.cstat.with-side {
  padding-right: 110px;
}
/* Наглядная часть плитки — внизу, под числом и подписью */
.cs-bar,
.cs-months,
.cs-days {
  margin-top: auto;
  padding-top: 16px;
}
.cs-bar {
  display: block;
  height: 24px;
}
.cs-bar i {
  display: block;
  height: 8px;
  width: var(--w);
  border-radius: 4px;
  background: var(--orange);
  transform-origin: left;
}
/* Серая основа графиков темнее фона плитки, иначе её не видно */
.cs-bar {
  background: linear-gradient(var(--surface-3), var(--surface-3)) left 16px / 100% 8px no-repeat;
  border-radius: 4px;
}
.cs-months {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 64px;
}
.cs-months i {
  flex: 1;
  height: var(--h);
  border-radius: 3px;
  background: #1c8a52;
  transform-origin: bottom;
}
.cs-days {
  display: grid;
  grid-template-columns: repeat(15, minmax(0, 1fr));
  gap: 5px;
}
.cs-days i {
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--surface-3);
}
.cs-days i.on {
  background: #1c8a52;
}
.cs-days i.banked {
  background: var(--orange-strong);
}
.cstat .cs-ring,
.cstat > .art-box {
  position: absolute;
  top: 20px;
  right: 20px;
}
.cstat .cs-ring {
  width: 76px;
  height: 76px;
  background: conic-gradient(var(--orange) calc(var(--p) * 1%), var(--surface-3) 0);
  -webkit-mask: radial-gradient(circle, transparent 54%, #000 55%);
  mask: radial-gradient(circle, transparent 54%, #000 55%);
}
.art-stat {
  width: 96px;
  height: 96px;
}
/* Появление: числа досчитывают (motion.js), графики вырастают */
.company-stats.in-view .cs-bar i {
  animation: cs-grow-x 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}
.company-stats.in-view .cs-months i {
  animation: cs-grow-y 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both;
  animation-delay: calc(var(--i) * 45ms);
}
.company-stats.in-view .cs-days i.on,
.company-stats.in-view .cs-days i.banked {
  animation: cs-pop 0.5s ease-out both;
  animation-delay: calc(var(--i) * 25ms);
}
.company-stats.in-view .cstat .cs-ring {
  animation: cs-turn 1s ease-out both;
}
@keyframes cs-grow-x {
  from {
    transform: scaleX(0);
  }
}
@keyframes cs-grow-y {
  from {
    transform: scaleY(0);
  }
}
@keyframes cs-pop {
  from {
    transform: scale(0);
  }
}
@keyframes cs-turn {
  from {
    transform: rotate(-90deg);
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .company-stats.in-view * {
    animation: none !important;
  }
}
.cstat p {
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.35;
  color: var(--ink-2);
}
/* Главный факт: последний сброс */
.hero-last {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  max-width: 660px;
  margin-top: 32px;
  padding: 26px 30px;
  border-radius: var(--radius);
  background: var(--surface);
  color: inherit;
  transition: background 0.15s;
}
.hero-last:hover {
  background: var(--surface-2);
}
.hero-last > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.hl-label {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink-2);
}
.hero-last strong {
  font-size: clamp(40px, 4.2vw, 60px);
  line-height: 1.05;
  font-weight: 500;
  color: var(--orange);
}
.hl-meta {
  margin-top: 6px;
  font-size: 19px;
  font-weight: 500;
}
.hero-last p {
  font-size: 18px;
  line-height: 1.4;
  color: var(--ink-2);
}
/* Анонс на первом экране: отдельная яркая плашка — главное, что сейчас нужно знать */
.hero-announce {
  display: grid;
  gap: 6px;
  max-width: 660px;
  margin-top: 32px;
  padding: 26px 30px 28px;
  border-radius: var(--radius);
  background: var(--orange);
  color: white;
  transition: background 0.15s;
}
.hero-announce:hover {
  background: var(--orange-strong);
}
.ha-head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.ha-label {
  font-size: 18px;
  font-weight: 600;
}
.ha-chip {
  margin-left: auto;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}
.hero-announce strong {
  margin-top: 8px;
  font-size: clamp(40px, 4.2vw, 60px);
  line-height: 1.05;
  font-weight: 600;
}
.ha-meta {
  font-size: 19px;
  font-weight: 500;
}
/* Шкала времени от анонса до обещанного сброса: заполнено, сколько уже прошло */
.ha-track {
  height: 10px;
  margin-top: 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
  overflow: hidden;
}
.ha-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: white;
}
.ha-ends {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}
@media (max-width: 560px) {
  .hero-announce {
    padding: 20px;
    margin-top: 24px;
  }
  .ha-label {
    font-size: 16px;
  }
  .ha-chip {
    display: none;
  }
  .hero-announce strong {
    font-size: 34px;
  }
  .ha-meta {
    font-size: 16px;
  }
}
.steps {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-width: 640px;
}
.steps li {
  font-size: 16px;
  color: var(--muted);
  padding-top: 10px;
  border-top: 3px solid var(--surface-2);
}
.steps li.done {
  color: var(--ink);
  border-top-color: var(--orange);
}
.state-card {
  padding: 30px;
  background: #ffffffd9;
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
/* Справа в строке: дни с последнего сброса крупно, цветом типа сброса */
.state-days {
  margin-left: auto;
  display: grid;
  justify-items: end;
  text-align: right;
  line-height: 1;
}
.state-days b {
  font-size: 38px;
  font-weight: 500;
  color: var(--ink);
}
.state-days em {
  margin-top: 6px;
  font-style: normal;
  font-size: 16px;
  color: var(--ink-2);
}
.state-days.expected b {
  color: var(--orange);
}
.state-days.expected b {
  font-size: 26px;
}
.state-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.state-head h2 {
  font-size: 30px;
}
.state-head span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 15px;
}
.state-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.state-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border-radius: 22px;
  background: var(--surface);
}
.state-list li > div {
  display: grid;
  flex: 1;
  min-width: 0;
}
.state-list strong {
  font-weight: 500;
  font-size: 19px;
}
.state-list li > div span {
  font-size: 16px;
  color: var(--muted);
}
.state-list .status-chip {
  background: none;
  padding: 0;
  white-space: normal;
  text-align: right;
  max-width: 55%;
  font-size: 16px;
}
.state-list .status-chip.accent-chip {
  background: none;
  color: var(--orange);
  font-weight: 600;
}
.state-card > p {
  margin-top: 18px;
  font-size: 15px;
}

/* Шкала сбросов (recentResetsFit): 90 дней на десктопе, 60 в мобильной версии (та же граница, что у мобильной
   шапки) и за 30 на самых маленьких телефонах */
.only-mobile,
.only-small {
  display: none;
}
@media (max-width: 1000px) {
  .only-desktop {
    display: none;
  }
  .only-mobile {
    display: block;
  }
}
@media (max-width: 400px) {
  .only-mobile {
    display: none;
  }
  .only-small {
    display: block;
  }
}
/* Первый экран: сбросы на общей шкале до сегодняшнего дня */
.recent-resets {
  margin-top: 56px;
  padding: 32px 36px 24px;
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.ra-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 14px;
}
.ra-head h2 {
  font-size: 30px;
  font-weight: 500;
}
.ra-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 15px;
  color: var(--muted);
}
.ra-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ra-legend i {
  width: 6px;
  height: 18px;
  border-radius: 3px;
  background: var(--k);
}
.ra-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 130px;
  align-items: center;
  gap: 20px;
  padding: 7px 0;
}
.ra-name {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 500;
  color: inherit;
  text-decoration: none;
}
.ra-track {
  position: relative;
  height: 44px;
  border-radius: 14px;
  background: var(--white);
}
.ra-mark {
  position: absolute;
  top: 8px;
  bottom: 8px;
  width: 6px;
  margin-left: -3px;
  border-radius: 3px;
  background: var(--k);
}
.ra-count {
  display: flex;
  justify-content: flex-end;
  gap: 14px;
}
.ra-count b {
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
}
.ra-count .ra-banked {
  color: var(--orange-strong);
}
.ra-axis {
  padding: 0;
}
.ra-ticks {
  position: relative;
  height: 20px;
}
.ra-ticks span {
  position: absolute;
  transform: translateX(-50%);
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
}
.ra-ticks .ra-start {
  transform: none;
}
.ra-ticks .ra-today {
  transform: translateX(-100%);
  color: var(--ink);
}
@media (max-width: 760px) {
  .recent-resets {
    margin-top: 36px;
    padding: 22px 16px 14px;
    border-radius: var(--radius);
  }
  .ra-head h2 {
    font-size: 24px;
  }
  .ra-row {
    grid-template-columns: 92px minmax(0, 1fr) auto;
    gap: 10px;
  }
  .ra-name {
    font-size: 16px;
    gap: 6px;
  }
  .ra-name .logo {
    --size: 26px;
  }
}

/* Секции */
.section {
  padding: 96px 0;
}
.section.dark {
  background: var(--ink-dark);
  color: white;
  border-radius: 64px;
}
.section.light {
  background: var(--surface);
  border-radius: 64px;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 30px;
}
.section-head h2,
.section-title {
  font-size: clamp(38px, 4.2vw, 60px);
  line-height: 1.06;
}
.section-head > p {
  font-size: 19px;
  max-width: 440px;
  color: var(--muted);
}
.dark .section-head > p {
  color: var(--line-strong);
}
.section-action {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  align-items: center;
}
.explain summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 16px;
  color: var(--line);
}
.explain summary::-webkit-details-marker {
  display: none;
}
.explain p {
  margin-top: 12px;
  font-size: 16px;
  max-width: 720px;
  color: var(--line);
}
.caption {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  color: var(--muted);
  margin: 20px 0;
}

/* Фильтры */
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin: 0 0 28px;
}
.filter {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 18px;
  border-radius: 100px;
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
  white-space: nowrap;
}
.filter:hover {
  background: var(--surface-2);
}
.filter .icon {
  color: var(--k, currentColor);
}
.filter[aria-pressed='true'],
.filter[aria-current='page'] {
  background: var(--ink);
  color: #fff;
}
.filter[aria-pressed='true'] .icon {
  color: #fff;
}
.dark .filter {
  background: #ffffff12;
  color: #fff;
}
.dark .filter .icon {
  color: var(--k-bg, #fff);
}
.dark .filter[aria-pressed='true'] {
  background: var(--orange);
}

/* Карточки */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card {
  position: relative;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  overflow: hidden;
}
.dark .card {
  background: white;
}
.card h3 {
  font-size: 25px;
  line-height: 1.18;
}
.card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}
.card-top > .pill,
.card-top > .status-chip {
  margin-left: auto;
}
.card-source {
  display: grid;
  min-width: 0;
  line-height: 1.25;
}
.card-source strong {
  font-weight: 500;
  font-size: 17px;
}
.card-source span {
  font-size: 16px;
  color: var(--muted);
}
.event-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto auto;
  width: 220px;
  height: 220px;
  background: none;
  pointer-events: none;
}
.event-card > * {
  position: relative;
}
.card-summary {
  font-size: 17px;
  color: var(--ink-2);
}
.stretched::after {
  content: '';
  position: absolute;
  inset: 0;
}
/* Вся карточка события — ссылка: ссылка заголовка растянута на карточку (заголовок не создаёт
   своего позиционирования), при наведении темнеет сама карточка, текст не подчёркивается */
.event-card {
  transition: background 0.15s;
}
.event-card > h3 {
  position: static;
}
.event-card .stretched::after {
  z-index: 1;
}
.event-card:hover {
  background: var(--hover-white);
}
.meta-list {
  list-style: none;
  padding: 0;
  margin: auto 0 0;
  display: grid;
  gap: 8px;
  font-size: 15px;
  color: var(--ink-2);
}
.meta-list li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}
.meta-list .icon {
  color: var(--muted);
  margin-top: 1px;
}
.meta-list em {
  color: var(--muted);
  margin-left: 6px;
}

/* Компании */
.companies-grid {
  grid-template-columns: repeat(4, 1fr);
}
.company-card {
  gap: 20px;
}
.company-card:hover {
  background: var(--surface-2);
}
.company-card h3 {
  font-size: 30px;
  margin-bottom: 10px;
}
.company-card .chip {
  background: #fff;
}
.activity {
  display: grid;
  grid-template-columns: repeat(30, 1fr);
  gap: 3px;
  height: 34px;
  width: 100%;
}
.activity span {
  border-radius: 3px;
  background: var(--surface-2);
}
.activity span[class] {
  background: var(--k);
}
.activity.empty-strip {
  display: block;
  border-radius: 8px;
  background: repeating-linear-gradient(-45deg, var(--surface-2) 0 6px, #0000 6px 12px);
}
.mini-stats {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.mini-stats dt {
  font-size: 15px;
  color: var(--muted);
}
.mini-stats dd {
  margin: 4px 0 0;
  font-size: 16px;
  font-weight: 500;
}
.company-card > p {
  font-size: 15px;
}

/* Календарь */
.calendar-box {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
}
.calendar-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}
.calendar-head h3 {
  font-size: 34px;
}
.calendar-head p {
  font-size: 15px;
  margin-top: 4px;
}
.calendar-nav {
  display: flex;
  gap: 8px;
}
.segmented {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 100px;
  background: var(--surface);
  align-self: flex-end;
}
.segmented .filter {
  background: transparent;
  padding: 11px 16px;
}
.segmented .filter[aria-pressed='true'] {
  background: var(--ink);
}
.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}
.legend .pill {
  font-size: 16px;
  padding: 6px 10px 6px 8px;
}
.calendar-grid,
.weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.weekdays {
  margin-bottom: 8px;
  font-size: 16px;
  color: var(--muted);
  padding-left: 12px;
}
.day {
  min-height: 112px;
  border-radius: 18px;
  padding: 10px;
  background: var(--surface);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  text-align: left;
  transition: background 0.15s;
}
.day:hover {
  background: var(--surface-2);
}
.day.weekend .day-num {
  color: var(--muted);
}
.day.has-event {
  background: var(--surface);
}
.day-num {
  font-size: 17px;
  font-weight: 500;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  margin-bottom: 2px;
}
.day.today .day-num {
  background: var(--orange);
  color: #fff;
}
.day[aria-pressed='true'] {
  background: var(--orange-soft);
}
.day-chip {
  display: grid;
  gap: 1px;
  padding: 5px 8px;
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.2;
  min-width: 0;
}
.day-chip b {
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}
.day-more {
  font-size: 16px;
  color: var(--muted);
  padding-left: 4px;
}
.calendar-list {
  margin-top: 8px;
}
.calendar-list .card {
  background: var(--surface);
}
.calendar-box .caption {
  margin-bottom: 0;
}

/* Поля */
.fields {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 22px 0;
  align-items: flex-end;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  color: var(--muted);
  flex: 1;
  min-width: 170px;
}
input[type='search'],
input[type='text'],
select {
  width: 100%;
  background: var(--surface);
  border: 0;
  border-radius: 18px;
  padding: 15px 18px;
  font-size: 17px;
  color: var(--ink);
  min-height: 54px;
}
select {
  padding-right: 36px;
}
.more-filters summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  font-size: 16px;
  font-weight: 500;
  padding: 10px 16px;
  border-radius: 100px;
  background: var(--surface);
}
.more-filters summary::-webkit-details-marker {
  display: none;
}
.more-filters[open] summary {
  color: var(--orange);
}
.check {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  margin: 14px 0;
  clear: both;
}
.check input {
  width: 22px;
  height: 22px;
  accent-color: var(--orange);
}

/* Блок получения кредитов */
.credits-intro {
  padding: 110px 0 70px;
  overflow: hidden;
}
.credits-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}
.credits-intro h2 {
  font-size: clamp(50px, 5.6vw, 88px);
  line-height: 1.02;
}
.credits-intro p {
  font-size: 21px;
  max-width: 640px;
  margin-top: 26px;
  color: var(--ink-2);
}
.credit-stack {
  position: relative;
  min-height: 380px;
  border-radius: 48px;
  background: var(--surface);
}
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 26px 18px 18px;
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow);
  width: min(360px, 82%);
}
.float-card div {
  display: grid;
  gap: 2px;
}
.float-card span {
  font-size: 15px;
  color: var(--muted);
}
.float-card strong {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.float-card:nth-child(1) {
  top: 40px;
  left: 8%;
  transform: rotate(-3deg);
}
.float-card:nth-child(2) {
  top: 150px;
  right: 6%;
  transform: rotate(2.5deg);
}
.float-card:nth-child(3) {
  bottom: 40px;
  left: 14%;
  transform: rotate(-1deg);
}

/* Программы */
.program-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.program {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}
.program h3 {
  font-size: 32px;
  line-height: 1.1;
}
.benefit {
  display: grid;
  gap: 4px;
}
.benefit .amount {
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--orange);
  margin: 0;
}
.benefit .amount.undisclosed,
.amount.undisclosed {
  font-size: 22px;
  color: var(--ink);
}
.benefit span {
  font-size: 15px;
  color: var(--muted);
}
.program-facts {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 20px;
}
.program-facts div:first-child {
  grid-column: 1 / -1;
}
.program-facts dt {
  font-size: 15px;
  color: var(--muted);
}
.program-facts dd {
  margin: 3px 0 0;
  font-size: 16px;
  line-height: 1.35;
}
.program-meta {
  font-size: 16px;
  color: var(--muted);
}
.catalog-table td > p {
  margin-bottom: 6px;
}
.catalog-table .chips {
  margin-top: 10px;
}
.fact-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}
.fact-grid.single {
  grid-template-columns: 1fr;
  margin: 22px 0 6px;
}
.fact-grid li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 16px;
  line-height: 1.35;
}
.fact-grid .icon {
  color: var(--orange);
  margin-top: 1px;
}
.fact-grid li span {
  display: grid;
  gap: 2px;
}
.fact-grid em {
  font-size: 15px;
  color: var(--muted);
}
.program .actions {
  margin-top: auto;
  padding-top: 4px;
}
.program .button {
  font-size: 17px;
  min-height: 52px;
  padding: 14px 22px;
}

/* Статистика */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.stat {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.stat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 500;
}
.stat-head .icon {
  color: var(--orange);
}
.stat strong {
  font-size: 64px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}
.stat strong.undisclosed {
  font-size: 40px;
  color: var(--muted) !important;
}
.split-bar {
  display: flex;
  gap: 4px;
  height: 12px;
}
.split-bar span {
  border-radius: 6px;
  background: var(--k);
  min-width: 12px;
}
.stat-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 15px;
}
.stat-legend span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.stat-note {
  font-size: 15px;
  color: var(--muted);
  margin-top: auto;
}
.progress {
  height: 12px;
  border-radius: 6px;
  background: var(--surface-2);
  overflow: hidden;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--orange);
  border-radius: 6px;
}
.ring-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 4px;
}
.ring {
  --p: 0;
  flex: none;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--orange) calc(var(--p) * 1%), var(--surface-2) 0);
}
.ring b {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--surface);
  display: grid;
  place-items: center;
  font-size: 28px;
  font-weight: 500;
}
.bar-rows {
  display: grid;
  gap: 12px;
}
.bar-row {
  display: grid;
  grid-template-columns: 190px 1fr 40px;
  gap: 16px;
  align-items: center;
  font-size: 18px;
}
.bar-row .pill {
  justify-self: start;
}
.bar {
  height: 14px;
  border-radius: 7px;
  background: var(--surface);
  overflow: hidden;
}
.bar span {
  display: block;
  height: 100%;
  border-radius: 7px;
  background: var(--k);
}

/* Уведомления */
.notifications {
  background: var(--ink-dark);
  color: white;
  border-radius: 64px;
  padding: 64px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}
.notifications h2 {
  font-size: clamp(40px, 4.4vw, 60px);
  line-height: 1.06;
}
.notifications p {
  font-size: 19px;
  margin: 20px 0;
  max-width: 600px;
}
.notifications .muted {
  color: var(--line-strong);
  font-size: 16px !important;
}
.message-preview {
  margin: 0;
}
.message-preview figcaption {
  font-size: 16px;
  color: var(--line-strong);
  margin-bottom: 12px;
}
.bubble {
  background: #fff;
  color: var(--ink);
  border-radius: 28px 28px 28px 8px;
  padding: 22px;
  display: grid;
  gap: 12px;
  justify-items: start;
  box-shadow: 0 30px 60px #0006;
}
.bubble-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  width: 100%;
}
.bubble-head > span:last-child {
  margin-left: auto;
  color: var(--muted);
}
.bubble p {
  font-size: 17px !important;
  margin: 0 !important;
  color: var(--ink);
}
.bubble p.muted {
  color: var(--muted) !important;
  font-size: 15px !important;
}
.bubble-link {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-size: 15px;
  color: var(--orange);
  font-weight: 500;
}

/* Доверие и источники */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}
.trust-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
}
.icon-circle {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--orange-soft);
  color: var(--orange);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}
.icon-circle .icon {
  width: 26px;
  height: 26px;
}
.trust-card h3 {
  font-size: 26px;
  margin-bottom: 10px;
}
.trust-card p {
  font-size: 17px;
  color: var(--ink-2);
}
.source-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}
.source-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 24px;
  background: var(--surface);
  transition: background 0.15s;
}
.source-card:hover {
  background: var(--surface);
}
.source-card span {
  display: grid;
  gap: 2px;
}
.source-card strong {
  font-weight: 500;
  font-size: 18px;
}
.source-card em {
  font-size: 16px;
  color: var(--muted);
}

/* Подвал */
.footer {
  background: var(--surface);
  border-radius: 64px 64px 0 0;
  padding: 64px 0 48px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 30px;
}
.footer-grid h3 {
  font-size: 18px;
  margin-bottom: 18px;
}
.footer-grid a:not(.brand) {
  display: block;
  font-size: 16px;
  margin-top: 12px;
  color: var(--ink-2);
}
.footer-grid a:not(.brand):hover {
  color: var(--orange);
}
.footer-grid p {
  font-size: 16px;
  margin-top: 16px;
}

/* Внутренние страницы */
.page {
  padding: 56px 0 100px;
  min-height: 65vh;
}
.page-head {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0 0 30px;
}
.page-title {
  font-size: clamp(44px, 5.2vw, 76px);
  line-height: 1.04;
}
.page-description {
  font-size: 20px;
  max-width: 860px;
  margin-top: 14px;
  color: var(--ink-2);
}
.page .section-title {
  font-size: clamp(30px, 3vw, 42px);
  margin: 52px 0 24px;
}
.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--orange-soft);
  border-radius: 22px;
  padding: 18px 22px;
  font-size: 17px;
  line-height: 1.45;
  margin: 24px 0;
  color: var(--orange-ink);
}
/* Изменение условий программы: цитаты с официальной страницы списком под заголовком */
.notice.terms-change {
  display: block;
}
.notice.terms-change p {
  margin: 12px 0 4px;
  font-weight: 500;
}
.notice.terms-change ul {
  margin: 0;
  padding-left: 20px;
  font-size: 15px;
}
.notice .icon {
  color: var(--orange);
  margin-top: 2px;
}
.empty {
  padding: 40px;
  border-radius: var(--radius);
  background: var(--surface);
  font-size: 20px;
  color: var(--ink);
  grid-column: 1/-1;
  display: grid;
  justify-items: start;
  gap: 16px;
}
.empty-icon {
  width: 36px;
  height: 36px;
  color: var(--muted);
}
.result-count {
  font-size: 17px;
  color: var(--muted);
  margin: 26px 0 8px;
}
.result-count strong {
  color: var(--ink);
}
.catalog-table {
  width: 100%;
  border-spacing: 0 12px;
  table-layout: fixed;
  text-align: left;
  font-size: 16px;
}
.catalog-table th {
  padding: 8px 20px;
  font-weight: 500;
  font-size: 16px;
  color: var(--muted);
}
.catalog-table td {
  background: var(--surface);
  padding: 24px 20px;
  vertical-align: top;
  line-height: 1.4;
}
.catalog-table td:first-child {
  border-radius: 26px 0 0 26px;
  width: 32%;
}
.catalog-table td:last-child {
  border-radius: 0 26px 26px 0;
}
.catalog-table td > span {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}
.catalog-table td > .status-chip {
  display: inline-flex;
  background: #fff;
  margin-top: 16px;
}
.catalog-table .icon {
  color: var(--orange);
}
.row-title {
  display: flex;
  gap: 14px;
  align-items: center;
}
.row-title div {
  display: grid;
}
.row-title strong {
  font-weight: 500;
  font-size: 21px;
}
.row-title span {
  color: var(--muted);
  font-size: 15px;
}
.amount {
  display: block;
  font-size: 28px;
  font-weight: 500;
  color: var(--orange);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.amount.undisclosed {
  font-size: 22px;
}
.catalog-table .chips {
  margin-bottom: 4px;
}
.catalog-table .chip {
  background: #fff;
  font-size: 16px;
}
.catalog-table .button {
  font-size: 16px;
  padding: 12px 20px;
  min-height: 48px;
}
.catalog-table .plain {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  text-decoration: underline;
}
.catalog-mobile {
  display: none;
}
.detail-layout {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 44px;
  align-items: start;
  margin-top: 36px;
}
.detail-content h2 {
  font-size: 32px;
  margin: 40px 0 18px;
}
.detail-content h2:first-child {
  margin-top: 0;
}
.detail-content p,
.detail-content li {
  font-size: 19px;
  line-height: 1.5;
}
.detail-content ul,
.detail-content ol {
  padding-left: 24px;
}
.check-list,
.step-list {
  list-style: none;
  padding: 0 !important;
  display: grid;
  gap: 10px;
  margin: 0;
}
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 18px;
  border-radius: 18px;
  background: var(--surface);
  margin: 0 !important;
}
.check-list .icon {
  color: #1c8a52;
  margin-top: 4px;
}
.step-list {
  counter-reset: step;
}
.step-list li {
  counter-increment: step;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 0 !important;
}
.step-list li::before {
  content: counter(step);
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 16px;
  font-weight: 500;
}
.step-list li span {
  padding-top: 3px;
}
.episode {
  list-style: none;
  padding: 0 !important;
  display: grid;
  gap: 10px;
}
.episode li {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  border-radius: 18px;
  background: var(--surface);
  margin: 0 !important;
}
.episode li.current {
  background: #fff;
}
.episode li div {
  display: grid;
}
.episode li div span {
  font-size: 15px;
  color: var(--muted);
}
.episode a {
  text-decoration: underline;
}
.detail-aside {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 30px;
  position: sticky;
  top: 110px;
}
.detail-aside h2 {
  font-size: 44px;
  letter-spacing: -0.03em;
  color: var(--orange);
  margin: 6px 0 8px;
}
.detail-aside h2.undisclosed {
  font-size: 32px;
}
.detail-aside > p {
  font-size: 17px;
}
.detail-aside .button {
  width: 100%;
  margin-top: 12px;
  font-size: 18px;
}
.detail-aside .fact-grid li {
  padding: 12px 14px;
  background: #fff;
  border-radius: 16px;
}
.fact-list {
  display: grid;
  gap: 16px;
  margin: 22px 0;
}
.fact-list div {
  font-size: 18px;
}
.fact-list dt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 6px;
}
.fact-list dd {
  margin: 0;
}
.detail-content .fact-list {
  grid-template-columns: 1fr 1fr;
}
.detail-content .fact-list div {
  background: var(--surface);
  padding: 16px 18px;
  border-radius: 18px;
}
.question {
  display: block;
  margin: 18px 0;
  font-size: 19px;
}
.question select {
  margin-top: 10px;
}
.result {
  font-size: 18px;
  line-height: 1.5;
  margin-top: 22px;
  background: var(--orange-soft);
  border-radius: 22px;
  padding: 22px;
}
.preferences {
  display: grid;
  gap: 20px;
  max-width: 850px;
}
.preferences fieldset {
  border: 0;
  background: var(--surface);
  border-radius: var(--radius);
  padding: 26px;
  margin: 0;
}
.preferences legend {
  float: left;
  width: 100%;
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 12px;
}
.preferences .button {
  justify-self: start;
}
.tabs {
  margin: 8px 0 28px;
}
.tabs .filter[aria-pressed='true'] {
  background: var(--ink);
}

/* Диалоги */
dialog {
  border: 0;
  border-radius: 36px;
  background: white;
  color: var(--ink);
  padding: 30px;
  width: min(720px, calc(100% - 32px));
  max-height: 90vh;
  overflow: auto;
}
dialog::backdrop {
  background: #1a1612a6;
  backdrop-filter: blur(3px);
}
dialog.drawer {
  margin: 16px 16px 16px auto;
  max-height: none;
  height: calc(100% - 32px);
  width: min(620px, calc(100% - 32px));
}
/* «Закрыть» — в правом верхнем углу на одной линии с заголовком, без пустой строки над ним */
dialog .close {
  position: absolute;
  top: 34px;
  right: 30px;
  font-size: 16px;
  min-height: 44px;
  padding: 10px 18px;
  display: flex;
}
dialog h2 {
  font-size: 36px;
  margin: 0 0 20px;
}
#dialog-content > :first-child {
  min-height: 48px;
  padding-right: 130px;
}
/* Заголовок окна подключения: знак способа в плашке его цвета и название */
.dialog-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 4px;
}
.dialog-head h2 {
  margin: 0;
}
.dialog-icon {
  width: 52px;
  height: 52px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: var(--ch);
  color: #fff;
}
.dialog-icon img,
.dialog-icon .icon {
  width: 30px;
  height: 30px;
}
.dialog-icon img {
  filter: brightness(0) invert(1);
}
dialog p {
  font-size: 18px;
}
dialog .card {
  margin-top: 14px;
}
.search-results {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}
.search-result {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--surface);
  border-radius: 20px;
  padding: 14px;
  font-size: 18px;
}
.search-result:hover {
  background: var(--surface-2);
}
.search-result span {
  display: grid;
}
.search-result em {
  font-size: 16px;
  color: var(--muted);
}
/* Запрос согласия на счётчики посещений */
.consent {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: 16px 16px 16px 24px;
  border-radius: var(--radius);
  background: var(--ink);
  color: white;
}
.consent p {
  margin: 0;
  font-size: 17px;
  flex: 1 1 280px;
}
.consent .actions {
  margin: 0;
}
.consent .button {
  min-height: 48px;
  padding: 12px 22px;
  font-size: 17px;
}
.button.ghost {
  background: none;
  color: white;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  font-size: 16px;
  padding: 16px 24px;
  border-radius: 100px;
  z-index: 50;
  display: none;
  max-width: calc(100% - 32px);
}
#toast.visible {
  display: block;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 1250px) {
  .desktop-nav {
    gap: 18px;
    font-size: 16px;
  }
  .site-header {
    gap: 20px;
  }
  .header-cta {
    padding: 14px 16px;
  }
  .hero-layout {
    gap: 40px;
  }
  .card-grid,
  .companies-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .footer-grid > div:first-child {
    grid-column: 1/-1;
  }
  .stat strong {
    font-size: 52px;
  }
  .ring {
    width: 100px;
    height: 100px;
  }
  .ring b {
    width: 74px;
    height: 74px;
    font-size: 24px;
  }
}
@media (max-width: 1000px) {
  .desktop-nav,
  .header-controls {
    display: none;
  }
  .mobile-toggle {
    display: block;
    margin-left: auto;
    font-size: 17px;
    background: var(--ink);
    color: white;
    border-radius: var(--radius-btn);
    padding: 14px 20px;
  }
  /* Мобильное меню на весь экран: шапка остаётся сверху (меню лежит под её содержимым),
     ниже — разделы, поиск, язык отдельной группой и кнопка подписки */
  .mobile-nav {
    display: grid;
    align-content: start;
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    /* Края меню — по краям шапки: та же ширина страницы, что у неё */
    --mn-pad: calc((100% - var(--page)) / 2);
    padding: 104px var(--mn-pad) 28px;
    gap: 14px;
  }
  .mobile-nav[hidden] {
    display: none;
  }
  /* backdrop-filter у шапки делает её блоком для position: fixed — на время меню он снят */
  body.menu-open {
    overflow: hidden;
  }
  body.menu-open .site-header {
    backdrop-filter: none;
    box-shadow: none;
  }
  /* Пока меню открыто, шапка с кнопкой «Закрыть» закреплена сверху, где бы ни была прокрутка */
  body.menu-open #header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 20;
  }
  /* Разделы — простой список крупным текстом; текст на одной линии с логотипом в шапке */
  .mn-links {
    display: grid;
    gap: 2px;
    padding-bottom: 6px;
  }
  .mn-links a {
    padding: 12px 20px;
    border-radius: 14px;
    font-size: 24px;
    font-weight: 500;
  }
  .mn-links a:hover,
  .mn-links a[aria-current='page'] {
    background: var(--surface);
  }
  /* Поиск, язык и пояс — одна группа строк: значение справа, язык выбирается системным списком */
  .mn-settings {
    display: grid;
    gap: 3px;
  }
  .mn-row {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    padding: 15px 16px 15px 20px;
    border-radius: 6px;
    background: var(--surface);
    font-size: 17px;
    color: var(--ink);
    text-align: left;
    cursor: pointer;
  }
  .mn-settings > :first-child {
    border-radius: 18px 18px 6px 6px;
  }
  .mn-settings > :last-child {
    border-radius: 6px 6px 18px 18px;
  }
  .mn-row:hover,
  .mn-row:focus-within {
    background: var(--surface-2);
  }
  .mn-row > .icon:first-child {
    width: 20px;
    height: 20px;
    color: var(--ink-2);
  }
  .mn-row > span {
    flex: none;
  }
  .mn-row b {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: right;
    font-weight: 400;
    color: var(--muted);
  }
  .mn-row .mn-chev {
    width: 18px;
    height: 18px;
    margin-left: auto;
    color: var(--muted);
  }
  /* Язык: строка раскрывается списком языков в два столбца, выбранный отмечен галочкой */
  .mn-lang summary {
    list-style: none;
  }
  .mn-lang summary::-webkit-details-marker {
    display: none;
  }
  .mn-lang[open] .mn-chev {
    transform: rotate(90deg);
  }
  .mn-lang-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3px;
    margin-top: 3px;
  }
  .mn-lang-list button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 13px 16px 13px 20px;
    border-radius: 6px;
    background: var(--surface);
    color: var(--ink);
    font-size: 16px;
    text-align: left;
  }
  .mn-lang-list button:hover {
    background: var(--surface-2);
  }
  .mn-lang-list button[aria-pressed='true'] {
    font-weight: 500;
  }
  .mn-lang-list .icon {
    width: 18px;
    height: 18px;
    color: var(--orange);
  }
  /* Кнопка подписки — всегда внизу экрана меню */
  .mn-cta {
    position: sticky;
    bottom: 0;
    width: 100%;
    margin-top: 4px;
    box-shadow: 0 -16px 24px #fff;
  }
  .hero {
    padding: 150px 0 60px;
  }
  .hero-layout,
  .credits-layout,
  .notifications {
    /* minmax(0, …): колонка не шире экрана, даже если внутри длинная строка */
    grid-template-columns: minmax(0, 1fr);
  }
  .section {
    padding: 64px 0;
  }
  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  .section.dark,
  .section.light,
  .notifications {
    border-radius: 44px;
  }
  .stats-grid,
  .trust-grid,
  .source-grid {
    grid-template-columns: 1fr;
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .detail-aside {
    position: static;
    grid-row: 1;
  }
  .notifications {
    padding: 44px;
  }
  .calendar-box {
    padding: 22px;
  }
  .day {
    min-height: 92px;
  }
  .catalog-table {
    display: none;
  }
  .catalog-mobile {
    display: grid;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .credit-stack {
    min-height: 340px;
  }
}
@media (max-width: 700px) {
  .wrap {
    width: calc(100% - 32px);
  }
  .site-header {
    margin-top: 12px;
    width: calc(100% - 24px);
    height: 64px;
    padding: 8px 8px 8px 14px;
  }
  .mobile-nav {
    --mn-pad: 12px;
    padding-top: 92px;
  }
  .mn-links a {
    padding-inline: 14px;
  }
  .mn-row {
    padding-left: 14px;
  }
  .brand {
    font-size: 23px;
  }
  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 11px;
  }
  .mobile-toggle {
    font-size: 16px;
    padding: 12px 18px;
  }
  .hero {
    padding: 120px 0 48px;
  }
  .hero h1 {
    /* от ширины колонки: «Codex: объявлен сброс» — в две строки даже на 320 px */
    font-size: clamp(30px, 10.6cqi, 46px);
  }
  .hero-copy {
    font-size: 19px;
  }
  .hero .actions .button {
    width: 100%;
  }
  .button {
    font-size: 18px;
    min-height: 56px;
    padding: 14px 24px;
  }
  .state-card {
    padding: 20px;
    border-radius: 30px;
  }
  .state-list .status-chip {
    max-width: 48%;
    font-size: 15px;
  }
  .card-grid,
  .companies-grid,
  .program-grid {
    grid-template-columns: 1fr;
  }
  /* На главной в телефоне — четыре программы, остальные в каталоге по кнопке «Все программы · N» */
  .home-programs > :nth-child(n + 5) {
    display: none;
  }
  .card,
  .program {
    padding: 22px;
  }
  .card h3 {
    font-size: 23px;
  }
  .program h3 {
    font-size: 27px;
  }
  .fact-grid {
    grid-template-columns: 1fr;
  }
  .filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 2px 2px 10px;
    margin: 0 -2px 18px;
  }
  .section-head h2,
  .section-title {
    font-size: 36px;
  }
  .section.dark,
  .section.light,
  .notifications {
    border-radius: 32px;
  }
  .notifications {
    padding: 30px 22px;
  }
  .calendar-box {
    padding: 14px;
    border-radius: 26px;
  }
  .calendar-head h3 {
    font-size: 23px;
  }
  .calendar-nav .icon-button {
    width: 42px;
    height: 42px;
  }
  .calendar-grid,
  .weekdays {
    gap: 4px;
  }
  .weekdays {
    padding-left: 4px;
    font-size: 16px;
  }
  .day {
    min-height: 58px;
    padding: 4px;
    border-radius: 12px;
    align-items: center;
    gap: 3px;
  }
  .day-num {
    font-size: 16px;
    width: 26px;
    height: 26px;
  }
  /* На телефоне чип превращается в цветную полоску; подписи — в списке месяца под сеткой. */
  .day-chip {
    width: 100%;
    height: 6px;
    padding: 0;
    border-radius: 3px;
    background: var(--k);
    box-shadow: none;
    font-size: 0;
    overflow: hidden;
  }
  .day-more {
    display: none;
  }
  .legend {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
  }
  .credits-intro {
    padding: 64px 0 40px;
  }
  .credits-intro h2 {
    font-size: 44px;
  }
  .credit-stack {
    min-height: 300px;
    border-radius: 32px;
  }
  .float-card {
    padding: 12px 16px 12px 12px;
    gap: 12px;
  }
  .float-card .logo {
    --size: 44px;
  }
  .float-card strong {
    font-size: 20px;
  }
  .float-card:nth-child(2) {
    top: 118px;
  }
  .ring-row {
    gap: 14px;
  }
  .page {
    padding-top: 36px;
  }
  .page-head {
    gap: 16px;
    align-items: flex-start;
    flex-direction: column;
  }
  .logo.xl {
    --size: 64px;
    border-radius: 20px;
  }
  .page-title {
    font-size: 40px;
  }
  .bar-row {
    grid-template-columns: 1fr 40px;
  }
  .bar-row .bar {
    grid-column: 1/-1;
    grid-row: 2;
  }
  .detail-content .fact-list {
    grid-template-columns: 1fr;
  }
  .footer {
    border-radius: 36px 36px 0 0;
  }
  dialog {
    padding: 22px;
    border-radius: 28px;
  }
  dialog.drawer {
    margin: auto 0 0;
    width: 100%;
    max-width: 100%;
    height: 85vh;
    border-radius: 28px 28px 0 0;
  }
}
.brand-mark.mini {
  width: 26px;
  height: 26px;
  margin: 0;
}
.filter-panel {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
}
.filter-panel .fields {
  margin: 0 0 20px;
}
.filter-panel input[type='search'],
.filter-panel select {
  background: #fff;
}
.filter-panel .filter {
  background: #fff;
}
.filter-panel .filter[aria-pressed='true'] {
  background: var(--orange);
}
.filter-panel .filters {
  margin-bottom: 16px;
}
.filter-panel .button.pale {
  background: #fff;
}
.search-field {
  flex: 2;
}
.input-icon {
  position: relative;
  display: block;
}
.input-icon .icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}
.input-icon input {
  padding-left: 48px !important;
}
.panel-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  flex-wrap: wrap;
}
.panel-row .more-filters {
  flex: 1;
  min-width: 260px;
}
.panel-row .more-filters summary {
  background: #fff;
  box-shadow: none;
}
.panel-row .more-filters .fields {
  margin: 16px 0 0;
}
.panel-row .button {
  font-size: 17px;
  min-height: 50px;
  padding: 12px 22px;
}
@media (max-width: 700px) {
  .filter-panel {
    padding: 16px;
    border-radius: 28px;
  }
  .panel-row .button {
    width: 100%;
  }
  /* Поиск, платформа и сохранённые — друг под другом во всю ширину */
  .filter-panel > .fields {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .filter-panel > .fields > .field {
    min-width: 0;
  }
}
.fields > .field:only-child {
  max-width: 380px;
}
@media (max-width: 700px) {
  .calendar-box .fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .calendar-box .field {
    min-width: 0;
    font-size: 15px;
  }
  .calendar-box select {
    font-size: 15px;
    padding: 12px 30px 12px 14px;
    min-height: 46px;
  }
  .calendar-box .segmented {
    align-self: end;
  }
  .calendar-box .segmented .filter {
    padding: 9px 12px;
    font-size: 16px;
  }
}

.month-list {
  margin-top: 24px;
}
.month-list h4 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 500;
}
.month-row {
  display: grid;
  grid-template-columns: 64px 26px 90px auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  border-radius: 12px;
  font-size: 15px;
}
.month-row + .month-row {
}
.month-row:hover {
  background: var(--surface);
}
.month-row strong {
  font-weight: 500;
}
.mr-date {
  color: var(--muted);
}
.mr-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 700px) {
  .month-row {
    grid-template-columns: 56px 1fr auto;
    gap: 4px 10px;
  }
  .month-row .logo {
    display: none;
  }
  .mr-title {
    grid-column: 2 / -1;
    white-space: normal;
  }
}
@media (max-width: 700px) {
  .program .actions {
    margin-top: 4px;
  }
  .program-facts {
    grid-template-columns: 1fr;
  }
}

/* Статистика и страница компании */
.stats-grid.more {
  margin-top: 20px;
}
.stats-grid.more .stat strong {
  font-size: 44px;
}
.stats-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.reasons {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 28px;
  align-items: center;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--surface);
}
.donut {
  width: 170px;
  height: 170px;
  border-radius: 50%;
  -webkit-mask: radial-gradient(circle, #0000 46%, #000 47%);
  mask: radial-gradient(circle, #0000 46%, #000 47%);
}
.reasons ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  font-size: 17px;
}
.reasons li {
  display: flex;
  align-items: center;
  gap: 10px;
}
.reasons li i {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  flex: none;
}
.reasons li span {
  margin-left: auto;
  color: var(--muted);
  white-space: nowrap;
}
.timeline {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  display: grid;
  gap: 10px;
}
.tl-row {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 16px;
  align-items: center;
}
.tl-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 500;
}
.tl-cells {
  display: grid;
  grid-template-columns: repeat(92, 1fr);
  gap: 2px;
  height: 30px;
}
.tl-cells > * {
  border-radius: 3px;
  background: #fff;
}
.tl-cells a {
  background: var(--k);
}
.tl-months > div {
  display: grid;
  grid-template-columns: 31fr 31fr 30fr;
  font-size: 16px;
  color: var(--muted);
}
.timeline .legend {
  margin: 8px 0 0;
}
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  background: var(--surface);
  padding: 8px 20px;
}
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 17px;
  text-align: left;
}
.compare th,
.compare td {
  padding: 16px 10px;
  white-space: nowrap;
  vertical-align: top;
}
.compare thead th {
  font-size: 16px;
  font-weight: 400;
  color: var(--muted);
}
.compare tbody tr + tr > * {
}
.compare tbody th a {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
.compare td span {
  display: block;
  font-size: 16px;
  color: var(--muted);
}
.company-hero {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  margin: 8px 0 12px;
}
.lr-label {
  display: block;
  font-size: 15px;
  color: var(--muted);
}
/* На странице компании блок последнего сброса — тот же, что на главной, во всю колонку */
.company-hero .hero-last {
  max-width: none;
  margin-top: 0;
}
.company-now {
  display: grid;
  gap: 18px;
  align-content: start;
  padding: 30px;
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.company-now p {
  font-size: 18px;
  margin-top: 4px;
}
.company-now a:not(.button) {
  text-decoration: underline;
}
.company-now .button {
  justify-self: start;
}
@media (max-width: 1000px) {
  .stats-split,
  .company-hero {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
@media (max-width: 700px) {
  .reasons {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .reasons ul {
    width: 100%;
    font-size: 15px;
  }
  .tl-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .tl-months > span {
    display: none;
  }
  .stats-grid.more .stat strong {
    font-size: 34px;
  }
  .company-now {
    padding: 22px;
  }
}
.reasons-wrap {
  max-width: 720px;
}
.filter .count {
  font-size: 15px;
  padding: 1px 7px;
  border-radius: 6px;
  background: #0000000f;
}
.filter[aria-pressed='true'] .count,
.dark .filter .count {
  background: #ffffff2e;
}
.company-last {
  display: grid;
  gap: 2px;
}
.company-last span {
  font-size: 15px;
  color: var(--muted);
}
.company-last strong {
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.company-last em {
  font-size: 16px;
  color: var(--orange);
}
.company-card .mini-stats {
  grid-template-columns: 1fr 1fr;
}
.event-facts {
  margin: auto 0 0;
  padding-top: 14px;
  display: grid;
  gap: 10px;
  width: 100%;
}
.event-facts div {
  display: grid;
  grid-template-columns: 20px 1fr;
  column-gap: 10px;
  align-items: start;
}
.event-facts .icon {
  grid-row: span 2;
  width: 20px;
  height: 20px;
  color: var(--orange);
  margin-top: 2px;
}
.event-facts dt {
  font-size: 14px;
  color: var(--muted);
}
.event-facts dd {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}
.event-facts em {
  display: block;
  font-size: 15px;
  font-weight: 400;
  color: var(--muted);
}

/* Календарь сбросов и статистика рядом с ним. Календарь тянется на высоту колонки статистики,
   дни растут — под календарём не остаётся пустоты. */
.cal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr);
  gap: 20px;
  align-items: stretch;
}
.cal-layout .calendar-box {
  padding: 26px;
  display: flex;
  flex-direction: column;
}
.cal-layout .calendar-grid {
  flex: 1;
  grid-auto-rows: minmax(76px, 1fr);
}
/* На широком экране плитки «за месяц» и «с анонсом» в одну строку, компании — под ними */
@media (min-width: 1300px) {
  .cal-layout .cal-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
  }
  .cal-layout .cal-stats > .cs-scope,
  .cal-layout .cal-stats > .stat:nth-child(3) {
    grid-column: 1 / -1;
  }
  .cal-layout .cal-stats > .stat:nth-child(3) {
    order: 1;
  }
}
.cal-layout .calendar-head {
  margin-bottom: 18px;
}
.cal-layout .calendar-nav {
  align-items: center;
  gap: 12px;
}
.cal-layout .calendar-head h3 {
  font-size: 26px;
  min-width: 190px;
  text-align: center;
}
.field.compact {
  flex: 0 1 220px;
  min-width: 180px;
}
.field.compact select {
  min-height: 46px;
  padding: 10px 36px 10px 16px;
  font-size: 16px;
}
.cal-layout .day {
  height: auto;
  min-height: 76px;
  padding: 8px;
  gap: 4px;
  overflow: hidden;
}

.day-marks {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.reset-mark {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding-bottom: 3px;
  box-shadow: inset 0 -3px 0 var(--green-mark, #1c8a52);
}
.reset-mark.banked {
  box-shadow: inset 0 -3px 0 var(--orange);
}
.reset-mark .logo.xs {
  --size: 22px;
}
.reset-mark b {
  font-size: 12px;
  font-weight: 600;
}
.reset-legend {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-size: 16px;
}
.reset-legend li {
  display: flex;
  align-items: center;
  gap: 8px;
}
.reset-legend i {
  width: 22px;
  height: 4px;
  border-radius: 2px;
  background: #1c8a52;
}
.reset-legend i.banked {
  background: var(--orange);
}
.cal-stats {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 26px;
  display: grid;
  gap: 20px;
}
.cal-stats h3 {
  font-size: 24px;
  display: grid;
  gap: 2px;
}
.cal-stats h3 span {
  font-size: 16px;
  font-weight: 400;
  color: var(--muted);
}
.cs-big {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.cs-big div {
  padding: 16px;
  border-radius: 18px;
  background: var(--surface);
  display: grid;
}
.cs-big strong {
  font-size: 40px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.03em;
}
.cs-big div:first-child strong {
  color: #1c8a52;
}
.cs-big div:last-child strong {
  color: var(--orange);
}
.cs-big span {
  font-size: 16px;
  color: var(--muted);
  margin-top: 6px;
}
.cs-list {
  margin: 0;
  display: grid;
  gap: 16px;
}
.cs-list dt {
  font-size: 15px;
  color: var(--muted);
}
.cs-list dd {
  margin: 2px 0 0;
  font-size: 19px;
  font-weight: 600;
}
.cs-list em {
  display: block;
  margin-top: 3px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--muted);
}
.cs-companies {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 6px;
}
.cs-companies button {
  width: 100%;
  display: grid;
  grid-template-columns: 26px 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface);
  text-align: left;
  color: var(--ink);
}
.cs-companies button:hover {
  background: var(--surface-2);
}
.cs-companies .logo {
  grid-row: span 2;
}
.cs-companies strong {
  font-size: 17px;
  font-weight: 500;
}
.cs-companies span {
  font-size: 16px;
  text-align: right;
}
.cs-companies em {
  grid-column: 2 / -1;
  font-size: 15px;
  color: var(--muted);
}
.text-button {
  justify-self: start;
  font-size: 16px;
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
  padding: 0;
}
@media (max-width: 1100px) {
  .cal-layout {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .cal-layout .calendar-box,
  .cal-stats {
    padding: 16px;
    border-radius: 26px;
  }
  .cal-layout .calendar-head {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .cal-layout .calendar-nav {
    justify-content: space-between;
  }
  .cal-layout .calendar-head h3 {
    font-size: 20px;
    min-width: 0;
  }
  .field.compact {
    flex: 1 1 auto;
  }
  .cal-layout .day {
    height: 56px;
    padding: 4px;
    align-items: center;
  }
  .reset-mark {
    width: 18px;
    height: 18px;
  }
  .reset-mark .logo.xs {
    --size: 14px;
  }
  .reset-mark b {
    font-size: 0;
  }
  .reset-legend {
    font-size: 15px;
  }
}

/* Карточка программы кредитов */
.program .card-source strong {
  font-size: 22px;
  line-height: 1.2;
}
.program .card-source span {
  font-size: 15px;
}
.program-short {
  font-size: 18px;
  line-height: 1.4;
  color: var(--ink);
}
.difficulty {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 12px;
  row-gap: 4px;
}
.difficulty .label {
  grid-column: 1 / -1;
  font-size: 15px;
  color: var(--muted);
}
.difficulty .scale {
  display: flex;
  gap: 4px;
}
.difficulty .scale i {
  width: 26px;
  height: 8px;
  border-radius: 4px;
  background: var(--surface-2);
}
.difficulty b {
  font-size: 17px;
  font-weight: 600;
}
.difficulty em {
  grid-column: 1 / -1;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.4;
}
.difficulty.d-1 .scale i:nth-child(-n + 1) {
  background: #1c8a52;
}
.difficulty.d-2 .scale i:nth-child(-n + 2) {
  background: #d4a017;
}
.difficulty.d-3 .scale i:nth-child(-n + 3) {
  background: var(--orange-strong);
}
.difficulty.d-1 b {
  color: #1c8a52;
}
.difficulty.d-2 b {
  color: #a87c00;
}
.difficulty.d-3 b {
  color: var(--orange-strong);
}
ul.program-facts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
ul.program-facts li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 16px;
}
ul.program-facts .icon {
  width: 18px;
  height: 18px;
  color: var(--orange);
  margin-top: 2px;
}
.catalog-table .difficulty em {
  font-size: 14px;
}
.catalog-table .row-title a:hover strong {
  color: var(--orange);
}
.detail-aside .difficulty {
  margin: 16px 0 4px;
}
.catalog-table .difficulty .label {
  display: none;
}
.catalog-table th:nth-child(1) {
  width: 27%;
}
.catalog-table th:nth-child(2) {
  width: 16%;
}
.catalog-table th:nth-child(3) {
  width: 22%;
}
.catalog-table th:nth-child(4) {
  width: 21%;
}
.catalog-table td:first-child {
  width: auto;
}

/* Блок уведомлений */
.notify-panel {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 32px 48px;
  align-items: center;
  padding: 44px;
  border-radius: var(--radius-lg);
  background: var(--surface);
}
/* Как кейсы у референса: стопка сообщений бота с лёгким наклоном */
.bot-case {
  position: relative;
  min-height: 430px;
}
.tg-msg {
  position: absolute;
  width: min(380px, 88%);
  padding: 16px 18px 14px;
  border-radius: 22px;
  background: white;
  box-shadow: var(--shadow);
  font-size: 16px;
  line-height: 1.4;
}
.tg-msg.m1 {
  left: 0;
  top: 150px;
  transform: rotate(-2.5deg);
  z-index: 3;
}
.tg-msg.m2 {
  right: 0;
  top: 40px;
  transform: rotate(2deg);
  z-index: 2;
}
.tg-msg.m3 {
  left: 12%;
  top: 0;
  transform: rotate(-1deg);
  z-index: 1;
  opacity: 0.92;
}
.tg-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.tg-head .brand-mark {
  width: 28px;
  height: 28px;
}
.tg-head span:last-child {
  color: var(--muted);
  font-size: 14px;
}
.tg-body {
  display: grid;
  gap: 6px;
}
.tg-body p {
  margin: 0;
}
.tg-body ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
}
.tg-body li b {
  margin-right: 8px;
}
.tg-kind {
  color: var(--ink-2);
}
.tg-body blockquote {
  margin: 2px 0;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--orange-soft);
}
.tg-link {
  color: #2d67d8;
}
.tg-time {
  position: absolute;
  right: 16px;
  bottom: 12px;
  font-size: 13px;
  color: var(--muted);
}
@media (max-width: 1000px) {
  .bot-case {
    min-height: 0;
    display: grid;
    gap: 12px;
  }
  /* В столбик: без смещений и наклона стопки, иначе сообщения наезжают друг на друга */
  .tg-msg.m1,
  .tg-msg.m2,
  .tg-msg.m3 {
    position: static;
    width: 100%;
    transform: none;
    opacity: 1;
  }
  .tg-time {
    position: static;
    display: block;
    margin-top: 4px;
    text-align: right;
  }
  .tg-msg.m3 {
    display: none;
  }
  .tg-msg.m1 {
    order: -1;
  }
}
.notify-text h2 {
  font-size: clamp(32px, 3.4vw, 48px);
  line-height: 1.08;
}
.notify-text > p {
  font-size: 18px;
  margin: 14px 0 18px;
  color: var(--ink-2);
}
.notify-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 10px;
}
.notify-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 17px;
}
.notify-list .icon {
  width: 20px;
  height: 20px;
  color: #1c8a52;
  margin-top: 1px;
}
.channels {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  /* Под текстом и стопкой сообщений — все способы подписки в один ряд */
  grid-column: 1 / -1;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
@media (max-width: 1200px) {
  .channels {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .channels {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* Страница уведомлений: два шага — что присылать и куда; карточка на каждый канал */
.notify-step {
  margin-top: 40px;
}
.notify-step h2 {
  margin-bottom: 18px;
  font-size: clamp(26px, 3vw, 36px);
}
.notify-step .preferences {
  margin: 0;
  max-width: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 700px) {
  .notify-step .preferences {
    grid-template-columns: minmax(0, 1fr);
  }
}
.notify-hint {
  margin-top: 12px;
  font-size: 16px;
  color: var(--muted);
}
.nc-card.off {
  opacity: 0.65;
}
/* Карточка способа нажимается целиком (ссылка или кнопка растянуты на неё) и при наведении
   окрашивается в цвет способа: --ch задают классы .ch-telegram, .ch-push, .ch-discord, .ch-email */
.nc-card.nc-link {
  position: relative;
  transition:
    background 0.15s,
    color 0.15s;
}
.nc-card.nc-link .nc-action :is(a, button)::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.nc-card.nc-link:hover {
  background: var(--ch);
  color: #fff;
}
.nc-card.nc-link:hover > p,
.nc-card.nc-link:hover .nc-status {
  color: #fff;
}
.nc-card.nc-link:hover .button {
  background: #fff;
  color: var(--ch);
}
.nc-card.nc-link:hover .channel-icon img {
  filter: brightness(0) invert(1);
}
.nc-status.hint {
  color: var(--ink-2);
}
.notify-channels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 1000px) {
  .notify-channels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .notify-channels {
    grid-template-columns: minmax(0, 1fr);
  }
}
.nc-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  scroll-margin-top: 110px;
}
.nc-card:target {
  box-shadow: 0 0 0 2px var(--orange);
}
.nc-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nc-head .channel-icon {
  margin: 0;
}
.nc-head h3 {
  font-size: 22px;
}
.nc-card > p {
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink-2);
}
/* Действие карточки — внизу, на одной линии у всех карточек ряда; подсказка над кнопкой */
.nc-action {
  display: grid;
  gap: 12px;
  justify-items: start;
  margin-top: auto;
  padding-top: 4px;
}
.nc-action .nc-form {
  justify-self: stretch;
}
.nc-soon {
  justify-self: start;
  padding: 8px 14px;
  border-radius: 100px;
  background: #fff;
  font-size: 15px;
  color: var(--muted);
}
.nc-form {
  display: grid;
  gap: 10px;
}
.nc-form input,
.nc-form select {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  font: inherit;
  font-size: 16px;
}
.nc-form .button {
  justify-self: start;
}
.nc-status {
  font-size: 15px;
  color: var(--ink-2);
}
.nc-status:empty {
  display: none;
}
.nc-status.ok {
  color: #2f7a45;
}
.nc-status.error {
  color: var(--orange-deep);
}
.channels li {
  display: grid;
  gap: 4px;
  padding: 20px;
  border-radius: 22px;
  background: #fff;
}
.channel-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  color: var(--ink);
}
.channel-icon img,
.channel-icon .icon {
  width: 30px;
  height: 30px;
}
.channels strong {
  font-size: 19px;
  font-weight: 600;
}
.channels span {
  font-size: 16px;
  color: var(--muted);
}
.channels em {
  font-size: 15px;
  color: var(--orange);
  font-weight: 500;
  margin-top: 4px;
}
.channels .channel-open {
  justify-self: start;
  margin-top: 4px;
  font-size: 15px;
  font-weight: 500;
  color: var(--orange);
}
/* Способ уведомления целиком — ссылка; при наведении блок в цвете своего способа, текст белый */
.ch-telegram {
  --ch: #229ed9;
}
.ch-push {
  --ch: var(--orange);
}
.ch-discord {
  --ch: #5865f2;
}
.ch-email {
  --ch: var(--ink);
}
.channels li.on {
  padding: 0;
  transition:
    background 0.15s,
    color 0.15s;
}
button.channel-link {
  width: 100%;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.channels .channel-link {
  display: grid;
  align-content: start;
  gap: 4px;
  height: 100%;
  padding: 20px;
  border-radius: inherit;
  color: inherit;
}
.channels li.on:hover {
  background: var(--ch);
  color: #fff;
}
.channels li.on:hover span,
.channels li.on:hover .channel-open,
.channels li.on:hover .channel-icon {
  color: #fff;
}
.channels li.on:hover .channel-icon img {
  filter: brightness(0) invert(1);
}
.bot-panel {
  max-width: 850px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  padding: 24px 28px;
  border-radius: var(--radius);
  background: var(--surface);
}
.bot-panel h2 {
  margin: 0 0 6px;
  font-size: 26px;
  font-weight: 500;
}
.bot-panel p {
  margin: 0;
  max-width: 560px;
  font-size: 17px;
  line-height: 1.45;
}
.notify-note {
  grid-column: 1 / -1;
  font-size: 16px;
  color: var(--muted);
}
@media (max-width: 1000px) {
  .notify-panel {
    grid-template-columns: 1fr;
    padding: 28px;
  }
}
@media (max-width: 700px) {
  .notify-panel {
    padding: 20px;
    border-radius: 28px;
  }
  .channels li {
    padding: 16px;
  }
}
.card-kind {
  margin-bottom: -6px;
}
.card-source {
  min-width: 0;
}
.card-source strong,
.card-source span {
  overflow-wrap: anywhere;
}
.help-link {
  font-size: 16px;
  color: var(--line);
  text-decoration: none;
  background: none;
  padding: 0;
}
.help-link:hover {
  color: #fff;
}
.kinds-help {
  display: grid;
  gap: 16px;
  margin: 0;
}
.kinds-help div {
  display: grid;
  gap: 4px;
}
.kinds-help dd {
  margin: 0;
  font-size: 17px;
  line-height: 1.45;
}
#dialog-title:focus {
  outline: none;
}

/* Статус компании: ожидается сброс / недавний сброс */
.company-status {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  width: 100%;
}
.company-status .icon {
  width: 20px;
  height: 20px;
  margin-top: 1px;
}
.company-status div {
  display: grid;
  gap: 2px;
}
.company-status strong {
  font-size: 17px;
  font-weight: 600;
}
.company-status span {
  font-size: 15px;
  line-height: 1.35;
}
.s-expected {
  background: var(--orange-soft);
  color: var(--orange-deep);
}
.s-recent {
  background: #e3f5ea;
  color: #146c3f;
}
.s-banked {
  background: #fff3d6;
  color: #7a5200;
}
.status-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
  margin: 8px 0 16px;
}
.status-row:empty {
  display: none;
}
.more-marks {
  align-self: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.day-marks {
  flex-wrap: nowrap;
  gap: 3px;
}
.reset-mark {
  width: 24px;
  height: 26px;
}
.reset-mark .logo.xs {
  --size: 20px;
}
@media (max-width: 700px) {
  .day-marks {
    gap: 2px;
  }
  .reset-mark {
    width: 13px;
    height: 16px;
  }
  .reset-mark .logo.xs {
    --size: 12px;
  }
  .more-marks {
    font-size: 11px;
  }
}

/* Статистика рядом с календарём: прежние плитки с графиками */
.cal-stats {
  display: grid;
  gap: 14px;
  padding: 0;
  background: none;
  border-radius: 0;
}
.cs-scope {
  font-size: 17px;
  font-weight: 500;
  color: var(--muted);
}
.cal-stats .stat {
  background: #fff;
  padding: 24px;
  gap: 12px;
}
.cal-stats .stat strong {
  font-size: 48px;
}
.cal-stats .stat strong.undisclosed {
  font-size: 32px;
}
.cal-stats .ring {
  width: 96px;
  height: 96px;
}
.cal-stats .ring b {
  width: 72px;
  height: 72px;
  font-size: 22px;
  background: #fff;
}
.page .calendar-box,
.page .cal-stats .stat {
  background: var(--surface);
}
.page .cal-stats .ring b {
  background: var(--surface);
}
.page .cal-layout .day {
  background: #fff;
}
.page .cal-layout .day[aria-pressed='true'] {
  background: var(--orange-soft);
}

/* Настройки и регион */
.settings .question {
  display: grid;
  gap: 8px;
}
.hint {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.4;
}
.region-warning {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 10px 12px;
  border-radius: 14px;
  background: #fff3d6;
  color: #7a5200;
  font-size: 15px;
  line-height: 1.4;
}
.region-warning .icon {
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

/* Карточка компании: одинаковые строки во всех карточках, статус — цветом текста */
.company-card {
  gap: 18px;
}
.cc-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.cc-head h3 {
  font-size: 26px;
  margin: 0;
}
.cc-head span {
  font-size: 15px;
  color: var(--muted);
}
.cc-now {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 17px;
  color: var(--muted);
}
.cc-now .icon {
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: 1px;
}
.cc-now span {
  display: grid;
  gap: 2px;
  line-height: 1.35;
}
.cc-now b {
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-2);
}
.cc-now em {
  font-style: normal;
}
.cc-now.expected,
.cc-now.expected b {
  color: var(--orange-deep);
}
.cc-facts {
  margin: 0;
  display: grid;
  gap: 14px;
}
.cc-facts div {
  display: grid;
  gap: 2px;
}
.cc-facts dt {
  font-size: 14px;
  color: var(--muted);
}
.cc-facts dd {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
}
.cc-facts em {
  display: block;
  font-size: 15px;
  font-weight: 400;
  color: var(--muted);
}
.cc-facts em.recent {
  color: #1c8a52;
  font-weight: 500;
}

/* Статистика: строки компаний и график промежутков */
.cal-stats .cs-companies {
  gap: 8px;
}
.cal-stats .cs-companies button {
  grid-template-columns: 26px 1fr auto;
  row-gap: 2px;
  background: var(--surface);
}
.page .cal-stats .cs-companies button {
  background: #fff;
}
.cal-stats .cs-companies em {
  font-size: 14px;
  line-height: 1.35;
}
.cs-n {
  font-size: 15px;
  font-weight: 600;
}
.gap-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 150px;
  padding-top: 4px;
}
.gap-bar {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.gap-bar b {
  font-size: 14px;
  font-weight: 600;
}
.gap-bar span {
  width: 100%;
  max-width: 28px;
  border-radius: 6px 6px 3px 3px;
  background: #1c8a52;
}
.gap-bar em {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.cs-scope .text-button {
  font-size: 16px;
}
.cal-stats .cs-companies strong {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
}
@media (max-width: 1100px) {
  .cal-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
.gap-chart {
  min-width: 0;
  overflow: hidden;
}
@media (max-width: 700px) {
  .gap-bar em {
    display: none;
  }
  .gap-chart {
    height: 120px;
    gap: 4px;
  }
}

/* Выпадающие списки: стрелка вправо в закрытом виде, вниз — в открытом */
select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236a6864' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 16px center !important;
  background-size: 18px 18px !important;
  padding-right: 46px !important;
  cursor: pointer;
}
select:open {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236a6864' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
}

/* Календарь: выбор компании на одной линии с месяцем */
.cal-layout .calendar-head {
  align-items: center;
}
.cal-filter select {
  width: 230px;
  min-height: 48px;
  padding-top: 10px;
  padding-bottom: 10px;
  font-size: 16px;
}
@media (max-width: 700px) {
  .cal-filter,
  .cal-filter select {
    width: 100%;
  }
}

/* «Сейчас» на первом экране: строки — ссылки на компании */
.state-list li {
  padding: 0;
  background: none;
}
.state-list li a {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 16px 12px 12px;
  border-radius: 22px;
  background: var(--surface);
  transition: background 0.15s;
}
.state-list li a:hover {
  background: var(--surface-2);
}
.state-list li a > div {
  display: grid;
  flex: none;
}
/* Название не сжимается, статус занимает остаток строки и переносится сам. */
.state-list li a > .status-chip {
  flex: 1;
  max-width: none;
}
.state-list li a > .icon {
  width: 18px;
  height: 18px;
  color: var(--muted);
}
/* Самые узкие телефоны: строка «Сейчас» помещается без стрелки и с меньшими цифрами,
   отсчёт анонса и кнопки — в одну строку */
@media (max-width: 400px) {
  .hero-badge > .badge-text {
    padding: 9px 14px;
    font-size: 14px;
    white-space: nowrap;
  }
  .art-badge {
    width: 44px;
    height: 44px;
    padding: 7px;
  }
  .hero-announce {
    padding: 18px;
  }
  .hero-announce strong {
    font-size: 28px;
  }
  .hero .actions .button {
    min-height: 54px;
    padding: 14px 18px;
    font-size: 17px;
  }
  .state-list li a {
    gap: 10px;
    padding: 10px 12px 10px 10px;
  }
  .state-list li a > .icon {
    display: none;
  }
  .state-list strong {
    font-size: 17px;
  }
  .state-list li > a > div span {
    font-size: 14px;
  }
  .state-days b {
    font-size: 30px;
  }
  .state-days.expected b {
    font-size: 20px;
  }
  .state-days em {
    font-size: 13px;
  }
}

/* Карточка компании: заметный статус и последний сброс */
.cc-last {
  display: grid;
  gap: 2px;
}
.cc-label {
  font-size: 14px;
  color: var(--muted);
}
.cc-last strong {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.cc-last em {
  font-size: 16px;
  color: var(--muted);
}
.cc-last em.recent {
  color: #1c8a52;
  font-weight: 600;
}
.cc-kind {
  font-size: 15px;
  font-weight: 500;
  color: var(--orange);
  margin-top: 4px;
}
.cc-earlier {
  font-size: 15px;
  color: var(--muted);
  margin-top: 4px;
}
.company-card .cc-facts {
  grid-template-columns: auto 1fr;
  column-gap: 20px;
}

/* Палитра проекта (/?palette): панель поверх сайта. Свои нейтральные цвета, чтобы она оставалась
   читаемой при любых выбранных цветах. */
.palette-panel {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  width: min(400px, calc(100vw - 32px));
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px;
  border-radius: 24px;
  background: #fff;
  color: #1a1a1a;
  box-shadow:
    0 20px 60px #0000002e,
    0 0 0 1px #0000000f;
  font-size: 14px;
}
.pp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pp-head strong {
  font-size: 18px;
}
.pp-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f1f1;
  font-size: 20px;
  line-height: 1;
}
.pp-note {
  margin: 6px 0 4px;
  color: #666;
}
.pp-color {
  display: grid;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid #eee;
}
.pp-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.pp-swatch {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px #0000001f;
}
.pp-hex {
  margin-left: auto;
  width: 96px;
  padding: 7px 10px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font: inherit;
  font-family: ui-monospace, monospace;
}
.pp-pick {
  display: flex;
  gap: 14px;
  align-items: center;
}
.pp-pick canvas {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  cursor: crosshair;
  touch-action: none;
}
.pp-side {
  display: grid;
  gap: 8px;
  flex: 1;
  min-width: 0;
}
.pp-label {
  display: grid;
  gap: 4px;
  color: #666;
}
.pp-label input {
  width: 100%;
}
.pp-btn {
  position: relative;
  padding: 8px 12px;
  border-radius: var(--radius-btn);
  background: #f1f1f1;
  color: #1a1a1a;
  font-size: 14px;
  text-align: center;
  cursor: pointer;
}
.pp-btn:hover {
  background: #e6e6e6;
}
.pp-system input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.pp-ramp {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
}
.pp-ramp span {
  display: grid;
  gap: 4px;
  font-size: 11px;
  color: #666;
  line-height: 1.2;
}
.pp-ramp i {
  height: 30px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px #0000000f;
}
.pp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.pp-primary {
  background: #1a1a1a;
  color: #fff;
}
.pp-primary:hover {
  background: #333;
}
.pp-status {
  margin-top: 8px;
  color: #444;
}
.pp-status:empty {
  display: none;
}
/* Окно подключения Discord и почты на главной: поля на сером, чтобы были видны на белом окне */
.dialog-note {
  margin: 8px 0 18px;
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink-2);
}
#dialog .nc-form input,
#dialog .nc-form select {
  background: var(--surface);
}

/* Страница события: баннер в стиле постов Telegram — цвет по типу, продукт, подпись, время,
   справа покачиваются песочные часы (у banked-сброса выпрыгивает «+1») */
.ev-crumbs {
  margin: 8px 0 10px;
  font-size: 16px;
  color: var(--muted);
}
.ev-crumbs a:hover {
  color: var(--ink);
}
.ev-banner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin: 28px 0 36px;
  padding: 40px 48px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  overflow: hidden;
}
.ev-banner.b-reset_applied {
  background: var(--orange);
  color: #fff;
}
.ev-banner.b-announced {
  background: var(--ink);
  color: #fff;
}
.ev-product {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 600;
}
.ev-banner .logo {
  background: none;
}
.ev-banner.b-reset_applied .logo img,
.ev-banner.b-announced .logo img {
  filter: brightness(0) invert(1);
}
.ev-banner h2 {
  margin: 18px 0 6px;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.ev-banner.b-reset_grant h2 {
  color: var(--orange);
}
.ev-big {
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 600;
}
.ev-meta {
  margin-top: 2px;
  font-size: 18px;
  opacity: 0.85;
}
.ev-status {
  display: inline-block;
  margin-top: 18px;
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 600;
  background: #ffffff2e;
}
.ev-banner.b-reset_grant .ev-status,
.ev-banner.b-limit_change .ev-status {
  background: var(--surface-2);
}

.ev-visual {
  position: relative;
  width: clamp(150px, 18vw, 260px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.ev-mark {
  width: 100%;
  height: 100%;
  color: var(--surface);
  animation: ev-rock 1.6s ease-in-out infinite;
}
.ev-banner.b-reset_grant .ev-mark,
.ev-banner.b-limit_change .ev-mark,
.ev-banner.b-program_update .ev-mark {
  color: var(--orange);
}
@keyframes ev-rock {
  0%,
  100% {
    transform: rotate(-12deg);
  }
  50% {
    transform: rotate(12deg);
  }
}
.ev-plus {
  position: absolute;
  top: 4%;
  right: -6%;
  padding: 10px 20px;
  border-radius: 100px;
  background: var(--orange);
  color: #fff;
  font-size: clamp(26px, 2.6vw, 40px);
  font-weight: 700;
  animation: ev-plus 3.2s ease-in-out infinite;
}
@keyframes ev-plus {
  0%,
  72% {
    transform: scale(1);
  }
  78%,
  84% {
    transform: scale(0);
  }
  94% {
    transform: scale(1.15);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ev-mark,
  .ev-plus {
    animation: none;
  }
}
.ev-crumbs + .page-title {
  margin-bottom: 0;
}
/* Факты под баннером: все в один ряд и одной высоты — иконка, подпись, крупное значение;
   обещанное время — акцентом. Планшет — по два в ряд, телефон — списком с иконкой слева. */
.ev-facts {
  display: grid;
  grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr));
  gap: 12px;
  margin: 0 0 36px;
}
.ev-facts div {
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-content: start;
  gap: 6px;
  padding: 22px 24px 24px;
  border-radius: var(--radius);
  background: var(--surface);
}
.ev-facts .art-box {
  margin-bottom: 8px;
}
.art-evfact {
  width: 68px;
  height: 68px;
}
.ev-facts dt {
  font-size: 15px;
  color: var(--muted);
}
.ev-facts dd {
  margin: 0;
  display: grid;
  align-content: start;
  gap: 2px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
}
.ev-facts .text dd {
  font-size: 20px;
  line-height: 1.25;
}
.ev-facts dd span {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink-2);
}
.ev-facts .accent {
  background: var(--orange);
}
.ev-facts .accent dt,
.ev-facts .accent dd,
.ev-facts .accent dd span {
  color: #fff;
}
@media (max-width: 1100px) {
  .ev-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .ev-facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .ev-facts div {
    grid-template-columns: 44px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 14px;
    row-gap: 2px;
    align-items: center;
    padding: 16px 18px;
  }
  .ev-facts .art-box {
    grid-row: 1 / span 2;
    margin: 0;
  }
  .art-evfact {
    width: 58px;
    height: 58px;
  }
  .ev-facts dd,
  .ev-facts .text dd {
    font-size: 18px;
    display: block;
  }
  .ev-facts dd span {
    margin-left: 6px;
    font-size: 16px;
  }
}
.ev-main {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}
.ev-main h2,
.ev-episode h2 {
  margin-bottom: 14px;
  font-size: 26px;
}
.ev-what p {
  font-size: 24px;
  line-height: 1.45;
  color: var(--ink);
}
/* Пометка под переведённым текстом события — мелко и приглушённо */
.ev-what p.ev-tr {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
}
.ev-source {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--surface);
}
.ev-source h2 {
  margin: 0;
}
.ev-source p {
  font-size: 16px;
  color: var(--ink-2);
}
.ev-src-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.ev-src-head div {
  display: grid;
  gap: 2px;
}
.ev-src-head strong {
  font-size: 20px;
}
.ev-src-head span {
  font-size: 15px;
  color: var(--muted);
}
.ev-source .button {
  justify-self: start;
}
/* Эпизод: шаги на линии; сделанные — точка акцента, ожидаемый — пунктирная точка */
.ev-episode {
  margin-bottom: 36px;
}
.detail-content .ev-steps,
.ev-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}
.ev-steps li {
  position: relative;
  display: grid;
  gap: 2px;
  padding: 0 0 26px 40px;
}
.ev-steps li::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 22px;
  bottom: -2px;
  width: 2px;
  background: var(--surface-3);
}
.ev-steps li:last-child::before {
  display: none;
}
.ev-steps i {
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--orange);
}
.ev-steps li.pending i {
  background: #fff;
  border: 2px dashed var(--line-strong);
}
.ev-steps b {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}
.ev-steps strong,
.ev-steps a {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
}
.ev-steps a:hover {
  color: var(--orange);
}
.ev-steps li.pending strong {
  color: var(--ink-2);
}
.ev-steps span {
  font-size: 16px;
  color: var(--muted);
}
@media (max-width: 700px) {
  .ev-main {
    grid-template-columns: minmax(0, 1fr);
  }
  .ev-what p {
    font-size: 20px;
  }
}
@media (max-width: 900px) {
  .ev-banner {
    grid-template-columns: minmax(0, 1fr);
    padding: 28px 24px;
  }
  /* Часы — в строке со знаком продукта, справа; подпись начинается под ними и не перекрывается */
  .ev-visual {
    position: absolute;
    right: 20px;
    top: 20px;
    width: 76px;
  }
  .ev-product {
    min-height: 76px;
    padding-right: 90px;
  }
  .ev-plus {
    right: -14px;
    padding: 4px 10px;
    font-size: 18px;
  }
  .ev-banner h2 {
    margin-top: 10px;
  }
  .ev-text {
    position: relative;
    z-index: 1;
  }
}

/* Анонсы: сводка по исходам и отметка исхода на карточке */
.sig-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0;
}
.sig-stats div {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 24px 26px;
  border-radius: var(--radius);
  background: var(--surface);
}
.sig-stats .art-box {
  margin-bottom: 10px;
}
.sig-stats strong {
  font-size: clamp(32px, 3.4vw, 46px);
  line-height: 1;
}
.sig-stats span {
  font-size: 16px;
  color: var(--muted);
}
@media (max-width: 700px) {
  .sig-stats {
    grid-template-columns: minmax(0, 1fr);
  }
}
.card-kind {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
/* Исход анонса — обычным приглушённым текстом после типа: «Анонс · ждём подтверждения» */
.card-status {
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
}
.card-status::before {
  content: '·';
  margin-right: 8px;
}
/* Ряд кнопок-переходов (другие программы, анонсы, компании): одна строка, лишнее — прокруткой */
.switcher {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 18px 0 8px;
  padding-bottom: 2px;
}
.switcher::-webkit-scrollbar {
  display: none;
}
.switcher .filter {
  flex: none;
}
.switcher .logo.xs {
  width: 20px;
  height: 20px;
}
.filter[aria-current='page'] .logo img {
  filter: brightness(0) invert(1);
}
/* Страница лицензий: ссылки на тексты лицензий и источники */
.license-links a {
  color: var(--orange-deep);
  text-decoration: underline;
  text-underline-offset: 3px;
}
/* Текст первоисточника на странице события — как в посте, на языке оригинала */
.ev-quote {
  margin: 16px 0 0;
  padding: 16px 20px;
  border-radius: 18px;
  background: var(--white);
  font-size: 17px;
  line-height: 1.5;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
/* Свои объёмные иконки (вариант c): движение — в их анимациях (assets/art/*.webp); маски,
   точки и покачивания, подогнанные под картинки Fluent Emoji, к ним не применяются */
.art-box.own > img {
  -webkit-mask: none;
  mask: none;
  animation: none !important;
}
.art-box.own::before,
.art-box.own::after {
  content: none;
}
/* Ряд фильтров листается пальцем; полоса прокрутки под ним не нужна */
.filters {
  scrollbar-width: none;
}
.filters::-webkit-scrollbar {
  display: none;
}
