/* ═══════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Comic Sans MS", "Trebuchet MS", sans-serif;
  background: #fff;
  color: #1f1f1f;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ═══════════════════════════════════════
   HEADER
═══════════════════════════════════════ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  background: transparent;
  transition: padding 0.3s ease;
}

.site-header.scrolled {
  padding: 10px 0;
}

.header-menu {
  background: #f7f7f7;
  background: linear-gradient(
    90deg,
    rgba(247, 247, 247, 1) 0%,
    rgba(144, 175, 252, 1) 40%,
    rgba(118, 166, 232, 1) 86%,
    rgba(41, 112, 204, 1) 100%
  );
  border-radius: 24px;
  padding: 14px 26px;
  box-shadow: 0 4px 32px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.3s ease;
}

.site-header.scrolled .header-menu {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.12);
}

/* ── Верхняя строка ── */
.header-top {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ── Логотип ── */
.logo {
  flex-shrink: 0;
  display: block;
}

.logo-img {
  height: 100px;
  width: auto;
  display: block;
}

/* ── Центральный блок (десктоп) ── */
.header-middle {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.contacts {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.contact-block {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 15px;
  line-height: 1.3;
  white-space: nowrap;
  color: #1f1f1f;
}

.contact-block strong {
  font-weight: 700;
}

/* ── Правый блок (кнопка + бургер) — прижат вправо ── */
.header-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

/* ═══════════════════════════════════════
   КНОПКИ МЕНЮ (общие)
═══════════════════════════════════════ */
.menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border: 2px solid #222;
  border-radius: 12px;
  background: #fff;
  color: #222;
  font-size: 15px;
  font-family: inherit;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.menu-btn:hover {
  background: #222;
  color: #fff;
}

.callback-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 2px solid #222;
  border-radius: 14px;
  background: #fff;
  color: #222;
  font-size: 15px;
  font-family: inherit;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
}

.callback-btn:hover {
  background: #222;
  color: #fff;
}

/* ═══════════════════════════════════════
   БУРГЕР-КНОПКА
   По умолчанию скрыта. Показывается в @media ≤768.
═══════════════════════════════════════ */
.mobile-toggle {
  display: none;          /* скрыт на десктопе */
  width: 44px;
  height: 44px;
  border: 2px solid #222;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
  position: relative;
  z-index: 10;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s;
}

.mobile-toggle:hover {
  background: #f0f0f0;
}

/* Линии бургера — pointer-events:none чтобы клик шёл на button */
.burger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: #222;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
  transform-origin: center;
  pointer-events: none;
}

/* Анимация бургер → крестик */
.header-menu.menu-open .mobile-toggle .burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.header-menu.menu-open .mobile-toggle .burger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.header-menu.menu-open .mobile-toggle .burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ═══════════════════════════════════════
   МОБИЛЬНАЯ ПАНЕЛЬ
   Высота управляется через JS (scrollHeight).
   CSS задаёт только transition и overflow.
═══════════════════════════════════════ */
.mobile-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.mobile-panel-inner {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
  padding: 16px 0 4px;
  margin-top: 12px;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e0e0e0;
}

.mobile-sub {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e0e0e0;
}

.mobile-panel .menu-btn {
  width: 100%;
}

.mobile-panel .callback-btn {
  margin-top: 16px;
  width: 100%;
}

/* ═══════════════════════════════════════
   МОБИЛЬНЫЕ УСЛУГИ (аккордеон)
   Высота тоже через JS.
═══════════════════════════════════════ */
.mobile-services-wrapper {
  display: flex;
  flex-direction: column;
}

.mobile-services-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
}

.mobile-services-toggle .arrow {
  font-size: 9px;
  transition: transform 0.25s ease;
  pointer-events: none;
}

.mobile-services-toggle.is-open .arrow {
  transform: rotate(180deg);
}

.mobile-services-list {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 12px;
}

.mobile-services-list .menu-btn {
  justify-content: flex-start;
  font-size: 14px;
  min-height: 40px;
}

/* ═══════════════════════════════════════
   DROPDOWN — УСЛУГИ (десктоп, ховер)
═══════════════════════════════════════ */
.dropdown {
  position: relative;
}

.dropdown-toggle::after {
  content: "▼";
  font-size: 9px;
  margin-left: 6px;
  display: inline-block;
  transition: transform 0.2s;
}

.dropdown:hover .dropdown-toggle::after {
  transform: rotate(180deg);
}

.dropdown-list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 340px;
  background: #fff;
  border: 2px solid #222;
  border-radius: 16px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 200;
}

.dropdown:hover .dropdown-list {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 15px;
  color: #1f1f1f;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.dropdown-item:hover {
  background: #222;
  color: #fff;
}

/* ═══════════════════════════════════════
   SUB-MENU — второй ряд (десктоп)
═══════════════════════════════════════ */
.sub-menu {
  margin-top: 12px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.catalog-section {
  padding: 100px 0 110px;
  background: #eef4ff;
  scroll-margin-top: 140px;
}

.section-anchor {
  position: relative;
  top: -140px;
  display: block;
  visibility: hidden;
}

.filter-btn[disabled],
.filter-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.section-header {
  text-align: center;
  margin-bottom: 46px;
}

.section-header h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 14px;
}

.info-section {
  background: #ffffff;
  border-radius: 30px;
  box-shadow: 0 24px 60px rgba(18, 44, 77, 0.08);
  padding: 56px 40px;
  margin: 56px auto 80px;
}

.info-section .section-header {
  text-align: left;
  margin-bottom: 32px;
}

.info-section .section-header h2,
.info-section h3 {
  color: #1b2a5c;
}

.info-section h3 {
  margin: 40px 0 18px;
}

.info-section h2 {
  margin-bottom: 22px;
}

.info-section p,
.info-section li {
  color: #475569;
  line-height: 1.8;
  font-size: 16px;
}

.info-section h3 + p {
  margin-bottom: 26px;
}

.info-section ul {
  margin: 40px 0 24px;
  padding-left: 20px;
}

.info-section li {
  margin-bottom: 12px;
}

.section-meta {
  margin-top: 12px;
  color: #475569;
  font-size: 15px;
  font-weight: 600;
}

.section-subtitle {
  max-width: 720px;
  margin: 0 auto;
  color: #4f5561;
  font-size: 16px;
  line-height: 1.8;
}

.catalog-layout {
  width: 100%;
}

.catalog-filter {
  position: sticky;
  top: 120px;
  align-self: start;
}

.catalog-products {
  width: 100%;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
  background: #ffffff;
  border: 1px solid #e5eaf4;
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(19, 51, 95, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 32px 80px rgba(19, 51, 95, 0.12);
}

.product-media {
  width: 100%;
  height: 220px;
  border-radius: 22px;
  background: radial-gradient(circle at 35% 30%, rgba(94, 123, 255, 0.18), transparent 34%),
    linear-gradient(135deg, #dbe4ff 0%, #f7f8fc 100%);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.product-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 45% 40%, rgba(255, 255, 255, 0.7), transparent 18%);
}

.product-media::before {
  content: "Газгольдер";
  position: relative;
  font-size: 13px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: #334155;
}

.product-card__body h3 {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 16px;
}

.product-specs {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.product-spec {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #475569;
  font-size: 15px;
}

.product-spec span {
  color: #64748b;
}

.product-price {
  font-size: 20px;
  font-weight: 700;
  color: #111827;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
}

.product-actions .btn {
  min-width: 140px;
}

.product-actions .btn--primary {
  background: #5FA8F0;
  color: #ffffff;
  border-color: #5FA8F0;
  animation: gradientShift 3s ease-in-out infinite;
}

.product-actions .btn--primary:hover {
  background: #4A95E0;
  border-color: #4A95E0;
}

.product-actions .btn--secondary {
  background: transparent;
  color: #111827;
  border-color: #cbd5e1;
}

.product-actions .btn--secondary:hover {
  background: #f8fafc;
}

@media (max-width: 1060px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .catalog-filter {
    position: static;
  }

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

@media (max-width: 768px) {
  .catalog-section {
    padding: 70px 0 60px;
  }

  .section-header h2 {
    font-size: 36px;
  }

  .filter-card {
    padding: 22px;
  }

  .filter-inputs {
    grid-template-columns: 1fr;
  }

  .filter-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .product-media {
    height: 180px;
  }
}

.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url("images/hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  z-index: 1;
}

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 160px 0 80px;
}

.hero__inner .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__label {
  display: inline-block;
  padding: 6px 16px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 100px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.hero__title {
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 700;
  line-height: 1.15;
  color: #ffffff;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  max-width: 800px;
}

.hero__title span {
  position: relative;
  display: inline-block;
}

.hero__title span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 3px;
  background: #fff;
  border-radius: 2px;
  opacity: 0.6;
}

.hero__subtitle {
  font-size: clamp(16px, 1.8vw, 30px);
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
  max-width: 580px;
  margin-bottom: 40px;
}

.hero__features {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: 14px;
  padding: 12px 18px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.2s, border-color 0.2s;
}

.feature:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.45);
}

.feature__icon {
  font-size: 24px;
  line-height: 1;
  flex-shrink: 0;
}

.feature__text {
  font-size: 15px;
  color: #ffffff;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

.hero__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Переход между info-section и service-section убран, margin-top уменьшен */
/* Секция услуг — фон #eef4ff, как просили */
.service-section {
  background: #eef4ff;
  padding: 70px 0 60px;
}

.service-section__inner {
  text-align: center;
  background: transparent;
  padding: 0 26px;
}

.service-section__inner h2 {
  font-size: clamp(36px, 4vw, 50px);
  margin-bottom: 16px;
  color: #1b2a5c;
}

.service-section__inner p {
  color: #475569;
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.service-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn--service {
  min-height: 66px;
  padding: 0 36px;
  font-size: 16px;
  background: #5FA8F0;
  color: #ffffff;
  border: 2px solid transparent;
  box-shadow: 0 18px 32px rgba(95, 168, 240, 0.25);
}

.btn--service:hover {
  background: #4c95d5;
  transform: translateY(-2px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-family: inherit;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s,
    transform 0.15s, box-shadow 0.2s;
  white-space: nowrap;
  text-decoration: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn--primary {
  min-height: 60px;
  padding: 0 36px;
  font-size: 17px;
  background: #ffffff;
  color: #1f1f1f;
  border: 2px solid #ffffff;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.btn--primary:hover {
  background: #1f1f1f;
  color: #ffffff;
  border-color: #1f1f1f;
  box-shadow: 0 6px 32px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.btn--secondary {
  min-height: 54px;
  padding: 0 28px;
  font-size: 15px;
  background: transparent;
  color: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.btn--secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* ── Скролл-индикатор ── */
.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  z-index: 2;
  animation: bounce 2s infinite;
}

.hero__scroll-arrow {
  width: 20px;
  height: 20px;
  border-right: 2px solid rgba(255, 255, 255, 0.5);
  border-bottom: 2px solid rgba(255, 255, 255, 0.5);
  transform: rotate(45deg);
}

@keyframes gradientShift {
  0% {
    background: #5FA8F0;
    box-shadow: 0 0 0 0 rgba(95, 168, 240, 0.7);
  }
  50% {
    background: linear-gradient(135deg, #5FA8F0 0%, #7FBEF8 100%);
    box-shadow: 0 0 20px rgba(95, 168, 240, 0.5);
  }
  100% {
    background: #5FA8F0;
    box-shadow: 0 0 0 0 rgba(95, 168, 240, 0);
  }
}

@keyframes bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(6px);
  }
}

/* ═══════════════════════════════════════
   ПЛАНШЕТ  ≤ 1024
═══════════════════════════════════════ */
/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.site-footer {
  position: relative;
  padding: 56px 0 28px;
  background: linear-gradient(135deg, #173a63 0%, #1f5ea8 48%, #69b4f7 100%);
  color: #ffffff;
  overflow: hidden;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.18), transparent 28%),
    radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.12), transparent 22%);
  pointer-events: none;
}

.site-footer .container {
  position: relative;
  z-index: 1;
}

.footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  margin-bottom: 36px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  padding: 0 14px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-cta__content h2 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
  margin-bottom: 12px;
}

.footer-cta__content p {
  max-width: 700px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.footer-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}

.footer-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  border-radius: 14px;
  border: 2px solid transparent;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.footer-cta__button:hover {
  transform: translateY(-2px);
}

.footer-cta__button--light {
  background: #ffffff;
  color: #173a63;
  border-color: #ffffff;
}

.footer-cta__button--light:hover {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.7);
}

.footer-cta__button--dark {
  background: #15314f;
  color: #ffffff;
  border-color: #15314f;
}

