/* Страница комплексных программ — в одной системе с главной (style.css) */

.complex-page {
    padding: 80px 50px;
}

.complex-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.complex-hero-title {
    font-size: clamp(22px, 4vw, 32px);
    font-weight: 500;
    line-height: 1.2;
    text-transform: uppercase;
    margin-bottom: 40px;
    max-width: 500px;
}

.complex-stack {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ——— Крупная карточка программы ——— */
.complex-card-large {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    grid-template-rows: minmax(0, auto);
    column-gap: 28px;
    min-height: 350px;
    padding: 0;
    border-radius: 20px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.complex-card-large .complex-card__tag {
    z-index: 2;
}

/* Фото вне grid: по высоте карточки, шире «чистой» левой колонки — заходит под текст */
.complex-card-large .complex-card__person {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    height: 100%;
    z-index: 0;
    display: block;
    object-fit: cover;
    object-position: center bottom;
    pointer-events: none;
}

.complex-card-large .complex-card__main {
    grid-column: 1;
    grid-row: 1;
    position: relative;
    z-index: 1;
    padding: 40px 40px 40px 350px;
    min-width: 0;
}

.complex-card-large .complex-card__side {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    z-index: 1;
}

.complex-card-large--recovery {
    background-image: url('/assets/images/complex/recovery-bg.webp');
}

.complex-card-large--sleep {
    background-image: url('/assets/images/complex/sleep-bg.webp');
}

.complex-card-large--energy {
    background-image: url('/assets/images/complex/energy-bg.webp');
}

.complex-card-large--sport {
    background-image: url('/assets/images/complex/sport-bg.webp');
}

.complex-card-small--stress {
    background-image: url('/assets/images/complex/stress-bg.webp');
}

.complex-card-small--focus {
    background-image: url('/assets/images/complex/focus-bg.webp');
}

.complex-card__tag {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-pill);
}

.complex-card__visual {
    position: relative;
}

.complex-card__bg {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background-size: cover;
    background-position: center;
}

.complex-card__main {
    display: flex;
    flex-direction: column;
    gap: 30px;
    min-width: 0;
}

.complex-card-small .complex-card__main {
    padding: 40px;
}

.complex-card__title {
    font-size: clamp(20px, 2.5vw, 26px);
    font-weight: 500;
    line-height: 1.15;
    text-transform: uppercase;
    color: var(--complex-accent, var(--color-text));
}

.complex-card__title span {
    font-weight: 500;
    opacity: 0.95;
}

.complex-card-large--recovery .complex-card__title span {
    color: #25F796;
}

.complex-card-large--sleep .complex-card__title span {
    color: #5156BE;
}

.complex-card-large--energy .complex-card__title span {
    color: #F2BF80;
}

.complex-card-large--sport .complex-card__title span {
    color: #6EC9E8;
}

.complex-card-small--stress .complex-card__title span {
    color: #E44A4A;
}

.complex-card-small--focus .complex-card__title span {
    color: #6E8EBE;
}

.complex-card__lead {
    font-size: 16px;
    line-height: 140%;
    color: var(--color-text-muted);
    max-width: 80%;
}

.complex-card__block-title {
    font-size: 14px;
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: 10px;
}

.complex-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.complex-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px 8px 8px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.2;
}

.complex-pill img {
    width: 24px;
    aspect-ratio: 1/1;
}

.complex-card__result-text {
    font-size: 16px;
    line-height: 120%;
    color: var(--color-text-muted);
    max-width: 60%;
}

.complex-card__side {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: end;
    gap: 20px;
    padding: 40px;
}

.complex-deco {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
}

.complex-deco svg {
    width: 44px;
    height: 44px;
    color: var(--complex-accent);
    filter: drop-shadow(0 0 12px currentColor);
}

.complex-card__pricing {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--color-text);
}

.complex-card__pricing .price-old {
    color: var(--color-text-muted);
    text-decoration: line-through;
}

.complex-card__pricing .price-current {
    color: var(--color-text);
}

.complex-card__actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    max-width: 200px;
}

.complex-card-large .btn-primary {
    margin-top: 0;
    width: 100%;
    max-width: none;
    text-align: center;
    justify-content: center;
    background-color: var(--color-white);
    color: var(--color-text-dark);
}

.complex-card-large .btn-outline-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 13px 28px;
    margin: 0;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    text-align: center;
    text-decoration: none;
    color: #fff;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.95);
    border-radius: var(--radius-pill);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.complex-card-large .btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
    color: #fff;
}

.complex-card-large .btn-primary:hover {
    background-color: var(--color-white-hover);
}

/* ——— Ряд программ ——— */
.complex-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 24px;
}

.complex-card-small {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    background-size: cover;
}

.complex-pills--vertical {
    flex-direction: column;
    align-items: flex-start;
}

.btn-outline-light {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    color: var(--color-text);
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-pill);
    cursor: default;
    width: fit-content;
}

.complex-card-large .complex-card__side .complex-card__location {
    margin-top: 14px;
}

.complex-card__location {
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.72);
}

.complex-card__location-label {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
}

.complex-page .section-addresses--complex-page {
    margin-top: 56px;
}

.complex-disclaimer {
    margin-top: 48px;
    font-size: 12px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.55);
    max-width: 720px;
}

@media (max-width: 1024px) {
    .complex-card-large {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        background-position: left;
    }

    .complex-card-large .complex-card__person {
        position: relative;
        left: auto;
        top: auto;
        bottom: auto;
        object-position: center center;
        pointer-events: auto;
        max-width: 100%;
    }

    .complex-card-large .complex-card__main {
        grid-column: 1;
        grid-row: auto;
        padding: 40px 24px;
    }

    .complex-card-large .complex-card__side {
        grid-column: 1;
        grid-row: auto;
    }

    .complex-card-large .complex-card__main,
    .complex-card-large .complex-card__side {
        background: #252930;
    }

    .complex-row {
        grid-template-columns: 1fr;
    }

    .complex-card__side {
        justify-content: start;
        flex-direction: row-reverse;
        align-items: center;
        padding: 0 24px 40px;
        gap: 16px;
    }

    .complex-card__side .complex-card__actions,
    .complex-card__side .btn-primary {
        width: auto;
    }

    .complex-card__side .complex-card__actions {
        max-width: none;
        align-items: center;
    }

    .complex-card__lead,
    .complex-card__result-text {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .complex-page {
        padding: 40px 20px;
    }

    .complex-hero-title {
        margin-bottom: 28px;
    }

    .complex-card-large {
        padding: 0;
    }

    .complex-card-large .complex-card__main,
    .complex-card-large .complex-card__side {
        padding: 30px 20px;
        gap: 20px;
    }

    .complex-card-large .complex-card__side {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }
    .complex-card-large .complex-card__actions {
        max-width: 100%;
        width: 100%;
    }

    .complex-card-large .btn-primary,
    .complex-card-large .btn-outline-white {
        max-width: 100%;
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .complex-card-small .complex-card__main {
        padding: 24px;
    }

    .complex-card-large .complex-card__person {
        min-height: 250px;
    }
}
