:root {
  --pageBackground: #ffffff;
  --heroLeft: #5a97cf;
  --heroRight: #5ec1b7;
  --heroCircle: #3375b0;
  --title: #303030;
  --text: #384033;
  --mutedText: #4d554b;
  --primaryCardBackground: #dff1ff;
  --cardBackground: #f0f2f1;
  --chipBackground: #ffffff;
  --buttonBackground: #000000;
  --buttonText: #ffffff;
  --link: #4ab8ff;
  font-family: Inter, Arial, Helvetica, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--pageBackground);
  color: var(--text);
}

.page,
.footer {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.hero {
  position: relative;
  display: flex;
  min-height: 365px;
  margin-top: 47px;
  overflow: hidden;
  border-radius: 44px;
  background: linear-gradient(100deg, var(--heroLeft) 0%, var(--heroRight) 100%);
}

.hero::before {
  position: absolute;
  right: 28px;
  bottom: -105px;
  width: 385px;
  height: 385px;
  content: '';
  border-radius: 50%;
  background: var(--heroCircle);
}

.hero__content {
  position: relative;
  z-index: 2;
  flex: 0 0 43%;
  padding: 56px 0 54px 58px;
}

.hero__logo {
  display: block;
  width: 265px;
  max-width: 100%;
  margin-bottom: 42px;
}

.hero__subtitle {
  max-width: 430px;
  margin: 0;
  color: #ffffff;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  white-space: pre-line;
}

.hero__kids {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  width: 58%;
  max-height: 100%;
  object-fit: contain;
  object-position: right bottom;
}

.funds {
  margin-top: 50px;
}

.funds__title {
  max-width: 1000px;
  margin: 0 auto 35px;
  color: var(--title);
  font-size: clamp(42px, 4.4vw, 62px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.06em;
}

.carousel {
  position: relative;
}

.carousel__track {
  display: flex;
  gap: 20px;
  max-width: 1020px;
  margin: 0 auto;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.carousel__track::-webkit-scrollbar {
  display: none;
}

.carousel__button {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  padding: 0;
  cursor: pointer;
  transform: translateY(-50%);
  border: 0;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 4px 16px rgb(0 0 0 / 10%);
  color: #303030;
}

.carousel__button span {
  display: block;
  width: 15px;
  height: 15px;
  border-top: 4px solid currentColor;
  border-right: 4px solid currentColor;
  font-size: 0;
}

.carousel__button--prev {
  left: 0;
}

.carousel__button--prev span {
  transform: translateX(3px) rotate(-135deg);
}

.carousel__button--next {
  right: 0;
}

.carousel__button--next span {
  transform: translateX(-3px) rotate(45deg);
}

.product-card {
  display: flex;
  flex: 0 0 326px;
  min-height: 516px;
  overflow: hidden;
  flex-direction: column;
  scroll-snap-align: start;
  border-radius: 20px;
  background: var(--cardBackground);
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}

.product-card--highlighted {
  background: var(--primaryCardBackground);
}

.product-card:focus-visible {
  outline: 3px solid var(--heroLeft);
  outline-offset: 4px;
}

.product-card__image {
  display: block;
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 22px 22px;
}

.product-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.product-card__chips span {
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--chipBackground);
  color: var(--text);
  font-size: 14px;
  line-height: 1;
}

.product-card h2 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 27px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

.product-card__description {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 17px;
  font-weight: 500;
  line-height: 1.15;
}

.product-card__yield-label {
  margin: 0;
  color: var(--text);
  font-size: 12px;
  line-height: 1.2;
}

.product-card__yield {
  display: block;
  margin-bottom: 24px;
  color: var(--text);
  font-size: 29px;
  font-weight: 900;
  line-height: 1;
}

.product-card__button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 51px;
  margin-top: auto;
  border: 0;
  border-radius: 12px;
  background: var(--buttonBackground);
  color: var(--buttonText);
  font-size: 14px;
  font-weight: 700;
  opacity: 1;
}

.product-card__button span {
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
}

.error {
  width: 100%;
  text-align: center;
}

.footer {
  display: grid;
  grid-template-columns: 1fr minmax(300px, 520px) 1fr;
  gap: 28px;
  align-items: center;
  margin-top: 64px;
  padding: 42px 0 50px;
  border-top: 1px solid #dddddd;
  color: #202020;
  font-size: 13px;
}

.footer__left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer__age {
  display: inline-grid;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background: #e7e7e9;
  font-weight: 700;
  place-items: center;
}

.footer__cookies {
  margin: 0;
  color: #333333;
  font-size: 11px;
  line-height: 1.35;
}

.footer__cookies a {
  color: var(--link);
  text-decoration: none;
}

.footer__brand {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 7px;
  color: #000000;
  font-size: 22px;
  font-weight: 800;
  line-height: 0.85;
}

.footer__brand small {
  display: block;
  font-size: 6px;
  font-weight: 600;
  line-height: 1;
}

.footer__mark {
  display: inline-grid;
  width: 31px;
  height: 31px;
  border: 3px solid currentColor;
  border-radius: 50%;
  font-size: 22px;
  line-height: 1;
  place-items: center;
}

@media (max-width: 980px) {
  .hero {
    min-height: 300px;
  }

  .hero__content {
    flex-basis: 50%;
    padding-left: 36px;
  }

  .hero__kids {
    width: 62%;
  }

  .carousel__track {
    max-width: calc(100% - 90px);
  }

  .footer {
    grid-template-columns: 1fr;
  }

  .footer__brand {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .page,
  .footer {
    width: min(100% - 28px, 1180px);
  }

  .hero {
    min-height: 460px;
    margin-top: 18px;
    border-radius: 28px;
  }

  .hero__content {
    flex-basis: 100%;
    padding: 34px 28px;
  }

  .hero__logo {
    width: 215px;
    margin-bottom: 24px;
  }

  .hero__subtitle {
    max-width: 310px;
    font-size: 21px;
  }

  .hero__kids {
    width: 100%;
    max-height: 310px;
  }

  .funds {
    margin-top: 34px;
  }

  .funds__title {
    margin-bottom: 24px;
    font-size: 42px;
  }

  .carousel__track {
    max-width: 100%;
    padding: 0 0 8px;
  }

  .carousel__button {
    display: none;
  }

  .product-card {
    flex-basis: 86vw;
  }
}
