* {
    padding: 0;
    margin: 0;
}

ul {
    list-style-type: none;
}

p,
li {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

h1,
h2,
h3,
h4 {
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.253);
    font-family: 'Montserrat', sans-serif;
}

/* Вся шапка */
.header-container {
    position: fixed;
    width: 100%;
    z-index: 10000;
}


/* Адрес и номер телефона (span) */
.hair {
    background-color: #47c0ec;
    /* Цвет фона */
    /* Flexbox */
    display: flex;
    justify-content: space-between;
    /* Выравнивание по горизонтали */
    align-items: center;
    /* Выравнивание по вертикали */
    /* ТЕКСТ (ШРИФТ)*/
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 500;
    font-style: italic;
    /* Курсив */

    /* ОТСТУП */
    padding: 0.2rem;

    /* Тень */
    box-shadow: 0 10px 10px rgba(0, 0, 0, 0.15);

    /* Горизонтальная линия снизу */
    border-bottom: 2px solid rgba(0, 0, 0, 0.192);
}

/* ------------------------------------------------- */



/* Вся шапка (кроме span)*/
.cap {
    background-color: rgb(255, 255, 255);
    /* Цвет фона */
    display: flex;
    justify-content: space-between;
    /* Тень */
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.15);

    /* Горизонтальная линия снизу */
    border-bottom: 2px solid rgba(80, 80, 80, 0.158);

    /* ОТСТУПЫ */
    top: 0;
    left: 0;
    right: 0;
}

/* ------------------------------------------------- */



/* ЛОГО И ИМЯ (контейнер) */
.header-1 {
    /* Цвет фона */
    /* Flexbox */
    display: flex;
    justify-content: left;
    /* Выравнивание по горизонтали */
    align-items: center;
    /* Выравнивание по вертикали */

    /* ТЕКСТ (ШРИФТ)*/
    font-size: 14px;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    font-style: italic;

    /* ОТСТУП */
    padding: 0.5rem;
}

/* ------------------------------------------------- */



/* логотип (картинка) */
.logo {
    width: 64px;
    height: 64px;
    margin-right: 0.7rem;
    box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.53);
}

/* ------------------------------------------------- */



/* Навигация */
.header-2 {
    display: flex;
    /* Flexbox */
    justify-content: flex-start;
    /* Элементы начинаются с левого края */
    align-items: center;
    /* Выравнивание по вертикали */
    font-size: 18px;
    /* Размер шрифта */
    padding-left: 0;
    /* Убираем отступ слева, если не нужен */
    gap: 1.5rem;
    /* Расстояние между элементами */
}

.header-2 ul {
    /* Список */
    list-style: none;
    white-space: nowrap;
    font-family: 'Montserrat', sans-serif;
    /* перенос строки */
}

/*ТЕКСТ ССЫЛОК В НАВИГАЦИИ */
.header-2 a {
    color: #000;
    text-decoration: none;
    font-size: 14px;
    text-transform: uppercase;
    font-weight: 600 !important;
    /* жирный */
    transition: color 0.3s ease;
    font-family: 'Montserrat', sans-serif;
}

.header-2 a:hover {
    color: #00a8e6;
}


/* Картинка навигации */
.nav-container {
    position: relative;
    /* Родитель для позиционирования */
    display: inline-block;
    /* Чтобы контейнер подстраивался под размер картинки */
    width: 100%;
}

/* Картинка + Текст под навигацией, где находится объект */
.nav {
    width: 100%;
    max-width: 100%;
    height: auto;
}

.nav-text {

    position: absolute;
    top: 50%;
    /* По вертикали — центр */
    left: 5%;
    /* Расстояние от левого края картинки */
    transform: translateY(-50%);
    /* Центрируем только по вертикали (без смещения влево) */

    color: #fff;
    font-size: 50px;
    font-weight: 400;
    font-family: 'Marck Script', cursive;
    text-shadow: 0 2px 6px rgb(0, 0, 0);
}

/* Всплывающие ссылки */
/* Основное меню */
.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-family: 'PT Sans Caption', sans-serif;
}

.menu li {
    position: relative;
}

.menu a {
    text-decoration: none;
    color: #000;
    font-weight: 500;
    transition: color 0.3s ease;
}

