:root {
  --font-size-s: 0.875rem; /* 14px */
  --font-size-base: 1rem; /* 16px */
  --font-size-m: 1.5rem; /* 24px */
  --font-size-l: 2.25rem; /* 36px */
  --font-size-xl: 2.5rem; /* 40px */

  --black: #0a0a0a;
  --white: #f5f5f5;
}

@media (max-width: 768px) {
  :root {
    --font-size-s: 0.875rem; /* 14px */
    --font-size-base: 1rem; /* 16px */
    --font-size-m: 1.5rem; /* 24px */
    --font-size-l: 2.25rem; /* 36px */
    --font-size-xl: 2.5rem; /* 40px */
  }
}

html {
  scroll-behavior: smooth;
}

a,
a:visited,
a:active,
a:focus,
.dropdown-button,
button,
.filter li,
.slide__container * {
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  outline: none;
}

:target {
  scroll-margin-top: 20vh; /* Adjust this value as needed */
}

body {
  font-size: var(--font-size-base);
  font-family: Geologica;
  background-color: var(--white);

  &.no-scroll {
    overflow: hidden;
  }
}


h1, h2 {
  font-family: Geologica;
  font-weight: 500;
  font-size: 2rem;
}

h3 {
  margin: 0;
}

.content-dark {
  padding-top: 73px;
  background-color: #0a0a0a;
}

.content {
  padding-top: 73px;
}

.wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

section {
  width: 100%;
  flex-grow: 1;
  max-width: 1296px;
  margin-inline: auto;
  margin-block: 120px 80px;
  padding-inline: 1.5rem;

  @media (max-width: 1200px) {
    margin-block: 80px 40px;
  }
}

.btn-flex-container {
  width: fit-content;
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;

  & .contact-btn {
    text-wrap: nowrap;
  }

  & .clutch-widget {
    & iframe {

      width: 200px;
    }
  }
}

.light {
  background: var(--white);
  color: var(--black);

  & .contact-btn {
    background: var(--white);
    border: 2px solid var(--black);
    color: var(--black);
  }

  & .contact-btn:hover {
    background: var(--black);
    color: white;

    & .arrow-right, .phone-icon, .whatsapp-icon {
      background-color: white;
    }
  }

  .dropdown-arrow {
    background-color: var(--black); /* Or any color of your choice. */
  }

  .arrow-right, .phone-icon, .whatsapp-icon {
    background-color: var(--black); /* Or any color of your choice. */
  }
}

.dark {
  background: var(--black);
  color: white;

  & .contact-btn {
    background: var(--black);
    border: 2px solid white;
    color: white;
  }

  & .contact-btn:hover {
    background: var(--white);
    color: var(--black);

    & .arrow-right, .phone-icon, .whatsapp-icon {
      background-color: var(--black);
    }
  }

  & .contact-btn * {
    color: white;
  }

  .dropdown-arrow {
    background-color: white; /* Or any color of your choice. */
  }

  .arrow-right, .phone-icon, .whatsapp-icon {
    background-color: white; /* Or any color of your choice. */
  }
}

.momentum {
  position: relative;
  display: block;
  -webkit-mask-size: cover;
  mask-size: cover;
  -webkit-mask-image: url("../../img/logo.svg");
  mask-image: url("../../img/logo.svg");
}

.momentum::before {
  content: '';
  position: absolute;
  width: inherit;
  height: inherit;
  -webkit-mask-size: cover;
  mask-size: cover;
  -webkit-mask-image: url("../../img/logo.svg");
  mask-image: url("../../img/logo.svg");
  background: linear-gradient(
    180deg,
    #8039e5 0%,
    #b939e5 50%,
    #e539bd 100%
  );
  opacity: 0;
  transition: 0.3s ease;
  will-change: opacity;
}

.momentum:hover::before{
  opacity: 1;
}

.dark .momentum {
  background: white;
}

.light .momentum {
  background: black;
}

.contact-btn {
  cursor: pointer;
  width: fit-content;
  display: flex;
  align-items: center;
  padding: 1rem 2rem;
  border: 2px solid var(--black);
  border-radius: 3rem;
  text-decoration: none;
  color: var(--black);
  font-weight: 500;
  font-size: 1rem;
  transition: background-color 0.3s ease;

  & .arrow-right {
    margin-bottom: 0.1rem;
  }
}

.arrow-right {
  width: 1.5rem;
  height: 1.5rem;
  display: inline-block;
  margin-left: 0.75rem;
  transition: 0.3s ease;
  -webkit-mask-size: cover;
  mask-size: cover;
  -webkit-mask-image: url("../../img/arrow-right.svg");
  mask-image: url("../../img/arrow-right.svg");
}

