/* =============================================================================
   «Союз 3Д» — основная таблица стилей
   Подход: mobile-first, брейкпоинты 360 / 768 / 1024 / 1440.
   Содержание:
     1. Переменные и токены (палитра из логотипа)
     2. Сброс и базовая типографика
     3. Утилиты и контейнеры
     4. Кнопки
     5. Шапка и навигация
     6. Волнообразные разделители секций
     7. Hero
     8. Секции главной (о нас, услуги, партнёры, аудитория, процесс, доставка)
     9. Формы
    10. Футер
    11. Плавающие элементы (наверх, связь)
    12. Страницы услуг
    13. Прочие страницы (контакты, политика, 404)
    14. Анимации появления при скролле
    15. Адаптивность
   ========================================================================== */

/* 1. ПЕРЕМЕННЫЕ ----------------------------------------------------------- */
:root {
  /* Палитра бренда (из логотипа) */
  --c-sky:    #8FD0EE;   /* светло-голубой */
  --c-accent: #4FA3D9;   /* голубой акцентный */
  --c-blue:   #2E7FB8;   /* синий */
  --c-dark:   #0B3D6B;   /* тёмно-синий */
  --c-navy:   #071A3A;   /* глубокий navy — заголовки, футер */
  --c-bg:     #F4F6F8;   /* светлый фон */
  --c-bg-alt: #E1E5E8;   /* светлый фон (альтернативный) */
  --c-white:  #FFFFFF;

  --c-text:   #1C2B3A;   /* основной текст */
  --c-muted:  #5C6B7A;   /* приглушённый текст */
  --c-border: #DCE3EA;   /* границы */

  /* Основной градиент бренда */
  --grad: linear-gradient(135deg, #8FD0EE 0%, #2E7FB8 55%, #071A3A 100%);
  --grad-soft: linear-gradient(135deg, #8FD0EE22, #2E7FB822);

  /* Радиусы, тени, геометрия */
  --r-sm: 10px;
  --r:    14px;
  --r-lg: 20px;
  --shadow-sm: 0 2px 10px rgba(7, 26, 58, .06);
  --shadow:    0 10px 30px rgba(7, 26, 58, .10);
  --shadow-lg: 0 20px 50px rgba(7, 26, 58, .16);

  --maxw: 1200px;
  --header-h: 76px;

  --ff-text: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ff-head: 'Montserrat', var(--ff-text);

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* 2. СБРОС И ТИПОГРАФИКА -------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); overflow-x: clip; }

body {
  font-family: var(--ff-text);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  max-width: 100%;
}

h1, h2, h3, h4 {
  font-family: var(--ff-head);
  color: var(--c-navy);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.9rem, 4.5vw, 3.3rem); }
