/* ═══════════════════════════════════════════════════════════
   ООО «Арсенал» — Premium Industrial Design System
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Тёплый синий — фирменный цвет */
  --primary: #0c2d5e;
  --primary-deep: #081f42;
  --primary-mid: #1a4a8a;
  --primary-light: #2b6cb8;
  --primary-bright: #3b82f6;
  --primary-sky: #93c5fd;
  --primary-soft: #e8f0fe;
  --primary-rgb: 12, 45, 94;

  /* Медный — тепло, кнопки, акценты */
  --accent: #d4762a;
  --accent-light: #e8954a;
  --accent-glow: rgba(212, 118, 42, 0.32);

  --steel: #4a6fa5;

  /* Нейтрали с лёгким синим подтоном */
  --bg: #eef2f8;
  --bg-warm: #f4f7fc;
  --bg-white: #ffffff;
  --text: #0f1d32;
  --text-muted: #556b85;
  --border: #d4dde9;
  --border-light: rgba(255, 255, 255, 0.14);

  --shadow-sm: 0 2px 8px rgba(var(--primary-rgb), 0.07);
  --shadow: 0 8px 32px rgba(var(--primary-rgb), 0.11);
  --shadow-lg: 0 20px 60px rgba(var(--primary-rgb), 0.17);
  --shadow-accent: 0 8px 28px var(--accent-glow);

  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 76px;
  --max-w: 1240px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: 'Outfit', system-ui, sans-serif;
  --font-body: 'Source Sans 3', system-ui, sans-serif;

  /* Градиенты бренда */
  --gradient-brand: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 55%, var(--primary-bright) 100%);
  --gradient-brand-soft: linear-gradient(160deg, var(--primary) 0%, var(--primary-mid) 100%);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

.site-main {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; height: auto; display: block; }

a {
  color: var(--primary-light);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover { color: var(--accent); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}

/* ─── Scroll reveal ─── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@media (scripting: none) {
  .reveal { opacity: 1; transform: none; }
}

/* ─── Header ─── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid transparent;
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.header--scrolled {
  background: rgba(255, 255, 255, 0.95);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  color: inherit;
}

.logo__brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo__shield {
  width: 46px;
  height: 46px;
  background: linear-gradient(145deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.25);
  position: relative;
  overflow: hidden;
}

.logo__shield::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
}

.logo__shield-num {
  position: relative;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: #fff;
  letter-spacing: -0.03em;
}

.logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.logo__title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}

.logo__title strong { font-weight: 800; }

.logo__subtitle {
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 3px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 100%;
}

.nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--text);
  border-radius: var(--radius-sm);
  line-height: 1.2;
  white-space: nowrap;
  transition: background var(--transition), color var(--transition);
  position: relative;
}

.nav__link:hover,
.nav__link.active {
  color: var(--primary);
  background: rgba(var(--primary-rgb), 0.05);
}

.nav__link.active { font-weight: 600; }

.nav__link.active::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.nav__dropdown {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

/* Зона между пунктом и списком — hover не пропадает при переходе курсора */
.nav__dropdown::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 12px;
}

.nav__link--dropdown { gap: 6px; }

.nav__caret {
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.4;
  flex-shrink: 0;
  transition: transform var(--transition);
}

.nav__dropdown:hover .nav__caret { transform: rotate(180deg); }

.nav__dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 280px;
  background: var(--bg-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  padding: 8px;
  z-index: 100;
  animation: dropdownIn 0.2s ease;
}

@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav__dropdown:hover .nav__dropdown-menu,
.nav__dropdown:focus-within .nav__dropdown-menu { display: block; }

.nav__dropdown-menu a {
  display: block;
  padding: 11px 16px;
  color: var(--text);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
}

.nav__dropdown-menu a:hover {
  background: var(--bg);
  color: var(--primary);
}

.nav__dropdown-menu a:last-child {
  margin-top: 4px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
  color: var(--accent);
  font-weight: 600;
}

.header__contacts {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.header__phone {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
  font-size: 0.92rem;
  white-space: nowrap;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 100%);
  color: #fff;
  box-shadow: var(--shadow-accent);
}

.btn--primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px var(--accent-glow);
}

.btn--outline {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(4px);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.8);
  transform: translateY(-2px);
}

.btn--secondary {
  background: var(--primary);
  color: #fff;
}

