@import url('variables.css?v=b7df9c0');
@import url('reset.css?v=b7df9c0');
@import url('base.css?v=b7df9c0');
@import url('layout.css?v=b7df9c0');
@import url('components.css?v=b7df9c0');
@import url('footer.css?v=b7df9c0');

.china-recovery-page {
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--primary-purple) 9%, transparent), transparent 28%),
        linear-gradient(180deg, #fbfafc 0%, #ffffff 26%, #fcfbff 100%);
}

.china-recovery-hero {
    padding-top: 56px;
    padding-bottom: 40px;
}

.china-recovery-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
    gap: 48px;
    align-items: center;
}

.china-recovery-hero__meta {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.hero-meta-card {
    min-width: 180px;
    padding: 0 18px 0 0;
    border-right: 1px solid var(--border-gray);
}

.hero-meta-card:last-child {
    border-right: none;
    padding-right: 0;
}

.hero-meta-card__label {
    display: block;
    margin-bottom: 8px;
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-light);
}

.china-recovery-hero h1 {
    max-width: 620px;
    margin-bottom: 18px;
    font-size: clamp(2.6rem, 3vw, 3.6rem);
    line-height: 1.06;
}

.china-recovery-hero__desc {
    max-width: 560px;
    margin-bottom: 30px;
    font-size: var(--text-base);
    line-height: 1.75;
    color: var(--text-body);
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-actions .btn-secondary {
    display: inline-flex;
    align-items: center;
}

.hero-actions__helper {
    max-width: 180px;
    font-size: var(--text-xs);
    line-height: 1.5;
    color: var(--text-light);
}

.china-recovery-hero__visual {
    position: relative;
    min-height: 540px;
    padding: 8px 0 0 58px;
}

.hero-accent {
    position: absolute;
    top: 86px;
    left: 0;
    font-size: clamp(2.6rem, 5vw, 4.8rem);
    line-height: 0.95;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: rgba(175, 154, 114, 0.48);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    user-select: none;
    pointer-events: none;
}

.hero-visual-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 18px;
}

.hero-thumb,
.hero-main-image,
.lecture-image {
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(21, 18, 34, 0.1);
}

.hero-thumb img,
.hero-main-image img,
.lecture-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-thumb-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    text-align: center;
}

.hero-thumb-placeholder span {
    font-size: var(--text-sm);
    font-weight: 600;
    line-height: var(--leading-normal);
    color: rgba(38, 90, 214, 0.78);
    letter-spacing: 0.02em;
}

.hero-thumb--left {
    height: 154px;
    border-radius: 48px 20px 48px 20px;
}

.hero-thumb--right {
    height: 154px;
    border-radius: 20px 48px 20px 48px;
}

.hero-main-image {
    height: 342px;
    border-radius: 64px 28px 64px 28px;
}

.china-recovery-page .hero-thumb,
.china-recovery-page .hero-main-image {
    background:
        linear-gradient(135deg, rgba(38, 90, 214, 0.08), color-mix(in srgb, var(--primary-purple) 12%, transparent)),
        rgba(255, 255, 255, 0.92);
    border: 1px dashed rgba(38, 90, 214, 0.26);
}

.china-recovery-intro {
    padding-top: 30px;
    padding-bottom: 28px;
}

.section-copy {
    max-width: 860px;
    margin-bottom: 32px;
}

.section-copy h2 {
    margin-bottom: 14px;
    font-size: clamp(2rem, 2.3vw, 3rem);
}

.section-copy h3 {
    margin-bottom: 14px;
    font-size: var(--text-xl);
}

.section-copy p {
    font-size: var(--text-base);
    color: var(--text-body);
}

.intro-benefits {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.intro-benefit {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border: 1px solid color-mix(in srgb, var(--primary-purple) 10%, transparent);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-sm);
}

.intro-benefit i {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--bg-purple-light);
    color: var(--primary-purple);
    flex-shrink: 0;
}

.intro-benefit span {
    font-size: var(--text-sm);
    font-weight: 600;
    line-height: 1.45;
}

.china-recovery-details {
    padding-top: 34px;
}

.details-grid {
    display: grid;
    grid-template-columns: minmax(320px, 0.86fr) minmax(0, 1.14fr);
    gap: 30px;
    align-items: start;
}

