:root {
  --home-purple: #9e249d;
  --home-purple-dark: #5b2890;
  --home-blue: #1272e0;
  --home-text: #3f3f3f;
  --home-yellow: #f8e900;
  --home-white: #ffffff;
  --home-shadow: 0 12px 32px rgba(91, 40, 144, 0.2);
  --home-radius: 28px;
}

.home-page {
  position: relative;
  overflow: hidden;
  color: var(--home-text);
  font-family: inherit;
}

.home-page *,
.home-page *::before,
.home-page *::after {
  box-sizing: border-box;
}

.home-page img,
.home-page video {
  display: block;
  max-width: 100%;
}

.home-container {
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
}

/* =========================================================
   ГОЛОВНИЙ ЕКРАН
   ========================================================= */

.home-hero {
  position: relative;
  min-height: clamp(530px, 60vw, 620px);
  overflow: hidden;
  background: #1b1236;
}

.home-hero__video-wrap {
  position: absolute;
  inset: 0;
}

.home-hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 50% 45%,
      rgba(158, 36, 157, 0.12) 0%,
      rgba(49, 16, 77, 0.34) 52%,
      rgba(17, 10, 39, 0.65) 100%
    ),
    linear-gradient(
      180deg,
      rgba(30, 16, 55, 0.1) 0%,
      rgba(83, 21, 108, 0.22) 55%,
      rgba(24, 12, 45, 0.5) 100%
    );
}

.home-hero__content {
  position: relative;
  z-index: 2;
  min-height: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 70px 20px 130px;
}

.home-hero__logo {
  width: clamp(280px, 27vw, 620px);
  max-height: 250px;
  object-fit: contain;
  filter: drop-shadow(0 5px 18px rgba(0, 0, 0, 0.22));
}

/* =========================================================
   ЧОТИРИ НАПРЯМИ
   ========================================================= */

.home-values {
  position: relative;
  z-index: 5;
  padding: 0 0 52px;
}

.home-values__grid {
  position: relative;
  margin-top: -62px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  background: var(--home-white);
  border-radius: 28px;
  box-shadow: 0 13px 32px rgba(39, 26, 91, 0.23);
}

.home-value {
  position: relative;
  min-height: 245px;
  padding: 32px 26px 28px;
  text-align: center;
}

.home-value:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 30px;
  right: 0;
  bottom: 30px;
  width: 1px;
  background: rgba(63, 63, 63, 0.18);
}

.home-value__icon-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.home-value__icon {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.home-value__title {
  margin: 0 0 12px;
  color: var(--home-purple-dark);
  font-size: clamp(21px, 1.75vw, 28px);
  font-weight: 800;
  line-height: 1.15;
}

.home-value__text {
  max-width: 250px;
  margin: 0 auto;
  color: var(--home-text);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
}

.home-blue-section {
  position: relative;
  z-index: 4;
  isolation: isolate;
  overflow: visible;
  background: transparent;

  margin-top: -100px;
}

.home-blue-section::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background: var(--home-blue);
  pointer-events: none;

  clip-path: polygon(
    0 0,
    10% 20px,
    20% 40px,
    30% 60px,
    40% 80px,
    50% 100px,
    60% 80px,
    70% 60px,
    80% 40px,
    90% 20px,
    100% 0,

    100% calc(100% - 100px),
    95% calc(100% - 81px),
    90% calc(100% - 64px),
    85% calc(100% - 49px),
    80% calc(100% - 36px),
    75% calc(100% - 25px),
    70% calc(100% - 16px),
    65% calc(100% - 9px),
    60% calc(100% - 4px),
    55% calc(100% - 1px),
    50% 100%,
    45% calc(100% - 1px),
    40% calc(100% - 4px),
    35% calc(100% - 9px),
    30% calc(100% - 16px),
    25% calc(100% - 25px),
    20% calc(100% - 36px),
    15% calc(100% - 49px),
    10% calc(100% - 64px),
    5% calc(100% - 81px),
    0 calc(100% - 100px)
  );
}
/*
 * Картка заходить на нижню частину головного відео
 * разом із усією синьою секцією.
 */
