/* ==========================================================================
   main.css — дизайн-система и секции smg.uz
   Концепция «Инфраструктура + сигнал» — см. _dev/DESIGN.md.

   Порядок:
     0. Шрифты
     1. Токены (+ переопределение --bs-*)
     2. База
     3. Общие компоненты: рамка-чертёж, шапка секции, кнопки, теги, сигнал, reveal
     SECTION: navbar · mobile-menu · hero · metrics · services · pricing
     SECTION: partners · about · contact · footer · totop · modals
     4. Reduced motion

   Правило движения: анимируются только transform и opacity.
   Hover — только внутри @media (hover: hover).
   Пути к сменным иконкам — НЕ здесь, а в replaceable.css.
   ========================================================================== */


/* ==========================================================================
   0. Шрифты (OFL, локально, variable woff2)
   Сабсет: Basic Latin, пунктуация Latin-1, кириллица U+0400–045F, ʻ ʼ, типографская пунктуация,
   №, стрелки. Символы вне диапазона берутся из запасных шрифтов стека.
   ========================================================================== */

@font-face {
  font-family: "Unbounded";
  src: url("../fonts/unbounded-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00BF, U+00D7, U+02BB-02BC, U+0400-045F, U+2010-2027, U+2030-203A, U+20AC, U+2116, U+2122, U+2190-2199, U+2212, U+25B8, U+FFFD;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00BF, U+00D7, U+0400-045F, U+2010-2027, U+2030-203A, U+20AC, U+2116, U+2122, U+2190-2199, U+2212, U+FFFD;
}

/* В Manrope нет ʻ и ʼ (U+02BB/U+02BC, узбекские oʻ/gʻ). Запасной шрифт только для этих символов:
   глифы ‘ ’ самого Manrope (Unicode считает их типографски идентичными). Грузится только на UZ. */
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-uz-marks.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+02BB-02BC;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrainsmono-var.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0-00BF, U+00D7, U+02BC, U+0400-045F, U+2010-2027, U+2030-203A, U+20AC, U+2116, U+2122, U+2190-2199, U+2212, U+25B8, U+FFFD;
}

/* В JetBrains Mono нет ʻ (U+02BB). Запасной шрифт — глиф ‘ самого JetBrains Mono. */
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrainsmono-uz-marks.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+02BB;
}

/* Метрически подогнанные fallback-гарнитуры: подмена шрифта (swap) почти не сдвигает вёрстку */
@font-face {
  font-family: "Unbounded Fallback";
  src: local("Arial Bold"), local("Arial-BoldMT"), local("Arial");
  size-adjust: 129.9%;
  ascent-override: 76.6%;
  descent-override: 18.9%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Manrope Fallback";
  src: local("Arial"), local("ArialMT"), local("Helvetica");
  size-adjust: 101.3%;
  ascent-override: 105.3%;
  descent-override: 29.6%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "JetBrains Mono Fallback";
  src: local("Courier New"), local("CourierNewPSMT");
  size-adjust: 100%;
  ascent-override: 102%;
  descent-override: 30%;
  line-gap-override: 0%;
}


/* ==========================================================================
   1. Токены
   ========================================================================== */

:root,
[data-bs-theme="dark"] {
  /* Цвета бренда (утверждены) */
  --smg-orange: #FF6B00;
  --smg-yellow: #FFC300;
  --smg-gradient: linear-gradient(135deg, #FF6B00, #FFC300);
  --smg-bg: #0A0A0A;
  --smg-surface-1: #111111;
  --smg-surface-2: #1A1A1A;
  --smg-line: rgba(255, 255, 255, .08);
  --smg-text: #F5F5F5;
  --smg-muted: #A3A3A3;

  /* Производные */
  --smg-ink: #0A0A0A;
  --smg-dim: #8A8A8A;
  --smg-line-strong: rgba(255, 255, 255, .16);
  --smg-grid: rgba(255, 255, 255, .035);
  --smg-orange-soft: rgba(255, 107, 0, .12);
  --smg-orange-glow: rgba(255, 107, 0, .35);
  --smg-focus: #FFC300;

  /* Основная кнопка (CTA): белый текст ≥ 3:1 (WCAG AA для крупного жирного текста).
     Глобальный --smg-orange не меняется — он для остальных акцентов. */
  --smg-orange-btn: #EB6100;         /* белый текст 3.36:1 */
  --smg-orange-btn-hover: #D45000;   /* 4.25:1 (конец градиента при hover) */
  --smg-orange-btn-active: #C04800;  /* 5.04:1 */

  /* Шрифты */
  --smg-font-head: "Unbounded", "Unbounded Fallback", "Geologica", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --smg-font-text: "Manrope", "Manrope Fallback", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --smg-font-mono: "JetBrains Mono", "JetBrains Mono Fallback", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Типографическая шкала (fluid) */
  --fs-display: clamp(2.25rem, 1.15rem + 4.6vw, 5.75rem);
  --fs-display-sub: clamp(1.25rem, 0.95rem + 1.5vw, 2.375rem);
  --fs-h2: clamp(1.75rem, 1.2rem + 2.3vw, 3.375rem);
  --fs-h3: clamp(1.125rem, 1.02rem + 0.45vw, 1.375rem);
  --fs-op: clamp(1.375rem, 0.9rem + 1vw, 2rem);
  --fs-metric: clamp(2.5rem, 1.6rem + 3.6vw, 4.75rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --fs-small: .875rem;
  --fs-mono: .75rem;

  /* Форма */
  --r-1: 2px;
  --r-2: 4px;
  --r-3: 8px;

  /* Движение */
  --dur-1: 160ms;
  --dur-2: 320ms;
  --dur-3: 650ms;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);

  /* Сетка и ритм */
  --nav-h: 64px;
  --section-pad: clamp(4.5rem, 2.75rem + 6vw, 8.5rem);
  --container-w: 100vw;

  /* Bootstrap: компоненты наследуют систему */
  --bs-body-bg: var(--smg-bg);
  --bs-body-bg-rgb: 10, 10, 10;
  --bs-body-color: var(--smg-text);
  --bs-body-color-rgb: 245, 245, 245;
  --bs-body-font-family: var(--smg-font-text);
  --bs-body-font-size: 1rem;
  --bs-body-font-weight: 400;
  --bs-body-line-height: 1.6;
  --bs-emphasis-color: #FFFFFF;
  --bs-emphasis-color-rgb: 255, 255, 255;
  --bs-secondary-color: var(--smg-muted);
  --bs-secondary-color-rgb: 163, 163, 163;
  --bs-tertiary-color: var(--smg-dim);
  --bs-secondary-bg: var(--smg-surface-1);
  --bs-secondary-bg-rgb: 17, 17, 17;
  --bs-tertiary-bg: var(--smg-surface-2);
  --bs-tertiary-bg-rgb: 26, 26, 26;
  --bs-heading-color: var(--smg-text);
  --bs-border-color: var(--smg-line);
  --bs-border-color-translucent: var(--smg-line);
  --bs-border-radius: var(--r-2);
  --bs-border-radius-sm: var(--r-1);
  --bs-border-radius-lg: var(--r-3);
  --bs-border-radius-xl: var(--r-3);
  --bs-border-radius-xxl: var(--r-3);
  --bs-box-shadow: none;
  --bs-box-shadow-sm: none;
  --bs-box-shadow-lg: none;
  --bs-primary: #FF6B00;
  --bs-primary-rgb: 255, 107, 0;
  --bs-primary-text-emphasis: #FFB27A;
  --bs-primary-bg-subtle: rgba(255, 107, 0, .12);
  --bs-primary-border-subtle: rgba(255, 107, 0, .4);
  --bs-link-color: #FF6B00;
  --bs-link-color-rgb: 255, 107, 0;
  --bs-link-hover-color: #FF8A33;
  --bs-link-hover-color-rgb: 255, 138, 51;
  --bs-highlight-bg: rgba(255, 107, 0, .25);
  --bs-highlight-color: var(--smg-text);
  --bs-focus-ring-color: rgba(255, 195, 0, .6);
  --bs-focus-ring-width: 2px;
  --bs-focus-ring-opacity: 1;
}

@media (min-width: 768px) {
  :root { --container-w: 720px; }
}

@media (min-width: 992px) {
  :root { --nav-h: 76px; --container-w: 960px; }
}

@media (min-width: 1200px) {
  :root { --container-w: 1140px; }
}

@media (min-width: 1400px) {
  :root { --container-w: 1320px; }
}


/* ==========================================================================
   2. База
   ========================================================================== */

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background-color: var(--smg-bg);
}

/* Страховка от горизонтальной прокрутки (причины исправлены в источниках) */
body {
  overflow-x: clip;
  min-width: 320px;
  background-color: var(--smg-bg);
  color: var(--smg-text);
  font-family: var(--smg-font-text);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, .smg-h2 {
  font-family: var(--smg-font-head);
  color: var(--smg-text);
  overflow-wrap: break-word;
  text-wrap: balance;
}

@supports not (overflow: clip) {
  body { overflow-x: hidden; }
}

p { text-wrap: pretty; }

a { color: var(--smg-orange); }

img, svg, canvas { display: block; }

::selection {
  background: var(--smg-orange);
  color: var(--smg-ink);
}

/* Фирменный фокус для всех интерактивных элементов */
:focus-visible {
  outline: 2px solid var(--smg-focus);
  outline-offset: 3px;
}

/* Иконки Bootstrap Icons: место резервируется до загрузки шрифта иконок (без сдвига вёрстки) */
.bi {
  display: inline-block;
  flex: none;
  width: 1em;
  height: 1em;
  line-height: 1;
}

.bi::before { vertical-align: top !important; }

button { -webkit-tap-highlight-color: transparent; }
a { -webkit-tap-highlight-color: transparent; }

/* Контейнер: поля на телефоне шире стандартных + safe area (iPhone с вырезом, landscape) */
.container {
  --bs-gutter-x: 2.5rem;
  padding-left: max(calc(var(--bs-gutter-x) * .5), env(safe-area-inset-left));
  padding-right: max(calc(var(--bs-gutter-x) * .5), env(safe-area-inset-right));
}

@media (min-width: 576px) {
  .container { --bs-gutter-x: 1.5rem; }
}

#main:focus { outline: none; }

/* Ссылка-заглушка (Telegram): без перехода и hover; Enter отменяет main.js (initDisabledLinks) */
a[aria-disabled="true"] {
  pointer-events: none;
  cursor: default;
}

.smg-nowrap { white-space: nowrap; }

.smg-lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--smg-muted);
}

/* Skip-link: виден только при фокусе с клавиатуры */
.smg-skip:focus,
.smg-skip:focus-within {
  position: fixed !important;
  top: calc(12px + env(safe-area-inset-top));
  left: max(12px, env(safe-area-inset-left));
  z-index: 2000;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--r-2);
  background: var(--smg-orange);
  color: var(--smg-ink);
  font-weight: 700;
  text-decoration: none;
}