h2 { font-size: clamp(1.55rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }

p { color: var(--c-text); }
a { color: var(--c-blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--c-dark); }

img, video, svg { display: block; max-width: 100%; }
ul { list-style: none; padding: 0; }

:focus-visible {
  outline: 3px solid var(--c-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* 3. УТИЛИТЫ -------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 20px;
}
.section { padding-block: clamp(48px, 7vw, 92px); position: relative; }
.section--tint { background: var(--c-white); }
.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-head);
  font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--c-blue);
  background: var(--grad-soft);
  padding: 6px 14px; border-radius: 999px;
  margin-bottom: 16px;
}
.lead { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--c-muted); }
.text-grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* 4. КНОПКИ --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--ff-head); font-weight: 600; font-size: .98rem;
  padding: 13px 26px; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s, background .25s, color .2s;
  text-align: center; line-height: 1.2;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: linear-gradient(135deg, #5DB3EA 0%, #2E7FB8 100%); color: #fff; border-color: transparent; box-shadow: 0 8px 20px rgba(46,127,184,.32); }
.btn--primary:hover { color: #fff; transform: translateY(-2px); background: linear-gradient(135deg, #6ABEF0 0%, #2E7FB8 100%); box-shadow: 0 14px 28px rgba(46,127,184,.42); }
.btn--ghost { background: rgba(255,255,255,.7); color: var(--c-dark); border-color: var(--c-border); }
.btn--ghost:hover { background: #fff; color: var(--c-navy); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn--light { background: #fff; color: var(--c-dark); }
.btn--light:hover { color: var(--c-navy); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn--block { width: 100%; }
.btn--lg { padding: 16px 32px; font-size: 1.05rem; }

/* 5. ШАПКА --------------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s, background .3s;
}
.header.is-scrolled { box-shadow: var(--shadow-sm); border-bottom-color: var(--c-border); background: rgba(255,255,255,.95); }
.header__inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand__logo { width: auto; height: 48px; aspect-ratio: 544 / 591; object-fit: contain; display: block; }
.brand__name {
  font-family: var(--ff-head); font-weight: 800; font-size: 1.5rem;
  color: var(--c-navy); letter-spacing: -.01em; line-height: 1; white-space: nowrap;
}
.brand__accent { color: var(--c-blue); }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__link {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  font-family: var(--ff-head); font-weight: 600; font-size: .96rem;
  color: var(--c-text); padding: 9px 14px; border-radius: 999px;
  transition: background .2s, color .2s;
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--c-navy); background: var(--c-bg); }
.nav__link[aria-current="page"] { color: var(--c-blue); }

/* Выпадающее меню услуг */
.has-dropdown { position: relative; }
.dropdown__toggle svg { width: 16px; height: 16px; transition: transform .25s; }
.has-dropdown:hover .dropdown__toggle svg,
.has-dropdown:focus-within .dropdown__toggle svg { transform: rotate(180deg); }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(10px);
  width: min(620px, 86vw);
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: 14px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  opacity: 0; visibility: hidden; transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown__item {
  display: flex; gap: 12px; align-items: center;
  padding: 10px 12px; border-radius: var(--r-sm); color: var(--c-text);
}
.dropdown__item:hover { background: var(--c-bg); color: var(--c-navy); }
.dropdown__ic {
  width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px;
  display: grid; place-items: center; color: #fff; background: var(--grad);
}
.dropdown__ic svg { width: 20px; height: 20px; }
.dropdown__txt strong { display: block; font-family: var(--ff-head); font-size: .92rem; font-weight: 600; color: var(--c-navy); line-height: 1.2; }
.dropdown__txt span { font-size: .78rem; color: var(--c-muted); }
.dropdown__all { grid-column: 1 / -1; margin-top: 4px; }

.header__actions { display: flex; align-items: center; gap: 14px; margin-left: 8px; }
.header__phone {
  font-family: var(--ff-head); font-weight: 700; font-size: 1rem; color: var(--c-navy); white-space: nowrap;
}
.header__phone span { display: block; font-size: .66rem; font-weight: 600; color: var(--c-muted); letter-spacing: .04em; }

/* Бургер */
.burger {
  display: none; width: 44px; height: 44px; border: none; background: transparent; cursor: pointer;
  flex-direction: column; justify-content: center; gap: 5px; padding: 10px; margin-left: auto;
}
.burger span { height: 2.5px; width: 100%; background: var(--c-navy); border-radius: 2px; transition: transform .3s, opacity .2s; }
.burger.is-open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Мобильное меню */
.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 999;
  background: #fff; padding: 20px; overflow-y: auto;
  transform: translateX(100%); transition: transform .35s var(--ease);
  visibility: hidden;
}
.mobile-menu.is-open { transform: translateX(0); visibility: visible; }
.mobile-menu__link {
  display: block; font-family: var(--ff-head); font-weight: 600; font-size: 1.1rem;
  color: var(--c-navy); padding: 14px 6px; border-bottom: 1px solid var(--c-border);
}
.mobile-sub { padding-left: 10px; }
.mobile-sub summary {
  display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none;
  font-family: var(--ff-head); font-weight: 600; font-size: 1.1rem; color: var(--c-navy);
  padding: 14px 6px; border-bottom: 1px solid var(--c-border);
}
.mobile-sub summary::-webkit-details-marker { display: none; }
.mobile-sub summary::after { content: "▾"; color: var(--c-blue); transition: transform .25s; }
.mobile-sub[open] summary::after { transform: rotate(180deg); }
.mobile-sub a { display: block; padding: 11px 10px; color: var(--c-text); font-weight: 500; border-bottom: 1px solid var(--c-bg-alt); }
.mobile-menu__cta { margin-top: 22px; }
.mobile-menu__phone { display: block; text-align: center; margin-top: 16px; font-family: var(--ff-head); font-weight: 700; font-size: 1.15rem; color: var(--c-navy); }

/* 6. ВОЛНООБРАЗНЫЕ РАЗДЕЛИТЕЛИ ------------------------------------------- */
.wave-divider { display: block; width: 100%; height: clamp(40px, 6vw, 80px); line-height: 0; }
.wave-divider svg { width: 100%; height: 100%; }

/* 7. HERO ---------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 80% -10%, #d7ecf8 0%, transparent 60%),
              linear-gradient(180deg, #eef5fb 0%, var(--c-bg) 100%);
}
.hero__inner {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
  padding-block: clamp(44px, 7vw, 96px);
}
.hero__title { margin-bottom: 22px; }
.hero__lead { font-size: clamp(1.04rem, 1.6vw, 1.28rem); color: var(--c-muted); max-width: 46ch; margin-bottom: 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero__badges { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hero__badge { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--c-dark); font-weight: 600; }
.hero__badge svg { width: 18px; height: 18px; color: var(--c-blue); flex-shrink: 0; }

/* Видео в hero */
.hero__media { width: 100%; }
.hero__media .video-wrap { width: 100%; }

/* Декоративная 3D/волновая графика */
.hero__visual { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; }
.hero__orb {
  position: absolute; inset: 8%;
  background: var(--grad); border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%;
  filter: blur(2px); opacity: .92;
  box-shadow: var(--shadow-lg);
  animation: morph 12s ease-in-out infinite;
}
.hero__orb::after {
  content: ""; position: absolute; inset: 14%;
  background: radial-gradient(circle at 35% 30%, #ffffff66, transparent 55%);
  border-radius: inherit;
}
.hero__rings { position: absolute; inset: -4%; }
.hero__rings span {
  position: absolute; inset: 0; border: 1.5px solid #4FA3D955; border-radius: 50%;
  animation: spin 26s linear infinite;
}
.hero__rings span:nth-child(2) { inset: 10%; border-color: #8FD0EE66; animation-duration: 20s; animation-direction: reverse; }
.hero__rings span:nth-child(3) { inset: 20%; border-color: #2E7FB844; animation-duration: 32s; }
.hero__cube {
  position: relative; z-index: 2; width: 46%; color: #fff; opacity: .95;
  filter: drop-shadow(0 12px 24px rgba(7,26,58,.35));
  animation: float 6s ease-in-out infinite;
}
@keyframes morph {
  0%,100% { border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%; }
  50%     { border-radius: 58% 42% 44% 56% / 46% 58% 42% 54%; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* 8. СЕКЦИИ ГЛАВНОЙ ------------------------------------------------------ */
/* О нас */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.about__intro { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: end; margin-bottom: clamp(28px, 4vw, 44px); }
.about__features { margin-bottom: 4px; }
.about__list { display: grid; gap: 14px; margin: 22px 0 28px; }
.about__list li { display: flex; gap: 13px; align-items: flex-start; }
.about__list .ic { width: 34px; height: 34px; flex-shrink: 0; border-radius: 9px; background: var(--grad-soft); color: var(--c-blue); display: grid; place-items: center; }
.about__list .ic svg { width: 19px; height: 19px; }
.about__list b { color: var(--c-navy); }
.video-wrap { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: #0b1f3a; }
.video-wrap video { width: 100%; height: 100%; display: block; aspect-ratio: 16/10; object-fit: cover; }
/* Квадратное фоновое видео в оригинальном соотношении (без обрезки, без управления) */
.video-wrap--square video { aspect-ratio: 1 / 1; object-fit: contain; height: auto; pointer-events: none; }
/* Прячем нативную панель управления (на случай её показа браузером) */
.video-wrap--square video::-webkit-media-controls { display: none !important; }
.video-wrap--square video::-webkit-media-controls-enclosure { display: none !important; }

/* Счётчики */
.counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(36px, 5vw, 56px); }
.counter {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--r); padding: 26px 20px; text-align: center;
  box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s;
}
.counter:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.counter__num { font-family: var(--ff-head); font-weight: 800; font-size: clamp(1.9rem, 3.5vw, 2.7rem); line-height: 1; margin-bottom: 8px; }
.counter__label { font-size: .92rem; color: var(--c-muted); font-weight: 500; }

/* Карточки услуг */
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* Вкладки-фильтр категорий услуг */
.services-tabs {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin-bottom: clamp(26px, 3vw, 38px);
}
.services-tab {
  font-family: var(--ff-head); font-weight: 600; font-size: .98rem;
  padding: 11px 24px; border-radius: 999px; border: 1.5px solid var(--c-border);
  background: #fff; color: var(--c-text); cursor: pointer; white-space: nowrap;
  transition: background .25s var(--ease), color .25s, border-color .25s, box-shadow .25s, transform .25s;
}
.services-tab:hover { border-color: var(--c-accent); color: var(--c-dark); transform: translateY(-1px); }
.services-tab.is-active {
  background: linear-gradient(135deg, #5DB3EA 0%, #2E7FB8 100%);
  color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(46,127,184,.3);
}
.services-tab:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; }
.service-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-lg); padding: 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
  overflow: hidden;
}
.service-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-card__ic { width: 54px; height: 54px; border-radius: 14px; background: var(--grad); color: #fff; display: grid; place-items: center; margin-bottom: 18px; box-shadow: 0 8px 18px rgba(46,127,184,.3); }
.service-card__ic svg { width: 28px; height: 28px; }
.service-card__cat { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--c-accent); }
.service-card h3 { margin: 4px 0 10px; }
.service-card p { font-size: .94rem; color: var(--c-muted); flex-grow: 1; }
.service-card__more { display: inline-flex; align-items: center; gap: 7px; margin-top: 18px; font-family: var(--ff-head); font-weight: 600; font-size: .92rem; color: var(--c-blue); }
.service-card__more svg { width: 17px; height: 17px; transition: transform .25s; }
.service-card:hover .service-card__more svg { transform: translateX(4px); }
.service-card__link { color: inherit; }
.service-card__link:hover { color: inherit; }
/* «Растянутая» ссылка: кликабельна вся карточка, но у ссылки есть текст-анкор */
.service-card__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }

/* Партнёрская сеть */
.partners__logos {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-bottom: 40px;
}
.partner-logo {
  height: 80px; border: 1px dashed var(--c-border); border-radius: var(--r); background: #fff;
  display: grid; place-items: center; color: var(--c-muted); font-weight: 700; font-family: var(--ff-head);
  text-align: center; padding: 10px; font-size: .82rem; transition: border-color .3s, color .3s, transform .3s;
}
.partner-logo:hover { border-color: var(--c-accent); color: var(--c-blue); transform: translateY(-3px); }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow-sm);
}
.feature__ic { width: 46px; height: 46px; border-radius: 12px; background: var(--grad-soft); color: var(--c-blue); display: grid; place-items: center; margin-bottom: 14px; }
.feature__ic svg { width: 24px; height: 24px; }
.feature h3 { font-size: 1.1rem; margin-bottom: 6px; }
.feature p { font-size: .9rem; color: var(--c-muted); }

/* Для кого работаем */
.audience { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.audience-card {
  position: relative; background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow-sm); overflow: hidden;
}
.audience-card__ic { width: 60px; height: 60px; border-radius: 16px; background: var(--grad); color: #fff; display: grid; place-items: center; margin-bottom: 18px; }
.audience-card__ic svg { width: 30px; height: 30px; }
.audience-card h3 { font-size: 1.4rem; margin-bottom: 12px; }
.audience-card ul { display: grid; gap: 9px; margin-top: 14px; }
.audience-card li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--c-text); }
.audience-card li svg { width: 18px; height: 18px; color: var(--c-accent); flex-shrink: 0; margin-top: 3px; }
.audience-note {
  grid-column: 1 / -1; text-align: center; margin-top: 8px;
  font-family: var(--ff-head); font-weight: 700; font-size: clamp(1.1rem, 2vw, 1.5rem); color: var(--c-navy);
}
.audience-note span { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* Процесс / таймлайн */
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; position: relative; margin-top: 20px; }
.timeline::before {
  content: ""; position: absolute; top: 34px; left: 8%; right: 8%; height: 3px;
  background: linear-gradient(90deg, var(--c-sky), var(--c-blue), var(--c-navy));
  border-radius: 3px; opacity: .4; z-index: 0;
}
.step { position: relative; z-index: 1; text-align: center; }
.step__num {
  width: 68px; height: 68px; margin: 0 auto 16px; border-radius: 50%;
  background: #fff; border: 3px solid transparent;
  background-image: linear-gradient(#fff,#fff), var(--grad);
  background-origin: border-box; background-clip: padding-box, border-box;
  display: grid; place-items: center; color: var(--c-blue); box-shadow: var(--shadow-sm);
  position: relative;
}
.step__num svg { width: 30px; height: 30px; }
.step__num b { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%; background: var(--grad); color: #fff; font-size: .8rem; display: grid; place-items: center; font-family: var(--ff-head); }
.step h3 { font-size: 1.05rem; margin-bottom: 7px; }
.step p { font-size: .86rem; color: var(--c-muted); }

/* Доставка */
.delivery { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px,4vw,56px); align-items: center; }
.delivery__card {
  background: var(--grad); color: #fff; border-radius: var(--r-lg); padding: clamp(32px, 4vw, 52px);
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.delivery__card h2 { color: #fff; }
.delivery__card p { color: #eaf4fb; }
.delivery__points { display: grid; gap: 14px; margin-top: 22px; }
.delivery__points li { display: flex; gap: 12px; align-items: center; font-weight: 500; }
.delivery__points svg { width: 22px; height: 22px; flex-shrink: 0; }
.delivery__map {
  aspect-ratio: 4/3; border-radius: var(--r-lg); background:
    radial-gradient(circle at 30% 40%, #d7ecf8, #eef5fb);
  border: 1px solid var(--c-border); display: grid; place-items: center; color: var(--c-muted);
  position: relative; overflow: hidden; box-shadow: var(--shadow-sm);
}

/* 9. ФОРМЫ --------------------------------------------------------------- */
.form-section { background: linear-gradient(180deg, var(--c-bg) 0%, #e8f0f7 100%); }
.form-card {
  background: #fff; border: 1px solid var(--c-border); border-radius: var(--r-lg);
  padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow-lg); max-width: 820px; margin-inline: auto;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label, .field__label { font-family: var(--ff-head); font-weight: 600; font-size: .9rem; color: var(--c-navy); }
.field label .req { color: #d64545; }
.field input, .field select, .field textarea {
  font-family: var(--ff-text); font-size: 1rem; color: var(--c-text);
  padding: 12px 14px; border: 1.5px solid var(--c-border); border-radius: var(--r-sm);
  background: var(--c-bg); transition: border-color .2s, box-shadow .2s, background .2s;
  width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--c-accent); background: #fff;
  box-shadow: 0 0 0 4px rgba(79,163,217,.15);
}
.field textarea { resize: vertical; min-height: 110px; }
.field input.invalid, .field select.invalid, .field textarea.invalid { border-color: #d64545; box-shadow: 0 0 0 4px rgba(214,69,69,.1); }
.field__error { color: #d64545; font-size: .8rem; min-height: 1em; }

/* Переключатель типа клиента */
.toggle-group { display: inline-flex; background: var(--c-bg); border: 1.5px solid var(--c-border); border-radius: 999px; padding: 4px; gap: 4px; }
.toggle-group input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-group label {
  padding: 9px 20px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .92rem; color: var(--c-muted);
  transition: background .25s, color .25s;
}
.toggle-group input:checked + label { background: var(--grad); color: #fff; box-shadow: 0 4px 12px rgba(46,127,184,.3); }
.toggle-group input:focus-visible + label { outline: 3px solid var(--c-accent); outline-offset: 2px; }

/* Радиокнопки объёма */
.radio-row { display: flex; flex-wrap: wrap; gap: 10px; }
.radio-chip { position: relative; }
.radio-chip input { position: absolute; opacity: 0; }
.radio-chip label {
  display: block; padding: 10px 18px; border: 1.5px solid var(--c-border); border-radius: 999px;
  background: var(--c-bg); cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--c-text); transition: all .2s;
}
.radio-chip input:checked + label { border-color: var(--c-accent); background: #eaf4fb; color: var(--c-dark); }
.radio-chip input:focus-visible + label { outline: 3px solid var(--c-accent); outline-offset: 2px; }

/* Drag-and-drop загрузка файлов */
.dropzone {
  border: 2px dashed var(--c-border); border-radius: var(--r); background: var(--c-bg);
  padding: 26px; text-align: center; cursor: pointer; transition: border-color .25s, background .25s;
}
.dropzone:hover, .dropzone.is-drag { border-color: var(--c-accent); background: #eaf4fb; }
.dropzone__ic { width: 44px; height: 44px; margin: 0 auto 10px; color: var(--c-blue); }
.dropzone strong { color: var(--c-navy); font-family: var(--ff-head); }
.dropzone small { display: block; color: var(--c-muted); font-size: .82rem; margin-top: 6px; }
.file-list { display: grid; gap: 8px; margin-top: 12px; }
.file-item {
  display: flex; align-items: center; gap: 10px; background: var(--c-bg); border: 1px solid var(--c-border);
  border-radius: var(--r-sm); padding: 8px 12px; font-size: .88rem;
}
.file-item svg { width: 18px; height: 18px; color: var(--c-blue); flex-shrink: 0; }
.file-item .name { flex-grow: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-item .size { color: var(--c-muted); font-size: .8rem; flex-shrink: 0; }
.file-item button { border: none; background: none; cursor: pointer; color: var(--c-muted); font-size: 1.2rem; line-height: 1; padding: 0 4px; }
.file-item button:hover { color: #d64545; }

/* Согласие */
.consent { display: flex; gap: 11px; align-items: flex-start; font-size: .86rem; color: var(--c-muted); }
.consent input { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; accent-color: var(--c-blue); }

/* Телефон в разделе заявки («можно просто позвонить») */
.form-call {
  text-align: center; margin: 2px auto 0; max-width: 640px;
  font-size: 1.02rem; color: var(--c-muted);
}
.form-call__phone {
  display: inline-flex; align-items: center; gap: 8px; vertical-align: middle;
  margin-left: 6px; font-family: var(--ff-head); font-weight: 700; font-size: 1.3rem;
  color: var(--c-dark); white-space: nowrap;
}
.form-call__phone svg { width: 20px; height: 20px; color: var(--c-blue); }
.form-call__phone:hover { color: var(--c-blue); }

/* honeypot — скрытое антиспам-поле */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Сообщение об успехе */
.form-success {
  display: none; text-align: center; padding: 20px;
  background: #e8f7ee; border: 1px solid #b6e3c6; border-radius: var(--r); color: #1c7a43; margin-bottom: 20px;
}
.form-success.show { display: block; }
.form-success svg { width: 40px; height: 40px; margin: 0 auto 8px; color: #28a05a; }

/* 10. ФУТЕР -------------------------------------------------------------- */
.footer { background: var(--c-navy); color: #c7d4e2; padding-block: clamp(44px, 6vw, 72px) 28px; }
.footer a { color: #c7d4e2; }
.footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; }
.footer__brand .brand__name { color: #fff; }
.footer__brand .brand__accent { color: var(--c-sky); }
.footer__about { margin-top: 16px; font-size: .9rem; color: #93a6bc; max-width: 34ch; }
.footer__socials { display: flex; gap: 10px; margin-top: 18px; }
.footer__socials a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; transition: background .25s, transform .25s; }
.footer__socials a:hover { background: var(--grad); transform: translateY(-2px); }
.footer__socials svg { width: 20px; height: 20px; }
.footer h4, .footer__h { color: #fff; font-size: 1rem; margin-bottom: 16px; font-family: var(--ff-head); }
.footer__col ul { display: grid; gap: 10px; }
.footer__col a { font-size: .9rem; }
.footer__contacts li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; margin-bottom: 12px; }
.footer__contacts svg { width: 18px; height: 18px; color: var(--c-sky); flex-shrink: 0; margin-top: 3px; }
.footer__bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center;
  font-size: .84rem; color: #7f93aa;
}

/* 11. ПЛАВАЮЩИЕ ЭЛЕМЕНТЫ -------------------------------------------------- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 900;
  width: 48px; height: 48px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--grad); color: #fff; box-shadow: var(--shadow);
  display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .3s, transform .3s, visibility .3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top svg { width: 22px; height: 22px; }

.float-contact { position: fixed; right: 20px; bottom: 80px; z-index: 900; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.float-contact__items { display: flex; flex-direction: column; gap: 12px; }
.float-contact a {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  box-shadow: var(--shadow); transition: transform .25s;
}
.float-contact a:hover { transform: scale(1.08); color: #fff; }
.float-contact a svg { width: 26px; height: 26px; }
/* Кнопка-переключатель (видна только на мобильных) */
.fc-toggle {
  display: none; width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, #5DB3EA 0%, #2E7FB8 100%); color: #fff; box-shadow: var(--shadow);
  place-items: center;
}
.fc-toggle svg { width: 28px; height: 28px; }
.fc-toggle .ic-close { display: none; }

@media (max-width: 768px) {
  .fc-toggle { display: grid; }
  .float-contact.is-open .fc-toggle .ic-open { display: none; }
  .float-contact.is-open .fc-toggle .ic-close { display: block; }
  /* Мессенджеры скрыты, раскрываются по кнопке */
  .float-contact__items {
    opacity: 0; visibility: hidden; transform: translateY(12px) scale(.9); transform-origin: bottom center;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .float-contact.is-open .float-contact__items { opacity: 1; visibility: visible; transform: none; }
}
.fc-tg { background: #2AABEE; }
.fc-wa { background: #25D366; }
.fc-max { background: linear-gradient(135deg, #2B90F4, #1552F0); }
.fc-vk { background: #0077FF; }

/* 12. СТРАНИЦЫ УСЛУГ ----------------------------------------------------- */
.breadcrumbs { font-size: .86rem; color: var(--c-muted); padding-block: 16px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.breadcrumbs a { color: var(--c-blue); }
.breadcrumbs .sep { color: var(--c-border); }

.svc-hero {
  background: radial-gradient(900px 400px at 85% -20%, #d7ecf8, transparent 60%), linear-gradient(180deg, #eef5fb, var(--c-bg));
  padding-bottom: clamp(32px, 5vw, 56px);
}
.svc-hero__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.svc-hero__ic { width: 72px; height: 72px; border-radius: 18px; background: var(--grad); color: #fff; display: grid; place-items: center; margin-bottom: 20px; box-shadow: var(--shadow); }
.svc-hero__ic svg { width: 38px; height: 38px; }
.svc-hero__lead { font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: var(--c-muted); margin: 18px 0 28px; max-width: 52ch; }
.svc-hero__visual { aspect-ratio: 4/3; border-radius: var(--r-lg); background: var(--grad); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; display: grid; place-items: center; }
.svc-hero__visual svg { width: 44%; color: #fff; opacity: .9; }
.svc-hero__visual img { width: 100%; height: 100%; object-fit: cover; position: relative; z-index: 1; }
.svc-hero__visual::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 20%, #ffffff33, transparent 55%); }

.prose { max-width: 70ch; }
.prose p { margin-bottom: 16px; color: var(--c-text); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); }
.check-list { display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list svg { width: 22px; height: 22px; color: var(--c-accent); flex-shrink: 0; margin-top: 2px; }

.spec-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid var(--c-border); }
.spec-table th, .spec-table td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--c-border); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: none; }
.spec-table th { font-family: var(--ff-head); font-weight: 600; color: var(--c-navy); width: 42%; background: var(--c-bg); }
.spec-table td { color: var(--c-text); }

/* Галерея + лайтбокс */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery__item { position: relative; border-radius: var(--r); overflow: hidden; cursor: pointer; aspect-ratio: 4/3; box-shadow: var(--shadow-sm); border: 1px solid var(--c-border); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__cap { position: absolute; inset: auto 0 0 0; padding: 20px 14px 12px; background: linear-gradient(transparent, rgba(7,26,58,.82)); color: #fff; font-size: .85rem; font-weight: 500; }
.gallery__tag { position: absolute; top: 10px; left: 10px; background: rgba(255,255,255,.9); color: var(--c-dark); font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }

.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(7,26,58,.9); display: none; place-items: center; padding: 24px; }
.lightbox.show { display: grid; }
.lightbox img { max-width: min(92vw, 1000px); max-height: 82vh; border-radius: var(--r); box-shadow: var(--shadow-lg); }
.lightbox__cap { color: #fff; text-align: center; margin-top: 14px; font-size: .95rem; }
.lightbox__close { position: absolute; top: 20px; right: 24px; background: none; border: none; color: #fff; font-size: 2.4rem; cursor: pointer; line-height: 1; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.14); border: none; color: #fff; width: 52px; height: 52px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; transition: background .2s; }
.lightbox__nav:hover { background: rgba(255,255,255,.28); }
.lightbox__nav.prev { left: 20px; } .lightbox__nav.next { right: 20px; }

/* Связанные услуги */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

/* FAQ-аккордеон */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq__item { background: #fff; border: 1px solid var(--c-border); border-radius: var(--r); overflow: hidden; }
.faq__q {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  font-family: var(--ff-head); font-weight: 600; font-size: 1.02rem; color: var(--c-navy);
  padding: 18px 54px 18px 22px; position: relative;
}
.faq__q::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--c-blue); transition: transform .3s; }
.faq__item.open .faq__q::after { transform: translateY(-50%) rotate(45deg); }
.faq__h { margin: 0; font-size: inherit; line-height: inherit; }
.js .faq__a { max-height: 0; }
.faq__a { overflow: hidden; transition: max-height .35s var(--ease); }
.faq__a-inner { padding: 0 22px 20px; color: var(--c-muted); font-size: .95rem; }

/* CTA-полоса на странице услуги */
.cta-band { background: var(--grad); color: #fff; border-radius: var(--r-lg); padding: clamp(28px, 4vw, 48px); text-align: center; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: #e6f1f9; max-width: 48ch; margin: 0 auto 22px; }

/* 13. ПРОЧИЕ СТРАНИЦЫ ---------------------------------------------------- */
.page-hero { background: radial-gradient(900px 400px at 85% -20%, #d7ecf8, transparent 60%), linear-gradient(180deg, #eef5fb, var(--c-bg)); padding-block: clamp(32px, 5vw, 60px); }

.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 22px; }
.contact-item__ic { width: 46px; height: 46px; border-radius: 12px; background: var(--grad-soft); color: var(--c-blue); display: grid; place-items: center; flex-shrink: 0; }
.contact-item__ic svg { width: 22px; height: 22px; }
.contact-item strong { display: block; font-family: var(--ff-head); color: var(--c-navy); margin-bottom: 2px; }
.contact-item a, .contact-item span { color: var(--c-muted); }
.map-frame { width: 100%; aspect-ratio: 16/10; border: 0; border-radius: var(--r-lg); box-shadow: var(--shadow); }
.requisites { background: #fff; border: 1px solid var(--c-border); border-radius: var(--r); padding: 24px; margin-top: 24px; }
.requisites dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; font-size: .9rem; }
.requisites dt { color: var(--c-muted); } .requisites dd { color: var(--c-navy); font-weight: 600; }

.legal { max-width: 800px; margin-inline: auto; }
.legal h2 { font-size: 1.35rem; margin: 32px 0 12px; }
.legal h3 { font-size: 1.1rem; margin: 22px 0 8px; }
.legal p, .legal li { color: var(--c-text); margin-bottom: 12px; }
.legal ul { list-style: disc; padding-left: 22px; }
.legal ul li { margin-bottom: 6px; }

.error-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px 20px; }
.error-code { font-family: var(--ff-head); font-weight: 800; font-size: clamp(5rem, 18vw, 11rem); line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* 14. АНИМАЦИИ ПОЯВЛЕНИЯ -------------------------------------------------- */
/* Анимация включается только при работающем JS (класс .js на <html>):
   без JS контент остаётся видимым — важно для поисковиков и надёжности. */
.js .reveal { opacity: 0; transform: translateY(26px); }
.reveal { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal, .js .reveal { opacity: 1; transform: none; }
}

/* 15. АДАПТИВНОСТЬ -------------------------------------------------------- */
@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .partners__logos { grid-template-columns: repeat(3, 1fr); }
  .counters { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .nav, .header__actions { display: none; }
  .burger { display: flex; }
}
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__media { max-width: 520px; margin-inline: auto; }
  .hero__visual { max-width: 380px; margin-inline: auto; }
  .about__grid, .about__intro, .delivery, .svc-hero__grid, .two-col, .contacts-grid { grid-template-columns: 1fr; }
  .about__intro { align-items: start; gap: 14px; }
  .svc-hero__visual { max-width: 420px; }
  .timeline { grid-template-columns: 1fr; gap: 28px; }
  .timeline::before { top: 10px; bottom: 10px; left: 33px; right: auto; width: 3px; height: auto; }
  .step { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; row-gap: 4px; text-align: left; align-items: start; }
  .step__num { margin: 0; grid-row: 1 / span 2; align-self: start; }
  .step h3 { grid-column: 2; align-self: center; margin-bottom: 0; }
  .step p { grid-column: 2; }
}
@media (max-width: 620px) {
  .form-grid { grid-template-columns: 1fr; }
  .services-grid, .feature-grid, .related-grid, .gallery { grid-template-columns: 1fr; }
  .audience { grid-template-columns: 1fr; }
  .partners__logos { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; }
  .counters { grid-template-columns: 1fr 1fr; }
  .hero__actions .btn { flex: 1 1 100%; }
  .float-contact a { width: 46px; height: 46px; }
}
@media (max-width: 380px) {
  .container { padding-inline: 16px; }
  .counters { grid-template-columns: 1fr; }
}

/* 16. SEO-ДОРАБОТКИ: новые блоки ---------------------------------------- */
/* Адрес под заголовком услуги */
.svc-hero__geo { display: flex; gap: 8px; align-items: flex-start; margin: -12px 0 24px; font-size: .92rem; color: var(--c-muted); max-width: 60ch; }
.svc-hero__geo svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--c-blue); }
.page-hero .svc-hero__geo { margin: 14px 0 0; }

/* Шаги заказа */
.order-steps { list-style: none; counter-reset: st; display: grid; gap: 14px; margin: 0 0 22px; padding: 0; }
.order-steps li { counter-increment: st; position: relative; padding-left: 46px; color: var(--c-text); }
.order-steps li::before {
  content: counter(st); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--grad); color: #fff; display: grid; place-items: center;
  font-family: var(--ff-head); font-weight: 700; font-size: .9rem;
}
.order-steps b { color: var(--c-navy); }

/* Карточка адреса */
.addr-card { background: #fff; border: 1px solid var(--c-border); border-radius: var(--r); padding: 18px 20px; display: grid; gap: 10px; box-shadow: var(--shadow-sm); }
.addr-card > div { display: flex; gap: 10px; align-items: flex-start; }
.addr-card svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--c-blue); }
.addr-card__more { font-family: var(--ff-head); font-weight: 600; font-size: .92rem; }

/* Мелкие элементы */
.center-link { text-align: center; margin-top: 28px; font-family: var(--ff-head); font-weight: 600; }
.muted-note { font-size: .86rem; color: var(--c-muted); margin-bottom: 14px; }
.form-hours { text-align: center; font-size: .9rem; color: var(--c-muted); margin-top: 8px; }
.footer__h--gap { margin-top: 26px; }
#price .btn { margin-top: 6px; }
#price .check-list { margin-bottom: 14px; }

/* Таблицы с заголовком (сравнение технологий, цены) */
.spec-table thead th { background: var(--c-navy); color: #fff; width: auto; }
.spec-table thead th a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.compare-table { min-width: 640px; }
.compare-table tbody th { width: 22%; }

/* Нижняя панель быстрой связи (только мобильные) */
.mobile-cta { display: none; }
@media (max-width: 768px) {
  .mobile-cta {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 950;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97); box-shadow: 0 -4px 18px rgba(7, 26, 58, .12);
  }
  .mobile-cta__btn {
    display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px;
    border-radius: 12px; font-family: var(--ff-head); font-weight: 700; font-size: .95rem;
  }
  .mobile-cta__btn svg { width: 19px; height: 19px; }
  .mobile-cta__btn--call { background: var(--c-bg); color: var(--c-navy); border: 1px solid var(--c-border); }
  .mobile-cta__btn--lead { background: var(--grad); color: #fff; }
  .mobile-cta__btn--lead:hover { color: #fff; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  .float-contact { bottom: 140px; }
  .to-top { bottom: 80px; }
}
/* Фильтр вкладок на главной скрывает карточки атрибутом hidden */
.service-card[hidden] { display: none; }
