.section--hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: calc(var(--header-height) + 2rem) 4rem;
  background-color: var(--color-bg-primary);
  overflow: hidden;
}

.section--hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26, 26, 26, 0.55) 0%,
    rgba(26, 26, 26, 0.7) 50%,
    rgba(26, 26, 26, 0.85) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__logo {
  position: absolute;
  right: clamp(1.5rem, 4vw, 3rem);
  bottom: clamp(1.5rem, 4vw, 3rem);
  z-index: 3;
}

.hero__logo img {
  height: clamp(64px, 10vw, 120px);
  width: auto;
}

.section--hero .container {
  position: relative;
  z-index: 2;
}

.hero__subtitle {
  max-width: 640px;
  margin-top: 1.5rem;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.section--product .two-col__content > p {
  color: var(--color-text-secondary);
}

.section--integration .section-img {
  max-width: 720px;
  margin-inline: auto;
}

.section--contacts {
  text-align: center;
}

.section--contacts .contact-link {
  display: block;
  margin-bottom: 0.75rem;
}

.section--contacts .section-label {
  margin-bottom: 2rem;
}

/* Full HD slide layout (desktop) */
@media (min-width: 1280px) and (min-height: 720px) {
  .section--slide {
    min-height: var(--slide-height);
    max-height: var(--slide-height);
    padding-block: clamp(0.5rem, 1.2vh, 1.25rem);
    display: flex;
    align-items: center;
    overflow: hidden;
  }

  .section--slide > .container {
    width: 100%;
    max-height: calc(var(--slide-height) - 1rem);
  }

  .section--slide .two-col {
    max-height: calc(var(--slide-height) - 1rem);
    align-items: center;
  }

  .section--slide .section-label {
    margin-bottom: clamp(0.35rem, 1vh, 0.75rem);
  }

  .section--slide h2 {
    font-size: clamp(1.25rem, 2.2vh, 1.75rem);
    margin-bottom: clamp(0.5rem, 1.2vh, 1rem);
  }

  .section--slide p + p {
    margin-top: clamp(0.4rem, 0.9vh, 0.65rem);
  }

  /* Medium text blocks: about, features, benefits, products */
  .section--slide-md {
    font-size: clamp(0.875rem, 1.55vh, 1rem);
    line-height: 1.45;
  }

  .section--slide-md .section-img img,
  .section--slide-md .two-col__media .section-img img {
    max-height: min(58vh, 520px);
    width: 100%;
    object-fit: cover;
  }

  .section--slide-md .stat-row {
    margin-bottom: clamp(0.75rem, 1.5vh, 1.25rem);
    gap: 1rem;
  }

  .section--slide-md .stat-block__value {
    font-size: clamp(1.75rem, 4vh, 2.75rem);
  }

  .section--slide-md .stat-block__label {
    font-size: 0.8125rem;
    line-height: 1.3;
  }

  .section--slide-md .feature-list li {
    margin-bottom: 0.4rem;
    font-size: 0.875rem;
    line-height: 1.4;
  }

  .section--slide-md .panel {
    padding: clamp(1rem, 2vh, 1.75rem);
  }

  .section--slide-md .product-cards {
    margin-top: 1rem;
    gap: 0.65rem;
  }

  .section--slide-md .product-card {
    padding: 0.85rem 1rem;
  }

  .section--slide-md .product-card__desc {
    font-size: 0.8125rem;
  }

  #about.section--slide-md .two-col__content p {
    font-size: clamp(0.8125rem, 1.45vh, 0.9375rem);
    line-height: 1.42;
  }

  #about.section--slide-md .section-img img {
    max-height: min(52vh, 480px);
  }

  #products.section--slide-md .section-img img {
    max-height: min(48vh, 440px);
  }

  /* Dense product sections: smaller type, 2-col lists, compact images */
  .section--slide-dense {
    font-size: clamp(0.75rem, 1.35vh, 0.875rem);
    line-height: 1.35;
  }

  .section--slide-dense .subsection-title {
    margin-top: clamp(0.5rem, 1vh, 0.85rem);
    margin-bottom: 0.35rem;
    font-size: 0.6875rem;
  }

  .section--slide-dense .feature-list li {
    margin-bottom: 0.25rem;
    padding-left: 1rem;
    font-size: clamp(0.6875rem, 1.25vh, 0.8125rem);
    line-height: 1.32;
  }

  .section--slide-dense .two-col__content > p {
    font-size: inherit;
    margin-bottom: 0.35rem;
  }

  .section--slide-dense .feature-list--cols {
    columns: 2;
    column-gap: 1.25rem;
  }

  .section--slide-dense .feature-list--cols li {
    break-inside: avoid;
    padding-bottom: 0.15rem;
  }

  .section--slide-dense .section-img img {
    max-height: min(36vh, 300px);
  }

  .section--slide-dense .product-images {
    margin-top: 0;
    gap: 0.65rem;
  }

  .section--slide-dense .product-images img {
    max-height: min(32vh, 260px);
  }

  .section--slide-dense .stat-grid {
    margin-top: 0.65rem;
    gap: 0.5rem;
  }

  .section--slide-dense .stat-grid__item {
    padding: 0.5rem 0.25rem;
  }

  .section--slide-dense .stat-grid__value {
    font-size: clamp(1rem, 2vh, 1.35rem);
  }

  .section--slide-dense .stat-grid__label {
    font-size: 0.625rem;
  }

  .section--slide-dense .two-col__content {
    max-height: calc(var(--slide-height) - 1rem);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
    padding-right: 0.25rem;
  }

  #product-kdu.section--slide-dense .section-img img {
    max-height: min(42vh, 360px);
  }

  /* Light sections: integration, contacts */
  .section--slide-sm {
    font-size: clamp(0.9375rem, 1.6vh, 1.0625rem);
    line-height: 1.5;
  }

  .section--slide-sm .section-img img {
    max-height: min(45vh, 400px);
  }

  .section--slide-sm .section-label {
    margin-bottom: 1rem;
  }

  .section--contacts.section--slide-sm .contact-link {
    font-size: clamp(1.1rem, 2.5vh, 1.35rem);
    margin-bottom: 0.5rem;
  }
}

@media (max-width: 767px) {
  .stat-row {
    grid-template-columns: 1fr;
  }
}