.btn--secondary:hover {
  background: var(--primary-light);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn--ghost {
  background: transparent;
  color: var(--primary);
  border: 1.5px solid var(--border);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.section-cta { text-align: center; margin-top: 48px; }

/* ─── Burger ─── */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
  transform-origin: center;
}

.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ─── Hero ─── */
.hero {
  margin-top: var(--header-h);
  background: var(--primary);
  color: #fff;
  padding: clamp(64px, 10vw, 110px) 0 clamp(80px, 12vw, 130px);
  position: relative;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 72% 58% at 72% 38%, rgba(59, 130, 246, 0.38) 0%, transparent 68%),
    radial-gradient(ellipse 48% 75% at 8% 85%, rgba(26, 74, 138, 0.5) 0%, transparent 58%),
    var(--gradient-brand);
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero__glow {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 118, 42, 0.14) 0%, transparent 70%);
  top: 50%;
  right: 10%;
  transform: translateY(-50%);
  filter: blur(40px);
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 16px;
  border-radius: 100px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 500;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  letter-spacing: 0.02em;
}

.hero__badge::before {
  content: '';
  width: 7px;
  height: 7px;
  background: var(--accent-light);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-light);
  animation: pulse 2s ease infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.03em;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent-light);
  background: linear-gradient(135deg, #ffd4a8 10%, var(--accent-light) 55%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@supports not (background-clip: text) {
  .hero h1 em {
    -webkit-text-fill-color: currentColor;
    color: var(--accent-light);
  }
}

.hero__desc {
  font-size: clamp(1rem, 2vw, 1.15rem);
  opacity: 0.82;
  margin-bottom: 36px;
  max-width: 520px;
  line-height: 1.7;
}

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

.hero__visual {
  width: 100%;
  max-width: 460px;
  justify-self: end;
  position: relative;
}

.hero__visual.reveal {
  transform: translate3d(0, 24px, 0);
}

.hero__visual.reveal.visible {
  transform: translate3d(0, 0, 0);
}

.hero__image-card {
  position: relative;
  background: linear-gradient(145deg, rgba(255,255,255,0.14), rgba(255,255,255,0.06));
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.3);
  isolation: isolate;
}

.hero__image-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,255,255,0.3), rgba(255,255,255,0.05));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero__image-card img {
  display: block;
  width: 100%;
  max-width: 400px;
  height: auto;
  max-height: none;
  object-fit: contain;
  object-position: center;
  margin: 0 auto;
  filter: none;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  image-rendering: auto;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.hero__image-card:hover img { transform: scale(1.03) translateY(-4px); }

.hero__image-label {
  position: absolute;
  bottom: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-white);
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 20px;
  border-radius: 100px;
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
}

/* ─── Stats ─── */
.stats {
  margin-top: -56px;
  position: relative;
  z-index: 2;
  padding-bottom: 72px;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.stat-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  opacity: 0;
  transition: opacity var(--transition);
}

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

.stat-card:hover::before { opacity: 1; }

.stat-card__num {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.stat-card__label {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.4;
}

/* ─── Sections ─── */
.section { padding: clamp(64px, 10vw, 100px) 0; }
.section--compact { padding: 48px 0; }
.section--fill { flex: 1; }
.section--gray { background: var(--bg-white); }
.section--warm { background: var(--bg-warm); }
.section--tint { background: var(--primary-soft); }

.section__header {
  text-align: center;
  margin-bottom: 56px;
}

.section__label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 14px;
}

.section__label::before,
.section__label::after {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section__desc {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ─── Product cards ─── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(212, 118, 42, 0.28);
}

.product-card__img {
  height: 210px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-warm) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: hidden;
  position: relative;
}

.product-card__img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(var(--primary-rgb), 0.04) 100%);
}

