/* Обнуление */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    position: relative;
    scroll-behavior: smooth;
}

.container-site {
    position: relative;
    z-index: 1;
    padding-top: 90px; /* Отступ для первого контента */
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/assets/images/bg.svg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: -1;
    pointer-events: none;
    will-change: transform;
}

/* Разделы с контентом */
.section {
    padding: 60px 0;
    position: relative;
    z-index: 1;
    margin-bottom: 40px;
}

/* Разделитель между секциями */
.divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #ccc, transparent);
    margin: 30px 0;
}

/* Белый прямоугольник внутри каждой секции */
.section-background {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1140px;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
    z-index: -1;
}

/* Шапка сайта */
.header {
    background-color: #57abff;
    color: white;
    padding: 15px 0; /* Маленький хэдер */
    border-radius: 0 0 15px 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.4s ease;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* Логотип */
.logo {
    max-width: 40px;
    height: auto;
    margin-right: 20px;
    transition: all 0.4s ease;
}

/* Текст вместо логотипа */
.school-name {
    position: absolute;
    left: 20px; /* Переместили влево */
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    color: white;
    opacity: 1;
    pointer-events: auto;
    transition: all 0.4s ease;
    font-weight: bold;
    white-space: nowrap;
}

/* Меню навигации */
.nav {
    float: right;
}

.nav a {
    display: inline-block;
    padding: 10px 20px;
    margin-left: 15px;
    background-color: white;
    color: #003366 !important;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.nav a:hover {
    background-color: #003366;
    color: white !important;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Геро */
.hero {
    color: #333;
    text-align: center;
    padding: 80px 0;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 40px;
    margin-bottom: 20px;
    color: #003366;
}

.hero-content p {
    font-size: 18px;
    color: #555;
}

.overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero h1 {
    font-size: 40px;
    margin-bottom: 20px;
    font-weight: bold;
}

.section h2 {
    text-align: center;
    font-size: 28px;
    margin-bottom: 40px;
}

/* Программы обучения */
.program-cards {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); /* Изменено здесь */
    justify-items: center;
}

.program-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s;
}

.program-card img {
    width: 200px;
    height: 200px;
    margin-bottom: 10px;
}

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

/* Футер */
.footer {
    background-color: #003366;
    color: white;
    padding: 40px 0;
    margin-top: 60px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
    text-align: center;
}

.footer-contact-info h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: #ffffff;
}

.footer-contact-info p {
    margin-bottom: 8px;
    font-size: 16px;
    color: #ddd;
}

.footer-contact-info strong {
    color: #ffcc00;
}

.footer-bottom p {
    font-size: 14px;
    color: #aaa;
    margin-top: 20px;
}

/* Форма связи */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #003366;
    outline: none;
}

/* Кнопка как в меню */
.nav-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: white;
    color: #003366 !important;
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    border-radius: 6px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    align-self: flex-start;
}

.nav-btn:hover {
    background-color: #003366;
    color: white !important;
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Ответ формы */
.form-response {
    margin-top: 20px;
    color: green;
    text-align: center;
}

/* Адаптивность */
@media (max-width: 768px) {
    .nav {
        float: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 15px;
    }

    .nav a {
        margin: 10px 0 !important;
        width: 80%;
        text-align: center;
    }

    .logo {
        max-width: 40px;
    }

    .section-background {
        max-width: 100%;
    }

    .school-name {
        left: 60px;
    }
    .header {
        display: none;
    }
}