.footer-cta__button--dark:hover {
  background: #0f2740;
  border-color: #0f2740;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
}

.footer-logo {
  display: inline-block;
}

.footer-logo__img {
  display: block;
  height: 62px;
  width: auto;
}

.footer-text {
  margin-top: 16px;
  max-width: 360px;
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.86);
}

.footer-column h3 {
  margin-bottom: 16px;
  font-size: 18px;
  line-height: 1.2;
}

.footer-links,
.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link,
.footer-contact {
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  line-height: 1.5;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-link:hover,
.footer-contact:hover {
  color: #ffffff;
  transform: translateX(4px);
}

.footer-contact-list {
  font-style: normal;
}

.footer-contact-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-contact-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
}

.footer-up {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 14px;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease;
}

.footer-up:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

@media (max-width: 1024px) {
  .footer-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .site-footer {
    padding: 34px 0 24px;
  }

  .footer-cta {
    padding: 24px 20px;
    border-radius: 22px;
  }

  .footer-cta__content h2 {
    font-size: 28px;
  }

  .footer-cta__content p {
    font-size: 15px;
  }

  .footer-cta__actions {
    width: 100%;
    flex-direction: column;
  }

  .footer-cta__button {
    width: 100%;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-logo__img {
    height: 48px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 1024px) {
  .header-middle {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .feature__text {
    white-space: normal;
  }
}

/* ═══════════════════════════════════════
   МОБИЛЬНЫЙ  ≤ 768
═══════════════════════════════════════ */
@media (max-width: 768px) {
  .site-header {
    padding: 10px 0;
  }

  .header-menu {
    padding: 12px 14px;
    border-radius: 18px;
  }

  .logo-img {
    height: 38px;
  }

  /* Скрываем десктопные блоки */
  .header-middle,
  .sub-menu {
    display: none !important;
  }

  /* Скрываем десктопную кнопку «Заказать звонок» */
  .header-actions .callback-btn {
    display: none;
  }

  /* Показываем бургер */
  .mobile-toggle {
    display: flex;
  }

  /* Лого — слева, бургер — справа */
  .header-top {
    justify-content: space-between;
  }

  /* ── Hero адаптив ── */
  .hero {
    min-height: 100svh;
    align-items: flex-start;
  }

  .hero__inner {
    padding: 130px 0 80px;
  }

  .hero__label {
    font-size: 12px;
    margin-bottom: 16px;
  }

  .hero__subtitle {
    margin-bottom: 38px;
  }

  .hero__features {
    flex-direction: column;
    gap: 12px;
  }

  .hero__actions {
    gap: 12px;
  }

  .btn--primary {
    min-height: 52px;
    padding: 0 24px;
    font-size: 15px;
  }

  .btn--secondary {
    min-height: 48px;
    padding: 0 20px;
    font-size: 14px;
  }
}

/* ═══════════════════════════════════════
   QUIZ MODAL
═══════════════════════════════════════ */
.quiz-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
}

.quiz-modal.show {
  display: flex;
}

.quiz-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.quiz-container {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.quiz-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 30px;
  cursor: pointer;
  color: #333;
  line-height: 1;
}

.quiz-content h2 {
  font-size: 24px;
  margin-bottom: 30px;
  text-align: center;
  color: #1f1f1f;
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.quiz-option {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  font-size: 16px;
}

.quiz-option:hover {
  border-color: #222;
}

.quiz-option input[type="radio"] {
  display: none;
}

.checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid #ccc;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.quiz-option input[type="radio"]:checked + .checkmark {
  border-color: #222;
  background: #222;
}

.quiz-option input[type="radio"]:checked + .checkmark::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.quiz-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
}

.quiz-btn {
  padding: 12px 24px;
  border: 2px solid #222;
  border-radius: 12px;
  background: #fff;
  color: #222;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.quiz-btn:hover:not(:disabled) {
  background: #222;
  color: #fff;
}

.quiz-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.quiz-result p {
  text-align: center;
  font-size: 18px;
  color: #666;
}

.quiz-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.quiz-form label {
  font-size: 16px;
  font-weight: 600;
  color: #1f1f1f;
}

.quiz-form input {
  padding: 15px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.2s;
}

.quiz-form input:focus {
  outline: none;
  border-color: #222;
}
/* QUIZ MODAL */


/* ═══════════════════════════════════════
   MODERN SERVICE SECTION
   Без конфликтов со старыми стилями
═══════════════════════════════════════ */
.service-section--modern {
  position: relative;
  overflow: hidden;
  padding: 90px 0;
  background:
    radial-gradient(circle at top left, rgba(95, 168, 240, 0.18), transparent 35%),
    radial-gradient(circle at bottom right, rgba(41, 112, 204, 0.14), transparent 30%),
    linear-gradient(180deg, #eef4ff 0%, #f8fbff 100%);
}

.service-section--modern .service-section__inner--modern {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 56px 32px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(95, 168, 240, 0.18);
  box-shadow: 0 24px 60px rgba(19, 51, 95, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.service-section--modern .service-section__inner--modern::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -80px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(95, 168, 240, 0.22) 0%, rgba(95, 168, 240, 0) 70%);
  pointer-events: none;
}

.service-section--modern .service-section__inner--modern::after {
  content: "";
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(41, 112, 204, 0.12) 0%, rgba(41, 112, 204, 0) 72%);
  pointer-events: none;
}

.service-section--modern .service-section__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(95, 168, 240, 0.12);
  border: 1px solid rgba(95, 168, 240, 0.18);
  color: #2563eb;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.service-section--modern h2 {
  max-width: 820px;
  margin: 0 auto 18px;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.08;
  color: #1b2a5c;
}

.service-section--modern p {
  max-width: 760px;
  margin: 0 auto 36px;
  color: #475569;
  font-size: 18px;
  line-height: 1.7;
}