.product-card__img img {
  max-height: 170px;
  object-fit: contain;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.product-card:hover .product-card__img img { transform: scale(1.06); }

.product-card__body {
  padding: 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card__tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  align-self: flex-start;
}

.product-card__tag--new { background: #e8f5e9; color: #2e7d32; }
.product-card__tag--legacy { background: #fce8e8; color: #c62828; }

.product-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.product-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  flex: 1;
  margin-bottom: 18px;
  line-height: 1.6;
}

.product-card__link {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.product-card__link::after {
  content: '\2192';
  transition: transform var(--transition);
}

.product-card:hover .product-card__link::after { transform: translateX(5px); }

/* ─── Advantages ─── */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.advantage-card {
  padding: 36px 30px;
  background: var(--bg-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
}

.advantage-card:hover {
  border-color: rgba(212, 118, 42, 0.3);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.advantage-card__icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(var(--primary-rgb), 0.18);
}

.advantage-card__icon svg {
  width: 26px;
  height: 26px;
  display: block;
}

.advantage-card h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.advantage-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ─── About ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  max-width: 800px;
}

.about__text p {
  margin-bottom: 18px;
  color: var(--text-muted);
  font-size: 1.02rem;
}

.about__text p strong { color: var(--text); font-weight: 600; }

.certificates-section {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.certificates-section__label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.certificates {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 16px;
}

.certificate-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-white);
  overflow: hidden;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

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

.certificate-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top center;
  display: block;
  background: var(--bg);
}

.certificate-card span {
  padding: 10px 12px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  text-align: center;
}

/* ─── Clients marquee ─── */
.clients-section { overflow: hidden; }

.clients-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.clients-marquee__track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: marquee 35s linear infinite;
}

.clients-marquee__track:hover { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.clients-marquee__item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  height: 72px;
  padding: 12px 20px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.clients-marquee__item img {
  max-height: 44px;
  max-width: 120px;
  object-fit: contain;
  filter: grayscale(40%) opacity(0.75);
  transition: all var(--transition);
}

.clients-marquee__item:hover img {
  filter: none;
  opacity: 1;
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 24px;
  align-items: center;
}

.clients-grid img {
  max-height: 60px;
  object-fit: contain;
  filter: grayscale(30%);
  opacity: 0.8;
  transition: all var(--transition);
  margin: 0 auto;
}

.clients-grid img:hover {
  filter: none;
  opacity: 1;
}

/* ─── News ─── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.news-card {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.news-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent), var(--accent-light));
  opacity: 0;
  transition: opacity var(--transition);
}

.news-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.news-card:hover::before { opacity: 1; }

.news-card__date {
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.news-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.news-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.news-card a { font-weight: 600; font-size: 0.9rem; }

/* ─── CTA ─── */
.cta {
  background: var(--primary);
  color: #fff;
  padding: clamp(64px, 8vw, 88px) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 120%, rgba(212, 118, 42, 0.22) 0%, transparent 60%),
    radial-gradient(ellipse 40% 60% at 80% 20%, rgba(26, 74, 138, 0.45) 0%, transparent 60%);
}

.cta .container { position: relative; }

.cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.cta p {
  opacity: 0.85;
  margin-bottom: 32px;
  font-size: 1.08rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.cta__contacts {
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.cta__contacts a {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  opacity: 0.9;
  transition: opacity var(--transition);
}

.cta__contacts a:hover {
  color: #fff;
  opacity: 1;
}

/* ─── Footer ─── */
.footer {
  background: linear-gradient(180deg, var(--primary-mid) 0%, var(--primary-deep) 100%);
  color: rgba(255, 255, 255, 0.65);
  padding: 64px 0 28px;
  flex-shrink: 0;
  margin-top: auto;
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light), var(--steel));
}

.footer--compact { padding: 28px 0; }

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer h4 {
  font-family: var(--font-display);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

.footer p, .footer a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.9;
}

.footer a:hover { color: var(--accent-light); }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* ─── Page hero ─── */
.page-hero {
  margin-top: var(--header-h);
  background: var(--primary);
  color: #fff;
  padding: clamp(48px, 8vw, 72px) 0;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 100% at 100% 0%, rgba(212, 118, 42, 0.14) 0%, transparent 60%),
    var(--gradient-brand-soft);
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 40px 40px;
}

.page-hero .container { position: relative; }

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.page-hero p {
  opacity: 0.8;
  margin-top: 12px;
  font-size: 1.05rem;
  max-width: 560px;
}

