﻿/* ===== Общие стили ===== */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ===== Заголовки ===== */
h1 {
    font-size: 2em;
    margin: 10px 0;
    color: #003366;
}

h2 {
    font-size: 1.6em;
    margin: 20px 0 10px 0;
    color: #003366;
}

h3 {
    font-size: 1.2em;
    margin: 10px 0;
    color: #003366;
}

/* ===== Меню ===== */
header {
    background-color: #003366;
    color: #fff;
    padding: 10px 0;
    transition: all 0.3s ease;
}

.header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}

/* Название сайта */
.site-title {
    font-size: 1.5em;
    margin: 0;
    color: #ffffff;
    background-color: rgba(0,0,0,0.2);
    padding: 2px 6px;
    border-radius: 4px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

/* Навигация */
.nav-list {
    list-style: none;
    display: flex;
    flex-wrap: nowrap;
    margin: 0;
    padding: 0;
}

.nav-list li {
    margin-left: 20px;
}

.nav-list li a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
}

.nav-list li a:hover {
    text-decoration: underline;
}

/* Иконка гамбургера */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: #fff;
    padding: 5px;
}

/* SVG-иконка меню */
.menu-toggle svg {
    width: 28px;
    height: 28px;
    fill: #fff;
    vertical-align: middle;
}

/* ===== Главная страница: карточки ===== */
.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 20px;
}

.card {
    background-color: #fff;
    padding: 15px;
    flex: 1 1 calc(33.333% - 20px);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    border-radius: 6px;
    transition: transform 0.2s;
}

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

.card h3 {
    margin-top: 0;
}

.card a {
    color: #003366;
    text-decoration: none;
    font-weight: bold;
}

.card a:hover {
    text-decoration: underline;
}

/* ===== Контент ===== */
.intro p, .sections p, .sections ul {
    margin-bottom: 15px;
}

.sections ul {
    padding-left: 20px;
}

/* ===== Футер ===== */
footer {
    background-color: #003366;
    color: #fff;
    padding: 15px 0;
    text-align: center;
}



/* ===== Мобильные стили ===== */
@media (max-width: 1200px) {

    /* показываем кнопку меню */
    .menu-toggle {
        display: block;
        margin-left: 10px;
    }

    /* скрываем навигацию */
    .nav-list {
        display: none;
        flex-direction: column;
        align-items: center; /* центрируем пункты */
        justify-content: center;
        width: 100%;
        background-color: #003366;
        margin-top: 10px;
        border-radius: 0 0 8px 8px;
        padding: 10px 0;
    }

    /* активное меню */
    .nav-list.active {
        display: flex;
    }

    .nav-list li {
        margin: 10px 0;
        text-align: center;
    }

    /* карточки в одну колонку */
    .cards {
        flex-direction: column;
    }

    .card {
        flex: 1 1 100%;
    }

    /* 🔹 Заголовок и гамбургер в одной линии */
    .header-flex {
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: center;
    }

    /* 🔹 Когда открыто меню — убираем заголовок полностью */
    header.menu-open .site-title {
        display: none;
    }

    /* 🔹 Центрируем пункты при активном меню */
    header.menu-open .nav-list {
        align-items: center;
        justify-content: center;
        text-align: center;
        padding-bottom: 20px;
    }
}

.pdf-files {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pdf-files li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f7f7f7;
    margin: 8px 0;
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.pdf-name {
    font-weight: 600;
    color: #333;
}

.pdf-actions a {
    margin-left: 10px;
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    color: #fff;
    font-size: 0.9em;
}

.btn-view { background-color: #0078D7; }
.btn-download { background-color: #28a745; }

.btn-view:hover { background-color: #005fa3; }
.btn-download:hover { background-color: #218838; }

