:root {
  --bg: #f4f6fb;
  --surface: #ffffff;
  --ink: #0f172a;
  --text: #1c2333;
  --text-muted: #6b7280;
  --accent: #2563eb;
  --accent-dark: #1d4fd1;
  --accent-soft: #eaf1ff;
  --border: #e7eaf1;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04), 0 1px 1px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 12px 28px -8px rgba(15, 23, 42, 0.12), 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 24px 48px -12px rgba(15, 23, 42, 0.18);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  margin: 0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* На узких экранах (Galaxy Z Fold и подобные, ~344px) длинные слова вроде
   «Сертифицированная» не помещаются в строку и вылезают за границу карточки.
   Разрешаем перенос внутри слова, чтобы вёрстка не ломалась ни при какой ширине. */
h1, h2, h3, p, span, a, li, .stat-title, .project-card-title {
  overflow-wrap: break-word;
  word-break: break-word;
}

a {
  text-decoration: none;
}

.accent {
  color: var(--accent);
}

/* ---------- Header ---------- */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}

.site-header .navbar {
  position: relative;
}

/* Ниже lg меню Bootstrap раскрывается в потоке и сдвигает контент вниз.
   Делаем его панелью поверх страницы — шапка остаётся на месте. */
@media (max-width: 991.98px) {
  .site-header .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 60;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 0.75rem 1.5rem 1.25rem;
  }

  .site-header .navbar-nav {
    align-items: stretch;
  }

  .site-header .nav-item + .nav-item {
    border-top: 1px solid var(--border);
  }

  .site-header .nav-link {
    padding: 0.75rem 0;
    font-size: 1rem;
  }

  .site-header .nav-item .btn-accent {
    display: block;
    margin-top: 0.85rem;
    text-align: center;
  }
}

.navbar-brand {
  color: var(--ink) !important;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 1.3rem;
}

.nav-link {
  color: var(--text-muted) !important;
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-link:hover {
  color: var(--ink) !important;
}

/* Своя кнопка меню вместо бутстраповской: та выглядит инородно рядом с
   мягкими иконочными плитками остального интерфейса. Линии превращаются
   в крестик, поэтому состояние меню понятно без подписи. */
.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 0;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent);
  cursor: pointer;
  transition: background 0.2s ease;
}

.nav-toggle:hover {
  background: #dbe7ff;
}

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

@media (max-width: 991.98px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

.nav-toggle-bars {
  position: relative;
  width: 20px;
  height: 14px;
  display: block;
}

.nav-toggle-bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.2s ease, width 0.25s ease;
}

.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 6px; width: 70%; }
.nav-toggle-bars span:nth-child(3) { top: 12px; }