.dropdown-arrow {
  width: 1rem;
  height: 1rem;
  display: inline-block;
  margin-left: 4px;
  transition: transform 0.3s ease;
  -webkit-mask-size: cover;
  mask-size: cover;
  -webkit-mask-image: url("../../img/arrow_small_down_24px.svg");
  mask-image: url("../../img/arrow_small_down_24px.svg");
  flex-shrink: 0;
}

.phone-icon {
  width: 1.5rem;
  height: 1.5rem;
  display: inline-block;
  transition: 0.3s ease;
  -webkit-mask-size: cover;
  mask-size: cover;
  -webkit-mask-image: url("../../img/phone_24px.svg");
  mask-image: url("../../img/phone_24px.svg");
}

.whatsapp-icon {
  width: 1.5rem;
  height: 1.5rem;
  display: inline-block;
  transition: 0.3s ease;
  -webkit-mask-size: cover;
  mask-size: cover;
  -webkit-mask-image: url("../../img/techno-icons\ 2/whatsapp_24px.svg");
  mask-image: url("../../img/techno-icons\ 2/whatsapp_24px.svg");
}

.section__title {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 60px;

  @media (max-width: 1200px) {
    margin-bottom: 40px;
  }
}

.services__row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Вирівнювання по центру */
  gap: 1.25rem; /* Проміжки між картками */
  margin-bottom: 2rem; /* Відступ знизу */
}

/* Окрема картка */
.service-card {
  text-decoration: none;
  color: white;
  width: 294px;
  height: 280px;
  position: relative;
  flex: 0 0 294px;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid #333333;
  border-radius: 16px;
  overflow: hidden;
  transition: opacity 1s, filter 1s, transform 1s;

  @media (prefers-reduced-motion) {
    transition: none;
  }

  &.animation-hidden {
    opacity: 0;
    filter: blur(5px);
    transform: translateY(-50%);

    @media (max-width: 670px) {
      transform: translateX(-100%);
    }
  }

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

    @media (max-width: 670px) {
      transform: translateX(0);
    }
  }
}

.service-card:hover {
  & .service-card__icon {
    transform: scale(1.1) translateX(3%) translateY(3%);
  }
}

.dark {
  & .service-card {
    &:hover {
      & .contact-btn {
        background-color: white;
      }

      & .arrow-right {
        background-color: black;
      }
    }
  }
}

.light {
  & .service-card {
    color: black;
    border: 1px solid #cccccc;

    &:hover {
      & .contact-btn {
        background-color: black;
      }

      & .arrow-right {
        background-color: white;
      }
    }
  }
}

/* Іконка/зображення у верхній частині картки */
.service-card__icon {
  height: 200px;
  position: absolute;
  bottom: -48px;
  left: -24px;
  transition: all 0.3s;
}

/* Заголовок картки */
.service-card__title {
  font-weight: 600;
  font-size: var(--font-size-m);
  margin: 0;
}

/* Посилання зі стрілкою */
.service-card__link {
  position: absolute;
}

/* Контейнер з кнопкою */
.services__actions {
  display: flex;
  justify-content: center;
  margin-top: 80px;
}

@media (max-width: 670px) {
  .service-card {
    max-width: 400px;
    width: 100%;
    flex: 1 1 100%;
  }
}

