.site-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  padding-block: 1.5em;
  gap: 2em;
  flex-wrap: wrap;
}

body.home .site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  color: #fff;
  background: transparent;
}

body.home #page {
  position: relative;
}

body.home .site-header a {
  color: inherit;
}

@media (max-width: 480px) {
  .site-header {
    padding-block: 1em;
  }
}

.main-navigation {
  width: fit-content;
  display: flex;
  justify-content: center;
}

.main-navigation ul {
  gap: 1em;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.875em;
  flex-direction: column;
}

.site-contacts {
  display: flex;
  align-items: center;
  justify-content: end;
  flex: 1;
  gap: 1.5em;
}

.site-contacts__phone {
  font-weight: 600;
  font-size: 0.875em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
}

.header-logo,
.footer-logo {
  display: block;
  max-height: 48px;
  width: auto;
}

.site-header .site-search,
.site-search label {
  flex-grow: 1;
}

.site-search form {
  display: flex;
  border: 1px solid #848484;
  border-radius: 3px;
  transition: all 300ms;
}

.site-search form input[type="search"] {
  width: 100%;
  height: 100%;
  border: none;
  padding: 6px 14px;
  outline: none;
}

.site-search form:focus-within {
  border-color: black;
}

.site-search form button {
  border: none;
  background-color: transparent;
  cursor: pointer;
  padding: 10px 14px;
}

.site-contacts a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  border-radius: 0 0 40px 40px;
}

@media (max-width: 1024px) {
  .hero,
  .hero *,
  body.home .site-header * {
    color: #000;
  }

  body.home .site-header * .btn--white,
  .hero * .btn--white {
    border: 1px solid #d9d9d9;
  }
}

.hero__media,
.hero__overlay {
  position: absolute;
  inset: 0;
}

.hero__media {
  background-position: top;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero__layout {
  position: relative;
  z-index: 1;
  padding-top: 7.5em;
  padding-bottom: 2.5em;
}

@media (max-width: 1024px) {
  .hero__layout {
    padding-top: 12.5em;
  }
}

.hero__main {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 2.5em;
  align-items: end;
  min-height: 38rem;
}

.hero__uptitle {
  margin: 0 0 1.5em;
  max-width: 18em;
  font-size: 1em;
  line-height: 1.2;
  font-weight: 500;
  white-space: pre-line;
}

.hero__title {
  margin: 0;
  max-width: 9.5em;
  font-size: 2.5em;
  line-height: 0.9;
  font-weight: 600;
}

.hero__aside {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  margin-left: auto;
  max-width: 18.5rem;
}

.hero__schedule {
  width: 100%;
  font-size: 0.875em;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
}

.hero__schedule p {
  margin: 0;
}

.hero__schedule mark {
  display: block;
  padding: 0;
  background: none;
  color: inherit;
  font-size: 2.85em;
  font-weight: 600;
  line-height: 0.9;
  text-transform: none;
}

.hero__address {
  font-size: 0.875em;
  font-weight: 500;
  line-height: 1.35;
  color: #fff;
}

.hero__address p {
  margin: 0;
}

.hero__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1em;
  margin-top: 0.5em;
}

.hero__directions {
  margin-top: 3.5em;
  padding: 2.5em;
  border-radius: 32px;
  background-color: #f6f6f6;
}

.hero__directions-title {
  margin: 0 0 1em;
  font-size: 2em;
  line-height: 0.9;
  font-weight: 600;
  color: #191919;
}

.hero__directions-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1em;
}

.hero__directions-card {
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
  min-height: 4.125rem;
  padding: 0.75em 1em;
  border-radius: 80px;
  background-color: #fff;
  color: #191919;
  font-size: 1em;
  font-weight: 600;
}

.hero__directions-card img {
  flex-shrink: 0;
  width: 44px;
  height: auto;
  object-fit: contain;
}

