/* Homepage hero and image carousel. */
.home-page {
  --home-green: #123c2f;
  --home-green-dark: #0b2a1f;
  --home-white: #fff;
  --home-border: #ded9cf;
  overflow-x: clip;
}

.home-page main { overflow: hidden; }

.home-shell {
  width: min(100% - 64px, 1280px);
  margin-inline: auto;
}

.home-eyebrow {
  margin: 0 0 14px;
  color: #27624e;
  font-size: 12px !important;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.home-hero h1,
.home-hero p { margin-top: 0; }

.home-hero h1 {
  margin-bottom: 24px;
  font-size: clamp(44px, 4.2vw, 58px) !important;
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: 1.04;
}

.home-button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 21px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.home-button--primary {
  background: var(--home-green);
  color: var(--home-white);
}

.home-button--secondary {
  border-color: #aebbb5;
  background: transparent;
  color: var(--home-green-dark);
}

.home-button:focus-visible,
.home-hero button:focus-visible {
  outline: 3px solid #d5aa52;
  outline-offset: 3px;
}

/* Hero */
.home-hero {
  min-height: 690px;
  position: relative;
  display: flex;
  align-items: stretch;
  isolation: isolate;
  overflow: hidden;
  background: var(--home-green-dark);
  border-bottom: 1px solid var(--home-border);
}

.home-hero__grid {
  min-height: 690px;
  display: flex;
  align-items: center;
}

.home-hero__content {
  position: relative;
  z-index: 3;
  width: min(680px, 58%);
  padding: 150px 0 92px;
  color: var(--home-white);
}

.home-hero .home-eyebrow {
  color: #e7c068;
}

.home-hero h1 {
  color: var(--home-white);
  text-shadow: 0 3px 24px rgba(0, 0, 0, .2);
}

.home-hero__description {
  max-width: 620px;
  margin-bottom: 22px;
  color: rgba(255, 255, 255, .85);
  font-size: 18px !important;
  line-height: 1.68;
}

.home-hero__features {
  max-width: 620px;
  display: grid;
  gap: 9px;
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}

.home-hero__features li {
  position: relative;
  padding-left: 20px;
  color: rgba(255, 255, 255, .88);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.55;
}

.home-hero__features li::before {
  content: "";
  width: 7px;
  height: 7px;
  position: absolute;
  top: .56em;
  left: 0;
  border: 2px solid #e7c068;
  border-radius: 50%;
}

.home-hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

.home-hero .home-button--primary {
  background: #d1a63f;
  color: var(--home-green-dark);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
}

.home-hero .home-button--secondary {
  border-color: rgba(255, 255, 255, .65);
  color: var(--home-white);
}

.home-hero__media {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  background: #2c3f37;
}

.home-hero__media::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(5, 32, 23, .93) 0%, rgba(7, 38, 28, .82) 36%, rgba(8, 37, 28, .35) 67%, rgba(8, 30, 24, .12) 100%);
}

.hero-carousel__track,
.hero-carousel__slide {
  position: absolute;
  inset: 0;
}

.hero-carousel__slide {
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s ease, visibility .45s ease;
}

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