/* ==========================================================================
   3. Общие компоненты
   ========================================================================== */

/* ---------- Рамка-чертёж: вертикальные линии по краям контейнера ---------- */
@media (min-width: 768px) {
  body::before {
    content: "";
    position: fixed;
    top: 0;
    bottom: 0;
    left: 50%;
    z-index: -1;
    width: var(--container-w);
    transform: translateX(-50%);
    border-left: 1px solid var(--smg-line);
    border-right: 1px solid var(--smg-line);
    pointer-events: none;
  }
}

/* ---------- Секция: линия сверху и крестики «+» на пересечении с рамкой ---------- */
.smg-section {
  position: relative;
  padding-block: var(--section-pad);
  border-top: 1px solid var(--smg-line);
  scroll-margin-top: var(--nav-h);
}

.smg-hero,
.smg-metrics {
  scroll-margin-top: var(--nav-h);
}

/* < 992px: отступы секций в 2–3 раза меньше; scroll-margin = навбар + 8px (DESIGN.md 3) */
@media (max-width: 991.98px) {
  :root { --section-pad: clamp(2.25rem, 1rem + 4.5vw, 3.5rem); }

  .smg-section,
  .smg-hero,
  .smg-metrics { scroll-margin-top: calc(var(--nav-h) + env(safe-area-inset-top) + 8px); }
}

.smg-cross::before,
.smg-section::before {
  --c: var(--smg-line-strong);
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  width: calc(var(--container-w) + 11px);
  height: 11px;
  transform: translateX(-50%);
  background:
    linear-gradient(var(--c), var(--c)) 0 5px / 11px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) 5px 0 / 1px 11px no-repeat,
    linear-gradient(var(--c), var(--c)) 100% 5px / 11px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) calc(100% - 5px) 0 / 1px 11px no-repeat;
  pointer-events: none;
}

@media (max-width: 767.98px) {
  .smg-cross::before,
  .smg-section::before { display: none; }
}

/* ---------- Шапка секции: моно-индекс, h2, подзаголовок ---------- */
.smg-section-head {
  margin-bottom: clamp(2.5rem, 1.75rem + 3vw, 4.5rem);
}

.smg-index {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 1.5rem;
  font-family: var(--smg-font-mono);
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .02em;
  color: var(--smg-muted);
}

.smg-index::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  background: var(--smg-orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, .18);
}

.smg-index::after {
  content: "";
  flex: 1 1 auto;
  min-width: 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--smg-line-strong), transparent);
}

.smg-h2 {
  margin: 0 0 1rem;
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.015em;
}

.smg-section-head__sub {
  max-width: 56ch;
  margin: 0;
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--smg-muted);
}

/* ---------- Кнопки ---------- */
.smg-btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .625rem;
  min-height: 48px;
  padding: 0 1.375rem;
  border: 0;
  border-radius: var(--r-2);
  background: transparent;
  color: var(--smg-text);
  font-family: var(--smg-font-text);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

.smg-btn .bi {
  font-size: 1.05em;
  transition: transform var(--dur-2) var(--ease-out);
}

.smg-btn--sm {
  min-height: 44px;
  padding: 0 1.125rem;
  font-size: .875rem;
}

/* CTA: белый жирный текст на --smg-orange-btn (≥ 3:1), hover и active — глубже */
.smg-btn--primary {
  min-height: 52px;
  background: var(--smg-orange-btn);
  color: #FFFFFF;
  font-size: 1.1875rem;
  font-weight: 700;
}

.smg-btn--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(135deg, var(--smg-orange-btn), var(--smg-orange-btn-hover));
  transform: translateX(-101%);
  transition: transform var(--dur-2) var(--ease-out);
}

.smg-btn--primary:active { background: var(--smg-orange-btn-active); }
.smg-btn--primary:active::before { opacity: 0; }

/* Вторичная: тонкая рамка, на hover проявляется оранжевая рамка и подложка */
.smg-btn--ghost {
  box-shadow: inset 0 0 0 1px var(--smg-line-strong);
  color: var(--smg-text);
}

.smg-btn--ghost::before,
.smg-btn--ghost::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease-out);
}

.smg-btn--ghost::before { box-shadow: inset 0 0 0 1px var(--smg-orange); }
.smg-btn--ghost::after { background: var(--smg-orange-soft); }

.smg-btn:active { transform: translateY(1px); }

@media (hover: hover) {
  .smg-btn--primary:hover::before { transform: translateX(0); }
  .smg-btn--ghost:hover::before,
  .smg-btn--ghost:hover::after { opacity: 1; }
  .smg-btn:hover .bi-arrow-right { transform: translateX(4px); }
  .smg-btn:hover .bi-arrow-up-right { transform: translate(2px, -2px); }
}

/* ---------- Моно-тег технологии ---------- */
.smg-tag {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border: 1px solid var(--smg-line-strong);
  border-radius: var(--r-1);
  font-family: var(--smg-font-mono);
  font-size: .6875rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: .08em;
  color: var(--smg-muted);
  white-space: nowrap;
}

/* Протокольный тег — вторичный: пунктирная рамка, приглушённый текст */
.smg-tag--proto {
  border-style: dashed;
  border-color: var(--smg-line-strong);
  color: var(--smg-dim);
}

/* ---------- Индикатор сигнала (4 полосы) ---------- */
.smg-signal {
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
}

.smg-signal i {
  position: relative;
  overflow: hidden;
  width: 4px;
  border-radius: 1px;
  background: var(--smg-line-strong);
}

.smg-signal i:nth-child(1) { height: 30%; }
.smg-signal i:nth-child(2) { height: 55%; }
.smg-signal i:nth-child(3) { height: 80%; }
.smg-signal i:nth-child(4) { height: 100%; }

.smg-signal i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--smg-orange);
  opacity: 0;
  transition: opacity var(--dur-2) ease;
}

.smg-signal i:nth-child(1)::after { opacity: 1; }
.smg-signal i:nth-child(2)::after { transition-delay: 70ms; }
.smg-signal i:nth-child(3)::after { transition-delay: 140ms; }
.smg-signal i:nth-child(4)::after { transition-delay: 210ms; }

.smg-signal--static i::after { opacity: 1; }

/* ---------- Появление при скролле (скрытое состояние — только с JS) ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity var(--dur-3) var(--ease-out) var(--reveal-delay, 0ms),
    transform var(--dur-3) var(--ease-out) var(--reveal-delay, 0ms);
}

.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* Страховка: если main.js не загрузился, контент проявится через 3 секунды */
.js:not(.smg-ready) [data-reveal] {
  animation: smg-unhide 0s 3s forwards;
}

@keyframes smg-unhide {
  to { opacity: 1; transform: none; }
}

/* UZ/EN: тексты скрыты до применения словаря (класс — inline-скрипт в <head>, ≤ 1 с; README «Выбор языка») */
.smg-i18n-wait [data-i18n],
.smg-i18n-wait [data-i18n-html] { visibility: hidden; }

/* Общие ключевые кадры */
@keyframes smg-rise {
  from { opacity: 0; transform: translate3d(0, 22px, 0); }
  to { opacity: 1; transform: none; }
}

@keyframes smg-sweep {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

@keyframes smg-blink {
  0%, 100% { opacity: .3; }
  50% { opacity: 1; }
}


/* ===== SECTION: navbar ===== */

.smg-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1030;
  height: calc(var(--nav-h) + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
}

/* Подложка проявляется после прокрутки (opacity), над hero navbar прозрачный */
.smg-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 17, .78);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--smg-line);
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease-out);
}

.smg-header.is-scrolled::before,
.smg-header.is-menu-open::before {
  opacity: 1;
}

/* Пока открыто мобильное меню, navbar поверх подложки offcanvas — бургер работает как «закрыть» */
.smg-header.is-menu-layer {
  z-index: 1050;
}

.smg-header__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 100%;
}

/* Слот логотипа: высота 40px (mobile 32px), ширина auto, max-width 220px */
.smg-logo {
  display: inline-flex;
  align-items: center;
  flex: none;
  height: 44px;
  min-width: 44px;
  margin-right: auto;
  border-radius: var(--r-1);
}

.smg-logo__img {
  width: auto;
  height: 32px;
  max-width: 180px;
  object-fit: contain;
  object-position: left center;
}

@media (min-width: 992px) {
  .smg-logo__img {
    height: 40px;
    max-width: 220px;
  }
}

/* Полный логотип (≈ 6:1) в футере — без ужатия по ширине */
.smg-logo--footer .smg-logo__img {
  height: 40px;
  max-width: 260px;
}

.smg-nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.smg-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--r-1);
  color: var(--smg-muted);
  font-size: .9375rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

/* Активный пункт — оранжевый узел под текстом */
.smg-nav__link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 4px;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  background: var(--smg-orange);
  transform: scale(0);
  transition: transform var(--dur-2) var(--ease-out);
}

.smg-nav__link.is-active {
  color: var(--smg-text);
}

.smg-nav__link.is-active::after {
  transform: scale(1);
}

@media (hover: hover) {
  .smg-nav__link:hover { color: var(--smg-text); }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .smg-nav__link { padding: 0 10px; font-size: .875rem; }
  .smg-header__inner { gap: 16px; }
}

.smg-header__tools {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ---------- Переключатель языка: сегмент RU | UZ | EN ---------- */
.smg-lang {
  display: inline-flex;
  border: 1px solid var(--smg-line-strong);
  border-radius: var(--r-1);
}

.smg-lang__btn {
  position: relative;
  min-width: 44px;
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--smg-muted);
  font-family: var(--smg-font-mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .08em;
  cursor: pointer;
}

.smg-lang__btn + .smg-lang__btn {
  box-shadow: inset 1px 0 0 var(--smg-line);
}

.smg-lang__btn[aria-pressed="true"] {
  background: var(--smg-orange);
  color: var(--smg-ink);
  box-shadow: none;
}

@media (hover: hover) {
  .smg-lang__btn[aria-pressed="false"]:hover { color: var(--smg-text); }
}

/* ---------- Бургер: две линии, превращаются в «×» ---------- */
.smg-burger {
  position: relative;
  width: 44px;
  height: 44px;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: var(--r-2);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--smg-line-strong);
  cursor: pointer;
}

.smg-burger__line {
  position: absolute;
  top: 50%;
  height: 1.5px;
  margin-top: -.75px;
  border-radius: 1px;
  background: var(--smg-text);
  transition: transform var(--dur-2) var(--ease-in-out);
}

.smg-burger__line:nth-child(1) {
  left: 12px;
  width: 20px;
  transform: translateY(-4px);
}

.smg-burger__line:nth-child(2) {
  left: 12px;
  width: 12px;
  transform: translateY(4px);
}

.smg-burger.is-open .smg-burger__line:nth-child(1) {
  transform: rotate(45deg);
}

