@import url("reset.css");

/* Google Fonts with font-display: swap to prevent layout shift */
/* Preconnect links added in HTML <head> for faster font loading */
/* Using display=swap ensures text is visible immediately with fallback fonts */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Montserrat:wght@400;500;600;700&display=swap");

/* ************COMMON************ */

.logo {
  font-weight: 700;
  font-size: 2.25rem;
}

body {
  /* Use fallback fonts with similar metrics to reduce layout shift */
  /* Inter fallback: system fonts with similar x-height and metrics */
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.1rem;
  color: #303a4d;
  /* Prevent font loading layout shifts */
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

[class*="__container"] {
  max-width: 72.624rem;
  margin: 0 auto;
  padding: 0 0.938rem;
}

.button {
  font-weight: 600;
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  transition: all 0.3s;
  color: #fff;
  background-color: #303a4d;
}

.title {
  font-size: 3.5rem;
  font-weight: 600;
}

.wrapper {
  min-height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  overflow: hidden;
}

/* ************HEADER************ */

.header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  z-index: 1000;
}

.header_team {
  background: #f4f8f2;
}

.header__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 5.75rem;
  flex-wrap: wrap;
  max-width: 74.624rem;
}

.header__logo {
  position: relative;
  z-index: 2;
}

.header__logo img {
  height: 6rem;
  width: auto;
  background: transparent;
}

