/*
Theme Name: Reboot Child
Template: reboot
*/

/* ================================================================
   ВСЕ СТИЛИ ДЛЯ СТРАНИЦЫ
   ================================================================ */

/* ================================================================
   1. ОБЩИЕ СТИЛИ
   ================================================================ */
.section-china {
    padding: 30px 0;
}
.section-china--white {
    background: #ffffff;
}
/* .section-china--light {
    background: #f0f7ff;
} */
.section-china-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #1e293b;
}
.text-center {
    text-align: center;
}

/* Убираем лишние отступы у p внутри секций */
.section-china p {
    margin: 0 0 10px 0;
}
.section-china p:last-child {
    margin-bottom: 0;
}

/* ================================================================
   2. КНОПКИ (ГОЛУБОЙ)
   ================================================================ */
.btn-china {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    font-weight: 600;
    padding: 14px 40px;
    border-radius: 40px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.3);
    border: none;
    cursor: pointer;
    line-height: 1.2;
}
.btn-china:hover {
    background: #1d4ed8;
    transform: translateY(-3px);
    color: #fff;
    box-shadow: 0 12px 35px rgba(37, 99, 235, 0.4);
}
.btn-china-sm {
    padding: 10px 28px;
    font-size: 0.9rem;
}

.btn-china-white {
    display: inline-block;
    background: #ffffff;
    color: #2563eb;
    font-weight: 600;
    padding: 14px 40px;
    border-radius: 40px;
    text-decoration: none;
    border: 2px solid #ffffff;
    transition: all 0.3s ease;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    text-align: center;
    line-height: 1.2;
}
.btn-china-white:hover {
    background: transparent;
    color: #ffffff;
}

/* ================================================================
   3. ГЕРОЙ БЛОК (фото справа)
   ================================================================ */
.hero-china {
  /*  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 70%); */
    padding: 30px 0 80px;
}
.hero-grid {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}
.hero-content {
    flex: 1 1 50%;
}
.hero-content h1 {
    margin: 0 0 20px 0;
    line-height: 1.2;
}
.hero-content h1 .highlight {
    color: #2563eb;
    position: relative;
}
.hero-content h1 .highlight::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 100%;
    height: 6px;
    background: #93c5fd;
    opacity: 0.5;
    border-radius: 4px;
}
.hero-subtitle {
    margin: 0 0 30px 0;
    font-size: 1.2rem;
    color: #475569;
    line-height: 1.7;
}
.hero-buttons {
    margin: 0;
}
.hero-buttons .btn-china {
    margin: 0;
}
.hero-image {
    flex: 1 1 40%;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.2);
}
.hero-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ----- Мобильная версия героя ----- */
@media (max-width: 768px) {
    .hero-grid {
        flex-direction: column-reverse;
    }
    .hero-content {
        flex: 1 1 100%;
    }
    .hero-image {
        flex: 1 1 100%;
    }
}

/* ================================================================
   4. ПРЕИМУЩЕСТВА (3 в ряд)
   ================================================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 30px;
}
.feature-card {
    background: #f8fafc;
    padding: 35px 25px;
    border-radius: 24px;
    text-align: center;
    border: 1px solid #edf2f7;
    transition: all 0.3s ease;
}
.feature-card i {
    font-size: 2.5rem;
    color: #2563eb;
    margin-bottom: 15px;
    display: block;
}
.feature-card h4 {
    font-size: 1.15rem;
    margin: 0 0 10px 0;
    color: #1e293b;
}
.feature-card p {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
}
.feature-card:hover {
    transform: translateY(-6px);
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 15px 35px -12px rgba(37, 99, 235, 0.15);
}

/* ================================================================
   5. ВИДЕО БЛОК (видео справа, чуть больше)
   ================================================================ */