.smg-burger.is-open .smg-burger__line:nth-child(2) {
  transform: translateX(4px) rotate(-45deg) scaleX(1.6667);
}

@media (hover: hover) {
  .smg-burger:not(.is-open):hover .smg-burger__line:nth-child(2) {
    transform: translate(4px, 4px);
  }
}


/* ===== SECTION: mobile-menu ===== */

.smg-menu.offcanvas {
  --bs-offcanvas-width: min(100%, 420px);
  --bs-offcanvas-bg: var(--smg-surface-1);
  --bs-offcanvas-color: var(--smg-text);
  --bs-offcanvas-border-color: var(--smg-line);
  --bs-offcanvas-padding-x: 0;
  --bs-offcanvas-padding-y: 0;
  top: calc(var(--nav-h) + env(safe-area-inset-top));
  border-top: 1px solid var(--smg-line);
  background-image:
    linear-gradient(var(--smg-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--smg-grid) 1px, transparent 1px);
  background-size: 32px 32px;
}

.offcanvas-backdrop {
  --bs-backdrop-bg: #050505;
  --bs-backdrop-opacity: .7;
}

.smg-menu__body {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding: 24px max(20px, env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) 20px;
}

.smg-menu__list {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.smg-menu__link {
  display: flex;
  align-items: baseline;
  gap: 14px;
  min-height: 56px;
  padding: 14px 0;
  border-bottom: 1px solid var(--smg-line);
  color: var(--smg-text);
  font-family: var(--smg-font-head);
  font-size: clamp(1.25rem, 1rem + 1.6vw, 1.625rem);
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
}

.smg-menu__idx {
  flex: none;
  min-width: 2ch;
  font-family: var(--smg-font-mono);
  font-size: .75rem;
  font-weight: 500;
  color: var(--smg-orange);
}

.smg-menu__link.is-active {
  color: var(--smg-orange);
}

.smg-menu__foot {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: auto;
}

.smg-lang--menu {
  align-self: flex-start;
}

.smg-menu__contacts {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.smg-menu__contact {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--smg-text);
  font-family: var(--smg-font-mono);
  font-size: .9375rem;
  text-decoration: none;
}

.smg-menu__contact .bi { color: var(--smg-orange); }


/* ===== SECTION: hero ===== */

.smg-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: max(560px, 100vh);
  min-height: max(560px, 100svh);
  padding-top: calc(var(--nav-h) + env(safe-area-inset-top));
  /* Фон без canvas (и подложка до первой отрисовки) */
  background:
    radial-gradient(55% 60% at 76% 46%, rgba(255, 107, 0, .16), transparent 70%),
    radial-gradient(28% 34% at 90% 18%, rgba(255, 195, 0, .06), transparent 70%),
    linear-gradient(var(--smg-grid) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, var(--smg-grid) 1px, transparent 1px) 0 0 / 56px 56px,
    var(--smg-bg);
}

.smg-hero__canvas {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.2s var(--ease-out);
  /* плавное затухание к верхнему краю (~120–160px): линии сети не заходят под меню */
  -webkit-mask-image: linear-gradient(180deg, transparent 0, transparent calc(var(--nav-h) * .35), #000 calc(var(--nav-h) + 72px));
  mask-image: linear-gradient(180deg, transparent 0, transparent calc(var(--nav-h) * .35), #000 calc(var(--nav-h) + 72px));
}

.smg-hero__canvas.is-ready { opacity: 1; }

/* Затемнение под текст: слева на десктопе, сверху вниз на мобиле */
.smg-hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, .2) 0%, rgba(10, 10, 10, .72) 38%, rgba(10, 10, 10, .9) 70%, var(--smg-bg) 100%);
}

@media (min-width: 992px) {
  .smg-hero__scrim {
    background:
      linear-gradient(90deg, var(--smg-bg) 0%, rgba(10, 10, 10, .86) 30%, rgba(10, 10, 10, .3) 52%, rgba(10, 10, 10, 0) 64%),
      linear-gradient(0deg, var(--smg-bg) 0%, rgba(10, 10, 10, 0) 22%);
  }
}

.smg-hero__inner {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  padding-top: clamp(2rem, 6vh, 4.5rem);
  padding-bottom: clamp(2.5rem, 6vh, 4.5rem);
}

.smg-hero__content > * {
  animation: smg-rise .9s var(--ease-out) both;
}

/* h1 появляется без fade: элемент с opacity 0 не может быть LCP — задержал бы метрику */
.smg-hero__content > .smg-hero__title { animation-name: smg-lift; }

@keyframes smg-lift {
  from { transform: translate3d(0, 14px, 0); }
  to { transform: none; }
}

.smg-hero__content > :nth-child(1) { animation-delay: .05s; }
.smg-hero__content > :nth-child(2) { animation-delay: .12s; }
.smg-hero__content > :nth-child(3) { animation-delay: .24s; }
.smg-hero__content > :nth-child(4) { animation-delay: .34s; }

.smg-hero__eyebrow {
  margin: 0 0 1.5rem;
  font-family: var(--smg-font-mono);
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .02em;
  color: var(--smg-orange);
}

.smg-hero__title {
  margin: 0 0 1.5rem;
  font-family: var(--smg-font-head);
}

.smg-hero__title-main {
  display: block;
  font-size: var(--fs-display);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.025em;
}

.smg-hero__title-sub {
  display: block;
  margin-top: .6em;
  font-size: var(--fs-display-sub);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.01em;
  color: var(--smg-orange);
}

.smg-hero__lead {
  max-width: 54ch;
  margin: 0 0 2.25rem;
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: #C2C2C2;
}

.smg-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.smg-hero__actions .smg-btn { min-height: 52px; }

/* Полоса каналов внизу hero */
.smg-hero__bar {
  position: relative;
  border-top: 1px solid var(--smg-line);
}

.smg-hero__bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 56px;
}

.smg-hero__channels {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--smg-font-mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .08em;
  color: var(--smg-dim);
}

.smg-hero__channels li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.smg-hero__channels i {
  width: 5px;
  height: 5px;
  background: var(--smg-orange);
  animation: smg-blink 2.6s ease-in-out infinite;
}

.smg-hero__channels li:nth-child(2) i { animation-delay: .35s; }
.smg-hero__channels li:nth-child(3) i { animation-delay: .7s; }
.smg-hero__channels li:nth-child(4) i { animation-delay: 1.05s; }
.smg-hero__channels li:nth-child(5) i { animation-delay: 1.4s; }
.smg-hero__channels li:nth-child(6) i { animation-delay: 1.75s; }

.smg-hero__scroll {
  position: relative;
  overflow: hidden;
  flex: none;
  width: 1px;
  height: 32px;
  background: var(--smg-line-strong);
}

.smg-hero__scroll i {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, var(--smg-orange) 70%, var(--smg-yellow));
  animation: smg-drop 2.2s var(--ease-in-out) infinite;
}

@keyframes smg-drop {
  from { transform: translateY(-100%); }
  to { transform: translateY(100%); }
}

@media (max-width: 575.98px) {
  .smg-hero__bar { display: none; }
}

/* < 992px: сеть — отдельная сцена под кнопками, высота в CSS (CLS 0), края в mask; под текстом только сетка (DESIGN.md 6.6) */
@media (max-width: 991.98px) {
  .smg-hero {
    min-height: 0;
    background:
      linear-gradient(var(--smg-grid) 1px, transparent 1px) 0 0 / 56px 56px,
      linear-gradient(90deg, var(--smg-grid) 1px, transparent 1px) 0 0 / 56px 56px,
      var(--smg-bg);
  }

  .smg-hero__scrim { display: none; }

  .smg-hero__inner {
    flex: none;
    padding-top: clamp(2rem, 1.25rem + 3vw, 3rem);
    padding-bottom: 0;
  }

  .smg-hero__canvas {
    position: relative;
    inset: auto;
    z-index: 0;
    order: 1;
    flex: none;
    height: 320px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%);
    mask-image: linear-gradient(180deg, transparent 0, #000 14%, #000 86%, transparent 100%);
  }

  .smg-hero__bar { order: 2; }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .smg-hero__canvas { height: 400px; }
}


/* ===== SECTION: metrics ===== */

.smg-metrics {
  position: relative;
  border-top: 1px solid var(--smg-line);
  border-bottom: 1px solid var(--smg-line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .018), rgba(255, 255, 255, 0));
}

.smg-metrics__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.smg-metric {
  position: relative;
  padding: clamp(1.5rem, 1rem + 2vw, 2.75rem) clamp(.75rem, .25rem + 1.6vw, 2rem);
}

/* Разделители 2×2 на мобиле */
.smg-metric:nth-child(odd) { border-right: 1px solid var(--smg-line); }
.smg-metric:nth-child(-n+2) { border-bottom: 1px solid var(--smg-line); }
.smg-metric:nth-child(odd) { padding-left: 0; }

@media (min-width: 992px) {
  .smg-metrics__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .smg-metric { border-bottom: 0 !important; border-right: 1px solid var(--smg-line); }
  .smg-metric:last-child { border-right: 0; }
  .smg-metric:nth-child(odd) { padding-left: clamp(.75rem, .25rem + 1.6vw, 2rem); }
  .smg-metric:first-child { padding-left: 0; }

  /* Крестики на пересечении разделителей с нижней линией */
  .smg-metric + .smg-metric::before {
    content: "";
    position: absolute;
    left: -6px;
    bottom: -6px;
    width: 11px;
    height: 11px;
    background:
      linear-gradient(var(--smg-line-strong), var(--smg-line-strong)) 0 5px / 11px 1px no-repeat,
      linear-gradient(var(--smg-line-strong), var(--smg-line-strong)) 5px 0 / 1px 11px no-repeat;
  }
}

.smg-metric__value {
  display: flex;
  align-items: flex-start;
  margin: 0 0 .75rem;
  font-family: var(--smg-font-mono);
  font-size: var(--fs-metric);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.04em;
  white-space: nowrap;
  color: var(--smg-text);
}

.smg-metric__num {
  display: inline-block;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.smg-metric__plus {
  margin-left: .04em;
  font-size: .5em;
  line-height: 1;
  color: var(--smg-orange);
}

.smg-metric__unit {
  align-self: flex-end;
  margin-left: .35em;
  margin-bottom: .2em;
  font-size: .3em;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--smg-muted);
}

.smg-metric__label {
  max-width: 20ch;
  margin: 0;
  font-size: .9375rem;
  line-height: 1.45;
  color: var(--smg-muted);
}


/* ===== SECTION: services ===== */

