/*
 * Лендинг Arcarius. Цвета, шрифты и тёмная тема — из tokens.css (ссылка на design/tokens.css),
 * здесь только раскладка и размеры страницы.
 * Светлая или тёмная — по системной настройке, переключателя нет.
 * Блоки страниц (site/src/blocks.ts) используют классы .sec-*: общая раскладка раздела и по классу на вид блока.
 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--link);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Шапка */
.top {
  border-bottom: 1px solid var(--border);
}

.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: 0.01em;
}

/* «ДЕМО» в шапке: капсом, без подчёркивания, отклик на наведение цветом */
.link-design {
  color: var(--link);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.link-design:hover,
.link-design:focus-visible {
  color: var(--accent);
}

/* Герой */
.hero {
  padding: 56px 0 64px;
}

.hero-wrap {
  position: relative;
}

/* Знак в углу героя: только на широком экране, на узком он отнимал бы место у заголовка */
.hero-mark {
  display: none;
}

@media (min-width: 960px) {
  .hero-mark {
    display: block;
    position: absolute;
    top: 8px;
    right: 20px;
    width: 240px;
    height: 240px;
    border-radius: 36px;
    box-shadow: var(--shadow-2);
  }
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  padding: 4px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 13px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

h1 {
  margin: 0;
  max-width: 17ch;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(34px, 8.6vw, 72px);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

/*
 * Плотный набор: тяжёлые узкие заглавные, буквы касаются, в каждом слове одна буква вывернута плашкой.
 * Кегль на пятую часть крупнее заголовка над ним, цвет плашки — цвет строки, буква вырезана цветом фона.
 * Anton кириллицы не имеет, берём Oswald 700: узкий, тяжёлый, с кириллицей
 */
.fused {
  margin: 14px 0 0;
  font-family: "Oswald", "Arial Narrow", Impact, sans-serif;
  font-weight: 700;
  font-size: clamp(41px, 10.3vw, 86px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  text-transform: uppercase;
  color: var(--accent);
}

.fz-word {
  display: inline-block;
  white-space: nowrap;
}

.fz-plate {
  display: inline-block;
  padding: 0.06em 0.03em 0;
  line-height: 0.86;
  background: var(--accent);
  color: var(--bg);
}

.lede {
  margin-top: 32px;
  max-width: 40em;
  font-size: 19px;
}

.lede p,
.state-text p,
.card p,
.sec-intro p {
  margin: 0;
}

.lede p + p {
  margin-top: 4px;
  color: var(--text-muted);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: var(--r-md);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background var(--dur-base), border-color var(--dur-base);
}

.btn-primary {
  background: var(--brand);
  color: var(--brand-contrast);
}

.btn-primary:hover {
  background: var(--brand-hover);
}

.btn-ghost {
  border-color: var(--border-strong);
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--surface-2);
}

.devices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.devices li {
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 14px;
}

/* Разделы */
h2 {
  margin: 0 0 28px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(26px, 5vw, 36px);
  line-height: 1.15;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}

.card {
  padding: 24px;
  border: 1px solid var(--border);
  border-top: 3px solid var(--accent);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}

.card h3 {
  margin: 0 0 12px;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
}

.card p + p {
  margin-top: 4px;
  color: var(--text-muted);
}

/* Подвал */
.foot {
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 15px;
}

.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px 40px;
  padding-top: 28px;
  padding-bottom: 28px;
}

.foot-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.foot-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, auto));
  gap: 6px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-links a {
  color: var(--text-muted);
}

/* Ссылки подвала без подчёркивания: отклик на наведение и фокус — цветом */
.foot a {
  text-decoration: none;
  transition: color 0.2s ease;
}

.foot a:hover,
.foot a:focus-visible {
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .foot a {
    transition: none;
  }
}

.brand-small {
  font-size: 16px;
}

