/* ============================================================
   HORIZON — стили лендинга (v17)
   ------------------------------------------------------------
   Изменения v17:
   - Убран бейдж в hero
   - Шаги: квадрат с цифрой + заголовок рядом, текст ниже
   - Форма убрана, плитки контактов — сетка 2×2 по центру
   ============================================================ */

/* ============ ПЕРЕМЕННЫЕ ============ */
:root {
  --brand:         #2E7BC4;
  --brand-dark:    #1E5A94;
  --brand-light:   #E8F1FA;

  --accent:        #E8632A;
  --accent-dark:   #C44E1E;
  --accent-light:  #FDF0E9;

  --ink:           #4A4A4A;
  --ink-dark:      #2B2B2B;
  --ink-muted:     #7A7A7A;

  --bg:            #ffffff;
  --bg-alt:        #F7FAFD;
  --border:        #e5e7eb;

  --radius:        18px;
  --radius-sm:     12px;
  --container:     1280px;
  --section-pad:   2.5rem;

  --shadow-sm:     0 4px 16px -8px rgba(0,0,0,.12);
  --shadow-md:     0 20px 40px -20px rgba(46,123,196,.35);
  --shadow-lg:     0 24px 60px -30px rgba(46,123,196,.45);

  --ease:          cubic-bezier(.4, 0, .2, 1);

  --glass-bg:      rgba(255, 255, 255, 0.55);
  --glass-bg-hover: rgba(255, 255, 255, 0.68);
  --glass-border:  rgba(255, 255, 255, 0.7);
  --glass-blur:    18px;
  --glass-saturate: 160%;
  --glass-shadow:  0 8px 32px -12px rgba(31, 56, 88, 0.18),
                   0 2px 8px -4px rgba(31, 56, 88, 0.08),
                   inset 0 1px 0 rgba(255, 255, 255, 0.6),
                   inset 0 -1px 0 rgba(255, 255, 255, 0.15);
}

html.dark {
  --ink:           #cbd5e1;
  --ink-dark:      #f1f5f9;
  --ink-muted:     #94a3b8;
  --bg:            #0f172a;
  --bg-alt:        #0b1220;
  --border:        #334155;

  --glass-bg:      rgba(30, 41, 59, 0.55);
  --glass-bg-hover: rgba(30, 41, 59, 0.7);
  --glass-border:  rgba(255, 255, 255, 0.1);
  --glass-shadow:  0 8px 32px -12px rgba(0, 0, 0, 0.5),
                   0 2px 8px -4px rgba(0, 0, 0, 0.3),
                   inset 0 1px 0 rgba(255, 255, 255, 0.08),
                   inset 0 -1px 0 rgba(255, 255, 255, 0.03);
}

/* ============ БАЗА ============ */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 15% 0%, rgba(46,123,196,.10), transparent 60%),
    radial-gradient(ellipse 70% 40% at 90% 15%, rgba(232,99,42,.07), transparent 60%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(46,123,196,.06), transparent 60%),
    linear-gradient(180deg, #FBFCFE 0%, #F7FAFD 50%, #FDFBF9 100%);
  background-attachment: fixed, fixed, fixed, fixed;
  transition: color .3s var(--ease);
}

html.dark body {
  background:
    radial-gradient(ellipse 80% 50% at 15% 0%, rgba(46,123,196,.18), transparent 60%),
    radial-gradient(ellipse 70% 40% at 90% 15%, rgba(232,99,42,.10), transparent 60%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(46,123,196,.10), transparent 60%),
    linear-gradient(180deg, #0b1220 0%, #0f172a 50%, #1a1410 100%);
  background-attachment: fixed, fixed, fixed, fixed;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  color: var(--ink-dark);
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.25rem, 4.5vw, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; }
b, strong { color: var(--ink-dark); font-weight: 700; }

/* ============ КОНТЕЙНЕР ============ */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px){ .container { padding: 0 2rem; } }

/* ============================================================
   ЛОГОТИП
   ============================================================ */
.header__logo .logo-dark { display: none; }
html.dark .header__logo .logo-light { display: none; }
html.dark .header__logo .logo-dark { display: block; }