/* Bento: mobile — 1 колонка, 768–1199 — 2, ≥1200 — 4 (SMS и IVR — крупные плитки 2×2) */
.smg-bento {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

@media (min-width: 768px) {
  .smg-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .smg-svc--lg,
  .smg-svc--custom {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1200px) {
  .smg-bento {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-areas:
      "sms   sms   ivr   ivr"
      "sms   sms   ivr   ivr"
      "calls info  ussd  rbt"
      "bots  apps  custom custom";
  }

  .smg-svc--sms { grid-area: sms; }
  .smg-svc--ivr { grid-area: ivr; }
  .smg-svc--calls { grid-area: calls; }
  .smg-svc--info { grid-area: info; }
  .smg-svc--ussd { grid-area: ussd; }
  .smg-svc--rbt { grid-area: rbt; }
  .smg-svc--bots { grid-area: bots; }
  .smg-svc--apps { grid-area: apps; }
  .smg-svc--custom { grid-area: custom; }
}

/* Плитка: 1px-рамка = фон обёртки; под внутренней поверхностью вращается conic-градиент («пробег» по рамке) */
.smg-svc {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 1px;
  border-radius: var(--r-3);
  background: var(--smg-line);
}

.smg-svc::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: -1;
  width: 200%;
  aspect-ratio: 1;
  margin: -100% 0 0 -100%;
  background: conic-gradient(from 0deg, transparent 0 58%, rgba(255, 107, 0, .9) 76%, var(--smg-yellow) 84%, transparent 90%);
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease-out);
}

.smg-svc__body {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 240px;
  padding: clamp(20px, 1rem + 1vw, 28px);
  border-radius: calc(var(--r-3) - 1px);
  background: var(--smg-surface-1);
}

.smg-svc__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.smg-svc__tags {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.smg-svc__num {
  font-family: var(--smg-font-mono);
  font-size: .8125rem;
  font-weight: 500;
  color: var(--smg-dim);
}

/* Рамка-«порт» для сменной иконки: уголки + свечение */
.smg-svc__icon {
  --ricon-size: 28px;
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 28px 0 22px;
  border: 1px solid var(--smg-line-strong);
  border-radius: var(--r-2);
  background: radial-gradient(circle at 50% 50%, rgba(255, 107, 0, .1), transparent 70%);
  transition: transform var(--dur-2) var(--ease-out);
}

.smg-svc__icon::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  box-shadow: 0 0 0 1px rgba(255, 107, 0, .6), 0 0 24px rgba(255, 107, 0, .25);
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease-out);
}

.smg-svc__title {
  margin: 0 0 .625rem;
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -.01em;
}

.smg-svc__text {
  max-width: 48ch;
  margin: 0;
  font-size: .9375rem;
  line-height: 1.6;
  color: var(--smg-muted);
}

.smg-svc--lg .smg-svc__title {
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem);
}

/* 4 колонки на 1200–1399px: узкие плитки — заголовок чуть меньше, чтобы длинные слова
   («информирование») помещались целиком */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .smg-svc__body { padding: 24px; }
  .smg-svc:not(.smg-svc--lg) .smg-svc__title { font-size: 1.0625rem; }
}

@media (min-width: 1400px) {
  .smg-svc:not(.smg-svc--lg) .smg-svc__title { font-size: 1.25rem; }
}

.smg-svc--lg .smg-svc__text {
  font-size: 1rem;
}

@media (hover: hover) {
  .smg-svc:hover::before {
    opacity: 1;
    animation: smg-spin 3.2s linear infinite;
  }

  .smg-svc:hover .smg-svc__icon { transform: translateY(-4px); }
  .smg-svc:hover .smg-svc__icon::before { opacity: 1; }
}

@keyframes smg-spin {
  to { transform: rotate(1turn); }
}

/* SMS: «пакет» бежит MO → SMPP → SMG → MT, узлы вспыхивают; трек — между центрами 4 колонок */
.smg-path {
  --path-dur: 4.8s;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  margin-top: auto;
  padding-top: 32px;
  overflow: hidden;
  overflow: clip;
  font-family: var(--smg-font-mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .04em;
}

.smg-path__track {
  position: absolute;
  left: 12.5%;
  right: 12.5%;
  bottom: 16px;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--smg-line-strong) 0 4px, transparent 4px 8px);
}

.smg-path__rail {
  position: absolute;
  inset: 0;
  animation: smg-packet var(--path-dur) linear infinite;
}

/* «Пакет»: светящаяся точка с хвостом */
.smg-path__rail i {
  position: absolute;
  left: -5px;
  top: -4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: radial-gradient(circle, #FFE08A 0, var(--smg-yellow) 35%, var(--smg-orange) 70%);
  box-shadow: 0 0 12px rgba(255, 107, 0, .9);
}

.smg-path__rail i::before {
  content: "";
  position: absolute;
  right: 4px;
  top: 3px;
  width: 44px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 0, .85));
}

@keyframes smg-packet {
  0% { transform: translateX(0); opacity: 0; }
  4% { opacity: 1; }
  70% { transform: translateX(100%); opacity: 1; }
  76%, 100% { transform: translateX(100%); opacity: 0; }
}

.smg-path__node {
  position: relative;
  z-index: 1;
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 32px;
  padding: 0 9px;
  border: 1px solid var(--smg-line-strong);
  border-radius: var(--r-1);
  background: var(--smg-bg);
  color: var(--smg-text);
  white-space: nowrap;
}

/* Вспышка узла — в момент прихода пакета */
.smg-path__node::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--smg-orange), 0 0 16px rgba(255, 107, 0, .5);
  opacity: 0;
  animation: smg-node-hit var(--path-dur) linear infinite;
}

.smg-path__node:nth-of-type(2)::after { animation-delay: calc(var(--path-dur) * .7 / 3); }
.smg-path__node:nth-of-type(3)::after { animation-delay: calc(var(--path-dur) * .7 * 2 / 3); }
.smg-path__node:nth-of-type(4)::after { animation-delay: calc(var(--path-dur) * .7); }

@keyframes smg-node-hit {
  0% { opacity: 1; }
  14%, 100% { opacity: 0; }
}

/* IVR: эквалайзер (scaleY) */
.smg-eq {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 96px;
  margin-top: auto;
  padding-top: 32px;
  box-sizing: content-box;
}

.smg-eq i {
  --eq-max: .7;
  flex: 1 1 0;
  height: 100%;
  border-radius: 1px;
  background: linear-gradient(0deg, rgba(255, 107, 0, .95), rgba(255, 107, 0, .55) 70%, rgba(255, 195, 0, .9));
  transform-origin: 50% 100%;
  transform: scaleY(.2);
  animation: smg-eq 1.4s var(--ease-in-out) infinite alternate;
}

.smg-eq i:nth-child(3n+1) { --eq-max: .95; animation-duration: 1.1s; }
.smg-eq i:nth-child(3n+2) { --eq-max: .55; animation-duration: 1.7s; animation-delay: -.4s; }
.smg-eq i:nth-child(4n) { --eq-max: .8; animation-duration: 1.3s; animation-delay: -.8s; }
.smg-eq i:nth-child(5n) { --eq-max: .4; animation-duration: .9s; animation-delay: -.2s; }
.smg-eq i:nth-child(7n) { --eq-max: 1; animation-duration: 1.9s; animation-delay: -1.1s; }

@keyframes smg-eq {
  from { transform: scaleY(.12); }
  to { transform: scaleY(var(--eq-max)); }
}

/* USSD: символы *# водяным знаком (без цифр — никаких реальных кодов в декоре) */
.smg-svc--ussd .smg-svc__body::after {
  content: attr(data-code);
  position: absolute;
  right: 14px;
  bottom: 4px;
  z-index: -1;
  font-family: var(--smg-font-mono);
  font-size: clamp(3rem, 2rem + 3vw, 4.25rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.05em;
  color: rgba(255, 255, 255, .03);
  pointer-events: none;
}

/* RBT: синусоида */
.smg-svc__wave {
  width: 100%;
  height: 24px;
  margin-top: auto;
  padding-top: 0;
  overflow: visible;
}

.smg-svc__wave path {
  fill: none;
  stroke: var(--smg-orange);
  stroke-width: 1.5;
  opacity: .55;
}

.smg-svc--rbt .smg-svc__text { margin-bottom: 24px; }


/* ===== SECTION: pricing ===== */

.smg-ops {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 576px) {
  .smg-ops { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}

@media (min-width: 1200px) {
  .smg-ops { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
}

/* Плитка оператора — «канал связи»: акцент на типографике и действии */
.smg-op {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: clamp(20px, 1rem + 1vw, 28px);
  border: 1px solid var(--smg-line);
  border-radius: var(--r-3);
  background: var(--smg-surface-1);
}

@media (min-width: 576px) {
  .smg-op { min-height: 280px; }
}

/* Свечение снизу и оранжевая рамка — проявляются по opacity */
.smg-op::before,
.smg-op::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-2) var(--ease-out);
}

.smg-op::before {
  background: radial-gradient(120% 70% at 0% 100%, rgba(255, 107, 0, .2), transparent 62%);
}

.smg-op::after {
  box-shadow: inset 0 0 0 1px rgba(255, 107, 0, .55);
}

.smg-op__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

/* Слот логотипа в плитке: высота 28px */
.smg-op__logo {
  display: block;
  width: 112px;
  height: 28px;
}

.smg-op__logo img {
  width: 100%;
  height: 100%;
  max-height: 28px;
  object-fit: contain;
  object-position: left center;
}

.smg-op__name {
  margin: 40px 0 .5rem;
  font-size: var(--fs-op);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -.02em;
}

@media (min-width: 576px) {
  .smg-op__name { margin-top: auto; padding-top: 40px; }
}

.smg-op__line {
  margin: 0 0 8px;
  font-size: .9375rem;
  line-height: 1.5;
  color: var(--smg-muted);
}

/* Моно-строка сервисов «GAP · 0750»; 12px — строка Ucell помещается при 4 колонках */
.smg-op__svc {
  margin: 0 0 20px;
  font-family: var(--smg-font-mono);
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .02em;
  color: var(--smg-text);
}

/* UZ: строка Ucell переносится — во всех плитках высота двух строк, названия на одной линии */
@media (min-width: 576px) and (max-width: 767.98px), (min-width: 1200px) and (max-width: 1399.98px) {
  :lang(uz) .smg-op__svc { min-height: 3em; }
}

.smg-op__more {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  align-self: flex-start;
  min-height: 44px;
  padding: 0 16px 0 0;
  border: 0;
  border-radius: var(--r-1);
  background: none;
  color: var(--smg-text);
  font-family: var(--smg-font-text);
  font-size: .9375rem;
  font-weight: 600;
  cursor: pointer;
}

.smg-op__more .bi {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--r-1);
  background: var(--smg-orange);
  color: var(--smg-ink);
  font-size: .95rem;
  transition: transform var(--dur-2) var(--ease-out);
}

.smg-op__more:focus-visible { outline: none; }

.smg-op:has(.smg-op__more:focus-visible) {
  outline: 2px solid var(--smg-focus);
  outline-offset: 3px;
}

@media (hover: hover) {
  .smg-op:hover::before,
  .smg-op:hover::after { opacity: 1; }
  .smg-op:hover .smg-op__more .bi { transform: translateX(4px); }
  .smg-op:hover .smg-signal i::after { opacity: 1; }
}