.menu a:hover {
    color: #007bff;
}

/* Выпадающий список */
.dropdown {
    position: relative;
    /* Родитель — точка привязки */
}

.dropdown-content {
    position: absolute;
    top: 100%;
    /* Под пунктом меню */
    left: 0;
    /* Привязка по левому краю */
    display: none;
    background-color: #ffffff;
    min-width: max-content;
    /* Подстраивается под текст */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 0.5rem 0;
    z-index: 1000;
}

.dropdown-content li {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 10px 15px;
    color: #333;
    text-decoration: none;
    font-weight: normal;
}

.dropdown-content a:hover {
    background-color: #dbdbdb;
    color: #007bff;
}

/* Показываем подменю при наведении */
.dropdown:hover .dropdown-content {
    display: block;
}

/* Линии между пунктами */
.dropdown-content li:not(:last-child) {
    border-bottom: 1px solid #6b6b6b7e;
}


/* ------------------------------------------------- */


/* ПОИСК*/
.search-form {
    display: flex;
    align-items: center;
    margin-right: 1%;
    margin-left: 1%;
}

/* Поле ввода */
.search-form input[type="search"] {
    width: 320px;
    /* чуть шире, чтобы дышало */
    border: 1px solid #ccc;
    /* лёгкая рамка для контраста */
    border-radius: 25px;
    background-color: #f9f9f9;
    /* мягкий сероватый фон */
    font-size: 16px;
    color: #333;
    outline: none;
    transition: all 0.3s ease;

    /* Тень */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* Эффект при фокусе */
.search-form input[type="search"]:focus {
    background-color: #fff;
    /* белый фон при клике */
    border-color: #00a2ff;
    /* акцент — фиолетовая рамка */
    box-shadow: 0 0 8px rgba(106, 90, 205, 0.4);
    /* подсветка */
    color: #222;
}

/* Цвет и стиль текста placeholder */
.search-form input::placeholder {
    color: #999;
    transition: color 0.3s;
}

/* При фокусе placeholder становится прозрачным */
.search-form input:focus::placeholder {
    color: transparent;
}

/* ------------------------------------------------- */
/* ------------------------------------------------- */
/* ------------------------------------------------- */

/* НАСТРОЙКИ КОНТЕЙНЕРОВ КОНТЕНТА */

main {
    padding-top: 6rem;
    background-color: #00a9e61a;
    border-bottom: 2px solid rgba(0, 0, 0, 0.192);
}

.content {
    margin-left: 10%;
    margin-right: 10%;
    margin-top: 15px;
    margin-bottom: 15px;
    padding: 2rem;
    background-color: #7ccfffc4;
    border-radius: 10px;
    box-shadow: 0 5px 5px rgba(0, 0, 0, 0.15);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.123);
    text-align: justify;
}

.content img {
    max-width: 75%;
    height: auto;
    /* сохраняем пропорции */
    display: block;
    /* чтобы не ломал строки */
    margin: 10px auto;
    /* центрирование (можно убрать) */
}


.content iframe {
    max-width: 75%;
    /* сохраняем пропорции */
    display: block;
    /* чтобы не ломал строки */
    margin: 10px auto;
    /* центрирование (можно убрать) */
}

.content video {
    max-width: 75%;
    /* сохраняем пропорции */
    display: block;
    /* чтобы не ломал строки */
    margin: 10px auto;
    /* центрирование (можно убрать) */
}

.content p {
    word-break: break-word;
    /* или break-all */
    overflow-wrap: break-word;
}

/* ------------------------------------------------- */
/* ------------------------------------------------- */
/* ------------------------------------------------- */