.details-column {
    display: grid;
    gap: 24px;
}

.details-card {
    padding: 32px;
    border-radius: var(--radius-2xl);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid color-mix(in srgb, var(--primary-purple) 10%, transparent);
    box-shadow: 0 22px 45px rgba(17, 16, 24, 0.05);
}

.details-card h2,
.details-card h3 {
    margin-bottom: 12px;
}

.details-card p {
    color: var(--text-body);
}

.details-card__header {
    margin-bottom: 18px;
}

.stay-card {
    padding: 24px;
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, #ffffff 0%, #faf8ff 100%);
    border: 1px solid color-mix(in srgb, var(--primary-purple) 8%, transparent);
}

.stay-card__eyebrow {
    margin-bottom: 8px;
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-purple);
}

.stay-card__subtitle {
    margin-bottom: 18px;
}
/* Последней строке отступ снизу не нужен — его роль играет padding карточки,
   иначе под текстом набегает двойное поле. */
.stay-card__subtitle:last-child { margin-bottom: 0; }

.details-list {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.details-list li {
    position: relative;
    padding-left: 22px;
    color: var(--text-body);
    line-height: 1.55;
}

.details-list li::before {
    content: '';
    position: absolute;
    top: 9px;
    left: 0;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--primary-purple);
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--primary-purple) 12%, transparent);
}

.details-list--compact {
    margin-top: 18px;
}

.stay-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 28px;
}

.stay-card__price {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
}

html[lang="ru"] .stay-card__price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    text-align: right;
}

html[lang="ru"] .stay-card__price .current-price {
    color: var(--text-primary);
    font-size: var(--text-lg);
}

.school-logo-row {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 18px;
}

.school-logo-row img {
    width: 84px;
    height: 84px;
    flex-shrink: 0;
}

.school-logo-row span {
    display: block;
}

.school-logo-row__cn {
    margin-bottom: 4px;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.school-logo-row__en {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-light);
}

.details-card--program .accordion {
    margin-top: 10px;
}

.details-card--program .accordion-header {
    padding-top: 20px;
    padding-bottom: 20px;
    font-size: var(--text-sm);
    font-weight: 600;
    line-height: 1.55;
}

.details-card--program .accordion-content {
    font-size: var(--text-sm);
    color: var(--text-body);
}

.details-card--program .accordion-item.active .accordion-content {
    max-height: 520px;
}

.china-recovery-lecture {
    padding-top: 32px;
}

.lecture-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    gap: 36px;
    align-items: center;
}

.lecture-grid--single {
    grid-template-columns: minmax(0, 760px);
    justify-content: start;
}

.lecture-copy {
    position: relative;
    padding: 34px 36px;
    border-radius: 28px;
    background:
        radial-gradient(circle at top right, color-mix(in srgb, var(--primary-purple) 12%, transparent), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 246, 255, 0.98) 100%);
    border: 1px solid color-mix(in srgb, var(--primary-purple) 12%, transparent);
    box-shadow: 0 24px 48px rgba(26, 20, 43, 0.06);
}

.lecture-copy::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 0;
    width: 4px;
    height: 68px;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--primary-purple), #c7b6ff);
}

.lecture-copy__eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 14px;
    padding: 8px 12px;
    border-radius: 999px;
    background: var(--bg-purple-light);
    color: var(--primary-purple);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lecture-image {
    height: 430px;
    border-radius: 34px;
}

.lecture-copy h2 {
    margin-bottom: 14px;
}

.lecture-copy p + p {
    margin-top: 16px;
}

.lecture-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 26px;
}

.lecture-highlight {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid color-mix(in srgb, var(--primary-purple) 10%, transparent);
}

.lecture-highlight i {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--bg-purple-light);
    color: var(--primary-purple);
    flex-shrink: 0;
}

.lecture-highlight span {
    font-size: var(--text-sm);
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-primary);
}

.lecture-copy--plain {
    padding: 0;
    background: none;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.lecture-copy--plain::before {
    display: none;
}

.lecture-copy--plain .lecture-highlights {
    grid-template-columns: 1fr;
}

.lecture-copy--plain .lecture-highlight {
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
}

.lecture-slider {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(240, 240, 245, 0.6);
    border: 1px solid color-mix(in srgb, var(--primary-purple) 10%, transparent);
}

.lecture-slider__track {
    position: relative;
    width: 100%;
    height: 380px;
}

.lecture-slider__slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-fast);
}