@media (hover: none) {
  .smg-op .smg-signal i::after { opacity: 1; }
}


/* ===== SECTION: modals ===== */

.smg-modal {
  --bs-modal-bg: var(--smg-surface-1);
  --bs-modal-color: var(--smg-text);
  --bs-modal-border-color: var(--smg-line-strong);
  --bs-modal-border-width: 1px;
  --bs-modal-border-radius: var(--r-3);
  --bs-modal-inner-border-radius: calc(var(--r-3) - 1px);
  --bs-modal-box-shadow: none;
  --bs-modal-header-padding: 20px clamp(20px, 1rem + 1vw, 32px);
  --bs-modal-header-border-color: var(--smg-line);
  --bs-modal-padding: clamp(20px, 1rem + 1vw, 32px);
}

.modal-backdrop {
  --bs-backdrop-bg: #050505;
  --bs-backdrop-opacity: .85;
}

.smg-modal .modal-content {
  position: relative;
  overflow: hidden;
}

/* Оранжевая «шина» сверху */
.smg-modal .modal-content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  height: 2px;
  background: linear-gradient(90deg, var(--smg-orange), rgba(255, 107, 0, .2) 60%, transparent);
}

.smg-modal__header {
  gap: 16px;
  align-items: center;
  padding-top: calc(20px + env(safe-area-inset-top));
}

@media (min-width: 768px) {
  .smg-modal__header { padding-top: 20px; }
}

/* Слот логотипа в шапке модалки: высота 32px */
.smg-modal__logo {
  display: grid;
  place-items: center;
  flex: none;
  width: 72px;
  height: 56px;
  padding: 0 8px;
  border: 1px solid var(--smg-line-strong);
  border-radius: var(--r-2);
  background: var(--smg-bg);
}

.smg-modal__logo img {
  width: 100%;
  height: 100%;
  max-height: 32px;
  object-fit: contain;
}

.smg-modal__heading {
  flex: 1 1 auto;
  min-width: 0;
}

.smg-modal__kicker {
  margin: 0 0 6px;
  font-family: var(--smg-font-mono);
  font-size: .75rem;
  font-weight: 500;
  color: var(--smg-muted);
}

.smg-modal__title {
  margin: 0;
  font-size: clamp(1.125rem, .95rem + .9vw, 1.625rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.01em;
}

.smg-modal__close {
  display: grid;
  place-items: center;
  flex: none;
  align-self: flex-start;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--r-2);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--smg-line-strong);
  color: var(--smg-text);
  font-size: 1rem;
  cursor: pointer;
}

.smg-modal__close .bi { transition: transform var(--dur-2) var(--ease-out); }

@media (hover: hover) {
  .smg-modal__close:hover .bi { transform: rotate(90deg); }
}

.smg-modal__body {
  background-image:
    linear-gradient(var(--smg-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--smg-grid) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* Заглушка — для новой модалки, у которой ещё нет контента (см. _dev/README.md) */
.smg-modal__placeholder {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  min-height: 280px;
  padding: 32px;
  border: 1px dashed var(--smg-line-strong);
  border-radius: var(--r-2);
  background: rgba(10, 10, 10, .6);
  text-align: center;
}

.smg-modal__placeholder p {
  max-width: 40ch;
  margin: 0;
  color: var(--smg-muted);
}

/* Подвала нет: тело до низа окна, снизу — safe area iPhone */
.smg-modal__body { padding-bottom: calc(var(--bs-modal-padding) + env(safe-area-inset-bottom)); }

/* < 768px: компактная шапка — логотип, метка, крестик; заголовок на всю ширину, ≤ 2 строк (DESIGN.md 6.10) */
@media (max-width: 767.98px) {
  .smg-modal { --bs-modal-header-padding: 10px 16px 12px; }

  .smg-modal__header {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 44px;
    grid-template-areas:
      "logo kicker close"
      "title title title";
    column-gap: 12px;
    row-gap: 6px;
    padding-top: calc(10px + env(safe-area-inset-top));
  }

  .smg-modal__logo {
    grid-area: logo;
    width: 40px;
    height: 40px;
    padding: 0 4px;
  }

  .smg-modal__logo img { max-height: 20px; }

  .smg-modal__heading { display: contents; }

  .smg-modal__kicker {
    grid-area: kicker;
    margin: 0;
    font-size: .6875rem;
  }

  .smg-modal__title {
    grid-area: title;
    font-size: clamp(1.125rem, 5.2vw, 1.375rem);
    line-height: 1.15;
  }

  .smg-modal__close {
    grid-area: close;
    align-self: center;
  }

  .smg-tabs__btn { min-height: 44px; }
}

/* Планшет (768–991px): у Bootstrap здесь 500px — для контента сервисов узко */
@media (min-width: 768px) and (max-width: 991.98px) {
  .smg-modal { --bs-modal-width: 680px; }
}

/* ---------- Вкладки сервисов (Ucell): полоса между шапкой и телом, не прокручивается ---------- */
.smg-modal__tabs {
  flex: none;
  padding: 0 calc(var(--bs-modal-padding) - 16px);
  border-bottom: 1px solid var(--smg-line);
  background: var(--smg-surface-1);
}

.smg-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: -1px;
}

.smg-tabs__btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .4em;
  min-height: 52px;
  padding: 0 16px;
  border: 0;
  background: none;
  color: var(--smg-muted);
  font-family: var(--smg-font-text);
  font-size: .9375rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

/* Активная вкладка — оранжевая линия снизу (scaleX) */
.smg-tabs__btn::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--smg-orange);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform var(--dur-2) var(--ease-out);
}

.smg-tabs__btn.active { color: var(--smg-text); }
.smg-tabs__btn.active::after { transform: scaleX(1); }
.smg-tabs__btn:focus-visible { outline-offset: -3px; }

.smg-tabs__num {
  font-family: var(--smg-font-mono);
  font-size: .8125rem;
  font-weight: 500;
  color: var(--smg-dim);
}

.smg-tabs__btn.active .smg-tabs__num { color: var(--smg-orange); }

@media (hover: hover) {
  .smg-tabs__btn:hover { color: var(--smg-text); }
}

/* ---------- Сервис в модалке ---------- */
.smg-service {
  display: grid;
  gap: 16px;
}

/* Ucell: тело модалки — .tab-content, панель вкладки — сама статья сервиса (у Bootstrap .active — display: block) */
.smg-modal__body.tab-content > .smg-service.active { display: grid; }

.smg-service__head { margin-bottom: 8px; }

.smg-service__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

/* Тег с коротким номером сервиса */
.smg-tag--num {
  border-color: rgba(255, 107, 0, .55);
  color: var(--smg-orange);
}

.smg-service__title {
  margin: 0 0 10px;
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.01em;
}

.smg-service__desc {
  max-width: 62ch;
  margin: 0;
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--smg-muted);
}

/* Две колонки на десктопе: «Стоимость» + «Как подключиться» | «Меню портала» (у «Городов» — по три блока) */
.smg-service__cols {
  display: grid;
  gap: 16px;
}

.smg-service__col {
  display: grid;
  align-content: start;
  gap: 16px;
}

@media (min-width: 992px) {
  .smg-service__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Блок сервиса: карточка с моно-подписью ---------- */
.smg-block {
  position: relative;
  padding: clamp(16px, .75rem + 1vw, 24px);
  border: 1px solid var(--smg-line);
  border-radius: var(--r-3);
  background: rgba(10, 10, 10, .72);
}

/* Подпись блока — как индекс секции: узел-квадрат, текст, линия до края */
.smg-block__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-family: var(--smg-font-mono);
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .04em;
  color: var(--smg-muted);
}

.smg-block__title::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  background: var(--smg-orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 0, .18);
}

.smg-block__title::after {
  content: "";
  flex: 1 1 auto;
  min-width: 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--smg-line-strong), transparent);
}

.smg-block__sub {
  margin: -6px 0 14px;
  font-size: .875rem;
  color: var(--smg-muted);
}

.smg-block__text {
  margin: 0;
  line-height: 1.65;
}

/* «Как отключить» — главный блок: оранжевая рамка, подсветка, градиентная линия слева, крупный заголовок */
.smg-block--off {
  padding: clamp(18px, .875rem + 1.2vw, 28px);
  border-color: rgba(255, 107, 0, .5);
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(255, 107, 0, .14), transparent 60%),
    rgba(14, 14, 14, .94);
}

.smg-block--off::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 20px;
  bottom: 20px;
  width: 2px;
  background: var(--smg-gradient);
}

.smg-off__title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-family: var(--smg-font-head);
  font-size: clamp(1.125rem, 1rem + .5vw, 1.375rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--smg-text);
}

.smg-off__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: var(--r-2);
  background: var(--smg-orange);
  color: var(--smg-ink);
  font-size: 1.125rem;
}

/* Способ отключения (SMS / звонок / USSD) */
.smg-way + .smg-way {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 107, 0, .18);
}

.smg-way__text {
  margin: 0 0 12px;
  line-height: 1.65;
}

/* Заметка: уведомления, условия */
.smg-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px dashed var(--smg-line-strong);
  font-size: .875rem;
  line-height: 1.55;
  color: var(--smg-muted);
}

.smg-note .bi {
  margin-top: .2em;
  color: var(--smg-orange);
}

/* Номер или команда внутри фразы */
.smg-num {
  padding: .05em .35em;
  border: 1px solid var(--smg-line-strong);
  border-radius: var(--r-1);
  background: rgba(255, 255, 255, .04);
  color: var(--smg-text);
  font-family: var(--smg-font-mono);
  font-size: .95em;
  font-weight: 600;
  white-space: nowrap;
}