/* ─── Contacts ─── */
.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-info__item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-info__icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-warm) 100%);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-info h3 {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contact-info p, .contact-info a {
  font-weight: 600;
  color: var(--text);
}

.contact-form {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 36px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.form-group { margin-bottom: 22px; }

.form-group label {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  margin-bottom: 8px;
  color: var(--text);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-light);
  background: var(--bg-white);
  box-shadow: 0 0 0 4px rgba(43, 108, 184, 0.12);
}

.form-group textarea { resize: vertical; min-height: 130px; }

.map-container {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-top: 40px;
  min-height: 400px;
  box-shadow: var(--shadow-sm);
}

/* ─── Price page ─── */
.price-download {
  background: linear-gradient(135deg, var(--bg-white) 0%, var(--bg-warm) 100%);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  border: 2px dashed var(--border);
  margin-bottom: 48px;
  position: relative;
  overflow: hidden;
}

.price-download::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px;
  height: 160px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  border-radius: 50%;
}

.price-download h2 {
  font-family: var(--font-display);
  color: var(--primary);
  margin-bottom: 12px;
  font-weight: 800;
}

.docs-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.doc-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 22px;
  background: var(--bg-white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: all var(--transition);
  color: var(--text);
}

.doc-link:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  color: var(--primary);
  transform: translateY(-2px);
}

.doc-link__icon {
  font-size: 1.6rem;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  border-radius: 10px;
}

/* ─── Product detail ─── */
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.product-detail__gallery {
  background: var(--bg-white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.product-detail__gallery img {
  margin: 0 auto;
  max-height: 420px;
  object-fit: contain;
}

.product-detail__info h1 {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
  letter-spacing: -0.03em;
}

.product-detail__info p {
  color: var(--text-muted);
  margin-bottom: 16px;
}

.feature-list {
  list-style: none;
  margin: 24px 0;
}

.feature-list li {
  padding: 12px 0 12px 32px;
  position: relative;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.feature-list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 1rem;
}

.alert {
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  margin-bottom: 28px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.alert--warning {
  background: #fff8e6;
  border: 1px solid #f5d76e;
  color: #7d5a00;
}

.alert--info {
  background: var(--primary-soft);
  border: 1px solid #a8c4f0;
  color: var(--primary-mid);
}

/* ─── Product page extras ─── */
.product-intro h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.product-intro p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 900px;
}

.product-feature {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
  margin-bottom: 16px;
}

.product-feature__visual img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  width: 100%;
}

.product-feature__docs-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary);
  margin: 8px 0 14px;
}

.docs-list--compact {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.product-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
}

.product-photos__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform var(--transition), color var(--transition);
}

.product-photos__item:hover {
  color: var(--accent);
  transform: translateY(-3px);
}

.product-photos__item img {
  width: 100%;
  max-height: 140px;
  object-fit: contain;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.marketplace-list {
  list-style: none;
  margin-top: 12px;
}

.marketplace-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.marketplace-list li:last-child { border-bottom: none; }

.marketplace-list a {
  font-weight: 600;
}

.market-widget {
  margin-top: 40px;
  min-height: 120px;
  border-radius: var(--radius);
  overflow: hidden;
}

/* ─── Cookie banner ─── */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border);
  padding: 18px 24px;
  z-index: 9999;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-banner.visible { transform: translateY(0); }

.cookie-banner__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.cookie-banner p {
  font-size: 0.9rem;
  color: var(--text-muted);
  flex: 1;
}

/* ─── Mobile nav ─── */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0; right: 0; bottom: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  padding: 24px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav.open { transform: translateX(0); }

.mobile-nav a {
  display: block;
  padding: 16px 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.mobile-nav__sub a {
  padding-left: 24px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* ─── Responsive ─── */
/* ─── Firmware versions (BUK-MP-11) ─── */
.firmware-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.firmware-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.firmware-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 14px;
}

.firmware-legend {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.firmware-legend p { margin-bottom: 10px; }

.firmware-legend code {
  font-weight: 700;
  color: var(--primary);
  background: var(--bg);
  padding: 2px 8px;
  border-radius: 4px;
}

.firmware-tools {
  list-style: none;
}

.firmware-tools li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

.firmware-tools li:last-child { border-bottom: none; }

.firmware-tools a { font-weight: 600; }

.firmware-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.firmware-table-wrap {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.firmware-table__caption {
  padding: 18px 24px;
  margin: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.94rem;
}

.firmware-table-scroll { overflow-x: auto; }

.firmware-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.firmware-table thead th {
  background: var(--primary);
  color: #fff;
  padding: 13px 16px;
  text-align: left;
  font-weight: 600;
}

.firmware-table thead th:nth-child(3),
.firmware-table thead th:nth-child(4) {
  text-align: center;
  width: 88px;
}

.firmware-table td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.firmware-table tbody tr:last-child td { border-bottom: none; }

.firmware-table tbody tr:hover td { background: rgba(12, 45, 94, 0.03); }

.firmware-table__ver {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
  white-space: nowrap;
}

.firmware-table__desc { color: var(--text); }

.firmware-table__group td {
  background: linear-gradient(90deg, rgba(12, 45, 94, 0.09), transparent);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.78rem;
  padding: 9px 16px;
}

.firmware-table td:nth-child(3),
.firmware-table td:nth-child(4) { text-align: center; }

.firmware-dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 30px;
  padding: 0 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent);
  transition: all var(--transition);
}

.firmware-dl:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.firmware-table__na {
  color: var(--text-muted);
  opacity: 0.4;
  user-select: none;
}

.product-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
}