@media (max-width: 1024px) {
  .hero__main {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero__aside {
    margin-left: 0;
    max-width: none;
    align-items: flex-start;
    text-align: left;
  }

  .hero__schedule mark {
    font-size: 2.25em;
  }
}

@media (max-width: 768px) {
  .hero__layout {
    padding-top: 8em;
  }

  .hero__media {
    background-position: 60% center;
  }
}

@media (max-width: 480px) {
  .hero {
    border-radius: 0 0 24px 24px;
  }

  .hero__layout {
    padding-top: 8.5em;
    padding-bottom: 1.5em;
  }

  .hero__title {
    font-size: 1.75em;
  }

  .hero__directions {
    padding: 1.5em;
    border-radius: 24px;
  }

  .hero__directions-title {
    font-size: 1.5em;
  }

  .hero__directions-card {
    width: 100%;
    justify-content: center;
  }

  .hero__buttons {
    width: 100%;
    flex-direction: column;
  }

  .hero__buttons .btn {
    width: 100%;
  }
}

.directions {
  display: none;
}

.diagnostics {
  padding-block: 3em;
}

.diagnostics__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.diagnostics__intro {
  grid-column: span 2;
  min-height: 300px;
  padding: 2em;
  border-radius: 32px;
  background-color: #f0f6f6;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5em;
}

.diagnostics__title {
  margin: 0;
  max-width: 9em;
  font-size: 2em;
  line-height: 0.9;
  font-weight: 600;
  color: #191919;
}

.diagnostics__intro-action {
  margin-top: auto;
}

.diagnostics__card {
  display: flex;
  flex-direction: column;
  gap: 1.25em;
  padding: 2em;
  border-radius: 32px;
  background-color: var(--accent-color);
  color: #fff;
}

.diagnostics__card--compact {
  min-height: 300px;
}

.diagnostics__card--tall {
  min-height: 400px;
}

.diagnostics__card-title {
  margin: 0;
  font-size: 1.125em;
  line-height: 1.1;
  font-weight: 600;
  color: #fff;
}

.diagnostics__card-description {
  margin: 0;
  flex-grow: 1;
  font-size: 0.875em;
  line-height: 1.35;
  color: #fff;
}

.diagnostics__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  width: fit-content;
  margin-top: auto;
  padding: 0.95em 1.5em;
  border-radius: 80px;
  background-color: #fff;
  color: #191919;
  font-size: 0.75em;
  font-weight: 600;
}

.diagnostics__pill img {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.diagnostics__media {
  height: 100%;
  border-radius: 32px;
  overflow: hidden;
}

.diagnostics__media--wide {
  grid-column: span 2;
}

.diagnostics__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 1024px) {
  .diagnostics__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .diagnostics__intro,
  .diagnostics__media--wide {
    grid-column: span 2;
  }

  .diagnostics__card--compact,
  .diagnostics__card--tall,
  .diagnostics__media,
  .diagnostics__media img {
    min-height: 280px;
  }
}

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

  .diagnostics__intro,
  .diagnostics__media--wide {
    grid-column: auto;
  }

  .diagnostics__title {
    max-width: none;
    font-size: 1.75em;
  }
}

.advantages {
  padding-block: 3em;
}

.advantages__title {
  margin: 0 0 1.5em;
  font-size: 2em;
  line-height: 0.9;
  font-weight: 600;
  color: #191919;
}

.advantages__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.advantages__card {
  display: flex;
  flex-direction: column;
  gap: 1em;
  min-height: 100%;
  padding: 2em 1.5em;
  border-radius: 32px;
  background-color: #f0f6f6;
}

.advantages__icon {
  display: grid;
  place-content: center;
  width: 100%;
  height: auto;
}

.advantages__icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.advantages__card-title {
  margin: 0;
  font-size: 1.125em;
  line-height: 1.1;
  font-weight: 600;
  color: #191919;
}

.advantages__desc {
  margin: 0;
  font-size: 0.875em;
  line-height: 1.35;
  color: #191919;
}

.advantages__action {
  margin-top: auto;
  padding-top: 0.5em;
}

.advantages__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding-inline: 1.5em;
}