/* Загальний контейнер секції (можна використати для центрованого розміщення) */
.form-section {
  margin-top: 0;
  padding-top: 120px;
  max-width: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;

  & .form-container {
    z-index: 5;
    background: linear-gradient(180deg, #8039e5 0%, #b939e5 50%, #e539bd 100%);
    max-width: 824px;
    width: 100%;
    padding: 2.5rem 3rem 3.5rem;
    border-radius: 1.5rem;
    color: #fff;

    & {
      .input-wrapper {
        margin-bottom: 0.375rem;
      }
    }

    /* @media (max-height: 875px) {
      padding: 2rem 1.5rem 3rem;

      & .form-title {
        line-height: 40px;
      }

      & .contact-btn {
        margin-top: 0;
      }

      & .form-subtitle {
        margin-block: 0 20px;
      }
    } */

    @media (max-width: 530px) {
      padding: 2rem 1.5rem 3rem;
    }
  }

  & .file-name-display {
    color: white;
  }

  /* Заголовок форми */
  & .form-title {
    margin: 0;
    font-weight: 700;
    font-size: 40px;
    line-height: 56px;
    text-align: center;

    @media (max-width: 530px) {
      font-size: 28px;
      line-height: 40px;
    }
  }

  /* Підзаголовок (опис) */
  & .form-subtitle {
    font-weight: 300;
    line-height: 24px;
    font-size: 1rem;
    text-align: center;
    margin-block: 1.5rem 40px;

    @media (max-width: 530px) {
      margin-block: 1rem 2rem;
    }
  }

  /* Сама форма: вертикальний флекс-стек */
  & form {
    font-weight: 300;
    font-size: 16px;
    line-height: 24px;

    display: flex;
    flex-direction: column;
    gap: 0.375rem; /* відступ між полями */
  }

  /* Текстові поля та textarea */
  & form input[type="text"],
  & form input[type="email"],
  & form textarea,
  & .file-label {
    font-weight: 300;
    font-size: 1rem;
    line-height: 24px;

    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #cccccc;
    border-radius: 0.5rem;
    background: #fff; /* біле тло для полів */
    color: #333; /* темний текст усередині */
    font-size: 1rem;
    outline: none; /* забираємо стандартну синю обведення (за потреби) */

    &:hover {
      border-color: #999999;
    }

    &:focus {
      border-color: #666666;
    }
  }

  & form textarea {
    resize: vertical;
    height: 88px;
  }

  /* Плейсхолдери */
  & form input::placeholder,
  & form textarea::placeholder {
    color: #999;
  }

  /* Файл (кастомний label для кнопки "Прикріпити файл") */
  & .file-label {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 0.75rem 0.75rem 0.25rem;
    gap: 0.5rem;
    color: #666666;
    cursor: pointer;
    justify-content: space-between;

    & .file-label-content {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
    }

    & span {
      pointer-events: none; /* щоб клік ішов по всьому label */
    }

    & img {
      width: 32px;
      height: 32px;
      filter: brightness(0) saturate(100%) invert(45%) sepia(0%) saturate(0%)
        hue-rotate(0deg) brightness(92%) contrast(82%);
    }

    & .cross {
      display: none;
      cursor: pointer;
      margin-left: 0;
      min-width: 1.5rem;

      &:hover {
        background-color: #999999;
      }
    }
  }

  /* Кнопка відправлення */
  & .contact-btn {
    cursor: pointer;
    align-self: center;
    margin-top: 40px;
    color: white;
    border: 1px solid white;
    background: none;

    @media (max-width: 530px) {
      margin-top: 2rem;
    }
  }

  & .contact-btn:hover {
    color: var(--black);
    border: 1px solid white;
    background: white;

    & .arrow-right {
      background-color: var(--black);
    }
  }
}

.technologies-section {
  margin-block: 120px 80px;

  /* & .technologies */

  & .ui-card-wrapper {
    max-width: 230px;

    @media (max-width: 1200px) {
      max-width: 327px;
    }

    @media (max-width: 350px) {
      max-width: 100%;
    }

    transition: 1s ease, opacity 2s ease;

    @media (prefers-reduced-motion) {
      transition: none;
    }

    &.animation-hidden {
      opacity: 0;
      filter: blur(20px);
      transform: translateY(-50%);
      @media (max-width: 670px) {
        transform: translateX(-100%);
      }
    }

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

      @media (max-width: 670px) {
        transform: translateX(0);
      }
    }

    @media (min-width: 718px) {
      &:nth-of-type(even) {
        transition-delay: 0.25s;
      }
    }

    @media (min-width: 1061px) {
      &:nth-of-type(even) {
        transition-delay: 0s;
      }
    }
    @media (min-width: 1294px) {
      &:nth-of-type(2) {
        transition-delay: 0.25s;
      }
      &:nth-of-type(3) {
        transition-delay: 0.5s;
      }
      &:nth-of-type(4) {
        transition-delay: 0.75s;
      }
      &:nth-of-type(5) {
        transition-delay: 1s;
      }
    }
  }

  & .technologies-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;

    @media (max-width: 1200px) {
      gap: 1rem;
    }
  }

  & .technologies-wrapper {
    height: 480px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 2rem;

    @media (max-width: 1200px) {
      height: max-content;
    }

    & h3 {
      font-family: Geologica;
      font-weight: 600;
      font-size: 24px;
      line-height: 36px;
      letter-spacing: 0%;
    }

    & .technologies {
      min-width: 182px;
      display: flex;
      flex-flow: row-reverse wrap-reverse;
      gap: 10px;
      @media (max-width: 1200px) {
        flex-flow: row wrap;
        column-gap: 2.25px;
        row-gap: 0.75rem;
        min-width: 279px;
      }

      @media (max-width: 350px) {
        min-width: 0;
        justify-content: center;
      }
    }

    & .technology {
      width: 54px;
      height: 54px;

      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: 0.5rem;

      & img {
        width: 2rem;
        height: 2rem;
      }

      & span {
        font-weight: 300;
        font-size: 10px;
        line-height: 10px;
        text-align: center;
        color: #333333;
      }
    }
  }

  & .note {
    display: block;
    margin-top: 60px;
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    color: #333333;

    @media (max-width: 1200px) {
      margin-top: 40px;
    }
  }
}