/* ТАБЛИЦА*/
.tables {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

table {
    width: 75%;
    font-family: 'Montserrat', sans-serif;
    font-size: 20px;
    border-collapse: collapse;
    /* убираем двойные линии */

    /* 🔹 Верхняя и нижняя границы таблицы */
    border-top: 4px solid #ffffff;
    border-bottom: 4px solid #ffffff;
}

td {
    padding: 8px 20px;
    border-left: 4px solid #ffffff;
    border-right: 4px solid #ffffff;

}

/* Горизонтальные линии между строками */
tr:not(:last-child) td {
    border-bottom: 4px solid #ffffff;
}

/* Выравнивание */
td:first-child {
    text-align: left;
}

td:last-child {
    text-align: center;
}


/* ------------------------------------------------- */
/* ------------------------------------------------- */
/* ------------------------------------------------- */

/* ПОДВАЛ */

/* НАСТРОЙКА КОНТЕЙНЕРОВ подвала */
.footer {
    flex-direction: column;
    align-items: center;
    display: flex;
    padding: 1%;
    background-color: #585858;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.basement {
    font-size: 12px;
    background-color: #272727;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    color: #ffffff;
}

/* ------------------------------------------------- */
/* БАНЕРЫ */
/* Военный */
.index-baner {
    width: 100%;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 4px rgba(0, 0, 0, 0.4);
}

/* Госуслуги */
.baner {
    padding-top: 3rem;
    width: 50%;
}

/* Футер банеры */
.fbaners {
    margin-top: 2%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    /* 4 равных столбца */
    gap: 10px;
    /* расстояние между баннерами */
    align-items: center;
    justify-items: center;
}

.fbaners2 {
    margin-top: 2%;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 4 равных столбца */
    gap: 10px;
    /* расстояние между баннерами */
    align-items: center;
    justify-items: center;
}

.fbaners2 p {
    font-family: "Ubuntu Condensed", sans-serif;
    color: #ffffff;
    padding-right: 7rem;
}

.fbaners img {
    width: 100%;
    max-width: 400px;
    /* фиксированный размер по желанию */
    height: 500px;
    /* одинаковая высота */
    object-fit: cover;
    /* обрезает красиво */
    border-radius: 20px;
}

.fbaners2 img {
    width: 100%;
    max-width: 800px;
    /* фиксированный размер по желанию */
    height: 900px;
    /* одинаковая высота */
    object-fit: cover;
    /* обрезает красиво */
    border-radius: 20px;
}

.ymp {
    display: inline-block;
    /* Чтобы можно было задавать размеры и центрирование */
    text-align: center;
    /* Центрирование содержимого внутри ссылки */
    border: 2px solid #ccc;
    /* Рамка вокруг ссылки */
    border-radius: 10px;
    /* Закругление углов */
    overflow: hidden;
    /* Чтобы изображение не выходило за рамку */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    /* Плавная анимация */
}

.ymp img {
    display: block;
    width: 500px;
    /* Ширина картинки */
    height: auto;
    border-radius: 10px;
    /* Закругление углов картинки совпадает с рамкой */
}

/* Ссылки */

.external-link {
    font-size: 20px;
    color: #0741ff;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.external-link2 {
    padding-left: 2rem;
    font-size: 30px;
    color: #ffffff;
}


/* ------------------------------------------------- */

.admin-links {
    padding-top: 1em;
    margin-right: 2rem;
}

.admin-links a {
    display: block;
    /* каждая ссылка на новой строке */
    text-decoration: none;
    color: #00a8e6;
}

.admin-links a:last-child {
    margin-bottom: 0;
}

/* ------------------------------------------------- */
/* ------------------------------------------------- */
/* ------------------------------------------------- */


/* СТИЛЬ НОВОСТЕЙ */

.pdf {
    text-align: right;
    padding-bottom: 1rem;
}

.news-text {
    word-wrap: break-word;
    /* перенос длинных слов */
    overflow-wrap: break-word;
    /* для новых браузеров */
    white-space: pre-wrap;
    /* сохраняет переносы строк и переносит при необходимости */
    text-align: justify;
}

.news-date {
    font-size: 18px;
    color: #222222b0;
    text-align: right;
    font-family: 'Vollkorn', serif;
}

button {
    width: 50%;
    padding: 10px 15px;
    border: 1px solid #ccc;
    /* лёгкая рамка для контраста */
    border-radius: 25px;
    background-color: #f9f9f9;
    /* мягкий сероватый фон */
    font-size: 16px;
    color: #333;
    outline: none;
    cursor: pointer;
}

/* СОЗДАНИ НОВЫХ ЗАПИСЕЙ (НОВОСТЕЙ) */
input {
    width: 50%;
    padding: 10px 15px;
    border: 1px solid #ccc;
    /* лёгкая рамка для контраста */
    border-radius: 25px;
    background-color: #f9f9f9;
    /* мягкий сероватый фон */
    font-size: 16px;
    color: #333;
    outline: none;
}

textarea {
    width: 100%;
    max-width: 100%;
    font-size: medium;
}



/* Бургер меню */

/* Стили для бургер-иконки */
.burger {
    margin-right: 3%;
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    margin: auto;
    margin-left: 1%;
    margin-right: 3%;
    width: 40px;
    height: 30px;
    z-index: 10000;
}

.burger span {
    display: block;
    height: 6px;
    background-color: #333;
    border-radius: 3px;
    transition: 0.3s;
}

/* Анимация при открытии */
.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(15px, 10px);
    background-color: #d80000;
}

