/*about-page.css*/
/* ===================================
   СТРАНИЦА «О ЦЕНТРЕ»
   =================================== */

/* --- Хлебные крошки --- */
.about-hero .page-hero__breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--fz-sm);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-5);
}

.about-hero .page-hero__breadcrumb a {
    color: var(--color-primary);
    transition: color var(--transition-base);
}

.about-hero .page-hero__breadcrumb a:hover {
    color: var(--color-primary-dark);
}

.about-hero .page-hero__breadcrumb svg {
    color: var(--color-text-light);
    flex-shrink: 0;
}


/* --- HERO --- */
.about-hero {
    position: relative;
    padding: var(--space-12) 0 var(--space-20);
    background: var(--color-bg-blue);
    overflow: hidden;
}

.about-hero__bg-blob {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 60%;
    height: 140%;
    background: radial-gradient(ellipse at center,
    rgba(48, 166, 218, .14) 0%,
    rgba(5, 171, 242, .06) 50%,
    transparent 75%);
    filter: blur(60px);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: morphBlob 20s ease-in-out infinite alternate;
    pointer-events: none;
}

.about-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 760px;
}

.about-hero__eyebrow {
    display: inline-block;
    font-family: var(--font-heading), serif;
    font-size: var(--fz-sm);
    font-weight: var(--fw-bold);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    margin-bottom: var(--space-4);
}

.about-hero__title {
    font-family: var(--font-body), serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--color-text);
    margin-bottom: var(--space-6);
    letter-spacing: -0.02em;
}

.about-hero__title-accent {
    color: var(--color-accent);
}

.about-hero__lead {
    font-size: var(--fz-md);
    line-height: var(--lh-loose);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-8);
    max-width: 600px;
}

.about-hero__actions {
    display: flex;
    align-items: center;
    gap: var(--space-5);
}

/* --- МИССИЯ --- */
.about-mission {
    padding: var(--space-20) 0;
    background-color: var(--color-bg);
}

.about-mission__inner {
    display: grid;
    grid-template-columns: 0.9fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.about-mission__image-box {
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.about-mission__img {
    width: 100%;
    aspect-ratio: 6/5;
    object-fit: cover;
    display: block;
    background: linear-gradient(135deg, var(--color-primary-light), #c7d7fe);
}

.about-mission__text {
    font-size: var(--fz-base);
    line-height: var(--lh-loose);
    color: var(--color-text-secondary);
    margin-bottom: var(--space-4);
}

.about-mission__diagnoses {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    margin-top: var(--space-6);
}

.about-mission__diagnoses span {
    padding: var(--space-2) var(--space-4);
    background-color: var(--color-primary-light);
    color: var(--color-primary-darker);
    border-radius: var(--radius-full);
    font-size: var(--fz-sm);
    font-weight: var(--fw-medium);
}

/* --- МЕТОДЫ --- */
.about-methods {
    padding: var(--space-16) 0;
    background-color: var(--color-bg-section);
}

.about-methods__header {
    margin-bottom: var(--space-10);
}

.about-methods__grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    justify-content: flex-start;
    margin-top: var(--space-5);
}

.method-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-family: var(--font-heading), serif;
    font-size: 0.8rem;
    font-weight: var(--fw-medium);
    color: var(--color-text);
    box-shadow: var(--shadow-sm);
    white-space: nowrap;
    line-height: 1.2;
    transition: all var(--transition-base);
}

.method-chip:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-blue);
}

/* --- ЧТО МЫ ДЕЛАЕМ --- */
.about-do {
    position: relative;
    padding: var(--space-20) 0;
    background-color: var(--color-bg);
    overflow: hidden;
}

.about-do__bg-blob {
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 55%;
    height: 120%;
    background: radial-gradient(ellipse at center,
    rgba(48, 166, 218, .1) 0%,
    transparent 70%);
    filter: blur(50px);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    pointer-events: none;
    animation: morphBlob 22s ease-in-out infinite alternate-reverse;
}

.about-do__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    max-width: 1000px;
    margin-inline: auto;
    margin-top: var(--space-12);
}

.do-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-5);
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

/* --- ЧТО МЫ ДЕЛАЕМ: интерактивные карточки --- */
.do-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-5);
    background-color: var(--color-bg-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    text-decoration: none;
    isolation: isolate;
    transition: all var(--transition-base);
}

/* Фоновая картинка услуги */
.do-item__media {
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0;
    transform: scale(1.1);
    transition: opacity .5s ease, transform .6s ease;
    pointer-events: none;
}

