/* site */

:root {
  /* Нейтральная шкала, холодный зелёный подтон */
  --ink: #16211f;
  --ink-soft: #354744;
  --muted: #5d706d;
  --line: #dde5e3;
  --line-strong: #c6d2cf;
  --bg: #ffffff;
  --surface: #ffffff;
  --soft: #f2f6f5;
  --soft-2: #e8efed;
  --zebra: #f8fbfa;

  /* Основной цвет */
  --primary: #2b6b66;
  --primary-hover: #235852;
  --primary-active: #1b4642;
  --primary-tint: #e9f2f1;
  --primary-tint-2: #d7e7e5;
  --ring: rgba(43, 107, 102, 0.32);

  /* Акцент */
  --accent: #c1872c;
  --accent-hover: #d29b3e;
  --accent-active: #a97323;
  --accent-ink: #1a1305;
  --accent-strong: #8a5f16;
  --accent-on-dark: #e6b866;
  --ring-accent: rgba(193, 135, 44, 0.38);

  /* Тёмные плоскости */
  --deep: #0e2523;
  --deep-ink: #ffffff;
  --deep-body: #cfdedb;
  --deep-muted: #a9c2be;

  --footer-bg: #0e2523;
  --footer-ink: #c2d2cf;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(14, 37, 35, 0.05);
  --shadow-sm: 0 1px 2px rgba(14, 37, 35, 0.05), 0 2px 6px rgba(14, 37, 35, 0.06);
  --shadow-md: 0 1px 2px rgba(14, 37, 35, 0.05), 0 8px 20px -8px rgba(14, 37, 35, 0.22);

  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);

  --content-width: 1200px;
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   Доступность
   -------------------------------------------------------------------------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #fff;
  padding: 0.6rem 1.1rem;
  border-radius: 0 0 var(--radius) 0;
  font-weight: 600;
  z-index: 100;
}
.skip-link:focus { left: 0; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Каркас
   -------------------------------------------------------------------------- */

.container {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1rem;
}

main.container { padding-bottom: 2.5rem; }

/* --------------------------------------------------------------------------
   Шапка
   -------------------------------------------------------------------------- */

.site-header {
  position: relative;
  z-index: 40;
  background-color: var(--deep);
  background-image: linear-gradient(180deg, #143834 0%, var(--deep) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 60px;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-inline-end: 0.5rem;
  text-decoration: none;
  color: #ffffff;
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  border-radius: var(--radius-sm);
  transition: opacity 0.16s var(--ease);
}

.site-logo:hover { opacity: 0.85; color: #ffffff; }

.site-logo__mark {
  display: block;
  flex: none;
  width: auto;
  height: 22px;
}

.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

/* Гамбургер — только мобильный */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  flex: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: border-color 0.16s var(--ease), background 0.16s var(--ease);
}

.hamburger:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.14);
}

.hamburger span[aria-hidden="true"] {
  display: block;
  height: 2px;
  background: #ffffff;
  border-radius: 1px;
}

.nav-toggle:focus-visible ~ .site-header .hamburger {
  outline: 3px solid rgba(255, 255, 255, 0.55);
  outline-offset: 2px;
}

/* Меню: десктопное в строке шапки, мобильное — раскрывается чекбоксом */
.site-nav { display: none; min-width: 0; }

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  gap: 0.05rem;
}

.site-nav__list > li {
  position: relative;
  display: flex;
  margin: 0;
}

/* Верхний уровень: ссылка и кнопка выглядят одинаково */
.site-nav__top {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  margin: 0;
  padding: 0.5rem 0.4rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--deep-body);
  font: inherit;
  font-size: 0.86rem;
  line-height: 1.3;
  text-align: left;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.16s var(--ease), background 0.16s var(--ease);
}

.site-nav__top::after {
  content: "";
  position: absolute;
  left: 0.4rem;
  right: 0.4rem;
  bottom: 0.14rem;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s var(--ease);
}

.site-nav__top:hover,
.site-nav__top:focus-visible { color: #ffffff; background: rgba(255, 255, 255, 0.07); }

.site-nav__top:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.55);
  outline-offset: -3px;
}

.site-nav__top:hover::after { transform: scaleX(1); }