.hero-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-carousel__controls {
  position: absolute;
  z-index: 4;
  right: max(32px, calc((100vw - 1280px) / 2));
  bottom: 28px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-carousel__controls > button {
  min-width: 76px;
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 4px;
  background: rgba(7, 35, 26, .56);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.hero-carousel__dots {
  display: flex;
  gap: 7px;
}

.hero-carousel__dots button {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}

.hero-carousel__dots button.is-active {
  background: #e7c068;
  border-color: #e7c068;
}

/* Cooperation partners */
.partner-carousel {
  height: 112px;
  overflow: hidden;
  border-bottom: 1px solid var(--home-border);
  background: #fff;
}

.partner-carousel__layout {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: clamp(220px, 18vw, 335px) minmax(0, 1fr);
  align-items: stretch;
}

.partner-carousel__head {
  display: flex;
  align-items: center;
  padding: 0 clamp(24px, 3vw, 60px);
  border-right: 1px solid #ebe7df;
}

.partner-carousel__head h2 {
  margin: 0;
  color: #111820;
  font-size: clamp(20px, 1.35vw, 26px) !important;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.25;
}

.partner-carousel__viewport {
  min-width: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.partner-carousel__track {
  width: max-content;
  display: flex;
  animation: partner-carousel-scroll 58s linear infinite;
  will-change: transform;
}

.partner-carousel__viewport:hover .partner-carousel__track,
.partner-carousel__viewport:focus-within .partner-carousel__track {
  animation-play-state: paused;
}

.partner-carousel__set {
  display: flex;
  align-items: center;
  gap: clamp(28px, 3.4vw, 68px);
  padding: 0 clamp(28px, 3.4vw, 68px);
}

.partner-logo {
  width: clamp(118px, 8.5vw, 170px);
  height: 72px;
  flex: 0 0 clamp(118px, 8.5vw, 170px);
  display: grid;
  place-items: center;
}

.partner-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .7;
}

@keyframes partner-carousel-scroll {
  to { transform: translateX(-50%); }
}

@media (max-width: 720px) {
  .partner-carousel { height: 96px; }
  .partner-carousel__layout { grid-template-columns: 150px minmax(0, 1fr); }
  .partner-carousel__head { padding: 0 16px; }
  .partner-carousel__head h2 { font-size: 15px !important; }
  .partner-carousel__set { gap: 28px; padding: 0 28px; }
  .partner-logo { width: 116px; height: 58px; flex-basis: 116px; }
}

@media (prefers-reduced-motion: reduce) {
  .partner-carousel__viewport { overflow-x: auto; }
  .partner-carousel__track { animation: none; }
  .partner-carousel__set[aria-hidden="true"] { display: none; }
}

@media (max-width: 1100px) {
  .home-shell { width: min(100% - 48px, 1280px); }
  .home-hero,
  .home-hero__grid { min-height: 660px; }
  .home-hero__content { width: min(650px, 67%); }
}

@media (max-width: 900px) {
  .home-hero,
  .home-hero__grid { min-height: 650px; }
  .home-hero { padding: 0; }
  .home-hero__content {
    width: min(650px, 78%);
    max-width: none;
    padding: 136px 0 96px;
  }
  .hero-carousel__controls { right: 24px; }
}

@media (max-width: 768px) {
  .home-shell { width: min(100% - 36px, 1280px); }
  .home-hero,
  .home-hero__grid { min-height: 690px; }
  .home-hero { padding: 0; }
  .home-hero__content {
    width: 100%;
    padding: 126px 0 108px;
  }
  .home-hero h1 {
    font-size: clamp(34px, 9vw, 46px) !important;
    line-height: 1.08;
  }
  .home-hero__description { font-size: 16px !important; }
  .home-hero__media::after {
    background: linear-gradient(180deg, rgba(5,30,22,.78) 0%, rgba(5,32,23,.9) 44%, rgba(5,29,22,.95) 100%);
  }
  .hero-carousel__slide img { object-position: 66% center; }
  .hero-carousel__controls {
    right: 18px;
    bottom: 22px;
    left: 18px;
    justify-content: center;
  }
}

@media (max-width: 560px) {
  .home-shell { width: min(100% - 32px, 1280px); }
  .home-hero,
  .home-hero__grid { min-height: 720px; }
  .home-hero { padding: 0; }
  .home-hero__content { padding: 112px 0; }
  .home-hero__actions {
    align-items: stretch;
    flex-direction: column;
  }
  .home-hero__actions .home-button { width: 100%; }
  .home-hero__features li { font-size: 13px; }
  .hero-carousel__controls > button { min-width: 68px; }
}

@media (prefers-reduced-motion: reduce) {
  .home-hero *,
  .home-hero *::before,
  .home-hero *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