/* ============ КНОПКИ ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .9rem 1.6rem;
  font-weight: 600;
  font-size: .95rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
  text-align: center;
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -10px rgba(46,123,196,.6);
}
.btn--accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
}
.btn--accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -10px rgba(232,99,42,.6);
}
.btn--ghost {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border-color: rgba(46,123,196,.35);
  color: var(--brand);
  box-shadow:
    0 4px 16px -8px rgba(31,56,88,.18),
    inset 0 1px 0 rgba(255,255,255,.6);
}
.btn--ghost:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
html.dark .btn--ghost {
  border-color: rgba(96,165,250,.4);
  color: #60a5fa;
}
html.dark .btn--ghost:hover { background: #60a5fa; color: #0f172a; }

/* ============ ФОНОВАЯ СЕТКА ============ */
.bg-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 120vh;
  z-index: 0;
  pointer-events: none;
  opacity: .65;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}
html.dark .bg-canvas { opacity: .45; }

body > *:not(.bg-canvas):not(.header):not(.to-top) {
  position: relative;
  z-index: 1;
}

/* ============ ШАПКА ============ */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,.62);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border-bottom: 1px solid rgba(255,255,255,.5);
  box-shadow:
    0 4px 24px -12px rgba(31,56,88,.12),
    inset 0 -1px 0 rgba(255,255,255,.4);
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
html.dark .header {
  background: rgba(15,23,42,.62);
  border-bottom-color: rgba(255,255,255,.06);
  box-shadow:
    0 4px 24px -12px rgba(0,0,0,.4),
    inset 0 -1px 0 rgba(255,255,255,.04);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}
@media (min-width: 768px) { .header__inner { height: 80px; } }

.header__logo img { height: 36px; width: auto; }
@media (min-width: 768px) { .header__logo img { height: 44px; } }

.header__nav {
  display: none;
  gap: 1.75rem;
  font-size: .9rem;
  font-weight: 500;
}
@media (min-width: 1024px) { .header__nav { display: flex; } }

.header__nav a {
  color: var(--ink);
  transition: color .2s var(--ease);
}
.header__nav a:hover { color: var(--brand); }

.header__actions {
  display: flex;
  align-items: center;
  gap: .5rem;
}
@media (min-width: 768px) { .header__actions { gap: .75rem; } }

.header__cta { display: none; padding: .7rem 1.3rem; font-size: .875rem; }
@media (min-width: 640px) { .header__cta { display: inline-flex; } }

.theme-toggle {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
}
.theme-toggle:hover { border-color: var(--brand); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-moon { display: none; }
html.dark .theme-toggle .icon-sun  { display: none; }
html.dark .theme-toggle .icon-moon { display: block; }

.burger {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
}
@media (min-width: 1024px) { .burger { display: none; } }
.burger span {
  width: 18px; height: 2px; background: var(--ink);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1023px) {
  .header__nav {
    position: fixed;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    background: rgba(255,255,255,.92);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    padding: 1.5rem;
    gap: 1.1rem;
    border-bottom: 1px solid var(--border);
    transform: translateY(-110%);
    transition: transform .35s var(--ease);
    box-shadow: 0 12px 32px -16px rgba(31,56,88,.25);
    z-index: 99;
  }
  html.dark .header__nav { background: rgba(15,23,42,.94); }
  .header__nav.active { display: flex; transform: translateY(0); }
}

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 6rem 0 3rem;
  background: transparent;
}
@media (min-width: 768px) { .hero { padding: 8rem 0 4rem; } }

.hero__inner {
  position: relative;
  max-width: 820px;
}

.hero__title { margin-bottom: 1.25rem; }
.text-brand { color: var(--brand); }

.hero__lead {
  font-size: 1.1rem;
  max-width: 620px;
  margin-bottom: 2rem;
}
@media (min-width: 768px) { .hero__lead { font-size: 1.25rem; } }

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 2rem;
}

.hero__facts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 2rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--ink-dark);
}
.hero__facts li {
  display: flex; align-items: center; gap: .5rem;
}
.hero__facts svg { width: 20px; height: 20px; color: var(--brand); }

/* ============ СЕКЦИИ ============ */
.section {
  padding: var(--section-pad) 0;
  background: transparent;
}