.service-section--modern .service-buttons--modern {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.service-section--modern .service-card-btn {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 120px;
  padding: 24px 22px;
  border-radius: 22px;
  text-align: left;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #5fa8f0 0%, #2970cc 100%);
  box-shadow: 0 18px 36px rgba(41, 112, 204, 0.24);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.service-section--modern .service-card-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 44px rgba(41, 112, 204, 0.3);
  filter: brightness(1.03);
}

.service-section--modern .service-card-btn::after {
  content: "→";
  position: absolute;
  right: 20px;
  bottom: 18px;
  font-size: 22px;
  line-height: 1;
  opacity: 0.85;
}

.service-section--modern .service-card-btn__title {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
}

.service-section--modern .service-card-btn__text {
  display: block;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

/* Адаптив */
@media (max-width: 991px) {
  .service-section--modern {
    padding: 72px 0;
  }

  .service-section--modern .service-section__inner--modern {
    padding: 42px 24px;
    border-radius: 26px;
  }

  .service-section--modern .service-buttons--modern {
    grid-template-columns: 1fr;
  }

  .service-section--modern .service-card-btn {
    min-height: 100px;
  }
}

@media (max-width: 576px) {
  .service-section--modern h2 {
    font-size: 30px;
  }

  .service-section--modern p {
    font-size: 16px;
    margin-bottom: 28px;
  }

  .service-section--modern .service-card-btn {
    padding: 20px 18px;
    border-radius: 18px;
  }

  .service-section--modern .service-card-btn__title {
    font-size: 18px;
  }

  .service-section--modern .service-card-btn__text {
    font-size: 14px;
  }
}


/* === Imported hero section: fully namespaced and isolated === */
.hero-replacement {--bg: #071125;
--bg-deep: #09172f;
--bg-soft: rgba(17, 29, 58, 0.7);
--surface: rgba(255, 255, 255, 0.06);
--surface-strong: rgba(255, 255, 255, 0.1);
--surface-border: rgba(255, 255, 255, 0.12);
--card-light: #f4f7fc;
--text: #fff;
--text-soft: #bfcbe2;
--text-muted: #8fa2c2;
--title-dark: #0d2042;
--accent: #73b6ff;
--accent-2: #3f85ff;
--accent-3: #6ad7ff;
--accent-gradient: linear-gradient(135deg, #4da2ff 0%, #2f67ff 100%);
--dark-button: linear-gradient(180deg, #1a2d56 0%, #101f42 100%);
--border-radius: 22px;
--shadow-xl: 0 30px 80px rgba(3, 10, 24, 0.35);
--shadow-lg: 0 18px 40px rgba(4, 13, 32, 0.28);
--shadow-md: 0 10px 24px rgba(4, 13, 32, 0.2);
--container: 1280px;
--ease: 0.3s ease}
.hero-replacement *, .hero-replacement *::before, .hero-replacement *::after {box-sizing: border-box}
.hero-replacement {scroll-behavior: smooth}
.hero-replacement img, .hero-replacement svg {display: block;
max-width: 100%}
.hero-replacement button, .hero-replacement input {font: inherit}
.hero-replacement button {cursor: pointer}
.hero-replacement a {color: inherit;
text-decoration: none}
.hero-replacement .xhero-container {width: min(calc(100% - 32px), var(--container));
margin: 0 auto}
.hero-replacement .xhero-hero {position: relative;
min-height: 100vh;
overflow: clip;
padding: 40px 0 48px}
.hero-replacement .xhero-hero__bg {position: absolute;
inset: 0;
pointer-events: none;
background: radial-gradient(circle at 8% 12%, rgba(126, 183, 255, 0.09), transparent 26%), radial-gradient(circle at 72% 18%, rgba(77, 139, 255, 0.11), transparent 24%), linear-gradient(180deg, rgba(255, 255, 255, 0.015), rgba(255, 255, 255, 0))}
.hero-replacement .xhero-hero__container {position: relative;
z-index: 1}
.hero-replacement .xhero-hero__content {display: grid;
grid-template-columns: minmax(0, 1.1fr) minmax(320px, 420px);
gap: 48px;
align-items: start}
.hero-replacement .xhero-hero__left {padding-top: 8px}
.hero-replacement .xhero-hero__eyebrow, .hero-replacement .xhero-lead-card__eyebrow, .hero-replacement .xhero-modal__eyebrow, .hero-replacement .xhero-quiz__eyebrow {margin: 0 0 14px;
color: var(--accent);
font-size: 13px;
font-weight: 700;
letter-spacing: 0.12em;
text-transform: uppercase}
.hero-replacement .xhero-hero__title {margin: 0;
max-width: 760px;
font-size: clamp(42px, 6vw, 76px);
line-height: 0.95;
font-weight: 900;
letter-spacing: -0.04em;
text-wrap: balance}
.hero-replacement .xhero-hero__title span {display: block}
.hero-replacement .xhero-hero__title-accent {color: #9cd1ff}
.hero-replacement .xhero-hero__description {margin: 24px 0 0;
max-width: 670px;
color: var(--text-soft);
font-size: clamp(16px, 2vw, 21px);
line-height: 1.6}
.hero-replacement .xhero-hero__benefits {display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 16px;
margin-top: 28px}
.hero-replacement .xhero-benefit-card, .hero-replacement .xhero-stat-card {position: relative;
border: 1px solid var(--surface-border);
border-radius: var(--border-radius);
background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
box-shadow: var(--shadow-md);
backdrop-filter: blur(18px);
-webkit-backdrop-filter: blur(18px)}
.hero-replacement .xhero-benefit-card {display: flex;
align-items: flex-start;
gap: 14px;
padding: 18px 18px 20px;
min-height: 122px;
transition: transform var(--ease), border-color var(--ease), background var(--ease), box-shadow var(--ease)}
.hero-replacement .xhero-benefit-card:hover {transform: translatey(-4px);
border-color: rgba(118, 177, 255, 0.32);
background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.05));
box-shadow: 0 16px 32px rgba(8, 18, 38, 0.34)}
.hero-replacement .xhero-benefit-card__icon {display: grid;
place-items: center;
flex: 0 0 44px;
width: 44px;
height: 44px;
border-radius: 14px;
background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)), rgba(255, 255, 255, 0.04);
color: #ffd15f;
border: 1px solid rgba(255, 255, 255, 0.09)}
.hero-replacement .xhero-benefit-card:nth-child(2) .xhero-benefit-card__icon {color: #8fc3ff}
.hero-replacement .xhero-benefit-card:nth-child(3) .xhero-benefit-card__icon {color: #ff935f}
.hero-replacement .xhero-benefit-card__icon svg {width: 20px;
height: 20px}
.hero-replacement .xhero-benefit-card__text {margin: 0;
font-size: 16px;
font-weight: 700;
line-height: 1.35;
color: var(--text)}
.hero-replacement .xhero-hero__actions {display: flex;
flex-wrap: wrap;
gap: 14px;
margin-top: 20px}
.hero-replacement .xhero-button {position: relative;
display: inline-flex;
align-items: center;
justify-content: center;
min-height: 58px;
padding: 0 28px;
border: 1px solid transparent;
border-radius: 18px;
font-size: 15px;
font-weight: 800;
line-height: 1;
letter-spacing: 0.02em;
text-transform: uppercase;
transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease), background var(--ease), color var(--ease), opacity var(--ease)}
.hero-replacement .xhero-button:hover:not(:disabled) {transform: translatey(-2px)}
.hero-replacement .xhero-button:active:not(:disabled) {transform: translatey(0)}
.hero-replacement .xhero-button:focus-visible, .hero-replacement .xhero-field__input:focus-visible, .hero-replacement .xhero-quiz-option:focus-visible, .hero-replacement .xhero-modal__close:focus-visible, .hero-replacement .xhero-lead-card__link:focus-visible, .hero-replacement .xhero-hero__scroll-indicator:focus-visible {outline: 2px solid #8bc7ff;
outline-offset: 3px}
.hero-replacement .xhero-button--primary {color: #fff;
background: var(--accent-gradient);
box-shadow: 0 18px 34px rgba(47, 103, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.26)}
.hero-replacement .xhero-button--primary:hover:not(:disabled) {box-shadow: 0 24px 42px rgba(47, 103, 255, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.3)}
.hero-replacement .xhero-button--secondary {color: var(--text);
border-color: rgba(255, 255, 255, 0.16);
background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02))}
.hero-replacement .xhero-button--secondary:hover:not(:disabled) {border-color: rgba(118, 177, 255, 0.32);
background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04))}
.hero-replacement .xhero-button--dark {color: #fff;
background: var(--dark-button);
box-shadow: 0 18px 30px rgba(12, 26, 58, 0.18)}
.hero-replacement .xhero-button--full {width: 100%}
.hero-replacement .xhero-button:disabled {cursor: not-allowed;
opacity: 0.45;
transform: none;
box-shadow: none}
.hero-replacement .xhero-hero__stats {display: grid;
grid-template-columns: repeat(3, minmax(0, 1fr));
gap: 16px;
margin-top: 22px}
.hero-replacement .xhero-stat-card {padding: 20px 18px 18px;
min-height: 112px;
transition: transform var(--ease), border-color var(--ease)}
.hero-replacement .xhero-stat-card:hover {transform: translatey(-4px);
border-color: rgba(118, 177, 255, 0.28)}
.hero-replacement .xhero-stat-card__value {margin: 0 0 8px;
font-size: clamp(28px, 4vw, 42px);
line-height: 1;
font-weight: 900;
letter-spacing: -0.04em}
.hero-replacement .xhero-stat-card__label {margin: 0;
color: var(--text-soft);
font-size: 15px;
line-height: 1.4}
.hero-replacement .xhero-hero__scroll-indicator {display: grid;
place-items: center;
width: 48px;
height: 48px;
margin-top: 26px;
color: rgba(255, 255, 255, 0.5);
transition: transform var(--ease), color var(--ease)}
.hero-replacement .xhero-hero__scroll-indicator:hover {color: rgba(255, 255, 255, 0.9);
transform: translatey(3px)}
.hero-replacement .xhero-hero__scroll-indicator span {width: 16px;
height: 16px;
border-right: 2px solid currentColor;
border-bottom: 2px solid currentColor;
transform: rotate(45deg)}
.hero-replacement .xhero-hero__right {position: sticky;
top: 28px}
.hero-replacement .xhero-lead-card {border-radius: 30px;
padding: 28px;
background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(244, 247, 252, 0.96));
color: var(--title-dark);
box-shadow: var(--shadow-xl)}
.hero-replacement .xhero-lead-card__title {margin: 0;
font-size: clamp(28px, 3vw, 40px);
line-height: 1.05;
font-weight: 900;
letter-spacing: -0.04em;
color: var(--title-dark)}
.hero-replacement .xhero-lead-card__description {margin: 16px 0 0;
color: #667796;
font-size: 16px;
line-height: 1.6}
.hero-replacement .xhero-lead-card__list {margin: 22px 0 0;
padding: 0;
list-style: none;
display: grid;
gap: 14px}
.hero-replacement .xhero-lead-card__list li {display: flex;
align-items: flex-start;
gap: 10px;
color: #384c70;
font-size: 15px;
line-height: 1.5}
.hero-replacement .xhero-check-icon {display: inline-grid;
place-items: center;
flex: 0 0 20px;
width: 20px;
height: 20px;
margin-top: 2px;
color: var(--accent-2)}
.hero-replacement .xhero-check-icon svg {width: 20px;
height: 20px}
.hero-replacement .xhero-lead-card .xhero-button {margin-top: 26px}
.hero-replacement .xhero-lead-card__phone {display: inline-block;
margin-top: 18px;
color: var(--accent-2);
font-size: 28px;
font-weight: 900;
letter-spacing: -0.03em;
transition: opacity var(--ease)}
.hero-replacement .xhero-lead-card__phone:hover {opacity: 0.8}
.hero-replacement .xhero-lead-card__note {margin: 10px 0 0;
color: #7e8ca7;
font-size: 14px;
line-height: 1.55}
.hero-replacement .xhero-lead-card__link {margin-top: 14px;
padding: 0;
border: 0;
background: transparent;
color: #173f86;
font-size: 15px;
font-weight: 800}
.hero-replacement .xhero-modal {position: fixed;
inset: 0;
z-index: 60;
display: grid;
place-items: center;
padding: 24px 16px;
opacity: 0;
visibility: hidden;
pointer-events: none;
transition: opacity var(--ease), visibility var(--ease)}
.hero-replacement .xhero-modal.xhero-is-open {opacity: 1;
visibility: visible;
pointer-events: auto}
.hero-replacement .xhero-modal__overlay {position: absolute;
inset: 0;
background: rgba(3, 9, 20, 0.66);
backdrop-filter: blur(8px);
-webkit-backdrop-filter: blur(8px)}
.hero-replacement .xhero-modal__dialog {position: relative;
z-index: 1;
width: min(100%, 520px);
border-radius: 28px;
padding: 28px;
background: linear-gradient(180deg, rgba(10, 19, 39, 0.98), rgba(8, 15, 31, 0.98));
border: 1px solid rgba(255, 255, 255, 0.1);
box-shadow: var(--shadow-xl);
transform: translatey(18px) scale(0.98);
transition: transform var(--ease)}
.hero-replacement .xhero-modal.xhero-is-open .xhero-modal__dialog {transform: translatey(0) scale(1)}
.hero-replacement .xhero-modal__dialog--wide {width: min(100%, 860px);
padding: 28px 28px 24px}
.hero-replacement .xhero-modal__close {position: absolute;
top: 18px;
right: 18px;
width: 42px;
height: 42px;
border: 1px solid rgba(255, 255, 255, 0.12);
border-radius: 14px;
background: rgba(255, 255, 255, 0.05);
transition: transform var(--ease), background var(--ease), border-color var(--ease)}
.hero-replacement .xhero-modal__close:hover {transform: rotate(90deg);
background: rgba(255, 255, 255, 0.08);
border-color: rgba(255, 255, 255, 0.18)}
.hero-replacement .xhero-modal__close span {position: absolute;
inset: 50% auto auto 50%;
width: 18px;
height: 2px;
background: #fff;
border-radius: 999px}
.hero-replacement .xhero-modal__close span:first-child {transform: translate(-50%, -50%) rotate(45deg)}
.hero-replacement .xhero-modal__close span:last-child {transform: translate(-50%, -50%) rotate(-45deg)}
.hero-replacement .xhero-modal__body {max-width: 420px}
.hero-replacement .xhero-modal__title {margin: 0;
font-size: 34px;
line-height: 1.05;
font-weight: 900;
letter-spacing: -0.04em}
.hero-replacement .xhero-modal__text {margin: 14px 0 0;
color: var(--text-soft);
font-size: 16px;
line-height: 1.6}
.hero-replacement .xhero-modal-form {display: grid;
gap: 18px;
margin-top: 24px}
.hero-replacement .xhero-field {display: grid;
gap: 10px}
.hero-replacement .xhero-field__label {color: var(--text-soft);
font-size: 14px;
font-weight: 600}
.hero-replacement .xhero-field__input {width: 100%;
min-height: 58px;
padding: 0 18px;
border: 1px solid rgba(255, 255, 255, 0.12);
border-radius: 16px;
background: rgba(255, 255, 255, 0.05);
color: #fff;
transition: border-color var(--ease), background var(--ease), box-shadow var(--ease)}
.hero-replacement .xhero-field__input::placeholder {color: #7e90ad}
.hero-replacement .xhero-field__input:focus {border-color: rgba(115, 182, 255, 0.6);
background: rgba(255, 255, 255, 0.08);
box-shadow: 0 0 0 4px rgba(77, 162, 255, 0.12);
outline: none}
.hero-replacement .xhero-quiz {display: grid;
gap: 26px}
.hero-replacement .xhero-quiz__header {display: grid;
gap: 22px;
padding-right: 52px}
.hero-replacement .xhero-quiz__progress {display: grid;
gap: 10px}
.hero-replacement .xhero-quiz__progress-count {color: var(--accent);
font-size: 14px;
font-weight: 800;
letter-spacing: 0.08em;
text-transform: uppercase}
.hero-replacement .xhero-quiz__progress-bar {overflow: hidden;
width: 100%;
height: 8px;
border-radius: 999px;
background: rgba(255, 255, 255, 0.08)}
.hero-replacement .xhero-quiz__progress-bar span {display: block;
width: 0;
height: 100%;
border-radius: inherit;
background: var(--accent-gradient);
transition: width var(--ease)}
.hero-replacement .xhero-quiz__title {margin: 0;
font-size: clamp(30px, 4vw, 44px);
line-height: 1.05;
font-weight: 900;
letter-spacing: -0.04em}
.hero-replacement .xhero-quiz__content {min-height: 340px}
.hero-replacement .xhero-quiz-step {animation: quizStepIn 0.32s ease}
.hero-replacement .xhero-quiz-step__subtitle {margin: 0 0 8px;
color: var(--text-muted);
font-size: 15px}
.hero-replacement .xhero-quiz-step__question {margin: 0 0 20px;
font-size: clamp(24px, 3vw, 34px);
line-height: 1.12;
font-weight: 800;
letter-spacing: -0.03em}
.hero-replacement .xhero-quiz-options {display: grid;
gap: 12px}
.hero-replacement .xhero-quiz-option {position: relative;
display: flex;
align-items: center;
justify-content: space-between;
min-height: 62px;
padding: 16px 20px;
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 18px;
background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
color: #fff;
font-size: 16px;
font-weight: 700;
text-align: left;
transition: transform var(--ease), border-color var(--ease), background var(--ease), box-shadow var(--ease)}
.hero-replacement .xhero-quiz-option::after {content: "";
width: 20px;
height: 20px;
border: 1px solid rgba(255, 255, 255, 0.18);
border-radius: 999px;
transition: background var(--ease), border-color var(--ease), box-shadow var(--ease)}
.hero-replacement .xhero-quiz-option:hover {transform: translatey(-2px);
border-color: rgba(115, 182, 255, 0.34)}
.hero-replacement .xhero-quiz-option.xhero-is-selected {border-color: rgba(115, 182, 255, 0.52);
background: linear-gradient(180deg, rgba(56, 116, 255, 0.26), rgba(66, 150, 255, 0.14));
box-shadow: 0 16px 30px rgba(12, 23, 52, 0.24)}
.hero-replacement .xhero-quiz-option.xhero-is-selected::after {border-color: rgba(115, 182, 255, 0.8);
background: radial-gradient(circle, #8bc7ff 0 42%, transparent 48%);
box-shadow: 0 0 0 4px rgba(115, 182, 255, 0.12)}
.hero-replacement .xhero-quiz__footer {display: flex;
align-items: center;
justify-content: space-between;
gap: 14px;
margin-top: 26px}
.hero-replacement .xhero-quiz__nav {display: flex;
gap: 12px}
.hero-replacement .xhero-button--ghost {color: var(--text);
border-color: rgba(255, 255, 255, 0.12);
background: transparent}
.hero-replacement .xhero-quiz-final {display: grid;
gap: 18px;
max-width: 520px;
animation: quizStepIn 0.32s ease}
.hero-replacement .xhero-quiz-final__title {margin: 0;
font-size: clamp(28px, 4vw, 42px);
line-height: 1.08;
font-weight: 900;
letter-spacing: -0.04em}
.hero-replacement .xhero-quiz-final__text {margin: 0;
color: var(--text-soft);
font-size: 16px;
line-height: 1.6}
.hero-replacement .xhero-quiz-final__discount {display: inline-flex;
align-items: center;
gap: 12px;
width: fit-content;
padding: 14px 18px;
border-radius: 18px;
background: rgba(91, 166, 255, 0.12);
border: 1px solid rgba(115, 182, 255, 0.24);
color: #fff;
font-size: 20px;
font-weight: 900}
.hero-replacement .xhero-quiz-final__discount span {color: #9cd1ff}
.hero-replacement .xhero-quiz-final__form {display: grid;
gap: 16px;
margin-top: 8px}
@media (max-width: 1180px) {
.hero-replacement .xhero-hero__content {grid-template-columns: 1fr;
gap: 34px}
.hero-replacement .xhero-hero__right {position: static}
.hero-replacement .xhero-lead-card {max-width: 520px}
}
@media (max-width: 900px) {
.hero-replacement .xhero-hero {padding-top: 28px}
.hero-replacement .xhero-hero__benefits, .hero-replacement .xhero-hero__stats {grid-template-columns: repeat(2, minmax(0, 1fr))}
.hero-replacement .xhero-modal__dialog--wide {padding: 24px 20px 20px}
}
@media (max-width: 640px) {
.hero-replacement .xhero-container {width: min(calc(100% - 24px), var(--container))}
.hero-replacement .xhero-hero__description {font-size: 16px}
.hero-replacement .xhero-hero__benefits, .hero-replacement .xhero-hero__stats, .hero-replacement .xhero-quiz-options {grid-template-columns: 1fr}
.hero-replacement .xhero-hero__actions .xhero-button, .hero-replacement .xhero-lead-card, .hero-replacement .xhero-button--full {width: 100%}
.hero-replacement .xhero-hero__actions {flex-direction: column}
.hero-replacement .xhero-benefit-card, .hero-replacement .xhero-stat-card {min-height: auto}
.hero-replacement .xhero-lead-card {padding: 24px 20px;
border-radius: 24px}
.hero-replacement .xhero-lead-card__phone {font-size: 24px}
.hero-replacement .xhero-modal {padding: 12px}
.hero-replacement .xhero-modal__dialog, .hero-replacement .xhero-modal__dialog--wide {width: 100%;
padding: 24px 18px 18px;
border-radius: 22px}
.hero-replacement .xhero-modal__body, .hero-replacement .xhero-quiz-final {max-width: 100%}
.hero-replacement .xhero-quiz__header {padding-right: 38px}
.hero-replacement .xhero-quiz__footer {flex-direction: column;
align-items: stretch}
.hero-replacement .xhero-quiz__nav {flex-direction: column}
.hero-replacement .xhero-quiz__nav .xhero-button {width: 100%}
}


/* === Integration layer for imported hero === */
.hero-replacement {
  position: relative;
  width: 100%;
  color: #ffffff;
  background:
    radial-gradient(circle at 10% 14%, rgba(69, 118, 255, 0.26), transparent 24%),
    radial-gradient(circle at 78% 10%, rgba(63, 133, 255, 0.18), transparent 22%),
    radial-gradient(circle at 48% 82%, rgba(17, 39, 84, 0.34), transparent 34%),
    linear-gradient(180deg, #081224 0%, #07101f 48%, #050d19 100%);
  overflow: clip;
  isolation: isolate;
}
.hero-replacement::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
  opacity: 0.7;
}
.hero-replacement .xhero-container {
  width: min(calc(100% - 32px), 1280px);
  margin: 0 auto;
}
.hero-replacement .xhero-hero,
.hero-replacement .xhero-hero__bg {
  background: transparent !important;
}
.hero-replacement .xhero-hero {
  display: block;
  min-height: 100vh;
  padding-top: clamp(124px, 10.5vw, 148px);
  padding-bottom: 44px;
}
.hero-replacement .xhero-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 1 !important;
  background:
    radial-gradient(circle at 8% 12%, rgba(126, 183, 255, 0.10), transparent 24%),
    radial-gradient(circle at 72% 18%, rgba(77, 139, 255, 0.12), transparent 20%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
}
.hero-replacement .xhero-hero__bg::before,
.hero-replacement .xhero-hero__bg::after,
.hero-replacement .xhero-hero__title::before,
.hero-replacement .xhero-hero__title::after,
.hero-replacement .xhero-hero__title span::before,
.hero-replacement .xhero-hero__title span::after {
  content: none !important;
  display: none !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
  text-decoration: none !important;
}
.hero-replacement .xhero-hero__container {
  position: relative;
  z-index: 1;
}
.hero-replacement .xhero-hero__content {
  gap: 40px;
  align-items: start;
}
.hero-replacement .xhero-hero__left {
  padding-top: 0;
}
.hero-replacement .xhero-hero__eyebrow,
.hero-replacement .xhero-hero__title,
.hero-replacement .xhero-hero__description,
.hero-replacement .xhero-benefit-card__text,
.hero-replacement .xhero-stat-card__value,
.hero-replacement .xhero-stat-card__label {
  position: relative;
  z-index: 1;
}
.hero-replacement .xhero-hero__title {
  color: #ffffff !important;
  max-width: 760px;
}
.hero-replacement .xhero-hero__title span {
  color: inherit;
  text-decoration: none !important;
}
.hero-replacement .xhero-hero__title-accent {
  color: #9cd1ff !important;
}
.hero-replacement .xhero-hero__description {
  margin-top: 22px;
  color: #d4deef;
}
.hero-replacement .xhero-hero__benefits {
  margin-top: 26px;
}
.hero-replacement .xhero-benefit-card,
.hero-replacement .xhero-stat-card {
  border-color: rgba(143, 195, 255, 0.14) !important;
  background: linear-gradient(180deg, rgba(16, 28, 54, 0.88), rgba(9, 18, 36, 0.84)) !important;
  box-shadow: 0 18px 38px rgba(2, 8, 22, 0.26) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.hero-replacement .xhero-benefit-card:hover,
.hero-replacement .xhero-stat-card:hover {
  border-color: rgba(143, 195, 255, 0.24) !important;
}
.hero-replacement .xhero-benefit-card__text {
  color: #ffffff !important;
}
.hero-replacement .xhero-stat-card__label {
  color: #d4deef !important;
}
.hero-replacement .xhero-hero__actions {
  justify-content: flex-start;
  margin-top: 24px;
}
.hero-replacement .xhero-button--secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
}
.hero-replacement .xhero-hero__scroll-indicator {
  margin-top: 22px;
}
.hero-replacement .xhero-hero__right {
  position: sticky;
  top: 52px;
}
.hero-replacement .xhero-lead-card {
  border-radius: 30px;
  box-shadow: 0 34px 80px rgba(4, 12, 28, 0.34);
}
@media (max-width: 1180px) {
  .hero-replacement .xhero-hero {
    padding-top: 126px;
  }
  .hero-replacement .xhero-hero__content {
    gap: 30px;
  }
}
@media (max-width: 900px) {
  .hero-replacement .xhero-hero {
    min-height: auto;
    padding-top: 102px;
    padding-bottom: 34px;
  }
  .hero-replacement .xhero-hero__right {
    position: static;
    top: auto;
  }
  .hero-replacement .xhero-hero__description {
    max-width: 100%;
  }
}
@media (max-width: 640px) {
  .hero-replacement .xhero-container {
    width: min(calc(100% - 24px), 1280px);
  }
  .hero-replacement .xhero-hero {
    padding-top: 84px;
    padding-bottom: 28px;
  }
  .hero-replacement .xhero-hero__content {
    gap: 22px;
  }
  .hero-replacement .xhero-hero__title {
    font-size: clamp(34px, 11.5vw, 46px);
    line-height: 0.98;
  }
  .hero-replacement .xhero-hero__description {
    margin-top: 16px;
    font-size: 15px;
    line-height: 1.55;
    color: #d9e4f6;
  }
  .hero-replacement .xhero-hero__benefits,
  .hero-replacement .xhero-hero__stats {
    grid-template-columns: 1fr !important;
    margin-top: 18px;
    gap: 12px;
  }
  .hero-replacement .xhero-benefit-card,
  .hero-replacement .xhero-stat-card {
    min-height: auto;
    padding: 16px;
    gap: 12px;
  }
  .hero-replacement .xhero-benefit-card__text {
    font-size: 15px;
    line-height: 1.4;
  }
  .hero-replacement .xhero-hero__actions {
    margin-top: 18px;
    gap: 12px;
  }
  .hero-replacement .xhero-hero__scroll-indicator {
    display: none;
  }
  .hero-replacement .xhero-lead-card {
    padding: 22px 18px;
    border-radius: 24px;
  }
}


/* === Final visual tuning: compact header + aligned hero === */
.site-header {
  padding: 12px 0;
}

.site-header.scrolled {
  padding: 8px 0;
}

.header-menu {
  padding: 10px 22px;
  border-radius: 22px;
  box-shadow: 0 3px 24px rgba(0, 0, 0, 0.14);
}

.header-top {
  gap: 14px;
}

.logo-img {
  height: 82px;
}

.header-middle {
  gap: 20px;
}

.contacts {
  gap: 18px;
}

.contact-block {
  font-size: 14px;
  line-height: 1.25;
}

.menu-btn {
  min-height: 40px;
  padding: 0 14px;
  font-size: 14px;
}

.callback-btn {
  min-height: 44px;
  padding: 0 20px;
  font-size: 14px;
}

.sub-menu {
  margin-top: 8px;
  gap: 8px;
}

.hero-replacement::before {
  display: none;
}

.hero-replacement .xhero-hero {
  padding-top: clamp(106px, 9.4vw, 126px);
  padding-bottom: 40px;
}

.hero-replacement .xhero-hero__content {
  gap: 40px;
}

.hero-replacement .xhero-hero__left {
  padding-top: 0;
}

.hero-replacement .xhero-hero__right {
  top: 20px;
  transform: translateY(-6px);
}

@media (max-width: 1180px) {
  .hero-replacement .xhero-hero {
    padding-top: 118px;
  }

  .logo-img {
    height: 74px;
  }
}

@media (max-width: 900px) {
  .hero-replacement .xhero-hero {
    padding-top: 96px;
  }

  .hero-replacement .xhero-hero__right {
    transform: none;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 10px 0;
  }

  .header-menu {
    padding: 12px 14px;
    border-radius: 18px;
  }

  .logo-img {
    height: 38px;
  }
}


/* ═══════════════════════════════════════
   PHONE MODAL
═══════════════════════════════════════ */
.phone-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.phone-modal.is-open {
  display: flex;
}

.phone-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(3, 9, 20, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.phone-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 460px);
  padding: 30px 28px;
  border-radius: 28px;
  background: linear-gradient(180deg, #ffffff 0%, #f4f7fc 100%);
  box-shadow: 0 30px 80px rgba(3, 10, 24, 0.35);
}

.phone-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(13, 32, 66, 0.12);
  border-radius: 14px;
  background: #ffffff;
  color: #0d2042;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.phone-modal__eyebrow {
  margin: 0 0 10px;
  color: #3f85ff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.phone-modal__title {
  margin: 0;
  color: #0d2042;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.05;
  font-weight: 900;
}

.phone-modal__text {
  margin: 14px 0 0;
  color: #667796;
  font-size: 16px;
  line-height: 1.6;
}

.phone-modal__form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.phone-modal__label {
  color: #0d2042;
  font-size: 14px;
  font-weight: 700;
}

.phone-modal__input {
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  border: 1px solid rgba(13, 32, 66, 0.12);
  border-radius: 16px;
  background: #ffffff;
  color: #0d2042;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.phone-modal__input:focus {
  outline: none;
  border-color: rgba(63, 133, 255, 0.7);
  box-shadow: 0 0 0 4px rgba(63, 133, 255, 0.12);
}

.phone-modal__submit {
  min-height: 56px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #4da2ff 0%, #2f67ff 100%);
  color: #ffffff;
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 18px 34px rgba(47, 103, 255, 0.28);
}

.phone-modal__submit--secondary {
  width: 100%;
  margin-top: 24px;
}

.phone-modal__policy {
  margin: 14px 0 0;
  color: #7e8ca7;
  font-size: 13px;
  line-height: 1.5;
}

.phone-modal__content--success {
  text-align: left;
}

body.phone-modal-open {
  overflow: hidden;
}

@media (max-width: 640px) {
  .phone-modal {
    padding: 12px;
  }

  .phone-modal__dialog {
    width: 100%;
    padding: 26px 18px 18px;
    border-radius: 24px;
  }

  .phone-modal__title {
    font-size: 30px;
  }

  .phone-modal__text {
    font-size: 15px;
  }
}

/* === Modern sticky header refresh === */
body {
  background:
    linear-gradient(180deg, #081224 0px, #07101f 180px, #ffffff 181px, #ffffff 100%);
}

.site-header {
  position: sticky;
  top: 0;
  left: auto;
  right: auto;
  z-index: 140;
  padding: 14px 0 0;
  background: linear-gradient(180deg, rgba(8, 18, 36, 0.96) 0%, rgba(8, 18, 36, 0.82) 58%, rgba(8, 18, 36, 0) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.site-header.scrolled {
  padding: 10px 0 0;
}

.header-menu {
  position: relative;
  overflow: visible;
  padding: 16px 18px 14px;
  border-radius: 30px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
    linear-gradient(180deg, rgba(10, 19, 39, 0.92), rgba(7, 14, 28, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 18px 40px rgba(2, 8, 22, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.site-header.scrolled .header-menu {
  box-shadow:
    0 14px 30px rgba(2, 8, 22, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.header-top {
  align-items: center;
  gap: 18px;
}

.logo {
  padding-right: 4px;
}

.logo-img {
  height: 52px;
}

.header-middle {
  justify-content: space-between;
  gap: 18px;
}

.main-nav,
.contacts,
.sub-menu {
  align-items: center;
}

.main-nav {
  gap: 10px;
}

.contacts {
  gap: 12px;
}

.contact-block {
  min-height: 46px;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
  line-height: 1.25;
}

.contact-block strong {
  color: #ffffff;
  font-weight: 700;
}

.menu-btn {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.menu-btn:hover,
.menu-btn:focus-visible {
  transform: translateY(-1px);
  background: rgba(115, 182, 255, 0.16);
  border-color: rgba(143, 195, 255, 0.32);
  color: #ffffff;
}

.callback-btn {
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid rgba(143, 195, 255, 0.24);
  border-radius: 16px;
  background: linear-gradient(135deg, #4da2ff 0%, #2f67ff 100%);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  box-shadow: 0 16px 30px rgba(47, 103, 255, 0.26);
}

.callback-btn:hover,
.callback-btn:focus-visible {
  background: linear-gradient(135deg, #5ab0ff 0%, #3b73ff 100%);
  color: #ffffff;
}

.dropdown-toggle::after {
  color: rgba(255, 255, 255, 0.7);
}

.dropdown-list {
  top: calc(100% + 12px);
  min-width: 340px;
  padding: 10px;
  background: linear-gradient(180deg, rgba(11, 21, 43, 0.98), rgba(7, 14, 28, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  box-shadow: 0 20px 40px rgba(2, 8, 22, 0.34);
}

.dropdown-item {
  padding: 12px 14px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.86);
}

.dropdown-item:hover {
  background: rgba(115, 182, 255, 0.14);
  color: #ffffff;
}

.sub-menu {
  margin-top: 14px;
  padding-top: 14px;
  justify-content: flex-start;
  gap: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-replacement .xhero-hero {
  padding-top: 38px;
}

.hero-replacement .xhero-hero__right {
  top: 12px;
}

.catalog-section {
  scroll-margin-top: 104px;
}

.section-anchor {
  top: -104px;
}

@media (max-width: 1180px) {
  .logo-img {
    height: 48px;
  }

  .header-middle {
    gap: 14px;
  }

  .contact-block {
    padding: 8px 12px;
  }

  .hero-replacement .xhero-hero {
    padding-top: 28px;
  }
}

@media (max-width: 900px) {
  .site-header {
    padding-top: 12px;
  }

  .header-menu {
    padding: 14px 16px;
  }

  .contacts {
    display: none;
  }

  .hero-replacement .xhero-hero {
    padding-top: 24px;
  }
}

@media (max-width: 768px) {
  body {
    background:
      linear-gradient(180deg, #081224 0px, #07101f 120px, #ffffff 121px, #ffffff 100%);
  }

  .site-header {
    padding: 10px 0 0;
  }

  .header-menu {
    padding: 12px;
    border-radius: 22px;
  }

  .logo-img {
    height: 34px;
  }

  .mobile-toggle {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
  }

  .mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
  }

  .burger-line {
    background: #ffffff;
  }

  .mobile-panel-inner,
  .mobile-contacts,
  .mobile-sub {
    border-top-color: rgba(255, 255, 255, 0.08);
  }

  .mobile-panel .menu-btn {
    justify-content: flex-start;
    width: 100%;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.05);
  }

  .mobile-panel .callback-btn {
    width: 100%;
  }

  .hero-replacement .xhero-hero {
    padding-top: 18px;
  }
}


/* FINAL PREMIUM LIGHT HEADER REWORK */
body {
  background: #ffffff !important;
}

.site-header {
  position: absolute !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  padding: 22px 0 0 !important;
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  opacity: 0;
  transform: translateY(-16px);
  transition: opacity 0.45s ease, transform 0.45s ease, padding 0.35s ease;
}

.site-header.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.site-header.scrolled {
  padding: 14px 0 0 !important;
}

.site-header .container {
  max-width: 1320px;
}

.header-menu {
  position: relative;
  overflow: visible;
  padding: 18px 20px 16px !important;
  border-radius: 34px 34px 26px 26px !important;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.96) 0%, rgba(243, 248, 255, 0.96) 42%, rgba(217, 231, 255, 0.98) 100%) !important;
  border: 1px solid rgba(146, 173, 220, 0.34) !important;
  box-shadow:
    0 20px 48px rgba(101, 134, 181, 0.18),
    0 6px 18px rgba(255, 255, 255, 0.64),
    inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
}

.header-menu::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(255, 255, 255, 0.08));
  pointer-events: none;
  opacity: 0.95;
}

.header-menu > * {
  position: relative;
  z-index: 1;
}

.site-header.scrolled .header-menu {
  transform: translateY(3px) scale(0.992);
  box-shadow:
    0 18px 34px rgba(101, 134, 181, 0.16),
    0 4px 12px rgba(255, 255, 255, 0.58),
    inset 0 1px 0 rgba(255, 255, 255, 0.96) !important;
}

.header-top {
  align-items: center;
  gap: 16px;
}

.logo {
  padding-right: 6px;
}

.logo-img {
  height: 48px !important;
}

.header-middle {
  justify-content: space-between;
  gap: 18px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(171, 193, 232, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.contacts {
  gap: 12px;
}

.contact-block {
  min-height: 46px;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(236, 244, 255, 0.72));
  border: 1px solid rgba(171, 193, 232, 0.34);
  color: #4f6484;
  font-size: 12px;
  line-height: 1.25;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.contact-block strong {
  color: #153961;
  font-weight: 800;
}

.site-header .menu-btn,
.site-header .dropdown-toggle {
  position: relative;
  isolation: isolate;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 15px;
  background: transparent;
  color: #355377;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: none;
  transition:
    transform 0.24s ease,
    color 0.24s ease,
    border-color 0.24s ease,
    box-shadow 0.24s ease,
    background-color 0.24s ease;
}

.site-header .menu-btn::before,
.site-header .dropdown-toggle::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(225, 237, 255, 0.78));
  border: 1px solid rgba(164, 188, 230, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  opacity: 0;
  transform: scale(0.94);
  transition: opacity 0.24s ease, transform 0.24s ease;
  z-index: -1;
}

.site-header .menu-btn:hover,
.site-header .menu-btn:focus-visible,
.site-header .dropdown-toggle:hover,
.site-header .dropdown-toggle:focus-visible {
  color: #0f4588;
  transform: translateY(-1px);
}

.site-header .menu-btn:hover::before,
.site-header .menu-btn:focus-visible::before,
.site-header .dropdown-toggle:hover::before,
.site-header .dropdown-toggle:focus-visible::before {
  opacity: 1;
  transform: scale(1);
}

.site-header .menu-btn.is-active,
.site-header .dropdown-toggle.is-active {
  color: #103f7a;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(225, 237, 255, 0.96));
  border-color: rgba(126, 164, 229, 0.34);
  box-shadow:
    0 10px 20px rgba(110, 142, 194, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.site-header .menu-btn.is-active::after,
.site-header .dropdown-toggle.is-active::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 7px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #6ba8ff, #2f72ff);
  opacity: 0.95;
}

.callback-btn {
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid rgba(121, 157, 220, 0.36) !important;
  border-radius: 16px !important;
  background: linear-gradient(135deg, #ffffff 0%, #eef5ff 42%, #dbe9ff 100%) !important;
  color: #153f7c !important;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow:
    0 16px 30px rgba(98, 131, 184, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.95) !important;
  transition: transform 0.24s ease, box-shadow 0.24s ease, color 0.24s ease;
}

.callback-btn:hover,
.callback-btn:focus-visible {
  color: #0d3e7e !important;
  transform: translateY(-1px);
  box-shadow:
    0 18px 34px rgba(98, 131, 184, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.98) !important;
}

.dropdown-toggle::after {
  color: #5e7faf !important;
}

.dropdown-list {
  top: calc(100% + 12px);
  min-width: 340px;
  padding: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(236, 244, 255, 0.98)) !important;
  border: 1px solid rgba(156, 183, 228, 0.36) !important;
  border-radius: 20px !important;
  box-shadow: 0 22px 40px rgba(106, 137, 184, 0.18) !important;
}

.dropdown-item {
  padding: 12px 14px;
  border-radius: 14px;
  color: #315278;
  font-weight: 600;
  transition: background-color 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.dropdown-item:hover {
  background: linear-gradient(135deg, rgba(244, 248, 255, 1), rgba(225, 237, 255, 1));
  color: #104384;
  transform: translateX(2px);
}

.sub-menu {
  margin-top: 12px;
  padding: 10px;
  justify-content: flex-start;
  gap: 8px;
  border-top: none;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.46), rgba(231, 241, 255, 0.54));
  border: 1px solid rgba(174, 196, 231, 0.32);
}

.hero-replacement .xhero-hero {
  padding-top: 168px !important;
}

.hero-replacement .xhero-hero__right {
  top: 0 !important;
}

.catalog-section {
  scroll-margin-top: 32px !important;
}

.section-anchor {
  top: -24px !important;
}

@media (max-width: 1180px) {
  .logo-img {
    height: 44px !important;
  }

  .header-middle {
    gap: 14px;
  }

  .contact-block {
    padding: 8px 12px;
  }

  .hero-replacement .xhero-hero {
    padding-top: 154px !important;
  }
}

@media (max-width: 900px) {
  .site-header {
    padding-top: 16px !important;
  }

  .header-menu {
    padding: 16px !important;
  }

  .contacts {
    display: none;
  }

  .hero-replacement .xhero-hero {
    padding-top: 142px !important;
  }
}

@media (max-width: 768px) {
  body {
    background: #ffffff !important;
  }

  .site-header {
    padding: 12px 0 0 !important;
  }

  .header-menu {
    padding: 12px !important;
    border-radius: 26px 26px 20px 20px !important;
  }

  .logo-img {
    height: 36px !important;
  }

  .mobile-toggle {
    width: 44px;
    height: 44px;
    border: 1px solid rgba(150, 177, 222, 0.36) !important;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(230, 241, 255, 0.92)) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
  }

  .mobile-toggle:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(222, 236, 255, 0.96)) !important;
  }

  .burger-line {
    background: #1f508f !important;
  }

  .mobile-panel-inner,
  .mobile-contacts,
  .mobile-sub {
    border-top-color: rgba(167, 188, 223, 0.34) !important;
  }

  .mobile-panel-inner {
    margin-top: 14px;
    padding-top: 14px;
  }

  .mobile-panel .menu-btn {
    justify-content: flex-start;
    width: 100%;
    color: #2f527d !important;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(237, 245, 255, 0.96)) !important;
    border: 1px solid rgba(171, 193, 232, 0.32) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
  }

  .mobile-panel .callback-btn {
    width: 100%;
  }

  .sub-menu {
    display: none;
  }

  .hero-replacement .xhero-hero {
    padding-top: 118px !important;
  }
}


/* HEADER REWORK ROUND 2: GRID + NAV ROW */
.site-header .header-menu {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(240,246,255,0.98)) !important;
  border-color: rgba(166, 188, 221, 0.42) !important;
}

.site-header .header-top {
  display: grid !important;
  grid-template-columns: minmax(180px, 1.05fr) minmax(0, 1.8fr) minmax(180px, 0.9fr);
  align-items: center;
  gap: 18px;
}

.site-header .logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-header .logo-img {
  height: 64px !important;
  max-width: 100%;
  object-fit: contain;
}

.site-header .header-middle {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 0;
  min-width: 0;
}

.site-header .main-nav {
  display: none !important;
}

.site-header .contacts {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 14px;
  width: 100%;
}

.site-header .contact-block {
  min-height: 64px;
  padding: 12px 16px;
  align-items: center;
  text-align: center;
  justify-content: center;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(236,243,255,0.96)) !important;
  border: 1px solid rgba(160, 185, 224, 0.48);
  color: #163d73 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.95);
}

.site-header .contact-block strong,
.site-header .contact-block span {
  text-align: center;
}

.site-header .contact-block strong {
  color: #163d73 !important;
  font-size: 16px;
}

.site-header .contact-block span {
  color: #35567f !important;
  font-size: 13px;
}

.site-header .header-actions {
  width: 100%;
  justify-content: center;
}

.site-header .callback-btn {
  width: 100%;
  min-height: 64px;
  padding: 0 22px;
  justify-content: center;
  text-align: center;
  font-size: 15px;
  color: #163d73 !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(236,243,255,0.96)) !important;
  border: 1px solid rgba(160, 185, 224, 0.52) !important;
}

.site-header .sub-menu {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
  padding: 12px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(236,243,255,0.96)) !important;
  border: 1px solid rgba(160, 185, 224, 0.4);
}

.site-header .sub-menu > .menu-btn,
.site-header .sub-menu > .dropdown {
  flex: 1 1 0;
  min-width: 0;
}

.site-header .sub-menu > .dropdown {
  position: relative;
}

.site-header .sub-menu > .menu-btn,
.site-header .sub-menu > .dropdown > .dropdown-toggle {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  justify-content: center;
  text-align: center;
  border: 1px solid rgba(142, 170, 216, 0.72) !important;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(240,246,255,0.98)) !important;
  color: #163d73 !important;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(102, 128, 170, 0.08), inset 0 1px 0 rgba(255,255,255,0.96);
}

.site-header .sub-menu > .menu-btn::before,
.site-header .sub-menu > .dropdown > .dropdown-toggle::before {
  display: none !important;
}

.site-header .sub-menu > .menu-btn:hover,
.site-header .sub-menu > .menu-btn:focus-visible,
.site-header .sub-menu > .dropdown > .dropdown-toggle:hover,
.site-header .sub-menu > .dropdown > .dropdown-toggle:focus-visible {
  color: #102f5a !important;
  border-color: rgba(89, 132, 202, 0.88) !important;
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(228,238,255,1)) !important;
  box-shadow: 0 10px 20px rgba(102, 128, 170, 0.14), inset 0 1px 0 rgba(255,255,255,0.98);
}

.site-header .sub-menu > .menu-btn.is-active,
.site-header .sub-menu > .dropdown > .dropdown-toggle.is-active {
  color: #102f5a !important;
  border-color: rgba(89, 132, 202, 0.92) !important;
  background: linear-gradient(180deg, rgba(255,255,255,1), rgba(224,236,255,1)) !important;
}

.site-header .sub-menu > .menu-btn.is-active::after,
.site-header .sub-menu > .dropdown > .dropdown-toggle.is-active::after {
  left: 24px;
  right: 24px;
  bottom: 8px;
}

.site-header .dropdown-list {
  width: max(320px, 100%);
}

@media (max-width: 1180px) {
  .site-header .header-top {
    grid-template-columns: minmax(160px, 0.95fr) minmax(0, 1.6fr) minmax(170px, 0.9fr);
    gap: 14px;
  }

  .site-header .logo-img {
    height: 58px !important;
  }

  .site-header .sub-menu {
    gap: 8px;
  }

  .site-header .sub-menu > .menu-btn,
  .site-header .sub-menu > .dropdown > .dropdown-toggle {
    min-height: 50px;
    font-size: 15px;
    padding: 0 10px;
  }
}

@media (max-width: 900px) {
  .site-header .header-top {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .site-header .logo {
    justify-content: flex-start;
  }

  .site-header .header-middle {
    display: none !important;
  }

  .site-header .header-actions {
    width: auto;
    justify-content: flex-end;
  }

  .site-header .callback-btn {
    display: none !important;
  }

  .site-header .sub-menu {
    display: none !important;
  }
}


/* HEADER REWORK ROUND 3: VISIBILITY BOOST */
.site-header {
  padding-top: 18px !important;
}

.site-header .header-menu {
  padding: 22px 22px 18px !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(238,245,255,0.99)) !important;
  border: 1px solid rgba(129, 159, 208, 0.48) !important;
  box-shadow: 0 22px 56px rgba(105, 133, 181, 0.20), 0 8px 18px rgba(255,255,255,0.72), inset 0 1px 0 rgba(255,255,255,1) !important;
}

.site-header .logo-img {
  height: 74px !important;
  filter: saturate(1.08) contrast(1.06);
}

.site-header .contacts {
  gap: 16px;
}

.site-header .contact-block {
  min-height: 72px;
  padding: 14px 18px;
  border-radius: 20px;
  border: 1.5px solid rgba(116, 151, 208, 0.52);
  box-shadow: 0 8px 18px rgba(110, 142, 194, 0.10), inset 0 1px 0 rgba(255,255,255,1);
}

.site-header .contact-block strong {
  font-size: 17px;
}

.site-header .contact-block span {
  font-size: 14px;
}

.site-header .callback-btn {
  min-height: 72px;
  font-size: 16px;
  border-width: 1.5px !important;
  box-shadow: 0 10px 22px rgba(110, 142, 194, 0.12), inset 0 1px 0 rgba(255,255,255,1) !important;
}

.site-header .sub-menu {
  gap: 12px;
  padding: 14px;
}

.site-header .sub-menu > .menu-btn,
.site-header .sub-menu > .dropdown > .dropdown-toggle {
  min-height: 56px;
  padding: 0 16px;
  border-width: 1.5px !important;
  border-color: rgba(111, 149, 212, 0.86) !important;
  color: #10396f !important;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.site-header .sub-menu > .menu-btn.is-active,
.site-header .sub-menu > .dropdown > .dropdown-toggle.is-active {
  box-shadow: 0 12px 24px rgba(102, 128, 170, 0.16), inset 0 1px 0 rgba(255,255,255,1);
}

.hero-replacement .xhero-hero {
  padding-top: 184px !important;
}

@media (max-width: 1180px) {
  .site-header .logo-img {
    height: 66px !important;
  }

  .site-header .sub-menu > .menu-btn,
  .site-header .sub-menu > .dropdown > .dropdown-toggle {
    font-size: 16px;
  }

  .hero-replacement .xhero-hero {
    padding-top: 170px !important;
  }
}

@media (max-width: 900px) {
  .site-header {
    padding-top: 14px !important;
  }

  .site-header .header-menu {
    padding: 14px !important;
  }

  .site-header .logo-img {
    height: 42px !important;
  }
}


/* HEADER REWORK ROUND 4: SLIM ONE-ROW MENU */
.site-header {
  padding-top: 18px !important;
}

.site-header .header-menu {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 18px !important;
  border-radius: 26px !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(239,245,255,0.99)) !important;
}

.site-header .header-menu::before {
  border-radius: inherit;
}

.site-header .header-top {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.site-header .logo {
  flex: 0 0 auto;
  justify-content: flex-start;
}

.site-header .logo-img {
  height: 68px !important;
}

.site-header .header-middle {
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
}

.site-header .contacts,
.site-header .callback-btn,
.site-header .sub-menu {
  display: none !important;
}

.site-header .header-actions {
  width: auto !important;
  margin-left: 0;
  justify-content: flex-end;
}

.site-header .main-nav {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
  width: 100%;
  max-width: 800px;
  padding: 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.site-header .main-nav > .menu-btn,
.site-header .main-nav > .dropdown {
  min-width: 0;
}

.site-header .main-nav > .dropdown {
  position: relative;
}

.site-header .main-nav > .menu-btn,
.site-header .main-nav > .dropdown > .dropdown-toggle {
  width: 100%;
  min-height: 50px;
  padding: 0 12px;
  justify-content: center;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.14) !important;
  border-radius: 16px;
  background: linear-gradient(180deg, #1a2d56 0%, #101f42 100%) !important;
  color: #f5f9ff !important;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  box-shadow: 0 14px 24px rgba(12, 26, 58, 0.18), inset 0 1px 0 rgba(255,255,255,0.08);
}

.site-header .main-nav > .menu-btn::before,
.site-header .main-nav > .dropdown > .dropdown-toggle::before {
  display: none !important;
}

.site-header .main-nav > .menu-btn:hover,
.site-header .main-nav > .menu-btn:focus-visible,
.site-header .main-nav > .dropdown > .dropdown-toggle:hover,
.site-header .main-nav > .dropdown > .dropdown-toggle:focus-visible {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #21396c 0%, #15284f 100%) !important;
  color: #ffffff !important;
  border-color: rgba(120, 176, 255, 0.34) !important;
  box-shadow: 0 18px 28px rgba(12, 26, 58, 0.22), inset 0 1px 0 rgba(255,255,255,0.10);
}

.site-header .main-nav > .menu-btn.is-active,
.site-header .main-nav > .dropdown > .dropdown-toggle.is-active {
  background: linear-gradient(180deg, #223d73 0%, #17305d 100%) !important;
  color: #ffffff !important;
  border-color: rgba(133, 188, 255, 0.55) !important;
}

.site-header .main-nav > .menu-btn.is-active::after,
.site-header .main-nav > .dropdown > .dropdown-toggle.is-active::after {
  left: 18px;
  right: 18px;
  bottom: 7px;
  background: linear-gradient(90deg, #79b4ff, #4d8dff);
}

.site-header .main-nav .dropdown-list {
  top: calc(100% + 10px);
  min-width: 320px;
  background: linear-gradient(180deg, rgba(17, 31, 66, 0.98), rgba(12, 24, 52, 0.98)) !important;
  border: 1px solid rgba(255,255,255,0.08) !important;
  box-shadow: 0 24px 42px rgba(8, 17, 36, 0.28) !important;
}

.site-header .main-nav .dropdown-item {
  color: #f0f6ff;
}

.site-header .main-nav .dropdown-item:hover {
  background: rgba(120, 176, 255, 0.14);
  color: #ffffff;
}

.hero-replacement .xhero-hero {
  padding-top: 156px !important;
}

.mobile-contacts,
.mobile-panel .callback-btn {
  display: none !important;
}

@media (max-width: 1180px) {
  .site-header .header-menu {
    max-width: 980px;
    padding: 14px 16px !important;
  }

  .site-header .header-top {
    gap: 18px;
  }

  .site-header .logo-img {
    height: 60px !important;
  }

  .site-header .main-nav {
    gap: 8px;
    max-width: 720px;
  }

  .site-header .main-nav > .menu-btn,
  .site-header .main-nav > .dropdown > .dropdown-toggle {
    min-height: 48px;
    padding: 0 10px;
    font-size: 14px;
  }

  .hero-replacement .xhero-hero {
    padding-top: 146px !important;
  }
}

@media (max-width: 900px) {
  .site-header .header-top {
    justify-content: space-between;
    gap: 12px;
  }

  .site-header .header-middle {
    display: none !important;
  }

  .site-header .header-actions {
    display: flex !important;
    width: auto !important;
  }

  .site-header .logo-img {
    height: 42px !important;
  }

  .hero-replacement .xhero-hero {
    padding-top: 126px !important;
  }
}


/* HEADER REWORK ROUND 5: CONTENT WIDTH + PROPORTIONAL BUTTONS */
.site-header .container {
  max-width: 1280px !important;
}

.site-header .header-menu {
  width: 100%;
  max-width: none !important;
  padding: 16px 20px !important;
}

.site-header .header-top {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 26px;
}

.site-header .logo {
  justify-content: flex-start;
}

.site-header .logo-img {
  height: 82px !important;
}

.site-header .header-middle {
  width: 100%;
  justify-content: center;
}

.site-header .header-actions {
  display: none !important;
}

.site-header .main-nav {
  display: flex !important;
  align-items: stretch;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: 100%;
}

.site-header .main-nav > .menu-btn,
.site-header .main-nav > .dropdown {
  flex: 0 1 auto;
  min-width: 0;
}

.site-header .main-nav > .menu-btn,
.site-header .main-nav > .dropdown > .dropdown-toggle {
  width: auto;
  min-width: max-content;
  padding: 0 18px;
  min-height: 52px;
  font-size: 15px;
  white-space: nowrap;
}

.site-header .main-nav > .dropdown {
  position: relative;
}

.site-header .main-nav > .dropdown > .dropdown-toggle {
  justify-content: center;
}

.site-header .main-nav .dropdown-list {
  min-width: 340px;
}

.hero-replacement .xhero-hero {
  padding-top: 164px !important;
}

@media (max-width: 1180px) {
  .site-header .header-top {
    gap: 18px;
  }

  .site-header .logo-img {
    height: 72px !important;
  }

  .site-header .main-nav {
    gap: 10px;
  }

  .site-header .main-nav > .menu-btn,
  .site-header .main-nav > .dropdown > .dropdown-toggle {
    padding: 0 14px;
    font-size: 14px;
  }

  .hero-replacement .xhero-hero {
    padding-top: 154px !important;
  }
}

@media (max-width: 900px) {
  .site-header .header-actions {
    display: flex !important;
  }

  .site-header .logo-img {
    height: 42px !important;
  }

  .hero-replacement .xhero-hero {
    padding-top: 126px !important;
  }
}


/* PRODUCT ORDER MODAL ENHANCEMENTS */
.phone-modal__field {
  display: grid;
  gap: 8px;
}

.phone-modal__textarea {
  width: 100%;
  min-height: 112px;
  padding: 16px 18px;
  border: 1px solid rgba(13, 32, 66, 0.12);
  border-radius: 16px;
  background: #ffffff;
  color: #0d2042;
  font-size: 16px;
  font-family: inherit;
  line-height: 1.5;
  resize: vertical;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.phone-modal__textarea:focus {
  outline: none;
  border-color: rgba(63, 133, 255, 0.7);
  box-shadow: 0 0 0 4px rgba(63, 133, 255, 0.12);
}

.phone-modal__input::placeholder,
.phone-modal__textarea::placeholder {
  color: #7a8aa5;
}


/* PRODUCT CARD IMAGE SUPPORT */
.product-media {
  padding: 16px;
}

.product-media__image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.product-media.has-image {
  background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
}

.product-media.has-image::before,
.product-media.has-image::after {
  opacity: 0;
}

.product-media.has-image .product-media__image {
  opacity: 1;
  transform: scale(1);
}

/* PRODUCT CARD IMAGE LUXURY POLISH */
.product-card {
  overflow: hidden;
}

.product-media {
  aspect-ratio: 4 / 3;
  height: auto;
  min-height: 220px;
  padding: 18px;
  border: 1px solid rgba(182, 197, 224, 0.48);
  border-radius: 24px;
  background:
    radial-gradient(circle at 22% 18%, rgba(123, 165, 255, 0.24), transparent 34%),
    radial-gradient(circle at 78% 20%, rgba(255, 255, 255, 0.92), transparent 22%),
    linear-gradient(180deg, #f8fbff 0%, #edf3fb 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 18px 36px rgba(30, 64, 120, 0.08);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease,
    background 0.28s ease;
}

.product-media::before {
  content: "Газгольдер";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  color: #51637d;
  opacity: 0.85;
}

.product-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), transparent 36%, rgba(255, 255, 255, 0.16) 100%),
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.48), transparent 26%);
  opacity: 0.95;
  pointer-events: none;
}

.product-card:hover .product-media {
  transform: translateY(-3px);
  border-color: rgba(123, 165, 255, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.98),
    0 26px 44px rgba(30, 64, 120, 0.14);
}

.product-media__image {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center center;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 18px 30px rgba(16, 31, 66, 0.18));
  transform: scale(1);
  transition: transform 0.32s ease, filter 0.32s ease, opacity 0.25s ease;
}

.product-card:hover .product-media__image {
  transform: scale(1.035);
  filter: drop-shadow(0 24px 40px rgba(16, 31, 66, 0.24));
}

.product-media.has-image {
  background:
    radial-gradient(circle at 24% 18%, rgba(114, 156, 243, 0.14), transparent 30%),
    linear-gradient(180deg, #fbfdff 0%, #eef4fb 100%);
}

.product-media.has-image::before {
  opacity: 0;
}

.product-media.has-image::after {
  opacity: 0.7;
}

@media (max-width: 1060px) {
  .product-media {
    min-height: 210px;
    padding: 16px;
  }
}

@media (max-width: 640px) {
  .product-card {
    padding: 18px;
    border-radius: 24px;
  }

  .product-media {
    aspect-ratio: 4 / 3;
    min-height: 0;
    padding: 14px;
    border-radius: 20px;
  }

  .product-media::before {
    left: 12px;
    right: 12px;
    bottom: 12px;
    font-size: 11px;
    letter-spacing: 0.14em;
  }
}

/* PRODUCT CARD IMAGE RESPONSIVE FINAL PASS */
.product-media {
  aspect-ratio: 4 / 3;
  min-height: clamp(200px, 18vw, 240px);
  align-items: center;
  justify-items: center;
}

.product-media__image {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: normal;
  image-rendering: auto;
}

.product-media.has-image {
  background:
    radial-gradient(circle at 24% 18%, rgba(114, 156, 243, 0.14), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #eef4fb 100%);
}

.product-media.has-image::after {
  opacity: 0.55;
  transition: opacity 0.28s ease;
}

.product-card:hover .product-media::after {
  opacity: 0.78;
}

.product-card:hover .product-media__image {
  transform: translateY(-2px) scale(1.035);
}

@media (max-width: 1060px) {
  .product-media {
    min-height: clamp(190px, 32vw, 228px);
  }
}

@media (max-width: 640px) {
  .product-media {
    min-height: clamp(180px, 58vw, 220px);
  }
}

/* ═══════════════════════════════════════
   INNER PAGE — АВТОНОМНАЯ ГАЗИФИКАЦИЯ
═══════════════════════════════════════ */

.inner-page--gasification .site-header .header-menu {
  background: linear-gradient(135deg, #0b1931 0%, #13284d 52%, #1d3d73 100%);
  box-shadow: 0 18px 42px rgba(10, 24, 49, 0.32);
}

.inner-page--gasification .site-header .menu-btn,
.inner-page--gasification .site-header .dropdown-toggle,
.inner-page--gasification .site-header .mobile-toggle,
.inner-page--gasification .site-header .mobile-panel .menu-btn,
.inner-page--gasification .site-header .mobile-services-toggle {
  background: #f8fbff;
  color: #13284d;
  border-color: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(5, 12, 26, 0.14);
}

.inner-page--gasification .site-header .menu-btn:hover,
.inner-page--gasification .site-header .dropdown-toggle:hover,
.inner-page--gasification .site-header .mobile-panel .menu-btn:hover,
.inner-page--gasification .site-header .mobile-services-toggle:hover,
.inner-page--gasification .site-header .mobile-toggle:hover {
  background: #ffffff;
  color: #0f2a52;
}

.inner-page--gasification .site-header .menu-btn.is-active,
.inner-page--gasification .site-header .dropdown-toggle.is-active {
  color: #0e2b56;
  background: linear-gradient(135deg, #ffffff 0%, #edf5ff 100%);
  border-color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 28px rgba(7, 15, 31, 0.2);
}

.inner-page--gasification .site-header .menu-btn.is-active::after,
.inner-page--gasification .site-header .dropdown-toggle.is-active::after {
  background: linear-gradient(90deg, #4ca7ff, #1c74ff);
}

.inner-page--gasification .site-header .dropdown-list {
  background: #102340;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 40px rgba(5, 12, 26, 0.26);
}

.inner-page--gasification .site-header .dropdown-item {
  background: rgba(255, 255, 255, 0.04);
  color: #edf5ff;
  border-radius: 12px;
}

.inner-page--gasification .site-header .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.inner-page--gasification .site-header .burger-line {
  background: #13284d;
}

.inner-page--gasification .inner-hero__grid--single {
  display: flex;
  justify-content: center;
}

.inner-page--gasification .inner-hero__content {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 48px 56px;
  text-align: center;
}

.inner-page--gasification .inner-hero__eyebrow {
  margin: 0 auto 20px;
}

.inner-page--gasification .inner-hero__content h1 {
  width: 100%;
  max-width: none;
  margin: 0 auto 20px;
  text-wrap: balance;
}

.inner-page--gasification .inner-hero__lead {
  max-width: 920px;
  margin: 0 auto 30px;
}

.inner-page--gasification .inner-hero__actions {
  justify-content: center;
}

.inner-page--gasification .inner-hero__chips {
  justify-content: center;
}

@media (max-width: 768px) {
  .inner-page--gasification .inner-hero__content {
    padding: 30px 22px;
  }

  .inner-page--gasification .inner-hero__content h1 {
    width: 100%;
    max-width: none;
    text-wrap: balance;
  }
}


.inner-page {
  background: linear-gradient(180deg, #f7fbff 0%, #eef4ff 42%, #f8fbff 100%);
}

.inner-main {
  padding-top: 156px;
}

.inner-breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
  color: #5b6b85;
  font-size: 14px;
}

.inner-breadcrumbs a {
  color: #235eb6;
}

.inner-breadcrumbs span::before {
  content: '•';
  margin-right: 10px;
  color: #8ca1c6;
}

.inner-hero {
  padding: 10px 0 60px;
}

.inner-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 420px);
  gap: 32px;
  align-items: stretch;
}


.inner-hero__grid--single {
  grid-template-columns: 1fr;
}

.inner-hero__grid--single .inner-hero__content {
  width: 100%;
  max-width: 100%;
}

.inner-hero__content,
.inner-hero__aside {
  min-width: 0;
}

.inner-hero__content {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(234, 242, 255, 0.9));
  border: 1px solid rgba(142, 175, 224, 0.35);
  border-radius: 34px;
  padding: 38px;
  box-shadow: 0 24px 70px rgba(35, 66, 117, 0.12);
}

.inner-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(57, 116, 211, 0.1);
  color: #1f5fb8;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}

.inner-hero__content h1 {
  font-size: clamp(36px, 4.4vw, 58px);
  line-height: 1.08;
  color: #102a54;
  margin-bottom: 18px;
  max-width: 18ch;
}

.inner-hero__lead {
  max-width: 720px;
  color: #495870;
  font-size: 18px;
  line-height: 1.75;
  margin-bottom: 28px;
}

.inner-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 28px;
}

.inner-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.inner-hero__chips span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(130, 160, 212, 0.28);
  box-shadow: 0 10px 24px rgba(54, 87, 142, 0.08);
  color: #1e3f74;
  font-weight: 600;
}

.inner-hero-card {
  height: 100%;
  background: linear-gradient(180deg, #1f5fb4 0%, #123869 100%);
  color: #ffffff;
  border-radius: 34px;
  padding: 32px;
  box-shadow: 0 24px 70px rgba(16, 42, 84, 0.24);
  display: flex;
  flex-direction: column;
}

.inner-hero-card__label {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.74);
  margin-bottom: 18px;
}

.inner-hero-card__list {
  list-style: none;
  display: grid;
  gap: 14px;
}

.inner-hero-card__list li {
  position: relative;
  padding-left: 22px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
}

.inner-hero-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #8ad1ff;
  box-shadow: 0 0 0 6px rgba(138, 209, 255, 0.14);
}

.inner-hero-card__meta {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding-top: 24px;
}

.inner-hero-card__meta div {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.inner-hero-card__meta strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
  margin-bottom: 6px;
}

.inner-hero-card__meta span {
  display: block;
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.74);
}

.works-section {
  padding: 44px 0 50px;
}

.works-section__header {
  margin-bottom: 32px;
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.work-card {
  background: #ffffff;
  border: 1px solid #e4ecf8;
  border-radius: 28px;
  padding: 18px;
  box-shadow: 0 22px 60px rgba(17, 43, 80, 0.08);
}

.work-card__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;          /* одинаковые пропорции у всех карточек */
  min-height: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #f3f6fc;          /* нейтральный фон по бокам */
  display: block;
}

.work-card__media.has-image {
  background: #f3f6fc;
}

.work-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;            /* картинка заполняет карточку целиком (как на контактах) */
  object-position: center;
  display: block;
  cursor: zoom-in;
}

.work-card__image[hidden] {
  display: none;
}

/* Плейсхолдер «Фото N / images/...» — показывается как fallback, если файл не найден */
.work-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px;
  text-align: center;
  color: #5a7096;
  background: #f3f6fc;
}

