.home-hero {
  position: relative;
  width: 100%;
  min-height: 700px;
  overflow: hidden;
  background: #171717;

  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
}

.home-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero__content {
  position: relative;
  z-index: 1;
  max-width: 50%;
  min-width: 44.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.home-hero__title {
  font-weight: 700;
  font-size: 64px;
  line-height: 82px;
  text-transform: uppercase;

  color: #fa5305;
}

.home-hero__description {
  max-width: 25rem;
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;

  color: #ffffff;
}

.detail-section > .wp-block-group__inner-container {
  width: 100%;
  background: linear-gradient(90deg, #f07e1b 0%, #c02030 50%, #1c1b17 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 0;
}

.detail-section__wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.detail-section__wrapper > .wp-block-group__inner-container {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 50%;
  min-width: 44.25rem;

  color: #ffffff;
}

.detail-section__img {
  position: absolute;
  top: -13rem;
  right: 0;
  width: 25%;
  height: auto;
  transform: rotate(-15deg);
}

.detail-section__title {
  font-weight: 700;
  width: 60%;
  font-size: 40px;
  line-height: 51px;
  text-transform: uppercase;
}

.detail-section__description {
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  width: 50%;
  justify-self: flex-start !important;
}

.detail-section__button {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: fit-content;
}

.detail-section__button a {
  justify-self: center !important;
  align-self: center !important;

  background: white;
  padding: 10px 25px;
  border-radius: 10px;
  transition: all 0.3s ease;
}

.detail-section__button a:hover {
  background: #fa5305;
  color: white;
}

.detail-section__button a {
  font-weight: 500;
  font-size: 22.4px;
  line-height: 29px;
  /* identical to box height */

  color: #c02030;
}

.home-hero__wrapper > .wp-block-group__inner-container {
  flex-direction: column;
  display: flex;
  gap: 3rem;
  padding: 3rem;
}

.directions-section {
  display: flex;
  flex-direction: column;
  padding: 12px 0;
  gap: 3.25rem;
}

.directions-section h3 {
  font-weight: 700;
  font-size: 40px;
  line-height: 51px;
  /* identical to box height */
  text-transform: uppercase;

  color: #000000;
}

.members-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.members-section h3 {
  width: 35%;
  font-weight: 700;
  font-size: 40px;
  line-height: 51px;
  align-self: start;

  color: #000000;
}

.members-section__items {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-areas:
    "left center right"
    "left button right";
  gap: 24px;
  align-self: center;
  gap: 1.5rem;
  width: 100%;
}

@media (max-width: 1024px) {
  .members-section__items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "center center"
      "left right"
      "button button";
  }
}

.members-section__item-button {
  grid-area: button;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.members-section__button a {
  grid-area: button;
  box-sizing: border-box;
  width: 100%;
  align-self: center;

  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 10px 40px;
  border-radius: 10px;

  position: relative;
  isolation: isolate;
  overflow: hidden;

  background: linear-gradient(90deg, #8b0000 0%, #ed5829 100%);
}

.members-section__button a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #fa5305;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.members-section__button a:hover::before {
  opacity: 1;
}

@media (max-width: 1024px) {
  .members-section__button {
    width: 100%;
  }
}

.members-section__button a {
  color: white;
}

.members-section__item-total {
  grid-area: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}
.members-section__item-distributor {
  grid-area: left;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.members-section__item-others {
  grid-area: right;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.members-count {
  font-weight: 700;
  font-size: 160px;
  line-height: 204px;

  display: flex;
  flex-direction: column;
  align-items: center;
}

.members-count--total {
  font-weight: 700;
  font-size: 210px;
  line-height: 180px;

  background: linear-gradient(90deg, #ff4d01 0%, #d41b2e 30%, #000000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.members-count--distributors {
  color: #ff4d01;
  padding-top: 2rem;
}

.members-count--other {
  color: #000000;
  padding-top: 2rem;
}

.members-section__title-total {
  font-weight: 700;
  font-size: 48px;
  line-height: 61px;
  text-align: center;
  text-transform: uppercase;
  max-width: 355px;
}
.members-section__title-distributors,
.members-section__title-other {
  font-weight: 700;
  font-size: 24px;
  line-height: 31px;
  /* identical to box height */
  text-transform: uppercase;
  padding-bottom: 3rem;
}

.members-section__title-distributors {
  color: #ff4d01;
}

.members-direction-icon--distributors {
  width: 33%;
  height: auto;
}

.members-direction-icons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, auto);
  gap: clamp(0, 2vw, 32px);
}

.members-direction-icons img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.members-marquee {
  width: 100%;
  overflow: hidden;
}

.members-marquee__track {
  display: flex;
  width: max-content;
  animation: members-marquee-scroll 150s linear infinite;
}

.members-marquee__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 60px;
  padding-right: 60px;
}

.members-marquee__item {
  width: 200px;
  height: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.members-marquee__item img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.members-marquee:hover .members-marquee__track {
  animation-play-state: paused;
}

@keyframes members-marquee-scroll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 768px) {
  .members-marquee__group {
    gap: 35px;
    padding-right: 35px;
  }

  .members-marquee__item {
    width: 110px;
    height: 65px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .members-marquee__track {
    animation: none;
  }
}

.statistics__title {
  font-weight: 700;
  font-size: 40px;
  line-height: 51px;
  text-transform: uppercase;
  width: 440px;
}

/* Анимируем угол заполнения диаграммы */
.market-chart {
  position: relative;
  width: 100%;
  min-width: 0;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: transparent;
  overflow: hidden;
}
.market-chart__svg {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 0 !important;
  overflow: visible !important;
  pointer-events: none !important;
}

.market-chart__external,
.market-chart__progress {
  stroke: none !important;
}

.market-chart__external {
  fill: #b3b3b3 !important;
}

.market-chart__inner {
  position: absolute !important;
  width: 70.4% !important;
  height: 70.4% !important;
  top: 50% !important;
  left: 50% !important;
  inset: auto !important;
  transform: translate(-50%, -50%) !important;

  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;

  border-radius: 50%;
  background: #fff;
  box-sizing: border-box;
}

.market-chart {
  position: relative !important;
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
}

.market-chart__svg {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

.market-chart__inner {
  position: absolute !important;

  top: 50% !important;
  left: 50% !important;
  right: auto !important;
  bottom: auto !important;

  width: 70.4% !important;
  height: 70.4% !important;
  margin: 0 !important;
  padding: 0 !important;

  transform: translate(-50%, -50%) !important;

  border-radius: 50% !important;
  box-sizing: border-box !important;
}

.statistics {
  display: flex;
  align-items: stretch;
  gap: 0;
}

/* Боковые колонки */
.statistics > .wp-block-column:first-child,
.statistics > .wp-block-column:last-child {
  flex: 1 1 0;
  min-width: 0;
}

.statistics > .wp-block-column:last-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.statistics > .wp-block-column:first-child {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

/* Центральная колонка */
.statistics > .statistics__chart {
  flex: 0 1 35%;
  width: 35%;
  min-width: 0;

  box-sizing: border-box;

  display: flex;
  align-items: center;
  justify-content: center;
  container-type: size;
}

.market-statistic {
  overflow: visible !important;
  white-space: nowrap !important;
}

/* Контейнер диаграммы */
.statistics .market-charts {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;

  display: flex;
  align-items: center;
  justify-content: center;
}

/* Размер основного графика */
.statistics .market-chart {
  width: min(100cqw, 100cqh);
  height: min(100cqw, 100cqh);
  flex: 0 0 auto;
}

/* Заголовок внутри основного графика */
.statistics .market-chart__title {
  font-weight: 700;
  font-size: 48px;
  line-height: 61px;
  width: 155px;
  text-align: center;
  background: linear-gradient(270deg, #7f000e, #e46223);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Боковые группы */
.statistics .wp-block-group.statistics__acp.is-layout-flex,
.statistics .wp-block-group.statistics__external.is-layout-flex {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5px;
  text-align: center;
  padding: 3rem;
}
/* .wp-block-group.statistics__acp.is-layout-flex {
  padding: 3rem 0 3rem 3rem;
}
.wp-block-group.statistics__external.is-layout-flex {
  padding: 3rem 3rem 3rem 0;
} */

.statistics .wp-block-group.statistics__external.is-layout-flex {
  color: #9a9a9a;
}

.statistics .statistics__acp img {
  width: 210px;
  height: auto;
}

.market-statistic--acp-share,
.market-statistic--external-share {
  font-weight: 700;
  font-size: 48px;
  line-height: 61px;
  width: fit-content;

  display: inline-block;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  border-bottom: 2px solid #000000;
}

.market-statistic--acp-share {
  background: linear-gradient(90deg, #ff4d01 0%, #d41b2e 30%, #000000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.statistics__revenue-title {
  font-weight: 500;
  font-size: 24px;
  line-height: 31px;
}

.market-statistic--acp-revenue,
.market-statistic--external-revenue {
  font-weight: 700;
  font-size: 40px;
  line-height: 51px;
  border-bottom: 2px solid #000000;
}

.market-statistic--external-revenue {
  font-weight: 700;
  font-size: 40px;
  line-height: 51px;
  border-bottom: 2px solid #9a9a9a;
}

/* .market-statistic--acp-revenue,
.market-statistic--acp-share {
  border-bottom: 2px solid #000000;
}
.market-statistic--external-revenue,
.market-statistic--external-share {
  border-bottom: 2px solid #9a9a9a;
} */

.statistics__employees-title {
  font-weight: 500;
  font-size: 32px;
  line-height: 41px;
}

.market-statistic--acp-employees,
.market-statistic--external-employees {
  font-weight: 700;
  font-size: 64px;
  line-height: 82px;
}

.statistics .statistics__external-title {
  font-weight: 700;
  font-size: 40px;
  line-height: 51px;

  height: 60px;
}

.separate-statistics {
  display: flex;
  flex-direction: row;
  gap: 3rem;
}

.separate-statistics > .wp-block-column {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex: 1;
}

/* Не обрезаем анимируемые значения */
.statistics,
.statistics > .wp-block-column,
.statistics .wp-block-group.statistics__acp,
.statistics .wp-block-group.statistics__external {
  overflow: visible !important;
}

/* Числа */
.statistics .market-statistic {
  display: inline-block;
  white-space: nowrap !important;
  overflow: visible !important;
  box-sizing: content-box;
  flex-shrink: 0;
}

.market-statistic--acp-share,
.market-statistic--external-share {
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  overflow: visible !important;
  flex-shrink: 0 !important;
  border-bottom: none !important;
}

.market-statistic--acp-share,
.market-statistic--external-share {
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
}

.market-statistic--acp-share::after,
.market-statistic--external-share::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 131px;
  height: 2px;
  transform: translateX(-50%);
  background: #000;
}

.market-statistic--external-share::after {
  background: #9a9a9a;
  width: 141px;
}

/* Общая обёртка двух блоков */
.separate-statistics {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3rem;
  align-items: stretch;
}

/* Каждый блок: дистрибьюторы / производители */
.separate-statistics > .wp-block-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.distributor-statistics__title,
.manufacturer-statistics__title {
  font-style: normal;
  font-weight: 700;
  font-size: 45px;
  line-height: 57px;
  color: #000000;
  text-transform: uppercase;
  padding-bottom: 3.5rem;

  align-self: center;
}
.distributor-statistics__title {
  color: #fa5305;
}

/* Вертикальный разделитель */
.separate-statistics > .wp-block-column:first-child {
  position: relative;
}

.separate-statistics > .wp-block-column:first-child::after {
  content: "";
  position: absolute;
  top: 0;
  right: -1.5rem;
  width: 2px;
  height: 100%;
  background: #000;
}

/* Внутреннее расположение: АЧП — график — внешние */
.separate-statistics .distributor-statistics,
.separate-statistics .manufacturer-statistics {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0;
}

/* Боковые группы */
.separate-statistics .statistics__acp,
.separate-statistics .statistics__external {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
  gap: 5px;
}

/* Логотип АЧП */
.separate-statistics .statistics__acp img {
  width: 100%;
  width: 140px;
  height: 40px;
}

/* Центральная колонка */
.separate-statistics .statistics__chart {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
}

/* Контейнер нижней диаграммы */
.separate-statistics .market-charts {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Сама нижняя диаграмма */
.separate-statistics .market-chart {
  width: 100%;
  height: auto;
  max-width: 220px;
  aspect-ratio: 1 / 1;
  flex: 0 1 auto;
}

/* Заголовок внутри нижней диаграммы */
.separate-statistics .market-chart__title {
  font-weight: 700;
  font-size: 32px;
  line-height: 41px;
  width: 155px;
  text-align: center;
  background: linear-gradient(270deg, #7f000e, #e46223);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.market-chart {
  position: relative;
}

.market-chart__svg {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.market-chart__inner {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.statistics__external-title {
  font-weight: 700;
  font-size: 32px;
  line-height: 41px;
  color: #9a9a9a;
}
.market-statistic--manufacturers-external,
.market-statistic--distributors-external {
  font-weight: 700;
  font-size: 40px;
  line-height: 51px;

  color: #9a9a9a;
}
.market-statistic--distributors-acp,
.market-statistic--manufacturers-acp {
  font-weight: 700;
  font-size: 40px;
  line-height: 51px;
  background: linear-gradient(90deg, #ff4d01 0%, #d41b2e 30%, #000000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (max-width: 767px) {
  .separate-statistics {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Боковые колонки внутри блоков дистрибьюторов и производителей */
.separate-statistics .distributor-statistics > .wp-block-column:first-child,
.separate-statistics .manufacturer-statistics > .wp-block-column:first-child,
.separate-statistics .distributor-statistics > .wp-block-column:last-child,
.separate-statistics .manufacturer-statistics > .wp-block-column:last-child {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  min-height: 100%;
}

/* АЧП — к нижнему краю */
.separate-statistics .statistics__acp {
  margin-top: auto;
  margin-bottom: 0;
}

/* Внешние — к верхнему краю */
.separate-statistics .statistics__external {
  margin-top: 0;
  margin-bottom: auto;
}

@media (max-width: 1100px) {
  .separate-statistics .distributor-statistics,
  .separate-statistics .manufacturer-statistics {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .separate-statistics .statistics__acp {
    margin-top: 0;
    margin-bottom: 0;
  }

  .separate-statistics .statistics__external {
    margin-top: 0;
    margin-bottom: 0;
  }

  /* Боковые колонки внутри блоков дистрибьюторов и производителей */
  .separate-statistics .distributor-statistics > .wp-block-column:first-child,
  .separate-statistics .manufacturer-statistics > .wp-block-column:first-child {
    height: fit-content;
    min-height: fit-content;
    align-self: flex-start;
    justify-self: flex-start;
  }
  .separate-statistics .distributor-statistics > .wp-block-column:last-child,
  .separate-statistics .manufacturer-statistics > .wp-block-column:last-child {
    height: fit-content;
    min-height: fit-content;
    align-self: flex-end;
    justify-self: flex-end;
  }

  /* Центральная колонка */
  .separate-statistics .statistics__chart {
    min-width: 20rem;
  }
}

.quality-section > .wp-block-group__inner-container {
  width: 100%;
  background: linear-gradient(90deg, #f07e1b 0%, #c02030 50%, #1c1b17 100%);

  padding: 3rem;
  color: white;
}

.quality-section > .wp-block-group__inner-container > .wp-block-group {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.quality-section__title {
  font-style: normal;
  font-weight: 700;
  font-size: 40px;
  line-height: 51px;
}

.quality-section__cards {
  display: flex;
  flex-direction: row;
  gap: 10px;
  justify-content: space-between;
}

.quality-card {
  display: flex;
  flex-direction: row;
  gap: 3rem;
  padding: 3rem 3rem 5rem 3rem;
  border-radius: 25px;
  background-color: white;
  color: #000000;
  flex: 1;
  position: relative;
}

.market-customers {
  display: grid;
  min-width: 40%;
  max-width: 40%;
  height: fit-content;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: 12px;

  align-items: start;
  align-content: start;
}

@media (max-width: 1440px) {
  .quality-section__cards .quality-card:first-child {
    flex-direction: column-reverse;
  }
  .quality-section__cards .quality-card:last-child {
    flex-direction: column;
  }

  .quality-card {
    justify-content: space-between;
  }

  .market-customers {
    min-width: 80%;
    max-width: 80%;
    align-self: center;
  }
}

.quality-card__link {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 10;
  color: #fa5305;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;

  transition: 0.5s ease-in;
}

.quality-card__link:hover {
  right: 1rem;
}

.quality-card__check-number,
.quality-card__check-signature {
  background: linear-gradient(270deg, #000000 0%, #d41b2e 50%, #ff4d01 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.quality-card__check-number {
  font-weight: 700;
  font-size: 80px;
  line-height: 70px;
}
.quality-card__check-signature {
  font-weight: 500;
  font-size: 48px;
  line-height: 61px;
}

.quality-card__company-number {
  font-weight: 700;
  font-size: 64px;
  line-height: 82px;
}
.quality-card__company-signature {
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
}

.market-customers__item {
  width: 100%;
  aspect-ratio: 1 / 1;
  min-width: 0;
  height: auto;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;
}

.market-customers__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

@media (max-width: 767px) {
  .market-customers {
    width: 100%;
    max-width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
}