.section__head { max-width: 640px; margin-bottom: 1.75rem; }
.section__head p { margin-top: .75rem; font-size: 1.05rem; }

.eyebrow {
  color: var(--brand);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}

/* ============ СЕТКА ============ */
.grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .grid { gap: 1.25rem; } }

.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

@media (min-width: 768px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   КАРТОЧКИ УСЛУГ — иконка слева, текст справа
   ============================================================ */
.card {
  position: relative;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-saturate));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  box-shadow: var(--glass-shadow);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease), border-color .3s var(--ease);
  transform: translateZ(0);
  overflow: hidden;

  display: flex;
  align-items: center;
  gap: 1rem;
}

.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.9), transparent);
  opacity: .8;
  pointer-events: none;
}
html.dark .card::before {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
}

.card:hover {
  transform: translateY(-4px) translateZ(0);
  background: var(--glass-bg-hover);
  box-shadow:
    0 24px 48px -20px rgba(31,56,88,.25),
    0 8px 16px -8px rgba(31,56,88,.12),
    inset 0 1px 0 rgba(255,255,255,.75),
    inset 0 -1px 0 rgba(255,255,255,.15);
  border-color: rgba(46,123,196,.4);
}
html.dark .card:hover {
  box-shadow:
    0 24px 48px -20px rgba(0,0,0,.6),
    0 8px 16px -8px rgba(0,0,0,.4),
    inset 0 1px 0 rgba(255,255,255,.12),
    inset 0 -1px 0 rgba(255,255,255,.04);
  border-color: rgba(96,165,250,.35);
}

.card__icon {
  flex: 0 0 46px;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(46,123,196,.16), rgba(46,123,196,.08));
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0;
  border: 1px solid rgba(46,123,196,.2);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.6),
    0 4px 12px -6px rgba(46,123,196,.25);
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.card:hover .card__icon { transform: scale(1.05); }
.card__icon svg { width: 22px; height: 22px; }
html.dark .card__icon {
  background: linear-gradient(135deg, rgba(96,165,250,.18), rgba(96,165,250,.08));
  color: #93c5fd;
  border-color: rgba(96,165,250,.25);
}

.card__icon--accent {
  background: linear-gradient(135deg, rgba(232,99,42,.16), rgba(232,99,42,.08));
  color: var(--accent);
  border-color: rgba(232,99,42,.25);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.6),
    0 4px 12px -6px rgba(232,99,42,.3);
}
html.dark .card__icon--accent {
  background: linear-gradient(135deg, rgba(232,99,42,.2), rgba(232,99,42,.1));
  color: #fdba74;
  border-color: rgba(232,99,42,.3);
}

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

.card__body h3 {
  margin: 0 0 .3rem;
  font-size: 1rem;
  line-height: 1.3;
}
.card__body p {
  font-size: .85rem;
  line-height: 1.5;
  margin: 0;
}

/* ============================================================
   БОЛЬШАЯ КАРТОЧКА «Для кого» — вертикальная раскладка
   ============================================================ */
.card--lg {
  padding: 1.5rem;
  /* flex наследуется от .card — иконка слева */
}
.card--lg .card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  /* margin-bottom убран — иконка слева */
}
.card--lg .card__icon svg {
  width: 26px;
  height: 26px;
}
.card--lg .card__body h3 {
  font-size: 1.15rem;
  margin-bottom: .75rem;
}
.card--lg .card__body p {
  font-size: .95rem;
}

/* ============ СПИСКИ С ГАЛОЧКАМИ ============ */
.checklist {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}
.checklist li {
  position: relative;
  padding-left: 1.75rem;
  font-size: .95rem;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: .45em;
  width: 14px; height: 8px;
  border-left: 2.4px solid var(--brand);
  border-bottom: 2.4px solid var(--brand);
  transform: rotate(-45deg);
}