.lecture-slider__slide.is-active {
    opacity: 1;
    visibility: visible;
}

.lecture-slider__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lecture-slider__slide .hero-thumb-placeholder {
    height: 100%;
    border-radius: 0;
}

/* Стрелок у слайдера нет: они перекрывали фото. Слайды меняются сами
   раз в 6 секунд, вручную — свайпом (см. src/js/lecture-slider.js). */

.china-recovery-cta {
    padding-top: 24px;
    padding-bottom: 70px;
}

.china-recovery-cta__box {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    padding: 34px 38px;
    border-radius: 28px;
    background: linear-gradient(120deg, #1b1b24 0%, #4c367d 100%);
    color: #fff;
    box-shadow: 0 28px 65px rgba(45, 32, 82, 0.24);
}

.china-recovery-cta__box h2,
.china-recovery-cta__box p {
    color: #fff;
}

.china-recovery-cta__box p {
    max-width: 560px;
    opacity: 0.88;
}

.china-recovery-cta__actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

@media (max-width: 1200px) {
    .china-recovery-hero__grid,
    .details-grid,
    .lecture-grid {
        grid-template-columns: 1fr;
    }

    .lecture-grid--single {
        grid-template-columns: 1fr;
    }

    .china-recovery-hero__visual {
        max-width: 760px;
        margin: 0 auto;
    }

    .intro-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .lecture-highlights {
        grid-template-columns: 1fr;
    }

    .china-recovery-cta__box {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .china-recovery-hero h1 {
        font-size: clamp(1.82rem, 5vw, 2.52rem);
    }

    .section-copy h2 {
        font-size: clamp(1.4rem, 2.3vw, 2.1rem);
    }

    .section-copy h3 {
        font-size: calc(var(--text-xl) * 0.7);
    }

    .china-recovery-hero {
        padding-top: 28px;
    }

    .china-recovery-hero__grid {
        gap: 32px;
    }

    .china-recovery-hero__meta {
        gap: 14px;
    }

    .hero-meta-card {
        min-width: 0;
        width: 100%;
        padding-right: 0;
        padding-bottom: 12px;
        border-right: none;
        border-bottom: 1px solid var(--border-gray);
    }

    .hero-meta-card:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-actions__helper {
        max-width: none;
    }

    .china-recovery-hero__visual {
        min-height: auto;
        padding-left: 0;
    }

    .hero-accent {
        display: none;
    }

    .hero-visual-top {
        gap: 12px;
    }

    .hero-thumb--left,
    .hero-thumb--right {
        height: 114px;
        border-radius: 24px 16px;
    }

    .hero-main-image {
        height: 260px;
        border-radius: 28px;
    }

    .intro-benefits {
        grid-template-columns: 1fr;
    }

    .details-card,
    .stay-card {
        padding: 22px;
    }

    .stay-card__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .stay-card__footer .btn {
        width: 100%;
    }

    .lecture-image {
        height: 280px;
        border-radius: 24px;
    }

    .lecture-copy {
        padding: 26px 22px 22px;
    }

    .china-recovery-cta__box {
        padding: 26px 22px;
    }

    .china-recovery-cta__actions {
        width: 100%;
        flex-direction: column;
    }

    .china-recovery-cta__actions .btn {
        width: 100%;
    }
}

/* ============================================
   China banner hero — same approach as .hero--bg-image on regular courses:
   <img> absolutely positioned to fill the card at its natural aspect ratio
   (1240/470), text overlays the empty left half. China-specific palette
   (cream/peach) and meta-cards (price + start) instead of pink pill badge.
   On mobile, the <img> reflows on top with object-fit: cover, text stacks below.
   ============================================ */
.china-banner-hero { padding: 24px 0 8px; }

.china-banner-hero .hero-card {
    position: relative;
    background-color: #fbe7dd;
    border-radius: 28px;
    overflow: hidden;
    aspect-ratio: 1240 / 470;
    min-height: 470px;
    max-width: 1240px;
    margin: 0 auto;
    isolation: isolate;
    display: block;
}

.china-banner-hero .hero-card__media {
    position: absolute;
    top: 0; right: 0; left: 0;
    width: 100%;
    height: auto;
    display: block;
    pointer-events: none;
    user-select: none;
    z-index: 0;
    object-fit: none;
}

.china-banner-hero .hero-card__content {
    position: relative;
    z-index: 1;
    max-width: 58%;
    padding: 40px 48px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    height: 100%;
}

.china-banner-hero .hero-meta {
    display: flex;
    gap: 28px;
    /* Ритм в .hero-card__content задаёт gap: 14px. Свои margin'ы у детей
       складывались с ним и растягивали шапку. */
    margin-bottom: 0;
}
.china-banner-hero .hero-meta__item { display: flex; flex-direction: column; gap: 6px; }
.china-banner-hero .hero-meta__item + .hero-meta__item {
    padding-left: 28px;
    border-left: 1px solid #e6c9b8;
}
.china-banner-hero .hero-meta__label { font-size: 13px; color: #6e5347; }
.china-banner-hero .hero-meta__value { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; color: #1c1d22; }

.china-banner-hero .hero-title {
    font-size: clamp(26px, 2.8vw, 38px);
    line-height: 1.12;
    letter-spacing: -0.015em;
    font-weight: 700;
    margin: 0;
    color: #1c1d22;
    max-width: 100%;
}

/* --wide variant — for courses with extra-long titles (acupuncture) so the
   title fits in fewer lines and the action buttons stay visible. Only adds
   horizontal room; everything else inherits from .china-banner-hero. */
.china-banner-hero--wide .hero-card__content {
    max-width: 68%;
}
.china-banner-hero--wide .hero-title {
    font-size: clamp(22px, 2.2vw, 30px);
    line-height: 1.15;
}
.china-banner-hero--wide .hero-desc {
    font-size: 12px;
}

.china-banner-hero .hero-desc {
    font-size: 13px;
    line-height: 1.45;
    color: #3b3c45;
    margin: 0;
    max-width: 46ch;
}

.china-banner-hero .hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
    margin-top: auto;
}

.china-banner-hero .hero-helper {
    font-size: 12px;
    line-height: 1.35;
    color: #6e5347;
    flex: 0 1 16ch;
    min-width: 0;
}

@media (max-width: 1024px) {
    .china-banner-hero .hero-card__content { padding: 32px 32px; max-width: 58%; gap: 12px; }
    .china-banner-hero .hero-title { font-size: clamp(22px, 3vw, 28px); }
    .china-banner-hero .hero-helper { display: none; }
}

@media (max-width: 900px) {
    .china-banner-hero .hero-helper { display: none; }
}

@media (max-width: 768px) {
    .china-banner-hero { padding: 16px 0 32px; }
    .china-banner-hero .hero-card {
        aspect-ratio: auto !important;
        background: transparent !important;
        border-radius: 0 !important;
        overflow: visible !important;
        padding: 0 !important;
        display: block !important;
        min-height: 0 !important;
        height: auto !important;
    }
    .china-banner-hero .hero-card__media {
        position: relative !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        inset: auto !important;
        width: 100% !important;
        height: 280px !important;
        border-radius: 24px !important;
        background-color: #fbe7dd !important;
        object-fit: cover !important;
        object-position: right center !important;
        display: block !important;
        margin: 0 0 20px 0 !important;
    }
    .china-banner-hero .hero-card__content {
        position: relative;
        max-width: 100%;
        padding: 0 4px;
        display: flex;
        flex-direction: column;
        gap: 14px;
        height: auto;
    }
    .china-banner-hero .hero-meta { width: 100%; flex-wrap: wrap; }
    .china-banner-hero .hero-actions { flex-wrap: wrap; margin-top: 0; }
    .china-banner-hero .hero-title { font-size: clamp(22px, 6vw, 28px); }
}

@media (max-width: 480px) {
    .china-banner-hero .hero-card__media { height: 240px; }
    .china-banner-hero .hero-meta { flex-wrap: wrap; gap: 14px; }
    .china-banner-hero .hero-meta__item + .hero-meta__item {
        padding-left: 0;
        border-left: 0;
        border-top: 1px solid #eadfe0;
        padding-top: 14px;
        width: 100%;
    }
}
