/* ===== ITA LAB DETAIL DESIGN SYSTEM 2026 – GALERЕЯ + CENTERING + HERO GRADIENT ===== */

/* ===== ОБЩИЙ КОНТЕЙНЕР ===== */
body, .prose-desc {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    color: #4b5563;
    line-height: 1.8;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ===== HERO SECTION ===== */
.hero-section {
    position: relative;
    width: 100%;
    max-width: 7xl;
    margin: 0 auto;
    padding: 4rem 1.5rem 2rem 1.5rem; /* поднятие Hero контента сверху */
    text-align: left;
    overflow: hidden; /* чтобы overlay не выступал за границы */
}

/* Фон: картинка или fallback */
.hero-section .bg-cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

/* ===== Градиентный голубой overlay ===== */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1; /* над фоном, под контентом */
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        rgba(0, 128, 255, 0.25) 0%,
        rgba(0, 128, 255, 0.45) 100%
    );
}

/* Контент Hero поверх overlay */
.hero-section > .relative {
    position: relative;
    z-index: 2;
}

/* ===== ЗАГОЛОВКИ ===== */
.prose-desc h1, .prose-desc h2, .prose-desc h3, .prose-desc h4 {
    color: #003087;
    font-weight: 800;
    letter-spacing: -0.015em;
    line-height: 1.3;
    margin-top: 3rem;
}
.prose-desc h2 {
    font-size: 2.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid rgba(0,48,135,0.1);
    padding-bottom: 0.75rem;
}
.prose-desc h3 { font-size: 1.75rem; margin-bottom: 1.25rem; }
.prose-desc h4 { font-size: 1.35rem; margin-bottom: 1rem; }

/* ===== ПАРАГРАФЫ ===== */
.prose-desc p {
    margin-bottom: 1.75rem;
    font-size: 1.05rem;
    color: #4b5563;
    font-weight: 300;
}

/* ===== СПИСКИ ===== */
.prose-desc ul {
    list-style: none;
    padding-left: 0;
    margin-top: 1.5rem;
    margin-bottom: 2.5rem;
}
.prose-desc ul li {
    position: relative;
    padding-left: 2.75rem;
    margin-bottom: 1.25rem;
    background: #f8fafc;
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-right: 1.5rem;
    border-radius: 0.75rem;
    border-left: 4px solid #003087;
    transition: transform 0.2s;
}
.prose-desc ul li:hover { transform: translateX(5px); }
.prose-desc ul li::before {
    content: "\F28A";
    font-family: "bootstrap-icons";
    position: absolute;
    left: 1rem;
    top: 1.15rem;
    color: #003087;
    font-size: 1.15rem;
}

/* ===== ИЗОБРАЖЕНИЯ ===== */
.prose-desc img {
    max-width: 100%;
    height: auto;
    margin: 3rem auto;
    border-radius: 1rem;
    box-shadow: 0 15px 30px -10px rgba(0, 48, 135, 0.1);
    display: block;
    transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ===== GALERЕЯ (центрирование) ===== */
.gallery-grid,
.lab-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    justify-content: center;
    justify-items: center;
    align-items: center;
    margin: 0 auto 3rem auto;
}
.photo-card {
    aspect-ratio: 4/3;
    overflow: hidden;
    border-radius: 1rem;
    background-color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}
.photo-card:hover { transform: scale(1.02); }
.photo-card img,
.lab-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1rem;
    cursor: pointer;
    transition: transform 0.8s cubic-bezier(0.2,0.8,0.2,1), box-shadow 0.3s;
}
.photo-card:hover img,
.lab-gallery img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 35px -5px rgba(0,48,135,0.2);
}

/* ===== Lightbox ===== */
.lightbox-bg {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
}