.site-nav__top.is-current,
.site-nav__top[aria-current="page"] { color: #ffffff; font-weight: 600; }

.site-nav__top.is-current::after,
.site-nav__top[aria-current="page"]::after { transform: scaleX(1); }

.site-nav__list > li:has([aria-current="page"]) > .site-nav__top,
.site-nav__list > li:has(.is-current) > .site-nav__top { color: #ffffff; }

.has-sub:hover > .site-nav__top,
.has-sub:focus-within > .site-nav__top {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

/* Шеврон нарисован рамкой, поворот — на раскрытии */
.site-nav__chev {
  position: relative;
  flex: none;
  display: inline-block;
  width: 0.7em;
  height: 0.7em;
  opacity: 0.8;
  transition: transform 0.2s var(--ease), opacity 0.16s var(--ease);
}

.site-nav__chev::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 44%;
  width: 0.4em;
  height: 0.4em;
  margin: -0.24em 0 0 -0.2em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  border-radius: 0 0 1px 0;
  transform: rotate(45deg);
}

.has-sub:hover > .site-nav__top .site-nav__chev,
.has-sub:focus-within > .site-nav__top .site-nav__chev {
  transform: rotate(180deg);
  opacity: 1;
}

/* Подменю: светлая карточка, раскрытие без скриптов */
.site-subnav {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 5;
  min-width: 12rem;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  border-radius: 0 0 var(--radius) var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-0.3rem);
  transition: opacity 0.16s var(--ease), transform 0.16s var(--ease),
    visibility 0s linear 0.16s;
}

/* Полоса-мост, чтобы курсор не терял подменю */
.site-subnav::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -0.6rem;
  height: 0.6rem;
}

.has-sub:hover > .site-subnav,
.has-sub:focus-within > .site-subnav {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.site-nav__list > li:last-child > .site-subnav { left: auto; right: 0; }

.site-subnav li { margin: 0; }

.site-subnav a {
  display: block;
  padding: 0.5rem 0.7rem;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.35;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.14s var(--ease), color 0.14s var(--ease);
}

.site-subnav a:hover,
.site-subnav a:focus-visible {
  background: var(--primary-tint);
  color: var(--primary-hover);
}

.site-subnav a.is-current,
.site-subnav a[aria-current="page"] {
  background: var(--primary-tint);
  color: var(--primary-hover);
  font-weight: 600;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0.3rem 1rem 0.8rem;
}

.nav-toggle:checked ~ .site-header .mobile-nav { display: flex; }

.mobile-nav a {
  padding: 0.75rem 0.15rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--deep-body);
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.16s var(--ease);
}

.mobile-nav a:hover { color: #ffffff; }

.mobile-nav a.is-current,
.mobile-nav a[aria-current="page"] {
  color: var(--accent-on-dark);
  font-weight: 600;
}

/* Подписи групп в мобильном меню — не ссылки */
.mobile-nav__group {
  margin: 0.95rem 0 0;
  padding: 0.55rem 0.15rem 0.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--accent-on-dark);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: default;
}

.mobile-nav__group:first-child { margin-top: 0.1rem; border-top: 0; }

.mobile-nav__group + a { border-top: 0; }

@media (min-width: 880px) {
  .hamburger { display: none; }

  .header-inner { min-height: 70px; }

  /* Пункты на всю высоту шапки: подменю ложится ровно под её край */
  .site-nav { display: flex; align-self: stretch; }
  .site-nav__list { height: 100%; }
  .site-nav__top { border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
  .site-nav__top::after { bottom: 0; }

  .nav-toggle:checked ~ .site-header .mobile-nav { display: none; }
}

@media (min-width: 1024px) {
  .site-nav__list { gap: 0.2rem; }
  .site-nav__top { padding: 0.55rem 0.6rem; font-size: 0.9rem; }
  .site-nav__top::after { left: 0.6rem; right: 0.6rem; }
}

@media (min-width: 1200px) {
  .site-nav__list { gap: 0.3rem; }
  .site-nav__top { padding: 0.55rem 0.75rem; font-size: 0.95rem; }
  .site-nav__top::after { left: 0.75rem; right: 0.75rem; }
}

/* --------------------------------------------------------------------------
   Крошки
   -------------------------------------------------------------------------- */

.breadcrumb { padding: 0.85rem 0 0; }

.breadcrumb__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.breadcrumb__item { display: inline-flex; align-items: center; gap: 0.5rem; }

.breadcrumb__item + .breadcrumb__item::before {
  content: "›";
  color: var(--line-strong);
}

.breadcrumb__item a {
  color: var(--muted);
  text-decoration: none;
  border-radius: 3px;
  transition: color 0.16s var(--ease);
}
.breadcrumb__item a:hover { color: var(--primary); text-decoration: underline; }
.breadcrumb__item [aria-current="page"] { color: var(--ink-soft); }

/* --------------------------------------------------------------------------
   Типографика контента
   -------------------------------------------------------------------------- */

h1, h2, h3, h4 {
  line-height: 1.25;
  color: var(--ink);
  margin: 1.6em 0 0.5em;
  letter-spacing: -0.012em;
  text-wrap: balance;
}

h1 { font-size: 1.7rem; margin-top: 1.25rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.08rem; letter-spacing: -0.006em; }

p { margin: 0.9em 0; }

ul, ol { margin: 0.9em 0; padding-left: 1.4em; }
li { margin: 0.35em 0; }

ul li::marker { color: var(--primary); }
ol li::marker { color: var(--primary); font-weight: 600; }

a {
  color: var(--primary);
  text-underline-offset: 0.16em;
  text-decoration-thickness: 1px;
  transition: color 0.16s var(--ease);
}
a:hover { color: var(--primary-hover); }

strong { color: var(--ink); }

code {
  padding: 0.12em 0.4em;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--soft);
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.88em;
}