.home-values {
  position: relative;
  top: -60px;
  z-index: 2;
  padding: 0 0 50px;
  background: transparent;
}

.home-values__grid {
  margin-top: 0;
}

/* =========================================================
   UKRAINE FACILITY
   ========================================================= */

.home-facility {
  position: relative;
  top: -60px;
  z-index: 2;
  background: transparent;
  min-height: 610px;
  padding: 20px 0 0;
  color: var(--home-white);
}

.home-facility__container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(360px, 0.7fr) minmax(540px, 1.3fr);
  align-items: center;
  gap: 36px;
}

.home-facility__flags {
  align-self: center;
  margin-left: calc((100vw - min(1320px, calc(100vw - 40px))) / -2);
}

.home-facility__flags img {
  width: 100%;
  min-width: 570px;
  max-height: 560px;
  object-fit: contain;
  object-position: left bottom;
}

.home-facility__content {
  padding: 20px 0 40px;
}

.home-facility__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 28px;
}

.home-facility__title {
  margin: 0;
  color: var(--home-white);
  font-size: clamp(40px, 4vw, 64px);
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.home-facility__title span {
  color: var(--home-white);
}

.home-facility__title strong {
  color: var(--home-yellow);
  font-weight: 800;
}

.home-facility__logo {
  width: clamp(190px, 18vw, 270px);
  border: 4px solid var(--home-white);
}

.home-facility__text {
  max-width: 760px;
  font-size: clamp(15px, 1.25vw, 18px);
  font-style: italic;
  font-weight: 600;
  line-height: 1.48;
}

.home-facility__text p {
  margin: 0 0 18px;
}

.home-facility__text p:last-child {
  margin-bottom: 0;
}

/* =========================================================
   ЗАГАЛЬНИЙ ФОН НИЖНЬОЇ ЧАСТИНИ
   ========================================================= */

.home-content {
  position: relative;
  z-index: 1;
  margin-top: -170px;
  padding-top: 200px;
  background-color: #f9f0ff;
  background-image: url("../images/home/bg.jpg");
  background-repeat: repeat-y;
  background-position: center top;
  background-size: 100% auto;
}

/* =========================================================
   ЗАГОЛОВОК "ПРО НАС"
   ========================================================= */

.home-about {
  position: relative;
  z-index: 2;
  padding: 20px 0 30px;
}

.home-section-heading {
  position: relative;
  margin-bottom: 40px;
  text-align: center;
}

.home-section-heading__title {
  margin: 0;
  color: var(--home-purple-dark);
  font-size: clamp(44px, 5vw, 72px);
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

/* =========================================================
   КАРТКИ "ПРО НАС"
   ========================================================= */

.home-about__list {
  display: flex;
  flex-direction: column;
  gap: 42px;
}

.home-about-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1.15fr);
  min-height: 310px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--home-radius);
  box-shadow: var(--home-shadow);
  outline: none;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.home-about-card:hover,
.home-about-card:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(91, 40, 144, 0.25);
}

.home-about-card--reverse {
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.9fr);
}

.home-about-card--reverse .home-about-card__media {
  order: 2;
}

.home-about-card--reverse .home-about-card__content {
  order: 1;
}

.home-about-card--without-video {
  grid-template-columns: 1fr;
}

.home-about-card__media {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  background: #d8c3e9;
}

.home-about-card__video {
  width: 100%;
  height: 100%;
  min-height: 310px;
  object-fit: cover;
  transition:
    transform 0.6s ease,
    filter 0.4s ease;
}

.home-about-card:hover .home-about-card__video,
.home-about-card:focus-within .home-about-card__video,
.home-about-card.is-playing .home-about-card__video {
  transform: scale(1.025);
}