.header__navigation {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.menu__body {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.menu__link {
  font-weight: 600;
  position: relative;
}

.actions-header {
  display: flex;
  align-items: center;
  gap: 0.624rem;
}

.icon-menu {
  display: none;
}

.actions-header__button {
  font-weight: 600;
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border: 2px solid #303a4d;
  border-radius: 30px;
  transition: all 0.3s;
  position: relative;
  z-index: 2;
}

/* ****************PAGES**************** */
.page__main {
  padding-bottom: 160px;
}

/* *****************HOME**************** */

.main {
  position: relative;
  background: url("../images/Home/Home-Hero-Transparent.jpg") center / cover no-repeat;
  min-height: 100vh;
  overflow: hidden;
}

.main__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.main__container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 12rem;
}

.main__caption {
  text-transform: uppercase;
  margin-bottom: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.main__caption-box {
  background-color: rgba(21, 49, 39, 0.7);
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  display: inline-block;
}

.main__title {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 5.5rem;
  font-weight: 600;
  margin-bottom: 8rem;
  color: #fff;
  line-height: 1.1;
  max-width: 90%;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.main__title-box {
  background-color: rgba(21, 49, 39, 0.7);
  padding: 1rem 2rem;
  border-radius: 8px;
  display: inline-block;
}

.main__text {
  margin-bottom: 3.5rem;
  max-width: 33.375rem;
  line-height: 150%;
  letter-spacing: 0.02em;
  color: #fff;
}

.main__button {
  font-weight: 600;
  display: inline-block;
  padding: 1.25rem 3rem;
  border-radius: 30px;
  transition: all 0.3s;
  color: #fff;
  background-color: #303a4d;
  letter-spacing: 0.02em;
  font-size: 1.375rem;
  line-height: 110%;
}

.outro_home {
  background: url("../images/Home/Home-Hero-Transparent.jpg") center / cover no-repeat;
}

/* ************ABOUT**************** */

.main_about {
  background: url("../images/Home/Home-Hero-Transparent.jpg") center / cover no-repeat;
}

.main_team {
  background: #163227;
}

.about_team {
  background: #e0ece2;
  min-height: 200px;
  padding: 4rem 0;
}

.about_team_third {
  background: #0c3124;
  min-height: 200px;
  padding: 4rem 0;
  text-align: center;
}

.about_team_third .about__container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about_team_third .outro__title {
  color: #fff;
  margin-bottom: 2rem;
  order: 1;
}

.about_team_third .outro__text {
  color: #fff;
  margin-bottom: 2.5rem;
  max-width: 50rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  order: 2;
}

.about_team_third .outro__text p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.about_team_third .outro__text p:last-child {
  margin-bottom: 0;
}

.about_team_third .outro__button {
  color: #fff;
  background-color: #303a4d;
  order: 3;
  margin-top: 1rem;
}

.team-section__grid_staff {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  justify-items: center;
  max-width: 80rem;
  margin: 0 auto;
  width: 100%;
  padding: 0 1rem;
}

.team-section__name_staff {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: #303a4d;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.main__container_team {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  padding-top: 0;
  padding-bottom: 2rem;
  margin-top: -6rem;
  width: 100%;
}

.main__title_team {
  color: #e7f1e6;
  text-align: center;
  margin-top: 0;
  margin-bottom: 1rem;
  width: 100%;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
}

.main__text_team {
  color: #fff;
  text-align: center;
  margin-bottom: 2rem;
  white-space: nowrap;
  width: 100%;
  display: block;
  margin: 0 auto 2rem auto;
  padding: 0;
  box-sizing: border-box;
}

.team-section__grid_hero {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  justify-items: center;
  max-width: 80rem;
  margin: 0 auto;
  width: 100%;
  padding: 0 1rem;
}

.team-section__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.team-section__photo {
  width: 100%;
  max-width: 320px;
  height: 350px;
  border: 2px solid #e1e4eb;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1.5rem;
  background: #fff;
}

.team-section__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

/* Specific positioning for dentist photos in hero section to ensure consistent head size and position */
/* Dr. John - adjust to center face */
.team-section__grid_hero .team-section__item:nth-child(1) .team-section__photo img {
  object-position: center 25%;
}

/* Dr. Julius - zoom in more to match others (more zoomed out photo) */
.team-section__grid_hero .team-section__item:nth-child(2) .team-section__photo img {
  object-position: center 20%;
  transform: scale(1.15);
}

/* Dr. Szostak - adjust to center face, move up to match white background above head */
.team-section__grid_hero .team-section__item:nth-child(3) .team-section__photo img {
  object-position: center 37.5%;
}

.team-section__name-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
}

.team-section__name_hero {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: #e7f1e6;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}

.team-section__toggle {
  background: transparent;
  border: 2px solid #f5f9f2;
  color: #f5f9f2;
  font-size: 1.5rem;
  font-weight: 300;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  flex-shrink: 0;
  padding: 0;
  line-height: 1;
}

.about_team .team-section__toggle {
  border: 2px solid #303a4d;
  color: #303a4d;
}

.team-section__toggle:hover {
  background: rgba(255, 255, 255, 0.2);
}

.team-section__toggle.active {
  transform: rotate(45deg);
}

.team-section__bio {
  width: 100%;
  max-width: 320px;
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #e7f1e6;
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: left;
  transition: all 0.3s;
  overflow: hidden;
}

.about_team .team-section__bio {
  background: rgba(48, 58, 77, 0.1);
  color: #303a4d;
}

.about_team .team-section__photo {
  border: 2px solid #0c3124;
}

.team-section__bio_hidden {
  max-height: 0;
  padding: 0 1rem;
  margin-top: 0;
  opacity: 0;
}

.team-section__bio p {
  margin: 0.5rem 0;
}

.team-section__bio p:first-child {
  margin-top: 0;
  font-size: 1rem;
}

.team-section__bio p:last-child {
  margin-bottom: 0;
}

@media (min-width: 769px) and (max-width: 1024px) {
  .team-section__grid_hero {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .team-section__grid_hero {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .team-section__grid_staff {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.about__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-top: 8.75rem;
  padding-bottom: 8.75rem;
}

.about__image {
  position: relative;
  max-width: 552px;
  height: 614px;
}

.about__image img {
  border-radius: 16px;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__title {
  margin-bottom: 1.5rem;
}

.about__text {
  max-width: 30rem;
  letter-spacing: 0.02em;
  line-height: 150%;
  margin-bottom: 3.5rem;
}

.about__text p:not(:last-child) {
  margin-bottom: 2.5rem;
}

.outro_about {
  background: url("../images/Home/Home-Hero-Transparent.jpg") center / cover no-repeat;
}

/* **************SERVICES**************** */

.main_services {
  background: #f3f8f0;
}

.services-grid-section {
  background: #f3f8f0;
  padding: 10rem 0 4rem 0;
}

.services-grid__container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 0.938rem;
}

.services-grid__section-title {
  font-size: 3.5rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 3rem;
  color: #303a4d;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2rem;
  justify-items: center;
}

.services-grid__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.services-grid__photo {
  width: 100%;
  max-width: 200px;
  height: 200px;
  border: 2px solid #e1e4eb;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 1rem;
  background: #fff;
}

.services-grid__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.services-grid__title {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: #303a4d;
  margin: 0;
  text-align: center;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: color 0.3s;
}

.services-grid__title:hover {
  color: #304636;
}

.services-grid__toggle {
  font-size: 1.5rem;
  font-weight: 300;
  color: #304636;
  display: inline-block;
  transition: transform 0.3s;
}

.services-grid__item {
  cursor: pointer;
}

.services-grid__item:hover .services-grid__toggle {
  transform: scale(1.2);
}

@media (min-width: 769px) and (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .clinic-gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .clinic-gallery__thumbnail {
    height: 240px;
  }

  .services__subtitle_gallery {
    font-size: 1.1rem;
    padding: 0 1rem;
  }

  .services_empty {
    padding: 2.5rem 0 3rem 0;
  }
}

.services {
  background-color: #e1e4eb;
}

.services_empty {
  background-color: #f0f7ed;
  min-height: 200px;
  padding: 3rem 0 4rem 0;
}

.services__title_gallery {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #304636;
  text-align: center;
  margin-bottom: 1rem;
}

.services__subtitle_gallery {
  color: #304636;
  text-align: center;
  margin-bottom: 3rem;
  margin-top: 0;
  padding-top: 0;
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 40.625rem;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
}

.clinic-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.clinic-gallery__item {
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.clinic-gallery__item:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  border-color: rgba(255, 255, 255, 0.25);
}

.clinic-gallery__thumbnail {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

/* Service Modal Styles */
.service-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  overflow-y: auto;
}

.service-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-modal__overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(48, 70, 54, 0.95);
  z-index: 10001;
}

.service-modal__content {
  position: relative;
  z-index: 10002;
  background-color: #304636;
  width: 90%;
  max-width: 1200px;
  height: 600px;
  overflow-y: auto;
  margin: 2rem auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.service-modal__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 3rem;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s, color 0.3s;
  z-index: 10003;
}

.service-modal__close:hover {
  transform: rotate(90deg);
  color: rgba(255, 255, 255, 0.8);
}

.service-modal__left {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.service-modal__image-wrapper {
  width: 100%;
  height: 420px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.service-modal__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.service-modal__title {
  color: #fff;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.service-modal__right {
  display: flex;
  flex-direction: column;
}

.service-modal__description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  line-height: 1.8;
  padding: 1rem 0;
}

.service-modal__description p {
  margin-bottom: 1.5rem;
}

.service-modal__description p:last-child {
  margin-bottom: 0;
}

/* Service Modal Styles */
.service-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  overflow-y: auto;
}

.service-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-modal__overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(48, 70, 54, 0.95);
  z-index: 10001;
}

.service-modal__content {
  position: relative;
  z-index: 10002;
  background-color: #304636;
  width: 90%;
  max-width: 1200px;
  height: 600px;
  overflow-y: auto;
  margin: 2rem auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.service-modal__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 3rem;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s, color 0.3s;
  z-index: 10003;
}

.service-modal__close:hover {
  transform: rotate(90deg);
  color: rgba(255, 255, 255, 0.8);
}

.service-modal__left {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.service-modal__image-wrapper {
  width: 100%;
  height: 420px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}

.service-modal__image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.service-modal__title {
  color: #fff;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.service-modal__right {
  display: flex;
  flex-direction: column;
}

.service-modal__description {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  line-height: 1.8;
  padding: 1rem 0;
}

.service-modal__description p {
  margin-bottom: 1.5rem;
}

.service-modal__description p:last-child {
  margin-bottom: 0;
}

.service-modal__button {
  display: inline-block;
  margin-top: 2rem;
  padding: 1rem 2.5rem;
  background-color: #fff;
  color: #304636;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s;
  text-align: center;
}

.service-modal__button:hover {
  background-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.service-modal__button--more-info {
  display: block;
  margin-top: 1rem;
  background-color: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.service-modal__button--more-info:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* Dentist Bio Popup Modal Styles */
.dentist-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  overflow-y: auto;
}

.dentist-popup.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.dentist-popup__overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(48, 70, 54, 0.85);
  z-index: 10001;
  backdrop-filter: blur(4px);
}

.dentist-popup__content {
  position: relative;
  z-index: 10002;
  background-color: #fff;
  width: 90%;
  max-width: 700px;
  max-height: 85vh;
  overflow-y: auto;
  margin: 2rem auto;
  padding: 3rem;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.dentist-popup__close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: transparent;
  border: none;
  color: #303a4d;
  font-size: 3rem;
  font-weight: 300;
  cursor: pointer;
  line-height: 1;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s, color 0.3s;
  z-index: 10003;
}

.dentist-popup__close:hover {
  transform: rotate(90deg);
  color: rgba(48, 58, 77, 0.7);
}

.dentist-popup__bio {
  color: #303a4d;
  font-size: 1.1rem;
  line-height: 1.8;
}

.dentist-popup__bio p {
  margin: 0 0 1rem 0;
}

.dentist-popup__bio p:last-child {
  margin-bottom: 0;
}

.dentist-popup__bio strong {
  font-size: 1.5rem;
  font-weight: 700;
  display: block;
  margin-bottom: 1rem;
  color: #304636;
}

/* Learn More Link Styles */
.team-section__learn-more {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 1.5rem;
  background-color: #304636;
  color: #fff;
  text-decoration: none;
  border-radius: 30px;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s;
  text-align: center;
}

.team-section__learn-more:hover {
  background-color: rgba(48, 70, 54, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Technologies Section */
.technologies-section {
  background-color: #304636;
  padding: 4rem 0;
}

.technologies-section__container {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
}

.technologies-section__title {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 3rem 0;
}

.technologies-section__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.technologies-section__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.technologies-section__image-wrapper {
  width: 100%;
  height: 250px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 1.5rem;
}

.technologies-section__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.technologies-section__item-title {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
}

@media (max-width: 768px) {
  .technologies-section__grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .technologies-section__title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .service-modal__content {
    grid-template-columns: 1fr;
    width: 95%;
    padding: 2rem;
    gap: 2rem;
    height: auto;
    min-height: 500px;
  }

  .service-modal__title {
    font-size: 2rem;
  }

  .service-modal__description {
    font-size: 1rem;
  }
}

/* Lightbox Styles */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  overflow: auto;
}

.lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  margin: auto;
}

.lightbox__image {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10000;
}

.lightbox__close:hover {
  color: #ccc;
}

.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  padding: 16px;
  user-select: none;
  z-index: 10000;
}

.lightbox__prev {
  left: 20px;
}

.lightbox__next {
  right: 20px;
}

.lightbox__prev:hover,
.lightbox__next:hover {
  color: #ccc;
}

.services__container {
  padding-top: 8.75rem;
  padding-bottom: 8.75rem;
}

.services__title {
  text-align: center;
  margin-bottom: 5rem;
}

.services__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.item-services {
  display: flex;
  flex-direction: column;
  align-items: start;
  min-height: 100%;
}

.item-services__image {
  margin-bottom: 2rem;
  max-width: 360px;
  height: 421px;
}

.item-services__image img {
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.item-services__title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.item-services__text {
  max-width: 21.5rem;
  line-height: 150%;
  margin-bottom: 2rem;
  flex-grow: 1;
  letter-spacing: 0.02em;
}

.item-services__button {
  background-color: inherit;
  border: 2px solid #303a4d;
  color: #303a4d;
}

.outro_services {
  background-color: #304636;
}

.outro_services .outro__title {
  color: #fff;
  font-weight: 700;
}

.outro_services .outro__text {
  color: #fff;
}

.outro_services .outro__button {
  background-color: #fff;
  color: #304636;
}

/* ************TESTIMONIAL**************** */

.testimonial__container {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  flex-direction: column;
  padding-top: 8.75rem;
  padding-bottom: 8.75rem;
}

.testiomonial__caption {
  margin-bottom: 4rem;
  font-weight: 600;
  text-transform: uppercase;
}

.testimonial__title {
  margin-bottom: 4rem;
  font-size: 2rem;
  max-width: 40.75rem;
  line-height: 136%;
  font-weight: 500;
}

.item-testimonial__image {
  max-width: 64px;
  margin: 0 auto;
  margin-bottom: 1.063rem;
  height: 64px;
}

.item-testimonial__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.item-testimonial__title {
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.item-testimonial__caption {
  font-size: 0.938rem;
}

/* ****************OUTRO**************** */

.outro__container {
  padding-top: 8.75rem;
  padding-bottom: 8.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.outro__title {
  margin-bottom: 1.25rem;
}

.outro__text {
  max-width: 33.625rem;
  line-height: 150%;
  margin-bottom: 2.5rem;
  letter-spacing: 0.02em;
}

.outro__button {
  padding: 1.25rem 3rem;
}

/* ****************FOOTER**************** */

.footer {
  line-height: 150%;
}

.footer_team {
  background-color: #f3f8f0;
}

.footer__container {
  padding-top: 3.25rem;
  padding-bottom: 3.25rem;
  max-width: 74.624rem;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.footer__policy {
  font-weight: 600;
  letter-spacing: 0.02em;
  justify-self: start;
}

.footer__logo {
  justify-self: center;
}

.footer__logo img {
  height: 6rem;
  width: auto;
  background: transparent;
}

.footer__copyright {
  font-weight: 600;
  letter-spacing: 0.02em;
  justify-self: end;
}

/* ****************ABOUT PAGE**************** */
.main__text_pages {
  max-width: 37.5rem;
}

.main__title_ortho {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #303a4d;
}

.main__text_ortho {
  color: #303a4d;
  font-size: 1.25rem;
  line-height: 150%;
  max-width: 40.75rem;
}

.main__text_ortho p {
  margin-bottom: 1rem;
}

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

.main__coming-soon {
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  margin-bottom: 1.5rem !important;
}

.main__container_pages {
  padding-top: 300px;
}

.main_pages {
  min-height: 676px !important;
}

.main_contact.main_pages {
  min-height: 400px !important;
}

.main_contact .main__container_pages {
  padding-top: 0;
}

/* ****************SERVICES PAGE**************** */
.services-page__container {
  padding-top: 160px;
}

.services-page__item {
  margin-bottom: 132px;
}

.services-page__item:not(:last-child) {
  padding-bottom: 132px;
  margin-bottom: 132px;
  border-bottom: 1px solid rgba(48, 58, 77, 0.4);
}

.services-page__column {
  display: flex;
  align-items: center;
  gap: 97px;
}

.services-page__title {
  margin-bottom: 24px;
}

.services-page__text {
  margin-bottom: 56px;
  max-width: 480px;
  font-size: 18px;
  line-height: 150%;
  letter-spacing: 0.02em;
}

.services-page__text p:not(:last-child) {
  margin-bottom: 20px;
}

.services-page__img {
  max-width: 552px;
  height: 614px;
}

.services-page__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

/* ****************CONTACT PAGE****************/

.main_contact {
  background: url("../images/Home/Home-Hero-Transparent.jpg") center / cover no-repeat;
}

.page__contact {
  background-color: #f3f8f0;
  width: 100%;
}

.contact__container {
  padding-top: 4rem;
  padding-bottom: 4rem;
  background-color: #f3f8f0;
  width: 100%;
}

.contact__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

.contact__row:last-child {
  margin-bottom: 0;
}

.contact__row:last-child {
  grid-template-columns: repeat(3, 1fr);
}

.contact__title {
  margin-bottom: 48px;
  font-weight: 600;
  line-height: 110%;
  font-size: 40px;
}

.contact__section-title {
  font-family: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #304636;
  margin-bottom: 2rem;
}

.contact__info-block {
  background: #fff;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(48, 70, 54, 0.1);
  border: 2px solid #f3f8f0;
  transition: all 0.3s;
}

.contact__info-block:hover {
  box-shadow: 0 6px 20px rgba(48, 70, 54, 0.15);
  border-color: #304636;
}

.contact__methods {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact__method {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact__method-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact__method-content {
  flex: 1;
}

.contact__method-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #304636;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.contact__method-value {
  font-size: 1.1rem;
  color: #304636;
  text-decoration: none;
  display: block;
  font-weight: 500;
}

.contact__method-value:hover {
  color: #1a2e24;
  text-decoration: underline;
}

.contact__address {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #304636;
}

.contact__address p {
  margin-bottom: 0.5rem;
}

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

.contact__hours {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact__hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f3f8f0;
  white-space: nowrap;
}

.contact__hours-row:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.contact__hours-day {
  min-width: 100px;
}

.contact__hours-note {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f3f8f0;
}

.contact__hours-note p {
  font-size: 0.95rem;
  color: #304636;
  font-style: italic;
  margin: 0;
}

.contact__hours-day {
  font-weight: 600;
  color: #304636;
}

.contact__hours-time {
  color: #304636;
  font-weight: 500;
}

.contact__social {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact__social-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: #f3f8f0;
  border-radius: 8px;
  text-decoration: none;
  color: #304636;
  transition: all 0.3s;
  border: 2px solid #f3f8f0;
}

.contact__social-link:hover {
  background: #304636;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(48, 70, 54, 0.3);
  border-color: #304636;
}

.contact__social-icon {
  width: 2rem;
  height: 2rem;
  object-fit: contain;
}

.contact__social-label {
  font-size: 1.1rem;
  font-weight: 600;
}

.contact__book-online {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.contact__coming-soon {
  margin-top: 1rem;
}

.contact__coming-soon p {
  font-size: 1.2rem;
  color: #304636;
  font-style: italic;
  margin: 0;
  font-weight: 500;
}

@media (max-width: 768px) {
  .contact__row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact__row:last-child {
    grid-template-columns: 1fr;
  }
}

.connect-contact {
  display: flex;
  flex-direction: column;
  align-items: start;
  row-gap: 32px;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid #e1e4eb;
}

.connect-contact__item {
  display: inline-flex;
  align-items: center;
  gap: 24px;
}

.connect-contant__type {
  margin-bottom: 4px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 110%;
  text-transform: uppercase;
}

.connect-contact__label {
  font-size: 22px;
  line-height: 150%;
  letter-spacing: 0.02em;
}

.contact__links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact__text {
  max-width: 545px;
  font-size: 18px;
  line-height: 150%;
}

.contact__text p:not(:last-child) {
  margin-bottom: 15px;
}

iframe {
  width: 100vw;
  height: 482px;
  filter: grayscale(100%);
}

/* **************REVIEWS PAGE**************** */
.reviews__container {
  padding-top: 160px;
  padding-bottom: 160px;
}

.reviews__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 24px;
  row-gap: 96px;
}

.reviews__column {
  border: 1px solid #e1e4eb;
  border-radius: 8px;
}

.reviews__item {
  padding-top: 48px;
  padding-bottom: 56px;
  padding-right: 32px;
  padding-left: 32px;
}

.item-reviews {
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.item-reviews__img {
  max-width: 46px;
  height: 36px;
  margin: 0 auto;
  margin-bottom: 46px;
}

.item-reviews__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.item-reviews__text {
  margin-bottom: 40px;
  font-size: 18px;
  letter-spacing: 0.02em;
  line-height: 150%;
}

.item-reviews__author {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.01em;
  margin-bottom: 10px;
}

.item-reviews__geo {
  font-size: 14px;
  letter-spacing: 0.002em;
}

/* ******************PRICING PAGE******************** */
.pricing__container {
  padding-top: 140px;
  padding-bottom: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.pricing__caption {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 12px;
  letter-spacing: 4%;
}

.pricing__title {
  font-weight: 600;
  font-size: 72px;
  margin-bottom: 24px;
}

.pricing__text {
  font-size: 22px;
  letter-spacing: 2%;
  margin-bottom: 88px;
}

.pricing__row {
  display: flex;
  align-items: start;
  gap: 24px;
}

.pricing__column {
  border: 2px solid #e1e4eb;
  border-radius: 8px;
}

.pricing__item {
  padding: 40px;
  padding-bottom: 48px;
}

.item-pricing__info {
  padding-bottom: 32px;
  border-bottom: 1px solid #e1e4eb;
  margin-bottom: 32px;
}

.item-pricing__label {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 1%;
  margin-bottom: 16px;
}

.item-pricing__cost {
  font-size: 72px;
  font-weight: 600;
  margin-bottom: 16px;
}

.item-pricing__list {
  margin-bottom: 64px;
}

.item-pricing__item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.item-pricing__item::before {
  content: "";
  background: url("../img/pricing/check.svg") 0 0 no-repeat;
  width: 16px;
  height: 18px;
}

.item-pricing__item:not(:last-child) {
  margin-bottom: 12px;
}

.item-pricing__button {
  display: inline-block;
  font-size: 22px;
  letter-spacing: 2%;
  font-weight: 600;
  color: #fff;
  padding: 20px 82px;
  background-color: #303a4d;
  border-radius: 64px;
}

.team {
  background-color: #e1e4eb;
}

.team__container {
  padding-top: 140px;
  padding-bottom: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.team__title {
  text-align: center;
  margin-bottom: 96px;
  max-width: 483px;
}

.team__row {
  display: grid;
  column-gap: 24px;
  row-gap: 96px;
  grid-template-columns: repeat(3, 1fr);
}

.team__item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.item-team__img {
  max-width: 360px;
  height: 363px;
  margin-bottom: 40px;
}

.item-team__img img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
}

.item-team__name {
  max-width: 186px;
  font-size: 32px;
  font-weight: 600;
  line-height: 120%;
  text-align: center;
  margin-bottom: 12px;
}

.item-team__role {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 26px;
  letter-spacing: 2%;
}

.item-team__role span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.item-team__role span::after {
  content: "";
  background: url("../img/team/icons/star.svg") 0 0 no-repeat;
  width: 12px;
  height: 12px;
}

.item-team__text {
  font-size: 16px;
  text-align: center;
  letter-spacing: 2%;
  line-height: 150%;
  max-width: 328px;
  margin-bottom: 20px;
}

.item-team__icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* *************FAQ PAGE************** */
.faqs__container {
  padding-top: 140px;
  padding-bottom: 140px;
}

.faqs__title {
  text-align: center;
  margin-bottom: 80px;
}

.spollers-faq__item {
  width: 100%;
}

.spollers-faq__item:not(:last-child) {
  margin-bottom: 24px;
}

.spollers-faq__button {
  display: inline-block;
  border: 2px solid #e1e4eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  border-radius: 8px;
}

.spollers-faq__button span {
  padding-left: 40px;
  padding-top: 32px;
  padding-bottom: 32px;
  font-weight: 600;
}

.spollers-faq__button img {
  padding-right: 34.5px;
}

.spollers-faq__text {
  max-height: 0;
  overflow: hidden;
  width: 100%;
  display: block;
}

.spollers-faq__item.active .spollers-faq__text {
  max-height: 1000px;
  max-height: calc(1000px + 16px);
}

.spollers-faq__item.active .spollers-faq__button {
  border-bottom: none;
  border-radius: 8px 8px 0px 0px;
}

.spollers-faq__item.active .spollers-faq__button span {
  padding-bottom: 32px;
}

.spollers-faq__item.active .spollers-faq__button img {
  transform: translate(-34px, 0px) rotate(180deg);
}

.spollers-faq__inner {
  padding-top: 20px;
  padding-left: 40px;
  border: 2px solid #e1e4eb;
  border-radius: 0px 0px 8px 8px;
  line-height: 150%;
  padding-bottom: 20px;
  border-top: none;
  padding-right: 100px;
}

/* ****************TEAM PAGE**************** */
.director__container {
  padding-top: 140px;
  padding-bottom: 140px;
  display: flex;
  align-items: center;
  gap: 96px;
}

.director__title {
  margin-bottom: 16px;
}

.director__role {
  font-size: 22px;
  letter-spacing: 2%;
  margin-bottom: 40px;
}

.director__text {
  letter-spacing: 2%;
  line-height: 150%;
  max-width: 480px;
}

.director__text p:not(:last-child) {
  margin-bottom: 20px;
}

.director__img {
  max-width: 552px;
  height: 614px;
}

.director__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

/* ****************GALLERY**************** */
.gallery__container {
  padding-bottom: 140px;
  padding-top: 140px;
}

.gallery__row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 24px;
  row-gap: 96px;
  margin-bottom: 96px;
  justify-items: center;
}

.gallery__item {
  max-width: 360px;
  height: 407px;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.gallery__paggination {
  display: flex;
  align-items: center;
  justify-content: center;
  align-items: center;
  gap: 42px;
}

.gallery__paggination button:first-child {
  transform: translate(0px, 5px);
}

.gallery__paggination button:last-child {
  transform: rotate(-180deg) translate(0px, 5px);
}

.gallery_active {
  color: #fff;
  padding: 10px 15px;
  background-color: #303a4d;
  border-radius: 100px;
  display: inline-block;
}

/* ****************RESOURCES**************** */
.resources__container {
  padding-top: 140px;
  padding-bottom: 140px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: 24px;
  row-gap: 96px;
  justify-items: center;
}

.resources__img {
  max-width: 360px;
  height: 330px;
  margin-bottom: 32px;
}

.resources__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.resources__title {
  font-weight: 600;
  font-size: 24px;
  margin-bottom: 12px;
}

.resources__text {
  letter-spacing: 2%;
  line-height: 150%;
  max-width: 243px;
  margin-bottom: 32px;
}

.resources__button {
  background-color: #fff;
  color: #303a4d;
  font-weight: 600;
  letter-spacing: 2%;
  border: 2px solid #303a4d;
  border-radius: 64px;
}

/* ****************ADAPTIVE**************** */

@media (max-width: 992px) {
  .services__row {
    grid-template-columns: 1fr;
    gap: 6rem;
    justify-items: center;
  }

  .item-services {
    text-align: center;
    align-items: center;
  }

  .page__main {
    padding-bottom: 80px;
  }
}

@media (min-width: 47.999rem) {
  .menu__list {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
  }
}

@media (max-width: 995px) {
  .item-pricing__button {
    font-size: 19px;
  }
}

@media (max-width: 62.6875rem) {
  .resources__container {
    padding-top: 70px;
    padding-bottom: 70px;
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery__paggination {
    gap: 27px;
  }

  .gallery__row {
    grid-template-columns: repeat(2, 1fr);
  }

  .team__row {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 30px;
  }

  .director__container {
    flex-direction: column;
    padding-top: 70px;
    padding-bottom: 70px;
    gap: 10px;
    text-align: center;
  }

  .item-pricing {
    padding: 20px;
    padding-bottom: 30px;
  }

  .pricing__title {
    font-size: 39px;
  }

  .pricing__text {
    margin-bottom: 25px;
  }

  .item-pricing__button {
    padding: 16px 42px;
  }

  .footer__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
  }

  .footer__policy,
  .footer__copyright {
    justify-self: center;
    text-align: center;
    margin: 0.5rem 0;
  }

  .footer__logo {
    margin-bottom: 1rem;
  }

  .services-page__column {
    gap: 30px;
    font-size: 15px;
  }

  .services-page__title {
    font-size: 29px;
  }

  .reviews__row {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 30px;
    column-gap: 10px;
  }

  .reviews__item {
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
    padding-top: 20px;
    display: inline-block;
  }

  .item-reviews__text {
    font-size: 16px;
  }

  .item-reviews__author {
    font-size: 16px;
  }
}

@media (max-width: 47.999rem) {
  .spollers-faq__item.active .spollers-faq__button img {
    transform: translate(-10px, -10px) rotate(180deg);
  }

  .spollers-faq__button span {
    padding-top: 15px;
    padding-left: 10px;
    padding-bottom: 15px;
    font-weight: 600;
    font-size: 14px;
  }

  .spollers-faq__button img {
    padding-right: 10px;
  }

  .spollers-faq__inner {
    font-size: 16px;
    padding-left: 10px;
    line-height: 130%;
  }

  .pricing__container {
    text-align: center;
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .pricing__row {
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .item-pricing__button {
    font-size: 17px;
    padding: 15px 32px;
  }

  .reviews__container {
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .icon-menu {
    display: block;
    position: relative;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 1.875rem;
    flex: 0 0 1.875rem;
    width: 1.875rem;
    height: 1.125rem;
    cursor: pointer;
    z-index: 5;
  }

  .icon-menu span,
  .icon-menu::before,
  .icon-menu::after {
    content: "";
    -webkit-transition: all 0.3s ease 0s;
    -o-transition: all 0.3s ease 0s;
    transition: all 0.3s ease 0s;
    right: 0;
    position: absolute;
    width: 100%;
    height: 0.125rem;
    background-color: #000;
  }

  .icon-menu::before {
    top: 0;
  }

  .icon-menu::after {
    bottom: 0;
  }

  .contact__container {
    flex-direction: column;
    padding-top: 80px;
    gap: 50px;
    padding-bottom: 80px;
  }

  .icon-menu span {
    top: calc(50% - 0.0625rem);
  }

  .menu-open .icon-menu span {
    width: 0;
  }

  .menu-open .icon-menu::before {
    top: calc(50% - 0.0625rem);
    -webkit-transform: rotate(-45deg);
    -ms-transform: rotate(-45deg);
    transform: rotate(-45deg);
  }

  .menu-open .icon-menu::after {
    bottom: calc(50% - 0.0625rem);
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
  }

  .menu__body {
    background-color: #fff;
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    padding: 9.375rem 0.938rem 1.875rem 0.938rem;
    overflow: auto;
    flex-direction: column;
    row-gap: 5rem;
  }

  .menu__body::before {
    content: "";
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    min-height: 5.75rem;
    background-color: #fff;
    border-bottom: 1px solid #000;
    z-index: 2;
  }

  .menu-open .menu__body {
    left: 0;
  }

  .menu-open .menu__body::before {
    left: 0;
  }

  .menu__item {
    text-align: center;
  }

  .menu__item:not(:last-child) {
    margin-bottom: 1.563rem;
  }

  .menu__link {
    font-size: 2rem;
  }

  .actions-header__button {
    padding: 0.75rem;
  }

  .main__container {
    padding-top: 12.5rem;
  }

  .main__container_pages {
    padding-top: 290px;
  }

  .main__title {
    font-size: 3rem;
  }

  .title {
    font-size: 2rem;
  }

  .about__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .about__container {
    flex-direction: column;
    padding-top: 4.375rem;
    padding-bottom: 4.375rem;
    gap: 4rem;
  }

  .services__container {
    padding-top: 4.375rem;
    padding-bottom: 4.375rem;
  }

  .testimonial__title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
  }

  .testiomonial__caption {
    margin-bottom: 2rem;
  }

  .outro__container {
    padding-top: 4.375rem;
    padding-bottom: 4.375rem;
  }

  .logo {
    font-size: 1rem;
  }

  .services-page__column {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: 20px;
    gap: 4rem;
  }
}

@media (max-width: 61.936rem) {
  .footer__container {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    row-gap: 0.938rem;
  }

  .logo {
    font-size: 2rem;
  }
}

@media (max-width: 530px) {
  .reviews__row {
    grid-template-columns: 1fr;
  }

  .team__row {
    grid-template-columns: 1fr;
  }

  .gallery__row {
    grid-template-columns: 1fr;
  }

  .resources__container {
    grid-template-columns: 1fr;
  }

  .clinic-gallery {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .clinic-gallery__thumbnail {
    height: 220px;
  }

  .services__title_gallery {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
  }

  .services__subtitle_gallery {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .services_empty {
    padding: 2rem 0 2.5rem 0;
  }
}