@import url("https://fonts.googleapis.com/css2?family=Passion+One&display=swap");

.swiper-autoheight {
  height: fit-content;
}
.swiper-wrapper {
  height: fit-content !important;
  display: grid;
  grid-auto-flow: column;
}
.swiper-slide:not(.promotion__item) {
  height: 100% !important;
}

.package-new-top-block-main {
  position: relative;
}
.package-new-top-block-left {
  max-width: 100%;
  width: 100%;
}
.package-new-tags-list {
  max-width: 50%;
}
.package-new-top-block-right {
  position: absolute;
  right: 0;
  bottom: 0;
}

.package-new {
  height: 100%;
  background: #fff;
}
.package-new-title {
  height: 96px;
  width: max-content;
  max-width: 100%;
  z-index: 1;
  position: relative;
  text-shadow: 1px 1px 1px white;
}
.package-new-tags-list {
  padding-top: 15px;
  height: 150px;
}
.package-new-price-text {
  height: 100px;
  overflow: hidden;
  max-width: unset;
}
.package-new-main-content {
  flex-grow: 1;
}
.package-new-main-content-additional {
  height: 98px;
}
.package-new-main-content-list {
  height: 100%;
}
.package-new-promotion {
  height: 16px;
  font-size: 16px;
  line-height: 16px;
  min-height: 16px;
}
.package-new-producer-text {
  height: 64px;
}
.package-new-top-block-main {
  padding-top: 10px;
}
.package-new-price-block {
  justify-content: space-between;
  padding: 10px 5px 5px 10px;
}
.package-new-prices {
  min-width: 100px;
  margin: 0;
  flex-grow: 1;
}
.package-new-price-actual {
  text-align: center;
  min-width: max-content;
  width: max-content;
  max-width: max-content;
  font-size: 90%;
  br {
    display: none;
  }
}
.header__phone {
  min-width: max-content;
}
.header__location {
  min-width: max-content;
}
.package-new-main-content-list-list ul {
  max-height: 200px;
  overflow: scroll;
}

.portfolio-page__main {
  margin-right: 0;
}
.pn-card-new-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.pn-card-new-gallery-img img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
}

.dc-card {
  height: 100%;
}

.section__title.section__title-price-photo {
  overflow: hidden;
}

.section__title-price-photo .ss__content-text {
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: #f8fefc;
  border: 1px solid #23ffb4;
  border-radius: 10px;
  padding: 30px;
  /* box-shadow: 0 0 15px #23FFB4; */
  box-shadow: 0px 6px 28px 0px rgba(143, 155, 171, 0.22);
}
.section__title-price-photo .ss__content-text p {
  margin-bottom: 0;
}
.section__title-price-photo .ss__content-list {
  box-shadow: -5px -5px 0 #fff, 5px 5px 0 #fff, 5px -5px 0 #fff, -5px 5px 0 #fff,
    -8px -8px 0 #e6f5fc, 8px 8px 0 #e6f5fc, 8px -8px 0 #e6f5fc,
    -8px 8px 0 #e6f5fc, 0px 6px 28px 0px rgba(143, 155, 171, 0.22);
  border-radius: 18px;
  border: 1px solid #039be5;
  padding: 50px 40px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
}
.section__title-price-photo .ss__content-list .ss__item {
  margin-bottom: 0;
}
.section__title-price-photo .ss__content-thumbnail img {
  border: 1px solid #23ffb4;
  border-radius: 20px;
  padding: 1px;
  background: #fff;
  box-shadow: -6px -6px 0 #e1f6f4, 6px 6px 0 #e1f6f4, 6px -6px 0 #e1f6f4,
    -6px 6px 0 #e1f6f4;
}