.advantages__btn svg {
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .advantages__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .advantages__title {
    font-size: 1.75em;
  }

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

.statsionar {
  padding-block: 3em;
}

.statsionar__banner {
  position: relative;
  overflow: hidden;
  min-height: 50em;
  border-radius: 32px;
  color: #fff;
}

.statsionar__media,
.statsionar__overlay {
  position: absolute;
  inset: 0;
}

.statsionar__media {
  background-color: #d9d9d9;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.statsionar__overlay {
  width: 34em;
  height: 34em;
  top: -30%;
  background-color: black;
  border-radius: 100%;
  filter: blur(333px);
}

.statsionar__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1em;
  max-width: 36em;
  padding-block: 4em;
}

.statsionar__title {
  margin: 0;
  font-size: 2em;
  line-height: 0.9;
  font-weight: 600;
}

.statsionar__subtitle {
  margin: 0;
  max-width: 28em;
  font-size: 1em;
  line-height: 1.35;
  font-weight: 500;
}

.statsionar__info {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  margin: 0.5em 0 0;
  max-width: 28em;
  font-size: 0.875em;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.92);
}

.statsionar__info svg {
  flex-shrink: 0;
}

.statsionar__reviews {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: -6em;
}

.statsionar__review {
  padding: 1.5em;
  border-radius: 24px;
  background-color: #fff;
  box-shadow: 0 4px 24px rgba(60, 138, 135, 0.12);
}

.statsionar__review-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1em;
  margin-bottom: 1em;
}

.statsionar__review-name {
  font-size: 1em;
  line-height: 1.2;
  font-weight: 600;
  color: #191919;
}

.statsionar__review-date {
  flex-shrink: 0;
  font-size: 0.75em;
  line-height: 1.2;
  color: #848484;
  white-space: nowrap;
}

.statsionar__review-text {
  margin: 0;
  font-size: 0.875em;
  line-height: 1.45;
  color: #191919;
}

@media (max-width: 1024px) {
  .statsionar__banner {
    min-height: 24em;
  }

  .statsionar__reviews {
    margin-top: -4em;
  }
}

@media (max-width: 768px) {
  .statsionar__banner {
    min-height: 20em;
    border-radius: 24px;
  }

  .statsionar__content {
    padding: 1.5em;
  }

  .statsionar__title {
    font-size: 1.75em;
  }

  .statsionar__reviews {
    grid-template-columns: 1fr;
    margin-top: -3em;
  }

  .statsionar__review-head {
    flex-direction: column;
    gap: 0.35em;
  }

  .statsionar__review-date {
    white-space: normal;
  }
}

.useful {
  padding-block: 3em;
}

.useful__title {
  margin: 0 0 1.5em;
  font-size: 2em;
  line-height: 0.9;
  font-weight: 600;
  color: #191919;
}

.useful__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2em 1.5em;
}

.useful__card {
  display: flex;
  flex-direction: column;
  gap: 1em;
  min-width: 0;
}

.useful__media {
  overflow: hidden;
  border-radius: 24px;
  aspect-ratio: 595 / 290;
  background-color: #d9d9d9;
}

.useful__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.useful__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1em;
  min-width: 0;
}

.useful__card-title {
  margin: 0;
  font-size: 1.125em;
  line-height: 1.2;
  font-weight: 600;
  color: #191919;
}

.useful__desc {
  margin: 0;
  font-size: 0.875em;
  line-height: 1.45;
  color: #191919;
}

.useful__action {
  margin-top: 0.25em;
}

.useful__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding-inline: 1.5em;
}

.useful__btn svg {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .useful__title {
    font-size: 1.75em;
  }

  .useful__grid {
    grid-template-columns: 1fr;
    gap: 2em;
  }
}

.contactform {
  padding-block: 3em;
}

.contactform__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.contactform__intro {
  position: relative;
  overflow: hidden;
  height: 100%;
  padding: 2em;
  border-radius: 32px;
  background-color: #f0f6f6;
}

.contactform__title {
  position: relative;
  z-index: 1;
  margin: 0;
  max-width: 11em;
  font-size: 2.5em;
  line-height: 0.9;
  font-weight: 600;
  color: #191919;
}

.contactform__desc {
  position: relative;
  z-index: 1;
  margin: 1em 0 0;
  max-width: 16em;
  font-size: 1em;
  line-height: 1.4;
  font-weight: 500;
  color: #191919;
}