.burger.active span:nth-child(2) {
    opacity: 0;
}

.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
    background-color: #d80000;
}

/* Скрытое мобильное меню */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    /* за пределами экрана */
    width: 250px;
    height: 100%;
    background-color: #fff;
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    padding: 60px 20px;
    gap: 20px;
    transition: right 0.3s ease-in-out;
    z-index: 999;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
}

/* Когда меню открыто */
.mobile-menu.open {
    right: 0;
}

.mobile-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 18px;
}

/* ------------------------------------------------- */
/* ------------------------------------------------- */
/* ------------------------------------------------- */
/* СЛАЙДЕР В INDEX */
.slide-content {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    /* расстояние между текстом и картинкой */
}

.slide-text {
    flex: 1;
    /* текст занимает оставшееся место */
}

.slide-image img {
    max-height: 100%;
    /* картинка по высоте блока */
    max-width: 100%;
    width: 25rem;
    height: 22rem;
    /* фиксированная ширина картинки */
    border-radius: 10px;
    object-fit: contain;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.news-slider {
    display: flex;
    transition: transform 0.6s ease;
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 15px;
    text-align: center;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    transition: 0.3s;
    user-select: none;
    display: flex;
    /* включаем flexbox */
    align-items: center;
    /* вертикальное центрирование */
    justify-content: center;
    /* горизонтальное центрирование */
    font-size: 30px;

}

.slider-btn.left {
    left: 5px;
}

.slider-btn.right {
    right: 5px;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.8);
}

/* ИЗМЕНЕНИЕ ЭКРАНА */

/* 🔹 Планшеты и меньше */
@media (max-width: 1300px) {

    .burger {
        display: none;
    }

    /* Шапка */
    .hair {
        font-size: 11px;
    }

    .header-1 {
        /* ТЕКСТ (ШРИФТ)*/
        font-size: 12px;
        font-weight: 700;
    }

    .header-2 a {
        font-size: 14px;
    }

    /* Лого */
    .logo {
        width: 56px;
        height: 56px;
    }

    /* Поиск */
    .search-form {
        margin-left: 10.5rem;
        display: flex;
        align-items: center;
        margin: 0;
        margin-right: 3%;
        margin-left: 1%;
    }

    .search-form input[type="search"] {
        font-size: 14px;
        width: 200px;
    }

    /* Таблица */
    table {
        width: 90%;
        font-size: 20px;
    }

    .fbaners {
        margin-top: 2%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        /* 4 равных столбца */
        gap: 10px;
        /* расстояние между баннерами */
        align-items: center;
        justify-items: center;
    }


    .fbaners2 {
        margin-top: 2%;
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        /* 4 равных столбца */
        gap: 10px;
        /* расстояние между баннерами */
        align-items: center;
        justify-items: center;
    }


    .fbaners img {
        width: 100%;
        max-width: 400px;
        height: 500px;
    }

    .fbaners2 img {
        width: 100%;
        max-width: 100%;
        height: 900px;
    }


}

@media (max-width: 1100px) {
    .burger {
        display: none;
    }

    /* Шапка */
    .hair {
        font-size: 11px;
    }

    .header-1 {
        /* ТЕКСТ (ШРИФТ)*/
        font-size: 11px;
        font-weight: 700;
    }

    .header-2 a {
        font-size: 13px;
    }

    /* Лого */
    .logo {
        width: 56px;
        height: 56px;
    }

    /* Поиск */
    .search-form {
        margin-left: 10.5rem;
        display: flex;
        align-items: center;
        margin: 0;
        margin-left: 1%;
        margin-right: 1%;
    }

    .search-form input[type="search"] {
        font-size: 14px;
        width: 130px;
    }


    /* Таблица */
    table {
        width: 90%;
        font-size: 20px;
    }
}

