/* ============================================
   POWERSTART — Page Layouts
   ============================================ */

/* ═══════════ HERO (full viewport, dark) ═══════════ */
.hero {
  position: relative;
  min-height: 100vh; /* fallback для Safari ≤15.3 */
  min-height: 100dvh; /* учитывает динамический mobile-toolbar */
  display: flex;
  align-items: center;
  padding: 140px 0 100px;
  background: var(--navy-900);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
}
#hero-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 130%;
  min-height: 130%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26,29,35,0.6) 0%, rgba(26,29,35,0.35) 35%, rgba(26,29,35,0.35) 65%, rgba(26,29,35,0.6) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}
.hero__title {
  color: #fff;
  margin-bottom: 24px;
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.hero__subtitle {
  color: #fff;
  font-size: clamp(16px, 1.6vw, 20px);
  line-height: 1.6;
  font-weight: 300;
  max-width: 540px;
  margin-bottom: 40px;
}
.hero__actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero__scroll {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.hero__scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(180deg, rgba(255,255,255,0.4), transparent);
  animation: scrollBounce 2.5s ease-in-out infinite;
}


/* ═══════════ PAGE HERO (sub-pages, shorter) ═══════════ */
.page-hero {
  position: relative;
  padding: 160px 0 80px;
  background: var(--navy-900);
  overflow: hidden;
}
.page-hero--catalog {
  padding: 160px 0 120px;
  min-height: 420px;
}
.page-hero__bg {
  position: absolute; inset: 0;
}
.page-hero__bg-img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.page-hero__overlay {
  position: absolute; inset: 0;
  background: var(--grad-hero);
}
.page-hero__content {
  position: relative;
  z-index: 2;
}
.page-hero__title {
  color: #fff;
  margin-top: 16px;
  max-width: 600px;
  text-shadow: 0 2px 24px rgba(0,0,0,0.5);
}
.page-hero__title span {
  color: var(--teal-bright);
  text-shadow: 0 2px 24px rgba(0,0,0,0.4);
}
.page-hero__subtitle {
  color: #fff;
  font-size: 18px;
  margin-top: 16px;
  text-shadow: 0 1px 16px rgba(0,0,0,0.4);
  max-width: 500px;
  font-weight: 300;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--gray-400); transition: color 0.2s var(--ease); }
.breadcrumb a:hover { color: var(--teal-bright); }
.breadcrumb__sep { color: var(--gray-600); }


/* ═══════════ STATS SECTION ═══════════ */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.stats-text h2 { text-transform: none; }
.stats-numbers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}


/* ═══════════ PRODUCT CAROUSEL ═══════════ */
.carousel-wrap { position: relative; }
.carousel__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 24px;
  -webkit-overflow-scrolling: touch;
  padding: 8px 0 24px;
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }

.carousel-card {
  flex: 0 0 320px;
  scroll-snap-align: start;
  background: var(--bg-white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.4s var(--ease);
  display: flex;
  flex-direction: column;
}
.carousel-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--navy-600);
}
.carousel-card__imgwrap {
  height: 200px;
  overflow: hidden;
  position: relative;
}
.carousel-card__imgwrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.carousel-card:hover .carousel-card__imgwrap img { transform: scale(1.05); }
.carousel-card__overlay {
  position: absolute; inset: 0;
  background: var(--grad-card-overlay);
}
.carousel-card__body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.carousel-card__num {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 300;
  color: var(--gray-100);
  line-height: 1;
}
.carousel-card__title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dark);
  text-transform: none;
  line-height: 1.3;
  margin: 8px 0;
}
.carousel-card__desc {
  font-size: 14px;
  color: var(--text-muted);
  flex: 1;
}
.carousel-card__link {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-600);
  margin-top: 16px;
  transition: color 0.2s var(--ease);
}
.carousel-card:hover .carousel-card__link { color: var(--teal-text); }

/* Carousel buttons */
.carousel-btn {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 10;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--gray-200);
  background: var(--bg-white);
  color: var(--text-dark);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s var(--ease);
}
.carousel-btn:hover {
  background: var(--navy-600);
  color: #fff;
  border-color: var(--navy-600);
}
.carousel-btn--prev { left: -22px; }
.carousel-btn--next { right: -22px; }