.nav-toggle[aria-expanded="true"] {
  background: var(--accent);
  color: #fff;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
  width: 100%;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

@media (prefers-reduced-motion: reduce) {
  .nav-toggle-bars span {
    transition: none;
  }
}

/* ---------- Buttons ---------- */
.btn-accent {
  background: var(--accent);
  border: 1.5px solid transparent;
  color: #fff;
  font-weight: 600;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-accent:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-outline-light {
  border: 1.5px solid var(--border);
  color: var(--ink);
  background: var(--surface);
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.btn-outline-light:hover {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.link-accent {
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.link-accent:hover {
  color: var(--accent-dark);
}

.link-accent svg {
  transition: transform 0.15s ease;
}

.link-accent:hover svg {
  transform: translateX(3px);
}

/* ---------- Hero ---------- */
.hero {
  padding: 7rem 0 5rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(600px 300px at 85% -10%, rgba(37, 99, 235, 0.10), transparent 70%),
    radial-gradient(500px 260px at 5% 110%, rgba(37, 99, 235, 0.06), transparent 70%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--accent);
  background: var(--accent-soft);
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 0.8rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--ink);
}

.hero-subtitle {
  color: var(--text-muted);
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 620px;
}

/* Ниже sm кнопки переносятся друг под друга и по умолчанию получают разную
   ширину по длине текста. Растягиваем обе на всю строку, чтобы они выглядели
   одинаково. */
@media (max-width: 575.98px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

/* ---------- Мобильная липкая панель с CTA ---------- */
/* Только для телефонов: на десктопе кнопка и так всегда видна в шапке.
   Панель лежит ниже шапки по z-index, поэтому в скрытом состоянии просто
   уезжает за неё, а не мелькает поверх. */
.mobile-cta {
  display: none;
  position: fixed;
  top: var(--header-h, 72px);
  left: 0;
  right: 0;
  z-index: 45;
  padding: 0.6rem 1.5rem 0.7rem;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transform: translateY(-130%);
  transition: transform 0.28s ease;
  pointer-events: none;
}

.mobile-cta .btn {
  width: 100%;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  box-shadow: none;
}

.mobile-cta.is-visible {
  transform: translateY(0);
  pointer-events: auto;
}

@media (max-width: 767.98px) {
  .mobile-cta {
    display: block;
  }
}

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

/* ---------- Hero illustration ---------- */
.hero-art {
  width: 100%;
  height: auto;
  max-width: 560px;
  display: block;
  margin-left: auto;
  overflow: visible;
}

.ha-glow {
  fill: var(--accent);
  opacity: 0.05;
}

.ha-frame {
  fill: var(--surface);
  stroke: var(--border);
  stroke-width: 1.5;
  filter: drop-shadow(0 18px 34px rgba(15, 23, 42, 0.1));
}

.ha-tile {
  fill: #f3f6fd;
}

.ha-tile-accent {
  fill: var(--accent-soft);
}

.ha-line {
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.ha-line-soft {
  stroke: #b9ccf2;
}

.ha-bar {
  fill: #cfdcf6;
}

.ha-bar-accent {
  fill: var(--accent);
}

.ha-dot {
  fill: var(--accent);
  opacity: 0.55;
}

.ha-dot-accent {
  fill: var(--accent);
}

.ha-play-bg {
  fill: var(--surface);
}

.ha-feed {
  fill: var(--surface);
}

.ha-feed-object {
  fill: #cfdcf6;
}

.ha-feed-ground {
  stroke: #b9ccf2;
  stroke-width: 2;
  stroke-linecap: round;
}

.ha-feed-corner {
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  opacity: 0.55;
}

.ha-live-badge {
  fill: var(--accent);
}

.ha-live-dot {
  fill: var(--surface);
  animation: ha-pulse 1.6s ease-in-out infinite;
}

.ha-live-text {
  fill: var(--surface);
  opacity: 0.85;
}

.ha-hub {
  fill: var(--accent);
  animation: ha-soft-pulse 2.2s ease-in-out infinite;
}

@keyframes ha-soft-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.55; }
}

.ha-map {
  fill: #dfe8fa;
  stroke: #b9ccf2;
  stroke-width: 1.5;
  stroke-linejoin: round;
}

.ha-cam {
  fill: var(--surface);
  stroke: #dbe4f4;
  stroke-width: 1.5;
}

/* Подсветка активного поста наблюдения по кругу — имитация переключения
   камер на дежурном мониторе. */
.ha-cam-hl {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  opacity: 0;
  animation: ha-cam-cycle 6.4s linear infinite;
}

.ha-c0 { animation-delay: 0s; }
.ha-c1 { animation-delay: 1.6s; }
.ha-c2 { animation-delay: 3.2s; }
.ha-c3 { animation-delay: 4.8s; }

@keyframes ha-cam-cycle {
  0%      { opacity: 0; }
  3%, 22% { opacity: 1; }
  25%     { opacity: 0; }
  100%    { opacity: 0; }
}

/* Опрос объектов/подсистем: индикаторы отзываются по очереди. */
.ha-blink {
  animation: ha-blink 2.6s ease-in-out infinite;
}

.ha-d0 { animation-delay: 0s; }
.ha-d1 { animation-delay: 0.45s; }
.ha-d2 { animation-delay: 0.9s; }
.ha-d3 { animation-delay: 1.35s; }
.ha-d4 { animation-delay: 1.8s; }

@keyframes ha-blink {
  0%, 100% { opacity: 1; }
  45%      { opacity: 0.25; }
}

/* Обмен данными по каналам связи. */
.ha-flow {
  stroke-dasharray: 5 7;
  animation: ha-flow 1.5s linear infinite;
}

@keyframes ha-flow {
  to { stroke-dashoffset: -12; }
}

/* Строка развёртки в кадре с камеры. */
.ha-scan {
  fill: var(--accent);
  opacity: 0.14;
  transform-box: view-box;
  transform-origin: 0 0;
  animation: ha-scan 3.4s linear infinite;
}

@keyframes ha-scan {
  0%   { transform: translateY(-10px); }
  100% { transform: translateY(68px); }
}

.ha-person-mini {
  fill: #cfdcf6;
}

/* Пропуск сотрудника: один крупный объект вместо мелкой сцены с турникетом —
   на такой панели фигура человека в полный рост нечитаема. */
.ha-badge {
  fill: var(--surface);
  stroke: #dbe4f4;
  stroke-width: 1.5;
}

.ha-badge-clip {
  fill: #c4d3ec;
}

.ha-badge-photo {
  fill: #9db5df;
}

.ha-badge-line {
  fill: #cfdcf6;
}

.ha-chip {
  fill: var(--accent-soft);
  stroke: var(--accent);
  stroke-width: 1.5;
  animation: ha-soft-pulse 1.8s ease-in-out infinite;
}

.ha-chip-lines {
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  opacity: 0.7;
}

.ha-grant {
  fill: var(--accent);
}

/* Отметка «доступ разрешён» прорисовывается на каждый проход. */
.ha-check {
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  stroke-dasharray: 24;
  animation: ha-draw 3.6s ease-in-out infinite;
}

.ha-check-on-accent {
  stroke: #fff;
}

@keyframes ha-draw {
  0%        { stroke-dashoffset: 24; opacity: 0; }
  12%       { opacity: 1; }
  35%, 85%  { stroke-dashoffset: 0; opacity: 1; }
  100%      { stroke-dashoffset: 0; opacity: 0; }
}

.ha-floor {
  fill: #dde5f3;
  opacity: 0.55;
}

.ha-desk {
  fill: #e3eaf6;
}

.ha-desk-edge {
  fill: #c9d5ea;
}

.ha-desk-leg {
  fill: #d2dcee;
}

.ha-monitor {
  fill: var(--surface);
  stroke: var(--border);
  stroke-width: 1.5;
}

.ha-monitor-neck {
  fill: #c9d5ea;
}

.ha-screen-row {
  fill: #d7e2f7;
}

.ha-screen-row-accent {
  fill: var(--accent);
  opacity: 0.65;
}

.ha-line-thin {
  stroke-width: 2;
  stroke: #9bb8ea;
}

.ha-chair {
  fill: #c3d2ea;
}

.ha-chair-base {
  fill: #b6c7e3;
}

.ha-person {
  fill: #a9bde1;
}

.ha-connector {
  stroke: #c3d0e8;
  stroke-width: 2;
  stroke-dasharray: 4 4;
  stroke-linecap: round;
}

.ha-node {
  fill: var(--surface);
  stroke: var(--accent);
  stroke-width: 2;
}

.ha-node-live {
  fill: var(--accent);
  animation: ha-pulse 2.4s ease-in-out infinite;
}

@keyframes ha-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* Движение на видеостене — декоративное. Если система просит уменьшить
   анимацию, полностью останавливаем его и оставляем статичную сцену. */
@media (prefers-reduced-motion: reduce) {
  .hero-art * {
    animation: none !important;
  }

  .ha-cam-hl.ha-c1 {
    opacity: 1;
  }

  .ha-check {
    stroke-dasharray: none;
  }
}

/* ---------- Sections ---------- */
.section {
  padding: 5.5rem 0;
}

/* Декоративные иконки аппаратуры на фоне секций — не несут информации
   (aria-hidden, pointer-events: none), задача чисто визуальная: разбить
   плоский однотонный фон и добавить сайту плотности без лишнего контента.
   Держим низкую непрозрачность и выносим к краям, чтобы не спорить с
   текстом и не превращаться в шум (ТЗ, п.11 — против визуальной перегрузки). */
.section-decorated {
  position: relative;
  overflow: hidden;
}

.decor-icons {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.decor-icon {
  position: absolute;
  color: var(--accent);
  opacity: 0.05;
}

.decor-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.decor-icon--lg { width: 260px; height: 260px; }
.decor-icon--md { width: 170px; height: 170px; }
.decor-icon--sm { width: 110px; height: 110px; }

.decor-icon--tr { top: 20px; right: 20px; transform: rotate(8deg); }
.decor-icon--bl { bottom: 20px; left: 20px; transform: rotate(-10deg); }
.decor-icon--br { bottom: 20px; right: 8%; transform: rotate(14deg); }
.decor-icon--tl { top: 20px; left: 6%; transform: rotate(-14deg); }
.decor-icon--mr { top: 50%; right: 20px; transform: translateY(-50%) rotate(-6deg); }

.cta-section .decor-icon {
  color: #fff;
  opacity: 0.08;
}

@media (max-width: 767.98px) {
  .decor-icon--lg { width: 170px; height: 170px; }
  .decor-icon--md { width: 120px; height: 120px; }
  .decor-icon--sm { display: none; }
}

.section-muted {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-eyebrow {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}

/* ---------- Icon chip ---------- */
.icon-chip {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
  flex-shrink: 0;
}

.icon-chip svg {
  width: 24px;
  height: 24px;
}

/* ---------- Stat / strength cards ---------- */
.stat-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.75rem;
  height: 100%;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.stat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.stat-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
}

.stat-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 0;
}

/* ---------- Solutions ---------- */
.solution-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  height: 100%;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.solution-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.solution-card .icon-chip {
  margin-bottom: 0;
}

.solution-card span {
  font-weight: 600;
  color: var(--ink);
  align-self: center;
}

/* ---------- Portfolio ---------- */
/* Кнопка-переключатель списка проектов выглядит как обычная ссылка. */
.btn-link-plain {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

/* По умолчанию показываем первые 3 карточки; с sm и выше — 6.
   Остальные раскрываются по кнопке «Все проекты». */
.project-col-desktop-only,
.project-col-extra {
  display: none;
}

@media (min-width: 768px) {
  .project-col-desktop-only {
    display: block;
  }
}

.projects-grid-expanded .project-col-desktop-only,
.projects-grid-expanded .project-col-extra {
  display: block;
}

.project-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: left;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  height: 100%;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.project-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

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

.project-card-image {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, #eef2fb, #dbe6fb);
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.project-card:hover .project-card-image img {
  transform: scale(1.045);
}

/* Съёмка на объектах разнородная по свету и цвету. Общий холодный подтон
   и лёгкое затемнение сверху приводят кадры к единому виду в сетке; при
   наведении фотография показывается как есть. */
.project-card-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.12) 0%, transparent 45%),
    rgba(37, 99, 235, 0.10);
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.project-card:hover .project-card-image::after {
  opacity: 0.25;
}

.project-card-count {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.62);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
}

.project-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.4rem 1.5rem;
}

.project-card-category {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.project-card-title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  margin-top: 0.3rem;
}

.project-card-work {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-top: 0.6rem;
}

.project-card-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}

.project-card-client {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
}

.project-card-year {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  flex-shrink: 0;
}

/* ---------- Просмотр фотографий ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 14, 26, 0.9);
}

.lightbox-inner {
  position: relative;
  width: min(1100px, 94vw);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
}

.lightbox-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  color: #fff;
  padding: 0 0 0.75rem;
}

.lightbox-title {
  font-weight: 700;
  font-size: 1rem;
}

.lightbox-counter {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  margin-right: auto;
}

.lightbox-figure {
  margin: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.lightbox-figure img {
  width: 100%;
  max-height: 74vh;
  object-fit: contain;
  border-radius: 12px;
  background: #0b1220;
}

.lightbox-caption {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  line-height: 1.5;
  padding-top: 0.75rem;
}

.lightbox-btn {
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.24);
}

.lightbox-close {
  width: 38px;
  height: 38px;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: -60px;
}

.lightbox-next {
  right: -60px;
}

@media (max-width: 1220px) {
  .lightbox-prev {
    left: 0.5rem;
  }

  .lightbox-next {
    right: 0.5rem;
  }
}

.lightbox-single .lightbox-prev,
.lightbox-single .lightbox-next {
  display: none;
}

body.lightbox-open {
  overflow: hidden;
}

/* ---------- Partners ---------- */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.85rem;
}

