
/* ========================================================================= */
/* PREMIUM TONED GLASSMORPHISM & JUSTIFIED TEXT FOR #ABOUT                  */
/* ========================================================================= */

#about.section {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 100vh !important;
    height: auto !important;
    width: 100% !important;
    padding-top: 45px !important;
    padding-bottom: 90px !important;
    box-sizing: border-box !important;
    overflow: visible !important;
    /* Чистая подложка картинки */
    background-size: cover !important;
    background-position: center center !important;
    background-repeat: no-repeat !important;
    background-attachment: fixed !important;
}

/* ОТДЕЛЬНЫЙ СЛОЙ ЗАТЕМНЕНИЯ С ЭФФЕКТОМ МАТОВОГО СТЕКЛА */
#about .about-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important; /* Лежит строго под текстом, но над картинкой */
    /* Мягкий темный цвет вуали */
    background-color: rgba(11, 22, 25, 0.20) !important;
    /* Эффект матового стекла размывает картинку под оверлеем */
    backdrop-filter: blur(1px) !important;
    -webkit-backdrop-filter: blur(1px) !important;
}

/* Сброс ограничений fullPage.js на высоту экранов */
#about .fp-tableCell,
#about .fp-scrollable {
    display: flex !important;
    align-items: center !important;
    height: auto !important;
    min-height: 100vh !important;
    width: 100% !important;
}

#about .container {
    position: relative !important;
    z-index: 2 !important;
}

/* ========================================================================= */
/* ЛЕВАЯ КОЛОНКА: ВЫРАВНИВАНИЕ ТЕКСТА ПО ОБОИМ КРАЯМ (JUSTIFY)               */
/* ========================================================================= */
#about .about-info {
    padding-right: 40px;
}

/* Заголовок "ЗДРАВСТВУЙТЕ" строго слева */
#about h2 {
    color: #ffffff !important;
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
    width: max-content !important;
}

    /* Растворяющаяся линия */
    #about h2::after {
        content: "" !important;
        display: table !important;
        width: 400px !important;
        height: 4px !important;
        border-radius: 50px !important;
        margin: 18px 0 0 0 !important;
        background: linear-gradient(90deg, #00e5ff 0%, transparent 100%) !important;
    }

/* Первый абзац (Лид-текст): Журнальный левый край для фокуса */
#about .about-info p.lead-text,
#about .about-info .lead-text {
    font-size: 21px !important;
    font-weight: 700 !important;
    color: #00e5ff !important;
    line-height: 1.5 !important;
    margin-top: 35px !important;
    margin-bottom: 22px !important;
    text-align: left !important; /* Лид-фраза выравнивается влево */
    width: 100% !important;
    display: block !important;
}

/* ВТОРОЙ АБЗАЦ: ИДЕАЛЬНОЕ ВЫРАВНИВАНИЕ ПО ШИРИНЕ (И СЛЕВА, И СПРАВА) */
#about .about-info p.main-text,
#about .about-info .main-text {
    font-size: 15.5px !important;
    font-weight: 500 !important;
    color: #e2e8f0 !important; /* Платиновый благородный оттенок */
    line-height: 1.9 !important; /* Увеличенный интервал для строгой геометрии */
    letter-spacing: 0.3px !important;
    /* Принудительное растягивание по ширине колонки (от стенки до стенки) */
    text-align: justify !important;
    text-align-last: left !important; /* Последняя строчка абзаца не растягивается, а аккуратно завершается слева */

    width: 100% !important;
    display: block !important;
    margin-bottom: 0 !important;
}

/* ========================================================================= */
/* ПРАВАЯ КОЛОНКА: СТИЛЬНАЯ КАРТОЧКА ГЛАВНОГО ВРАЧА                          */
/* ========================================================================= */
#about .about-doctor-card {
    background: rgba(255, 255, 255, 0.03) !important; /* Утонченное матовое стекло */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px !important;
    padding: 30px !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35) !important;
    /* Смещение строго к правому краю rows */
    margin-left: auto !important;
    margin-right: 0 !important;
    max-width: 420px;
    display: flex !important;
    flex-direction: column !important;
    gap: 20px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

    #about .about-doctor-card:hover {
        transform: translateY(-5px);
        border-color: rgba(0, 229, 255, 0.3);
        background: rgba(255, 255, 255, 0.05) !important;
        box-shadow: 0 35px 70px rgba(0, 188, 212, 0.45) !important;
    }

/* Рамка фотографии доктора */
#about .doctor-image-wrapper {
    width: 100%;
    height: 300px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

    #about .doctor-image-wrapper img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

#about .about-doctor-card:hover .doctor-image-wrapper img {
    transform: scale(1.04);
}

#about .doctor-meta {
    text-align: left !important;
}