/* ═══════════ PRODUCTS BENTO GRID ═══════════ */
.products-bento {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: minmax(280px, auto);
  gap: 20px;
}
.prod-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  text-decoration: none;
  color: #fff;
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.45s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
  cursor: pointer;
}
.prod-card--hero {
  min-height: 380px;
}
.prod-card__img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}
.prod-card:hover .prod-card__img {
  transform: scale(1.08);
}
.prod-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26,29,35,0.1) 0%,
    rgba(26,29,35,0.45) 40%,
    rgba(26,29,35,0.88) 100%
  );
  transition: background 0.4s var(--ease);
}
.prod-card:hover .prod-card__overlay {
  background: linear-gradient(
    180deg,
    rgba(26,29,35,0.05) 0%,
    rgba(26,29,35,0.3) 40%,
    rgba(26,29,35,0.82) 100%
  );
}
.prod-card__content {
  position: relative;
  z-index: 2;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1;
  min-height: 100%;
}
.prod-card__badge {
  position: absolute;
  top: 20px; right: 20px;
  background: rgba(255,255,255,0.12);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.9);
  text-transform: uppercase;
}
.prod-card__num {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 300;
  line-height: 1;
  color: rgba(255,255,255,0.07);
  margin-bottom: -12px;
}
.prod-card__title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
  margin: 12px 0 8px;
  text-transform: none;
}
.prod-card--hero .prod-card__title {
  font-size: 20px;
}
.prod-card__desc {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(255,255,255,0.7);
  max-width: 380px;
}
.prod-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--teal-bright);
  margin-top: 16px;
}
.prod-card__link span {
  display: inline-block;
  transition: transform 0.3s var(--ease);
}
.prod-card:hover .prod-card__link span {
  transform: translateX(6px);
}
.prod-card:hover {
  box-shadow: 0 24px 64px rgba(0,0,0,0.25);
}
@media (max-width: 768px) {
  .products-bento {
    grid-template-columns: 1fr;
  }
  .prod-card--hero { min-height: 300px; }
  .prod-card { min-height: 260px; }
}
@media (max-width: 480px) {
  .prod-card__title { font-size: 18px; }
  .prod-card--hero .prod-card__title { font-size: 20px; }
  .prod-card__content { padding: 24px; }
}


/* ═══════════ FEATURED PRODUCTS (key section) ═══════════ */
.featured-product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 80px 0;
  border-bottom: 1px solid var(--gray-100);
}
.featured-product:last-child { border-bottom: none; }
.featured-product--reverse { direction: rtl; }
.featured-product--reverse > * { direction: ltr; }

.featured-product__visual {
  position: relative;
}
.featured-product__img-wrap {
  background: var(--navy-900);
  border: none;
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
}
.featured-product__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease);
}
.featured-product:hover .featured-product__img { transform: scale(1.05); }

.featured-product__info {}
.featured-product__specs {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 32px;
}
.spec-item {}
.spec-item__value {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 400;
  color: var(--teal-bright);
  line-height: 1;
  letter-spacing: -0.02em;
}
.spec-item__unit {
  font-size: 0.4em;
  font-weight: 500;
  color: var(--gray-400);
  vertical-align: super;
  margin-left: 2px;
}
.spec-item__label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}


/* ═══════════ MARQUEE (areas of application) ═══════════ */
.marquee-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  flex-shrink: 0;
}
.marquee-item img {
  width: 260px; height: 180px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--gray-200);
  transition: all 0.3s var(--ease);
}
.marquee-item:hover img {
  border-color: var(--navy-600);
  box-shadow: 0 6px 20px rgba(242,122,26,0.2);
  transform: scale(1.05);
}
.marquee-item span {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-body);
  white-space: nowrap;
}


/* ═══════════ CERTIFICATIONS GRID ═══════════ */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}


/* ═══════════ NEWS GRID ═══════════ */
.news-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}
.news-card--featured .news-card__img { height: 320px; }
.news-side { display: flex; flex-direction: column; gap: 24px; }
.news-side .news-card__img { height: 180px; }


/* ═══════════ VIDEO SHOWCASE ═══════════ */
.video-showcase__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 20px;
}
.video-showcase__item {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  background: var(--navy-900);
}
.video-showcase__item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 320px;
}
@media (max-width: 768px) {
  .video-showcase__grid { grid-template-columns: 1fr; }
  .video-showcase__item video { min-height: 220px; }
}