.partner-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.partner-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--accent);
}

.partner-name {
  color: var(--ink);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.partner-card:hover .partner-name {
  color: var(--accent);
}

.partner-scope {
  color: var(--text-muted);
  font-size: 0.83rem;
  line-height: 1.4;
}

/* Логотип вендора вместо текстового названия — высота фиксирована, ширина
   свободная, чтобы разные пропорции логотипов (широкий Avaya, квадратный
   Mitel) не искажались и не создавали разнобой по высоте строки. */
.partner-logo-img {
  height: 26px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  align-self: flex-start;
  margin-bottom: 0.15rem;
}

/* Некоторые файлы поставляются как белый вариант для тёмного фона —
   на белой карточке инвертируем, а не просим у заказчика другой файл. */
.partner-logo-invert {
  filter: invert(1);
}

/* ---------- Направления деятельности ---------- */
.direction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.85rem;
}

.direction-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.direction-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.direction-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.direction-icon svg {
  width: 21px;
  height: 21px;
}

.direction-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.4;
}

/* ---------- Логотип ---------- */
.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.logo-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}

.logo-frame {
  fill: var(--ink);
}

.logo-tile {
  fill: rgba(255, 255, 255, 0.32);
}

.logo-tile-accent {
  fill: var(--accent);
}

