/* ============================================
   STYLE.CSS - Основные стили проекта
   ============================================ */

/* ========== ОБЩИЕ СТИЛИ ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    font-family: "Roboto", serif;
    font-size: 16px;
    font-weight: 400;
    color: rgb(252, 252, 252);
    min-height: 100vh;
}

/* ========== НАВИГАЦИЯ ========== */
.nav_menu {
    width: 100%;
    height: 80px;
    background: linear-gradient(55deg, #182531 0%, rgb(53, 65, 83) 100%);
    padding: 12px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #2b3b48;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    left: 0;
    z-index: 1000;
}

.nav_logo_container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav_logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #2b5278;
}

.nav_logo_container a {
    color: #fff;
    text-decoration: none;
    font-size: 22px;
    font-weight: 700;
    background: linear-gradient(135deg, #4fc3f7, #2b5278);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.nav_logo_container a:hover {
    transform: scale(1.05);
}

.nav_buttons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav_buttons a {
    color: #6d8a9e;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
}

.nav_buttons a:hover {
    color: #fff;
    background: rgba(43, 82, 120, 0.2);
}

.nav_buttons a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: #4fc3f7;
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav_buttons a:hover::after {
    width: 60%;
}

.nav_buttons a.active {
    color: #4fc3f7;
}

.nav_buttons a.active::after {
    width: 60%;
}

/* ========== АДАПТИВ НАВИГАЦИИ ========== */
@media (max-width: 600px) {
    .nav_menu {
        height: 15vh;
        padding: 10px 16px;
        flex-direction: column;
        justify-content: space-around;
        gap: 10px;
    }

    .nav_buttons {
        width: 100%;
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
    }

    .nav_buttons a {
        font-size: 13px;
        padding: 6px 12px;
    }

    .nav_logo_container a {
        font-size: 18px;
    }
}

/* ========== ФОНОВЫЕ КРУГИ (ОБЩАЯ СТРУКТУРА) ========== */
/* Стили для кругов - БЕЗ ФОНА, только позиционирование и анимация */
.circles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.circles li {
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    /* ФОН ЗАДАЁТСЯ В КАЖДОЙ СТРАНИЦЕ ОТДЕЛЬНО */
    animation: animate 25s linear infinite;
    bottom: -150px;
    border-radius: 50%;
}

/* Позиционирование каждого круга */
.circles li:nth-child(1) {
    left: 25%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}

.circles li:nth-child(2) {
    left: 10%;
    width: 20px;
    height: 20px;
    animation-delay: 2s;
    animation-duration: 12s;
}

.circles li:nth-child(3) {
    left: 70%;
    width: 20px;
    height: 20px;
    animation-delay: 4s;
}

.circles li:nth-child(4) {
    left: 40%;
    width: 60px;
    height: 60px;
    animation-delay: 0s;
    animation-duration: 18s;
}

.circles li:nth-child(5) {
    left: 65%;
    width: 20px;
    height: 20px;
    animation-delay: 0s;
}

.circles li:nth-child(6) {
    left: 75%;
    width: 110px;
    height: 110px;
    animation-delay: 3s;
}

.circles li:nth-child(7) {
    left: 35%;
    width: 150px;
    height: 150px;
    animation-delay: 7s;
}

.circles li:nth-child(8) {
    left: 50%;
    width: 25px;
    height: 25px;
    animation-delay: 15s;
    animation-duration: 45s;
}

.circles li:nth-child(9) {
    left: 20%;
    width: 15px;
    height: 15px;
    animation-delay: 2s;
    animation-duration: 35s;
}

.circles li:nth-child(10) {
    left: 85%;
    width: 150px;
    height: 150px;
    animation-delay: 0s;
    animation-duration: 11s;
}

/* ========== АНИМАЦИЯ КРУГОВ ========== */
@keyframes animate {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 0;
    }

    100% {
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }
}

/* ========== УТИЛИТЫ ========== */

/* Контейнер */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Скрытие элементов */
.hidden {
    display: none !important;
}

/* Выравнивание текста */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

/* Отступы */
.mt-10 {
    margin-top: 10px;
}

.mt-20 {
    margin-top: 20px;
}

.mt-30 {
    margin-top: 30px;
}

.mb-10 {
    margin-bottom: 10px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-30 {
    margin-bottom: 30px;
}

/* ========== СКРОЛЛБАР ========== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #0b141a;
}

::-webkit-scrollbar-thumb {
    background: #2b3b48;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3b5b6f;
}

/* ========== ВЫДЕЛЕНИЕ ТЕКСТА ========== */
::selection {
    background: rgba(43, 82, 120, 0.5);
    color: #fff;
}

::-moz-selection {
    background: rgba(43, 82, 120, 0.5);
    color: #fff;
}

/* ========== ССЫЛКИ ========== */
a {
    color: #4fc3f7;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #81d4fa;
}

/* ========== КНОПКИ ========== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, #2b5278, #1e3f5f);
    color: #fff;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(43, 82, 120, 0.4);
}

.btn-danger {
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    color: #fff;
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(211, 47, 47, 0.4);
}

.btn-success {
    background: linear-gradient(135deg, #388e3c, #2e7d32);
    color: #fff;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(56, 142, 60, 0.4);
}

/* ========== ЗАГРУЗКА ========== */
.loading {
    position: relative;
    color: transparent !important;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 3px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========== УВЕДОМЛЕНИЯ ========== */
.notification {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 16px;
    z-index: 9999;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.3s ease;
    font-weight: 500;
    max-width: 90%;
    text-align: center;
}

.notification-success {
    background: #4caf50;
    color: #fff;
}

.notification-error {
    background: #f44336;
    color: #fff;
}

.notification-warning {
    background: #ff9800;
    color: #fff;
}

.notification-info {
    background: #2b5278;
    color: #fff;
}

@keyframes slideUp {
    from {
        transform: translateX(-50%) translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    to {
        transform: translateX(-50%) translateY(30px);
        opacity: 0;
    }
}