/* ═══════════ CTA SECTION ═══════════ */
.cta-section {
  position: relative;
  padding: 120px 0;
  overflow: hidden;
}
.cta-section__bg {
  position: absolute; inset: 0;
  background: var(--grad-footer);
}
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.cta-form-wrap {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 40px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}


/* ═══════════ FILTER BAR (catalog) ═══════════ */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--gray-200);
}
.filter-tab {
  padding: 10px 24px;
  border-radius: 4px;
  border: 1px solid var(--gray-200);
  background: var(--bg-white);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
  min-height: 40px;
}
.filter-tab:hover { border-color: var(--navy-600); color: var(--navy-600); }
.filter-tab:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
.filter-tab:active { transform: scale(0.97); }
.filter-tab--active { background: var(--navy-600); color: #fff; border-color: var(--navy-600); }


/* ═══════════ SUB-FILTER (DC subsections) ═══════════ */
.subfilter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: -24px 0 32px;
  padding: 16px 20px;
  background: linear-gradient(135deg, rgba(242,122,26,0.06) 0%, rgba(242,122,26,0.02) 100%);
  border: 1px solid rgba(242,122,26,0.18);
  border-radius: 14px;
  align-items: center;
  animation: subfilterIn 0.28s var(--ease) both;
}
.subfilter__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--teal-text, #B55400);
  margin-right: 4px;
}
.subfilter[hidden] { display: none; }
.subfilter-tab {
  padding: 8px 18px;
  border-radius: 100px;
  border: 1.5px solid rgba(242,122,26,0.25);
  background: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
}
.subfilter-tab:hover {
  border-color: var(--teal);
  color: var(--teal-text, #B55400);
  transform: translateY(-1px);
}
.subfilter-tab--active {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
  box-shadow: 0 4px 14px rgba(242,122,26,0.25);
}
@keyframes subfilterIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ═══════════ DC LEAFLET CTA ═══════════ */
.dc-leaflet-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 28px;
  margin-bottom: 36px;
  background: linear-gradient(135deg, var(--navy-900) 0%, #2A2D34 100%);
  border-radius: 16px;
  color: #fff;
  box-shadow: 0 12px 32px rgba(26,29,35,0.18);
  animation: subfilterIn 0.32s var(--ease) both;
}
.dc-leaflet-cta[hidden] { display: none; }
.dc-leaflet-cta__content {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
  min-width: 0;
}
.dc-leaflet-cta__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-bright) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: 0 6px 18px rgba(242,122,26,0.4);
}
.dc-leaflet-cta__title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 2px;
}
.dc-leaflet-cta__desc {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  line-height: 1.5;
}
.dc-leaflet-cta__btn { flex-shrink: 0; }

@media (max-width: 640px) {
  .dc-leaflet-cta { flex-direction: column; align-items: stretch; padding: 18px 20px; }
  .dc-leaflet-cta__btn { width: 100%; justify-content: center; }
}


/* ═══════════ CATALOG GRID ═══════════ */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}


/* ═══════════ SERVICE BLOCKS — SLIDE IN LEFT/RIGHT ═══════════ */
.section--svc-stack {
  overflow: hidden; /* fallback для Safari ≤15.3 */
  overflow: clip;   /* без clipping-context — без scroll, лучше для children */
}
.service-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px 40px;
  border-radius: 20px;
  margin-bottom: 28px;
  transition: transform 0.8s var(--ease-out), box-shadow 0.3s var(--ease);
  will-change: transform;
}
/* Slide from left (odd) — starts off-screen */
.service-block:nth-child(odd) {
  transform: translateX(calc(-100% - 100px));
}
/* Slide from right (even) — starts off-screen */
.service-block:nth-child(even) {
  transform: translateX(calc(100% + 100px));
  direction: rtl;
}
.service-block:nth-child(even) > * { direction: ltr; }
/* Visible state */
.service-block.svc-in {
  transform: translateX(0);
}
.service-block:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}

