.greetings-section {
  width: 100%;
  margin: 0 auto;
  position: relative;  
  min-height: 840px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  padding-bottom: 80px;
  margin-inline: 0;

  & .contact-us {
    max-width: 550px; /* 450px */
    width: fit-content;
    & h1 {
      line-height: 48px;

      @media(max-width: 560px) {
        line-height: 36px;
        font-size: 1.5rem;
      }
    }
  }

  & .logo {
    position: relative;
    min-width: 0;
    right: 0;
    max-width: 692px;
    animation: levitate 3s ease-in-out infinite;
  }

  @media (max-height: 800px) {
    min-height: 100vh;

    & .logo {
      max-width: 500px;
    }
  }


  @media (max-width: 1292px) {
    min-height: 700px;
    & .logo {
      max-width: 500px;
    }
  }

  @media (max-width: 1100px) {
    height: calc(100vh + 60px);
    max-height: 600px;
    min-height: initial;
    flex-wrap: nowrap;
    
    & .logo {
      /* max-width: 100%; */
      height: auto;
      width: 100%;
    }
  }

  @media (max-width: 900px) {
    flex-direction: column-reverse;
    align-items: self-end;
    padding-right: 0;
    gap: 0;
    min-height: 0;
    max-height: 900px;
    height: 100vh;
    flex-wrap: nowrap;

    & .contact-us {
      align-self: self-start;
      padding-right: 1.5rem;

      & h1 {
        margin-top: 0;
      }
    }

    & .logo-wrapper {
      margin-top: 40px;
      position: relative;
      width: 100%;
      /* max-width: 100%; */
      height: 100%;
      overflow: hidden;
    }

    & .logo {
      /* width: 50vh; */
      max-width: none;
      position: absolute;
      height: 100%;
      width: auto;
      top: 40px;
      right: 0px;
    }
  }

  @media (max-width: 630px) {
    height: 700px;
    max-height: none;

    & .logo-wrapper {
      margin-top: 40px;
      position: relative;
      width: 100%;
      /* max-width: 100%; */
      height: 384px;
      overflow: hidden;
    }

    & .logo {
      position: absolute;
      height: 100%;
      max-width: 100%;
      max-height: 100%;
      height: initial;
      top: 30px;
    }
  }

  @media (max-width: 480px) {
    height: initial;
    min-height: 640px;

    & .logo-wrapper {
      height: 90vw;
      max-height: 344px;
    }
  }
}

/* Delay offscreen section rendering until they approach viewport on Chromium-based browsers. */
.deferred-section {
  content-visibility: auto;
  contain-intrinsic-size: 1px 1200px;
}

@keyframes levitate {
  0% {
    transform: translateY(-40px);
  }
  50% {
    transform: translateY(-70px);
  }
  100% {
    transform: translateY(-40px);
  }
}

.big-numbers-section {
  display: flex;
  padding-block: 80px 120px;
  margin-block: 0;
  flex-wrap: wrap;
  gap: 2rem;

  & .big-number {
    flex: 1 1 0%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    border-radius: 10px;
    transition: 1.5s ease;

    &.animation-hidden {
      scale: 0;
      filter: blur(5px);
    }

    &.animation-show {
      opacity: 1;
      filter: blur(0);
    }

    & h3 {
      font-weight: 900;
      font-size: 96px;
      line-height: 96px;
      margin: 0;
      text-align: center;

      transition: 1s;

      &.animation-hidden {
        scale: 0;
        filter: blur(5px);
      }

      &.animation-show {
        opacity: 1;
        filter: blur(0);
      }
    }

    & p {
      font-weight: 300;
      font-size: 16px;
      line-height: 24px;
      text-align: center;
    }
  }
}

.description-section {
  margin-block: 0;
  padding-block: 220px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: var(--font-size-m);
  font-weight: 300;
  line-height: 36px;
  color: #666666;
  transition: all 1.5s ease;

  & div {
    max-width: 824px;
  }

  & p, h2 {
    font-size: 1.5rem;
    font-weight: 300;
    transition: all 1s, color 5s;
  }

  @media (max-width: 1220px) {
    padding-block: 160px 80px;
  }

  /* Стилі для text-reveal ефекту */
  & .text-reveal {
    
    & .word {
      display: inline-block;
      color: #666666;
      transition: color 0.2s ease;
      
      &.active {
        color: white;
      }
    }
  }

  /* Старі стилі animation-hidden для інших елементів */
  & .animation-hidden {
    color: #666666;
    filter: blur(5px);
    transform: translateX(-100%);
  }

  & .animation-show {
    color: white;
    filter: blur(0);
    transform: translateX(0);
  }
}

.reviews-section {
  margin-block: 160px 120px;
}

.gif-background {
  width: 100%;
  height: 100%;
  min-width: 1440px;
  overflow: hidden;
  position: relative;

  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background-color: var(--white);
    z-index: 10;
  }

  & video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  @media (max-width: 1440px) {
    min-width: 950px;
  }

}

.lottie-animation-section {
  
  & .lottie-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;

    & h3 {
      overflow: hidden;   
      max-width: 550px;
      font-weight: 600;
      font-size: 24px;
      line-height: 36px;
      letter-spacing: 0%;
      text-align: center;
      color: black;
      margin-bottom: 2rem;
      padding-inline: 1.5rem;
    }
  }
}

.domains {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: domain-counter; /* ініціалізуємо лічильник */

  & .animation-hidden {
    opacity: 0;
    filter: blur(5px);
    transform: translateX(-100%);
  }
  
  & .animation-show {
    opacity: 1;
    filter: blur(0);
    transform: translateX(0);
  }
}

/* Кожен пункт */
.domains li {
  font-weight: 700;
  font-size: 40px;
  line-height: 56px;
  position: relative;
  background-color: var(--black); /* чорний фон рядка */
  color: #fff; /* білий текст за замовчуванням */
  padding: 0;
  border-bottom: 1px solid #333333;
  transition: background-color 0.3s ease, color 0.3s ease;
  counter-increment: domain-counter; /* збільшуємо лічильник */
  overflow: hidden; /* щоб псевдоелемент не “вилазив” */
  transition: filter 1s ease, transform 1s ease;
}

/* Додаємо номер (01, 02...) через псевдоелемент */
.domains li::before {
  font-weight: 400;
  font-size: 16px;
  content: counter(domain-counter, decimal-leading-zero);
  position: absolute;
  left: 0;
  color: #999999;
  transition: transform 0.3s ease, color 0.3s ease;
}

/* Внутрішній текст, який ми будемо зсувати */
.domain-text {
  display: block;
  width: 100%;
  padding: 1rem 2rem 1rem 18.5rem; /* full-row clickable area with left offset for index */
  box-sizing: border-box;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s ease, color 0.3s ease;
}

/* Ховер: фон стає білим, текст і номер — чорними */
.domains li:hover {
  background-color: #fff;
  color: var(--black); /* колір тексту */
}

/* Зсуваємо лише номер і текст, а не весь li */
.domains li:hover::before {
  /* color: var(--black); */
  transform: translateX(10px);
}
.domains li:hover .domain-text {
  color: var(--black);
  transform: translateX(10px);
}

@media (max-width: 1200px) {
  .domains li {
    font-size: 28px;
    line-height: 40px;
  }

  .domain-text {
    padding-left: 3rem;
  }
}

.form-section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 50%;
  background-color: var(--black);
}