/* .home-about-card__video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
  background: linear-gradient(
    135deg,
    rgba(91, 40, 144, 0.05),
    rgba(158, 36, 157, 0.25)
  );
  color: var(--home-white);
  text-align: center;
  font-size: clamp(20px, 2vw, 29px);
  font-style: italic;
  font-weight: 800;
  line-height: 1.18;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

.home-about-card.is-playing .home-about-card__video-overlay {
  opacity: 0;
  visibility: hidden;
} */

.home-about-card__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(30px, 3vw, 58px);
}

.home-about-card__title {
  margin: 0 0 18px;
  color: var(--home-purple-dark);
  font-size: clamp(25px, 2.2vw, 34px);
  font-weight: 800;
  line-height: 1.15;
}

.home-about-card__text {
  color: var(--home-text);
  font-size: clamp(15px, 1.25vw, 18px);
  font-weight: 500;
  line-height: 1.5;
}

.home-about-card__text p {
  margin: 0 0 18px;
}

.home-about-card__text p:last-child {
  margin-bottom: 0;
}

.home-about-card__text ul,
.home-about-card__text ol {
  margin: 15px 0;
  padding-left: 23px;
}

.home-about-card__button,
.home-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  width: fit-content;
  min-height: 50px;
  margin-top: 23px;
  padding: 14px 32px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    var(--home-purple) 0%,
    #e4178d 58%,
    #ff1984 100%
  );
  color: var(--home-white);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(211, 22, 139, 0.27);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
}

.home-about-card__button:hover,
.home-about-card__button:focus-visible,
.home-cta__button:hover,
.home-cta__button:focus-visible {
  color: var(--home-white);
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow: 0 11px 25px rgba(211, 22, 139, 0.38);
}

.home-about-card__button-arrow,
.home-cta__button-arrow {
  font-size: 25px;
  line-height: 1;
  transition: transform 0.25s ease;
}

.home-about-card__button:hover .home-about-card__button-arrow,
.home-about-card__button:focus-visible .home-about-card__button-arrow,
.home-cta__button:hover .home-cta__button-arrow,
.home-cta__button:focus-visible .home-cta__button-arrow {
  transform: translateX(5px);
}