.work-card__placeholder[hidden] {
  display: none !important;
}

.work-card figcaption {
  padding: 18px 8px 6px;
  color: #334155;
  line-height: 1.7;
}

.gasification-seo {
  padding: 34px 0 80px;
}

.gasification-seo__wrap {
  background: #ffffff;
  border-radius: 34px;
  border: 1px solid #e3ebf8;
  box-shadow: 0 24px 70px rgba(16, 42, 84, 0.08);
  padding: 48px 34px;
}

.gasification-seo__header {
  margin-bottom: 34px;
}

.gasification-seo__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.seo-card {
  border-radius: 26px;
  background: linear-gradient(180deg, #f9fbff 0%, #eef4ff 100%);
  border: 1px solid rgba(148, 174, 220, 0.3);
  padding: 28px;
}

.seo-card--wide {
  grid-column: 1 / -1;
}

.seo-card h3 {
  color: #173d74;
  font-size: 26px;
  margin-bottom: 16px;
}

.seo-card p,
.seo-card li {
  color: #4d5b72;
  font-size: 16px;
  line-height: 1.85;
}

.seo-card ul {
  margin: 16px 0 0;
  padding-left: 20px;
}

.seo-card li + li {
  margin-top: 10px;
}

.seo-cta {
  margin-top: 28px;
  padding: 30px 28px;
  border-radius: 28px;
  background: linear-gradient(135deg, #153c71 0%, #255a9f 100%);
  color: #ffffff;
  box-shadow: 0 24px 64px rgba(21, 60, 113, 0.24);
}

.seo-cta h3 {
  font-size: clamp(28px, 4vw, 38px);
  margin-bottom: 10px;
}

.seo-cta p {
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.85);
}

.seo-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

@media (max-width: 1080px) {
  .inner-main {
    padding-top: 144px;
  }

  .inner-hero__grid,
  .gasification-seo__grid,
  .works-grid {
    grid-template-columns: 1fr;
  }

  .inner-hero__content h1 {
    max-width: none;
  }
}

@media (max-width: 768px) {
  .inner-main {
    padding-top: 124px;
  }

  .inner-hero {
    padding-top: 0;
  }

  .inner-hero__content,
  .inner-hero-card,
  .gasification-seo__wrap {
    padding: 26px 20px;
    border-radius: 26px;
  }

  .inner-hero__lead,
  .seo-cta p,
  .seo-card p,
  .seo-card li {
    font-size: 15px;
  }

  .inner-hero-card__meta {
    grid-template-columns: 1fr;
  }

  .work-card {
    padding: 14px;
    border-radius: 24px;
  }

 .work-card__media {
    aspect-ratio: 4 / 3;
    min-height: 0;
    border-radius: 18px;
  }

  .gasification-seo {
    padding-bottom: 60px;
  }

  .seo-card {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .seo-card h3 {
    font-size: 22px;
  }
}


/* MINI GASHOLDERS PAGE */
.inner-page--mini .product-media::before {
  content: "Минигазгольдер";
}

.inner-page--mini .inner-hero__content {
  text-align: center;
}

.inner-page--mini .inner-hero__content h1 {
  max-width: none;
}


/* ═══════════════════════════════════════
   INNER PAGE — КОНТАКТЫ
═══════════════════════════════════════ */
.inner-page--contacts .site-header .header-menu {
  background: linear-gradient(135deg, #0b1931 0%, #13284d 52%, #1d3d73 100%);
  box-shadow: 0 18px 42px rgba(10, 24, 49, 0.32);
}

.inner-page--contacts .site-header .menu-btn,
.inner-page--contacts .site-header .dropdown-toggle,
.inner-page--contacts .site-header .mobile-toggle,
.inner-page--contacts .site-header .mobile-panel .menu-btn,
.inner-page--contacts .site-header .mobile-services-toggle {
  background: #f8fbff;
  color: #13284d;
  border-color: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(5, 12, 26, 0.14);
}

.inner-page--contacts .site-header .menu-btn:hover,
.inner-page--contacts .site-header .dropdown-toggle:hover,
.inner-page--contacts .site-header .mobile-panel .menu-btn:hover,
.inner-page--contacts .site-header .mobile-services-toggle:hover,
.inner-page--contacts .site-header .mobile-toggle:hover {
  background: #ffffff;
  color: #0f2a52;
}

.inner-page--contacts .site-header .menu-btn.is-active,
.inner-page--contacts .site-header .dropdown-toggle.is-active {
  color: #0e2b56;
  background: linear-gradient(135deg, #ffffff 0%, #edf5ff 100%);
  border-color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 28px rgba(7, 15, 31, 0.2);
}

.inner-page--contacts .site-header .menu-btn.is-active::after,
.inner-page--contacts .site-header .dropdown-toggle.is-active::after {
  background: linear-gradient(90deg, #4ca7ff, #1c74ff);
}

.inner-page--contacts .site-header .dropdown-list {
  background: #102340;
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 18px 40px rgba(5, 12, 26, 0.26);
}

.inner-page--contacts .site-header .dropdown-item {
  background: rgba(255, 255, 255, 0.04);
  color: #edf5ff;
  border-radius: 12px;
}

.inner-page--contacts .site-header .dropdown-item:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.inner-page--contacts .site-header .burger-line {
  background: #13284d;
}

.contacts-hero__content {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 48px 56px;
  text-align: center;
}

.contacts-hero__content .inner-hero__eyebrow {
  margin: 0 auto 20px;
}

.contacts-hero__content h1 {
  width: 100%;
  max-width: none;
  margin: 0 auto 18px;
  text-wrap: balance;
}

.contacts-hero__lead {
  max-width: 760px;
  margin: 0 auto 30px;
  font-size: 24px;
  font-weight: 700;
  color: #17396d;
}

.contacts-office-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.contacts-info-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 26px 24px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(148, 176, 220, 0.28);
  box-shadow: 0 16px 34px rgba(38, 72, 128, 0.08);
}

.contacts-info-card--wide {
  grid-column: 1 / -1;
}

.contacts-info-card--phone {
  grid-column: 1 / -1;
  width: 100%;
  max-width: 460px;
  justify-self: center;
}

.contacts-info-card__label,
.contacts-legal-card__label {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #5b78aa;
}

.contacts-info-card__value {
  margin: 0;
  font-size: 22px;
  line-height: 1.5;
  color: #102a54;
  font-weight: 700;
}

.contacts-info-card__value--link {
  color: #0f4fb4;
}

.contacts-hero__actions {
  justify-content: center;
}

.office-gallery-section,
.contacts-legal-section,
.contacts-map-section {
  padding: 0 0 72px;
}

.office-gallery-section__header,
.contacts-legal-section__header,
.contacts-map-section__header {
  margin-bottom: 28px;
}

.office-slider {
  position: relative;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) 60px;
  gap: 18px;
  align-items: center;
}

.office-slider__viewport {
  overflow: hidden;
}

.office-slider__track {
  display: flex;
  transition: transform 0.45s ease;
  will-change: transform;
}

.office-slide {
  flex: 0 0 100%;
  min-width: 100%;
}

.office-slide__media {
  position: relative;
  min-height: 420px;
  border-radius: 30px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(240, 246, 255, 0.96), rgba(222, 234, 251, 0.9));
  border: 1px solid rgba(141, 171, 216, 0.3);
  box-shadow: 0 24px 60px rgba(30, 59, 109, 0.12);
}

.office-slide__image {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

.office-slide__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  color: #23406d;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.92), rgba(236, 243, 255, 0.96)), linear-gradient(145deg, rgba(240, 246, 255, 0.96), rgba(222, 234, 251, 0.9));
}

.office-slide__placeholder strong {
  font-size: 28px;
  line-height: 1.1;
}

.office-slide__placeholder span {
  font-size: 15px;
  line-height: 1.5;
  color: #5a7096;
}

.office-slider__nav {
  width: 60px;
  height: 60px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff, #e8f1ff);
  box-shadow: 0 16px 34px rgba(25, 54, 102, 0.16);
  color: #15386b;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.office-slider__nav:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(25, 54, 102, 0.2);
}

.office-slider__nav:disabled {
  opacity: 0.45;
  cursor: default;
}

.office-slider__dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.office-slider__dot {
  width: 11px;
  height: 11px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  background: rgba(25, 56, 107, 0.22);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.office-slider__dot.is-active {
  background: #1756bf;
  transform: scale(1.22);
}

.contacts-legal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.9fr);
  gap: 24px;
}

.contacts-legal-card,
.contacts-map-card {
  padding: 32px;
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(236, 244, 255, 0.92));
  border: 1px solid rgba(141, 171, 216, 0.3);
  box-shadow: 0 20px 54px rgba(31, 60, 110, 0.1);
}