.video-section .row {
    display: flex;
    align-items: center;
    gap: 40px;
    flex-wrap: wrap;
}
.video-section .col-lg-6:first-child {
    flex: 1 1 45%;
}
.video-section .col-lg-6:last-child {
    flex: 1 1 45%;
}
.video-section .col-lg-6 p {
    margin: 0 0 12px 0;
}
.video-section .col-lg-6 p:last-child {
    margin-bottom: 0;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px -10px rgba(37, 99, 235, 0.15);
    background: #dbeafe;
    max-width: 640px;
    margin: 0 auto;
}
.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ----- Мобильная версия видео ----- */
@media (max-width: 768px) {
    .video-section .row {
        flex-direction: column;
    }
    .video-section .col-lg-6:first-child,
    .video-section .col-lg-6:last-child {
        flex: 1 1 100%;
    }
    .video-wrapper {
        max-width: 100%;
    }
}

/* ================================================================
   6. ЭТАПЫ (3 в ряд, по центру, выровненная высота)
   ================================================================ */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-top: 35px;
}
.step-card {
    background: #f1f5f9;
    padding: 40px 25px;
    border-radius: 28px;
    text-align: center;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.step-card:hover {
    background: #ffffff;
    border-color: #cbd5e1;
}
.step-number {
    display: inline-block;
    background: #2563eb;
    color: #fff;
    width: 56px;
    height: 56px;
    line-height: 56px;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 15px;
    flex-shrink: 0;
}
.step-number.green {
    background: #059669;
}
.step-number.purple {
    background: #7c3aed;
}
.step-card h4 {
    font-size: 1.2rem;
    margin: 0 0 15px 0;
    color: #1e293b;
}
.step-card .step-subtitle {
    display: block;
    font-size: 0.7rem;
    color: #10b981;
    margin-top: 2px;
}
.step-card .step-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.step-card strong {
    color: #2563eb;
}
.step-card p {
    margin: 4px 0;
    color: #475569;
}
.step-card br {
    display: none;
}
.step-card .step-text {
    display: block;
    margin: 4px 0;
}

/* ================================================================
   7. СЛАЙДЕР КЛИНИК
   ================================================================ */
.clinics-slider-wrapper {
    position: relative;
    max-width: 1000px;
    margin: 40px auto 0;
    overflow: hidden;
    border-radius: 30px;
    background: #ffffff;
    box-shadow: 0 15px 40px -12px rgba(37, 99, 235, 0.1);
}
.clinics-slider {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}
.clinic-slide {
    flex: 0 0 100%;
    min-height: 320px;
}
.clinic-card {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    background: #ffffff;
    border-radius: 30px;
    overflow: hidden;
    min-height: 340px;
}
.clinic-image {
    flex: 1 1 45%;
    min-height: 280px;
    background: #dbeafe;
}
.clinic-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.clinic-body {
    flex: 1 1 55%;
    padding: 35px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.clinic-body h3 {
    font-size: 1.8rem;
    margin: 0 0 5px 0;
    color: #0b2b24;
}
.clinic-location {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    font-size: 0.95rem;
    margin: 0 0 15px 0;
}
.clinic-location i {
    color: #2563eb;
}
.clinic-desc {
    color: #334155;
    margin: 0 0 18px 0;
    line-height: 1.7;
    font-size: 0.95rem;
}
.clinic-features {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin: 0 0 22px 0;
    font-size: 0.9rem;
}
.clinic-features span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.clinic-features i {
    color: #2563eb;
}
.clinic-body .btn-china-sm {
    align-self: flex-start;
    margin: 0;
}

/* ----- Навигация слайдера ----- */
.slider-nav {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 20px 0 10px;
}
.slider-nav button {
    background: #eef2f6;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 1.3rem;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1;
}
.slider-nav button:hover {
    background: #2563eb;
    color: #ffffff;
}
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding-bottom: 25px;
}
.slider-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 20px;
    border: none;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}
.slider-dots .dot.active {
    background: #2563eb;
    width: 32px;
}

/* ----- Мобильная версия слайдера ----- */
@media (max-width: 768px) {
    .clinic-card {
        flex-direction: column;
    }
    .clinic-image {
        flex: 1 1 100%;
        min-height: 200px;
    }
    .clinic-body {
        flex: 1 1 100%;
        padding: 25px;
    }
    .clinic-body h3 {
        font-size: 1.4rem;
    }
}