/* Клавиша телефонной клавиатуры (keycap): моно, рамка, лёгкий объём */
.smg-key {
  display: inline-grid;
  place-items: center;
  min-width: 1.85em;
  height: 1.85em;
  padding: 0 .4em;
  border: 1px solid var(--smg-line-strong);
  border-radius: var(--r-2);
  background: linear-gradient(180deg, #262626, #161616);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .09), 0 2px 0 #050505;
  color: var(--smg-text);
  font-family: var(--smg-font-mono);
  font-size: .875em;
  font-weight: 600;
  line-height: 1;
  vertical-align: .05em;
}

/* В меню портала — крупная клавиша 44×44 */
.smg-keys .smg-key {
  min-width: 44px;
  height: 44px;
  font-size: 1.125rem;
  vertical-align: middle;
}

/* ---------- Чип SMS-команды: значение (текст, не кнопка) + «Отправить SMS» — только на тач-устройствах ---------- */
.smg-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.smg-chip {
  display: inline-flex;
  align-items: stretch;
  max-width: 100%;
  vertical-align: middle;
}

/* Значение чипа (обёртку .smg-chip__val добавляет main.js) */
.smg-chip__val {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: var(--r-2);
  background: var(--smg-surface-2);
  box-shadow: inset 0 0 0 1px var(--smg-line-strong);
  color: var(--smg-text);
  font-family: var(--smg-font-mono);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.smg-chip__act { display: none; }

@media (pointer: coarse) {
  /* На тач-устройствах значение и «Отправить SMS» — одна плашка высотой 44px */
  .smg-chip__val { min-height: 44px; }
  .smg-chip__val:not(:last-child) { border-radius: var(--r-2) 0 0 var(--r-2); }

  .smg-chip__act {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin-left: -1px;
    padding: 0 14px;
    border-radius: 0 var(--r-2) var(--r-2) 0;
    background: var(--smg-surface-2);
    box-shadow: inset 0 0 0 1px var(--smg-line-strong);
    color: var(--smg-text);
    font-family: var(--smg-font-text);
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
  }

  .smg-chip__act .bi { color: var(--smg-orange); }

  /* В «Как отключить» действие — главная кнопка */
  .smg-block--off .smg-chip__act {
    background: var(--smg-orange);
    box-shadow: none;
    color: var(--smg-ink);
  }

  .smg-block--off .smg-chip__act .bi { color: var(--smg-ink); }

  .smg-chip__act:active { opacity: .85; }
}

/* ---------- «Позвонить» / «Отправить SMS» на месте номера — только тач ---------- */
.smg-act { display: none; }

/* Без кнопки у абзаца не остаётся пустого отступа снизу (отступ даёт сама кнопка) */
.smg-way__text:has(+ .smg-act) { margin-bottom: 0; }

@media (pointer: coarse) {
  .smg-act {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    margin-top: 12px;
    padding: 0 16px;
    border-radius: var(--r-2);
    background: var(--smg-surface-2);
    box-shadow: inset 0 0 0 1px var(--smg-line-strong);
    color: var(--smg-text);
    font-family: var(--smg-font-text);
    font-size: .875rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
  }

  .smg-act .bi { color: var(--smg-orange); }

  /* В «Как отключить» — главная кнопка, как у чипов */
  .smg-block--off .smg-act {
    background: var(--smg-orange);
    box-shadow: none;
    color: var(--smg-ink);
  }

  .smg-block--off .smg-act .bi { color: var(--smg-ink); }

  .smg-act:active { opacity: .85; }
}

/* ---------- Список команд: чип + подпись ---------- */
.smg-cmds {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.smg-cmd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 10px 0;
  border-top: 1px solid var(--smg-line);
}

.smg-cmd:first-child {
  padding-top: 0;
  border-top: 0;
}

.smg-cmd:last-child { padding-bottom: 0; }

.smg-block--off .smg-cmd { border-top-color: rgba(255, 107, 0, .14); }

.smg-cmd__label {
  flex: 1 1 12rem;
  min-width: 0;
  line-height: 1.45;
}

/* Тач + узкий экран: подпись над чипом и кнопкой «Отправить SMS» */
@media (pointer: coarse) and (max-width: 575.98px) {
  .smg-cmd__label {
    order: -1;
    flex-basis: 100%;
  }
}

@media (min-width: 992px) {
  .smg-cmds--2col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
  }

  .smg-cmds--2col .smg-cmd:nth-child(2) {
    padding-top: 0;
    border-top: 0;
  }

  .smg-cmds--2col .smg-cmd:nth-last-child(2):nth-child(odd) { padding-bottom: 0; }
}

/* ---------- Шаги «Как подключиться» ---------- */
.smg-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: smg-step;
}

.smg-step {
  position: relative;
  padding: 0 0 18px 44px;
  counter-increment: smg-step;
}

.smg-step:last-child { padding-bottom: 0; }

.smg-step::before {
  content: counter(smg-step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 24px;
  border: 1px solid var(--smg-line-strong);
  border-radius: var(--r-1);
  background: var(--smg-bg);
  color: var(--smg-orange);
  font-family: var(--smg-font-mono);
  font-size: .75rem;
  font-weight: 500;
}

/* Вертикальная линия между шагами */
.smg-step::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 30px;
  bottom: 6px;
  width: 1px;
  background: var(--smg-line-strong);
}

.smg-step:last-child::after { display: none; }

.smg-step__text {
  margin: 0;
  line-height: 1.6;
}


/* ---------- Строки «Стоимость» / «Призы»: подпись → значение (моно) → пояснение ---------- */
.smg-facts {
  margin: 0;
  padding: 0;
  list-style: none;
}

.smg-fact {
  display: grid;
  gap: 4px;
  padding: 14px 0;
  border-top: 1px solid var(--smg-line);
}

.smg-fact:first-child {
  padding-top: 0;
  border-top: 0;
}

.smg-fact:last-child { padding-bottom: 0; }

.smg-fact__label,
.smg-fact__note {
  font-size: .875rem;
  line-height: 1.5;
  color: var(--smg-muted);
}

.smg-fact__note b {
  font-weight: 700;
  color: var(--smg-text);
}

.smg-fact__value {
  color: var(--smg-text);
  font-family: var(--smg-font-mono);
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -.01em;
}

/* ---------- Меню портала: клавиша → пункт ---------- */
.smg-keys {
  display: grid;
  margin: 0;
}

.smg-keys__row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 0;
  border-top: 1px solid var(--smg-line);
}

.smg-keys__row:first-child {
  padding-top: 0;
  border-top: 0;
}

.smg-keys__row:last-child { padding-bottom: 0; }

.smg-keys dt {
  flex: none;
  margin: 0;
  font-weight: inherit;
}

.smg-keys dd {
  margin: 0;
  line-height: 1.45;
}

/* ---------- Документы: кнопки-ссылки на PDF ---------- */
.smg-docs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.smg-doc {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: var(--r-2);
  background: var(--smg-surface-2);
  box-shadow: inset 0 0 0 1px var(--smg-line-strong);
  color: var(--smg-text);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}

.smg-doc::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--smg-orange);
  background: var(--smg-orange-soft);
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease-out);
}

.smg-doc .bi-file-earmark-pdf {
  color: var(--smg-orange);
  font-size: 1.125rem;
}

.smg-doc__fmt {
  font-family: var(--smg-font-mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .06em;
  color: var(--smg-dim);
  white-space: nowrap;
}

.smg-doc .bi-arrow-up-right {
  margin-left: auto;
  color: var(--smg-orange);
  transition: transform var(--dur-2) var(--ease-out);
}

@media (hover: hover) {
  .smg-doc:hover::after { opacity: 1; }
  .smg-doc:hover .bi-arrow-up-right { transform: translate(2px, -2px); }
}

@media (max-width: 575.98px) {
  .smg-doc { flex: 1 1 100%; }
}

/* Строка под офертами: английская версия — справочная */
.smg-docs__note {
  margin: 12px 0 0;
  font-size: .875rem;
  line-height: 1.5;
  color: var(--smg-muted);
}


/* ===== SECTION: partners ===== */

/* Витрина: 4 карточки на «шине» с импульсами, не кликабельна; overflow: clip — импульс не выезжает за край */
.smg-partners {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0 0 44px;
  list-style: none;
  overflow: hidden;
  overflow: clip;
}

@media (min-width: 768px) {
  .smg-partners { gap: 20px; }
}

@media (min-width: 1200px) {
  .smg-partners { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding-bottom: 52px; }
}

/* Шина */
.smg-partners::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--smg-line-strong) 8%, var(--smg-line-strong) 92%, transparent);
}

/* Импульс по шине */
.smg-partners::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 11px;
  width: 18%;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 0, .9) 80%, var(--smg-yellow));
  animation: smg-bus 5.5s linear infinite;
}

@keyframes smg-bus {
  from { transform: translateX(-100%); }
  to { transform: translateX(560%); }
}

/* Отводы от карточек к шине (на 2×2 — только у нижнего ряда) */
.smg-partners > li {
  position: relative;
}

.smg-partners > li::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -32px;
  width: 7px;
  height: 32px;
  margin-left: -3px;
  background:
    linear-gradient(var(--smg-line-strong), var(--smg-line-strong)) 3px 0 / 1px 26px no-repeat,
    linear-gradient(var(--smg-orange), var(--smg-orange)) 0 25px / 7px 7px no-repeat;
}

@media (max-width: 1199.98px) {
  .smg-partners > li:nth-child(-n+2)::after { display: none; }
}

@media (min-width: 1200px) {
  .smg-partners > li::after { bottom: -40px; height: 40px; background-size: 1px 34px, 7px 7px; background-position: 3px 0, 0 33px; }
}

.smg-partner {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  place-items: center;
  aspect-ratio: 5 / 4;
  min-height: 132px;
  padding: 20px;
  border: 1px solid var(--smg-line);
  border-radius: var(--r-3);
  background:
    linear-gradient(var(--smg-grid) 1px, transparent 1px) center / 24px 24px,
    linear-gradient(90deg, var(--smg-grid) 1px, transparent 1px) center / 24px 24px,
    var(--smg-surface-1);
}

@media (min-width: 1200px) {
  .smg-partner { aspect-ratio: 4 / 3; }
}

.smg-partner::before,
.smg-partner::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-2) var(--ease-out);
}

.smg-partner::before {
  background: radial-gradient(60% 60% at 50% 50%, rgba(255, 107, 0, .2), transparent 72%);
}

.smg-partner::after {
  box-shadow: inset 0 0 0 1px rgba(255, 107, 0, .5);
}

.smg-partner__idx {
  position: absolute;
  top: 12px;
  left: 14px;
  font-family: var(--smg-font-mono);
  font-size: .6875rem;
  font-weight: 500;
  color: var(--smg-dim);
}

/* Слот логотипа в витрине: max 180×56 */
.smg-partner__logo {
  position: relative;
  display: block;
  width: min(180px, 82%);
  height: 56px;
}

/* Светлая плашка за цветным логотипом (режим --mono) */
.smg-partner__plate {
  position: absolute;
  inset: -10px -14px;
  border-radius: var(--r-2);
  background: #F5F5F5;
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease-out);
}

.smg-partner__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity var(--dur-2) var(--ease-out);
}

.smg-partner__img--color { opacity: 0; }

/* Режим --mono (по умолчанию): белый силуэт, приглушённый.
   Для тёмных логотипов (синий, фиолетовый), которые пропадают на тёмном фоне. */
.smg-partner--mono .smg-partner__img--base {
  filter: brightness(0) invert(1);
  opacity: .6;
}

/* Режим --light: логотип уже подготовлен под тёмный фон — приглушённый и слегка обесцвеченный, без плашки */
.smg-partner--light .smg-partner__img--base {
  filter: grayscale(.6);
  opacity: .62;
}

.smg-partner--light .smg-partner__plate { display: none; }

/* Режим --duo: два готовых файла — в покое серый <имя>-gray.svg как есть, при наведении цветной <имя>.svg (без плашки) */
.smg-partner--duo .smg-partner__img--base {
  filter: none;
  opacity: 1;
}

