@media (max-width: 1023.98px) {
  :root {
    --container-padding-x: clamp(20px, calc(50vw - 140px), 40px);
  }
  html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: var(--mobile-header-height, 193px); }
  body { letter-spacing: .01em; overflow-x: clip; }
  .header { position: sticky; top: 0; z-index: 100; background: var(--color-light-alt); }
  main, main > *, .container, .flex > *, .grid > * { min-width: 0; }
  main img, main video, main iframe { max-width: 100%; }
  main p, main li, main td, main a, main h1, main h2, main h3,
  main h4, main h5, main h6, footer a { overflow-wrap: break-word; }
  button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
  .container { padding-inline: var(--container-padding-x); }
  .header__top_inner { padding-block: 8px; gap: 12px; }
  .header__logo { width: 130px; flex: 0 0 130px; }
  .header__info { gap: 0; }
  .header__bottom { padding-block: 16px 8px; }
  .header__bottom-text-block { margin-bottom: 24px; }
  .header__bottom-title, .header__bottom-text, .header__bottom-adress { font-size: 14px; line-height: 18px; }
  .header__bottom-title { line-height: 21px; }
  .header__bottom-btn-bar {
    display: grid !important; grid-template-columns: 87fr 73fr 112fr; gap: 4px;
  }
  .header__bottom-link { min-width: 0; min-height: 50px; padding: 8px 4px !important; }
  .header__bottom-link.is-dark { font-size: 14px; line-height: 18px; }
  .header__bottom-link:not(.is-dark) { font-size: 9px; line-height: 13px; }

  .burger-menu { max-height: 100vh; max-height: 100dvh; -webkit-overflow-scrolling: touch; }
  .burger-menu__top { min-width: 0; }
  .burger-menu .accordion__toggle { flex-shrink: 0; min-width: 28px; min-height: 40px; }

  .burger-menu__pages { margin-bottom: 8px; }
  .burger-menu__services { margin-bottom: 8px; }
  .burger-menu__pages > .accordion__header, .burger-menu__services > .accordion__header { min-height: 44px; padding-block: 0; }
  .burger-menu__services .burger-menu__list { padding-block: 12px; }
  .burger-menu__sections { display: grid; gap: 8px; }
  .burger-menu__sections a { display: flex; align-items: center; min-height: 44px; padding-inline: 15px; }
  .header__top_inner { position: relative; }
  .header-phone {
    position: absolute; top: calc(100% + 4px); right: var(--container-padding-x);
    z-index: 110; width: min(280px, calc(100vw - 40px)); padding: 8px;
    background: #fff; border: 1px solid #ddd; border-radius: 6px;
    box-shadow: 0 4px 16px #0002;
  }
  .header-phone[hidden] { display: none; }
  .header-phone a { display: block; padding: 14px 12px; font-size: 16px; line-height: 20px; }
  .proud-reviews__btn {
    width: 44px !important; min-width: 44px !important;
    height: 44px !important; min-height: 44px !important; padding: 10px; z-index: 2;
  }
  .proud-reviews__btn svg { width: 24px; min-width: 24px; height: 24px; flex-shrink: 0; }
  .proud-reviews__btn.prev { left: calc(-1 * var(--container-padding-x)); }
  .proud-reviews__btn.next { right: calc(-1 * var(--container-padding-x)); }

  .modal-overlay { padding: 16px; overflow-y: auto; overscroll-behavior: contain; }
  .modal-overlay__content {
    flex: 0 0 auto; width: min(100%, 500px); max-width: 500px;
    max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px);
    overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  }
  .modal-overlay__content .form { min-width: 0; }
  .modal-overlay__close { z-index: 2; }
  .video-modal__content { width: calc(100% - 32px); max-height: calc(100vh - 64px); }
  .video-modal__video { width: 100%; max-height: calc(100vh - 80px); object-fit: contain; }
  .video-modal__close { top: 8px; right: 8px; z-index: 2; padding: 10px; }
  .form input, .form textarea, .form select { max-width: 100%; min-width: 0; font-size: 16px; }
  .form__submit, .button { white-space: normal; overflow-wrap: break-word; }
  .send_form_payment .btn_payment_send {
    width: 100%; max-width: 100%; min-width: 0; margin-inline: 0;
    padding-inline: 16px; white-space: normal;
  }
  .table-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .process__name { display: block; height: auto; -webkit-line-clamp: unset; overflow: visible; }
  .footer-bottom__inner { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
}