.ui-card-wrapper {
  width: fit-content;
  justify-content: space-between;
  padding: 1rem 1.5rem 1.5rem;
  border-radius: 16px;
  border-width: 1px;
  border: 1px solid #cccccc;
}

.dark .ui-card-wrapper {
  border-color: #333333;
}

.light .ui-card-wrapper {
  border-color: #cccccc;
}

.breadcrumb {
  align-self: flex-start;
  font-size: 14px;

  margin-bottom: 4.5rem;

  @media (max-width: 1100px) {
    margin-bottom: 3rem;
  }
  & ul {
    padding: 0;
    margin:0;
    row-gap: 0.25rem;
    display: flex;
    flex-wrap: wrap;
    justify-self: flex-start;

    & li {
      display: flex;
      list-style-type: none;
    }

    & li a {
      color: #696969;
      text-decoration: underline;

      &:hover {
        color: #333333;
        text-decoration: none;
      }
    }

    & li:not(:last-of-type)::after {
      content: "";
      display: block;
      width: 1rem;
      height: 1rem;
      /* margin-top: 1px; */
      -webkit-mask-size: cover;
      mask-size: cover;
      -webkit-mask-image: url("../../img/arrow_small_down_24px.svg");
      mask-image: url("../../img/arrow_small_down_24px.svg");
      background-size: contain;
      background-position: bottom;
      transform: rotate(-90deg);
      margin-inline: 0.5rem;
      background-color: #666666;
    }
  }
}

.dark .breadcrumb {
  & ul {
    & li a {
      color: #999999;
    }
  }
}

.brands-section {
  margin-bottom: 80px;

  & .brands {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1px;
    background-color: #333333;
  }

  & .brand {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    color: white;
    width: 100%;
    max-height: 216px;
    background-color: var(--black);

    & img {
      width: 120px;
      transition: opacity 0.3s ease-in-out;
    }

    & img.active {
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      opacity: 0;
    }

    &:hover img.active {
      opacity: 1;
    }

    &:hover img {
      opacity: 0;
    }
  }

  & .brand.brand--compact img {
    width: 90px;
  }
}

/* Mobile layout: 2 brands per row */
@media (max-width: 1020px) {
  .brands-section .brands {
    grid-template-columns: repeat(2, 1fr);
  }
}

.slider-section-header {
  display: flex;
  justify-content: space-between;

  & h2 {
    font-weight: 600;
    font-size: 1rem;
    line-height: 24px;
  }

  & > a {
    display: flex;
    align-items: center;
    font-weight: 500;
    font-size: var(--font-size-base);
    line-height: 24px;
    text-decoration: underline;
    text-decoration-style: solid;
    text-decoration-thickness: Auto;
    text-decoration-skip-ink: auto;
    color: #999999;
    transition: 0.3s ease;

    &:hover {
      color: #333333;
      text-decoration: none;

      & .arrow-right {
        background-color: #333333;
      }
    }

    & .arrow-right {
      margin-left: 0.5rem;
      background-color: #999999;
    }
  }
}

/* Основний контейнер слайдера */
.slider-section {
  width: 100%;
  margin-block: 120px 160px;
  /* max-height: 100vh; */
}

.slider-section-header {
  margin-bottom: 2rem;
}

