html,
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f7fb;
    color: #1a1a1a;
    overflow-x: hidden;
}

/* Общий макет */

.layout {
    display: flex;
    min-height: 100vh;
}

/* ЛЕВОЕ МЕНЮ */

.sidebar {
    width: 260px;
    background: #0d1b3d;
    padding: 20px 15px;
    box-shadow: 4px 0 15px rgba(0, 0, 0, 0.2);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 25px;
}

.logo img {
    height: 80px;
    width: auto;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* КНОПКИ */

.tab-btn {
    background: #162a5a;
    border: 1px solid #294a9c;
    color: #ffffff;
    padding: 12px 14px;
    border-radius: 8px;
    text-align: left;
    cursor: pointer;
    transition: 0.2s;
    font-size: 15px;
}

.tab-btn:hover {
    background: #1f3e8a;
    transform: translateX(4px);
}

.tab-btn.active {
    background: #2f5dff;
    color: #ffffff;
    font-weight: bold;
}

.site-btn {
    display: inline-block;
    background: #2f5dff;
    color: #fff;
    padding: 12px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
}

.site-btn:hover {
    background: #1f3e8a;
}


/* КОНТЕНТ */

.content {
    flex: 1;
    padding: 30px 40px;
    background: #ffffff;
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

h1,
h2 {
    color: #0d1b3d;
    text-align: center;
}

p,
li {
    font-size: 22px;
    line-height: 1.7;
    color: #333333;
}

ul {
    padding-left: 20px;
}

/* КАРТИНКИ */

.zoom-img {
    max-width: 300px;
    display: block;
    margin: 20px auto;
    border-radius: 12px;
    transition: 0.3s;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.zoom-img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(47, 93, 255, 0.4);
}

figcaption {
    text-align: center;
    color: #666666;
}

/* ПОДВАЛ */

footer {
    background: #0d1b3d;
    color: #ffffff;
    padding: 12px;
    text-align: center;
}

.marquee {
    overflow: hidden;
    white-space: nowrap;
    animation: marquee 18s linear infinite;
}

/* МОДАЛКА */

.modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 20, 50, 0.9);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(47, 93, 255, 0.5);
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 36px;
    color: #ffffff;
    cursor: pointer;
}

/* АНИМАЦИИ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes marquee {
    from {
        transform: translateX(50%);
    }

    to {
        transform: translateX(-50%);
    }
}

/* АДАПТАЦИЯ */

@media (max-width: 900px) {
    .layout {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        display: flex;
        overflow-x: auto;
    }

    .sidebar nav {
        flex-direction: row;
    }

    .tab-btn {
        white-space: nowrap;
    }
}