.product-specs li {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  text-align: center;
}

.product-specs strong {
  display: block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.product-specs span {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--primary);
  line-height: 1.35;
}

.product-device-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.product-device-photos a {
  display: block;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
  transition: box-shadow var(--transition), transform var(--transition);
}

.product-device-photos a:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.product-device-photos img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  padding: 12px;
}

.product-device-photos__label {
  display: block;
  padding: 10px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--bg-white);
}

.product-application {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 16px 0 0;
}

.capabilities-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 36px;
  box-shadow: var(--shadow-sm);
}

.capabilities-list {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 1;
}

.capabilities-list > li {
  position: relative;
  padding: 10px 0 10px 22px;
  border-bottom: 1px solid var(--border);
  font-size: 0.94rem;
  line-height: 1.55;
  break-inside: avoid;
}

.capabilities-list > li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.capabilities-list > li:last-child { border-bottom: none; }

.capabilities-list ul {
  list-style: none;
  margin: 8px 0 0;
  padding: 0 0 0 4px;
}

.capabilities-list ul li {
  position: relative;
  padding: 5px 0 5px 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.capabilities-list ul li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.capabilities-footer {
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .capabilities-list { columns: 2; column-gap: 40px; }
}

@media (max-width: 640px) {
  .product-specs { grid-template-columns: 1fr; }
  .product-device-photos { grid-template-columns: 1fr; }
  .capabilities-card { padding: 24px 20px; }
}

/* ─── BUK UI gallery ─── */
.ui-gallery {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.ui-gallery__item {
  display: flex;
  flex-direction: column;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.ui-gallery__item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.ui-gallery__item img {
  width: 100%;
  aspect-ratio: 200 / 121;
  object-fit: cover;
  object-position: top center;
  background: #0f172a;
}

.ui-gallery__item span {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  color: var(--text-muted);
  line-height: 1.35;
  border-top: 1px solid var(--border);
}

.ui-graph {
  display: flex;
  gap: 28px;
  align-items: center;
  margin-top: 32px;
  padding: 28px 32px;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.ui-graph__img {
  flex-shrink: 0;
}

.ui-graph__img img {
  display: block;
  width: 240px;
  max-width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.ui-graph__text {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
}

@media (max-width: 1100px) {
  .ui-gallery { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .ui-gallery { grid-template-columns: repeat(2, 1fr); }
  .ui-graph { flex-direction: column; text-align: center; padding: 24px 20px; }
}

@media (max-width: 480px) {
  .ui-gallery { grid-template-columns: 1fr; }
}

@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__desc { margin-left: auto; margin-right: auto; }
  .hero__actions { justify-content: center; }
  .hero__visual { max-width: 420px; justify-self: center; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .product-detail { grid-template-columns: 1fr; }
  .product-feature { grid-template-columns: 1fr; }
  .contacts-grid { grid-template-columns: 1fr; }
  .firmware-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav, .header__contacts .btn { display: none; }
  .burger { display: flex; }
  .mobile-nav { display: block; }
  .header__phone { font-size: 0.82rem; }
  .stats__grid { grid-template-columns: 1fr 1fr; }
  .certificates { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .nav__link.active::after { display: none; }
}

@media (max-width: 480px) {
  .stats__grid { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .certificates { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .clients-marquee__track { animation: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