.logo-text {
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.site-footer .logo-frame {
  fill: rgba(255, 255, 255, 0.14);
}

.site-footer .logo-tile {
  fill: rgba(255, 255, 255, 0.45);
}

.footer-status {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.18);
  border: 1px solid rgba(37, 99, 235, 0.4);
  color: #cddcfb;
  font-size: 0.82rem;
  font-weight: 600;
}

/* ---------- CTA ---------- */
.cta-section {
  background: linear-gradient(135deg, #1d4ed8, #2563eb 55%, #3b82f6);
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(500px 300px at 90% 10%, rgba(255, 255, 255, 0.12), transparent 70%);
}

.cta-section .section-title,
.cta-section .section-eyebrow {
  color: #fff;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.85);
}

.cta-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 1;
}

.cta-form .form-control {
  background: #fbfcfe;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 0.75rem 1rem;
  border-radius: 10px;
}

.cta-form .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: #fff;
  color: var(--text);
}

.cta-form .form-control::placeholder {
  color: #9aa3b2;
}

.cta-form .btn-accent {
  border-radius: 10px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
}

.footer-brand {
  font-weight: 800;
  font-size: 1.15rem;
  color: #fff;
}

.footer-title {
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 0.85rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.7);
}

.site-footer a:hover {
  color: #fff;
}

.site-footer hr {
  border-color: rgba(255, 255, 255, 0.12);
}

.site-footer .text-muted {
  color: rgba(255, 255, 255, 0.55) !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  .container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .hero {
    padding: 3.5rem 0 2.5rem;
  }

  .eyebrow {
    font-size: 0.72rem;
  }

  .hero-title {
    font-size: 2.1rem;
    line-height: 1.22;
  }

  .hero-art {
    max-width: 440px;
    margin: 0 auto;
  }

  .hero-subtitle {
    font-size: 1rem;
    line-height: 1.6;
  }

  .section {
    padding: 3.25rem 0;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .row.g-4 > [class*="col-"],
  .row.g-3 > [class*="col-"] {
    margin-bottom: 0.5rem;
  }

  .solution-card {
    padding: 1.1rem;
  }

  .solution-card span {
    font-size: 0.9rem;
  }

  .icon-chip {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }

  .icon-chip svg {
    width: 20px;
    height: 20px;
  }

  .partner-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .logo-mark {
    width: 28px;
    height: 28px;
  }

  .logo-text {
    font-size: 1.05rem;
  }

  .direction-grid {
    grid-template-columns: 1fr;
  }

  .cta-card {
    padding: 1.5rem;
  }
}