.slider {
  position: relative;
  user-select: none;
  width: 100%;
  height: 700px;
  /* max-width: 800px; */
  margin: 0 auto;
  overflow: hidden;
  touch-action: pan-y; /* allow vertical scrolling while enabling horizontal swipes */

  @media (max-height: 850px) {
    height: 550px;
  }
}
/* Нерухомий фон (градієнт) */
.slider__gradient {
  position: absolute;
  background: linear-gradient(180deg, #8039e5 0%, #b939e5 50%, #e539bd 100%);
  width: calc(50% - 2rem);
  max-width: calc(600px - 2rem);
  height: 80%;
  right: 1rem;
  border-radius: 16px;
  z-index: 0;
}
/* Контейнер для слайдів */
.slider__slides {
  display: flex;
  transition: transform 0.5s ease, opacity 0.5s ease;
  height: 80%;
  /* overflow: hidden; */
}
/* Окремий слайд */
.slider__slide {
  position: relative;
  height: 100%;
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}
/* Активний слайд */
.slider__slide.active {
  opacity: 1;
  transform: translateX(0);
}

.slide__container {
  display: flex;
  height: 80%;
  width: 100%;
  justify-content: space-between;
  align-items: center;
}

.slide-content {
  flex: 1 1 50%;
  max-width: 600px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  h3 {
    margin-top: 0;
    font-weight: 600;
    font-size: var(--font-size-m);
    line-height: 36px;
  }

  p {
    font-weight: 300;
    font-size: var(--font-size-base);
    line-height: 24px;
  }

  .case-labels {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;

    li {
      font-size: 13px;
      line-height: 18px;
      color: #e6e6e6;
      border: 1px solid #4d4d4d;
      border-radius: 999px;
      padding: 0.25rem 0.625rem;
      background: rgba(255, 255, 255, 0.04);
      white-space: nowrap;
    }
  }
}

.slide-item {
  flex: 1 1 50%;
  max-width: 600px;
  height: auto;
  max-height: 100%;
  display: flex;
  justify-content: center;

  & img {
    pointer-events: none;
    min-width: 80%;
    max-width: 100%;
    object-fit: contain;
  }
}

/* Кнопки навігації */
.inner-navigation__btn {
  bottom: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  background: #999999;
  transition: 0.2s;
}

.inner-navigation__btn:hover {
  background: #666666;
}

.inner-navigation__btn--prev {
  -webkit-mask-size: cover;
  mask-size: cover;
  height: 3rem;
  width: 3rem;
  -webkit-mask-image: url("../../img/slider-arrow-left.svg");
  mask-image: url("../../img/slider-arrow-left.svg");
}

.inner-navigation__btn--next {
  -webkit-mask-size: cover;
  mask-size: cover;
  height: 3rem;
  width: 3rem;
  -webkit-mask-image: url("../../img/slider-arrow-right.svg");
  mask-image: url("../../img/slider-arrow-right.svg");
}
/* Пагінація */
.inner-navigation__pagination {
  bottom: 1rem;
  display: flex;
  gap: 0.5rem;
}
.inner-navigation__dot {
  width: 24px;
  height: 4px;
  border-radius: 120px;
  cursor: pointer;
  transition: 0.5s;
}
.inner-navigation__dot.active {
  border-radius: 120px;
  width: 96px;
}

.inner-navigation__dot.dark {
  background: #333333;
}

.inner-navigation__dot.active.dark {
  background: #999999;
}
.inner-navigation__dot.light {
  background: #cccccc;
}

.inner-navigation__dot.light.active {
  background: #666666;
}

@media (max-width: 600px) {
  .inner-navigation__dot {
    width: 0.5rem;
  }
  .inner-navigation__dot.active {
    width: 1rem;
  }
  .inner-navigation__btn--next, .inner-navigation__btn--prev {
    width: 2rem;
    height: 2rem;
  }

}

@media (max-width: 950px) {
  .slider-section {
    margin-block: 80px;
    max-width: 600px;
  }

  .slider-section .slider {
    /* height: 590px; */
    height: auto;
  }

  .slider__slides {
    height: auto;
    touch-action: pan-y;
  }

  .slider__gradient {
    height: 400px;
    right: 50%;
    transform: translateX(50%);
    top: 0;
    width: 100%;
  }

  .slide__container {
    gap: 24px;
    flex-direction: column-reverse;
    height: 100%;
    justify-content: space-between;
    align-items: center;
  }

  .slide-content {
    width: 100%;
    flex: none;
    height: fit-content;
    flex-direction: row;
    padding-left: 0;

    & p {
      display: none;
    }

    & .case-labels {
      margin: 0.5rem 0 0;
      max-width: 100%;

      & li {
        font-size: 12px;
        line-height: 16px;
        padding: 0.2rem 0.5rem;
      }
    }

    & h3 {
      max-width: 240px;
      margin: 0;
      font-size: 1.25rem;
    }

    & a {
      align-self: flex-end;
    }
  }

  .slide-item {
    display: flex;
    justify-content: center;
    align-items: center;
    flex: none;
    height: 400px;
    max-width: 95%;
    align-self: center;

    & img {
      height: 80%;
      object-fit: contain;
    }
  }
}

.contact-btn-mini {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 4rem !important;
  height: 4rem !important;

  & .arrow-right {
    margin: 0;
    margin-bottom: 0.25rem;
    width: 2rem;
    height: 2rem;
    transform: rotate(45deg);
  }
}

header, footer {
  & .btn-flex-container {
    gap: 0.75rem;

    & .contact-btn {
      padding-block: 0;
      height: 56px;
    }
  
    & .contact-btn-mini {
      width: 56px !important; 
      height: 56px !important;
      padding: 0 !important;
    }
  }
}


.reviews-section {
  position: relative;
  /* max-width: none; */

  & .animation-hidden {
    opacity: 0;
    filter: blur(60px);
    transform: translateY(-50%);
  }

  & .animation-show {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}
.reviews-slider {
  overflow: hidden;
  margin: 2rem 0;
}
.reviews-slider__container {
  will-change: scroll-position;
  display: flex;
  transition: transform 0.5s ease;
  gap: 1.5rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* cursor: grab; */
  scroll-behavior: smooth;
  transition: 1.5s ease, opacity 2.5s ease;

  @media (prefers-reduced-motion) {
    transition: none;
  }
}
.reviews-slider__container::-webkit-scrollbar {
  /* Safari and Chrome */
  display: none;
}

.article-meta {
  display: flex;
  column-gap: 1.5rem;
  row-gap: 0.25rem;
  flex-wrap: wrap;

  & .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;

    & .meta-icon {
      display: flex;
      align-items: center;
      justify-content: center;
      width: 1.5rem;
      height: 1.5rem;
    }

    & .meta-text {
      font-weight: 400;
      font-size: var(--font-size-s);
      line-height: 20px;
      color: #666666;
    }
  }
}
  

.article-item {
  /* width: 400px; */
  flex: 0 0 calc(100% / 3 - 1rem);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  color: black;
  text-decoration: none;
  justify-content: flex-start;

  @media (max-width: 1240px) {
    flex: 0 0 calc(50% - 0.75rem);
  }

  @media (max-width: 800px) {
    flex: 0 0 100%;
  }

  & h2, & p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  & h2 {
    flex-shrink: 0;
    font-weight: 500;
    font-size: 32px;
    line-height: 48px;
    letter-spacing: 0%;
    margin-block: 1.5rem 1rem;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    max-height: calc(48px * 2);

    @media (max-width: 1240px) {
      font-size: 24px;
      line-height: 36px;
      margin-block: 1rem 0.75rem;
      max-height: calc(36px * 2);
    }
  }

  p {
    flex-shrink: 0;
    font-weight: 300;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0%;
    margin-bottom: 1.5rem;
    line-clamp: 5;
    -webkit-line-clamp: 5;
    max-height: calc(24px * 5);
  }

  img {
    flex-shrink: 2;
    max-width: 100%;
    width: auto;
    object-fit: cover;
    border-radius: 8px;
    max-height: 256px;
    height: auto;
  }

  .contact-btn-mini {
    flex-shrink: 0;
    align-self: end;
    margin-top: auto;

    & .arrow-right {
      flex-shrink: 0;
    }
  }

  &:hover {

    & .contact-btn {
    background: var(--black);
    color: white;
    
      & .arrow-right {
        background-color: white;
      }
    }
  }
}

.review {
  position: relative;
  user-select: none;
  flex: 0 0 calc(100% / 3 - 1rem);
  height: 558px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid #cccccc;
  border-radius: 1rem;
  padding: 1.5rem;
  gap: 1rem;

  & .review__content {
    display: flex;
    max-height: 408px;
    overflow: auto;
    justify-content: center;
    font-weight: 300;
    font-size: 1rem;
    line-height: 24px;

    & video {
      background: #666666;
      border-radius: 8px;
      max-width: 100%;
      max-height: 400px;
      align-self: center;
    }

    & p {
      margin-block: 0;
    }
  }

  @media (max-width: 1240px) {
    flex: 0 0 calc(50% - 0.75rem);

    & .review__content {
      max-height: 408px;
      overflow: auto;
      &::before {
        content: "";
        position: absolute;
        bottom: 0;
        top: 408px;
        /* bottom: calc(1.5rem + 110px); */
        left: 0;
        width: 100%;
        height: 2rem;
        background: linear-gradient(rgba(255, 255, 255, 0), var(--white));
        pointer-events: none;
      }
    }
  }

  @media (max-height: 800px) {
    height: 464px;

    & .review__content {
      max-height: 314px;

      &::before {
        top: 314px;
      }
    }
  }

  @media (max-width: 800px) {
    flex: 0 0 100%;
    height: 464px;

    & .review__content {
      max-height: 314px;

      &::before {
        content: "";
        position: absolute;
        top: 314px;
        left: 0;
        width: 100%;
        height: 2rem;
        background: linear-gradient(rgba(255, 255, 255, 0), var(--white));
        pointer-events: none;
      }
    }
  }

  & .review__author {
    display: flex;
    gap: 1rem;
    max-height: 84px;

    & h4 {
      color: black;
      margin-block: 0;
      font-weight: 600;
      font-size: 1rem;
      line-height: 24px;
    }

    & p {
      margin-block: 0;
      font-weight: 300;
      font-size: 14px;
      line-height: 20px;
      letter-spacing: 0%;
      max-height: 60px;
      overflow: auto;
    }

    & a {
      font-weight: 500;
      color: inherit;
    }
  }

  & .author__avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    border: 1px solid #999999;
  }
}
/* Navigation buttons for reviews slider */
.reviews__btn {
  position: absolute;
  bottom: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2;
  background: #999999;
  transition: 0.2s;
}
.reviews__btn:hover {
  background: #666666;
}
.reviews__btn--prev {
  left: 0;
  -webkit-mask-size: cover;
  mask-size: cover;
  height: 3rem;
  width: 3rem;
  -webkit-mask-image: url("../../img/slider-arrow-left.svg");
  mask-image: url("../../img/slider-arrow-left.svg");
}
.reviews__btn--next {
  right: 0;
  -webkit-mask-size: cover;
  mask-size: cover;
  height: 3rem;
  width: 3rem;
  -webkit-mask-image: url("../../img/slider-arrow-right.svg");
  mask-image: url("../../img/slider-arrow-right.svg");
}