/* Доступность */
.skip {
  position: absolute;
  left: 12px;
  top: -64px;
  z-index: 20;
  padding: 10px 16px;
  border-radius: var(--r-md);
  background: var(--brand);
  color: var(--brand-contrast);
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Меню направлений: без скрипта, на <details> */
.top {
  position: relative;
  z-index: 10;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.menu {
  position: relative;
}

/* Переключатель темы в шапке: три кнопки-значка, выбранная подсвечена */
.theme-seg {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: var(--surface);
}

.theme-seg[hidden] {
  display: none;
}

/* Название рядом со знаком прячется, только когда шапке не хватает места: ссылка подписана aria-label */
@media (max-width: 440px) {
  .top .brand span {
    display: none;
  }
}

.theme-seg button {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: calc(var(--r-md) - 3px);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.theme-seg button:hover {
  color: var(--text);
}

.theme-seg button[aria-pressed="true"] {
  background: var(--accent);
  color: var(--accent-contrast);
}

.theme-seg button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .theme-seg button {
    transition: none;
  }
}

.menu summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.menu summary::-webkit-details-marker {
  display: none;
}

.menu summary::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.menu[open] summary::after {
  transform: translateY(1px) rotate(-135deg);
}

.menu ul {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  width: max-content;
  min-width: 240px;
  max-width: calc(100vw - 40px);
  margin: 0;
  padding: 6px;
  list-style: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-2);
}

.menu li a {
  display: block;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  color: var(--text);
  text-decoration: none;
}

.menu li a:hover,
.menu li a[aria-current="page"] {
  background: var(--surface-2);
}

.menu-design {
  display: none;
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid var(--border);
}

.crumb {
  display: flex;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 15px;
}

.crumb a {
  color: var(--text-muted);
}

/* Разделы страниц */
.sec {
  padding: 64px 0;
}

main > .sec:nth-child(even) {
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.sec h2 {
  margin-bottom: 20px;
}

.sec-intro {
  max-width: 44em;
  margin: -8px 0 28px;
  color: var(--text-muted);
}

.sec-intro p + p {
  margin-top: 4px;
}

.more {
  display: inline-block;
  margin-top: 14px;
  color: var(--link);
  font-weight: 500;
  text-underline-offset: 4px;
}

a.card {
  color: inherit;
  text-decoration: none;
}

a.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-2);
}

/* Карточка-ссылка: «Открыть» — кнопка-пилюля, прижатая к низу, чтобы в ряду карточек кнопки стояли на одной линии */
a.card {
  display: flex;
  flex-direction: column;
}

a.card p {
  margin-bottom: 18px;
}

a.card .more {
  align-self: flex-start;
  margin-top: auto;
  padding: 6px 18px;
  border: 1px solid currentColor;
  border-radius: var(--r-pill);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

a.card:hover .more,
a.card:focus-visible .more {
  background: var(--link);
  border-color: var(--link);
  color: var(--surface);
}

@media (prefers-reduced-motion: reduce) {
  a.card .more {
    transition: none;
  }
}

.card .more {
  margin-top: 14px;
}

.note {
  margin: 20px 0 0;
  color: var(--text-muted);
  font-size: 15px;
}

.note + .note {
  margin-top: 4px;
}

.sec-link {
  margin-top: 28px;
}

/* Плитки: для кого, устройства */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tiles li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--r-md);
  background: var(--surface);
}

.tiles span {
  color: var(--text-muted);
  font-size: 15px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 4px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-size: 15px;
}

.int-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 24px;
}

.int-group h3 {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
}

/* Шаги */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  counter-increment: step;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
}

.steps span {
  color: var(--text-muted);
  font-size: 15px;
}

/* Выделенный блок и дорожная карта */
.callout {
  max-width: 52em;
  padding: 28px;
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--accent);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}

.callout h2 {
  margin-bottom: 14px;
}

.callout p {
  margin: 0;
}

.callout p + p {
  margin-top: 4px;
}

.points {
  margin: 20px 0 0;
  padding-left: 20px;
  color: var(--text-muted);
}

.points li + li {
  margin-top: 4px;
}

.road {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 16px;
}

.road-col {
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
}

.road-col h3 {
  margin: 0 0 12px;
  font-size: 17px;
}

.road-col ul {
  margin: 0;
  padding-left: 18px;
}

.road-col li + li {
  margin-top: 6px;
}

/* Ссылки на экраны дизайна */
.screens {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 12px;
}

.screen {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

.screen:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-2);
}

.screen span:last-child {
  color: var(--text-muted);
  font-size: 15px;
}

.screen-file {
  color: var(--link);
  font-family: var(--font-mono);
  font-size: 13px;
}

/* Видео: макет, самого видео нет */
.video {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.video-text h2 {
  margin-bottom: 14px;
}

.video-text p {
  margin: 0;
  color: var(--text-muted);
}

.video-text .btn {
  margin-top: 20px;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

.video-mock {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-lg);
  background:
    repeating-linear-gradient(135deg, transparent 0 14px, var(--border) 14px 15px),
    var(--surface-3);
  opacity: 0.8;
}

.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  transform: translate(-50%, -50%);
}

.video-play::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 52%;
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--text-faint);
  transform: translate(-50%, -50%);
}

/* Вопросы */
.faq {
  max-width: 52em;
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  position: relative;
  padding: 18px 40px 18px 0;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 14px;
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--accent);
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 0 18px;
  color: var(--text-muted);
}

.faq-answer p {
  margin: 0;
}

.faq-answer p + p {
  margin-top: 4px;
}

/* Примеры магазинов: заглушки отключены, демо — ссылка */
.shops {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
}

.shop-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}

.shop-card h3 {
  margin: 12px 0 0;
  font-size: 19px;
}

.shop-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