.contacts-legal-card__text,
.contacts-requisites p {
  margin: 0;
  color: #1e3254;
  font-size: 18px;
  line-height: 1.78;
}

.contacts-legal-card__text {
  margin-top: 16px;
}

.contacts-requisites {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.contacts-map-card__embed {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  border-radius: 24px;
  overflow: hidden;
  background: #edf4ff;
}

.contacts-map-card__embed > div,
.contacts-map-card__embed iframe,
.contacts-map-card__embed ymaps,
.contacts-map-card__embed [class*="ymaps"] {
  max-width: 100% !important;
}

@media (max-width: 1024px) {
  .contacts-hero__content {
    padding: 40px 34px;
  }

  .office-slider {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
    gap: 14px;
  }

  .office-slider__nav {
    width: 48px;
    height: 48px;
    font-size: 30px;
  }

  .contacts-legal-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .contacts-hero__content {
    padding: 30px 22px;
  }

  .contacts-office-grid {
    grid-template-columns: 1fr;
  }

  .contacts-info-card--wide {
    grid-column: auto;
  }

  .contacts-info-card__value,
  .contacts-legal-card__text,
  .contacts-requisites p {
    font-size: 17px;
  }

  .office-gallery-section,
  .contacts-legal-section,
  .contacts-map-section {
    padding-bottom: 56px;
  }

  .office-slider {
    grid-template-columns: 1fr;
  }

  .office-slider__viewport {
    order: 1;
  }

  .office-slider__nav {
    display: none;
  }

  .office-slide__media,
  .office-slide__image {
    min-height: 280px;
  }

  .contacts-legal-card,
  .contacts-map-card {
    padding: 24px 18px;
    border-radius: 24px;
  }
}


.office-lightbox {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background: rgba(6, 14, 32, 0.82);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 1200;
}

.office-lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.office-lightbox__backdrop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: min(1100px, 100%);
  max-height: 100%;
}