.inner-btns-navigation {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;

  @media(max-width: 1200px) {
    margin-top: 20px;
  }
}

#reviews-prev,
#reviews-next,
#reviews-pagination {
  position: static;
  transform: translateY(0);
}


.tags {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  flex-grow: 1;
  max-width: 1296px;
  margin-inline: auto;
  flex-wrap: wrap;
  padding-inline: 1.5rem;
  list-style: none;
  margin-block: 2.5rem 3rem;

  @media (max-width: 735px) {
    margin-top: 10rem;
  }

  li {
    padding: 0.25rem 0.5rem;
    background-color: black;
    border-radius: 4px;
    color: white;
    font-family: Geologica;
    font-weight: 500;
    font-size: 0.875rem;
    line-height: 20px;
  }
}



/* Оверлей (затемнення фону) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* затемнення */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0; /* сховано */
  visibility: hidden; /* сховано */
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 1001;

  & {
    .modal {
      transform: translateY(500%);
      filter: blur(40px);
      scale: 0.25;
    }
  }
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;

  & {
    .modal {
      transform: translateY(0%);
      filter: blur(0px);
      scale: 1;
    }
  }
}

/* Модальне вікно */
.modal {
  margin-top: 73px;
  max-height: 80%;
  overflow: auto;
  margin-inline: 1.5rem;
  background: #fff;
  color: #000;
  width: 100%;
  max-width: 824px; /* довільна ширина */
  border-radius: 1rem;
  padding: 2.5rem 3rem 3.5rem;
  position: relative;
  transition: 0.3s cubic-bezier(0.22, 0.61, 0.36, 1);

  @media (max-width: 660px) {
    padding: 1.5rem 1.5rem 1.5rem;
  }

  /* Кнопка закриття (х) */
  & .modal__close {
    mask-image: url('../../img/cross_24px.svg');
    mask-repeat: no-repeat;
    mask-position: right;
    mask-size: contain;
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 1.5rem;
    height: 1.5rem;
    background: #000;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.3s ease;
    
    &:hover {
      background-color: #999999;
    }
  }

  /* Заголовок модалки */
  & .modal__title {
    text-align: center;
    margin-top: 0;
    margin-bottom: 2.5rem;
    font-weight: 700;
    font-size: 2.5rem;
    line-height: 56px;

    @media (max-width: 660px) {
      padding-inline: 1rem;
      font-size: 28px;
      line-height: 40px;
      margin-bottom: 2rem;
    }
  }

  & .modal__text {
    text-align: center;
    font-weight: 300;
    font-size: 1rem;
    line-height: 24px;
    margin-bottom: 2.5rem;

    @media (max-width: 660px) {
      padding-inline: 2rem;
      font-size: 16px;
      line-height: 24px;
      margin-bottom: 1.5rem;
    }
  }

  & .modal__btns {
    display: flex;
    justify-content: center;
    flex-direction: column;
  }

  /* Форма всередині */
  & .modal__form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background-color: #fff;
  }

  & .input-wrapper {
    flex: 1;
  }

  /* Поля вводу */
  & .modal__input {
    flex: 1;
    width: 100%;
    padding: 0.75rem 3rem 0.75rem 1rem;
    border: 1px solid #cccccc;
    border-radius: 0.5rem;

    &:focus-visible {
      border-color: #666666;
      outline: none;
    }
  }

  & textarea {
    resize: none;
    max-height: 64px;
  }

  & select.modal__input {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: white;
    width: 100%;
    cursor: pointer;
    color: black;
    position: relative;
    outline: none;
  }

  & .modal__dropdown {
    position: relative;
    flex: 1;
  }

  & .modal__dropdown::after {
    position: absolute;
    pointer-events: none;
    content: '';
    -webkit-mask-size: cover;
    mask-size: cover;
    -webkit-mask-image: url('../../../static/img/arrow_small_down_24px.svg');
    mask-image: url('../../../static/img/arrow_small_down_24px.svg');
    background-color: black;
    width: 24px;
    height: 24px;
    right: 0;
    top: 50%;
    transform: translate(-50%, -50%);
    transition: transform 0.3s ease;
  }
  
  & .modal__dropdown:focus-within::after {
    transform: rotate(180deg) translate(50%, 50%);
  }

  /* При наведенні */
  & select.modal__input:hover {
    border-color: #888;
  }

  /* При відкритті (в Chrome та Edge) */
  & select.modal__input:focus {
    border-color: #555;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
  }

  /* Стилізація списку варіантів */
  & select.modal__input option {
    padding: 10px;
    font-size: 16px;
    background: white;
    color: black;
  }

  /* New gradient text styling for selected dropdown options */
  & select.modal__input option:checked {
    background-color: none;
    color: #c33adb;
  }

  & select.modal__input {

    & option {

      &:hover {
        background: linear-gradient(180deg, #8039E5 0%, #B939E5 50%, #E539BD 100%);
        color:white;
      }

      &::before, &::checkmark {
        display: none;
      }
    }
  }

  #input-phone, #input-email, #input-social {
    gap: 0.75rem;

    @media (max-width: 660px) {
      flex-direction: column;
    }
  }

  /* Лейбл файлу */
  & .file-label {
    display: flex;
    gap: 0.25rem;
    height: 48px;
    padding: 0.75rem 0.75rem 0.75rem 0.25rem;
    border: 1px solid #ccc;
    border-radius: 0.5rem;
    cursor: pointer;
    align-items: center;
    color: #666666;
    font-weight: 300;
    justify-content: space-between;

    @media(max-width: 450px) {
      & .attach-text {
        font-size: 0.75rem;
      }
    }

    & .file-label-content {
      display: inline-flex;
      align-items: center;
      gap: 0.5rem;
    }

    & span {
      pointer-events: none;
    }

    & img {
      width: 2rem;
      height: 2rem;
      filter: brightness(0) saturate(100%) invert(45%) sepia(0%) saturate(0%)
        hue-rotate(0deg) brightness(92%) contrast(82%);
    }

    & .cross {
      display: none;
      cursor: pointer;
      margin-left: 0;
      min-width: 1.5rem;

      &:hover {
        background-color: #999999;
      }
    }
  }

  /* Кнопка відправлення */
  & .contact-btn {
    background: white;
    margin-top: 20px;
    align-self: center; 
    cursor: pointer;
  }

  & .file-name-display {
    color: rgb(85, 85, 85);
  }
}