@media (min-width: 767px) and (max-width: 1023.98px) {
  .process__name { min-height: 4.875em; }
}

@media (max-width: 767.98px) {
  body { font-size: 14px; line-height: 1.3; }
  h1, h2, h3, h4, .h1, .h2, .h3, .h4 { line-height: 1.3; letter-spacing: .01em; }
  h1, .h1, .article__title { font-size: 24px; }
  h2, .h2, h3, .h3 { font-size: 16px; }
  h4, .h4 { font-size: 14px; }
  .section { padding-block: 40px; }
  .section-mb-72 { margin-bottom: 40px; }
  .section__title { margin-bottom: 24px; font-size: 16px; line-height: 21px; }
  .button { min-height: 50px; font-size: 14px; line-height: 18px; }
  .breadcrumbs, .breadcrumb { font-size: 10px; line-height: 14px; }
  .breadcrumbs { margin-bottom: 24px; }
  .breadcrumbs__list, .breadcrumb__list { flex-wrap: wrap; }
  .banner__text-block { margin-bottom: 16px; }
  .banner__title {
    font-size: 40px;
    line-height: 52px; letter-spacing: .4px;
    word-break: normal; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto;
    hyphenate-limit-chars: 10 6 4;
    -webkit-hyphenate-limit-before: 6; -webkit-hyphenate-limit-after: 4;
  }
  .banner__title br { display: none; }
  .banner__title:not(:last-child), .banner__subtitle:not(:last-child) { margin-bottom: 8px; }
  .banner__subtitle { font-size: 18px; line-height: 23px; letter-spacing: .18px; }
  .banner__img-container { margin-bottom: 0; }
  .banner__img-container img { width: 100%; height: auto; object-fit: contain; }
  .banner__awards { padding: 0 25px; margin-top: -4px; }
  .banner__awards-img { width: 100%; max-width: 230px; margin: 0 auto 20px; }
  .banner__awards-text { font-size: 16px; line-height: 21px; margin-bottom: 8px; }
  .banner__list { margin-bottom: 20px; }
  .banner__link { width: 100%; }
  .banner__person, .banner__item { min-width: 0; }

  body[data-mobile-page="home"] main > .awards { padding-top: 16px; margin-bottom: 40px; }
  .dr-livshits { padding-top: 0; }
  .dr-livshits__title { font-size: 16px; line-height: 21px; margin-bottom: 24px; }
  .dr-livshits__content { display: flex; flex-direction: column; gap: 16px; align-items: stretch; }
  .dr-livshits__left { order: -1; width: 100%; }
  body[data-mobile-page="home"] .dr-livshits__left { display: flex; flex-direction: column; }
  body[data-mobile-page="home"] .dr-livshits__person {
    display: none !important;
  }
  .dr-livshits__info { gap: 0; }
  .dr-livshits__quote { max-width: 80%; margin-bottom: 24px; }
  .dr-livshits__quote h3 { font-size: 16px; line-height: 21px; }
  .dr-livshits__info-bottom { flex-direction: column-reverse !important; }
  .dr-livshits__video { width: 100%; aspect-ratio: 280 / 158; }
  .dr-livshits__video .video-play-btn.small-btn { left: 50%; width: 48px !important; height: 48px !important; }
  .dr-livshits__about { padding: 16px 14px; }
  .dr-livshits__name { font-size: 14px; line-height: 18px; }
  .dr-livshits__about p { font-size: 10px; line-height: 14px; }
  .dr-livshits__item { font-size: 14px; line-height: 18px; text-align: left !important; }
  .dr-livshits__item:not(:last-child) { margin-bottom: 16px; }

  .principles-operation { padding-block: 24px; }
  .principles-operation .section__title { margin-bottom: 32px; }
  .principles-operation__list, .principles-operation__list.row-5 {
    --row-gap: 8px; --column-gap: 8px;
    display: grid; grid-template-columns: 1fr; gap: 8px;
  }
  .principles-operation__item {
    display: flex; align-items: center; text-align: left; gap: 16px;
    padding: 8px 16px;
  }
  .principles-operation__icon {
    position: static; transform: none; translate: none;
    width: 32px !important; min-width: 32px !important; height: 32px !important; min-height: 32px !important;
  }
  .principles-operation__icon img { width: 28px !important; min-width: 28px !important; height: 28px !important; min-height: 28px !important; }
  .principles-operation__text-block { flex: 1; min-width: 0; }
  .principles-operation__name, .principles-operation__text { font-size: 14px; line-height: 16px; }
  .principles-operation__name { margin: 0; }
  .principles-operation__list.row-5 .principles-operation__text { display: block; text-align: left; }
  .principles-operation__text svg { width: 12px; height: 12px; }
  body[data-mobile-page="home"] .principles-operation { padding-block: 24px; }
  body[data-mobile-page="home"] .principles-operation .section__title { text-align: left; margin-bottom: 24px; }
  body[data-mobile-page="home"] .principles-operation__list { --row-gap: 24px; }
  body[data-mobile-page="home"] .principles-operation__item {
    padding: 0; align-items: flex-start; gap: 8px;
  }
  body[data-mobile-page="home"] .principles-operation__name { height: auto !important; margin-bottom: 8px; }

  .with-love-pluses__img-container { width: 100%; max-width: 100%; min-width: 0; flex-basis: auto; }

  .prices__item { padding: 16px 20px; gap: 16px; }
  .prices__name-wrapper { display: block; width: 100%; }
  .prices__name, .prices__about { display: block; padding: 0; }
  .prices__name { font-size: 16px; line-height: 21px; }
  .prices__about { font-size: 14px; line-height: 18px; }
  .prices__price { justify-content: center; flex-wrap: wrap; margin-right: 0 !important; }
  .prices__price h3:not(.prices__discount) { font-size: 20px; line-height: 26px; }
  .prices__link { width: 100%; }
  .prices__list { gap: 16px; }
  .prices__btn { min-width: 0; width: 100%; margin-top: 24px; }

  .person { margin-bottom: 24px !important; }
  .person__card { height: auto; gap: 8px; margin-bottom: 16px !important; }
  .person__info { min-height: 185px; height: auto; padding: 8px; }
  .person__text-block { min-height: 169px; gap: 6px; }
  .person__name { font-size: 14px; line-height: 17px; flex-grow: 0; margin-bottom: 0; }
  .person__text-block_bottom { display: flex; flex: 1; flex-direction: column; justify-content: space-between; gap: 8px; }
  .person__job, .person__experience { font-size: 12px; line-height: 16px; margin: 0 !important; }
  .person__right { width: 100%; min-width: 0; }
  .person__link { width: 100%; min-width: 0; margin: 0 !important; }
  .person > .button.w-250 { width: 100% !important; }
  .person__awards { margin: 24px 0 0 !important; gap: 8px; }
  .person__award { width: 100%; min-height: 72px; padding: 16px 82px 16px 16px; font-size: 14px; line-height: 18px; }
  .person__combined-award { width: 100%; margin-left: 0; }
  .person-list .review__left { flex-basis: auto; }
  .person-list .review__img { max-width: 72px; }
  .person-list .person__right { display: flex; flex-direction: column; gap: 16px; }
  .person-list .person__awards,
  .person-list .person__combined-award { order: -1; margin: 0 !important; }
  .person-list .person__review { top: 0; margin: 0; }
  .person-list .person__review-block.visible-mobile,
  .person-list .person__last-reception { display: none !important; }

  .about-doctor { padding-block: 0; }
  .about-doctor__inner {
    width: calc(100% - 2 * var(--container-padding-x)); padding: 16px;
    gap: 16px;
  }
  .about-doctor__card { width: 100%; padding: 16px; }
  .about-doctor__text { font-size: 14px; line-height: 19px; }
  .doctor-reviews { padding-block: 48px; }
  .doctor-reviews__title { margin-bottom: 24px; font-size: 18px; line-height: 21px; }
  .doctor-reviews__list { padding: 0 !important; margin-bottom: 24px; }

  .consultation__title {
    font-size: 18px; line-height: 23px; letter-spacing: .18px;
    padding: 16px;
  }
  .form { max-width: 100%; padding: 24px 16px; }
  .form__title { font-size: 16px; line-height: 21px; letter-spacing: .16px; text-align: center; }
  .form__about { font-size: 12px; line-height: 16px; text-align: center; }
  .form__info { font-size: 10px; line-height: 16px; letter-spacing: .1px; }
  .form:not(.is-small) .form__top, .form:not(.is-small) .form__inputs-block,
  .form.is-small .form__top, .form.is-small .form__inputs-block { margin-bottom: 32px; }
  .form .input__wrapper:not(:last-child) { margin-bottom: 16px; }
  .form__input { height: 45px; min-height: 45px; }
  .form__input::placeholder { font-size: 12px; letter-spacing: .12px; }
  .form__textarea { min-height: 100px; }
  .form__submit { min-height: 50px; margin-bottom: 16px; font-size: 14px; line-height: 18px; }
  .quote-general__title, .quote-general__subtitle { line-height: 1.3; }
  .quote-general__title { margin-bottom: 16px; }
  .quote-general__text { font-size: 14px; line-height: 18px; }
  .education__name { min-height: 0; font-size: 14px; line-height: 18px; }
  .education__text { font-size: 12px; line-height: 16px; }
  .article-content__content, .article__text { font-size: 14px; line-height: 1.5; }
  .article-content__content h2, .article-content__content h3 { font-size: 18px; line-height: 1.3; }
  .swiper { max-width: 100%; min-width: 0; }
  .swiper-wrapper > * { min-width: 0; }
  .swiper-slide img { max-width: 100%; }
  .team-dentists__img-container img { max-height: 100%; object-fit: contain; }
  .welcome__video img { object-fit: contain; }
  .footer-top__inner { padding-block: 10px 24px; }
  .footer-top__header { margin-bottom: 24px; }
  .footer__request { margin-bottom: 24px; padding-inline: 10px; }
  .footer-top__content { display: flex; flex-direction: column; gap: 24px; }
  .footer__title { margin-bottom: 20px; padding: 4px 10px; font-size: 16px; line-height: 21px; }
  .footer__list { gap: 0; }
  .footer__item { margin-bottom: 0; }
  .footer__link { padding: 16px 10px; font-size: 14px; line-height: 20px; }
  .footer-bottom__inner { padding-top: 16px; }
  .footer-bottom__content { line-height: 1.4; }
  .footer-bottom__text { font-size: 12px; line-height: 17px; }
  .footer-bottom .is-big { font-size: 16px; line-height: 22px; }
  .footer-bottom__content p + p { margin-top: 10px; }
  .footer__copyright { font-size: 12px; line-height: 17px; }
}

