@font-face {
  font-family: "MiSans";
  src: url("../fonts/MiSans-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "MiSans";
  src: url("../fonts/MiSans-Semibold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "MiSans";
  src: url("../fonts/MiSans-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/Poppins-Bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  --green: #9bd952;
  --text: #222222;
  --muted: #6f7277;
  --line: #e7e8e9;
  --soft: #f6f7f1;
  --footer: #000000;
  --container: 1440px;
  --font-primary: "MiSans", "Poppins", "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  --font-accent: "Poppins", "MiSans", "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-primary);
  font-weight: 400;
  background: #ffffff;
  line-height: 1.62;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin: 0 auto;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  height: 600px;
  overflow: hidden;
  background: #111111;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 54px;
  color: #96989c;
  font-size: 12px;
}

.breadcrumb a:hover {
  color: var(--green);
}

.section {
  padding: 66px 0;
}

.section--soft {
  background: var(--soft);
  padding: 114px 0 132px;
}

.section-frame {
  position: relative;
}

.section-title {
  margin: 0 0 34px;
  color: #252525;
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
}

.section-title span {
  color: var(--green);
  font-weight: 700;
}

.section-title--center {
  text-align: center;
}

.intro {
  padding-top: 56px;
  padding-bottom: 74px;
}

.intro p {
  max-width: 1430px;
  margin: 0 0 14px;
  color: #2c3035;
  font-size: 14px;
}

.company-photo {
  margin: 48px 0 46px;
  overflow: hidden;
  border-radius: 11px;
}

.company-photo img {
  width: 100%;
  height: auto;
}

.intro-note {
  margin-bottom: 46px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 72px;
  padding-top: 18px;
}

.stat strong,
.stat-number {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
}

.stat-number {
  font-variant-numeric: tabular-nums;
}

.stat span {
  display: block;
  color: #4e5359;
  font-size: 14px;
  line-height: 1.45;
}

.factory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.factory-grid figure {
  margin: 0;
}

.carousel {
  position: relative;
  --carousel-gap: 24px;
}

.carousel--certificates {
  --carousel-gap: 28px;
}

.carousel--shipping {
  --carousel-gap: 26px;
}

.carousel__viewport {
  overflow: hidden;
}

.carousel__track {
  display: flex;
  gap: var(--carousel-gap);
  align-items: stretch;
  transition: transform 420ms ease;
  will-change: transform;
}

.carousel__slide {
  flex: 0 0 auto;
  min-width: 0;
  margin: 0;
}

.carousel__button {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 92px;
  height: 92px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
  transition: filter 220ms ease, opacity 220ms ease, transform 220ms ease;
}

.carousel--factory .carousel__button {
  top: calc(50% - 24px);
}

.carousel__button--prev {
  left: -126px;
}

.carousel__button--next {
  right: -126px;
}

.carousel__button img {
  width: 100%;
  height: 100%;
  filter: grayscale(1) saturate(0) brightness(1.18);
  transition: filter 220ms ease;
}

.carousel__button:hover {
  filter: brightness(1.04);
  transform: translateY(-50%) scale(1.06);
}

.carousel__button:hover img {
  filter: brightness(0) saturate(100%) invert(77%) sepia(57%) saturate(514%) hue-rotate(39deg) brightness(95%) contrast(92%);
}

.carousel__button:active {
  transform: translateY(-50%) scale(0.96);
}

.carousel__button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}

.carousel__track.factory-grid,
.carousel__track.certificate-grid,
.carousel__track.shipping-grid {
  display: flex;
  grid-template-columns: none;
  padding-top: 0;
}

.carousel__slide img {
  transition: filter 260ms ease, opacity 260ms ease;
}

.carousel__slide:hover img {
  filter: saturate(1.06) contrast(1.03);
  opacity: 0.94;
}

.factory-grid img,
.shipping-grid img {
  width: 100%;
  aspect-ratio: 12 / 7;
  object-fit: cover;
}

.factory-grid figcaption {
  padding-top: 18px;
  color: #252525;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

.certificates {
  padding-top: 104px;
  padding-bottom: 42px;
}

.certificate-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  align-items: start;
  padding-top: 18px;
}

.certificate-grid img {
  width: 100%;
  aspect-ratio: 43 / 60;
  object-fit: contain;
  background: #ffffff;
  border: 0;
  box-shadow: none;
}

.certificate-card {
  background: #ffffff;
}

.partners {
  padding-top: 36px;
  padding-bottom: 58px;
  overflow: hidden;
}

.partners-marquee {
  display: grid;
  gap: 22px;
  margin-top: 38px;
}

.partners-row {
  overflow: hidden;
}

.partners-row__track {
  display: flex;
  width: 200%;
  animation: partners-scroll 28s linear infinite;
  will-change: transform;
}

.partner-card {
  flex: 0 0 12.5%;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 122px;
  margin: 0;
  background: #ffffff;
}

.partner-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: filter 260ms ease, opacity 260ms ease;
}