.ss__content-right {
  display: flex;
  flex-direction: column;
  min-height: 1100px;
}
.prices-page .ss__content-right {
  min-height: unset !important;
}
.ss__content-right .socials_links {
  width: 100%;
  margin-top: auto;
  margin-bottom: 94px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.ss__content-right .socials_links_image {
  position: absolute;
  bottom: 0;
  right: 0;
  z-index: -2;
}
.ss__content-right .socials_links .socials_links_block {
  width: 365px;
  height: 200px;
  background: #ebf5fb;
  padding: 45px;
  border: 1px solid #c8d6e5;
  border-radius: 15px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;

  color: #080a0c;
  text-align: center;
  font-family: Inter;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 28px;
}

.ss__content-right .socials_links .socials_links_block::before {
  position: absolute;
  content: "";
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  width: calc(100% - 30px);
  height: calc(100% + 30px);
  left: 15px;
  top: -15px;
  z-index: -1;
  border-radius: 10px;
  background: #a8e4f0;
}
.socials_links_block .sep {
  height: 1px;
  width: 80%;
  background: #469ad6;
}
.socials_links_block .socials_links_items {
  width: 100%;
  height: fit-content;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0 16px;
  margin-top: 20px;
}
.socials_links_items .socials_links_item {
  border-radius: 50%;
  aspect-ratio: 1;
  height: auto;
  width: max-content;
  padding: 7px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 7px solid #dff1f9;
}
.prices-page .socials_links {
  display: none;
}
.prices-page .ss__content-text {
  display: none !important;
}
.prices-page .ss__content-button .l-btn__primary {
  display: none;
}

.ss__content-thumbnail-pc {
  display: block;
}
.ss__content-thumbnail_mobile {
  display: none;
  margin: 20px 0;
  padding: 0 30px;
}
.ss__content-thumbnail_mobile img {
  width: 100%;
}
@media (max-width: 767px) {
  .bottom-header {
    height: clamp(42px, 13vw, 60px);
  }
  .transparent-mobile ul li a {
    font-size: clamp(15px, 4.7vw, 18px);
  }
  .header {
    height: 54px;
  }

  .package-new-price-text {
    text-align: center;
  }

  .ss__content-thumbnail_mobile {
    display: block;
  }
  .ss__content-thumbnail-pc {
    display: none;
  }
  .ss__content-list {
    margin: 0 30px;
  }

  .ss__content-left .ss__content-button {
    margin-top: 20px;
  }
  .ss__content-right {
    height: 650px;
    min-height: unset;
  }
}
@media (max-width: 560px) {
  .ss__content-right {
    height: 150vw;
  }
  .socials_links_image {
    bottom: 160px !important;
    left: 40%;
    transform: translateX(-50%);
  }
  .socials_links {
    margin-bottom: 0 !important;
  }
  .socials_links {
    justify-content: center !important;
  }
}
@media (max-width: 320px) {
  .ss__content-list {
    margin: 0;
  }
  .ss__content-thumbnail_mobile {
    padding: 0;
  }
}

@media (max-width: 1328px) {
  .header__logo img {
    width: clamp(125px, 40vw, 171px);
  }
}

@media (max-width: 767px) {
  .home-services-main {
    position: relative;
  }
  .home-services-main-left {
    margin-right: 10px;
    position: relative;
    z-index: 1;
    text-shadow: 1px 1px 1px white;
  }
  .home-services-main-right {
    max-width: 55%;
    position: absolute;
    right: 0;
    bottom: 0;
  }
  .package-new-prices br {
    display: none;
  }
}

.info__block .info__box {
  display: flex;
  flex-wrap: wrap;
}
.info__block .diagnosis {
  border: none;
}
.info__block .manipulation {
  border: none;
}
.info__block .ib-item {
  width: 100%;
}

.table__base-name.table__base-name_post {
  flex: 0 0 calc(60% - 4px);
  max-width: calc(60% - 4px);
}
.table__base-value.table__base-value_post {
  flex: 0 0 calc(40% - 1px);
  max-width: calc(40% - 1px);
}
.table__tr .table__td-name.table__td-name_post {
  flex: 0 0 calc(60% - 4px);
  max-width: calc(60% - 4px);
}
.table__tr .table__td-value.table__td-value_post {
  flex: 0 0 calc(40% - 1px);
  max-width: calc(40% - 1px);
  white-space: nowrap;
}

blockquote {
  background-color: #f0faff;
  color: #505967;
  padding: 17px 28px 11px 28px;
  margin: 20px 0;
  position: relative;
  font-family: Arial, sans-serif;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
  border-radius: 10px;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: 22px;
}
blockquote:before {
  font-family: "Passion One", sans-serif;
  color: #039be5;
  content: "“";
  font-size: 140px;
  line-height: 0.1em;
  position: absolute;
  left: 15px;
  top: 20px;
}
blockquote p {
  display: inline;
}

.pn-card-new-roadmap-list li > span {
  min-width: max-content;
}

.complaints__block:empty {
  display: none;
}
.pf__text:empty {
  display: none;
}

.completed-works__list li span {
  min-width: max-content;
}

/* ! Відгуки пацієнтів */
.feedback-block-row {
  & .card-feedback {
    & .card-col-3.bg-card {
      height: 100%;
      display: flex;
      flex-direction: column;
      overflow: hidden;

      & .card-head {
        /* margin: -5px -5px 0 -5px; */

        & .feedback_toggle_modal {
          cursor: pointer;

          & .feedback_modal {
            display: none;
          }
        }

        & .feedback__img {
          aspect-ratio: 9/10;
          width: 100%;
          height: 100%;
          object-fit: cover;
          object-position: center;
          border-radius: 10px;
        }
      }

      & .card-body {
        height: 100%;

        & .procedure_feedback {
          height: 100%;
        }
      }
    }
  }
}

.feedback_modal_back {
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);

  .feedback_modal_content {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #23ffb4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 5vh 4vw;
    position: relative;
    &::before {
      position: absolute;
      left: 0;
      top: 0;
      content: "";
    }

    & .modal_close {
      position: absolute;
      top: 0;
      right: 0;

      & .fa-xmark {
        color: #000;
        font-size: 24px;
        padding: 10px;
        cursor: pointer;
      }
    }

    & .modal_category_feedback {
      font-family: Inter;
      font-size: 14px;
      font-weight: 400;
      color: #a2a6a8;
      text-align: center;
      margin-bottom: 1vh;
    }

    & .modal_procedure_feedback {
      font-family: Inter;
      font-size: 20px;
      font-weight: 600;
      color: #080a0c;
      text-align: center;
      margin-bottom: 2vh;
    }

    & .modal_feedback_video {
      border-radius: 20px;
      margin-bottom: 2vh;
      width: 100%;
      height: 100%;
      aspect-ratio: 16/9;
    }

    & .l-btn__primary {
      cursor: pointer;
    }
  }
}

