/* ═══════════════════════════════════════════════════════════
   А-Медия — Premium Enhancement Layer
   Подключать ПОСЛЕ app.css. Не меняет разметку.
   Эстетика: медицинская роскошь, глубина, доверие.
   Шрифт: Geologica (заголовки) + Mulish (текст)
═══════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=Geologica:wght@300;400;600;700;800&family=Mulish:wght@400;500;600;700&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');
@import url('https://fonts.googleapis.com/css2?family=Geologica:wght@300;400;500;600;700;800&family=Mulish:wght@400;500;600;700&display=swap');

/* ── ГЛОБАЛЬНЫЕ ПЕРЕМЕННЫЕ ────────────────────────────── */
:root {
    --am-teal:        #10728b;
    --am-teal-dark:   #084d5e;
    --am-teal-mid:    #0e8fa8;
    --am-teal-light:  #e8f4f7;
    --am-red:         #c94535;
    --am-red-light:   #fdf1ef;
    --am-text:        #1e2d3a;
    --am-text-muted:  #64748b;
    --am-bg:          #f7f9fb;
    --am-white:       #ffffff;
    --am-border:      rgba(16,114,139,.12);
    --am-shadow-sm:   0 2px 8px rgba(8,50,70,.08);
    --am-shadow-md:   0 8px 28px rgba(8,50,70,.12);
    --am-shadow-lg:   0 20px 60px rgba(8,50,70,.16);
    --am-radius:      12px;
    --am-transition:  .25s cubic-bezier(.4,0,.2,1);
}



/* ── ШАПКА — ПЛАВНЫЙ ЭФФЕКТ ───────────────────────────── */
.header {
    transition: box-shadow var(--am-transition);
}

.header__container {
    background: linear-gradient(135deg, var(--am-teal-dark) 0%, var(--am-teal) 60%, var(--am-teal-mid) 100%) !important;
    position: relative;
    overflow: hidden;
}

/* Декоративный блик в хедере */
.header__container::before {
    content: '';
    position: absolute;
    top: -60%;
    right: -5%;
    width: 35%;
    height: 250%;
    background: rgba(255,255,255,.05);
    transform: rotate(15deg);
    pointer-events: none;
}

.header__container::after {
    content: '';
    position: absolute;
    top: -40%;
    right: 25%;
    width: 20%;
    height: 200%;
    background: rgba(255,255,255,.03);
    transform: rotate(15deg);
    pointer-events: none;
}

/* Белая полоска под хедером */
.header__top {
    border-bottom: 1px solid rgba(16,114,139,.08);
    box-shadow: var(--am-shadow-sm);
}


/* ── ПЛАВНЫЙ СКРОЛЛ ───────────────────────────────────── */
html {
    scroll-behavior: smooth;
}

/* ── АНИМАЦИЯ ПОЯВЛЕНИЯ БЛОКОВ ────────────────────────── */
@keyframes amFadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.section,
.card,
.doctor-card,
[class*="animate"] {
    animation: amFadeUp .5s ease both;
}

/* ── ФУТЕР ────────────────────────────────────────────── */
.footer {
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--am-teal-dark), var(--am-teal-mid), var(--am-red));
}

/* ── ТОНКИЕ ДЕТАЛИ ────────────────────────────────────── */

