:root {
  --header-height: 100px;

  --hero-container-padding: 12px;
  --hero-accent-color: #0071eb;

  --hero-text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
  --hero-soft-shadow: 0 5px 20px rgba(0, 0, 0, 0.35);
}

/* =========================================================
   Hero carousel base
   ========================================================= */

.hero-carousel {
  position: relative;

  width: 100%;
  height: calc(100vh - var(--header-height));
  height: calc(100svh - var(--header-height));

  margin-top: var(--header-height);
  padding: 0;

  overflow: hidden;
  background: #f5f5f5;
}

.hero-carousel,
.hero-carousel * {
  box-sizing: border-box;
}

.hero-carousel__track {
  position: relative;
  width: 100%;
  height: 100%;
}

.hero-carousel__slide {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  opacity: 0;
  visibility: hidden;
  overflow: hidden;

  transition:
    opacity 0.6s ease,
    visibility 0.6s ease;
}

.hero-carousel__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* =========================================================
   Media
   ========================================================= */

.hero-carousel__picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-carousel__media {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Заполнение с изменением пропорций */
.hero-carousel__media-fill {
  object-fit: fill;
  object-position: center center;
}

/* Заполнение с потерей краев */
.hero-carousel__media-cover {
  object-fit: cover;
  object-position: center center;
}

/* Без изменения пропорций и без потери краев */
.hero-carousel__media-contain {
  object-fit: contain;
  object-position: center center;
}

/* =========================================================
   Main text
   ========================================================= */

.hero-carousel__text {
  position: absolute;
  top: 40%;
  left: 50%;
  z-index: 5;

  width: 100%;
  max-width: 1320px;

  padding-left: var(--hero-container-padding);
  padding-right: var(--hero-container-padding);

  transform: translate(-50%, -50%);

  color: #ffffff;
  pointer-events: none;
}

.hero-carousel__text h1 {
  max-width: min(760px, 100%);
  margin: 0 0 20px 0;

  font-family: var(--hero-font);
  font-size: 56px;
  line-height: 1.1;
  font-weight: 800;

  color: #ffffff;
  text-shadow: var(--hero-text-shadow);
}

.hero-carousel__text h3 {
  margin: 0 0 14px 0;

  font-family: var(--hero-font);
  font-size: clamp(34px, 3.6vw, 66px);
  line-height: 0.92;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;

  color: #ffffff;
  text-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.hero-carousel__text h4 {
  max-width: min(760px, 100%);
  margin: 0;

  font-family: var(--heading-font);
  font-size: 24px;
  line-height: 1.2;
  font-weight: 500;

  color: #ffffff;
  text-shadow: var(--hero-text-shadow);
}

.hero-carousel__text h4 a {
  font: inherit;
  color: inherit;
  text-decoration: none;
}

.hero-carousel__text h5 {
  margin: 12px 0 0 0;

  max-width: min(760px, 100%);

  font-family: var(--heading-font);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 400;

  color: rgba(255, 255, 255, 0.88);
  text-shadow: var(--hero-soft-shadow);
}

.hero-carousel__text h5 a {
  font: inherit;
  color: inherit;
  text-decoration: none;
}

/* =========================================================
   Bootstrap-like container widths
   ========================================================= */

@media (min-width: 576px) {
  .hero-carousel__text,
  .hero-carousel__bottom-text {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .hero-carousel__text,
  .hero-carousel__bottom-text {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .hero-carousel__text,
  .hero-carousel__bottom-text {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .hero-carousel__text,
  .hero-carousel__bottom-text {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .hero-carousel__text,
  .hero-carousel__bottom-text {
    max-width: 1320px;
  }
}

/* =========================================================
   Bottom text / usage list
   ========================================================= */

.hero-carousel__slide::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 4;

  height: 35%;

  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.48),
    rgba(0, 0, 0, 0)
  );

  pointer-events: none;
}

.hero-carousel__bottom-text {
  position: absolute;
  left: 50%;
  bottom: clamp(60px, 6vh, 80px);
  z-index: 5;

  width: 100%;
  max-width: 1320px;

  padding-left: var(--hero-container-padding);
  padding-right: var(--hero-container-padding);

  transform: translateX(-50%);

  font-family: var(--nav-font);
  font-size: clamp(14px, 1vw, 18px);
  line-height: 1.45;
  font-weight: 500;

  color: rgba(255, 255, 255, 0.9);
  text-shadow: var(--hero-soft-shadow);

  pointer-events: none;
}

.hero-carousel__bottom-text ul {
  margin: 0;
  /*padding-left: 1.1em;*/
}

.hero-carousel__bottom-text li + li {
  margin-top: 6px;
}

/* =========================================================
   Interactive variants
   ========================================================= */

/* Вариант: текст максимально вверху слева */
.hero-carousel__text.interactive-top {
  top: 15%;
  left: 5%;

  width: auto;
  max-width: min(560px, 90vw);

  padding-left: 0;
  padding-right: 0;

  transform: translateY(-50%);
}

.indoor-top {
  top: 45%;
  left: 5%;

  width: auto;
  max-width: min(560px, 90vw);

  padding-left: 0;
  padding-right: 0;

  transform: translateY(-50%);
}

.hero-carousel__text h1.interactive,
.hero-carousel__text h3.interactive,
.hero-carousel__text .interactive-h1,
.hero-carousel__text .interactive-h3 {
  font-family: var(--nav-font);
  font-size: clamp(20px, 2.4vw, 42px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: 0em;
}

.hero-carousel__text h4.interactive,
.hero-carousel__text .interactive-h4 {
  margin: 0;

  font-family: var(--hero-font);
  font-size: clamp(16px, 1.2vw, 18px);
  line-height: 1.3;
  font-weight: 500;

  color: rgba(255, 255, 255, 0.92);
  text-shadow: var(--hero-soft-shadow);
}

/* =========================================================
   Dots
   ========================================================= */

.hero-carousel__dots {
  position: absolute;
  left: 50%;
  bottom: 24px;
  z-index: 10;

  display: flex;
  gap: 10px;

  transform: translateX(-50%);
}

.hero-carousel__dot {
  width: 12px;
  height: 12px;
  padding: 0;

  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;

  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;

  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.hero-carousel__dot.is-active {
  background: var(--hero-accent-color);
  transform: scale(1.25);
}

.hero-carousel__dot:hover {
  background: #ffffff;
}

/* =========================================================
   Hero buttons
   ========================================================= */

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;

  margin-top: 28px;
}

.uled-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-height: 48px;
  padding: 14px 26px;

  font-family: Montserrat, Inter, Arial, sans-serif;
  font-size: 14px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;

  border-radius: 999px;

  cursor: pointer;
  user-select: none;

  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.25s ease;
}

.uled-btn--primary {
  color: #ffffff;
  background: var(--hero-accent-color);
  border: 2px solid var(--hero-accent-color);
  box-shadow: 0 12px 30px rgba(0, 113, 235, 0.28);
}

.uled-btn--primary:hover {
  color: #ffffff;
  background: #005fc7;
  border-color: #005fc7;
  box-shadow: 0 16px 38px rgba(0, 113, 235, 0.38);
  transform: translateY(-2px);
}

.uled-btn--secondary {
  color: #1f2328;
  background: rgba(255, 255, 255, 0.86);
  border: 2px solid rgba(0, 113, 235, 0.35);
  box-shadow: 0 10px 26px rgba(31, 35, 40, 0.08);
  backdrop-filter: blur(8px);
}

.uled-btn--secondary:hover {
  color: var(--hero-accent-color);
  background: #ffffff;
  border-color: var(--hero-accent-color);
  box-shadow: 0 14px 34px rgba(0, 113, 235, 0.18);
  transform: translateY(-2px);
}

.uled-btn:active {
  transform: translateY(0);
  box-shadow: none;
}

.uled-btn:focus-visible {
  outline: 3px solid rgba(0, 113, 235, 0.35);
  outline-offset: 4px;
}

/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 767px) {
  .hero-carousel__text {
    top: 15%;
    left: 24px;
    right: 24px;

    margin-top: 20px;

    width: auto;
    max-width: none;

    padding-left: 0;
    padding-right: 0;

    transform: translateY(-50%);
  }

  .hero-carousel__text h1 {
    max-width: none;
    font-size: clamp(34px, 10vw, 46px);
    line-height: 1.1;
  }

  .hero-carousel__text h3 {
    font-size: clamp(32px, 11vw, 52px);
    line-height: 0.95;
  }

  .hero-carousel__text h4 {
    max-width: none;
    font-size: clamp(20px, 5vw, 24px);
    line-height: 1.2;
  }

  .hero-carousel__text h5 {
    max-width: none;
    font-size: 16px;
    line-height: 1.35;
  }

  .hero-carousel__text.interactive-top {
    top: 10%;
    left: 24px;
    right: 24px;

    width: auto;
    max-width: none;

    transform: translateY(-50%);
  }

  .hero-carousel__bottom-text {
    left: 24px;
    right: 24px;
    bottom: 68px;

    width: auto;
    max-width: none;

    padding-left: 0;
    padding-right: 0;

    transform: none;

    font-size: 14px;
    line-height: 1.4;
  }

  .hero-carousel__dots {
    bottom: 28px;
  }
}

@media (max-width: 575px) {
  .hero-buttons {
    gap: 10px;
    margin-top: 22px;
  }

  .uled-btn {
    width: 100%;
    min-height: 46px;
    padding: 13px 20px;

    font-size: 12px;
    letter-spacing: 0.035em;
  }
}