@media (max-width: 768px) {
  html {
    scroll-padding-top: calc(var(--header-top-h) + 58px);
  }

  main {
    overflow-wrap: break-word;
  }

  .site-header-top-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
  }

  .site-brand-lockup {
    min-width: 0;
  }

  .site-logo {
    width: clamp(104px, 27vw, 118px);
    aspect-ratio: auto;
    min-width: 0;
    flex: 0 1 auto;
  }

  .site-logo img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: none;
    object-fit: contain;
    object-position: left center;
  }

  .site-header-actions {
    min-width: 0;
    gap: 6px;
  }

  .service-nav-inner {
    max-height: calc(100dvh - var(--header-top-h) - env(safe-area-inset-bottom));
    overscroll-behavior: contain;
  }

  body.smd-mobile-menu-open .mobile-navigation,
  body.smd-appointment-open .mobile-navigation {
    transform: translateY(calc(100% + 8px));
    opacity: 0;
    pointer-events: none;
  }

  .prices-search__chips,
  .prices-filters,
  .doctors-filter-row,
  .doctor-anchor-nav__inner,
  .service-anchor-nav__inner {
    overscroll-behavior-x: contain;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .prices-search__chips::-webkit-scrollbar,
  .prices-filters::-webkit-scrollbar,
  .doctors-filter-row::-webkit-scrollbar,
  .doctor-anchor-nav__inner::-webkit-scrollbar,
  .service-anchor-nav__inner::-webkit-scrollbar {
    display: none;
  }

  .prices-search__chips,
  .prices-filters {
    width: calc(100% + 32px);
    margin-right: -16px;
    margin-left: -16px;
    padding-right: 16px;
    padding-left: 16px;
    flex-wrap: nowrap;
    overflow-x: auto;
  }

  .prices-search__chip,
  .prices-filter {
    min-height: 42px;
    flex: 0 0 auto;
  }

  .dentistry-slider-dot,
  .certificates-hero__dots button {
    position: relative;
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
  }

  .dentistry-slider-dot::after,
  .certificates-hero__dots button::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(15, 35, 52, .22);
    transform: translate(-50%, -50%);
    transition: width .2s ease, height .2s ease, background-color .2s ease;
  }

  .dentistry-slider-dot.active,
  .certificates-hero__dots button.is-active {
    background: transparent;
    transform: none;
  }

  .dentistry-slider-dot.active::after,
  .certificates-hero__dots button.is-active::after {
    width: 13px;
    height: 13px;
    background: var(--smd-text);
  }

  [data-mobile-swipe] {
    touch-action: pan-y;
    -webkit-user-select: none;
    user-select: none;
  }

  .appointment-modal {
    padding: 0;
    align-items: end;
  }

  .appointment-modal__dialog {
    width: 100%;
    max-height: min(86dvh, calc(100dvh - env(safe-area-inset-top)));
    padding: 16px 16px calc(12px + env(safe-area-inset-bottom));
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 24px 24px 0 0;
  }

  .appointment-modal__close {
    width: 36px;
    height: 36px;
  }

  .appointment-modal__field input,
  .appointment-modal__field textarea {
    min-height: 0;
    font-size: 16px;
  }

  .appointment-modal__field input {
    height: 42px;
  }

  .appointment-modal__field textarea {
    min-height: 46px;
  }

  .appointment-modal__submit {
    min-height: 46px;
  }
}

@media (max-width: 480px) {
  .site-logo {
    width: clamp(88px, 24vw, 96px);
  }

  .icon-btn,
  .header-account__toggle {
    min-width: 36px;
    width: 36px;
    height: 36px;
  }

  .burger {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 340px) {
  .site-header-actions .icon-btn.tg {
    display: none;
  }

  .site-logo {
    width: min(84px, 24vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  .prices-search__chips,
  .prices-filters,
  .doctor-anchor-nav__inner,
  .service-anchor-nav__inner {
    scroll-behavior: auto;
  }
}