/* Убираем синий outline на фокусе — добавляем свой */
*:focus-visible {
    outline: 2px solid var(--am-teal);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Плавный переход цвета для всех интерактивных элементов */
a, button, input, select, textarea, label {
    transition-property: color, background-color, border-color, box-shadow;
    transition-duration: .2s;
    transition-timing-function: cubic-bezier(.4,0,.2,1);
}

/* Медицинский крест в декор — только дополнение, не ломает */
.header__container .cross-decor {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    opacity: .06;
    font-size: 80px;
    color: #fff;
    pointer-events: none;
    user-select: none;
}




/* ── А-Медия — Блок "О клинике" ─────────────────────── */

 
.am-about {
    font-family: 'Mulish', 'Open Sans', sans-serif;
    color: #1e2d3a;
    max-width: 1210px;
    margin: 0 auto;
    padding: 0 16px;
}
 
/* ── ЗАГОЛОВОК БЛОКА ─────────────────────────────── */
.am-about__title {
    font-family: 'Geologica', sans-serif;
    font-weight: 800;
    font-size: clamp(22px, 3vw, 34px);
    text-align: center;
    color: #084d5e;
    letter-spacing: -.03em;
    line-height: 1.2;
    margin: 0 0 32px;
    position: relative;
}
 
.am-about__title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    border-radius: 99px;
    background: linear-gradient(90deg, #10728b, #c94535);
    margin: 14px auto 0;
}
 
/* ── ВВОДНЫЙ АБЗАЦ ───────────────────────────────── */
.am-about__lead {
    font-size: 16px;
    line-height: 1.7;
    color: #3a4f5c;
    text-align: center;
    max-width: 640px;
    margin: 0 auto 32px;
    font-weight: 500;
}
 
/* ── ЦИТАТА / ВЫНОСКА ────────────────────────────── */
.am-about__quote {
    position: relative;
    margin: 0 0 32px;
    padding: 24px 28px 24px 60px;
    background: linear-gradient(135deg, #eef6f9 0%, #e4f2f7 100%);
    border-radius: 16px;
    border-left: none;
    overflow: hidden;
}
 
.am-about__quote::before {
    content: '\201C';
    position: absolute;
    left: 18px;
    top: 10px;
    font-family: 'Geologica', Georgia, serif;
    font-size: 72px;
    line-height: 1;
    color: #10728b;
    opacity: .3;
    font-weight: 800;
}
 
.am-about__quote::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 120px; height: 120px;
    border-radius: 50%;
    background: rgba(16,114,139,.06);
    transform: translate(30%, -30%);
}
 
.am-about__quote p {
    margin: 0;
    font-size: 15px;
    line-height: 1.7;
    color: #1e4a58;
    font-weight: 500;
    position: relative;
    z-index: 1;
}
 
.am-about__quote a {
    color: #10728b;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
    text-decoration-color: rgba(16,114,139,.4);
    transition: color .2s, text-decoration-color .2s;
}
 
.am-about__quote a:hover {
    color: #084d5e;
    text-decoration-color: rgba(8,77,94,.7);
}
 
/* ── МЕТРИКИ / СТАТИСТИКА ────────────────────────── */
.am-about__stats {
    display: flex;
    gap: 16px;
    margin: 0 0 32px;
    flex-wrap: wrap;
}
 
.am-about__stat {
    flex: 1;
    min-width: 140px;
    background: #fff;
    border: 1px solid rgba(16,114,139,.12);
    border-radius: 16px;
    padding: 20px 18px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(8,50,70,.07);
    transition: transform .25s, box-shadow .25s;
}
 
.am-about__stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 28px rgba(8,50,70,.13);
}
 
.am-about__stat-num {
    font-family: 'Geologica', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: #10728b;
    line-height: 1;
    letter-spacing: -.03em;
}
 
.am-about__stat-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-top: 6px;
    line-height: 1.3;
}
 
/* ── ОСНОВНОЙ ТЕКСТ ──────────────────────────────── */
.am-about__body p {
    font-size: 15px;
    line-height: 1.75;
    color: #374959;
    margin: 0 0 18px;
    text-align: justify;
}
 
.am-about__body p:last-child {
    margin-bottom: 0;
}
 
/* ── СПИСОК УСЛУГ ────────────────────────────────── */
.am-about__services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin: 24px 0 32px;
}
 
.am-about__service-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f7fafb;
    border: 1px solid rgba(16,114,139,.1);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    color: #1e4a58;
    transition: background .2s, border-color .2s;
}
 
.am-about__service-item:hover {
    background: #eef6f9;
    border-color: rgba(16,114,139,.25);
}
 
.am-about__service-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #10728b, #0e8fa8);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(16,114,139,.25);
}
 
/* ── СЕКЦИЯ ДМС ──────────────────────────────────── */
.am-about__dms {
    margin-top: 40px;
    padding: 28px 32px;
    background: #fff;
    border: 1px solid rgba(16,114,139,.12);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(8,50,70,.08);
    position: relative;
    overflow: hidden;
}
 
.am-about__dms::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10728b, #0e8fa8, #c94535);
}
 
.am-about__dms-title {
    font-family: 'Geologica', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #084d5e;
    margin: 0 0 12px;
    letter-spacing: -.02em;
    display: flex;
    align-items: center;
    gap: 10px;
}
 
.am-about__dms-text {
    font-size: 15px;
    line-height: 1.65;
    color: #3a4f5c;
    margin: 0 0 20px;
}
 
.am-about__dms-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
}
 
.am-about__dms-logo {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #f7fafb;
    border: 1px solid rgba(16,114,139,.1);
    border-radius: 10px;
    transition: border-color .2s, box-shadow .2s;
}
 
.am-about__dms-logo:hover {
    border-color: rgba(16,114,139,.3);
    box-shadow: 0 3px 12px rgba(16,114,139,.1);
}
 
.am-about__dms-logo img {
    display: block;
    max-height: 44px;
    max-width: 180px;
    width: auto;
    object-fit: contain;
}
 
/* ── МОБИЛЬНАЯ АДАПТАЦИЯ ──────────────────────────── */
@media (max-width: 640px) {
    .am-about__quote {
        padding: 18px 18px 18px 44px;
    }
    .am-about__stats {
        gap: 10px;
    }
    .am-about__stat-num {
        font-size: 26px;
    }
    .am-about__dms {
        padding: 20px 18px;
    }
    .am-about__services {
        grid-template-columns: 1fr 1fr;
    }
}
 
@media (max-width: 400px) {
    .am-about__services {
        grid-template-columns: 1fr;
    }
}