/* ── Alternating backgrounds: white & orange ── */
.service-block:nth-child(odd) {
  background: var(--bg-white);
  border: 1px solid var(--gray-200);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.service-block:nth-child(even) {
  background: linear-gradient(135deg, #F27A1A 0%, #FF922B 100%);
  border: none;
  box-shadow: 0 4px 24px rgba(242,122,26,0.2);
}
/* Text colors on orange cards */
.service-block:nth-child(even) .service-block__number { color: rgba(255,255,255,0.25); }
.service-block:nth-child(even) .tag { color: rgba(255,255,255,0.7); }
.service-block:nth-child(even) h3 { color: #fff; }
.service-block:nth-child(even) p { color: rgba(255,255,255,0.85); }

/* ── Elements ── */
.service-block__img-wrap {
  border-radius: 14px;
  overflow: hidden;
}
.service-block__img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.service-block:hover .service-block__img { transform: scale(1.06); }
.service-block__body {
  display: flex;
  flex-direction: column;
}
.service-block__number {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 300;
  color: var(--teal-pale);
  line-height: 1;
  margin-bottom: 12px;
}
.service-block__body h3 {
  text-transform: none;
  margin: 8px 0 12px;
}
.service-block__body p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* Featured (06 тест-драйв) */
.service-block--featured {
  background: linear-gradient(135deg, #1A1D23 0%, #252830 100%) !important;
  border: 1px solid rgba(242,122,26,0.3) !important;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2) !important;
}
.service-block--featured .service-block__number { color: rgba(242,122,26,0.3); }
.service-block--featured .tag { color: var(--teal-bright); }
.service-block--featured h3 { color: #fff; }
.service-block--featured p { color: var(--text-light); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .service-block {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 24px;
  }
  .service-block:nth-child(even) { direction: ltr; }
  .service-block__img { height: 220px; }
  .service-block:nth-child(odd) { transform: translateX(calc(-100% - 60px)); }
  .service-block:nth-child(even) { transform: translateX(calc(100% + 60px)); }
}
@media (max-width: 480px) {
  .service-block { padding: 20px; margin-bottom: 20px; }
  .service-block__img { height: 180px; }
  .service-block__number { font-size: 40px; }
}


/* ═══════════ CONTACT PAGE ═══════════ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.contact-info-item {
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--gray-100);
}
.contact-info-item__icon {
  width: 44px; height: 44px;
  border-radius: 8px;
  background: rgba(242,122,26,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-600);
  flex-shrink: 0;
}
.contact-info-item__label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
  margin-bottom: 4px;
}
.contact-info-item__value {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-dark);
}
.contact-info-item__value a { color: var(--text-dark); }
.contact-info-item__value a:hover { color: var(--navy-600); }

.contact-map {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  height: 460px;
  box-shadow: 0 12px 32px rgba(26,29,35,0.10);
}
/* Inline variant — карта внутри колонки с контактной инфой (меньше высота) */
.contact-map--inline { height: 320px; }
.contact-map iframe { width: 100%; height: 100%; border: none; display: block; }
.contact-map__sub {
  color: var(--text-muted);
  font-size: 15px;
  margin-top: 12px;
  line-height: 1.6;
}
.contact-map__actions {
  display: flex;
  gap: 14px;
  margin-top: 24px;
  flex-wrap: wrap;
}
@media (max-width: 640px) {
  .contact-map { height: 320px; }
  .contact-map__actions { gap: 10px; }
  .contact-map__actions .btn { flex: 1 1 100%; justify-content: center; }
}


/* ═══════════ PRODUCT DETAIL (hero) ═══════════ */
.product-hero {
  padding: 130px 0 0;
  background: var(--navy-900);
  position: relative;
  overflow: hidden;
}
.product-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  padding-bottom: 80px;
}

/* Product detail — 2-col grid: левый (характеристики) + правый (описание/совместимость, sticky) */
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.product-detail-grid__h2 { margin-bottom: 40px; }
.product-detail-grid__side {
  position: sticky;
  top: 100px;
  padding: 28px 32px;
  background: rgba(242, 122, 26, 0.035);
  border-left: 2px solid var(--teal);
  border-radius: 0 10px 10px 0;
}
.product-detail-grid__desc {
  margin: 16px 0 32px;
  line-height: 1.7;
  text-align: justify;
  text-justify: inter-word;
  -webkit-hyphens: auto;
  hyphens: auto;
}
@media (max-width: 600px) {
  .product-detail-grid__desc {
    text-align: left;
    -webkit-hyphens: none;
    hyphens: none;
  }
}
.product-detail-grid__compat-tag { margin-bottom: 12px; margin-top: 8px; }
.product-detail-grid__compat-list {
  list-style: disc;
  padding-left: 20px;
  color: var(--text-body);
  font-size: 14px;
  line-height: 2;
  margin: 0;
}
.product-visual__main {
  background: var(--navy-900);
  border: none;
  border-radius: 14px;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  position: relative;
}
.product-visual__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}
/* Gallery thumbnails under the main product image */
.product-visual__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.product-visual__thumb {
  background: var(--navy-900);
  border: 2px solid transparent;
  border-radius: 10px;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  transition: border-color .15s ease, transform .15s ease;
}
.product-visual__thumb:hover { transform: translateY(-2px); border-color: rgba(255,122,26,0.5); }
.product-visual__thumb:focus-visible { outline: 2px solid var(--teal-bright); outline-offset: 2px; }
.product-visual__thumb.is-active { border-color: var(--teal); }
.product-visual__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 600px) {
  .product-visual__thumbs { grid-template-columns: repeat(3, 1fr); }
}
.product-info { color: #fff; }
.product-info__category {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 12px;
}
.product-info__title {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  color: #fff;
  margin-bottom: 20px;
  text-transform: uppercase;
}
.product-info__desc {
  color: var(--text-light);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
  font-weight: 300;
}

/* Key specs (big numbers) */
.key-specs {
  display: flex;
  gap: 32px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.key-specs[hidden] { display: none; }

/* Каталог продукции — список пунктов вместо specs-table (аксессуары) */
.product-catalog-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  display: grid;
  gap: 10px;
}
.product-catalog-list__item {
  position: relative;
  padding: 14px 18px 14px 42px;
  background: var(--bg-white);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  color: var(--text-dark);
  font-size: 16px;
  line-height: 1.5;
}
.product-catalog-list__item::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal);
  /* fallback для Safari ≤16.3 / старого Firefox без поддержки color-mix */
  box-shadow: 0 0 0 4px rgba(242, 122, 26, 0.2);
}
@supports (background: color-mix(in srgb, red, blue)) {
  .product-catalog-list__item::before {
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--teal) 20%, transparent);
  }
}
.key-spec {}
.key-spec__value {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 400;
  color: var(--teal-bright);
  line-height: 1;
  letter-spacing: -0.03em;
}
.key-spec__unit {
  font-size: 0.4em;
  font-weight: 500;
  color: rgba(255,255,255,0.3);
  vertical-align: super;
  margin-left: 2px;
}
.key-spec__label {
  font-size: 11px;
  color: var(--gray-500);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

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


/* ═══════════ ABOUT PAGE ═══════════ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.about-story-text p {
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
}
.about-adv__sub {
  color: var(--text-muted);
  font-size: clamp(15px, 1.3vw, 17px);
  margin-top: 14px;
  line-height: 1.6;
}
.about-img-wrap {
  border-radius: 12px;
  overflow: hidden;
}
.about-img-wrap img {
  width: 100%;
  height: 450px;
  object-fit: cover;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 1024px) {
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Documents grid (certificates + diplomas) */
.about-cert__sub {
  color: var(--text-muted);
  font-size: clamp(14px, 1.2vw, 16px);
  margin-top: 12px;
  line-height: 1.6;
}
.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
  margin-top: 16px;
}
.doc-tile {
  display: block;
  background: var(--bg-white);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.doc-tile:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
  border-color: var(--teal);
}
.doc-tile img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  background: #fff;
}
.doc-tile__caption {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-dark);
  padding: 10px 12px;
  text-align: center;
  line-height: 1.35;
  background: #fff;
}
.advantage-card {
  background: var(--bg-white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 32px;
  transition: all 0.3s var(--ease);
}
.advantage-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.advantage-card__icon {
  width: 48px; height: 48px;
  border-radius: 10px;
  background: rgba(242,122,26,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-600);
  margin-bottom: 20px;
}
.advantage-card__title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 500;
  color: var(--text-dark);
  margin-bottom: 8px;
  text-transform: none;
}
.advantage-card__text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}