.home-about-card__media {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.home-about-card__video {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/*
 * Білий градієнт біля текстової частини.
 */
/* .home-about-card__fade {
  position: absolute;
  z-index: 2;
  top: 0;
  right: -1px;
  bottom: 0;
  width: 40%;
  pointer-events: none;
  opacity: 1;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.25) 25%,
    rgba(255, 255, 255, 0.7) 70%,
    rgba(255, 255, 255, 0.95) 90%,
    #ffffff 100%
  );
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
} */

/*
 * Коли відео справа, градієнт розташовується зліва.
 */
/* .home-about-card--reverse .home-about-card__fade {
  right: auto;
  left: -1px;
  background: linear-gradient(
    270deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.15) 25%,
    rgba(255, 255, 255, 0.55) 62%,
    rgba(255, 255, 255, 0.9) 85%,
    #ffffff 100%
  );
} */

/*
 * Напис поверх відео.
 */
.home-about-card__video-overlay {
  position: absolute;
  z-index: 3;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
  color: #ffffff;
  text-align: center;
  font-size: clamp(20px, 2vw, 29px);
  font-style: italic;
  font-weight: 800;
  line-height: 1.18;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.65);
  pointer-events: none;
  opacity: 1;
  visibility: visible;
  transition:
    opacity 0.35s ease,
    visibility 0.35s ease;
}

/*
 * При наведенні градієнт і напис одразу зникають.
 */
/* .home-about-card:hover .home-about-card__fade,
.home-about-card:focus-within .home-about-card__fade,
.home-about-card.is-playing .home-about-card__fade {
  opacity: 0;
  visibility: hidden;
}

.home-about-card:hover .home-about-card__video-overlay,
.home-about-card:focus-within .home-about-card__video-overlay,
.home-about-card.is-playing .home-about-card__video-overlay {
  opacity: 0;
  visibility: hidden;
} */

/* =========================================================
   НИЖНІЙ ІНФОРМАЦІЙНИЙ БЛОК
   ========================================================= */

.home-mission {
  position: relative;
  z-index: 2;
  padding: 30px 0;
  text-align: center;
}

.home-mission__container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home-mission__logo {
  width: clamp(280px, 35vw, 520px);
  margin-bottom: 30px;
  object-fit: contain;
}

.home-mission__text {
  max-width: 1140px;
  margin: 0 auto;
  color: var(--home-text);
  font-size: clamp(17px, 1.65vw, 24px);
  font-style: italic;
  font-weight: 800;
  line-height: 1.45;
}

.home-mission__star {
  width: clamp(125px, 10vw, 210px);
  margin-top: 42px;
  object-fit: contain;
  filter: drop-shadow(0 10px 15px rgba(91, 40, 144, 0.15));
}

/* =========================================================
   НИЖНІЙ CTA
   ========================================================= */

.home-cta {
  position: relative;
  z-index: 2;
  min-height: 390px;
  display: flex;
  align-items: flex-end;
  margin-top: -100px;
  padding-bottom: 50px;
  background-image: url("../images/home/bottom.png");
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 100% 100%;
  color: var(--home-white);
  text-align: center;
}

.home-cta__container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.home-cta__title {
  margin: 0 0 8px;
  color: var(--home-white);
  font-size: clamp(27px, 3vw, 42px);
  font-weight: 900;
  line-height: 1.15;
  text-shadow:
    0 2px 4px rgba(91, 40, 144, 0.7),
    0 5px 14px rgba(91, 40, 144, 0.5);
}

.home-cta__text {
  max-width: 850px;
  margin: 0;
  color: var(--home-white);
  font-size: clamp(15px, 1.4vw, 19px);
  font-weight: 500;
  line-height: 1.45;
  text-shadow:
    0 1px 3px rgba(91, 40, 144, 0.8),
    0 3px 9px rgba(91, 40, 144, 0.6);
}

.home-cta__button {
  min-width: 310px;
  margin-top: 24px;
  background: linear-gradient(
    90deg,
    var(--home-purple-dark),
    var(--home-purple),
    #ff1687
  );
}

/* =========================================================
   АДАПТИВ — ДО 1100 PX
   ========================================================= */

@media (max-width: 1100px) {
  .home-hero {
    min-height: 600px;
  }

  .home-values__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-value {
    min-height: 220px;
  }

  .home-value:nth-child(2)::after {
    display: none;
  }

  .home-value:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(63, 63, 63, 0.16);
  }

  .home-facility {
    padding-top: 30px;
  }

  .home-facility__container {
    grid-template-columns: 0.75fr 1.25fr;
    gap: 20px;
  }

  .home-facility__flags img {
    min-width: 470px;
  }

  .home-facility__heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .home-facility__logo {
    width: 230px;
  }

  .home-about-card,
  .home-about-card--reverse {
    grid-template-columns: minmax(310px, 0.9fr) minmax(0, 1.1fr);
  }

  .home-about-card__content {
    padding: 34px;
  }
}

/* =========================================================
   АДАПТИВ — ДО 850 PX
   ========================================================= */