.smg-partner--duo .smg-partner__plate { display: none; }

/* Hover (только устройства с мышью): оригинальные цвета; в режиме --mono — на светлой плашке */
@media (hover: hover) {
  .smg-partner:hover::before,
  .smg-partner:hover::after,
  .smg-partner:hover .smg-partner__img--color,
  .smg-partner--mono:hover .smg-partner__plate { opacity: 1; }
  .smg-partner:hover .smg-partner__img--base { opacity: 0; }
}

/* Тач-устройства: сразу цвета (в режиме --mono — на плашке) */
@media (hover: none) {
  .smg-partner .smg-partner__img--base { opacity: 0; }
  .smg-partner .smg-partner__img--color,
  .smg-partner--mono .smg-partner__plate { opacity: 1; }
}


/* ===== SECTION: about ===== */

.smg-section-head--split .smg-lead { max-width: 60ch; }

/* Схема: < 768px — узел над стопкой карточек; ≥ 768px — узел в центре, 4 карточки вокруг */
.smg-hub {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  padding-left: 32px;
  /* кольца сигнала узла SMG не выходят за схему по горизонтали */
  overflow-x: clip;
  overflow-clip-margin: 16px;
}

.smg-hub::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 20px;
  bottom: 40px;
  width: 1px;
  background: linear-gradient(180deg, var(--smg-orange), var(--smg-line-strong) 24%, var(--smg-line-strong) 80%, transparent);
}

.smg-hub__core {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: -32px;
  min-height: 40px;
}

.smg-hub__core-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border: 1px solid var(--smg-orange);
  background: var(--smg-bg);
  transform: rotate(45deg);
}

/* Знак SMG (logo-mark.svg) в ромбе — повёрнут обратно */
.smg-hub__core-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  transform: rotate(-45deg);
  filter: drop-shadow(0 0 8px rgba(255, 107, 0, .55));
}

.smg-hub__core-mark::before,
.smg-hub__core-mark::after {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid var(--smg-orange);
  opacity: 0;
  animation: smg-core 3.2s var(--ease-out) infinite;
}

.smg-hub__core-mark::after { animation-delay: 1.6s; }

@keyframes smg-core {
  0% { opacity: .7; transform: scale(1); }
  100% { opacity: 0; transform: scale(2.6); }
}

.smg-cap {
  position: relative;
  padding: clamp(20px, 1rem + 1vw, 28px);
  border: 1px solid var(--smg-line);
  border-radius: var(--r-3);
  background: var(--smg-surface-1);
}

/* Провод от карточки к шине + порт + импульс (импульс обрезается по длине провода) */
.smg-cap__wire {
  position: absolute;
  top: 43px;
  right: 100%;
  overflow: hidden;
  width: 30px;
  height: 7px;
  background: linear-gradient(var(--smg-line-strong), var(--smg-line-strong)) 0 3px / 100% 1px no-repeat;
}

.smg-cap__wire::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  width: 7px;
  height: 7px;
  background: var(--smg-orange);
}

.smg-cap__wire::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 2px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(270deg, transparent 0 40%, rgba(255, 107, 0, .9) 85%, var(--smg-yellow));
  animation: smg-sweep-rev 2.6s var(--ease-in-out) infinite;
}

.smg-cap--b .smg-cap__wire::after { animation-delay: .65s; }
.smg-cap--c .smg-cap__wire::after { animation-delay: 1.3s; }
.smg-cap--d .smg-cap__wire::after { animation-delay: 1.95s; }

@keyframes smg-sweep-rev {
  0% { opacity: 0; transform: translateX(100%); }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translateX(-100%); }
}

.smg-cap__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.smg-cap__icon {
  --ricon-size: 24px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--smg-line-strong);
  border-radius: var(--r-2);
  background: radial-gradient(circle at 50% 50%, rgba(255, 107, 0, .1), transparent 70%);
}

.smg-cap__title {
  margin: 0 0 .5rem;
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.25;
}

.smg-cap__text {
  margin: 0;
  font-size: .9375rem;
  line-height: 1.6;
  color: var(--smg-muted);
}

/* < 768px: шина по центру за карточками (видна в промежутках), провод входит в карточку сверху */
@media (max-width: 767.98px) {
  .smg-hub {
    gap: 28px;
    padding-left: 0;
  }

  .smg-hub::before {
    left: 50%;
    top: 26px;
    bottom: 28px;
    background: linear-gradient(180deg, var(--smg-orange), var(--smg-line-strong) 18%, var(--smg-line-strong) 86%, transparent);
  }

  .smg-hub__core {
    justify-content: center;
    margin: 6px 0 0;
    min-height: 52px;
  }

  .smg-hub__core-mark {
    width: 52px;
    height: 52px;
    background:
      radial-gradient(circle at 50% 50%, rgba(255, 107, 0, .22), transparent 70%),
      var(--smg-bg);
    box-shadow: 0 0 0 6px rgba(255, 107, 0, .06), 0 0 36px rgba(255, 107, 0, .22);
  }

  .smg-hub__core-mark::before,
  .smg-hub__core-mark::after { animation-name: smg-core-sm; }

  .smg-cap__wire {
    top: auto;
    bottom: 100%;
    left: 50%;
    right: auto;
    width: 7px;
    height: 28px;
    margin-left: -3px;
    background: linear-gradient(var(--smg-line-strong), var(--smg-line-strong)) 3px 0 / 1px 100% no-repeat;
  }

  .smg-cap__wire::before {
    top: auto;
    bottom: 0;
  }

  .smg-cap__wire::after {
    left: 2px;
    right: auto;
    top: 0;
    bottom: 0;
    width: 3px;
    height: auto;
    background: linear-gradient(180deg, transparent 0 40%, rgba(255, 107, 0, .9) 85%, var(--smg-yellow));
    animation-name: smg-sweep-down;
  }
}

@keyframes smg-core-sm {
  0% { opacity: .7; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.8); }
}

@keyframes smg-sweep-down {
  0% { opacity: 0; transform: translateY(-100%); }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translateY(100%); }
}


@media (min-width: 768px) {
  .smg-hub {
    --core-col: clamp(140px, 13vw, 200px);
    grid-template-columns: minmax(0, 1fr) var(--core-col) minmax(0, 1fr);
    grid-template-areas:
      "a core b"
      "c core d";
    gap: 24px 0;
    padding-left: 0;
  }

  /* Вертикальная шина через центр */
  .smg-hub::before {
    left: 50%;
    top: 22%;
    bottom: 22%;
    background: var(--smg-line-strong);
  }

  .smg-hub__core {
    grid-area: core;
    align-self: center;
    justify-self: center;
    margin: 0;
  }

  .smg-hub__core-mark {
    width: 72px;
    height: 72px;
    background:
      radial-gradient(circle at 50% 50%, rgba(255, 107, 0, .22), transparent 70%),
      var(--smg-bg);
    box-shadow: 0 0 0 8px rgba(255, 107, 0, .06), 0 0 48px rgba(255, 107, 0, .22);
  }

  .smg-hub__core-img {
    width: 40px;
    height: 40px;
  }

  .smg-cap--a { grid-area: a; }
  .smg-cap--b { grid-area: b; }
  .smg-cap--c { grid-area: c; }
  .smg-cap--d { grid-area: d; }

  .smg-cap__wire {
    top: 50%;
    width: calc(var(--core-col) / 2 + 4px);
    margin-top: -3px;
  }

  .smg-cap--a .smg-cap__wire,
  .smg-cap--c .smg-cap__wire {
    left: 100%;
    right: auto;
  }

  .smg-cap--a .smg-cap__wire::before,
  .smg-cap--c .smg-cap__wire::before {
    left: auto;
    right: 0;
  }

  .smg-cap--a .smg-cap__wire::after,
  .smg-cap--c .smg-cap__wire::after {
    background: linear-gradient(90deg, transparent 0 40%, rgba(255, 107, 0, .9) 85%, var(--smg-yellow));
    animation-name: smg-sweep-fwd;
  }
}

@keyframes smg-sweep-fwd {
  0% { opacity: 0; transform: translateX(-100%); }
  20% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translateX(100%); }
}

/* Принципы: компактная строка */
.smg-principles {
  display: grid;
  gap: 16px;
  margin-top: clamp(3rem, 2rem + 4vw, 5.5rem);
  padding-top: 24px;
  border-top: 1px solid var(--smg-line);
}

@media (min-width: 1200px) {
  .smg-principles {
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 24px;
  }
}

.smg-principles__label {
  margin: 0;
  padding-top: 2px;
  font-family: var(--smg-font-mono);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--smg-muted);
}

.smg-principles__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 576px) {
  .smg-principles__list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; }
}

@media (min-width: 992px) {
  .smg-principles__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.smg-principles__item {
  position: relative;
  padding: 10px 16px 10px 18px;
  border-left: 1px solid var(--smg-line);
  font-size: .9375rem;
  line-height: 1.55;
  color: var(--smg-muted);
}

.smg-principles__item::before {
  content: "";
  position: absolute;
  left: -3px;
  top: 18px;
  width: 5px;
  height: 5px;
  background: var(--smg-orange);
}

.smg-principles__item strong {
  font-family: var(--smg-font-head);
  font-size: .9375rem;
  font-weight: 500;
  color: var(--smg-text);
}


/* ===== SECTION: contact ===== */

.smg-channel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: clamp(20px, 1rem + 1vw, 26px);
  border: 1px solid var(--smg-line);
  border-radius: var(--r-3);
  background: var(--smg-surface-1);
}

.smg-channel--grow { flex: 1 1 auto; }

/* Основные каналы (телефон, email): линия слева, вся карточка — ссылка (stretched-link) */
.smg-channel--primary {
  gap: 20px;
  height: 100%;
  padding: clamp(22px, 1rem + 1.6vw, 34px);
}

/* Фокус — рамкой по карточке */
.smg-channel .stretched-link:focus-visible { outline: none; }

.smg-channel .stretched-link:focus-visible::after {
  outline: 2px solid var(--smg-focus);
  outline-offset: -2px;
  border-radius: var(--r-3);
}

/* Telegram: одна строка */
.smg-channel--compact { padding: 16px clamp(18px, .875rem + .6vw, 22px); }

.smg-channel--primary::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  bottom: 24px;
  width: 2px;
  background: var(--smg-gradient);
}

.smg-channel__head {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.smg-channel__icon {
  --ricon-size: 22px;
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--smg-line-strong);
  border-radius: var(--r-2);
}

.smg-channel__label {
  flex: none;
  margin: 0;
  font-family: var(--smg-font-mono);
  font-size: .8125rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--smg-muted);
}

