.cc-home-hero {
  position: relative;
  isolation: isolate;
  background: #0f1f18;
}

.cc-home-hero__carousel {
  position: relative;
}

.cc-home-hero__track {
  position: relative;
  min-height: clamp(560px, 78vh, 760px);
}

.cc-home-hero__slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: stretch;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.65s ease, visibility 0.65s ease;
}

.cc-home-hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

.cc-home-hero__media,
.cc-home-hero__overlay {
  position: absolute;
  inset: 0;
}

.cc-home-hero__bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cc-home-hero__overlay {
  background:
    linear-gradient(90deg, rgba(7, 17, 13, 0.86) 0%, rgba(7, 17, 13, 0.73) 38%, rgba(7, 17, 13, 0.42) 68%, rgba(7, 17, 13, 0.26) 100%),
    linear-gradient(180deg, rgba(7, 17, 13, 0.12) 0%, rgba(7, 17, 13, 0.35) 100%);
}

.cc-home-hero__content-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: clamp(560px, 78vh, 760px);
  padding-top: 92px;
  padding-bottom: 120px;
}

.cc-home-hero__content {
  width: min(100%, 680px);
  color: #fff;
}

.cc-home-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.cc-home-hero__title {
  margin: 0;
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(2.4rem, 5.4vw, 4.8rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 11ch;
  text-wrap: balance;
}

.cc-home-hero__subtitle {
  max-width: 58ch;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  line-height: 1.75;
}

.cc-home-hero__points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}

.cc-home-hero__points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.cc-home-hero__points li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary, #8dc63f);
  box-shadow: 0 0 0 6px rgba(141, 198, 63, 0.16);
}

.cc-home-hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  margin-top: 32px;
  padding: 0 28px;
  border-radius: 12px;
  background: var(--color-primary, #8dc63f);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.cc-home-hero__button:hover,
.cc-home-hero__button:focus-visible {
  background: var(--color-accent, #f5a623);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.22);
}

.cc-home-hero__controls-wrap {
  position: absolute;
  inset: auto 0 28px;
  z-index: 3;
}

.cc-home-hero__controls {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(7, 17, 13, 0.46);
  backdrop-filter: blur(14px);
}

.cc-home-hero__nav,
.cc-home-hero__dot {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.cc-home-hero__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.cc-home-hero__nav:hover,
.cc-home-hero__nav:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-1px);
}

.cc-home-hero__pagination {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cc-home-hero__dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.34);
  transition: width 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.cc-home-hero__dot.is-active,
.cc-home-hero__dot:hover,
.cc-home-hero__dot:focus-visible {
  width: 36px;
  background: var(--color-primary, #8dc63f);
}

.cc-home-hero__nav:focus-visible,
.cc-home-hero__dot:focus-visible,
.cc-home-hero__button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

@media (max-width: 991px) {
  .cc-home-hero__track,
  .cc-home-hero__content-wrap {
    min-height: 640px;
  }

  .cc-home-hero__content {
    width: min(100%, 600px);
  }

  .cc-home-hero__overlay {
    background:
      linear-gradient(180deg, rgba(7, 17, 13, 0.78) 0%, rgba(7, 17, 13, 0.72) 52%, rgba(7, 17, 13, 0.64) 100%),
      linear-gradient(90deg, rgba(7, 17, 13, 0.18) 0%, rgba(7, 17, 13, 0.18) 100%);
  }
}

@media (max-width: 767px) {
  .cc-home-hero__track,
  .cc-home-hero__content-wrap {
    min-height: 620px;
  }

  .cc-home-hero__content-wrap {
    padding-top: 72px;
    padding-bottom: 122px;
  }

  .cc-home-hero__title {
    max-width: 12ch;
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .cc-home-hero__subtitle {
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .cc-home-hero__points li {
    font-size: 13px;
  }

  .cc-home-hero__controls-wrap {
    bottom: 20px;
  }

  .cc-home-hero__controls {
    width: 100%;
    justify-content: space-between;
  }
}

@media (max-width: 575px) {
  .cc-home-hero__track,
  .cc-home-hero__content-wrap {
    min-height: 600px;
  }

  .cc-home-hero__eyebrow {
    font-size: 11px;
    letter-spacing: 0.1em;
  }

  .cc-home-hero__points {
    gap: 8px;
  }

  .cc-home-hero__points li {
    min-height: 36px;
    padding: 8px 12px;
  }

  .cc-home-hero__button {
    width: 100%;
  }

  .cc-home-hero__nav {
    width: 40px;
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cc-home-hero__slide,
  .cc-home-hero__button,
  .cc-home-hero__nav,
  .cc-home-hero__dot {
    transition: none;
  }
}
