/* Compact mobile composition for the front page. Desktop styles remain untouched. */
@media (max-width: 768px) {
  .smd-home .home-hero,
  .smd-home .home-hero-slide,
  .smd-home .home-hero-bg,
  .smd-home .home-hero-overlay,
  .smd-home .home-hero-content {
    min-height: 480px;
  }

  .smd-home .home-hero-card {
    bottom: 16px;
    left: 50%;
    width: min(286px, calc(100% - 64px)) !important;
    max-width: min(286px, calc(100% - 64px)) !important;
    padding: 12px 14px;
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(31, 55, 86, .14);
    transform: translateX(-50%);
  }

  .smd-home .home-hero-slide.active .home-hero-card {
    transform: translateX(-50%);
  }

  .smd-home .home-hero-title {
    font-size: 16px;
    line-height: 1.12;
  }

  .smd-home .home-hero-subtitle {
    display: -webkit-box;
    margin-top: 9px;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .smd-home .home-hero-price {
    margin-top: 9px;
    font-size: 16px;
  }

  .smd-home .home-hero-btn {
    min-height: 39px;
    margin-top: 11px;
    padding: 9px 16px;
    border-radius: 12px;
    font-size: 11px;
  }

  .smd-home .home-hero-arrow {
    top: 44%;
    width: 40px;
    height: 40px;
  }

  .smd-home .home-intro {
    padding-top: 10px;
  }

  .smd-home .home-intro-card {
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(15, 48, 74, .14);
  }

  .smd-home .home-intro-col {
    padding: 14px 16px;
  }

  .smd-home .home-intro-col + .home-intro-col {
    border-top: 1px solid rgba(255, 255, 255, .22);
  }

  .smd-home .home-intro-head {
    margin-bottom: 8px;
  }

  .smd-home .home-intro-icon {
    width: 20px;
    height: 20px;
  }

  .smd-home .home-intro-title {
    font-size: 15px;
  }

  .smd-home .home-intro-text {
    display: -webkit-box;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .smd-home .home-intro-list {
    margin-top: 9px;
    gap: 5px;
  }

  .smd-home .home-intro-list a,
  .smd-home .home-intro-list > span {
    gap: 8px;
    font-size: 12.5px;
  }

  .smd-home .home-about,
  .smd-home .home-stats,
  .smd-home .home-departments,
  .smd-home .home-doctors,
  .smd-home .home-promotions,
  .smd-home .home-reviews,
  .smd-home .home-contact-banner,
  .smd-home .home-inquiry,
  .smd-home .home-contacts {
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .smd-home .home-about {
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .smd-home .home-about-grid {
    min-height: 0;
    gap: 12px;
  }

  .smd-home .home-about-text {
    padding: 12px 14px 0;
    font-size: 11.5px;
    line-height: 1.42;
  }

  .smd-home .home-about-title {
    margin-bottom: 10px;
    font-size: 19px;
  }

  .smd-home .home-about-copy p + p {
    margin-top: 6px;
  }

  .smd-home .home-about-btn {
    min-height: 40px;
    margin-top: 10px;
    padding: 0 18px;
    font-size: 12px;
  }

  .smd-home .home-about-media {
    height: 155px;
    min-height: 155px;
    max-height: 155px;
    overflow: hidden;
  }

  .smd-home .home-about-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .smd-home .home-stats {
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .smd-home .stats-card {
    border-radius: 16px;
  }

  .smd-home .stats-item {
    padding: 9px 12px;
  }

  .smd-home .stats-num {
    font-size: 26px;
  }

  .smd-home .stats-label {
    margin-top: 3px;
    font-size: 10.5px;
    line-height: 1.25;
  }

  .smd-home .doctors-grid > .doctor-card:nth-child(n + 9) {
    display: none;
  }

  .home-doctors-all {
    display: flex;
    width: 100%;
    min-height: 44px;
    margin-top: 14px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--smd-blue);
    border-radius: 999px;
    color: var(--smd-blue);
    font-size: 13px;
    font-weight: 800;
  }

  .smd-home .promotions-head {
    margin-bottom: 14px;
  }

  .smd-home .promotion-card {
    min-height: 270px;
    padding: 18px 18px 100px;
    border-radius: 18px;
  }

  .smd-home .promotion-card__badge {
    margin-bottom: 8px;
    padding: 5px 11px;
    font-size: 10px;
  }

  .smd-home .promotion-card__title {
    margin-bottom: 6px;
    font-size: 18px;
  }

  .smd-home .promotion-card__description {
    display: -webkit-box;
    margin-bottom: 9px;
    overflow: hidden;
    font-size: 12.5px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .smd-home .promotion-card__prices,
  .smd-home .promotion-card__special {
    margin-bottom: 10px;
  }

  .smd-home .promotion-card__price {
    font-size: 21px;
  }

  .smd-home .promotion-card__old-price {
    font-size: 14px;
  }

  .smd-home .promotion-card__button {
    min-height: 40px;
    padding: 10px 20px;
    font-size: 13px;
  }

  .smd-home .promotion-card__visual {
    right: 8px;
    bottom: -4px;
    width: 125px;
    height: 125px;
  }

  .smd-home .reviews-head {
    margin-bottom: 14px;
    gap: 10px;
  }

  .smd-home .reviews-title {
    margin-bottom: 6px;
  }

  .smd-home .reviews-subtitle {
    display: -webkit-box;
    overflow: hidden;
    font-size: 12.5px;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .smd-home .reviews-sources {
    width: calc(100% + 16px);
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-right: 16px;
    gap: 7px;
    scrollbar-width: none;
  }

  .smd-home .reviews-sources::-webkit-scrollbar {
    display: none;
  }

  .smd-home .review-source-chip {
    min-height: 34px;
    flex: 0 0 auto;
    padding: 6px 10px;
    font-size: 11px;
  }

  .smd-home .reviews-slider {
    padding: 0 36px;
  }

  .smd-home .review-card {
    min-height: 250px;
    padding: 17px 16px;
    border-radius: 16px;
  }

  .smd-home .review-card__top {
    margin-bottom: 9px;
  }

  .smd-home .review-card__avatar {
    width: 38px;
    height: 38px;
  }

  .smd-home .review-card__stars {
    margin-bottom: 7px;
  }

  .smd-home .review-card__text {
    display: -webkit-box;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.48;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 7;
  }

  .smd-home .reviews-arrow {
    width: 36px;
    height: 36px;
  }

  .smd-home .contact-banner {
    padding: 14px;
    gap: 9px;
    border-radius: 16px;
  }

  .smd-home .contact-banner__title {
    margin-bottom: 8px;
    font-size: 17px;
  }

  .smd-home .contact-banner__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 10px;
    gap: 5px 9px;
  }

  .smd-home .contact-banner__list li {
    padding-left: 13px;
    font-size: 10.5px;
    line-height: 1.35;
  }

  .smd-home .contact-banner__list li::before {
    top: 5px;
    width: 6px;
    height: 6px;
  }

  .smd-home .contact-banner__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .smd-home .contact-banner__button {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 9px 12px;
    font-size: 11.5px;
  }

  .smd-home .inquiry-grid {
    padding: 16px;
    gap: 12px;
  }

  .smd-home .inquiry-title {
    margin-bottom: 7px;
    font-size: 21px;
  }

  .smd-home .inquiry-note p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .smd-home .inquiry-benefits {
    margin-top: 12px;
    gap: 5px;
  }

  .smd-home .inquiry-benefits li {
    margin: 0;
    gap: 8px;
    font-size: 12px;
  }

  .smd-home .inquiry-benefits svg {
    width: 17px;
    height: 17px;
  }

  .smd-home .inquiry-form {
    padding: 13px;
    gap: 8px;
  }

  .smd-home .inquiry-form__title {
    font-size: 16px;
  }

  .smd-home .inquiry-form__submit {
    min-height: 44px;
  }

  .smd-home .home-contacts__subtitle {
    margin: 7px 0 14px;
    line-height: 1.45;
  }

  .smd-home .contacts-grid {
    gap: 12px;
  }

  .smd-home .contacts-card {
    padding: 11px;
    gap: 9px;
    border-radius: 16px;
  }

  .smd-home .contacts-list {
    gap: 7px;
  }

  .smd-home .contacts-item {
    padding: 9px;
    gap: 9px;
    border-radius: 12px;
  }

  .smd-home .contacts-item__icon {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    border-radius: 9px;
  }

  .smd-home .contacts-item__icon svg {
    width: 17px;
    height: 17px;
  }

  .smd-home .contacts-item__label {
    margin-bottom: 3px;
    font-size: 10px;
  }

  .smd-home .contacts-item__value {
    font-size: 12.5px;
    line-height: 1.4;
  }

  .smd-home .contacts-socials {
    margin-top: 0;
  }

  .smd-home .contacts-social {
    width: 38px;
    height: 38px;
  }

  .smd-home .contacts-map,
  .smd-home .contacts-map__embed,
  .smd-home .contacts-map__embed iframe,
  .smd-home .contacts-map__fallback {
    min-height: 240px;
  }
}

@media (min-width: 769px) {
  .home-doctors-all {
    display: none;
  }
}

@media (max-width: 360px) {
  .smd-home .home-hero-card {
    left: 50%;
    width: calc(100% - 54px) !important;
    max-width: calc(100% - 54px) !important;
  }
}
