/* =====================================================
   Трунилов · ИТ — палитра и движение
   Основа: Nexora (MIT). Эффекты: по мотивам Velora UI (MIT),
   переписаны обычным CSS, без React.
   ===================================================== */

:root {
  /* Палитра выбрана под доверие: нейтральная база, один акцент.
     Красный Яндекса и зелёный 2ГИС живут только на логотипах площадок. */
  --n-primary: #3B4EDB;
  --n-primary-dark: #2C3BB0;
  --n-secondary: #6355E0;
  --n-navy: #12141A;
  --n-slate: #5B6070;
  --n-slate-light: #6B7180;
  --n-bg: #FBFBFD;
  --n-bg-alt: #EEF0FE;
  --n-border: #E5E7EF;

  --n-gradient-primary: linear-gradient(135deg, #3B4EDB 0%, #6355E0 100%);
  --n-gradient-soft: linear-gradient(135deg, #EEF0FE 0%, #F3F1FD 100%);
  --n-gradient-dark: linear-gradient(135deg, #12141A 0%, #1E2233 100%);

  --n-shadow-sm: 0 2px 8px rgba(18, 20, 26, 0.05);
  --n-shadow-md: 0 8px 24px rgba(18, 20, 26, 0.07);
  --n-shadow-lg: 0 20px 48px rgba(18, 20, 26, 0.10);
  --n-shadow-primary: 0 12px 28px rgba(59, 78, 219, 0.24);

  --bs-primary: #3B4EDB;
  --bs-primary-rgb: 59, 78, 219;
  --bs-body-color: #3A3F4C;
  --bs-body-bg: #FFFFFF;
}

/* Подписи в шаблоне были слишком светлыми — доводим до нормы 4,5:1 */
.text-slate { color: #5B6070 !important; }
.stat-label { color: #5B6070; }

/* =====================================================
   Сияющая сетка в первом экране
   ===================================================== */
.hero { position: relative; background: var(--n-bg); overflow: hidden; }
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(59,78,219,.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(59,78,219,.07) 1px, transparent 1px);
  background-size: 56px 56px;
  /* сетка гаснет к краям, иначе спорит с текстом */
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 35%, #000 40%, transparent 100%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 35%, #000 40%, transparent 100%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute; top: -220px; left: 50%; transform: translateX(-50%);
  width: 1100px; height: 700px;
  background: radial-gradient(closest-side, rgba(59,78,219,.16), transparent 70%);
  pointer-events: none;
}
.hero > .container { position: relative; z-index: 1; }

/* =====================================================
   Бегущая рамка вокруг карточки
   ===================================================== */
@property --beam-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

.beam { position: relative; border-radius: var(--n-radius-lg); isolation: isolate; }
.beam::before {
  content: "";
  position: absolute; inset: -1.5px;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(from var(--beam-angle, 0deg),
              transparent 0turn, transparent .62turn,
              #3B4EDB .74turn, #8AA0FF .8turn, transparent .88turn, transparent 1turn);
  /* вырезаем середину: остаётся только рамка */
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: beam-spin 6s linear infinite;
  z-index: -1;
}
@keyframes beam-spin { to { --beam-angle: 360deg; } }

/* =====================================================
   Орбиты источников
   ===================================================== */
.orbit { position: relative; width: 300px; height: 300px; margin: 0 auto; }
.orbit__core {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 78px; height: 78px; border-radius: 22px;
  display: flex; align-items: center; justify-content: center;
  background: var(--n-gradient-primary); color: #fff; font-size: 1.7rem;
  box-shadow: var(--n-shadow-primary);
}
.orbit__ring {
  position: absolute; top: 50%; left: 50%;
  border: 1px dashed rgba(59,78,219,.28); border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: orbit-spin var(--orbit-time, 22s) linear infinite;
}
.orbit__ring--1 { width: 176px; height: 176px; }
.orbit__ring--2 { width: 282px; height: 282px; --orbit-time: 34s; animation-direction: reverse; }
.orbit__item {
  position: absolute; top: 50%; left: 50%;
  width: 46px; height: 46px; margin: -23px 0 0 -23px;
  border-radius: 13px; background: #fff; border: 1px solid var(--n-border);
  box-shadow: var(--n-shadow-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem; color: var(--n-primary);
  /* выносим по радиусу и откручиваем собственный поворот, чтобы значок не кувыркался */
  transform: rotate(var(--a)) translate(var(--r)) rotate(calc(-1 * var(--a)));
  animation: orbit-counter var(--orbit-time, 22s) linear infinite;
}
.orbit__ring--2 .orbit__item { animation-direction: reverse; }
.orbit__item img { width: 24px; height: 24px; display: block; }
@keyframes orbit-spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes orbit-counter { to { transform: rotate(var(--a)) translate(var(--r)) rotate(calc(-1 * var(--a) - 360deg)); } }

/* =====================================================
   Бегущая лента отзывов
   ===================================================== */


/* =====================================================
   Шильдик доверия — тот самый, что ставим клиентам
   ===================================================== */
.trust-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.72);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  padding: 11px 16px; border-radius: 999px; text-decoration: none;
  font-size: 13px; font-weight: 600; color: var(--n-navy); line-height: 1;
  white-space: nowrap; box-shadow: 0 4px 16px rgba(18,20,26,.18);
  transition: transform .18s ease, box-shadow .18s ease;
}
.trust-badge:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(18,20,26,.24); color: var(--n-navy); }
.trust-badge b { font-family: var(--n-font-display); font-size: 17px; font-weight: 700; }
.trust-badge .tb-stars { color: #E8A33D; letter-spacing: 1px; }
@media (max-width: 760px) { .trust-badge .tb-long { display: none; } }

/* Окно браузера с примером */
.browser {
  border-radius: var(--n-radius-lg); overflow: hidden; background: #fff;
  border: 1px solid var(--n-border); box-shadow: var(--n-shadow-lg);
}
.browser__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; background: #F4F5F9; border-bottom: 1px solid var(--n-border);
}
.browser__dot { width: 10px; height: 10px; border-radius: 50%; display: block; }
.browser__url {
  flex: 1; text-align: center; font-size: 12px; color: #6B7180;
  background: #fff; border: 1px solid var(--n-border); border-radius: 999px; padding: 4px 10px;
}
.browser__stage {
  position: relative; height: 300px;
  background: linear-gradient(135deg, #E8ECFB 0%, #F3EFFB 55%, #EAF1F7 100%);
}
.browser__stage-note {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  text-align: center; color: #6B7180; font-size: .85rem; padding: 0 24px;
}
.browser__badge { position: absolute; left: 16px; bottom: 16px; }
.browser__stage--shot { height: auto; background: none; }
.browser--link { display: block; text-decoration: none; transition: transform .25s ease, box-shadow .25s ease; }
.browser--link:hover { transform: translateY(-4px); box-shadow: 0 22px 50px rgba(24, 30, 66, .18); }
.browser__stage--shot picture { display: block; }
.browser__shot { display: block; width: 100%; height: auto; }

/* Сравнение: виджет против блока */
.vs-card { height: 100%; border-radius: var(--n-radius-lg); padding: 28px; border: 1px solid var(--n-border); background: #fff; }
.vs-card--bad { background: #FCFBFB; }
.vs-card--good { border-color: rgba(59,78,219,.35); box-shadow: var(--n-shadow-md); }
.vs-list { list-style: none; padding: 0; margin: 0; }
.vs-list li { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--n-border); font-size: .95rem; }
.vs-list li:last-child { border-bottom: 0; }
.vs-list i { flex: none; margin-top: 3px; }

/* Карточка продукта с ценой */
.price { font-family: var(--n-font-display); font-size: 1.7rem; font-weight: 700; color: var(--n-navy); }
.price span { font-size: .9rem; font-weight: 500; color: #5B6070; }

/* В подвале фон тёмный — имя бренда там было почти невидимым */

/* =====================================================
   Форма заявки (внутри тёмного блока-призыва)
   ===================================================== */
.lead-form {
  background: #fff; border-radius: var(--n-radius-lg);
  padding: 26px 26px 22px; box-shadow: var(--n-shadow-lg);
}
.lead-form .form-label { font-size: .85rem; font-weight: 600; color: var(--n-navy); margin-bottom: 6px; }
.lead-form__opt { font-weight: 400; color: #6B7180; }
.lead-form .form-control {
  border: 1px solid var(--n-border); border-radius: var(--n-radius-sm);
  padding: 11px 14px; font-size: .95rem; color: #12141A; background: #fff;
}
.lead-form .form-control:focus {
  border-color: var(--n-primary);
  box-shadow: 0 0 0 3px rgba(59,78,219,.16);
}
.lead-form .form-control.is-bad { border-color: #C0392B; }
.lead-form .btn { padding: 13px 20px; font-weight: 600; }
.lead-form__note { margin: 12px 0 0; font-size: .85rem; color: #5B6070; min-height: 1.2em; }
.lead-form__note.is-ok  { color: #1B7F4B; }
.lead-form__note.is-bad { color: #C0392B; }

/* Ловушка для ботов: убираем с экрана, но оставляем доступной для автозаполнения */
.lead-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Уважаем системную настройку «меньше движения» */
@media (prefers-reduced-motion: reduce) {
  .beam::before, .orbit__ring, .orbit__item { animation: none !important; }
  .trust-badge { transition: none; }
  html { scroll-behavior: auto; }
}

/* Блок отзывов — та же вёрстка, что стоит у клиента, в нашей палитре */
.rv-demo { --rv-accent: var(--n-primary); --rv-ink: var(--n-navy); }
.rv-scores { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; align-items: stretch; margin-bottom: 32px; }
.rv-score {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--n-border);
  border-radius: var(--n-radius-lg); padding: 28px 28px 24px; text-decoration: none; color: inherit;
  box-shadow: 0 2px 12px rgba(11, 20, 55, .04); transition: transform .25s ease, box-shadow .25s ease;
}
a.rv-score:hover { transform: translateY(-4px); box-shadow: 0 16px 35px rgba(11, 20, 55, .09); border-color: rgba(21, 94, 239, .25); }
.rv-score-top { display: flex; align-items: center; gap: 14px; }
.rv-logo { width: 40px; height: 40px; flex: none; border-radius: 10px; display: block; }
.rv-score-name { font-family: var(--n-font-display); font-weight: 700; font-size: 19px; color: var(--rv-ink); }
.rv-score-line { height: 1px; background: var(--n-border); margin: 18px 0; }
.rv-score-main { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.rv-score-value { font-family: var(--n-font-display); font-weight: 800; font-size: 52px; line-height: 1; color: var(--rv-ink); }
.rv-score-count { margin-top: 14px; text-align: center; font-size: 14px; font-weight: 600; color: var(--rv-accent); }
.rv-score-total {
  border: none; background: var(--n-gradient-primary); color: #fff; align-items: center; justify-content: center;
  text-align: center; padding: 32px 28px; box-shadow: 0 12px 32px rgba(21, 94, 239, .3);
}
.rv-total-label { font-family: var(--n-font-display); font-size: 13px; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,255,255,.9); }
.rv-total-sep { display: flex; align-items: center; justify-content: center; gap: 14px; width: 100%; margin: 16px 0 8px; }
.rv-total-sep span { flex: 1; max-width: 110px; height: 1px; background: rgba(255,255,255,.4); }
.rv-total-value { font-family: var(--n-font-display); font-weight: 800; font-size: 68px; line-height: 1; color: #fff; }
.rv-total-sub { margin-top: 12px; font-size: 14px; font-weight: 500; color: rgba(255,255,255,.85); }
.rv-updated { margin: 0 0 28px; text-align: center; font-size: 13px; color: var(--n-slate); }
.rv-stars { position: relative; display: inline-block; font-size: 24px; line-height: 1; letter-spacing: 5px; white-space: nowrap; color: rgba(11, 20, 55, .15); }
.rv-stars i { position: absolute; left: 0; top: 0; width: var(--fill, 100%); overflow: hidden; font-style: normal; color: #E8A33D; }
.rv-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.rv-card {
  display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--n-border);
  border-radius: var(--n-radius-lg); padding: 26px 26px 22px; box-shadow: 0 2px 12px rgba(11, 20, 55, .04);
}
.rv-card-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.rv-avatar {
  width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--n-bg-alt); color: var(--rv-accent);
  display: flex; align-items: center; justify-content: center; font-family: var(--n-font-display); font-weight: 700; font-size: 18px;
}
.rv-who { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.rv-author { font-weight: 600; font-size: 16px; color: var(--rv-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rv-date { font-size: 12px; color: var(--n-slate-light); }
.rv-src { margin-left: auto; flex: none; width: 22px; height: 22px; border-radius: 6px; display: block; }
.rv-card .rv-stars { font-size: 17px; letter-spacing: 3px; margin-bottom: 12px; }
.rv-text {
  font-size: 15px; line-height: 1.65; overflow-wrap: anywhere; margin-bottom: 16px; color: #3A3F4C;
  display: -webkit-box; -webkit-line-clamp: 8; -webkit-box-orient: vertical; overflow: hidden;
}
.rv-link { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--n-border); font-size: 13px; font-weight: 600; color: var(--rv-accent); text-decoration: none; }
.rv-link:hover { opacity: .7; }
@media (max-width: 991px) { .rv-scores { grid-template-columns: 1fr; } .rv-score-main { flex-direction: row; justify-content: flex-start; gap: 18px; } .rv-score-value { font-size: 42px; } .rv-score-count { text-align: left; } }
@media (max-width: 1199px) { .rv-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) { .rv-list { grid-template-columns: minmax(0, 1fr); } .rv-total-value { font-size: 56px; } }

.prod-more { display: inline-block; margin-top: 12px; font-size: .9rem; font-weight: 600; color: var(--n-primary); text-decoration: none; }
.prod-more:hover { text-decoration: underline; }

.rv-hidden { display: none; }
.rv-more-wrap { text-align: center; margin-top: 28px; }
.rv-text { cursor: pointer; }
.rv-card--open .rv-text { -webkit-line-clamp: unset; display: block; }

/* Два главных продукта */
.product-card {
  background: #fff; border: 1px solid var(--n-border); border-radius: var(--n-radius-lg);
  box-shadow: 0 2px 14px rgba(11, 20, 55, .05); padding: 40px;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 18px 44px rgba(11, 20, 55, .10); border-color: transparent; }
.product-card__title { font-family: var(--n-font-display); font-weight: 700; font-size: 1.6rem; color: var(--n-navy); margin-bottom: 14px; }
.product-card__text { font-size: 1.02rem; line-height: 1.7; color: #3A3F4C; }
@media (max-width: 575px) { .product-card { padding: 28px; } .product-card__title { font-size: 1.35rem; } }

/* Пояснительная плитка среди шагов */
.process-step--note { background: var(--n-bg-alt); border-color: transparent; }

/* Фотография */
.person-photo img { width: 100%; height: auto; border-radius: var(--n-radius-lg); display: block; box-shadow: 0 18px 44px rgba(11, 20, 55, .12); }
.person-photo--empty {
  aspect-ratio: 13 / 16; border-radius: var(--n-radius-lg); background: var(--n-gradient-soft);
  border: 1px dashed var(--n-border); display: flex; align-items: center; justify-content: center;
  color: var(--n-slate); font-size: .9rem; text-align: center; padding: 24px;
}

/* Хлебные крошки и нумерованный список этапов */
.breadcrumb-line { font-size: .88rem; color: var(--n-slate); margin-bottom: 18px; }
.breadcrumb-line a { color: var(--n-primary); text-decoration: none; }
.breadcrumb-line a:hover { text-decoration: underline; }
.breadcrumb-line span { margin: 0 6px; }


/* Бейджи безопасности */
.safety-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.safety-badges span {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px;
  background: #fff; border: 1px solid var(--n-border); border-radius: 999px;
  font-size: .92rem; font-weight: 600; color: var(--n-navy); box-shadow: 0 2px 10px rgba(11, 20, 55, .04);
}
.safety-badges i { color: var(--n-primary); font-size: 1rem; }

/* Подсказка про доступ рядом с формой */
.lead-form__hint { margin: 12px 0 0; font-size: .85rem; line-height: 1.5; color: var(--n-slate); text-align: center; }

/* Сравнение: подзаголовок колонки, развёрнутые пункты и подсказка-пример */
.vs-card__sub { margin: -4px 0 16px; font-size: .92rem; color: var(--n-slate); }
.vs-list--rich li { align-items: flex-start; }
.vs-list--rich li span { line-height: 1.6; }
.vs-hint {
  display: block; margin-top: 6px; padding: 8px 12px; border-radius: 10px;
  background: var(--n-bg-alt); color: var(--n-slate); font-size: .85rem; line-height: 1.5;
}

/* Заголовок над карточками отзывов */
.rv-featured { margin: 6px 0 18px; font-family: var(--n-font-display); font-weight: 700; font-size: 1.15rem; color: var(--n-navy); text-align: center; }

/* Плашка на макете: заметная, но не поверх заголовка */
.browser__badge { position: absolute; left: 16px; bottom: 16px; }
.trust-badge:active { transform: translateY(0); box-shadow: 0 3px 12px rgba(18,20,26,.2); }

.form-hint { margin: 6px 0 0; font-size: .8rem; color: var(--n-slate); }

/* ================= Телефон: читаемость важнее эффектов =================
   Что было не так: весь текст по центру (абзац в семь строк «лесенкой»
   читать тяжело), большие отступы растягивали страницу, а появление блоков
   по прокрутке оставляло пустые экраны, если листать быстро. */
@media (max-width: 767px) {
  /* Текст по левому краю — центрируем только короткие подписи */
  .hero-content, .hero-content h1, .hero-content p,
  .section-header, .section-header .section-title, .section-header .section-subtitle {
    text-align: left;
  }
  .section-header .section-subtitle { margin-left: 0; margin-right: 0; }

  /* Кнопки первого экрана — одинаковые, во всю ширину */
  .hero-content .d-flex.flex-wrap.gap-3 { flex-direction: column; align-items: stretch; }
  .hero-content .btn-lg-custom { width: 100%; text-align: center; }

  /* Отступы: страница и так длинная */
  .hero { padding-top: 92px; padding-bottom: 48px; }
  .section { padding-top: 44px; padding-bottom: 44px; }
  .section-header { margin-bottom: 24px; }

  /* Появление по прокрутке выключаем: на телефоне это только пустые экраны */
  .reveal { opacity: 1 !important; transform: none !important; }

  /* Якорь не должен прятать заголовок под шапкой */
  section[id], header[id] { scroll-margin-top: 76px; }
}

/* Плитки с цифрами в кейсе: стиль шаблона висел на .stat-item, которого у нас
   нет, поэтому числа выглядели как обычный текст. */
.card-premium .stat-number {
  font-family: var(--n-font-display); font-weight: 800; font-size: 2.4rem;
  line-height: 1.05; color: var(--n-navy); margin-bottom: 6px;
}
.card-premium .stat-label { font-size: .88rem; line-height: 1.45; color: var(--n-slate); font-weight: 500; }
@media (max-width: 575px) {
  /* В две колонки подпись рассыпается по одному слову — на телефоне в одну */
  #case .row.g-3 > .col-6 { width: 100%; }
  .card-premium .stat-number { font-size: 2.1rem; }
}

/* Блок заявки тёмный, а список наследовал серый цвет с белых секций —
   на чёрном фоне читалось плохо. */
.cta-section .list-check li { color: rgba(255, 255, 255, .88); }
.cta-section .list-check li i { background: rgba(255, 255, 255, .12); color: #fff; }
.cta-section .lead-form__hint { color: var(--n-slate); }

/* Списки и карточки на телефоне: центрирование прилетало от первого экрана,
   из-за чего пункты вставали «лесенкой», а галочка уезжала от текста. */
@media (max-width: 767px) {
  .hero, .hero .row, .hero .card-premium,
  .vs-list, .vs-list li, .vs-list li span,
  .list-check, .list-check li, .card-premium { text-align: left; }

  /* Пункты меню — под палец: было 39px, надо не меньше 44 */
  /* в базовых стилях у этого правила стоит !important, иначе не перебить */
  .navbar-nexora .navbar-nav .nav-item .nav-link { padding-top: 12px !important; padding-bottom: 12px !important; }
}

/* Раскрытое меню на телефоне: фон шапки полупрозрачный, и сквозь пункты
   просвечивал текст страницы — читать невозможно. */
@media (max-width: 991px) {
  .navbar-nexora .navbar-collapse.show,
  .navbar-nexora .navbar-collapse.collapsing {
    background: #fff;
    border-radius: var(--n-radius-md);
    box-shadow: 0 18px 44px rgba(11, 20, 55, .14);
    padding: 8px 14px 14px;
    margin-top: 10px;
  }
}

/* В подвале логотип был того же цвета, что и фон, — от слова «Трунилов»
   оставалась только синяя точка. */
.footer-nexora .navbar-brand-custom { color: #fff !important; }   /* в базовых стилях цвет задан с !important */
.footer-nexora .navbar-brand-custom span { color: var(--n-primary) !important; }

/* Страница оптимизации: H1 — тема страницы для поисковика, слоган — крупный подзаголовок */
.hero-slogan { font-family: var(--n-font-display); font-weight: 700; font-size: 1.5rem; line-height: 1.3; color: var(--n-navy); }
@media (max-width: 767px) { .hero-slogan { font-size: 1.2rem; } }

/* Доказательство из выдачи: скриншот и факты рядом */
.serp-shot { background: #fff; border: 1px solid var(--n-border); border-radius: var(--n-radius-lg);
  padding: 10px; box-shadow: 0 18px 44px rgba(11, 20, 55, .10); }
.serp-shot img { display: block; width: 100%; height: auto; border-radius: 12px; }
.serp-title { font-family: var(--n-font-display); font-weight: 700; font-size: 1.5rem; line-height: 1.3; color: var(--n-navy); margin: 10px 0 18px; }
.serp-facts { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 14px; }
.serp-facts li { position: relative; padding-left: 34px; line-height: 1.6; color: #3A3F4C; }
.serp-facts li::before {
  content: "1"; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--n-primary); color: #fff; font-family: var(--n-font-display); font-weight: 700; font-size: .78rem;
  display: flex; align-items: center; justify-content: center;
}
.serp-facts li b { color: var(--n-navy); }
.serp-note { font-size: .82rem; line-height: 1.5; color: var(--n-slate); margin: 0; }
@media (max-width: 767px) { .serp-title { font-size: 1.25rem; } }
.serp-facts li:nth-child(3)::before { content: "\2605"; font-size: .85rem; }   /* третий пункт не про первое место */

/* ================= Калькулятор заказа ================= */
.calc-box, .calc-total { background: #fff; border: 1px solid var(--n-border); border-radius: var(--n-radius-lg);
  box-shadow: 0 2px 14px rgba(11, 20, 55, .05); }
.calc-box { padding: 10px; }
.calc-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 14px; cursor: pointer; margin: 0; }
.calc-item:hover { background: var(--n-bg); }
.calc-item input[type="checkbox"] { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--n-primary); cursor: pointer; }
.calc-item__body { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.calc-item__head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.calc-item__head b { color: var(--n-navy); font-weight: 700; }
.calc-item__head em { font-style: normal; font-weight: 700; color: var(--n-primary); white-space: nowrap; }
.calc-item small { color: var(--n-slate); font-size: .86rem; line-height: 1.45; }
.calc-sub { margin: -4px 0 6px 36px; border-left: 2px solid var(--n-bg-alt); }
.calc-item--sub { padding: 12px 16px; }
.calc-pages { cursor: default; align-items: center; }
.calc-stepper { display: inline-flex; align-items: center; border: 1px solid var(--n-border); border-radius: 12px; overflow: hidden; flex: none; }
.calc-stepper button { width: 38px; height: 40px; border: 0; background: var(--n-bg); font-size: 1.2rem; color: var(--n-navy); cursor: pointer; }
.calc-stepper button:hover { background: var(--n-bg-alt); }
.calc-stepper input { width: 46px; height: 40px; border: 0; text-align: center; font-weight: 700; color: var(--n-navy); -moz-appearance: textfield; }
.calc-stepper input::-webkit-outer-spin-button, .calc-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.calc-total { padding: 26px; position: sticky; top: 96px; }
.calc-total__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 0; }
.calc-total__row span { color: var(--n-slate); }
.calc-total__row b { font-family: var(--n-font-display); font-weight: 800; font-size: 1.9rem; color: var(--n-navy); white-space: nowrap; }
.calc-total__row--days span:last-child { color: var(--n-navy); font-weight: 600; text-align: right; }
.calc-list { list-style: none; padding: 12px 0; margin: 10px 0 16px; border-top: 1px solid var(--n-border); border-bottom: 1px solid var(--n-border); font-size: .88rem; color: #3A3F4C; }
.calc-list li { padding: 3px 0; }
.calc-list:empty { display: none; }
.calc-empty { color: var(--n-slate); margin: 12px 0 0; }
.calc-note { font-size: .82rem; color: var(--n-slate); line-height: 1.45; margin: 12px 0 0; }
.calc-form .form-label { font-size: .88rem; }
@media (max-width: 991px) { .calc-total { position: static; } }
@media (max-width: 575px) {
  .calc-item__head { flex-direction: column; gap: 2px; }
  .calc-sub { margin-left: 12px; }
  .calc-pages { flex-direction: column; align-items: flex-start; }
  .calc-total__row b { font-size: 1.6rem; }
}

.product-card__term { color: var(--n-slate); font-size: .92rem; margin: 0 0 16px; }
.link-strong { font-weight: 700; color: var(--n-primary); text-decoration: none; }
.link-strong:hover { text-decoration: underline; }
.section--tight { padding-top: 56px; padding-bottom: 56px; }

/* Три факта в первом экране страницы продукта: цена, срок, абонентская плата */
.hero-facts { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts div { background: #fff; border: 1px solid var(--n-border); border-radius: 14px; padding: 10px 16px; min-width: 130px; }
.hero-facts b { display: block; font-family: var(--n-font-display); font-weight: 800; font-size: 1.15rem; color: var(--n-navy); }
.hero-facts span { font-size: .82rem; color: var(--n-slate); }

/* Форма заказа живёт внутри карточки итога — своя рамка и тень там лишние */
.calc-form { background: none; box-shadow: none; padding: 4px 0 0; border-radius: 0; }

/* Строки сетки с отступом g-5 (3rem) выходили за экран телефона на 12px: их
   отрицательные поля по 24px, а у контейнера запас только 12px. Документ
   становился 387px при экране 375. На узких экранах отступ как у контейнера. */
@media (max-width: 991px) {
  .row.g-5, .row.gx-5 { --bs-gutter-x: 1.5rem; }
}