.modal__radio-group label {
  position: relative;
}

.modal__radio-group label::before {
  content: "";
  display: inline-block;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  border: 2px solid #cccccc;
  background: transparent;
  transition: border 0.3s ease;
}

/* Define default inner circle, hidden initially */
.modal__radio-group label::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 4px;
  transform: translateY(-50%) scale(0);
  width: calc(1.5rem - 4px); /* remove border thickness */
  height: calc(1.5rem - 4px);
  border-radius: 50%;
  background: linear-gradient(180deg, #8039e5 0%, #b939e5 50%, #e539bd 100%);
  transition: transform 0.2s ease, opacity 0.3s ease;
  opacity: 0;
}

/* When radio is checked, update border and animate inner circle */
.modal__radio-group label:has(input[type="radio"]:checked)::before {
  border: 2px solid transparent;
  border-image: linear-gradient(180deg, #8039e5 0%, #b939e5 50%, #e539bd 100%) 1;
}

.modal__radio-group label:has(input[type="radio"]:checked)::after {
  transform: translateY(-50%) scale(1);
  opacity: 1;
}

.animation-left-to-right {
  transition: 1s ease, opacity 2s ease;

  @media (prefers-reduced-motion) {
    transition: none;
  }

  &.animation-hidden {
    opacity: 0;
    filter: blur(20px);
    transform: translateX(-50%);
  }

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

.animation-expand {
  transition: 1s ease;

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

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