/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 1024px) {
  .featured-product,
  .service-block,
  .cta-grid,
  .contact-grid,
  .about-grid { gap: 48px; }
  .carousel-card { flex: 0 0 280px; }
  .product-layout { gap: 48px; }
}

@media (max-width: 768px) {
  .hero { min-height: 85vh; padding: 100px 0 60px; }
  .hero__scroll { display: none; }
  .hero__bg { background: var(--navy-900); }
  .hero__content { max-width: 100%; }
  .hero__title { font-size: clamp(26px, 5.5vw, 40px); }
  .hero__thesis { display: none; }
  .about-grid p { text-align: left !important; }

  .stats-grid,
  .stats-numbers,
  .featured-product,
  .cta-grid,
  .contact-grid,
  .about-grid,
  .product-layout { grid-template-columns: 1fr; }

  .featured-product { gap: 40px; padding: 40px 0; }
  .featured-product--reverse { direction: ltr; }

  .news-grid { grid-template-columns: 1fr; }
  .certs-grid { grid-template-columns: 1fr; gap: 16px; }
  .advantages-grid { grid-template-columns: 1fr; }

  .carousel-card { flex: 0 0 260px; }
  .carousel-btn { display: none; }

  .page-hero { padding: 120px 0 60px; }

  .product-visual__main { min-height: 260px; padding: 0; }
  .about-img-wrap img { height: 300px; }

  /* Product detail: inline 2-col grid to single column (match both with/without space after colon) */
  .specs-table + div,
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; gap: 40px !important; }
  .product-detail-grid { grid-template-columns: 1fr; gap: 40px; }
  .product-detail-grid__side { position: static; top: auto; padding: 24px; }

  /* CTA grid: reduce gap on mobile */
  .cta-grid { gap: 40px; }

  /* Contact map: ensure proper height on mobile */
  .contact-map { height: 300px; }

  /* Catalog grid: single column fallback on narrow screens */
  .catalog-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero__title { font-size: clamp(22px, 5vw, 32px); }
  .hero__subtitle { font-size: 14px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .key-specs { gap: 20px; }
  .about-img-wrap img { height: 220px; }
  .carousel-card { flex: 0 0 85vw; max-width: 300px; }
  .marquee-item img { width: 200px; height: 140px; }
  .filter-bar { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; padding-bottom: 12px; }
  .filter-tab { flex-shrink: 0; }
  .subfilter { overflow-x: auto; flex-wrap: nowrap; -webkit-overflow-scrolling: touch; }
  .subfilter::before { flex-shrink: 0; }
  .subfilter-tab { flex-shrink: 0; }

  /* Product detail: reduce visual main height */
  .product-visual__main { min-height: 200px; }

  /* Product actions: full-width buttons */
  .product-actions { flex-direction: column; }
  .product-actions .btn { width: 100%; justify-content: center; text-align: center; }

  /* Stats numbers: single column on small phones */
  .stats-numbers { gap: 24px; }

  /* CTA form: reduce padding */
  .cta-form-wrap { padding: 24px; }

  /* Page hero: tighter padding */
  .page-hero { padding: 100px 0 40px; }
  .page-hero__subtitle { font-size: 15px; }
}