.shop-badge {
  align-self: flex-start;
  padding: 2px 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.shop-demo {
  border-color: var(--brand);
  border-top-width: 3px;
  box-shadow: var(--shadow-1);
}

.shop-demo:hover {
  box-shadow: var(--shadow-2);
}

.shop-demo .shop-badge {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand);
}

.shop-slot {
  border-style: dashed;
  background: transparent;
  opacity: 0.65;
  cursor: not-allowed;
  user-select: none;
}

/* Тарифы */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: 16px;
  align-items: stretch;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 22px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
}

.plan-hl {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-2);
}

.plan-badge {
  position: absolute;
  top: -13px;
  left: 16px;
  margin: 0;
  padding: 2px 12px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 13px;
  font-weight: 600;
}

.plan h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 24px;
}

.plan-tag {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

.plan-price {
  margin: 16px 0 14px;
}

.plan-price strong {
  font-size: 26px;
  line-height: 1.1;
}

.plan-price span {
  color: var(--text-muted);
  font-size: 15px;
}

/* Строка бесплатного периода под ценой и подсказка с условиями: раскрывается наведением и фокусом */
.plan-trial {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: -6px 0 14px;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
}

.tip {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 12px;
  line-height: 1;
  cursor: help;
}

.tip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.tip-body {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 5;
  display: none;
  width: min(280px, 80vw);
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-2);
  color: var(--text);
  font-size: 13px;
  font-weight: 400;
}

.tip-body ul {
  margin: 0;
  padding-left: 18px;
}

.tip:hover + .tip-body,
.tip:focus + .tip-body {
  display: block;
}

.plan-limits {
  margin: 0 0 14px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}

.plan-limits div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 0;
}

.plan-limits dt {
  color: var(--text-muted);
}

.plan-limits dd {
  margin: 0;
  white-space: nowrap;
  text-align: right;
  font-weight: 500;
}

.plan-feat {
  flex: 1;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}

.plan-feat li {
  position: relative;
  padding: 3px 0 3px 22px;
}

.plan-feat li::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 9px;
  width: 10px;
  height: 5px;
  border-left: 2px solid var(--success);
  border-bottom: 2px solid var(--success);
  transform: rotate(-45deg);
}

.plan-feat li.off {
  color: var(--text-faint);
}

.plan-feat li.off::before {
  width: 10px;
  height: 0;
  border-left: 0;
  border-bottom: 2px solid var(--text-faint);
  top: 14px;
  transform: none;
}

.plan-shop {
  margin: 14px 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 14px;
}

/* Конструктор тарифа */
.calc {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--border-strong);
  border-top: 3px solid var(--accent);
  border-radius: var(--r-md);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}

.calc-head h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 24px;
}

.calc-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  margin-top: 20px;
}

.calc-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  grid-template-areas:
    "label num"
    "range range"
    "rate rate";
  gap: 6px 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.calc-row label {
  grid-area: label;
  font-weight: 500;
}

.calc-range {
  grid-area: range;
  width: 100%;
  min-height: 28px;
  accent-color: var(--brand);
}

.calc-num {
  grid-area: num;
  width: 100%;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-md);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 16px;
  text-align: right;
}

.calc-rate {
  grid-area: rate;
  color: var(--text-muted);
  font-size: 14px;
}

.calc-switches {
  display: grid;
  gap: 8px;
}

.calc-switch {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  cursor: pointer;
}

.calc-switch input {
  width: 20px;
  height: 20px;
  accent-color: var(--brand);
}

.calc-fixed {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
}

.calc-fixed li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 0;
}

.calc-fixed span {
  color: var(--text-muted);
}

.calc-features {
  margin-top: 12px;
}

.calc-total {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  margin: 22px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.calc-total output strong {
  font-size: 34px;
  line-height: 1.1;
  color: var(--brand);
}

.calc-total span {
  color: var(--text-muted);
}

/* Под итогом конструктора строка бесплатного периода идёт с отступом: подтяжка из карточек тарифа здесь наезжает на крупную цену */
.calc .plan-trial {
  margin: 10px 0 0;
}

@media (min-width: 760px) {
  .video {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
  }

  .calc-body {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 40px;
  }

  .calc-row {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr) 96px;
    grid-template-areas:
      "label range num"
      "rate rate rate";
  }
}

@media (max-width: 560px) {
  .link-design {
    display: none;
  }

  /* Шапка на телефоне: знак, меню и переключатель темы в одну строку */
  .top-nav {
    gap: 8px;
  }

  .theme-seg button {
    width: 32px;
    height: 32px;
  }

  .menu-design {
    display: block;
  }

  .sec {
    padding: 48px 0;
  }

  .callout {
    padding: 22px 18px;
  }

  .calc {
    padding: 18px 16px;
  }

  .foot-links {
    grid-template-columns: minmax(0, auto);
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 40px 0 48px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}
