/* 
стилі головної сторінки
*/

.hero {
  width: 100%;
  height: 100vh;
  background: linear-gradient(270deg, rgba(27, 14, 0, 0.00) 0%, rgba(27, 14, 0, 0.00) 50%, rgba(27, 14, 0, 0.20) 100%), linear-gradient(0deg, rgba(27, 14, 0, 0.50) 0%, rgba(27, 14, 0, 0.50) 100%), url('../images/hero-bg.webp') lightgray 50% / cover no-repeat;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--padding-x);
}

.hero__info {
  width: var(--cols5-width);
  color: white;
}
.hero__gift {
  width: fit-content;
  overflow: hidden;
  display: flex;
  align-items: center;
  margin-bottom: 24px;
  padding: 10px 20px;
  background-color: white;
  border-radius: 100px;
  color: var(--black);
}
.hero__gift-track {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.hero__gift-item {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.hero__gift-item + .hero__gift-item {
  display: none;
}
.hero__gift-text span {
  font-weight: 600;
}

.hero__calculator {
  width: var(--cols5-width);
  display: flex;
  flex-direction: column;
  padding: 46px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.50) 0%, #FFF 100%);
  box-shadow: 0 5px 5px 0 rgba(31, 27, 22, 0.15);
  backdrop-filter: blur(7.5px);
  border-radius: 48px;
  border: 2px solid white;
}
.calculator__inputs {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}


.calculator__button {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.calculator__button button {
  width: 100%;
}
.calculator__button > span {
  color: var(--dark);
  font-size: 14px;
  font-weight: 400;
}

.trust {
  margin-top: 192px;
  margin-bottom: 192px;
  padding: 0 var(--padding-x);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.trust h2 {
  margin-top: 16px;
  margin-bottom: 48px;
}
.trust__cards {
  display: flex;
  gap: 24px;
  padding-top: 60px;
}
.trust__card {
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 80px 48px 48px;
  background: var(--bg_beige);
  border-radius: 24px;
}
.trust__card-icon {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  width: 118px;
  height: 118px;
  border: 1px solid var(--light);
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
}
.trust__card-icon img {
  width: 48px;
  height: 48px;
}
.trust__card h5, .trust__card p {
  text-align: center;
}

.services {
  margin-bottom: 192px;
  padding: 0 var(--padding-x);
  display: flex;
  flex-direction: column;
}
.services h2 {
  margin-top: 16px;
  margin-bottom: 48px;
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.services__card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  aspect-ratio: 4 / 3;
  width: 100%;
  height: auto;
  border-radius: 24px;
  color: white;
}
.services__card:nth-child(1) {
  background: linear-gradient(180deg, rgba(27, 14, 0, 0.00) 0%, rgba(27, 14, 0, 0.70) 100%), url('/wp-content/themes/cleanon/assets/images/service_card1.webp') lightgray 50% / cover no-repeat;
}
.services__card:nth-child(2) {
  background: linear-gradient(180deg, rgba(27, 14, 0, 0.00) 0%, rgba(27, 14, 0, 0.70) 100%), url('/wp-content/themes/cleanon/assets/images/service_card2.webp') lightgray 50% / cover no-repeat;
}
.services__card:nth-child(3) {
  background: linear-gradient(180deg, rgba(27, 14, 0, 0.00) 0%, rgba(27, 14, 0, 0.70) 100%), url('/wp-content/themes/cleanon/assets/images/service_card3.webp') lightgray 50% / cover no-repeat;
}
.services__card:nth-child(4) {
  background: linear-gradient(180deg, rgba(27, 14, 0, 0.00) 0%, rgba(27, 14, 0, 0.70) 100%), url('/wp-content/themes/cleanon/assets/images/service_card4.webp') lightgray 50% / cover no-repeat;
}
.services__card:nth-child(5) {
  background: linear-gradient(180deg, rgba(27, 14, 0, 0.00) 0%, rgba(27, 14, 0, 0.70) 100%), url('/wp-content/themes/cleanon/assets/images/service_card5.webp') lightgray 50% / cover no-repeat;
}
.services__card:nth-child(6) {
  background: linear-gradient(180deg, rgba(27, 14, 0, 0.00) 0%, rgba(27, 14, 0, 0.70) 100%), url('/wp-content/themes/cleanon/assets/images/service_card6.webp') lightgray 50% / cover no-repeat;
}
.services__card-price {
  top: 16px;
  right: 16px;
}
.services__card-texts {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.services__additional h5 {
  margin-bottom: 24px;
}
.services__additional-cards {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 24px;
}
.services__additional-card {
  aspect-ratio: 26 / 17;
  background-color: var(--bg_beige);
  border-radius: 16px;
  color: var(--black);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 32px;
  flex-shrink: 0;
  transition: all .3s ease-out;
}
.services__additional-card:hover {
  background-color: var(--dark_beige);
}
.services__additional-card p {
  text-align: center;
  text-wrap: wrap;
}
.services__additional-card span {
  width: 100%;
  text-align: center;
  background-color: white;
  padding: 12px;
  border-radius: 8px;
  box-shadow: 0 5px 15px 0 rgba(58, 51, 46, 0.15);
}

.subscription {
  margin-bottom: 192px;
  padding: 0 var(--padding-x);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.subscription h2 {
  margin-top: 16px;
  margin-bottom: 48px;
}
.subscription__cards {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 16px;
}
.subscription__card {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 48px;
  border-radius: 32px;
  background: linear-gradient(180deg, #F6F5EE 0%, #FFF 100%);
}
.subscription__card.primary {
  background: var(--bg_beige);
  position: relative;
  padding: 64px;
  overflow: hidden;
}
.subscription__card.primary > * {
  position: relative;
  z-index: 2;
}
.subscription__card.primary::before {
  content: '';
  position: absolute;
  left: 50%;
  top: -234px;
  transform: translateX(-50%);
  width: 388px;
  height: 388px;
  border-radius: 50%;
  background: rgba(253, 170, 0, 0.50);
  filter: blur(75px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
}
.subscription__card.primary .subscription__card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 100px;
  background-color: white;
  color: var(--black);
  padding: 6px 12px;
  box-shadow: 0 5px 15px 0 rgba(58, 51, 46, 0.15);
}
.subscription__card-uses {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Навігація свайпера послуг — прихована на десктопі */
.services__slider-nav {
  display: none;
}

.reviews {
  margin-bottom: 192px;
  padding: 0 var(--padding-x);
  display: flex;
  gap: 24px;
}
.reviews__left {
  width: var(--cols4-width);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.reviews__left-top h2 {
  margin-top: 16px;
  margin-bottom: 24px;
}
.reviews__left .reviews__left-top a {
  padding: 6px 0;
}
.reviews__google-reviews {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 24px;
  border-radius: 16px;
  background-color: var(--bg_beige);
}
.reviews__google-reviews-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.reviews__google-reviews-content span {
  font-size: 40px;
  line-height: 1;
  font-weight: 700;
  color: var(--yellow);
}
.reviews__google-reviews-rating {
  display: flex;
  align-items: center;
  gap: 16px;
}
.reviews__google-reviews-stars {
  display: flex;
  gap: 4px;
}
.reviews__right {
  width: var(--cols8-width);
  aspect-ratio: 44 / 29;
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.reviews__swiper {
  overflow: hidden;
  width: 100%;
  height: 100%;
}
/* Paired slide — два фото в одному слайді */
.reviews__slide-pair {
  display: flex;
  flex-direction: row;
  gap: 24px;
  height: 100%;
}
.reviews__slide {
  flex: 1;
  position: relative;
  overflow: hidden;
  border-radius: 32px;
}
.reviews__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.reviews__slide.badge-before .card-badge {
  bottom: 24px;
  left: 24px;
}
.reviews__slide.badge-after .card-badge {
  bottom: 24px;
  right: 24px;
}
.reviews__swiper .swiper-button-prev {
  left: 24px;
}
.reviews__swiper .swiper-button-next {
  right: 24px;
}
/* Mobile reviews nav — прихована на десктопі */
.reviews__nav {
  display: none;
}

.whyus {
  margin-bottom: 192px;
  padding: 0 var(--padding-x);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.whyus__info h2 {
  margin-top: 16px;
  margin-bottom: 24px;
}
.whyus .whyus__info a {
  padding: 6px 0;
}
.whyus__card {
  display: flex;
  flex-direction: column;
  gap: 48px;
  padding: 48px;
  border-radius: 24px;
  background-color: var(--bg_beige);
}
.whyus__card-icon {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background-color: white;
  border: 1px solid var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
}
.whyus__card-texts {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.howitworks {
  margin-bottom: 192px;
  padding: 0 var(--padding-x);
}
.howitworks__content {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  padding: 64px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
}
.howitworks__bg {
  position: absolute;
  z-index: -1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 48px;
  background: linear-gradient(180deg, rgba(27, 14, 0, 0.50) 0%, rgba(27, 14, 0, 0.50) 100%), url('/wp-content/themes/cleanon/assets/images/howitworks.webp') lightgray 50% / cover no-repeat;
}
.howitworks__top {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.howitworks__steps {
  display: flex;
  gap: 120px;
  align-items: flex-start;
}
.howitworks__step {
  display: flex;
  align-items: center;
  gap: 24px;
}
.howitworks__step-texts {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq {
  margin: 0 auto 192px;
  width: 1400px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.faq h2 {
  margin-top: 16px;
  margin-bottom: 48px;
}

.promos {
  width: 100%;
  height: 714px;
  display: flex;
  margin-bottom: 100px;
}
.promos__content {
  width: 100%;
  padding: 0 var(--padding-x);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--bg_beige);
}
.promos__content h2 {
  margin-top: 16px;
  margin-bottom: 24px;
}
.promos__badge {
  width: fit-content;
  padding: 12px 24px;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.15);
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}
.promos__content p {
  margin-bottom: 24px;
}
.promos__photo {
  width: 100%;
}
.promos__photo img {
  width: auto;
  height: 100%;
  object-fit: cover;
}

@media screen and (max-width: 1920px) {
  .services__additional-card {
    aspect-ratio: unset;
  }
}

@media screen and (max-width: 1440px) {
  .faq {
    width: 100%;
  }
}

@media screen and (max-width: 1200px) {
  .trust__cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    row-gap: 64px;
  }
  .howitworks__steps {
    gap: 60px;
  }

  /* ─── SERVICES (2 карти в ряд) ──────────────────── */
  .services__grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    gap: 16px;
    grid-template-columns: unset;
    margin-bottom: 32px;
  }
  .services__grid::-webkit-scrollbar {
    display: none;
  }
  .services__card {
    flex-shrink: 0;
    width: calc(50% - 8px);
    scroll-snap-align: start;
    aspect-ratio: unset;
    min-height: 270px;
  }
  .services__slider-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: -16px;
    margin-bottom: 24px;
  }
  .services__nav-prev,
  .services__nav-next {
    width: 36px;
    height: 36px;
    border-radius: 24px;
    border: 0.75px solid rgba(31, 27, 22, 0.4);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    padding: 9px;
    box-sizing: border-box;
  }
  .services__nav-prev img,
  .services__nav-next img {
    width: 18px;
    height: 18px;
  }
  .services__dots {
    display: flex;
    gap: 6px;
    align-items: center;
  }
  .services__dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background-color: var(--dark_beige);
    transition: all 0.3s;
    flex-shrink: 0;
  }
  .services__dot.active {
    background-color: var(--dark);
    width: 24px;
    height: 10px;
    border-radius: 24px;
  }
}

@media screen and (max-width: 1024px) {
  .howitworks__steps {
    flex-direction: column;
    gap: 30px;
  }
  .howitworks__content {
    gap: 30px;
  }
}

@media (max-width: 768px) {
  /* ─── HERO ───────────────────────────────────────── */
  .hero {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    height: auto;
    min-height: 100svh;
    padding: 80px 16px 40px;
    gap: 32px;
  }
  .hero__info {
    width: 100%;
  }
  @keyframes hero-marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
  }

  .hero__gift {
    width: 100%;
    padding: 0;
  }
  .hero__gift-track {
    gap: 0;
    animation: hero-marquee 14s linear infinite;
  }
  .hero__gift-item {
    padding: 10px 40px 10px 20px;
  }
  .hero__gift-item + .hero__gift-item {
    display: flex;
  }
  .hero__calculator {
    width: 100%;
    padding: 32px 24px;
    border-radius: 24px;
  }

  /* ─── TRUST ──────────────────────────────────────── */
  .trust {
    margin-top: 64px;
    margin-bottom: 64px;
    padding: 0 16px;
  }
  .trust h2 {
    text-align: center;
  }
  .trust__cards {
    display: flex;
    flex-direction: column;
    gap: 68px;
    padding-top: 60px;
  }
  .trust__card {
    padding: 70px 32px 32px;
    gap: 12px;
    border-radius: 16px;
  }
  .trust__card-icon {
    width: 80px;
    height: 80px;
  }
  .trust__card-icon img {
    width: 36px;
    height: 36px;
  }
  .trust__card h5,
  .trust__card p {
    text-align: left;
  }

  /* ─── SERVICES ───────────────────────────────────── */
  .services {
    margin-bottom: 64px;
    padding: 0 16px;
  }
  .services__grid {
    padding: 0 16px;
  }
  .services__card {
    width: calc(100vw - 32px);
    border-radius: 16px;
  }
  .services__additional h5 {
    margin-bottom: 16px;
  }
  .services__additional-cards {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 16px;
    margin-left: -16px;
    margin-right: -16px;
    padding: 0 16px;
    grid-template-columns: unset;
  }
  .services__additional-cards::-webkit-scrollbar {
    display: none;
  }
  .services__additional-card {
    flex-shrink: 0;
    width: 180px;
    aspect-ratio: unset;
    padding: 20px 16px;
    gap: 12px;
  }

  /* ─── SUBSCRIPTION ───────────────────────────────── */
  .subscription {
    margin-bottom: 64px;
    padding: 0 16px;
  }
  .subscription h2 {
    text-align: center;
  }
  .subscription__cards {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .subscription__card.primary {
    padding: 48px 32px;
  }

  /* ─── REVIEWS ────────────────────────────────────── */
  .reviews {
    margin-bottom: 64px;
    padding: 0 16px;
    flex-direction: column;
    gap: 32px;
  }
  .reviews__left {
    width: 100%;
  }
  .reviews__right {
    width: 100%;
    aspect-ratio: unset;
    height: auto;
  }
  /* Reviews mobile — пара фото стек вертикально */
  .reviews__right {
    overflow: visible;
  }
  /* Приховаємо навігацію всередині свайпера */
  .reviews__swiper .swiper-button-prev,
  .reviews__swiper .swiper-button-next {
    display: none;
  }
  /* Показуємо зовнішню навігацію нижче */
  .reviews__nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
  }
  .reviews__nav-prev,
  .reviews__nav-next {
    width: 36px;
    height: 36px;
    border-radius: 24px;
    border: 0.75px solid rgba(31, 27, 22, 0.4);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    padding: 9px;
    box-sizing: border-box;
  }
  .reviews__nav-prev img,
  .reviews__nav-next img {
    width: 18px;
    height: 18px;
  }
  .reviews__nav-dots {
    display: flex;
    gap: 6px;
    align-items: center;
  }
  .reviews__nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background-color: var(--dark_beige);
    transition: all 0.3s;
    flex-shrink: 0;
  }
  .reviews__nav-dot.active {
    background-color: var(--dark);
    width: 24px;
    height: 10px;
    border-radius: 24px;
  }
  .reviews__slide-pair {
    flex-direction: column;
    gap: 16px;
    height: auto;
  }
  .reviews__slide {
    border-radius: 16px;
    overflow: hidden;
  }
  .reviews__slide img {
    width: 100%;
    height: 271px;
    object-fit: cover;
  }
  .reviews__slide.badge-before .card-badge,
  .reviews__slide.badge-after .card-badge {
    bottom: 16px;
    left: 16px;
    right: auto;
  }
  .reviews__google-reviews {
    margin-top: 32px;
    padding: 16px;
    gap: 14px;
  }
  .reviews__google-reviews > img {
    width: 76px;
    height: 76px;
  }
  .reviews__google-reviews-content span {
    font-size: 32px;
    line-height: 40px;
  }
  .reviews__google-reviews-stars img {
    width: 20px;
    height: 20px;
  }

  /* ─── WHY US ─────────────────────────────────────── */
  .whyus {
    margin-bottom: 64px;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
  .whyus__card {
    gap: 24px;
    padding: 32px;
    border-radius: 16px;
  }

  /* ─── HOW IT WORKS ───────────────────────────────── */
  .howitworks {
    margin-bottom: 64px;
    padding: 0;
  }
  .howitworks__content {
    aspect-ratio: unset;
    padding: 64px 24px;
    justify-content: flex-start;
    gap: 48px;
    border-radius: 0;
  }
  .howitworks__bg {
    border-radius: 0;
  }
  .howitworks__steps {
    flex-direction: column;
    gap: 32px;
    align-items: flex-start;
  }

  /* ─── FAQ ────────────────────────────────────────── */
  .faq {
    width: 100%;
    padding: 0;
    margin-bottom: 64px;
  }
  .faq h2 {
    padding: 0 16px;
  }
  .accordion__item {
    padding: 20px 16px;
  }
  .accordion__item-button {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
  }
  .accordion__item-button img {
    width: 14px;
    height: 14px;
  }

  /* ─── PROMOS ─────────────────────────────────────── */
  .promos {
    flex-direction: column;
    height: auto;
    margin-bottom: 64px;
  }
  .promos__content {
    padding: 64px 16px;
  }
  .promos__photo {
    width: 100%;
    height: 300px;
    overflow: hidden;
  }
  .promos__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}