@media (max-width: 850px) {
  .home-container {
    width: min(100% - 30px, 720px);
  }

  .home-hero {
    min-height: 520px;
  }

  .home-hero__content {
    padding-bottom: 105px;
  }

  .home-hero__logo {
    width: min(78vw, 490px);
  }

  .home-values {
    padding-bottom: 40px;
  }

  .home-values__grid {
    margin-top: -48px;
  }

  .home-facility {
    padding-top: 15px;
    padding-bottom: 90px;
  }

  .home-facility__container {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .home-facility__flags {
    order: 2;
    width: calc(100% + 30px);
    margin: 10px -15px -20px;
  }

  .home-facility__flags img {
    width: 100%;
    min-width: 0;
    max-height: none;
  }

  .home-facility__content {
    order: 1;
    width: 100%;
    padding-bottom: 10px;
  }

  .home-facility__heading {
    flex-direction: row;
    align-items: center;
  }

  .home-facility__title {
    font-size: clamp(35px, 7vw, 54px);
  }

  .home-facility__text {
    max-width: none;
  }

  .home-content {
    padding-top: 90px;
    background-size: auto;
  }

  .home-about {
    padding-bottom: 70px;
  }

  .home-about-card,
  .home-about-card--reverse {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .home-about-card--reverse .home-about-card__media,
  .home-about-card--reverse .home-about-card__content {
    order: initial;
  }

  .home-about-card__fade,
  .home-about-card--reverse .home-about-card__fade {
    top: auto;
    right: 0;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 32%;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.25) 35%,
      rgba(255, 255, 255, 0.75) 75%,
      #ffffff 100%
    );
  }

  .home-about-card__media,
  .home-about-card__video {
    min-height: 350px;
  }

  .home-about-card__content {
    padding: 30px;
  }

  .home-mission {
    padding-top: 35px;
  }

  .home-cta {
    min-height: 330px;
    padding-top: 115px;
    background-size: auto 100%;
  }
}

/* =========================================================
   МОБІЛЬНА ВЕРСІЯ
   ========================================================= */

@media (max-width: 560px) {
  .home-container {
    width: calc(100% - 24px);
  }

  .home-hero {
    min-height: 440px;
  }

  .home-hero__video {
    object-position: 48% center;
  }

  .home-hero__content {
    padding: 50px 15px 100px;
  }

  .home-hero__logo {
    width: min(82vw, 350px);
  }

  .home-hero__curve {
    bottom: -50px;
    height: 115px;
  }

  .home-values__grid {
    grid-template-columns: 1fr;
    margin-top: -35px;
    border-radius: 22px;
  }

  .home-value {
    min-height: 0;
    padding: 25px 20px;
  }

  .home-value:not(:last-child)::after {
    top: auto;
    left: 24px;
    right: 24px;
    bottom: 0;
    width: auto;
    height: 1px;
  }

  .home-value:nth-child(-n + 2) {
    border-bottom: 0;
  }

  .home-value__icon-wrap {
    min-height: 58px;
  }

  .home-value__icon {
    width: 54px;
    height: 54px;
  }

  .home-value__text {
    max-width: 310px;
    font-size: 14px;
  }

  .home-facility {
    padding-bottom: 70px;
  }

  .home-facility__heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .home-facility__title {
    white-space: normal;
  }

  .home-facility__logo {
    width: min(230px, 75vw);
  }

  .home-facility__text {
    font-size: 14px;
    line-height: 1.5;
  }

  .home-facility__bottom-curve {
    bottom: -68px;
    height: 135px;
  }

  .home-content {
    padding-top: 75px;
  }

  .home-section-heading {
    margin-bottom: 28px;
  }

  .home-section-heading__title {
    font-size: 42px;
  }

  .home-about__list {
    gap: 28px;
  }

  .home-about-card {
    border-radius: 20px;
  }

  .home-about-card__media,
  .home-about-card__video {
    min-height: 235px;
  }

  .home-about-card__video-overlay {
    font-size: 20px;
  }

  .home-about-card__content {
    padding: 24px 20px 27px;
  }

  .home-about-card__title {
    margin-bottom: 13px;
    font-size: 25px;
  }

  .home-about-card__text {
    font-size: 14px;
  }

  .home-about-card__button {
    width: 100%;
    justify-content: space-between;
  }

  .home-mission__logo {
    width: min(80vw, 350px);
  }

  .home-mission__text {
    font-size: 16px;
  }

  .home-mission__star {
    width: 135px;
    margin-top: 30px;
  }

  .home-cta {
    min-height: 320px;
    margin-top: -15px;
    padding: 105px 0 25px;
  }

  .home-cta__button {
    min-width: 0;
    justify-content: space-between;
  }
}