.office-lightbox__image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 140px);
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  object-fit: contain;
  background: #fff;
}

.office-lightbox__caption {
  margin: 0;
  text-align: center;
  color: #eef5ff;
  font-size: 16px;
  line-height: 1.5;
}

.office-lightbox__close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.office-lightbox__close:hover {
  transform: scale(1.04);
  background: rgba(255, 255, 255, 0.22);
}

body.office-lightbox-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .office-lightbox {
    padding: 16px;
  }

  .office-lightbox__image {
    max-height: calc(100vh - 110px);
    border-radius: 18px;
  }

  .office-lightbox__close {
    top: 14px;
    right: 14px;
    width: 46px;
    height: 46px;
    font-size: 30px;
  }
}


.office-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.office-gallery-card {
  min-width: 0;
}

.office-photo-card {
  position: relative;
  min-height: 360px;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(240, 246, 255, 0.96), rgba(222, 234, 251, 0.9));
  border: 1px solid rgba(141, 171, 216, 0.3);
  box-shadow: 0 24px 60px rgba(30, 59, 109, 0.12);
}

.office-photo-card__image {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

.office-photo-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
  color: #23406d;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.92), rgba(236, 243, 255, 0.96)), linear-gradient(145deg, rgba(240, 246, 255, 0.96), rgba(222, 234, 251, 0.9));
}