.contactform__illustration {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 0;
  width: min(72%, 277px);
  pointer-events: none;
}

.contactform__illustration img {
  display: block;
  width: 100%;
  height: auto;
  transform: rotate(11deg);
  object-fit: contain;
}

.contactform__note {
  position: absolute;
  left: 2em;
  bottom: 2em;
  z-index: 1;
  margin: 0;
  max-width: 15em;
  font-size: 0.875em;
  line-height: 1.4;
  font-weight: 500;
  color: #a9a8a8;
}

.contactform__form {
  min-width: 0;
}

.contactform__form .wpcf7-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.contactform__form .wpcf7-form > p {
  margin: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.contactform__form .wpcf7-form > p:has(textarea),
.contactform__form .wpcf7-form > p:has(.wpcf7-submit),
.contactform__form .wpcf7-form > p:first-child,
.contactform__form .wpcf7-form > p.full,
.contactform__form .wpcf7-form > .full {
  grid-column: 1 / -1;
}

.contactform__form label {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 2px;
  min-height: 60px;
  padding: 8px 12px;
  border-radius: 12px;
  background-color: #f0f6f6;
  font-size: 0.875em;
  line-height: 1.25;
  font-weight: 500;
  color: #a9a8a8;
}

.contactform__form .contactform__label {
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

.contactform__form .wpcf7-form-control-wrap {
  display: block;
  margin-top: 0;
}

.contactform__form input[type="text"],
.contactform__form input[type="tel"],
.contactform__form input[type="email"],
.contactform__form input[type="date"],
.contactform__form input[type="time"],
.contactform__form select,
.contactform__form textarea {
  width: 100%;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #191919;
  font: inherit;
  font-size: 1em;
  font-weight: 600;
  line-height: 1.35;
}

.contactform__form textarea {
  min-height: 9.5em;
  resize: vertical;
}

.contactform__form p:has(textarea) label {
  min-height: 200px;
  position: relative;
  padding-bottom: 2em;
}

.contactform__form select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23a9a8a8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 1.5em;
}

.contactform__form .wpcf7-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  min-height: 46px;
  width: auto;
  padding: 15px 24px;
  border: 1px solid var(--accent-color);
  border-radius: 80px;
  background-color: var(--accent-color);
  color: #fff;
  font: inherit;
  font-size: 0.75em;
  font-weight: 600;
  cursor: pointer;
  transition: all 300ms;
}

.contactform__form[style*="--contactform-btn-icon"] .wpcf7-submit::after {
  content: "";
  width: 16px;
  height: 16px;
  background-image: var(--contactform-btn-icon);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

@media (hover: hover) {
  .contactform__form .wpcf7-submit:hover {
    background-color: #000;
    border-color: #000;
  }
}

.contactform__form .wpcf7-not-valid-tip {
  margin-top: 0.35em;
  font-size: 0.75em;
}

.contactform__form .wpcf7-response-output {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1em;
  border-radius: 12px;
}

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

  .contactform__intro {
    min-height: 24em;
  }

  .contactform__illustration {
    right: -1em;
    bottom: 1em;
    width: min(55%, 180px);
  }

  .contactform__note {
    position: relative;
    left: auto;
    bottom: auto;
    margin-top: 1.5em;
  }
}

@media (max-width: 768px) {
  .contactform__title {
    font-size: 1.75em;
  }

  .contactform__form .wpcf7-form {
    grid-template-columns: 1fr;
  }

  .contactform__form .wpcf7-form > p:has(textarea),
  .contactform__form .wpcf7-form > p:has(.wpcf7-submit),
  .contactform__form .wpcf7-form > p:first-child,
  .contactform__form .wpcf7-form > p.full,
  .contactform__form .wpcf7-form > .full {
    grid-column: auto;
  }
}

.licenses {
  padding-block: 3em;
}

.licenses__title {
  margin: 0 0 1.5em;
  font-size: 2em;
  line-height: 0.9;
  font-weight: 600;
  color: #191919;
}

.licenses__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5em;
}

.licenses__item {
  margin: 0;
  min-width: 0;
}

.licenses__link {
  display: block;
  transition: opacity 300ms;
}