/* =========================================================
   ПРИСТРОЇ БЕЗ НАВЕДЕННЯ КУРСОРА
   ========================================================= */

@media (hover: none), (pointer: coarse) {
  .home-about-card__media {
    cursor: pointer;
  }

  .home-about-card:hover {
    transform: none;
  }
}

/* =========================================================
   ЗМЕНШЕННЯ АНІМАЦІЇ
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .home-about-card,
  .home-about-card__video,
  .home-about-card__video-overlay,
  .home-about-card__button,
  .home-cta__button,
  .home-about-card__button-arrow,
  .home-cta__button-arrow {
    transition: none;
  }
}

/* =========================================================
   ПРО НАС — ШИРОКІ КАРТКИ ЯК У МАКЕТІ
   ========================================================= */

.home-about__list {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  gap: 54px;
}

/*
 * Звичайна картка:
 * відео зліва, картка притиснута до лівого краю екрана.
 */
.home-about-card {
  align-self: flex-start;
  width: min(1600px, 92vw);
  min-height: 350px;
  grid-template-columns: minmax(480px, 0.95fr) minmax(0, 1.15fr);
  border-radius: 0 var(--home-radius) var(--home-radius) 0;
}

/*
 * Парна картка:
 * текст зліва, відео справа,
 * картка притиснута до правого краю екрана.
 */
.home-about-card--reverse {
  align-self: flex-end;
  grid-template-columns: minmax(0, 1.15fr) minmax(480px, 0.95fr);
  border-radius: var(--home-radius) 0 0 var(--home-radius);
}

.home-about-card__media,
.home-about-card__video {
  min-height: 350px;
}

.home-about-card__media {
  position: relative;
}

/*
 * Білий градієнт поверх лівої частини відео,
 * коли текст розташований зліва.
 */

.home-about-card__video {
  position: relative;
  z-index: 0;
}

.home-about-card__video-overlay {
  z-index: 2;
}

.home-about-card__content {
  position: relative;
  z-index: 3;
  padding: clamp(34px, 3vw, 65px);
}

/* =========================================================
   АДАПТИВ ШИРОКИХ КАРТОК
   ========================================================= */

@media (max-width: 1300px) {
  .home-about-card,
  .home-about-card--reverse {
    width: 95vw;
    grid-template-columns: minmax(410px, 0.95fr) minmax(0, 1.05fr);
  }

  .home-about-card--reverse {
    grid-template-columns: minmax(0, 1.05fr) minmax(410px, 0.95fr);
  }
}

@media (max-width: 950px) {
  .home-about-card,
  .home-about-card--reverse {
    width: calc(100vw - 30px);
    grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1.1fr);
  }

  .home-about-card--reverse {
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  }

  .home-about-card__content {
    padding: 30px;
  }
}

@media (max-width: 850px) {
  .home-about__list {
    width: auto;
    margin-left: 0;
    gap: 30px;
  }

  .home-about-card,
  .home-about-card--reverse {
    align-self: auto;
    width: 100%;
    border-radius: 22px;
  }
}

@media (max-width: 850px) {
  .home-blue-section {
    margin-top: -48px;
    padding-bottom: 145px;
  }

  .home-values__grid {
    margin-top: 0;
  }

  .home-facility {
    padding-bottom: 0;
  }

  .home-content {
    margin-top: -125px;
    padding-top: 205px;
  }
}

@media (max-width: 560px) {
  .home-blue-section {
    margin-top: -35px;
    padding-bottom: 110px;
  }

  .home-values__grid {
    margin-top: 0;
  }

  .home-facility {
    padding-bottom: 0;
  }

  .home-content {
    margin-top: -95px;
    padding-top: 160px;
  }
}