@media (max-width: 900px) {

    .burger {
        display: flex;
    }

    /* Шапка */
    .hair {
        font-size: 11px;
    }

    .header-1 {
        /* ТЕКСТ (ШРИФТ)*/
        font-size: 12px;
        font-weight: 700;
    }

    .header-2 {
        display: none;
    }

    /* Лого */
    .logo {
        width: 56px;
        height: 56px;
    }

    /* Поиск */
    .search-form {
        margin-left: 10.5rem;
        display: flex;
        align-items: center;
        margin-right: 1%;
        margin-left: 1%;

    }

    .search-form input[type="search"] {
        font-size: 14px;
        width: 300px;
    }

    /* Таблица */
    table {
        width: 90%;
        font-size: 18px;
    }

}

@media (max-width: 768px) {
    .burger {
        display: flex;
    }

    /* Шапка */
    .hair {
        font-size: 11px;
    }

    .header-1 {
        /* ТЕКСТ (ШРИФТ)*/
        font-size: 12px;
        font-weight: 700;
    }

    .header-2 {
        display: none;
        font-size: 12px;
    }

    /* Лого */
    .logo {
        width: 56px;
        height: 56px;
    }

    /* Поиск */
    .search-form {
        display: flex;
        align-items: center;
        margin: 0;
    }

    .search-form input[type="search"] {
        font-size: 14px;
        width: 200px;
    }


    /* Таблица */
    table {
        width: 100%;
        font-size: 18px;
    }

    .fbaners {
        margin-top: 2%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        /* 4 равных столбца */
        gap: 10px;
        /* расстояние между баннерами */
        align-items: center;
        justify-items: center;
    }


    .fbaners2 {
        margin-top: 2%;
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        /* 4 равных столбца */
        gap: 10px;
        /* расстояние между баннерами */
        align-items: center;
        justify-items: center;
    }


    .fbaners img {
        width: 100%;
        max-width: 400px;
        height: 400px;
    }

    .fbaners2 img {
        width: 100%;
        max-width: 100%;
        height: 800px;
    }

    .nav-text {
        font-size: 35px;
    }

    .nav {
        height: 80px;
    }
}

@media (max-width: 650px) {

    .burger {
        display: flex;
    }

    /* Шапка */
    .hair {
        font-size: 7px;
    }

    .tables td {
        font-size: 11px;
    }

    .header-1 {
        /* ТЕКСТ (ШРИФТ)*/
        font-size: 12px;
        font-weight: 700;
    }

    .header-2 {
        display: none;
        font-size: 12px;
    }

    /* Лого */
    .logo {
        width: 56px;
        height: 56px;
    }

    /* Поиск */
    .search-form {
        display: flex;
        align-items: center;
        margin: 0;
    }

    .search-form input[type="search"] {
        font-size: 14px;
        width: 100px;
    }

    .nav-text {
        font-size: 25px;
    }

    .content {
        margin-left: 2%;
        margin-right: 2%;
        padding: 1rem;
    }

    /* Таблица */
    table {
        width: 100%;
        font-size: 15px;
    }

    .baner {
        padding-top: 3rem;
        width: 100%;
    }

    .fbaners {
        margin-top: 2%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        /* 4 равных столбца */
        gap: 10px;
        /* расстояние между баннерами */
        align-items: center;
        justify-items: center;
    }


    .fbaners2 {
        margin-top: 2%;
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        /* 4 равных столбца */
        gap: 10px;
        /* расстояние между баннерами */
        align-items: center;
        justify-items: center;
    }


    .fbaners img {
        width: 100%;
        max-width: 300px;
        height: 300px;
    }

    .fbaners2 img {
        width: 100%;
        max-width: 100%;
        height: 600px;
    }

    .ymp {
        width: 24rem;
        height: 24rem;
    }

    .nav-text {
        font-size: 25px;
    }

    .external-link2 {
        font-size: 20px;
    }


    .footer {
        font-size: 13px;
    }
    
}