/* --- СТИЛИ САЙТА (CSS) --- */
        
/* Общие настройки */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: #f4f7f6;
    color: #333;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden; 
}

h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #0b3c5d;
}

/* Стандартные секции сайта зажаты в 1200px */
section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Вспомогательный класс для точечного взлома ограничений (если понадобится) */
.full-width-section {
    max-width: none !important;
    width: 100vw !important;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* --- ГЛАВНЫЙ ЭКРАН (HERO) --- */
.hero {
    padding-top: 60px; /* Сдвигаем контент баннера вниз на высоту шапки */
    position: relative;
    background: linear-gradient(rgba(11, 60, 93, 0.75), rgba(50, 140, 193, 0.75)), url('images/hero-bg1.jpg') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    padding: 0 20px;
}

.hero-content {
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Сдвигаем весь контент вверх по вертикали (ось Y) */
    /* transform: translateY(-150px); */
}

.center-logo {
    max-width: 350px; 
    height: auto;
    margin-bottom: 25px; 
    filter: drop-shadow(0px 4px 10px rgba(0, 0, 0, 0.3)); 
    display: block;
}

.hero-content p {
    font-size: 1.6rem;
    margin-bottom: 35px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5); 
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 14px 35px;
    background-color: #328cc1;
    color: #fff;
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn:hover {
    background-color: #d9b310;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* --- СЕКЦИЯ О НАС --- */
.about {
    text-align: center;
    max-width: 800px;
}
        
.about p {
    font-size: 1.2rem;
    color: #555;
}

/* --- СЕТКА ГАЛЕРЕИ --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px 0;
}

.gallery-grid a {
    text-decoration: none;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    height: 250px;
    background-color: #ddd;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(11, 60, 93, 0.85);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    font-size: 1.3rem;
    font-weight: bold;
}

.gallery-item:hover .overlay {
    opacity: 1;
}

/* --- КОНТАКТЫ --- */
.contacts-wrapper {
    background-color: #0b3c5d;
    color: #fff;
}

.contacts {
    text-align: center;
}

.contacts h2 {
    color: #fff;
}

.contact-info {
    margin-top: 40px;
    font-size: 1.3rem;
}

.contact-info p {
    margin: 15px 0;
}

/* --- ПОДВЛ --- */
footer {
    background-color: #1d2731;
    color: #b0b5b9;
    text-align: center;
    padding: 25px;
    font-size: 0.9rem;
}

/* Иконки соцсетей в футере */
.footer-social {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
}
        
.footer-social a {
    display: inline-block;
    width: 28px;
    height: 28px;
    transition: transform 0.2s ease;
}
        
.footer-social a svg {
    width: 100%;
    height: 100%;
    fill: #328cc1;
    transition: fill 0.2s ease;
}
        
.footer-social a:hover {
    transform: translateY(-3px);
}
        
.footer-social a:hover svg {
    fill: #ffffff;
}

/* --- СЕКЦИЯ О ПРОЕКТЕ --- */
.about-section {
    background-color: #ffffff; 
    padding: 60px 20px;
    width: 100%;
}

.about-container {
    max-width: 1200px;
    margin: 0 auto; 
    text-align: center;
}

.about-container h2 {
    font-size: 2.3rem;
    color: #0b3c5d;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.about-lead {
    font-size: 1.15rem;
    color: #555;
    max-width: 850px;
    margin: 0 auto 45px auto; 
    line-height: 1.6;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.about-card {
    background: #f4f7f6; 
    padding: 30px 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    text-align: center; 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.about-card h3 {
    color: #0b3c5d;
    font-size: 1.3rem;
    margin-bottom: 12px;
}

.about-card p {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.5;
}


/* ==========================================================================
   --- ЧИСТЫЕ СТИЛИ ДЛЯ СЕКЦИИ CMAS (РАСТЯНУТА НА 100%) ---
   ========================================================================== */

.cmas-section {
    max-width: none;       /* Взламываем ограничение глобального тега section */
    width: 100%;           /* Растягиваем на всю ширину экрана */
    margin: 0;
    padding: 80px 0;       /* Боковые отступы убираем, чтобы фон уходил в края */
    background-color: #ffffff; 
    color: #333333;
}

/* Наш внутренний островок безопасности */
.cmas-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;       /* Возвращаем боковые поля контенту */
}

.cmas-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px auto;
}

.cmas-subtitle {
    color: #328cc1; 
    font-size: 0.9rem;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.cmas-header h2 {
    color: #0b3c5d; 
    font-size: 2.5rem;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.cmas-intro {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #555;
}

/* Сетка направлений */
.cmas-directions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.direction-card {
    background-color: #f8fafd;
    padding: 30px;
    border-radius: 12px;
    border-top: 4px solid #328cc1;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.direction-card:hover {
    transform: translateY(-5px);
}

.direction-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.direction-card h3 {
    color: #0b3c5d;
    margin-bottom: 12px;
    font-size: 1.3rem;
}

.direction-card p {
    color: #666;
    line-height: 1.5;
    font-size: 0.95rem;
}

/* Блок системы квалификаций */
.cmas-program-box {
    background-color: #0b3c5d;
    color: #ffffff;
    padding: 50px 40px;
    border-radius: 16px;
    margin-bottom: 60px;
    text-align: center;
}

.cmas-program-box h3 {
    font-size: 2rem;
    text-transform: uppercase;
    margin-bottom: 15px;
    color: #ffffff;
}

.program-desc {
    color: #b0bec5;
    max-width: 700px;
    margin: 0 auto 40px auto;
    line-height: 1.5;
}

/* Карточки звезд */
.stars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.star-card {
    background-color: rgba(255, 255, 255, 0.08);
    padding: 25px;
    border-radius: 8px;
    text-align: left;
    border: 1px solid rgba(255,255,255,0.1);
}

.star-rating {
    color: #f1c40f; 
    font-size: 1.8rem;
    margin-bottom: 10px;
    line-height: 1;
}

.star-card h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #0b3c5d;
}

.star-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Выделение карточки детской квалификации среди звезд */
.star-card.kid-qualification {
    background-color: rgba(50, 140, 193, 0.2);
    border: 1px dashed #328cc1;
}

.star-card.kid-qualification h4 {
    color: #e3f2fd;
}

/* ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ДЛЯ СПЕЦИАЛИЗАЦИЙ */
.specialties-wrapper {
    margin-bottom: 70px;
}

.specialties-title {
    text-align: center;
    color: #0b3c5d;
    font-size: 2rem;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.specialties-desc {
    text-align: center;
    color: #666;
    max-width: 700px;
    margin: 0 auto 40px auto;
    font-size: 1.05rem;
}

/* Сетка специализаций */
.specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.specialty-card {
    background-color: #ffffff;
    border: 1px solid #e1e8ed;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    transition: all 0.3s ease;
}

.specialty-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(11, 60, 93, 0.08);
    border-color: #328cc1;
}

.spec-icon {
    font-size: 2.2rem;
    margin-bottom: 15px;
}

.specialty-card h4 {
    color: #0b3c5d;
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.specialty-card p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Выделение карточки детского дайвинга */
.specialty-card.kid-diver {
    background-color: #f0f7fc;
    border: 1px dashed #328cc1;
}

.specialty-card.kid-diver h4 {
    color: #2980b9;
}

/* СТИЛИ ДЛЯ ФОТО СЕРТИФИКАТОВ */
.certificate-thumb {
    width: 100%;
    height: 140px; 
    margin-bottom: 15px;
    border-radius: 6px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
    align-items: center;
}

.certificate-thumb img {
    width: auto;
    height: 100%;
    object-fit: contain; 
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3)); 
}

.star-card:hover .certificate-thumb img {
    transform: scale(1.06) rotate(1deg); 
    filter: drop-shadow(0 6px 12px rgba(0,0,0,0.5));
}

/* Призыв к действию */
.cmas-cta {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cmas-cta h3 {
    color: #0b3c5d;
    font-size: 1.8rem;
    margin-bottom: 15px;
}

.cmas-cta p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 30px;
}

.cmas-btn {
    display: inline-block;
    padding: 15px 40px;
    background-color: #328cc1;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(50, 140, 193, 0.4);
    transition: all 0.3s ease;
}

.cmas-btn:hover {
    background-color: #0b3c5d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(11, 60, 93, 0.4);
}


/* --- ЛИПКАЯ ШАПКА НА ГЛАВНОЙ --- */
.main-header.index-header {
    background-color: #1a252f; 
    height: 60px;
    width: 100%;
    position: fixed; 
    top: 0;          
    left: 0;         
    z-index: 1000;   
    box-shadow: 0 2px 10px rgba(0,0,0,0.25); 
    display: flex;
    align-items: center;
}
        
.index-header .header-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: flex-end; 
    align-items: center;
}
        
.index-header .header-nav {
    display: flex;
    gap: 25px;
}
        
.index-header .header-nav a {
    color: #b0bec5; 
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: color 0.2s ease;
}
        
.index-header .header-nav a:hover {
    color: #328cc1; 
}


/* ==========================================================================
   --- ОБЩАЯ АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ (ОБЪЕДИНЕННАЯ) ---
   ========================================================================== */

@media (max-width: 768px) {
    /* Главный экран */
    .center-logo {
        max-width: 240px; 
        margin-bottom: 40px;
        
    }
    .hero-content p {
        font-size: 1.2rem;
    }
    h2 {
        font-size: 2rem;
    }
    
    /* Общие секции */
    section {
        padding: 50px 20px;
    }
    
    /* О проекте */
    .about-section {
        padding: 40px 15px;
    }
    .about-container h2 {
        font-size: 1.8rem;
    }
    .about-lead {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    .about-card {
        padding: 20px;
    }
    
    /* Шапка сайта */
    .index-header .header-container {
        justify-content: center; 
    }
    .index-header .header-nav {
        gap: 15px;
    }
    .index-header .header-nav a {
        font-size: 0.85rem;
    }
    
    /* Секция CMAS (на мобильных) */
    .cmas-section { 
        padding: 50px 0; 
    }
    .cmas-header h2 { 
        font-size: 1.8rem; 
    }
    .cmas-program-box { 
        padding: 30px 20px; 
    }
    .cmas-program-box h3 { 
        font-size: 1.5rem; 
    }
    .specialties-title { 
        font-size: 1.6rem; 
    }
    .specialties-grid { 
        grid-template-columns: 1fr; /* Колонки специализаций встают в один ряд */
    }
}
/* Сброс ограничений для шапки и главного экрана */
.main-header, 
.hero {
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* Возвращаем внутренний контейнер шапки по центру (например, 1200px) */
.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* Центрируем контент внутри главного экрана */
.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}
/* ==========================================================================
   Разделение секций сайта разными фонами
   ========================================================================== */

/* 1. Секция "О проекте" — делаем ее мягкого светло-серого цвета */
.about-section {
    background-color: #f8f9fa; /* Очень легкий серый, почти белый */
    padding-top: 80px;
    padding-bottom: 80px;
}

/* 2. Секция "Галерея" — оставляем идеально белой */
.gallery-section {
    background-color: #ffffff; /* Белый фон */
    padding-top: 80px;
    padding-bottom: 80px;
}

/* 3. Секция "CMAS Обучение" — выделяем глубоким "морским" или контрастным цветом */
.cmas-section {
    background-color: #f0f4f8; /* Мягкий голубовато-серый оттенок */
    padding-top: 100px;
    padding-bottom: 100px;
}

/* Карточки внутри CMAS делаем белыми, чтобы они "выпукло" смотрелись на голубом фоне */
.star-card, .direction-card, .specialty-card {
    background-color: #ffffff !important;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* Легкая тень для объема */
    padding: 25px;
    transition: transform 0.3s ease;
}

/* Эффект при наведении на карточки */
.star-card:hover, .direction-card:hover, .specialty-card:hover {
    transform: translateY(-5px); /* Карточка изящно приподнимается */
}

/* 4. Контакты — делаем темными (глубокий синий цвет океана) */
.contacts-wrapper {
    background-color: #0f2027; /* Темный красивый сине-черный цвет */
    color: #ffffff; /* Белый текст, чтобы он читался */
    padding-top: 80px;
    padding-bottom: 80px;
}

/* Стили текста внутри контактов, чтобы они не потерялись на темном */
.contacts h2, .contacts p, .contact-info p {
    color: #ffffff !important;
}