#modal_blur {
  opacity: 0;
  display: none;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(3px);
  align-items: center;
  justify-content: center;

  &.active {
    display: flex;
    opacity: 1;
  }
}

/* ! Лікуюча команда */
section.section__treatment-team {
  & h2 {
    color: #fff;
  }

  & .swiper {
    overflow-x: clip;
    overflow-y: visible;
  }

  & .swiper-slide {
    & .treatment-team {
      height: 100%;
      justify-content: center;

      & .treatment-team__left {
        height: 100%;
        margin: 0;

        & .treatment-team__image {
          width: 100%;
          display: flex;
          justify-content: flex-end;

          & .img_container {
            position: relative;
            height: 100%;
            width: fit-content;
            aspect-ratio: 2/3;

            & img {
              height: 100%;
              object-fit: cover;
              object-position: center;
              background: #e9f7fe;
              border-radius: 10px;
              border: none;
              width: 100%;
            }

            &::before {
              content: "";
              position: absolute;
              border: 1px solid #039be5;
              left: -5px;
              top: -5px;
              width: calc(100% + 10px);
              height: calc(100% + 10px);
              z-index: -1;
              border-radius: 10px;
              background: rgba(255, 255, 255, 0.15);
              backdrop-filter: blur(2px);
            }
          }
        }
      }

      & .treatment-team__right {
        background: rgba(255, 255, 255, 0.15);
        backdrop-filter: blur(2px);
        border-radius: 0 15px 15px 0;
        padding: 3vh 2vw;
        border: 1px solid #039be5;
        border-left: none;

        & .treatment-team__specialisation {
          color: #fff;
        }

        & .treatment-team__description {
          color: #fff;
        }

        & .treatment-team__button {
          & .l-btn__primary {
            background: #fff;
            border: 2px solid #23ffb4;
            box-shadow: none;

            &:hover {
              background: #23ffb4;
              border: 2px solid #fff;
            }

            &::after {
              border: none;
            }
          }
        }
      }
    }
  }
}
@media (width <= 768px) {
  section.section__treatment-team {
    & .swiper-slide {
      & .treatment-team {
        display: grid;
        width: 100%;
        grid-template-columns: 1fr 1fr;
        padding: 0 10px;

        & .treatment-team__left {
          width: 100%;

          & .treatment-team__image {
            & .img_container {
              &::before {
                backdrop-filter: blur(2px);
                border-top-right-radius: 0;
                border-right: none;
              }
            }
          }
        }

        & .treatment-team__right {
          width: 100%;
          height: 100%;
          margin-left: -10px;
          margin-top: -20px;
          z-index: -2;
          padding-left: 6vw;
        }
      }
    }
  }
}
@media (width <= 600px) {
  section.section__treatment-team {
    & .swiper-slide {
      & .treatment-team {
        grid-template-columns: 1fr;

        & .treatment-team__left {
          & .treatment-team__image {
            & .img_container {
              width: 100%;

              &::before {
                content: none;
              }
            }
          }
        }

        & .treatment-team__right {
          margin: 0;
          margin-top: -15px;
          border: 1px solid #039be5;
          border-top: none;
          border-radius: 0 0 15px 15px;
        }
      }
    }
  }
}