.do-item__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Затемняющий градиент над картинкой, чтобы текст был читаем */
.do-item__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg,
    rgba(15, 23, 42, .82) 0%,
    rgba(15, 23, 42, .55) 55%,
    rgba(15, 23, 42, .25) 100%);
}

.do-item__icon {
    position: relative;
    z-index: 1;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: var(--color-white);
    transition: transform var(--transition-base);
}

.do-item__text {
    position: relative;
    z-index: 1;
    font-size: var(--fz-sm);
    font-weight: var(--fw-medium);
    color: var(--color-text);
    line-height: 1.35;
    margin: 0;
    flex: 1;
    transition: color var(--transition-base);
}

.do-item__arrow {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    color: var(--color-primary);
    opacity: 0;
    transform: translateX(-6px);
    transition: all var(--transition-base);
}

/* Hover-состояние */
.do-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
}

.do-item:hover .do-item__media {
    opacity: 1;
    transform: scale(1);
}

.do-item:hover .do-item__icon {
    transform: scale(1.08) rotate(-4deg);
}

.do-item:hover .do-item__text {
    color: var(--color-white);
}

.do-item:hover .do-item__arrow {
    opacity: 1;
    transform: translateX(0);
    color: var(--color-white);
}

.do-item:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

/* Небольшая пульсация иконки при наведении, чтобы блок казался «живым» */
.do-item__icon svg {
    transition: transform var(--transition-base);
}

.do-item:hover .do-item__icon svg {
    transform: scale(1.1);
}

/* Плавное появление подписи-стрелки со сдвигом текста */
.do-item:hover .do-item__text {
    transform: translateX(2px);
}

/* --- Кнопка "Все услуги центра" --- */
.about-do__cta {
    display: flex;
    justify-content: center;
    margin-top: var(--space-12);
    position: relative;
    z-index: 1;
}

.about-do__cta .btn {
    gap: var(--space-2);
}

.about-do__cta .btn svg {
    transition: transform var(--transition-base);
}

.about-do__cta .btn:hover svg {
    transform: translateX(3px);
}

/* --- Плавное появление карточек при скролле (если используется JS-класс .is-visible) --- */
.do-item {
    opacity: 0;
    transform: translateY(16px);
    animation: doItemFadeIn .6s ease forwards;
}

.do-item:nth-child(1) { animation-delay: .05s; }
.do-item:nth-child(2) { animation-delay: .1s; }
.do-item:nth-child(3) { animation-delay: .15s; }
.do-item:nth-child(4) { animation-delay: .2s; }
.do-item:nth-child(5) { animation-delay: .25s; }
.do-item:nth-child(6) { animation-delay: .3s; }

@keyframes doItemFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   АДАПТИВ ДЛЯ БЛОКА "ЧТО МЫ ДЕЛАЕМ"
   =================================== */
@media (max-width: 1024px) {
    .do-item {
        min-height: 96px;
    }
}

@media (max-width: 768px) {
    .do-item {
        padding: var(--space-4);
        min-height: 84px;
    }

    .do-item__icon {
        width: 38px;
        height: 38px;
    }

    .do-item__text {
        font-size: var(--fz-sm);
    }

    .do-item__arrow {
        width: 24px;
        height: 24px;
    }

    .about-do__cta {
        margin-top: var(--space-8);
    }

    .about-do__cta .btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .do-item {
        gap: var(--space-3);
    }
}

/* --- Уважение к настройкам пользователя --- */
@media (prefers-reduced-motion: reduce) {
    .do-item,
    .do-item__media,
    .do-item__icon,
    .do-item__icon svg,
    .do-item__text,
    .do-item__arrow,
    .about-do__cta .btn svg {
        transition: none;
        animation: none;
    }

    .do-item {
        opacity: 1;
        transform: none;
    }
}




/* --- КАК МЫ РАБОТАЕМ --- */
.about-process {
    padding: var(--space-20) 0;
    background-color: var(--color-bg-section);
}

.process-timeline {
    max-width: 760px;
    margin: var(--space-12) auto 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
    position: relative;
    padding-left: var(--space-8);
    border-left: 2px dashed var(--color-border);
}

.process-step {
    position: relative;
    display: flex;
    gap: var(--space-5);
}

.process-step__num {
    position: absolute;
    left: calc(-1 * var(--space-8) - 20px);
    top: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    color: var(--color-white);
    border-radius: var(--radius-full);
    font-family: var(--font-heading), serif;
    font-weight: var(--fw-bold);
    box-shadow: var(--shadow-blue);
}