/* без position — иначе stretched-link не растянется на карточку */
.smg-channel__value {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  align-self: flex-start;
  min-height: 44px;
  color: var(--smg-text);
  font-family: var(--smg-font-mono);
  font-size: clamp(1.375rem, 1rem + 1.4vw, 2.25rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.03em;
  text-decoration: none;
  white-space: nowrap;
  /* линия по hover — фоном: ::after занят stretched-link */
  background: linear-gradient(var(--smg-orange), var(--smg-orange)) 0 calc(100% - 4px) / 0 1px no-repeat;
  transition: background-size var(--dur-2) var(--ease-out);
}

@media (hover: hover) {
  .smg-channel__value:hover { background-size: 100% 1px; }
}


.smg-channel__value--off {
  align-self: center;
  min-height: 0;
  margin-left: auto;
  font-size: 1.0625rem;
  letter-spacing: -.01em;
}

.smg-channel__text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--smg-text);
}


.smg-channel__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.smg-channel__links .smg-btn { flex: 1 1 auto; }

@media (min-width: 576px) {
  .smg-channel__links .smg-btn { flex: 0 0 auto; }
}

/* Местное время (main.js; без JS — hidden) */
.smg-time {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px 16px;
  margin: 0;
  padding-top: 14px;
  border-top: 1px dashed var(--smg-line-strong);
}

.smg-time[hidden] { display: none; }

.smg-time__label {
  font-family: var(--smg-font-mono);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: var(--smg-muted);
}

.smg-time__value {
  font-family: var(--smg-font-mono);
  font-size: 1rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--smg-text);
}

/* Декор каналов: играет только на экране (is-playing — main.js). Телефон — эквалайзер */
.smg-voice {
  display: flex;
  align-items: center;
  gap: 3px;
  flex: 0 1 120px;
  min-width: 48px;
  height: 32px;
  margin-left: auto;
  overflow: hidden;
  overflow: clip;
}

.smg-voice i {
  --eq-max: .6;
  flex: 1 1 0;
  min-width: 2px;
  height: 100%;
  border-radius: 1px;
  background: linear-gradient(0deg, rgba(255, 107, 0, .6), rgba(255, 107, 0, .28));
  transform: scaleY(.2);
  animation: smg-eq 1.4s var(--ease-in-out) infinite alternate paused;
}

.smg-voice i:nth-child(3n+1) { --eq-max: .9; animation-duration: 1.1s; }
.smg-voice i:nth-child(3n+2) { --eq-max: .5; animation-duration: 1.7s; animation-delay: -.4s; }
.smg-voice i:nth-child(4n) { --eq-max: .75; animation-duration: 1.3s; animation-delay: -.8s; }
.smg-voice i:nth-child(5n) { --eq-max: .35; animation-duration: .9s; animation-delay: -.2s; }
.smg-voice i:nth-child(7n) { --eq-max: 1; animation-duration: 1.9s; animation-delay: -1.1s; }

.smg-voice.is-playing i { animation-play-state: running; }

/* Email — «пакет» по пунктиру к конверту */
.smg-mailpath {
  --mail-dur: 3.2s;
  display: flex;
  align-items: center;
  flex: 0 1 148px;
  min-width: 56px;
  height: 32px;
  margin-left: auto;
  overflow: hidden;
  overflow: clip;
}

.smg-mailpath__track {
  position: relative;
  flex: 1 1 auto;
  height: 1px;
  margin: 0 8px 0 6px;
  background: repeating-linear-gradient(90deg, var(--smg-line-strong) 0 4px, transparent 4px 8px);
}

.smg-mailpath__rail {
  position: absolute;
  inset: 0;
  animation: smg-packet var(--mail-dur) linear infinite paused;
}

.smg-mailpath__rail i {
  position: absolute;
  left: -4px;
  top: -3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle, #FFE08A 0, var(--smg-yellow) 35%, var(--smg-orange) 70%);
  box-shadow: 0 0 10px rgba(255, 107, 0, .85);
}

.smg-mailpath__rail i::before {
  content: "";
  position: absolute;
  right: 3px;
  top: 2px;
  width: 26px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 107, 0, .8));
}

.smg-mailpath__node {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border: 1px solid var(--smg-line-strong);
  border-radius: var(--r-1);
  background: var(--smg-bg);
  color: var(--smg-orange);
  font-size: .875rem;
}

.smg-mailpath__node::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--smg-orange), 0 0 14px rgba(255, 107, 0, .5);
  opacity: 0;
  animation: smg-node-hit var(--mail-dur) linear calc(var(--mail-dur) * .7) infinite paused;
}

.smg-mailpath.is-playing .smg-mailpath__rail,
.smg-mailpath.is-playing .smg-mailpath__node::after { animation-play-state: running; }

/* Декоративная «карта»: инженерная сетка, перекрестие, метка с кольцами сигнала */
.smg-map {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid var(--smg-line);
  border-radius: var(--r-3);
  background: var(--smg-surface-1);
}

.smg-map__field {
  position: relative;
  overflow: hidden;
  overflow: clip;
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  padding: clamp(16px, 4%, 32px);
  background: radial-gradient(60% 70% at 72% 50%, rgba(255, 107, 0, .07), transparent 70%);
}

/* Сцена с пропорциями данных карты (w/h из uz-dots.js); метка Ташкента — в процентах от сцены */
.smg-map__stage {
  --map-ratio: 1000 / 661;
  position: relative;
  width: 100%;
  aspect-ratio: var(--map-ratio);
}

/* ≥ 992px: высоту ряда задаёт левая колонка; сцена вне потока, её ширину вписывает map.js (fit) */
@media (min-width: 992px) {
  .smg-map__field {
    flex: 1 1 0;
    min-height: 280px;
  }

  .smg-map__stage {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
}

.smg-map__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.smg-map__city {
  position: absolute;
  left: 76.81%;
  top: 50.7%;
  display: none;
  width: 0;
  height: 0;
}

.js .smg-map__city { display: block; }

/* Квадратный слот знака: файл любых пропорций вписывается (object-fit: contain) */
.smg-map__mark {
  --mark: clamp(24px, 1rem + 1.6vw, 36px);
  position: absolute;
  left: 0;
  top: 0;
  width: var(--mark);
  height: var(--mark);
  object-fit: contain;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 10px rgba(255, 107, 0, .55));
}

/* Пульсирующее кольцо вокруг знака */
.smg-map__pulse {
  position: absolute;
  left: -16px;
  top: -16px;
  width: 32px;
  height: 32px;
  border: 1px solid var(--smg-orange);
  border-radius: 50%;
  opacity: 0;
  animation: smg-city-ring 3.2s var(--ease-out) infinite;
}

.smg-map__pulse + .smg-map__pulse { animation-delay: 1.6s; }

@keyframes smg-city-ring {
  0% { opacity: .8; transform: scale(.8); }
  100% { opacity: 0; transform: scale(3); }
}

/* Подпись на подложке (в стиле подписей операторов в hero): над знаком, влево от него */
.smg-map__label {
  position: absolute;
  right: 14px;
  bottom: 16px;
  padding: 5px 9px;
  border: 1px solid var(--smg-line);
  border-radius: var(--r-1);
  background: rgba(17, 17, 17, .92);
  color: var(--smg-text);
  font-family: var(--smg-font-mono);
  font-size: .6875rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .06em;
  white-space: nowrap;
}



/* ===== SECTION: footer ===== */

.smg-footer {
  position: relative;
  padding: clamp(3rem, 2rem + 4vw, 5rem) 0 calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--smg-line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .02), rgba(255, 255, 255, 0) 60%);
}

.smg-logo--footer {
  margin-right: 0;
}

.smg-footer__license {
  max-width: 48ch;
  margin: 20px 0 0;
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--smg-muted);
}

/* Реквизиты: ООО «Smart Mobile Group» · ИНН */
.smg-footer__req {
  max-width: 48ch;
  margin: 8px 0 0;
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--smg-muted);
}

.smg-footer__inn {
  font-family: var(--smg-font-mono);
  letter-spacing: .02em;
}

.smg-footer__list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.smg-footer__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--smg-text);
  font-size: .9375rem;
  text-decoration: none;
}

.smg-footer__link--contact {
  font-family: var(--smg-font-mono);
  font-size: .875rem;
}

.smg-footer__link .bi { color: var(--smg-orange); }

@media (hover: hover) {
  .smg-footer__link:hover { color: var(--smg-orange); }
}

.smg-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: clamp(2rem, 1.5rem + 2vw, 3rem);
  padding-top: 20px;
  /* место под кнопку «Наверх», чтобы она не перекрывала текст */
  padding-right: 76px;
  border-top: 1px solid var(--smg-line);
}

.smg-footer__copy,
.smg-footer__domain {
  margin: 0;
  font-size: .8125rem;
  color: var(--smg-muted);
}

.smg-footer__domain {
  font-family: var(--smg-font-mono);
  letter-spacing: .06em;
}


/* ===== SECTION: totop ===== */

.smg-totop {
  position: fixed;
  right: max(16px, env(safe-area-inset-right) + 8px);
  bottom: max(16px, env(safe-area-inset-bottom) + 8px);
  z-index: 1020;
  width: 60px;
  height: 60px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition:
    opacity var(--dur-2) var(--ease-out),
    transform var(--dur-2) var(--ease-out),
    visibility 0s linear var(--dur-2);
}

.smg-totop.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition:
    opacity var(--dur-2) var(--ease-out),
    transform var(--dur-2) var(--ease-out),
    visibility 0s;
}

/* Скрыта, пока открыта модалка или мобильное меню */
.modal-open .smg-totop,
.smg-menu-open .smg-totop {
  opacity: 0;
  visibility: hidden;
}

.smg-totop__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.smg-totop__ring circle {
  fill: none;
  stroke-width: 2;
}

.smg-totop__track { stroke: var(--smg-line-strong); }

.smg-totop__progress {
  stroke: var(--smg-orange);
  stroke-linecap: round;
}

.smg-totop__core {
  position: absolute;
  inset: 6px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--smg-gradient);
  transition: transform var(--dur-2) var(--ease-out);
}

.smg-totop__arrow {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--smg-ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform var(--dur-2) var(--ease-out);
}

@media (hover: hover) {
  .smg-totop:hover .smg-totop__arrow { transform: translateY(-3px); }
}

.smg-totop:active .smg-totop__core { transform: scale(.94); }


/* ==========================================================================
   4. Reduced motion: всё неосновное выключено, контент в финальном состоянии
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .smg-hero__content > * { animation: none; }

  /* Статичные «снимки» анимированных элементов */
  .smg-eq i,
  .smg-voice i { animation: none; transform: scaleY(var(--eq-max)); }
  .smg-path__rail,
  .smg-path__node::after,
  .smg-partners::after,
  .smg-cap__wire::after,
  .smg-hero__scroll i,
  .smg-map__pulse,
  .smg-hub__core-mark::before,
  .smg-hub__core-mark::after,
  .smg-mailpath__rail,
  .smg-mailpath__node::after { animation: none; opacity: 0; }
  .smg-hero__channels i { animation: none; opacity: .8; }
}