/* ===== БЛОК ОПИСАНИЯ ЛАБОРАТОРИИ ===== */
.lab-content-section {
    padding: 1.5rem;                  /* внутренние отступы */
    background-color: #f9fafb;         /* светлый фон для выделения */
    border-radius: 0.75rem;            /* скругленные углы */
    border: 1px solid #e5e7eb;         /* тонкая рамка */
    box-shadow: 0 4px 12px rgba(0,0,0,0.05); /* лёгкая тень */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Заголовок блока */
.lab-content-section h2 {
    font-size: 2rem;                   /* размер шрифта */
    font-weight: 700;                   /* жирность */
    color: #003087;                     /* акцентный синий цвет */
    margin-bottom: 1rem;                /* отступ снизу */
    letter-spacing: -0.015em;           /* плотность букв */
    line-height: 1.2;
}

/* Параграфы внутри блока */
.lab-content-section p {
    font-size: 1.05rem;                 /* читаемый размер шрифта */
    color: #4b5563;                     /* основной текст */
    font-weight: 300;                    /* лёгкий шрифт */
    line-height: 1.7;                   /* межстрочный интервал */
    margin-bottom: 1rem;
}

/* При наведении можно слегка выделять блок */
.lab-content-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .lab-content-section {
        padding: 1rem;
    }
    .lab-content-section h2 {
        font-size: 1.75rem;
    }
    .lab-content-section p {
        font-size: 1rem;
    }
}

/* ===== СОВРЕМЕННЫЙ БЛОК КУРАТОРА ===== */
.lab-curator,
.curator-block {
    background: #ffffff;
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08); /* мягкая, но заметная тень */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover эффект для карточки куратора */
.lab-curator:hover,
.curator-block:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

/* Заголовок */
.lab-curator h3 {
    font-weight: 800;
    color: #003087;
    text-align: center;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
    font-size: 1rem;
}

/* Имя куратора */
.lab-curator p {
    margin: 0;
    text-align: center;
    font-size: 1.15rem;
    font-weight: 600;
    color: #111827; /* тёмный современный цвет */
}

/* Кнопки действий */
.lab-curator .curator-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

/* Общие стили кнопок */
.lab-curator .curator-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 0.5rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

/* Кнопка звонка с градиентом */
.lab-curator .curator-buttons a.phone {
    background: linear-gradient(135deg, #2563eb, #1d4ed8); /* плавный синий градиент */
    color: #fff;
    box-shadow: 0 4px 15px rgba(37,99,235,0.4);
}
.lab-curator .curator-buttons a.phone:hover {
    background: linear-gradient(135deg, #1e40af, #1e3a8a);
    box-shadow: 0 6px 20px rgba(37,99,235,0.5);
    transform: translateY(-2px);
}

/* Кнопка письма с эффектом outline и плавным hover */
.lab-curator .curator-buttons a.mail {
    background: #ffffff;
    color: #003087;
    border: 2px solid #003087;
    box-shadow: 0 2px 12px rgba(0,48,135,0.1);
}
.lab-curator .curator-buttons a.mail:hover {
    background: #003087;
    color: #fff;
    border-color: #003087;
    box-shadow: 0 4px 20px rgba(0,48,135,0.2);
    transform: translateY(-2px);
}

/* Адаптивность */
@media (max-width: 768px) {
    .lab-curator .curator-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    .lab-curator h3 {
        font-size: 0.95rem;
    }
    .lab-curator p {
        font-size: 1.05rem;
    }
    .lab-curator .curator-buttons a {
        width: 100%;
        justify-content: center;
    }
}
/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .prose-desc { font-size: 1.05rem; }
    .prose-desc h2 { font-size: 1.75rem; margin-top: 2.5rem; }
    .prose-desc h3 { font-size: 1.4rem; margin-top: 2rem; }
    .prose-desc img { margin: 2rem auto; border-radius: 0.75rem; }
    .hero-section { padding: 3rem 1rem 2rem 1rem; }
    .lab-gallery, .gallery-grid { gap: 1rem; }
    .lab-gallery img, .photo-card img { max-width: 100%; }
    .lab-curator .curator-buttons { gap: 0.75rem; }
}

/* ===== Комментарии ===== */
/*
1. .hero-overlay - градиентный голубой overlay
2. .hero-section .bg-cover - фон картинка или fallback
3. Контент Hero поверх overlay
4. Галерея и карточки фото центрированы
5. Lightbox и карточка куратора сохранены
6. Адаптивные медиа-запросы корректируют padding Hero и размеры
*/