/* ═══════════ MOBILE PERFORMANCE ═══════════ */
@media (max-width: 768px) {
  .glow { display: none; }
  .nav--scrolled { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .cta-form-wrap { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .bento-item { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .prod-card__badge { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
}

/* ═══════════ DIMENSIONS SCHEME (product page) ═══════════ */
.dimensions-scheme {
  margin: 40px 0 0;
  padding: 24px;
  background: var(--bg-body);
  border: 1px solid var(--gray-100);
  border-radius: 8px;
  text-align: center;
}
.dimensions-scheme__btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: zoom-in;
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.25s var(--ease);
}
.dimensions-scheme__btn:hover { transform: scale(1.01); }
.dimensions-scheme__btn:hover .dimensions-scheme__zoom { opacity: 1; transform: scale(1); }
.dimensions-scheme__btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; }
.dimensions-scheme img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 2px 8px rgba(26,29,35,0.04));
}
.dimensions-scheme__zoom {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(26,29,35,0.85);
  color: #fff;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  pointer-events: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.dimensions-scheme figcaption {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* Lightbox */
.scheme-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(15, 17, 22, 0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: schemeLightboxIn 0.2s var(--ease);
}
.scheme-lightbox[hidden] { display: none; }
.scheme-lightbox img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  background: #fff;
  padding: 24px;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.scheme-lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  color: #fff;
  border: 0;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.scheme-lightbox__close:hover { background: rgba(255,255,255,0.22); }
@keyframes schemeLightboxIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@media (max-width: 768px) {
  .scheme-lightbox { padding: 16px; }
  .scheme-lightbox img { padding: 12px; }
  .scheme-lightbox__close { top: 12px; right: 12px; }
}