.office-photo-card__placeholder strong {
  font-size: 28px;
  line-height: 1.1;
}

.office-photo-card__placeholder span {
  font-size: 15px;
  line-height: 1.5;
  color: #5a7096;
}

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

  .office-photo-card,
  .office-photo-card__image {
    min-height: 280px;
  }
}


/* scroll-anchor offset for fixed header */
.section-anchor { scroll-margin-top: 140px; }
#order, #callback, #contacts, #works, #seo, #gasholders, #services { scroll-margin-top: 140px; }
@media (max-width: 768px) {
  .section-anchor { scroll-margin-top: 110px; }
  #order, #callback, #contacts, #works, #seo, #gasholders, #services { scroll-margin-top: 110px; }
}
/* ═══════════════════════════════════════
   ФОТОГРАФИИ ОФИСА — отображение целиком
   ═══════════════════════════════════════ */
.office-photo-card__placeholder[hidden] {
  display: none !important;
}

.office-photo-card {
  aspect-ratio: 4 / 3;
  min-height: 0;
  background: #f3f6fc;
  overflow: hidden;
}

.office-photo-card__image {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;       /* картинка заполняет карточку целиком */
  object-position: center;
  display: block;
  background: #f3f6fc;
  cursor: zoom-in;
}

.office-photo-card__image[hidden] {
  display: none;
}