/* ============================================================
   Sportmed — Home Redesign (серверная сборка)
   Токены стиля сайта: navy #003366, red #cd163f,
   Montserrat для заголовков, Roboto для текста.
   ============================================================ */

.rd-container {
    width: min(1200px, 100% - 2 * clamp(16px, 3vw, 28px));
    margin-inline: auto;
    min-width: 0;
    box-sizing: border-box;
}

.rd-section {
    padding: clamp(48px, 6vw, 88px) 0;
    position: relative;
}

/* ---------- Изоляция от старых виджетов Elementor ----------
   Обёртка виджета (elementor-widget-sport-*) наследует палитру и
   типографику СТАРЫХ виджетов плагина. Новый дизайн задаёт свои токены
   явно — старые стили не могут просочиться в секции ни на сайте,
   ни в редакторе. */
.rd-section {
    --rd-primary: #003366;
    --rd-accent: #cd163f;
    --rd-text: #2c3e50;
    --rd-muted: #576574;
    --rd-white: #fff;
    --rd-soft: #f4f7f9;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--rd-text);
}
.rd-section h1, .rd-section h2, .rd-section h3 {
    font-family: 'Montserrat', sans-serif;
}
.rd-section--soft { background: #f4f7f9; }
.rd-section--tint { background: linear-gradient(180deg, #f7fafc 0%, #eef4f9 100%); }

/* ---------- Маркер сборки в канве редактора ---------- */
.rd-preview-badge {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 9999;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(11, 47, 87, .92);
    color: #8fd3f2;
    font: 600 12px/1.3 'Roboto', sans-serif;
    letter-spacing: .02em;
    box-shadow: 0 10px 26px rgba(3, 18, 38, .3);
    pointer-events: none;
}

/* ---------- Заголовок секции ---------- */


.rd-head {
    text-align: center;
    max-width: 780px;
    margin: 0 auto clamp(30px, 4vw, 52px);
}
.rd-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #cd163f;
    margin-bottom: 14px;
}
.rd-eyebrow::before,
.rd-eyebrow::after {
    content: '';
    width: 26px;
    height: 2px;
    background: #cd163f;
    opacity: .55;
}
.rd-title {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    font-weight: 800;
    color: #003366;
    line-height: 1.2;
    margin: 0 0 16px;
    text-wrap: balance;
}
.rd-line {
    width: 80px;
    height: 4px;
    background: #cd163f;
    border-radius: 2px;
    margin: 0 auto;
}
.rd-sub {
    margin: 18px auto 0;
    color: #576574;
    font-size: clamp(.98rem, 1.4vw, 1.1rem);
    line-height: 1.7;
    max-width: 700px;
}
.rd-head--left { text-align: left; margin-inline: 0; }
.rd-head--left .rd-line { margin-inline: 0; }
.rd-head--left .rd-sub { margin-inline: 0; }

/* ---------- Кнопки ---------- */
.rd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    font-family: 'Montserrat', sans-serif;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none !important;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    min-height: 48px;
    transition: all .35s cubic-bezier(.165, .84, .44, 1);
    text-align: center;
}
.rd-btn--accent { background: #cd163f; color: #fff !important; border-color: #cd163f; }
.rd-btn--accent:hover { background: #a01232; border-color: #a01232; transform: translateY(-3px); box-shadow: 0 12px 24px rgba(205, 22, 63, .32); }
.rd-btn--outline { background: transparent; color: #003366 !important; border-color: #003366; }
.rd-btn--outline:hover { background: #003366; color: #fff !important; transform: translateY(-3px); }
.rd-btn--light { background: #fff; color: #003366 !important; border-color: #fff; }
.rd-btn--light:hover { background: #e6f0fa; border-color: #e6f0fa; transform: translateY(-3px); }
.rd-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: clamp(26px, 3vw, 38px);
}
.rd-actions--center { justify-content: center; }

/* ============================================================
   1. Полоса достижений — удалена с главной
   ============================================================ */

/* ============================================================
   2. Услуги — компактные карточки, их больше
   ============================================================ */
.rd-services__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(12px, 1.4vw, 18px);
}
.rd-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e6edf3;
    border-radius: 14px;
    padding: clamp(16px, 1.6vw, 22px);
    text-decoration: none !important;
    color: inherit;
    position: relative;
    overflow: hidden;
    transition: transform .4s cubic-bezier(.165, .84, .44, 1), box-shadow .4s ease, border-color .4s ease;
    min-width: 0;
}
.rd-card::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, #cd163f, #003366);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s ease;
}
.rd-card:hover {
    transform: translateY(-6px);
    border-color: #ffd7de;
    box-shadow: 0 18px 36px rgba(0, 51, 102, .13);
}
.rd-card:hover::before { transform: scaleX(1); }
.rd-card__icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: #e6f0fa;
    color: #003366;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-bottom: 14px;
    transition: background .35s ease, color .35s ease, transform .35s ease;
}
.rd-card:hover .rd-card__icon { background: #cd163f; color: #fff; transform: rotate(-6deg); }
.rd-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(.94rem, 1.1vw, 1.02rem);
    font-weight: 700;
    color: #003366;
    margin: 0 0 8px;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rd-card p {
    color: #576574;
    font-size: .84rem;
    line-height: 1.55;
    margin: 0 0 14px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rd-card__more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #cd163f;
}
.rd-card__more i { transition: transform .3s ease; }
.rd-card:hover .rd-card__more i { transform: translateX(5px); }

/* ============================================================
   3. Почему выбирают нас
   ============================================================ */
.rd-why__grid {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: clamp(28px, 4vw, 60px);
    align-items: center;
}
.rd-why__lead {
    color: #576574;
    font-size: 1.02rem;
    line-height: 1.75;
    margin: 18px 0 0;
}
.rd-why__features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(14px, 1.6vw, 22px);
}
.rd-feature {
    background: #fff;
    border: 1px solid #e6edf3;
    border-radius: 16px;
    padding: clamp(20px, 2.2vw, 28px);
    transition: transform .35s ease, box-shadow .35s ease;
    min-width: 0;
}
.rd-feature:hover { transform: translateY(-6px); box-shadow: 0 18px 38px rgba(0, 51, 102, .12); }
.rd-feature__icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: linear-gradient(135deg, #003366, #0055a5);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 16px;
}
.rd-feature:nth-child(2n) .rd-feature__icon { background: linear-gradient(135deg, #cd163f, #a01232); }
.rd-feature h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.06rem;
    font-weight: 700;
    color: #003366;
    margin: 0 0 8px;
}
.rd-feature p { color: #576574; font-size: .93rem; line-height: 1.6; margin: 0; }
.rd-why__badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
    padding: 12px 18px;
    background: #e6f0fa;
    border-left: 4px solid #cd163f;
    border-radius: 0 10px 10px 0;
    font-family: 'Montserrat', sans-serif;
    font-size: .87rem;
    font-weight: 700;
    color: #003366;
    line-height: 1.5;
}
.rd-why__badge i { color: #cd163f; font-size: 1.1rem; }

/* ============================================================
   4. О центре + видео
   ============================================================ */
.rd-about__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(28px, 4vw, 56px);
    align-items: center;
}
.rd-about__body p {
    color: #576574;
    font-size: 1rem;
    line-height: 1.75;
    margin: 0 0 14px;
}
.rd-about__list {
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
    display: grid;
    gap: 12px;
}
.rd-about__list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #2c3e50;
    font-size: .97rem;
    line-height: 1.6;
}
.rd-about__list i {
    color: #cd163f;
    margin-top: 4px;
    flex: 0 0 auto;
}
.rd-video {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background: #0f1c26;
    box-shadow: 0 26px 55px rgba(0, 34, 68, .3);
    aspect-ratio: 16 / 10;
    min-width: 0;
    transition: box-shadow .45s ease, transform .45s ease;
}
.rd-video video,
.rd-video img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #0f1c26;
}
.rd-video--poster > a {
    position: absolute;
    inset: 0;
    display: block;
}
/* Затемнение фото — лёгкое, только чтобы читалась подпись. */
.rd-video--poster > a::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 34, 68, .04), rgba(0, 34, 68, .2));
    transition: background .45s ease;
}
/* Без красного: при наведении фото мягко приближается, тень теплеет. */
.rd-video--poster > a img {
    transition: transform .8s cubic-bezier(.2, .7, .3, 1);
}
.rd-video--poster:hover > a img { transform: scale(1.06); }
.rd-video--poster:hover > a::after {
    background: linear-gradient(180deg, rgba(0, 34, 68, .02), rgba(0, 51, 102, .14));
}
.rd-video--poster:hover {
    box-shadow: 0 32px 66px rgba(0, 34, 68, .34);
}
.rd-video__play {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: linear-gradient(160deg, rgba(0, 34, 68, .55), rgba(0, 51, 102, .78));
    border: 0;
    cursor: pointer;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    transition: background .35s ease;
}
/* Без красного — только синий градиент и лёгкий подъём кнопки. */
.rd-video__play:hover { background: linear-gradient(160deg, rgba(0, 34, 68, .42), rgba(0, 51, 102, .72)); }
.rd-video__play span {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: #cd163f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    box-shadow: 0 10px 30px rgba(205, 22, 63, .5);
    transition: transform .3s ease;
}
.rd-video__play:hover span { transform: scale(1.09); }
.rd-video.is-playing .rd-video__play { display: none; }
.rd-video__caption {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 2;
    background: rgba(0, 34, 68, .82);
    color: #fff;
    font-size: .8rem;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 8px;
    pointer-events: none;
}
.rd-video.is-playing .rd-video__caption { display: none; }