/* Бейдж должности */
#about .doctor-badge {
    display: inline-block;
    background: rgba(0, 188, 212, 0.15) !important;
    color: #00e5ff !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    padding: 6px 16px !important;
    border-radius: 50px !important;
    margin-bottom: 12px;
    border: 1px solid rgba(0, 229, 255, 0.2);
}

/* ФИО доктора */
#about .doctor-meta h3 {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    line-height: 1.3 !important;
    margin: 0 0 10px 0 !important;
}

/* Описание опыта */
#about .doctor-desc {
    font-size: 14px !important;
    color: #94a3b8 !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}

/* ========================================================================= */
/* МОБИЛЬНАЯ АДАПТАЦИЯ (ЭКРАНЫ МЕНЬШЕ 991PX)                                 */
/* ========================================================================= */
@media (max-width: 991px) {
    #about.section {
        padding-top: 55px !important;
        padding-bottom: 60px !important;
        display: block !important;
    }

    #about .fp-tableCell {
        display: block !important;
    }

    #about .about-info {
        padding-right: 0 !important;
        margin-bottom: 50px;
    }

        #about .about-info .main-text {
            text-align: left !important; /* На смартфонах justify-выравнивание ломает пробелы, переключаем в дефолт */
        }

    #about .about-doctor-card {
        margin-left: auto !important;
        margin-right: auto !important;
        max-width: 100%;
        padding: 20px !important;
    }

    #about .doctor-image-wrapper {
        height: 320px;
    }

    #about h2 {
        margin-right: auto !important;
        margin-left: auto !important;
    }

        #about h2::after {
            margin-left: auto !important;
            margin-right: auto !important;
            width: 85% !important;
            max-width: 320px !important;
            background: linear-gradient(90deg, transparent 0%, #00bcd4 20%, #0097a7 80%, transparent 100%) !important;
        }
}


/* АДАПТАЦИЯ ОТСТУПА ПОД ТЕЛЕФОНЫ ( 991px) */
@media (max-width: 575px) {
    /* 1. Убираем фоновую картинку и градиент — делаем фон чистым, 
          а цвет текста переключаем на темный, чтобы он читался */
    /* Жестко ограничиваем видимость контента пределами секции */
    .section {
        position: relative !important;
        padding: 40px 0;
        margin: 0 !important; /* Убираем внешние отступы, которые могли сдвигать секцию */
        color: #ffffff !important;
        overflow: hidden !important; /* Срезает всё, что пытается вылезти наружу */
    }
    /* Принудительно прижимаем затемнение к краям родительской секции */
    .about-overlay {
        display: block !important;
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        background: linear-gradient(135deg, rgba(10, 25, 47, 0.9) 0%, rgba(20, 40, 75, 0.75) 100%) !important;
        backdrop-filter: blur(6px) !important;
        -webkit-backdrop-filter: blur(6px) !important;
        z-index: 1 !important;
    }
    /* Контенту даем приоритет по слоям, чтобы он не ушел под оверлей */
    .section .container {
        position: relative !important;
        z-index: 2 !important;
    }
    /* 2. Полностью скрываем заголовок "ЗДРАВСТВУЙТЕ" */
    .about-info h2 {
        display: none !important;
    }
    /* 3. Адаптируем оставшийся текст под светлый фон */
    .about-info .lead-text {
        font-size: 1.35rem;
        font-weight: 700;
        line-height: 1.3;
        margin-bottom: 15px;
        color: #0f172a; /* Темный цвет для главного оффера */
    }

    .about-info .main-text {
        font-size: 0.95rem;
        line-height: 1.6;
        color: #475569; /* Мягкий серый для основного текста */
    }

    .about-info {
        margin-bottom: 30px;
    }
    /* 4. Компактный мобильный вид карточки врача */
    .about-doctor-card {
        display: flex;
        align-items: center;
        padding: 15px;
        background: #f8fafc; /* Светлая подложка на белом фоне */
        border: 1px solid #e2e8f0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    }
        /* Отключаем трансформации при тапе */
        .about-doctor-card:hover {
            transform: none;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
        }
    /* Превращаем большое фото в круглую аватарку слева */
    .doctor-image-wrapper {
        width: 80px !important;
        height: 80px !important;
        flex-shrink: 0;
        border-radius: 50%;
        margin-right: 15px;
    }

        .doctor-image-wrapper img {
            scale: 1 !important;
        }
    /* Текстовый блок врача справа от аватарки */
    .doctor-meta {
        padding: 0;
        background: none !important; /* Убираем темный градиент из карточки */
    }

    .doctor-badge {
        display: inline-block;
        background: #e0f2fe; /* Нежно-голубой пастельный тег */
        color: #0369a1; /* Синий текст */
        font-size: 0.65rem;
        padding: 3px 8px;
        margin-bottom: 6px;
    }

    .doctor-meta h3 {
        font-size: 1.1rem;
        margin-bottom: 4px;
        color: #0f172a;
    }

    .doctor-desc {
        font-size: 0.85rem;
        line-height: 1.4;
        color: #64748b;
    }
}