@media (min-width: 768px) and (max-width: 1023.98px) {
  body { font-size: 16px; line-height: 1.4; }
  .banner__title { font-size: 44px; line-height: 1.3; overflow-wrap: break-word; -webkit-hyphens: auto; hyphens: auto; }
  .banner__subtitle { font-size: 22px; line-height: 1.3; }
  .header__bottom_inner { max-width: 600px; }
  .burger-menu__inner { max-width: 760px; }
  .person__info { min-width: 0; }
  .person__text-block { min-width: 0; }
  .footer-top__content { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
}

@media (max-width: 359px) {
  .banner__title { font-size: 36px; line-height: 1.3; letter-spacing: .36px; }
  .header__top_inner { gap: 8px; }
  .header__bottom-link.is-dark { font-size: 13px; }
  .swiper-arrow.prev { left: -20px; }
  .swiper-arrow.next { right: -20px; }
  .swiper-arrow, .swiper-arrow svg { width: 20px; min-width: 20px; }
}

@media (max-width: 1023.98px) and (max-height: 500px) {
  .modal-overlay { align-items: flex-start; padding: 12px; }
  .modal-overlay__content { max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); margin: auto; }
}

@media (pointer: coarse) {
  .slider__input { touch-action: pan-y; }
}
.cookie-agreement { position: fixed; z-index: 99999; inset: auto 0 0; padding: 10px 16px max(10px, env(safe-area-inset-bottom)); color: #fff; background: #18afd3; }
.cookie-agreement__cnt { max-width: 1116px; margin: 0 auto; display: flex; align-items: center; gap: 16px; font-size: 14px; line-height: 1.4; }
.cookie-agreement__cnt p { flex: 1; }
.cookie-agreement__cnt a { color: #fff; text-decoration: underline; }
.cookie-agreement__btn { flex-shrink: 0; padding: 10px 15px; min-height: 44px; color: #fff; border: 1px solid #c0e5ee; border-radius: 5px; background: rgba(255, 255, 255, .4); cursor: pointer; }
.cookie-agreement__btn:hover { box-shadow: 0 0 5px #c0e5ee; }

.mobile-consultation, .links__caption { display: none; }
@media (max-width: 767.98px) {
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px) + var(--cookie-notice-height, 0px)); }
  main .container, footer .container { padding-right: max(var(--container-padding-x), calc(56px + env(safe-area-inset-right, 0px))); }
  .footer-bottom__inner { padding-bottom: 24px; }
  .mobile-consultation {
    display: block; position: fixed; z-index: 101; inset: auto 0 var(--cookie-notice-height, 0px);
    padding: 8px max(24px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(24px, env(safe-area-inset-left, 0px));
    background: #fff; box-shadow: 0 -2px 12px rgb(0 0 0 / 8%);
  }
  .mobile-consultation .button { width: 280px; max-width: 100%; min-height: 50px; margin-inline: auto; padding: 14px 15px; font-size: 14px; line-height: 22px; font-weight: 600; }
  .links {
    right: max(4px, env(safe-area-inset-right, 0px));
    bottom: calc(74px + env(safe-area-inset-bottom, 0px) + var(--cookie-notice-height, 0px));
    width: 44px; text-align: center;
  }
  .links__list { flex-direction: column; gap: 4px; }
  .links__link { width: 44px; height: 44px; justify-content: center; gap: 0; }
  .links__img { width: 36px; height: 36px; }
  .links__link:hover .links__img { transform: none; }
  .links__text { display: none; }
  .links__caption { display: block; padding-block: 2px; border-radius: 4px; background: #fff; color: #505050; font-size: 9px; line-height: 12px; letter-spacing: 0; }
  html.is-lock .links, html.is-lock .mobile-consultation, html.is-lock .cookie-agreement,
  body.modal-open .links, body.modal-open .mobile-consultation, body.modal-open .cookie-agreement,
  body.mobile-form-focused .links, body.mobile-form-focused .mobile-consultation, body.mobile-form-focused .cookie-agreement { visibility: hidden; pointer-events: none; }
}