/* ============ СТЕК ============ */
.stack {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.stack__badge {
  display: inline-flex;
  align-items: center;
  padding: .6rem 1.15rem;
  border-radius: 999px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  color: var(--brand-dark);
  border: 1px solid var(--glass-border);
  font-weight: 600;
  font-size: .875rem;
  box-shadow:
    0 4px 12px -6px rgba(31,56,88,.15),
    inset 0 1px 0 rgba(255,255,255,.6);
  transition: transform .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.stack__badge:hover {
  transform: translateY(-2px);
  border-color: rgba(46,123,196,.5);
  background: var(--glass-bg-hover);
  box-shadow:
    0 8px 20px -8px rgba(46,123,196,.35),
    inset 0 1px 0 rgba(255,255,255,.75);
}
html.dark .stack__badge { color: #93c5fd; }

/* ============================================================
   ШАГИ «Как я работаю» — квадрат с цифрой + заголовок рядом,
   текст ниже, все карточки одной высоты
   ============================================================ */
.step {
  position: relative;
  padding: 1.25rem 1.4rem;
  border-radius: var(--radius);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  transform: translateZ(0);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);

  height: 100%;
  display: flex;
  flex-direction: column;
}
.step:hover {
  transform: translateY(-4px) translateZ(0);
  box-shadow:
    0 20px 40px -20px rgba(31,56,88,.22),
    inset 0 1px 0 rgba(255,255,255,.7);
}

.step__header {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .75rem;
}
.step__num {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 6px 14px -6px rgba(46,123,196,.6),
    inset 0 1px 0 rgba(255,255,255,.3);
}
.step__header h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink-dark);
  line-height: 1.2;
}
.step p {
  font-size: .9rem;
  line-height: 1.55;
  margin: 0;
}

/* ============ ВЫЕЗД ============ */
.visit { padding: 1.5rem 0; }
.visit__inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.75rem 2rem;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  border-radius: var(--radius);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
  transform: translateZ(0);
}

.visit__inner::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(46,123,196,.12), transparent 60%),
    radial-gradient(circle at 80% 50%, rgba(232,99,42,.10), transparent 60%);
  pointer-events: none;
}

.visit__icon {
  position: relative;
  flex: 0 0 56px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  box-shadow:
    0 8px 20px -10px rgba(46,123,196,.4),
    inset 0 1px 0 rgba(255,255,255,.9);
  border: 1px solid rgba(255,255,255,.8);
}
.visit__icon svg { width: 26px; height: 26px; }
html.dark .visit__icon { background: rgba(255,255,255,.08); color: #93c5fd; border-color: rgba(255,255,255,.1); }
.visit__text { position: relative; }
.visit__text h3 { margin-bottom: .35rem; }
.visit__text p { font-size: .95rem; }

@media (max-width: 640px) {
  .visit__inner { flex-direction: column; text-align: center; padding: 1.5rem; }
}

/* ============================================================
   КОНТАКТЫ — сетка 2×2, без формы
   ============================================================ */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .85rem;
  max-width: 860px;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .contacts-grid { grid-template-columns: 1fr 1fr; }
}