/* ! Відгуки пацієнтів */
section.feedback {
  & .feedback-block-row {
    & .row {
      display: grid;
      /* grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); */
      grid-template-columns: repeat(auto-fit, 300px);
      padding: 0 1vw;

      & .card-feedback {
        width: 100%;
        max-width: 100%;
      }
    }
  }
}

@media (width <= 600px) {
  section.feedback {
    & .feedback-block-row {
      & .row {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)) !important;
      }
    }
    & .list-feedbacks {
      flex-direction: column;

      & .card-feedback {
        width: 100%;
        max-width: 100%;
      }
    }
  }
}

main.th-home-page-main section.section__hero.hero {
  background-position: 0 30% !important;
}

img[data-lazyloaded] {
  opacity: 0;
}

img.litespeed-loaded {
  -webkit-transition: opacity 0.5s linear 0.2s;
  -moz-transition: opacity 0.5s linear 0.2s;
  transition: opacity 0.5s linear 0.2s;
  opacity: 1;
}

/* ! Fix vector images */
@media (min-width: 1993px) {
  .vector_left {
    background: url(../images/promotions/zub-left-2x.png);
    background-size: contain;
    width: 300px;
    height: 300px;
    position: absolute;
    top: 100px;
    z-index: -100;
    left: 10%;
  }
  .vector_left_after {
    background: url(../images/promotions/bg-1.svg);
    background-size: contain;
    position: absolute;
    width: 649px;
    height: 553px;
    top: 129px;
    left: 15%;
    z-index: -100;
    object-fit: cover;
  }
  .vector-right {
    position: absolute;
    background: url(../images/promotions/implant.png);
    width: 386.99px;
    height: 837px;
    top: 0;
    right: 0;
    z-index: -100;
    background-size: contain;
  }
  .vector-right-circle {
    position: absolute;
    background: url(../images/promotions/bg-paut-2.svg);
    width: 649px;
    height: 553px;
    top: 300px;
    left: 70%;
    z-index: -100;
    background-size: contain;
  }
  .vector-down {
    background: url(../images/promotions/zub-central.png);
    background-size: cover;
    position: absolute;
    top: 350px;
    z-index: -100;
    left: 43%;
    width: 373px;
    height: 603px;
  }
}

.modal__menu a {
  display: block;
  font-size: 14px;
  line-height: 18px;
  color: #080a0c;
  padding-top: 5px;
  padding-bottom: 5px;
}
.modal__menu .sub-menu:not(:has(.sub-menu)) {
  list-style: none;
  /* margin: 0.5rem 0; */
}

.consultation__form form select,
#Callback form select {
  margin-top: 5px;
  display: block;
  width: 100%;
  max-width: 100%;
  border: none;
  background: #FFFFFF;
  padding: 16px 20px;
  -webkit-box-shadow: 0px 6px 28px rgba(143, 155, 171, 0.4);
  box-shadow: 0px 6px 28px rgba(143, 155, 171, 0.4);
  border-radius: 8px;
}

body:has(.custom-slider-container:not([style])) .modal {
  padding-top: 339px;
}

.to__tabs.term_block_select {
  padding: 0 1.4rem;
}

.to__tabs.term_block_select .flex-list-taxonomy {
  width: 100%;
}