.process-step__title {
    font-family: var(--font-heading), serif;
    font-size: var(--fz-lg);
    font-weight: var(--fw-bold);
    color: var(--color-text);
    margin-bottom: var(--space-2);
}

.process-step__text {
    font-size: var(--fz-sm);
    color: var(--color-text-secondary);
    line-height: var(--lh-normal);
    margin: 0;
}

/* --- CTA (в стиле doctors-cta) --- */
.about-cta {
    position: relative;
    background: var(--color-bg-blue);
    padding: var(--space-16) 0;
    overflow: hidden;
}

.about-cta__bg-blob {
    position: absolute;
    top: -30%;
    right: -10%;
    width: 60%;
    height: 160%;
    background: radial-gradient(ellipse at center,
    rgba(48, 166, 218, .14) 0%,
    rgba(5, 171, 242, .06) 50%,
    transparent 70%
    );
    filter: blur(60px);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: morphBlob 20s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

.about-cta > .container {
    position: relative;
    z-index: 1;
}

.about-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-10);
    flex-wrap: wrap;
}

.about-cta__text {
    flex: 1;
    min-width: 260px;
}

.about-cta__title {
    font-family: var(--font-body), serif;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
    font-weight: 400;
    color: var(--color-text);
    line-height: 1.2;
    margin-bottom: var(--space-3);
}

.about-cta__subtitle {
    font-size: var(--fz-md);
    color: var(--color-text-secondary);
    line-height: var(--lh-normal);
    max-width: 480px;
    margin: 0;
}

.about-cta__actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-shrink: 0;
    flex-wrap: wrap;
}

.about-cta .btn--primary svg {
    transition: transform var(--transition-base);
}

.about-cta .btn--primary:hover svg {
    transform: translateX(3px);
}

@media (max-width: 1024px) {
    .about-cta__inner {
        flex-direction: column;
        text-align: center;
    }

    .about-cta__subtitle {
        margin-inline: auto;
    }

    .about-cta__actions {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .about-cta {
        padding: var(--space-10) 0;
    }

    .about-cta__inner {
        flex-direction: column;
        text-align: center;
    }

    .about-cta__actions {
        justify-content: center;
        flex-direction: column;
        width: 100%;
    }

    .about-cta__actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===================================
   АДАПТИВ
   =================================== */
@media (max-width: 1024px) {
    .about-mission__inner {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }

    .about-do__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .about-hero {
        padding: var(--space-8) 0 var(--space-8);
    }

    .about-hero__lead {
        margin-bottom: var(--space-4); /* было var(--space-8) */
    }

    .about-hero__title {
        margin-bottom: var(--space-4);
    }

    .about-do__grid {
        grid-template-columns: 1fr;
    }

    .process-timeline {
        padding-left: var(--space-6);
    }

    .process-step__num {
        left: calc(-1 * var(--space-6) - 16px);
        width: 32px;
        height: 32px;
        font-size: var(--fz-sm);
    }

    .about-cta__box {
        padding: var(--space-10) var(--space-5);
    }

    .about-methods__grid {
        gap: var(--space-1);
    }

    .method-chip {
        font-size: 0.7rem;
        padding: 5px 10px;
    }
}

/* --- Фоновая иллюстрация HERO --- */
.about-hero__image {
    position: absolute;
    top: 0;
    right: 0;
    width: 46%;
    height: 100%;
    z-index: 0;
    pointer-events: none;

    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.6) 30%, black 55%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.6) 30%, black 55%);
}

.about-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* --- Фоновая иллюстрация HERO --- */
.about-hero__image {
    position: absolute;
    top: 0;
    right: 0;
    width: 46%;
    height: 100%;
    z-index: 0;
    pointer-events: none;

    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.6) 30%, black 55%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.6) 30%, black 55%);
}

.about-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

@media (max-width: 768px) {
    .about-hero__image {
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 100%;
        opacity: 0.4;

        -webkit-mask-image: none;
        mask-image: none;
    }

    .about-hero__image img {
        object-position: center;
    }
}

/* --- СЛАЙД-ШОУ ДОКТОРОВ (замена картинки в блоке миссии) --- */
.doctors-slideshow {
    position: relative;
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, var(--color-primary-light), #c7d7fe);
}

.about-mission__cta {
    margin-top: var(--space-8);
}