hr {
  height: 1px;
  margin: 2rem 0;
  border: 0;
  background: var(--line);
}

/* --------------------------------------------------------------------------
   Таблицы
   -------------------------------------------------------------------------- */

.table-wrap {
  overflow-x: auto;
  margin: 1.3em 0;
  border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  margin: 1.3em 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  font-size: 0.95rem;
}

.table-wrap table { margin: 0; }

th, td {
  text-align: left;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  vertical-align: top;
}

th:last-child, td:last-child { border-right: 0; }
tbody tr:last-child td { border-bottom: 0; }

th {
  background: var(--soft);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.86rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

thead th { border-bottom: 1px solid var(--line-strong); }

thead tr:first-child th:first-child { border-top-left-radius: 9px; }
thead tr:first-child th:last-child { border-top-right-radius: 9px; }
tbody:first-child tr:first-child td:first-child { border-top-left-radius: 9px; }
tbody:first-child tr:first-child td:last-child { border-top-right-radius: 9px; }
tbody tr:last-child td:first-child { border-bottom-left-radius: 9px; }
tbody tr:last-child td:last-child { border-bottom-right-radius: 9px; }

tbody tr:nth-child(even) td { background: var(--zebra); }
tbody tr:hover td { background: var(--primary-tint); }

tbody td:first-child { color: var(--ink); font-weight: 600; }

/* На узком экране таблица прокручивается внутри себя */
@media (max-width: 640px) {
  table {
    display: block;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--line-strong) transparent;
  }
}

/* --------------------------------------------------------------------------
   Кнопки
   -------------------------------------------------------------------------- */

.cta-btn,
.hero__cta,
.header-cta,
.slot-card__cta,
.cookie-banner__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: inherit;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0.005em;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease),
    box-shadow 0.18s var(--ease), color 0.18s var(--ease),
    transform 0.12s var(--ease);
}

.cta-btn:hover,
.hero__cta:hover,
.header-cta:hover { transform: translateY(-1px); }

.cta-btn:active,
.hero__cta:active,
.header-cta:active { transform: translateY(0); }