.partner-card:hover img {
  filter: saturate(1.06) contrast(1.03);
  opacity: 0.94;
}

@keyframes partners-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

.shipping {
  padding-top: 42px;
  padding-bottom: 116px;
}

.shipping-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  padding-top: 30px;
}

.footer {
  padding: 82px 0 56px;
  color: #ffffff;
  font-family: var(--font-accent);
  background: var(--footer);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 0.65fr) 1.05fr;
  gap: 64px;
  align-items: start;
}

.footer h3 {
  margin: 0 0 22px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.2;
}

.footer__brand img {
  width: 292px;
  margin-bottom: 76px;
}

.socials {
  width: 285px;
}

.socials img {
  width: 100%;
  height: auto;
}

.footer__column,
.footer__contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-style: normal;
}

.footer__column a,
.footer__contact a,
.footer__contact span {
  color: #ffffff;
  font-size: 14px;
  font-style: normal;
  line-height: 1.35;
  transition: color 180ms ease;
}

.footer__column a:hover,
.footer__column a:focus-visible,
.footer__contact a:hover,
.footer__contact a:focus-visible,
.footer__contact span:hover,
.footer__bottom p:hover {
  color: var(--green);
}

.footer__bottom {
  margin-top: 66px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.6);
}

.footer__bottom p {
  margin: 0;
  color: #ffffff;
  font-size: 13px;
  transition: color 180ms ease;
}

@media (max-width: 1500px) {
  .carousel__button--prev {
    left: -26px;
  }

  .carousel__button--next {
    right: -26px;
  }
}

@media (max-width: 1024px) {
  .hero {
    height: 420px;
  }

  .section,
  .section--soft,
  .certificates,
  .shipping {
    padding-top: 64px;
    padding-bottom: 72px;
  }

  .section-title {
    font-size: 30px;
  }

  .stats,
  .certificate-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 34px;
  }

  .factory-grid,
  .shipping-grid {
    grid-template-columns: 1fr;
  }

  .carousel__button {
    width: 68px;
    height: 68px;
  }

  .partners-row__track {
    width: 266.666%;
  }

  .footer__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 42px;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .hero {
    height: 250px;
  }

  .breadcrumb {
    height: 48px;
    font-size: 11px;
  }

  .section,
  .section--soft,
  .certificates,
  .partners,
  .shipping {
    padding-top: 46px;
    padding-bottom: 54px;
  }

  .section-title {
    margin-bottom: 24px;
    font-size: 25px;
  }

  .intro p,
  .stat span,
  .footer__column a,
  .footer__contact a,
  .footer__contact span {
    font-size: 13px;
  }

  .company-photo {
    margin: 30px 0;
    border-radius: 8px;
  }

  .stats,
  .certificate-grid,
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .stat strong {
    font-size: 34px;
  }

  .certificate-grid {
    gap: 22px;
  }

  .carousel {
    --carousel-gap: 18px;
  }

  .carousel__button {
    width: 52px;
    height: 52px;
  }

  .carousel__button--prev {
    left: 0;
  }

  .carousel__button--next {
    right: 0;
  }

  .carousel--factory .carousel__button {
    top: calc(50% - 20px);
  }

  .partners-marquee {
    gap: 14px;
    margin-top: 20px;
  }

  .partners-row__track {
    width: 400%;
  }

  .partner-card {
    min-height: 96px;
  }

  .footer {
    padding-top: 56px;
  }

  .footer__brand img {
    width: 230px;
    margin-bottom: 42px;
  }

  .socials {
    width: 230px;
  }
}