.contact-tile {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: 1.15rem 1.25rem;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--glass-shadow);
  transform: translateZ(0);
  transition: transform .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease);
}
.contact-tile:hover {
  transform: translateY(-3px) translateZ(0);
  background: var(--glass-bg-hover);
  border-color: rgba(46,123,196,.4);
  box-shadow:
    0 16px 32px -16px rgba(31,56,88,.28),
    inset 0 1px 0 rgba(255,255,255,.75);
}
.contact-tile__icon {
  flex: 0 0 44px;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(46,123,196,.12);
  color: var(--c);
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5);
}
@supports (background: color-mix(in srgb, red 12%, transparent)) {
  .contact-tile__icon {
    background: color-mix(in srgb, var(--c) 14%, transparent);
  }
}
.contact-tile__icon svg { width: 22px; height: 22px; }
.contact-tile__text { display: flex; flex-direction: column; min-width: 0; }
.contact-tile__label {
  font-size: .75rem;
  color: var(--ink-muted);
  font-weight: 500;
  line-height: 1.2;
}
.contact-tile__value {
  font-weight: 600;
  color: var(--ink-dark);
  font-size: .95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ============ ПОДВАЛ ============ */
.footer {
  background: transparent;
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .75rem;
  font-size: .8rem;
  color: var(--ink-muted);
}

/* ============================================================
   КНОПКА «НАВЕРХ»
   ============================================================ */
.to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  backdrop-filter: blur(16px) saturate(160%);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow:
    0 8px 24px -10px rgba(31,56,88,.25),
    inset 0 1px 0 rgba(255,255,255,.7);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease), opacity .25s var(--ease);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
}
.to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.to-top:hover {
  transform: translateY(-3px);
  background: var(--glass-bg-hover);
  border-color: rgba(46,123,196,.5);
  box-shadow:
    0 12px 28px -10px rgba(46,123,196,.45),
    inset 0 1px 0 rgba(255,255,255,.85);
}
.to-top:active {
  transform: translateY(-1px) scale(.95);
}
.to-top svg {
  width: 20px;
  height: 20px;
}
html.dark .to-top { color: #93c5fd; }
@media (max-width: 640px) {
  .to-top {
    right: 1rem;
    bottom: 1rem;
    width: 44px;
    height: 44px;
  }
  .to-top svg { width: 18px; height: 18px; }
}

/* ============ АНИМАЦИЯ ПОЯВЛЕНИЯ ============ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s var(--ease), transform .8s var(--ease);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .bg-canvas { transform: none !important; }
}

/* ============================================================
   FALLBACK: если backdrop-filter не поддерживается
   ============================================================ */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .header { background: rgba(255,255,255,.95); }
  html.dark .header { background: rgba(15,23,42,.95); }
  .card, .step, .contact-tile, .visit__inner, .stack__badge, .theme-toggle, .burger, .to-top {
    background: rgba(255,255,255,.92);
  }
  html.dark .card, html.dark .step,
  html.dark .contact-tile, html.dark .visit__inner,
  html.dark .stack__badge,
  html.dark .theme-toggle, html.dark .burger,
  html.dark .to-top {
    background: rgba(30,41,59,.92);
  }
}

/* ============================================================
   ФИКСЫ ДЛЯ iOS SAFARI
   ============================================================ */
.btn, .contact-tile, .theme-toggle, .burger, .header__nav a, .to-top {
  -webkit-tap-highlight-color: transparent;
}
.btn, .theme-toggle, .burger, .contact-tile, .to-top {
  touch-action: manipulation;
}

/* ============================================================
   БЛОК «ВЫГОДА» — сравнение со штатным сисадмином (v20)
   ============================================================ */
.savings {
  position: relative;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2rem 2.25rem;
  box-shadow: var(--glass-shadow);
  transform: translateZ(0);
  overflow: hidden;
}
.savings::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(46,123,196,.10), transparent 55%),
    radial-gradient(circle at 80% 100%, rgba(232,99,42,.08), transparent 55%);
  pointer-events: none;
}
.savings > * { position: relative; }

@media (max-width: 640px) {
  .savings { padding: 1.5rem; }
}

.savings__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.75rem;
}
@media (min-width: 640px) {
  .savings__grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
}

.savings__col {
  padding: 1.5rem 1.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: rgba(255,255,255,.35);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
}
html.dark .savings__col {
  background: rgba(255,255,255,.04);
}

.savings__col--staff {
  border-color: rgba(232,99,42,.25);
}
html.dark .savings__col--staff { border-color: rgba(232,99,42,.3); }

.savings__col--out {
  border-color: rgba(46,123,196,.3);
  background: rgba(46,123,196,.06);
}
html.dark .savings__col--out {
  background: rgba(96,165,250,.06);
  border-color: rgba(96,165,250,.3);
}

.savings__label {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: .85rem;
}

.savings__price {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--ink-dark);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.savings__price span {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-muted);
  margin-left: .25rem;
  letter-spacing: 0;
}
.savings__col--staff .savings__price { color: var(--accent); }
.savings__col--out .savings__price { color: var(--brand); }
html.dark .savings__col--out .savings__price { color: #60a5fa; }

.savings__sub {
  font-size: .85rem;
  color: var(--ink-muted);
  margin-top: .35rem;
  margin-bottom: 1.1rem;
}

.savings__list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
  flex: 1;
}
.savings__list li {
  position: relative;
  padding-left: 1.4rem;
  font-size: .9rem;
  color: var(--ink);
}
.savings__list li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 10px;
  height: 6px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  opacity: .6;
}