/* Основное действие */
.cta-btn,
.hero__cta,
.header-cta {
  background-color: var(--accent);
  background-image: linear-gradient(180deg, var(--accent-hover) 0%, var(--accent) 62%);
  border-color: var(--accent-active);
  color: var(--accent-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 1px 2px rgba(26, 19, 5, 0.16),
    0 8px 18px -10px rgba(120, 82, 24, 0.7);
}

.cta-btn:hover,
.hero__cta:hover,
.header-cta:hover {
  background-image: linear-gradient(180deg, #ddab55 0%, var(--accent-hover) 62%);
  color: var(--accent-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 2px 4px rgba(26, 19, 5, 0.16),
    0 14px 26px -12px rgba(120, 82, 24, 0.75);
}

.cta-btn:active,
.hero__cta:active,
.header-cta:active {
  background-image: none;
  background-color: var(--accent-active);
  border-color: #8f6019;
  box-shadow: inset 0 2px 4px rgba(26, 19, 5, 0.28);
}

.cta-btn:focus-visible,
.hero__cta:focus-visible,
.header-cta:focus-visible {
  outline: 3px solid var(--ring-accent);
  outline-offset: 2px;
}

.cta-btn {
  padding: 0.78rem 1.5rem;
  font-size: 1rem;
}

p.cta { margin: 1.7rem 0 0.4rem; }

.header-cta {
  margin-inline-start: auto;
  padding: 0.52rem 1.05rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Иллюстрации
   -------------------------------------------------------------------------- */

/* Ширина картинки = ширине абзаца: одинаковые левый и правый край */
.page-figure {
  margin: 1.5em 0;
  width: 100%;
  max-width: 100%;
}

.page-figure img,
.page-figure picture { display: block; width: 100%; max-width: 100%; height: auto; }

.page-figure img {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.page-figure figcaption {
  margin-top: 0.55rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.demo-note {
  margin: 0.55rem 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

/* --------------------------------------------------------------------------
   FAQ
   -------------------------------------------------------------------------- */

.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 0.6rem;
  padding: 0 1rem;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.faq details:hover { border-color: var(--line-strong); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq details[open] {
  border-color: var(--primary-tint-2);
  box-shadow: var(--shadow-sm);
}
.faq summary {
  cursor: pointer;
  padding: 0.85rem 0;
  font-weight: 600;
  color: var(--ink);
  list-style-position: outside;
}
.faq summary::-webkit-details-marker { color: var(--primary); }
.faq details[open] summary { color: var(--primary-hover); }
.faq details p { margin-top: 0; }

/* --------------------------------------------------------------------------
   Баннер cookie
   -------------------------------------------------------------------------- */

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: var(--deep);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 -8px 28px -12px rgba(14, 37, 35, 0.6);
  color: var(--deep-body);
}

.cookie-banner[hidden] { display: none; }

.cookie-banner__inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0.85rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1rem;
}

.cookie-banner__text { margin: 0; font-size: 0.9rem; flex: 1 1 260px; }
.cookie-banner__text a { color: #ffffff; text-decoration: underline; }
.cookie-banner__text a:hover { color: var(--accent-on-dark); }

.cookie-banner__btn {
  flex: none;
  padding: 0.5rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
}

.cookie-banner__btn:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.6);
}

.cookie-banner__btn:active { background: rgba(255, 255, 255, 0.06); }

.cookie-banner__btn:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.55);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   404
   -------------------------------------------------------------------------- */

.page-404 { padding: 2rem 0; }
.page-404 h1 { margin-top: 0; }
.page-404__nav ul { list-style: none; padding: 0; margin: 1.2em 0; }
.page-404__nav li { margin: 0.4em 0; }

/* --------------------------------------------------------------------------
   Подвал
   -------------------------------------------------------------------------- */

.site-footer {
  background: var(--footer-bg);
  color: var(--footer-ink);
  margin-top: 2.5rem;
  padding: 2rem 0;
  border-top: 3px solid var(--primary);
  font-size: 0.9rem;
}

.site-footer__name {
  margin: 0 0 0.7rem;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.site-footer__facts {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__facts li { margin: 0.3rem 0; }

.site-footer__cookie {
  margin: 1rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.site-footer__cookie a { color: #ffffff; text-decoration: underline; }
.site-footer__cookie a:hover { color: var(--accent-on-dark); }

/* --------------------------------------------------------------------------
   Десктопные доработки
   -------------------------------------------------------------------------- */

@media (min-width: 760px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  main.container { padding-bottom: 3.5rem; }
}

/* --------------------------------------------------------------------------
   Герой
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  background-color: var(--deep);
  background-image:
    radial-gradient(1000px 460px at 12% -20%, rgba(193, 135, 44, 0.14), transparent 62%),
    radial-gradient(900px 520px at 88% -10%, rgba(43, 107, 102, 0.42), transparent 58%),
    linear-gradient(168deg, #133532 0%, #0e2523 58%, #112d2a 100%);
  color: var(--deep-body);
  padding: 3.2rem 0 2.9rem;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.hero__inner {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1rem;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  margin: 0 0 1.1rem;
  padding: 0.34em 0.85em;
  border: 1px solid rgba(230, 184, 102, 0.34);
  border-radius: var(--radius-pill);
  background: rgba(193, 135, 44, 0.14);
  color: var(--accent-on-dark);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.hero__text { max-width: 54rem; }
.hero__text h1 {
  margin: 0 0 1rem;
  color: var(--deep-ink);
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.hero__text p { color: var(--deep-body); font-size: 1.02rem; }
.hero__text p:last-child { margin-bottom: 0; }
.hero__text a {
  color: var(--accent-on-dark);
  text-decoration: underline;
  text-decoration-color: rgba(230, 184, 102, 0.45);
}
.hero__text a:hover { color: #f2ce8b; text-decoration-color: currentColor; }
.hero__text strong { color: #ffffff; }
.hero__text code {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #eaf2f0;
}

.hero__cta {
  margin-top: 1.7rem;
  padding: 0.8rem 1.3rem;
  font-size: 1rem;
}
.hero__cta-code {
  padding: 0.22em 0.6em;
  border: 1px solid rgba(26, 19, 5, 0.32);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.3);
  font: 700 0.95rem/1.2 var(--font-mono);
  letter-spacing: 0.04em;
}
.hero__cta-text { font-size: 0.95rem; }

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.9rem;
}
.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 8.5rem;
  padding: 0.8rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.hero__stat-value {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--deep-ink);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.hero__stat-label {
  font-size: 0.76rem;
  color: var(--deep-muted);
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------------------
   Якорное меню
   -------------------------------------------------------------------------- */

.toc-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 1.6rem;
}

.toc {
  display: block;
  max-width: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}

.toc:hover { border-color: var(--primary-tint-2); box-shadow: var(--shadow-sm); }

.toc[open] {
  align-self: stretch;
  border-color: var(--primary-tint-2);
  box-shadow: var(--shadow-sm);
}

/* Свёрнутое состояние — компактная полоса-кнопка */
.toc__summary {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.7rem;
  padding: 0.62rem 0.85rem;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--soft) 0%, var(--surface) 100%);
  cursor: pointer;
  list-style: none;
  transition: background 0.16s var(--ease);
}

.toc__summary::-webkit-details-marker { display: none; }
.toc__summary::marker { content: ""; }

.toc__summary:hover { background: var(--primary-tint); }

.toc__summary:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: -3px;
}

/* Значок списка */
.toc__summary::before {
  content: "";
  flex: none;
  width: 0.95rem;
  height: 0.72rem;
  background-image:
    linear-gradient(var(--accent-strong) 0 0),
    linear-gradient(var(--accent-strong) 0 0),
    linear-gradient(var(--accent-strong) 0 0);
  background-repeat: no-repeat;
  background-size: 100% 2px, 72% 2px, 88% 2px;
  background-position: 0 0, 0 50%, 0 100%;
}

.toc__title {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Маркер раскрытия */
.toc__summary::after {
  content: "+";
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--accent-strong);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease),
    color 0.16s var(--ease);
}

.toc__summary:hover::after {
  border-color: var(--primary);
  background: var(--surface);
  color: var(--primary-hover);
}

.toc[open] .toc__summary {
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
}

.toc[open] .toc__summary::after {
  content: "\2212";
  border-color: var(--primary);
  background: var(--primary);
  color: #ffffff;
}

/* Раскрытое состояние — нумерованный список якорей */
.toc > .toc__list {
  margin: 0;
  padding: 0.65rem 0.85rem 0.9rem;
  list-style: none;
  counter-reset: toc;
  column-gap: 1.6rem;
}

.toc__list li {
  margin: 0;
  counter-increment: toc;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
}

.toc__list a {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.34rem 0.45rem;
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.4;
  text-decoration: none;
  transition: background 0.14s var(--ease), color 0.14s var(--ease);
}

.toc__list a::before {
  content: counter(toc) ".";
  flex: none;
  min-width: 1.3em;
  color: var(--accent-strong);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.toc__list a:hover,
.toc__list a:focus-visible { background: var(--primary-tint); color: var(--primary-hover); }

.toc__list a:hover::before,
.toc__list a:focus-visible::before { color: var(--primary-hover); }

@media (min-width: 680px) {
  .toc__summary { padding: 0.68rem 1rem; }
  .toc > .toc__list { padding: 0.75rem 1rem 1rem; columns: 2; }
}

@media (min-width: 1000px) {
  .toc > .toc__list { columns: 3; column-gap: 1.8rem; }
}

/* --------------------------------------------------------------------------
   Секции контента
   -------------------------------------------------------------------------- */

.section { padding: 1.9rem 0; }
.section--alt {
  background: var(--soft);
  border-top: 1px solid var(--line);
}
.section__inner {
  width: 100%;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1rem;
}
.section__inner > h2 { margin-top: 0; scroll-margin-top: 1.25rem; }
.section__inner > h2::after,
.section-header h2::after {
  content: "";
  display: block;
  width: 2.6rem;
  height: 3px;
  margin-top: 0.6rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}

/* --------------------------------------------------------------------------
   Сетка игр
   -------------------------------------------------------------------------- */

.slots {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 2.6rem 0 3rem;
}
.section-header { margin-bottom: 1.35rem; }
.section-header h2 { margin: 0 0 0.35rem; }
.section-header p { margin: 0.7rem 0 0; color: var(--muted); }

.slot-filters { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.4rem; }
.slot-radio { position: absolute; opacity: 0; pointer-events: none; }
.slot-filters label {
  display: inline-flex;
  align-items: center;
  padding: 0.4em 0.95em;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-pill);
  background: var(--surface);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  user-select: none;
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease),
    color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.slot-filters label:hover {
  border-color: var(--primary);
  background: var(--primary-tint);
  color: var(--primary-hover);
}
.slot-radio:checked + label {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 4px 12px -6px rgba(43, 107, 102, 0.8);
}
.slot-radio:checked + label:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
  color: #fff;
}
.slot-radio:focus-visible + label {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

.slot-grid {
  margin: 0; padding: 0; list-style: none;
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
}
.slot-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease),
    transform 0.18s var(--ease);
}
.slot-card:hover {
  border-color: var(--primary-tint-2);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.slot-card__img {
  display: block; width: 100%; height: auto;
  aspect-ratio: 3 / 2; object-fit: cover;
  background: var(--soft-2);
  border-bottom: 1px solid var(--line);
  transition: transform 0.35s var(--ease);
}
.slot-card:hover .slot-card__img { transform: scale(1.035); }
.slot-card__body {
  display: flex; flex-direction: column; gap: 0.4rem;
  padding: 0.8rem 0.9rem 0.6rem;
}
.slot-card__name {
  font-weight: 600;
  font-size: 0.93rem;
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.slot-card__meta {
  display: flex; flex-wrap: wrap; gap: 0.35rem;
  font-size: 0.72rem; color: var(--muted);
}
.slot-card__theme, .slot-card__rtp {
  padding: 0.22em 0.65em;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--soft);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.slot-card__cta {
  display: block;
  margin: 0 0.9rem 0.9rem;
  padding: 0.52rem 0.8rem;
  border: 1px solid var(--accent-active);
  border-radius: var(--radius-sm);
  background-color: var(--accent);
  background-image: linear-gradient(180deg, var(--accent-hover) 0%, var(--accent) 62%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 1px 2px rgba(26, 19, 5, 0.14);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease),
    box-shadow 0.18s var(--ease), color 0.18s var(--ease);
}
.slot-card__cta:hover,
.slot-card__cta:focus-visible,
.slot-card:hover .slot-card__cta {
  background-image: linear-gradient(180deg, #ddab55 0%, var(--accent-hover) 62%);
  color: var(--accent-ink);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 2px 4px rgba(26, 19, 5, 0.16),
    0 8px 16px -10px rgba(120, 82, 24, 0.7);
}
.slot-card__cta:active {
  background-image: none;
  background-color: var(--accent-active);
  border-color: #8f6019;
  color: var(--accent-ink);
  box-shadow: inset 0 2px 4px rgba(26, 19, 5, 0.28);
}
.slot-card__cta:focus-visible {
  outline: 3px solid var(--ring-accent);
  outline-offset: 2px;
}

/* Фильтр без скриптов: выбранная тема прячет чужие карточки */
#th-1:checked ~ .slot-grid .slot-card:not([data-theme="1"]),
#th-2:checked ~ .slot-grid .slot-card:not([data-theme="2"]),
#th-3:checked ~ .slot-grid .slot-card:not([data-theme="3"]),
#th-4:checked ~ .slot-grid .slot-card:not([data-theme="4"]),
#th-5:checked ~ .slot-grid .slot-card:not([data-theme="5"]),
#th-6:checked ~ .slot-grid .slot-card:not([data-theme="6"]),
#th-7:checked ~ .slot-grid .slot-card:not([data-theme="7"]),
#th-8:checked ~ .slot-grid .slot-card:not([data-theme="8"]),
#th-9:checked ~ .slot-grid .slot-card:not([data-theme="9"]),
#th-10:checked ~ .slot-grid .slot-card:not([data-theme="10"]),
#th-11:checked ~ .slot-grid .slot-card:not([data-theme="11"]),
#th-12:checked ~ .slot-grid .slot-card:not([data-theme="12"]) { display: none; }

/* --------------------------------------------------------------------------
   Соседние страницы
   -------------------------------------------------------------------------- */

.more {
  border-top: 1px solid var(--line);
  background: var(--soft);
  padding: 2.4rem 0 2.6rem;
}
.more__title {
  margin: 0 0 1.1rem; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.more__grid {
  margin: 0; padding: 0; list-style: none;
  display: grid; gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}
.more__link {
  display: flex; justify-content: space-between; align-items: center; gap: 0.75rem;
  padding: 0.95rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease),
    transform 0.18s var(--ease), color 0.18s var(--ease);
}
.more__link:hover, .more__link:focus-visible {
  border-color: var(--primary-tint-2);
  color: var(--primary-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.more__link:active { transform: translateY(0); box-shadow: var(--shadow-xs); }
.more__link:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
.more__label { min-width: 0; }
.more__arrow {
  flex: none;
  color: var(--accent-strong);
  transition: transform 0.18s var(--ease);
}
.more__link:hover .more__arrow { transform: translateX(3px); }

/* --------------------------------------------------------------------------
   Развороты вопрос-ответ
   -------------------------------------------------------------------------- */

main details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 0 1.1rem;
  margin-bottom: 0.6rem;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
main details:hover { border-color: var(--line-strong); }
main details[open] {
  border-color: var(--primary-tint-2);
  box-shadow: var(--shadow-sm);
}
main summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  padding: 0.9rem 0;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
  border-radius: var(--radius-sm);
  transition: color 0.16s var(--ease);
}
main summary:hover { color: var(--primary-hover); }
main summary::-webkit-details-marker { display: none; }
main summary::after {
  content: "+";
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--soft);
  color: var(--accent-strong);
  font-weight: 700;
  line-height: 1;
  transition: background 0.16s var(--ease), border-color 0.16s var(--ease),
    color 0.16s var(--ease);
}
main summary:hover::after {
  border-color: var(--primary-tint-2);
  background: var(--primary-tint);
  color: var(--primary-hover);
}
main details[open] summary { color: var(--primary-hover); }
main details[open] summary::after {
  content: "\2212";
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
}
main details > *:last-child { margin-bottom: 1rem; }

/* Фильтр игр: состояние выбранной темы */
.slot-radio { position: absolute; opacity: 0; pointer-events: none; }
.slot-filters label { transition: background .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease); }
#th-1:checked ~ .slot-filters label[for="th-1"],
#th-2:checked ~ .slot-filters label[for="th-2"],
#th-3:checked ~ .slot-filters label[for="th-3"],
#th-4:checked ~ .slot-filters label[for="th-4"],
#th-5:checked ~ .slot-filters label[for="th-5"],
#th-6:checked ~ .slot-filters label[for="th-6"],
#th-7:checked ~ .slot-filters label[for="th-7"],
#th-8:checked ~ .slot-filters label[for="th-8"],
#th-9:checked ~ .slot-filters label[for="th-9"],
#th-10:checked ~ .slot-filters label[for="th-10"],
#th-11:checked ~ .slot-filters label[for="th-11"],
#th-12:checked ~ .slot-filters label[for="th-12"],
#th-all:checked ~ .slot-filters label[for="th-all"] {
  background: var(--primary); border-color: var(--primary);
  color: #fff; box-shadow: var(--shadow-xs);
}

/* Липкая шапка */
.site-header { position: sticky; top: 0; z-index: 60; }

/* --------------------------------------------------------------------------
   Калькуляторы: общие значения
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   Полоса ссылок на калькуляторы
   -------------------------------------------------------------------------- */

@supports ((mask-image: none) or (-webkit-mask-image: none)) {
  
}

/* --------------------------------------------------------------------------
   Калькуляторы
   -------------------------------------------------------------------------- */

@media (min-width: 640px) {
  
}

/* Поля */

/* Результат */

/* Подпись автора */
.byline { border-top: 1px solid var(--line); padding: 1.4rem 0; }
.byline__inner { display: flex; align-items: center; gap: 1rem; }
.byline__photo {
  width: 64px; height: 64px;
  border-radius: 999px;
  object-fit: cover;
  border: 2px solid var(--line-strong);
  flex: none;
}
.byline__text { display: flex; flex-direction: column; gap: .12rem; margin: 0; }
.byline__label {
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.byline__name { font-weight: 700; color: var(--primary); text-decoration: none; }
.byline__name:hover, .byline__name:focus-visible { text-decoration: underline; }
.byline__note { font-size: .86rem; color: var(--muted); }

/* Подвал: служебное меню строкой, под ним основное */
.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem 1.15rem;
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.footer-row a { color: var(--deep-body); text-decoration: none; font-size: .88rem; }
.footer-row a:hover, .footer-row a:focus-visible {
  color: #fff; text-decoration: underline;
}
.footer-row--main a { color: var(--deep-muted); font-size: .84rem; }

/* Полоса ссылок на калькуляторы */
.calc-strip {
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}
.calc-strip__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem .9rem;
  padding-top: .7rem;
  padding-bottom: .7rem;
}
.calc-strip__label {
  flex: none;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.calc-strip__nav { display: flex; flex-wrap: wrap; gap: .5rem; min-width: 0; }
.calc-strip__item {
  padding: .3rem .95rem;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: .84rem;
  text-decoration: none;
  transition: background .15s var(--ease), color .15s var(--ease),
              border-color .15s var(--ease);
}
.calc-strip__item::before { content: "\21D3"; margin-inline-end: .4em; color: var(--accent-strong); }
.calc-strip__item:hover, .calc-strip__item:focus-visible {
  background: var(--primary-tint);
  border-color: var(--primary);
  color: var(--primary-active);
}

/* Калькулятор */
.calc { background: var(--soft); padding: 2.2rem 0 2.5rem; }
.calc .section-header { margin-bottom: 1.2rem; }
.calc .section-header h2 { scroll-margin-top: 5.5rem; }

.calc-card {
  max-width: 34rem;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg, 14px);
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.calc-fields { display: grid; gap: 1rem; }
.calc-field { display: block; }
.calc-field label {
  display: block;
  margin-bottom: .35rem;
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink);
}
.calc-field input,
.calc-field select {
  width: 100%;
  height: 2.85rem;
  padding: 0 .85rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-variant-numeric: tabular-nums;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.calc-field select { appearance: none; padding-inline-end: 2.2rem; }
.calc-field input:hover,
.calc-field select:hover { border-color: var(--primary); }
.calc-field input:focus-visible,
.calc-field select:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--ring);
}

.calc-out {
  margin-top: 1.25rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-tint), var(--surface));
  text-align: center;
}
.calc-out__row {
  display: flex;
  flex-direction: column-reverse;
  gap: .25rem;
}
.calc-out__row + .calc-out__row {
  margin-top: .9rem;
  padding-top: .9rem;
  border-top: 1px solid rgba(0, 0, 0, .07);
}
.calc-out__value {
  font-size: clamp(1.25rem, 4vw, 1.75rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--primary-active);
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
}
.calc-out__label { font-size: .86rem; color: var(--muted); }
.calc-out__note {
  margin: .9rem 0 0;
  padding-top: .9rem;
  border-top: 1px solid rgba(0, 0, 0, .07);
  font-size: .78rem;
  color: var(--muted);
}


/* Полоса ссылок идёт сразу за героем, без зазора */
.calc-strip { border-top: 1px solid var(--line); margin-bottom: 2rem; }
.hero + .calc-strip { border-top: 0; }
.hero + .toc-wrap, .calc-strip + .toc-wrap { margin-top: 0; }

/* Калькуляторы в ряд */
.calc-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 56rem) {
  .calc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.calc-col { min-width: 0; }
.calc-col .calc-card { max-width: none; }
.calc-col .section-header { margin-bottom: .9rem; }
.calc-col .section-header h2 { font-size: clamp(1.1rem, 2.4vw, 1.35rem); }

/* Демо-кадр. Ширину задаёт CSS, а не атрибут width: в HTML он обязан быть
   числом, и "100%" валидатор считает ошибкой разметки. */
.demo-frame {
  margin: 1.5rem 0;
}
.demo-frame iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 560px;
  border: 0;
}
.demo-frame figcaption {
  margin-top: .5rem;
  font-size: .9rem;
  opacity: .8;
}