.doctors-slideshow__loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid rgba(255,255,255,.4);
    border-top-color: var(--color-white);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.doctors-slideshow__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    filter: blur(18px);
    transform: scale(1.06);
    transition: opacity 1.3s ease, filter 1.3s ease, transform 1.6s ease;
    pointer-events: none;
    z-index: 1;
}

.doctors-slideshow__slide.active {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
    z-index: 2;
    pointer-events: auto;
}

.doctors-slideshow__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.doctors-slideshow__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
    rgba(15, 23, 42, .85) 0%,
    rgba(15, 23, 42, .15) 55%,
    transparent 75%);
}

.doctors-slideshow__info {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: var(--space-6);
    color: var(--color-white);
    z-index: 2;
}

.doctors-slideshow__name {
    font-family: var(--font-heading), serif;
    font-size: var(--fz-lg);
    font-weight: var(--fw-bold);
    margin-bottom: 2px;
    line-height: 1.25;
}

.doctors-slideshow__role {
    font-size: var(--fz-sm);
    opacity: 0.9;
}

.doctors-slideshow__dots {
    position: absolute;
    bottom: var(--space-5);
    right: var(--space-5);
    display: flex;
    gap: 6px;
    z-index: 3;
}

.doctors-slideshow__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .45);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all .3s ease;
}

.doctors-slideshow__dot:hover {
    background: rgba(255, 255, 255, .7);
}

.doctors-slideshow__dot.active {
    background: var(--color-white);
    width: 20px;
    border-radius: 3px;
}

@media (max-width: 768px) {
    .doctors-slideshow__info {
        padding: var(--space-4);
    }

    .doctors-slideshow__name {
        font-size: var(--fz-base);
    }

    .doctors-slideshow__dots {
        bottom: var(--space-4);
        right: var(--space-4);
    }
}


/* ===================================
   ФОНОВЫЕ ПЯТНА (в стиле главной страницы)
   =================================== */

/* --- МИССИЯ --- */
.about-mission {
    position: relative;
    overflow: hidden;
}

.about-mission > .container {
    position: relative;
    z-index: 1;
}

.about-mission__bg-blob {
    position: absolute;
    top: -25%;
    left: -15%;
    width: 55%;
    height: 130%;
    background: radial-gradient(ellipse at center,
    rgba(48, 166, 218, .12) 0%,
    rgba(5, 171, 242, .05) 50%,
    transparent 70%);
    filter: blur(55px);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: morphBlob 20s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}

.about-mission__bg-blob--accent {
    top: auto;
    left: auto;
    bottom: -20%;
    right: -10%;
    width: 45%;
    height: 100%;
    background: radial-gradient(ellipse at center,
    rgba(5, 171, 242, .1) 0%,
    transparent 70%);
    animation: morphBlob 24s ease-in-out infinite alternate-reverse;
}

/* --- ЧТО МЫ ДЕЛАЕМ (доп. пятно) --- */
.about-do > .container {
    position: relative;
    z-index: 1;
}

.about-do__bg-blob--accent {
    top: -15%;
    right: -10%;
    left: auto;
    bottom: auto;
    width: 40%;
    height: 90%;
    background: radial-gradient(ellipse at center,
    rgba(48, 166, 218, .08) 0%,
    transparent 70%);
    filter: blur(50px);
    animation: morphBlob 19s ease-in-out infinite alternate;
}

/* --- КАК МЫ РАБОТАЕМ --- */
.about-process {
    position: relative;
    overflow: hidden;
}

.about-process > .container {
    position: relative;
    z-index: 1;
}

.about-process__bg-blob {
    position: absolute;
    top: -20%;
    right: -12%;
    width: 55%;
    height: 130%;
    background: radial-gradient(ellipse at center,
    rgba(48, 166, 218, .1) 0%,
    rgba(5, 171, 242, .05) 50%,
    transparent 70%);
    filter: blur(60px);
    border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    animation: morphBlob 22s ease-in-out infinite alternate-reverse;
    pointer-events: none;
    z-index: 0;
}

/* --- Уважение к настройкам пользователя --- */
@media (prefers-reduced-motion: reduce) {
    .about-mission__bg-blob,
    .about-mission__bg-blob--accent,
    .about-do__bg-blob--accent,
    .about-process__bg-blob {
        animation: none;
    }
}

/* --- Адаптив --- */
@media (max-width: 768px) {
    .about-mission__bg-blob,
    .about-mission__bg-blob--accent,
    .about-process__bg-blob {
        opacity: 0.6;
    }
}