@media (hover: hover) {
  .licenses__link:hover {
    opacity: 0.85;
  }
}

.licenses__item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 230 / 320;
  object-fit: contain;
}

@media (max-width: 1024px) {
  .licenses__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .licenses__title {
    font-size: 1.75em;
  }
}

.photogallery {
  padding-block: 3em;
}

.photogallery__title {
  margin: 0 0 1.5em;
  font-size: 2em;
  line-height: 0.9;
  font-weight: 600;
  color: #191919;
}

.photogallery__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5em;
}

.photogallery__item {
  min-width: 0;
}

.photogallery__figure {
  margin: 0;
}

.photogallery__link {
  display: block;
  cursor: zoom-in;
  transition: opacity 300ms;
}

@media (hover: hover) {
  .photogallery__link:hover {
    opacity: 0.92;
  }
}

.photogallery__link img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 230 / 320;
  object-fit: cover;
  border-radius: 16px;
}

@media (max-width: 1024px) {
  .photogallery__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .photogallery__title {
    font-size: 1.75em;
  }
}

.contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1em;
  padding-block: 3em;
}

@media (max-width: 480px) {
  .contact {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

.contact__title {
  margin-bottom: 1em;
}

.contact__list {
  margin-left: 0;
  padding-left: 0;
  font-size: 1.125em;
  list-style: none;
  margin-bottom: 2em;
}

.contact__button {
  display: block;
  width: fit-content;
}

.site-footer {
  background-color: #fff;
  color: #191919;
}

.site-footer__main {
  padding-block: 3em;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.15fr) repeat(4, minmax(0, 1fr));
  gap: 2em;
  align-items: start;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1em;
}

.site-footer__tagline {
  margin: 0;
  max-width: 16em;
  font-size: 0.875em;
  line-height: 1.35;
  color: #848484;
}

.site-footer__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding-inline: 1.5em;
}

.site-footer__btn svg {
  flex-shrink: 0;
}

.site-footer__col-title {
  margin: 0 0 1em;
  font-size: 1em;
  line-height: 1.2;
  color: #848484;
}

.site-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75em;
}

.site-footer__list a,
.site-footer__list span,
.site-footer__text {
  font-size: 0.875em;
  line-height: 1.35;
  font-weight: 600;
  color: #191919;
  text-decoration: none;
}

.site-footer__menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75em;
}

.site-footer__menu a {
  font-size: 0.875em;
  line-height: 1.35;
  font-weight: 600;
  color: #191919;
  text-decoration: none;
  text-transform: none;
}

@media (hover: hover) {
  .site-footer__menu a:hover,
  .site-footer__list a:hover {
    color: var(--accent-color);
  }
}

.site-footer__legal {
  border-top: 1px solid #e6e6e6;
  padding-block: 1.5em 2.5em;
}

.site-footer__warn {
  margin: 0 0 1em;
  font-size: 0.875em;
  line-height: 1.2;
  font-weight: 600;
  text-transform: uppercase;
  color: #191919;
}

.site-footer__copy {
  margin: 0;
  font-size: 0.75em;
  line-height: 1.45;
  color: #848484;
}

@media (max-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }
}

.doctors {
  padding-block: 3em;
}

.doctors__title {
  margin: 0 0 1.5em;
  font-size: 2em;
  line-height: 0.9;
  font-weight: 600;
  color: #191919;
}

.doctors__panel {
  padding: 0.5em;
  border-radius: 32px;
}

@media (min-width: 1024px) {
  .doctors__panel {
    background-color: #f0f6f6;
  }
}

.doctors__content {
  display: flex;
  flex-direction: column;
  gap: 1.5em;
}

.doctors__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.doctors__media {
  position: relative;
  min-height: 36.5em;
  border-radius: 24px;
  overflow: hidden;
}

.doctors__media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 36.5em;
  object-fit: cover;
  object-position: top center;
}

.doctors__badge {
  position: absolute;
  top: 2em;
  left: 2em;
  z-index: 1;
  padding: 0.95em 1.5em;
  border-radius: 80px;
  background-color: #f0f6f6;
  color: #191919;
  font-size: 0.75em;
  font-weight: 600;
  white-space: nowrap;
}

