/* Главная: доработки v2.3 — карточки услуг с типом и ценой, карусели со стрелками,
   компактная галерея на телефоне, кнопки в «Как мы работаем», ссылки в FAQ. */

/* ---------- Карточки услуг ---------- */
.rd-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.rd-card__top .rd-card__icon { margin: 0; flex: 0 0 auto; }
.rd-card__badge { padding: 4px 10px; border-radius: 999px; font: 700 12px/1.3 'Montserrat', Arial, sans-serif; letter-spacing: .02em; white-space: nowrap; }
.rd-card__badge--service { background: #e6f0fa; color: #0b3a66; }
.rd-card__badge--department { background: #fdeaee; color: #a31235; }
.rd-card__badge--checkup { background: #e7f5ec; color: #1b6b3a; }
.rd-card__price { margin: auto 0 10px; padding-top: 8px; color: #003366; font: 800 16px/1.3 'Montserrat', Arial, sans-serif; }
.rd-card__price--ask { color: #6b7a89; font-weight: 600; font-size: 14px; }
.rd-card p { font-size: 14px; line-height: 1.5; }
.rd-card__more { margin-top: auto; }
.rd-card__price + .rd-card__more { margin-top: 0; }

/* Телефон: услуги в две колонки, карточка компактнее */
@media (max-width: 480px) {
    .rd-services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px; }
    .rd-card { padding: 14px 12px; border-radius: 12px; }
    .rd-card__top { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 8px; }
    .rd-card__icon { width: 38px; height: 38px; font-size: 1rem; }
    .rd-card__badge { font-size: 11.5px; padding: 3px 8px; }
    .rd-card h3 { font-size: 14.5px !important; line-height: 1.3; }
    .rd-card p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; }
    .rd-card__price { font-size: 14.5px; }
    .rd-card__more { font-size: 13px; }
}

/* ---------- Карусели (врачи, отзывы): до 900px — лента со свайпом и стрелками ---------- */
.rd-car { position: relative; }
.rd-car__btn { display: none; }
@media (max-width: 900px) {
    [data-rd-carousel] {
        display: flex !important; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 4px 2px 10px; margin-inline: -2px;
    }
    [data-rd-carousel]::-webkit-scrollbar { display: none; }
    [data-rd-carousel] > * { flex: 0 0 min(78%, 340px); scroll-snap-align: start; min-width: 0; }
    .rd-car__btn {
        display: inline-flex; align-items: center; justify-content: center; position: absolute; top: 42%; z-index: 3;
        width: 44px; height: 44px; border: 1px solid #c9d9e8; border-radius: 50%; background: #fff; color: #003366;
        box-shadow: 0 8px 22px #0a2a4a26; cursor: pointer; font-size: 15px; transition: opacity .2s, background .2s, color .2s;
    }
    .rd-car__btn:hover { background: #003366; color: #fff; }
    .rd-car__btn--prev { left: -6px; }
    .rd-car__btn--next { right: -6px; }
    .rd-car__btn[disabled] { opacity: 0; pointer-events: none; }
}
@media (max-width: 480px) { [data-rd-carousel] > * { flex-basis: 84%; } }

/* ---------- Галерея на телефоне: две колонки + «Показать ещё» ---------- */
@media (max-width: 480px) { .rd-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px; } }
.rd-gallery__item[hidden] { display: none; }
.rd-gallery__more { display: flex; justify-content: center; margin-top: 18px; }
.rd-gallery__more button { min-height: 46px; padding: 11px 26px; border: 2px solid #003366; border-radius: 999px; background: #fff; color: #003366; font: 700 14px/1.2 'Montserrat', Arial, sans-serif; cursor: pointer; }
.rd-gallery__more button:hover { background: #003366; color: #fff; }

/* ---------- «Как мы работаем»: кнопки ---------- */
.rd-steps__cta { margin-top: 34px; gap: 12px; flex-wrap: wrap; }
.rd-steps__cta .rd-btn i { margin-right: 6px; }

/* ---------- FAQ: связанные страницы ---------- */
.rd-faq__links { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; margin-top: 26px; color: #4f6273; font-size: 15px; }
.rd-faq__links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 9px 16px; border: 1px solid #c9d9e8; border-radius: 999px; background: #fff; color: #003366; font: 600 14px/1.2 'Montserrat', Arial, sans-serif; text-decoration: none; transition: background .2s, color .2s; }
.rd-faq__links a:hover { background: #003366; color: #fff; }
.rd-faq__links i { color: var(--accent, #cd163f); }
.rd-faq__links a:hover i { color: #fff; }
@media (max-width: 600px) { .rd-faq__links { flex-direction: column; align-items: stretch; text-align: center; } .rd-faq__links a { justify-content: center; } }

/* Элементы в карусели не ждут анимации появления (они вне экрана по горизонтали) */
@media (max-width: 900px) { [data-rd-carousel] > .rd-reveal { opacity: 1 !important; transform: none !important; } }

/* ---------- Цифры доверия ---------- */
.rd-stats-band { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0 0 clamp(28px, 4vw, 44px); border-radius: 20px; background: linear-gradient(135deg, #0b2f57 0%, #124b82 100%); color: #fff; box-shadow: 0 22px 48px #0b2f5733; overflow: hidden; }
.rd-stat2 { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 12px; text-align: center; }
.rd-stat2 + .rd-stat2::before { content: ''; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: #ffffff2e; }
.rd-stat2 i { color: #8fd3f2; font-size: 18px; margin-bottom: 4px; }
.rd-stat2 b { font: 800 clamp(30px, 4vw, 46px)/1 'Montserrat', Arial, sans-serif; letter-spacing: -.02em; }
.rd-stat2 span { color: #cfe2f1; font-size: 14px; line-height: 1.35; max-width: 18ch; }
@media (max-width: 720px) {
    .rd-stats-band { grid-template-columns: repeat(2, minmax(0, 1fr)); border-radius: 16px; }
    .rd-stat2 { padding: 16px 8px; }
    .rd-stat2:nth-child(3)::before { display: none; }
    .rd-stat2:nth-child(n+3) { border-top: 1px solid #ffffff22; }
}

/* ---------- Быстрый поиск ---------- */
.rd-find { max-width: 860px; margin: 0 auto clamp(24px, 3vw, 36px); }
.rd-find__form { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 20px; border: 2px solid #d6e4f0; border-radius: 18px; background: #fff; box-shadow: 0 14px 34px #0a2a4a14; transition: border-color .2s, box-shadow .2s; }
.rd-find__form:focus-within { border-color: #003366; box-shadow: 0 16px 40px #00336626; }
.rd-find__form > i { color: #526e80; font-size: 18px; }
.rd-find__form input { flex: 1 1 auto; min-width: 0; min-height: 48px; border: 0; outline: 0; background: transparent; color: #16314a; font: 500 16px/1.3 'Roboto', Arial, sans-serif; }
.rd-find__form .rd-btn { flex: 0 0 auto; margin: 0; padding: 13px 26px; }
.rd-find__chips { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; color: #6b7a89; font-size: 14px; }
.rd-find__chips a { padding: 7px 14px; border-radius: 999px; background: #eaf2f9; color: #0b3a66; font: 600 13.5px/1.2 'Montserrat', Arial, sans-serif; text-decoration: none; transition: background .2s, color .2s; }
.rd-find__chips a:hover { background: #003366; color: #fff; }
@media (max-width: 560px) {
    .rd-find__form { padding: 6px 6px 6px 14px; border-radius: 14px; }
    .rd-find__form .rd-btn { padding: 12px 16px; }
    .rd-find__form > i { display: none; }
}

/* ---------- Плотнее вертикальные отступы секций ---------- */
@media (min-width: 901px) { .rd-section { padding-block: clamp(48px, 5vw, 76px) !important; } }
@media (max-width: 900px) { .rd-section { padding-block: 40px !important; } }
.rd-head { margin-bottom: clamp(22px, 3vw, 34px); }

/* ---------- Врачи на главной: крупное фото сверху, без серой рамки ---------- */
.rd-doctor { padding: 0 !important; border: 0 !important; border-radius: 20px !important; overflow: hidden; background: #fff; text-align: left !important; align-items: stretch !important; box-shadow: 0 10px 28px #0a2a4a14, 0 0 0 1px #0a2a4a0a; }
.rd-doctor:hover { transform: translateY(-6px); box-shadow: 0 22px 44px #0a2a4a26, 0 0 0 1px #0a2a4a0f; }
.rd-doctor__media { display: block !important; width: 100% !important; height: auto !important; aspect-ratio: 4 / 4.9; margin: 0 !important; border-radius: 0 !important; background: linear-gradient(165deg, #eaf3f9, #d6e6f1) !important; overflow: hidden; }
.rd-doctor__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 8%; }
.rd-doctor__placeholder { width: 100%; height: 100%; display: grid; place-items: center; background: linear-gradient(150deg, #0b5a9e, #003366); color: #ffffffcc; font-size: 56px; }
.rd-doctor__info { padding: 16px 18px 6px !important; text-align: left !important; }
.rd-doctor__name { font: 700 17px/1.3 'Montserrat', Arial, sans-serif !important; color: #0b2f57 !important; }
.rd-doctor__role { margin-top: 6px; color: #5b6b7b !important; font: 400 14.5px/1.45 'Roboto', Arial, sans-serif !important; }
.rd-doctor__go { padding: 10px 18px 18px !important; color: var(--accent, #cd163f) !important; font: 700 14px/1.2 'Montserrat', Arial, sans-serif !important; }