/* ================================================================
   8. ОТЗЫВЫ (3 в ряд, имена прижаты к низу)
   ================================================================ */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 35px;
    margin-top: 30px;
}
.review-card {
    background: #f8fafc;
    padding: 30px 28px;
    border-radius: 28px;
    border: 1px solid #edf2f7;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}
.review-card:hover {
    border-color: #b9d9d2;
    background: #ffffff;
}
.stars {
    color: #fbbf24;
    font-size: 1.3rem;
    letter-spacing: 3px;
    margin: 0 0 12px 0;
    flex-shrink: 0;
    line-height: 1;
}
.review-text {
    font-style: italic;
    color: #334155;
    margin: 0 0 18px 0;
    line-height: 1.7;
    flex: 1;
}
.review-author {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: auto;
    flex-shrink: 0;
}
.avatar {
    background: #2563eb;
    color: #fff;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.3rem;
    flex-shrink: 0;
}
.name {
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}
.city {
    font-size: 0.85rem;
    color: #64748b;
    margin: 0;
}

/* ================================================================
   9. ФОРМА CTA (по центру)
   ================================================================ */
.cta-china {
    background: #2563eb;
    padding: 60px 50px;
    border-radius: 40px;
    color: #ffffff;
    box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.4);
    max-width: 1100px;
    margin: 0 auto;
}
.cta-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
}
.cta-text {
    flex: 1 1 35%;
    min-width: 250px;
    text-align: center;
}
.cta-text h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0 0 15px 0;
}
.cta-text .cta-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    line-height: 1.6;
    margin: 0;
}
.cta-form {
    flex: 1 1 55%;
    min-width: 280px;
}
.cta-form .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    justify-content: center;
}
.cta-form .form-group {
    flex: 1 1 180px;
}
.cta-form .form-group label {
    display: block;
    font-size: 0.9rem;
    margin: 0 0 6px 0;
    color: #dbeafe;
}
.cta-form .form-control {
    width: 100%;
    padding: 12px 18px;
    border-radius: 30px;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-size: 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    box-sizing: border-box;
}
.cta-form .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}
.cta-form .form-control:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.25);
    border-color: #fcd34d;
}
.cta-form .btn-group {
    flex: 1 1 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.cta-form .btn-china-white {
    display: inline-block;
    background: #ffffff;
    color: #2563eb;
    font-weight: 600;
    padding: 14px 40px;
    border-radius: 40px;
    text-decoration: none;
    border: 2px solid #ffffff;
    transition: all 0.3s ease;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    text-align: center;
    max-width: 300px;
    box-sizing: border-box;
}
.cta-form .btn-china-white:hover {
    background: transparent;
    color: #ffffff;
}
.cta-form .form-check {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}
.cta-form .form-check input[type="checkbox"] {
    accent-color: #fcd34d;
    width: 18px;
    height: 18px;
    cursor: pointer;
    margin: 0;
}
.cta-form .form-check label {
    font-size: 0.9rem;
    cursor: pointer;
    margin: 0;
}
.cta-form .form-text {
    font-size: 0.85rem;
    opacity: 0.75;
    margin: 8px 0 0 0;
    text-align: center;
}

/* ----- Мобильная версия формы ----- */
@media (max-width: 768px) {
    .cta-china {
        padding: 30px 20px;
        border-radius: 30px;
    }
    .cta-grid {
        flex-direction: column;
    }
    .cta-text {
        flex: 1 1 100%;
    }
    .cta-form {
        flex: 1 1 100%;
    }
    .cta-text h2 {
        font-size: 1.8rem;
    }
    .cta-form .form-row {
        flex-direction: column;
    }
    .cta-form .form-group {
        flex: 1 1 100%;
    }
    .cta-form .btn-china-white {
        max-width: 100%;
    }
}

/* ================================================================
   10. АДАПТИВНОСТЬ (планшеты и телефоны)
   ================================================================ */
@media (max-width: 992px) {
    .features-grid,
    .steps-grid,
    .reviews-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .features-grid,
    .steps-grid,
    .reviews-grid {
        grid-template-columns: 1fr;
    }
    .section-china {
        padding: 30px 0;
    }
    .step-card {
        padding: 30px 20px;
    }
}

/* ================================================================
   11. УБИРАЕМ ЛИШНИЕ ОТСТУПЫ У ВЛОЖЕННЫХ ЭЛЕМЕНТОВ
   ================================================================ */

/* ----- Убираем лишние отступы у последних элементов ----- */
.section-china .container > *:last-child {
    margin-bottom: 0;
}

/* ----- Убираем отступы у кнопок внутри контейнеров ----- */
.hero-buttons,
.hero-buttons .btn-china,
.btn-china-sm,
.btn-china {
    margin: 0;
}

/* ----- Убираем лишние отступы у списков и абзацев внутри карточек ----- */
.feature-card *:last-child,
.review-card *:last-child,
.clinic-body *:last-child {
    margin-bottom: 0;
}
/* step-card *:last-child — УДАЛЯЕМ, ЧТОБЫ НЕ УБИРАТЬ ОТСТУПЫ В ЭТАПАХ */

/* ----- Убираем отступы у заголовков внутри карточек ----- */
.feature-card h4,
.step-card h4,
.clinic-body h3,
.review-card .name {
    margin-top: 0;
}

/* ----- Скрываем лишние br внутри карточек, если они есть ----- */
.feature-card br,
.review-card br,
.clinic-body br {
    display: none;
}
/* step-card br — НЕ СКРЫВАЕМ, ОСТАВЛЯЕМ */

/* ----- Убираем все псевдоэлементы в герое ----- */
.hero-content *::before,
.hero-content *::after {
    display: none;
}

.hero-content > p {
    display: none;
}

.hero-grid > p {
    display: none;
}

/* Убираем пустые p */
.hero-content p:empty,
.hero-grid p:empty {
    display: none;
}

/* Убираем p у которых нет содержимого */
.hero-content p:not(:has(*)) {
    display: none;
}

/* ----- Оставляем только подчеркивание у highlight ----- */
.hero-content h1 .highlight::after {
    display: block;
}

/* ----- Убираем отступы у всех внутренних элементов героя ----- */
.hero-content * {
    margin: 0;
}
.hero-content .hero-subtitle {
    margin: 0 0 30px 0;
}
.hero-content h1 {
    margin: 0 0 20px 0;
}

/* ----- Убираем псевдоэлементы у кнопок ----- */
.btn-china::before,
.btn-china::after,
.btn-china-white::before,
.btn-china-white::after {
    display: none;
}

/* ----- Убираем лишние отступы у p в секциях ----- */
.section-china p {
    margin: 0 0 10px 0;
}
.section-china p:last-child {
    margin-bottom: 0;
}

/* ----- Обнуляем отступы у всех элементов внутри карточек ----- */
.feature-card,
.step-card,
.review-card,
.clinic-body {
    padding: 0;
}
.feature-card {
    padding: 35px 25px;
}
.step-card {
    padding: 40px 25px;
}
.review-card {
    padding: 30px 28px;
}
.clinic-body {
    padding: 35px 40px;
}

/* ----- Убираем лишние отступы у списков ----- */
.feature-card ul,
.feature-card ol,
.step-card ul,
.step-card ol,
.review-card ul,
.review-card ol,
.clinic-body ul,
.clinic-body ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ----- Убираем лишние отступы у изображений в карточках ----- */
.feature-card img,
.step-card img,
.review-card img,
.clinic-body img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* ----- Убираем лишние отступы у форм ----- */
.cta-form .form-group {
    margin: 0;
}
.cta-form .form-control {
    margin: 0;
}
.cta-form .form-check {
    margin: 18px 0 0 0;
}
.cta-form .form-text {
    margin: 8px 0 0 0;
}

/* ----- Убираем лишние отступы у видео ----- */
.video-wrapper {
    margin: 0 auto;
}

/* ----- Убираем лишние отступы у слайдера ----- */
.clinics-slider-wrapper {
    margin: 40px auto 0;
}
.slider-nav {
    padding: 20px 0 10px;
}
.slider-dots {
    padding-bottom: 25px;
}