.savings__year {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink-dark);
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
}
.savings__col--staff .savings__year { color: var(--accent); }
.savings__col--out .savings__year { color: var(--brand); }
html.dark .savings__col--out .savings__year { color: #60a5fa; }

/* Результат — экономия */
.savings__result {
  text-align: center;
  padding: 1.5rem 1rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(46,123,196,.12), rgba(232,99,42,.10));
  border: 1px solid rgba(46,123,196,.2);
}
html.dark .savings__result {
  background: linear-gradient(135deg, rgba(46,123,196,.18), rgba(232,99,42,.14));
  border-color: rgba(96,165,250,.25);
}
.savings__result-label {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: .5rem;
}
html.dark .savings__result-label { color: #93c5fd; }

.savings__result-value {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--ink-dark);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.savings__note {
  text-align: center;
  font-size: .8rem;
  color: var(--ink-muted);
  margin-bottom: 1.5rem;
}

.savings__cta {
  text-align: center;
}

/* ============================================================
   ТАРИФЫ (v22)
   ============================================================ */
.pricing { align-items: stretch; }

.pricing__card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem;
  height: 100%;
}
.pricing__card .card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pricing__card--featured {
  border-color: rgba(46,123,196,.5);
  box-shadow:
    0 24px 48px -20px rgba(46,123,196,.3),
    0 8px 16px -8px rgba(46,123,196,.15),
    inset 0 1px 0 rgba(255,255,255,.75);
}
html.dark .pricing__card--featured {
  border-color: rgba(96,165,250,.5);
}

.pricing__label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: .75rem;
}
.pricing__card--featured .pricing__label { color: var(--brand); }
html.dark .pricing__card--featured .pricing__label { color: #93c5fd; }

.pricing__price {
  font-size: clamp(1.5rem, 2.5vw, 1.9rem);
  font-weight: 800;
  color: var(--ink-dark);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: .35rem;
}
.pricing__price span {
  font-size: .9rem;
  font-weight: 500;
  color: var(--ink-muted);
  margin-left: .2rem;
}

.pricing__desc {
  font-size: .85rem;
  color: var(--ink-muted);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.pricing__card .checklist {
  margin-top: 0;
  margin-bottom: 1.5rem;
  flex: 1;
}
.pricing__card .checklist li {
  font-size: .875rem;
}

.pricing__cta {
  width: 100%;
  margin-top: auto;
}

/* ============================================================
   О СЕБЕ (v22)
   ============================================================ */
.about {
  max-width: 780px;
  margin: 0 auto;
  padding: 2rem 2.25rem;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(20px) saturate(170%);
  backdrop-filter: blur(20px) saturate(170%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow);
  transform: translateZ(0);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
}
.about p { margin: 0 0 1rem; }
.about p:last-child { margin-bottom: 0; }
.about b {
  color: var(--ink-dark);
  font-weight: 700;
}
html.dark .about b { color: #f1f5f9; }

@media (max-width: 640px) {
  .about { padding: 1.5rem 1.25rem; font-size: .95rem; }
}

/* ============================================================
   FAQ (v22)
   ============================================================ */
.faq {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.faq__item {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.faq__item:hover {
  border-color: rgba(46,123,196,.35);
}
.faq__item[open] {
  border-color: rgba(46,123,196,.5);
}

.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  font-weight: 600;
  font-size: .975rem;
  color: var(--ink-dark);
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
  transition: color .2s var(--ease);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::marker { display: none; content: ""; }
.faq__q:hover { color: var(--brand); }
html.dark .faq__q:hover { color: #93c5fd; }

.faq__icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  color: var(--brand);
  transition: transform .3s var(--ease);
}
html.dark .faq__icon { color: #60a5fa; }
.faq__item[open] .faq__icon {
  transform: rotate(180deg);
}

.faq__a {
  padding: 0 1.35rem 1.15rem;
  font-size: .925rem;
  line-height: 1.65;
  color: var(--ink);
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  margin-top: 0;
}

/* ============================================================
   ГАРАНТИИ — квадраты с коротким номером/символом (v22)
   ============================================================ */
#guarantees .step__num {
  font-size: .95rem;
}