/* ============================================================
   5. Врачи — компактные карточки с круглым аватаром
   ============================================================ */
.rd-doctors__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(12px, 1.5vw, 18px);
    align-items: stretch;
}
.rd-doctor {
    background: #fff;
    border: 1px solid #e6edf3;
    border-radius: 18px;
    padding: 22px 14px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none !important;
    color: inherit;
    transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
    min-width: 0;
}
.rd-doctor:hover {
    transform: translateY(-6px);
    border-color: #d6e3ee;
    box-shadow: 0 18px 38px rgba(0, 51, 102, .13);
}
.rd-doctor__media {
    position: relative;
    width: 104px;
    height: 104px;
    flex: 0 0 auto;
    border-radius: 50%;
    overflow: hidden;
    background: #dfe9f2;
    margin-bottom: 16px;
    box-shadow: 0 0 0 4px #eef4f9;
}
.rd-doctor__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform .5s cubic-bezier(.165, .84, .44, 1);
}
.rd-doctor:hover .rd-doctor__media img { transform: scale(1.07); }
.rd-doctor__placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: #9fb6c8;
}
.rd-doctor__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 100%;
    min-width: 0;
}
.rd-doctor__name {
    font-family: 'Montserrat', sans-serif;
    font-size: .95rem;
    font-weight: 700;
    color: #003366;
    margin: 0;
    line-height: 1.35;
    min-height: 2.7em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rd-doctor__role {
    color: #cd163f;
    font-size: .82rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.4;
    min-height: 1.4em;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rd-doctor__go {
    margin-top: 14px;
    padding-top: 12px;
    width: 100%;
    border-top: 1px solid #eef2f6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-family: 'Montserrat', sans-serif;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #003366;
}
.rd-doctor__go i { transition: transform .3s ease; }
.rd-doctor:hover .rd-doctor__go i { transform: translateX(5px); }
.rd-doctors__note {
    margin-top: clamp(24px, 3vw, 36px);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: linear-gradient(120deg, #003366, #002244);
    border-radius: 18px;
    padding: clamp(22px, 3vw, 34px) clamp(24px, 3.4vw, 42px);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.rd-doctors__note strong {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    font-weight: 800;
    margin-bottom: 6px;
}
.rd-doctors__note span { color: rgba(255, 255, 255, .78); font-size: .95rem; line-height: 1.6; }

/* ============================================================
   6. Как мы работаем — ровные линии между шагами
   ============================================================ */
.rd-steps {
    --rd-step-pad: clamp(24px, 2.4vw, 32px);
    --rd-step-gap: clamp(18px, 2vw, 26px);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--rd-step-gap);
    counter-reset: rd-step;
    position: relative;
}
.rd-step {
    background: #fff;
    border: 1px solid #e6edf3;
    border-radius: 16px;
    padding: var(--rd-step-pad) clamp(20px, 2vw, 26px);
    text-align: center;
    position: relative;
    transition: transform .35s ease, box-shadow .35s ease;
    min-width: 0;
}
.rd-step:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(0, 51, 102, .12); }
.rd-step__num {
    width: 62px;
    height: 62px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #cd163f, #a01232);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 8px #fff, 0 10px 24px rgba(205, 22, 63, .35);
    position: relative;
    z-index: 2;
}
/* Сплошная линия-коннектор: от кружка с номером к кружку следующего шага. */
.rd-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: calc(var(--rd-step-pad) + 30px);
    left: calc(50% + 31px);
    width: calc(100% + var(--rd-step-gap) - 62px);
    height: 3px;
    border-radius: 3px;
    background: linear-gradient(90deg, rgba(205, 22, 63, .55), rgba(0, 51, 102, .35));
    z-index: 1;
    pointer-events: none;
}
.rd-step h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.08rem;
    font-weight: 700;
    color: #003366;
    margin: 0 0 8px;
}
.rd-step p { color: #576574; font-size: .93rem; line-height: 1.65; margin: 0; }

/* ============================================================
   7. Отзывы
   ============================================================ */
.rd-reviews__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 26px);
}
.rd-review {
    background: #fff;
    border: 1px solid #e6edf3;
    border-radius: 18px;
    padding: clamp(24px, 2.6vw, 32px);
    display: flex;
    flex-direction: column;
    position: relative;
    margin: 0;
    transition: transform .35s ease, box-shadow .35s ease;
    min-width: 0;
}
.rd-review:hover { transform: translateY(-6px); box-shadow: 0 20px 42px rgba(0, 51, 102, .12); }
.rd-review::before {
    content: '\f10e';
    font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Pro';
    font-weight: 900;
    position: absolute;
    top: 22px;
    right: 24px;
    font-size: 2.4rem;
    color: #e6f0fa;
}
.rd-review__stars { color: #f5a623; font-size: .9rem; letter-spacing: 3px; margin-bottom: 14px; }
.rd-review__stars i { margin-right: 2px; }
.rd-review__text {
    color: #45525f;
    font-size: .97rem;
    line-height: 1.75;
    margin: 0 0 20px;
    flex: 1;
    position: relative;
    z-index: 1;
}
.rd-review__author {
    display: flex;
    align-items: center;
    gap: 14px;
    border-top: 1px solid #eef2f6;
    padding-top: 18px;
}
.rd-review__avatar {
    width: 50px;
    height: 50px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, #003366, #0055a5);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: .95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.rd-review__avatar img { width: 100%; height: 100%; object-fit: cover; }
.rd-review:nth-child(2) .rd-review__avatar { background: linear-gradient(135deg, #cd163f, #a01232); }
.rd-review__name {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: #003366;
    font-size: .98rem;
}
.rd-review__role { display: block; color: #5a6a7a; font-size: .85rem; margin-top: 3px; }

/* ============================================================
   8. Галерея
   ============================================================ */
.rd-gallery__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(10px, 1.4vw, 16px);
}
.rd-gallery__item {
    position: relative;
    padding: 0;
    border: 0;
    background: #dfe9f2;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4 / 3;
    min-width: 0;
    transition: transform .35s ease, box-shadow .35s ease;
}
.rd-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .5s cubic-bezier(.165, .84, .44, 1), filter .35s ease;
}
.rd-gallery__item::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Pro';
    font-weight: 900;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    background: rgba(0, 51, 102, .55);
    opacity: 0;
    transition: opacity .35s ease;
}
.rd-gallery__item:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(0, 51, 102, .18); }
.rd-gallery__item:hover img { transform: scale(1.08); }
.rd-gallery__item:hover::after { opacity: 1; }
.rd-gallery__item:nth-child(1),
.rd-gallery__item:nth-child(6) { grid-column: span 2; aspect-ratio: 8 / 3; }

/* Лайтбокс */
.rd-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(4, 14, 26, .93);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.rd-lightbox.is-open { display: flex; }
.rd-lightbox img {
    max-width: min(1100px, 92vw);
    max-height: 84vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 70px rgba(0, 0, 0, .6);
}
.rd-lightbox__btn {
    position: absolute;
    background: rgba(255, 255, 255, .12);
    border: 0;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .25s ease;
}
.rd-lightbox__btn:hover { background: rgba(255, 255, 255, .28); }
.rd-lightbox__close { top: 22px; right: 26px; }
.rd-lightbox__prev { left: 26px; top: 50%; transform: translateY(-50%); }
.rd-lightbox__next { right: 26px; top: 50%; transform: translateY(-50%); }
.rd-lightbox__btn::before {
    font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Pro';
    font-weight: 900;
    line-height: 1;
}
.rd-lightbox__close::before { content: '\f00d'; }
.rd-lightbox__prev::before { content: '\f053'; }
.rd-lightbox__next::before { content: '\f054'; }

/* ============================================================
   9. FAQ
   ============================================================ */
.rd-faq { max-width: 900px; margin-inline: auto; }
.rd-faq__item {
    background: #fff;
    border: 1px solid #e6edf3;
    border-radius: 14px;
    margin-bottom: 14px;
    overflow: hidden;
    transition: box-shadow .3s ease, border-color .3s ease;
}
.rd-faq__item.is-open { border-color: #ffd7de; box-shadow: 0 14px 32px rgba(0, 51, 102, .1); }
.rd-faq__q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: transparent;
    border: 0;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(.97rem, 1.3vw, 1.05rem);
    font-weight: 700;
    color: #003366;
    text-align: left;
    line-height: 1.5;
    min-height: 56px;
    transition: color .25s ease;
}
.rd-faq__q:hover { color: #cd163f; }
.rd-faq__icon {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e6f0fa;
    color: #003366;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    transition: transform .35s ease, background .35s ease, color .35s ease;
}
.rd-faq__item.is-open .rd-faq__icon {
    transform: rotate(180deg);
    background: #cd163f;
    color: #fff;
}
.rd-faq__a {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .35s ease;
}
.rd-faq__item.is-open .rd-faq__a { grid-template-rows: 1fr; }
.rd-faq__a > div { overflow: hidden; visibility: hidden; transition: visibility 0s linear .35s; }
.rd-faq__item.is-open .rd-faq__a > div { visibility: visible; transition-delay: 0s; }
.rd-faq__a p {
    margin: 0;
    padding: 0 24px 22px;
    color: #576574;
    font-size: .97rem;
    line-height: 1.75;
}

/* ============================================================
   10. CTA-баннер — удалён с главной
   ============================================================ */

/* ============================================================
   11. Контакты + форма + карта
   ============================================================ */
.rd-contacts__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: clamp(22px, 3vw, 36px);
    align-items: stretch;
}
.rd-form-card {
    background: #fff;
    border-radius: 22px;
    padding: clamp(26px, 3vw, 42px);
    box-shadow: 0 18px 45px rgba(0, 30, 60, .1);
    border: 1px solid #e6edf3;
    min-width: 0;
}
.rd-chips { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-bottom: 22px; }
.rd-chip {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: .9rem;
    color: #3d5166;
    line-height: 1.45;
    min-width: 0;
}
.rd-chip a { color: inherit; font-weight: 600; text-decoration: none !important; }
.rd-chip a:hover { color: #cd163f; }
.rd-chip__icon {
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: #e6f0fa;
    color: #003366;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
}
.rd-form-divider { height: 1px; background: #e8edf3; margin: 0 0 22px; }

/* Поля Contact Form 7 */
.rd-form-card .wpcf7 { margin: 0; }
.rd-form-card .wpcf7-form br { display: none; }
.rd-form-card .wpcf7-form > p,
.rd-form-card .scm-row-2 > p {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 0 0 16px;
}
.rd-form-card .wpcf7-form > p:last-of-type { margin-bottom: 0; }
.rd-form-card .scm-field-group { display: block; min-width: 0; }
.rd-form-card label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: .8rem;
    font-weight: 700;
    color: #1b2d3e;
    margin-bottom: 6px;
    letter-spacing: .02em;
}
.rd-form-card label span { color: #e63946; }
.rd-form-card .wpcf7-form-control-wrap { display: block; width: 100%; }
.rd-form-card input[type="text"],
.rd-form-card input[type="tel"],
.rd-form-card input[type="email"],
.rd-form-card input[type="date"],
.rd-form-card select,
.rd-form-card textarea {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #d1dae6;
    border-radius: 10px;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
    color: #1b2d3e;
    background: #f7f9fb;
    min-height: 48px;
    transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.rd-form-card textarea { min-height: 110px; resize: vertical; }
.rd-form-card input:focus,
.rd-form-card select:focus,
.rd-form-card textarea:focus {
    outline: none;
    border-color: #003366;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(0, 51, 102, .1);
}
.rd-form-card .wpcf7-submit {
    width: 100%;
    margin-top: 6px;
    background: #cd163f;
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 15px 24px;
    font-family: 'Montserrat', sans-serif;
    font-size: .9rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .3s ease, transform .3s ease, box-shadow .3s ease;
}
.rd-form-card .wpcf7-submit:hover { background: #a01232; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(205, 22, 63, .3); }
.rd-form-card .wpcf7-response-output {
    margin: 14px 0 0 !important;
    border: 0 !important;
    border-radius: 8px;
    padding: 10px 14px !important;
    font-size: .9rem;
}
.rd-form-card .wpcf7 form.sent .wpcf7-response-output { background: #e7f7ee; color: #137a43 !important; }
.rd-form-card .wpcf7 form.failed .wpcf7-response-output,
.rd-form-card .wpcf7 form.invalid .wpcf7-response-output { background: #fdecee; color: #b3261e !important; }

/* Карта */
.rd-map {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 1px solid #e6edf3;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 18px 45px rgba(0, 30, 60, .1);
}
.rd-map iframe {
    border: 0;
    width: 100%;
    flex: 1;
    min-height: 340px;
    display: block;
    background: #eef3f8;
}
.rd-map__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    background: #003366;
    color: #fff;
}
.rd-map__bar strong {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: .95rem;
    margin-bottom: 3px;
}
.rd-map__bar span { font-size: .85rem; color: rgba(255, 255, 255, .75); }
.rd-map__links { display: flex; gap: 10px; }
.rd-map__links a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, .12);
    color: #fff !important;
    text-decoration: none !important;
    font-size: .8rem;
    font-weight: 700;
    padding: 9px 14px;
    border-radius: 8px;
    transition: background .3s ease;
}
.rd-map__links a:hover { background: #cd163f; }

/* ============================================================
   Появление секций
   Включается классом rd-anim на <html> (его ставит плагин).
   Без JS/без класса — контент виден сразу.
   ============================================================ */
html.rd-anim .rd-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .6s ease, transform .6s cubic-bezier(.165, .84, .44, 1);
    transition-delay: var(--rd-delay, 0s);
}
html.rd-anim .rd-reveal.is-visible { opacity: 1; transform: none; }

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 1180px) {
    .rd-doctors__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1080px) {
    .rd-services__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .rd-reviews__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rd-review:last-child { grid-column: span 2; }
    .rd-gallery__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .rd-gallery__item:nth-child(1),
    .rd-gallery__item:nth-child(6) { grid-column: span 1; aspect-ratio: 4 / 3; }
    .rd-why__grid,
    .rd-about__grid,
    .rd-contacts__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
    .rd-doctors__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rd-services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rd-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
    .rd-step::after { display: none; }
}
@media (max-width: 767px) {
    .rd-services__grid,
    .rd-reviews__grid,
    .rd-steps,
    .rd-why__features { grid-template-columns: minmax(0, 1fr); }
    .rd-review:last-child { grid-column: auto; }
    .rd-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rd-form-card .wpcf7-form > p,
    .rd-form-card .scm-row-2 > p { grid-template-columns: minmax(0, 1fr); }
    .rd-doctors__note { flex-direction: column; align-items: flex-start; }
    .rd-step__num { box-shadow: 0 0 0 6px #fff, 0 8px 20px rgba(205, 22, 63, .35); }
    .rd-lightbox__prev { left: 10px; }
    .rd-lightbox__next { right: 10px; }
    .rd-map iframe { min-height: 280px; }
}
@media (max-width: 480px) {
    .rd-services__grid { grid-template-columns: minmax(0, 1fr); }
    .rd-doctors__grid { grid-template-columns: minmax(0, 1fr); }
    .rd-gallery__grid { grid-template-columns: minmax(0, 1fr); }
    .rd-actions .rd-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html.rd-anim .rd-reveal { opacity: 1; transform: none; transition: none; }
    .rd-card, .rd-doctor, .rd-step, .rd-review, .rd-feature, .rd-stat { transition: none; }
}