.doctors__action {
  position: absolute;
  right: 2em;
  bottom: 2em;
  z-index: 1;
}

.doctors__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding-inline: 1.5em;
}

.doctors__btn svg {
  flex-shrink: 0;
}

.doctors__body {
  display: flex;
  flex-direction: column;
  gap: 1em;
  min-width: 0;
}

.doctors__name {
  margin: 0;
  font-size: 1.125em;
  line-height: 1.1;
  font-weight: 600;
  color: #191919;
}

.doctors__desc {
  margin: 0;
  font-size: 0.875em;
  line-height: 1.35;
  color: #848484;
}

@media (max-width: 1024px) {
  .doctors__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }

  .doctors__media {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    min-height: 0;
    height: auto;
    overflow: visible;
  }

  .doctors__media img {
    grid-row: 1;
    grid-column: 1;
    height: auto;
    min-height: 28em;
    width: 100%;
    border-radius: 24px;
  }

  .doctors__badge,
  .doctors__action {
    position: static;
    grid-row: 1;
    grid-column: 1;
    z-index: 1;
  }

  .doctors__badge {
    align-self: start;
    justify-self: start;
    margin: 2em 0 0 2em;
  }

  .doctors__action {
    align-self: end;
    justify-self: end;
    margin: 0 2em 2em 0;
  }

  .doctors__media .doctors__body {
    grid-row: 2;
    margin-top: 1em;
  }
}

@media (max-width: 640px) {
  .doctors__title {
    font-size: 1.75em;
  }

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

  .doctors__media img {
    min-height: 24em;
  }

  .doctors__badge {
    margin: 1.25em 0 0 1.25em;
  }

  .doctors__action {
    margin: 0 1.25em 1.25em 0;
  }

  .doctors__badge,
  .doctors__action {
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
  }
}

@media (hover: hover) {
  .main-navigation a:hover {
    color: #cacaca !important;
  }
}

@media (max-width: 768px) {
  header .main-navigation,
  header .site-contacts__phone {
    display: none;
  }
}

.header-popup__open,
.site-popup__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25em;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  line-height: 0;
}

.site-popup__overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms ease;
}

.site-popup__overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.site-popup__panel {
  position: fixed;
  z-index: 110;
  display: flex;
  flex-direction: column;
  background: #fff;
  overflow: hidden;
}

.site-popup__panel--menu {
  top: 0;
  right: 0;
  width: min(100vw, 20rem);
  height: 100%;
  max-height: 100dvh;
  padding: 1.25em 1em 1.5em;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.12);
  transform: translateX(100%);
  transition: transform 300ms ease;
}

.site-popup__panel--menu.is-open {
  transform: translateX(0);
}

.site-popup__panel--form {
  top: 50%;
  left: 50%;
  width: min(calc(100vw - 2em), 28rem);
  max-height: calc(100dvh - 2em);
  padding: 1.25em 1em 1.5em;
  border-radius: 6px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translate(-50%, -48%);
  transition:
    opacity 300ms ease,
    transform 300ms ease;
}

.site-popup__panel--form.is-open {
  opacity: 1;
  transform: translate(-50%, -50%);
}

.site-popup__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  margin-bottom: 1.25em;
  flex-shrink: 0;
}

.site-popup__title {
  margin: 0;
  font-size: 1.125em;
  font-weight: 700;
  text-transform: uppercase;
}

.site-popup__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.site-popup__nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.site-popup__nav ul {
  display: flex;
  flex-direction: column;
  gap: 1.25em;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.875em;
}

.site-popup__nav a {
  display: block;
  text-decoration: none;
  color: inherit;
}

.site-popup__actions {
  margin-top: 1.5em;
  padding-top: 1.5em;
  border-top: 1px solid #e8e8e8;
  flex-shrink: 0;
}

.site-popup__actions .btn {
  display: block;
  width: 100%;
}

body.site-popup-open {
  overflow: hidden;
}

@media (min-width: 769px) {
  .header-popup,
  #popup-header-menu-overlay,
  #popup-header-menu-panel {
    display: none !important;
  }
}
