* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background: #f4f6f9;
    scroll-behavior: smooth;
}

/* Верхняя шапка */
.top-header {
    background: #2ecc71;
    color: white;
    padding: 15px;
    text-align: center;
}

/* Меню */
.navbar {
    background: #3498db;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-menu {
    display: flex;
    justify-content: center;
    list-style: none;
}

.nav-menu li a {
    display: block;
    padding: 15px 20px;
    color: white;
    text-decoration: none;
}

.nav-menu li a:hover {
    background: rgba(255,255,255,0.2);
}

/* Бургер */
.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
}

.burger span {
    width: 25px;
    height: 3px;
    background: blue;
    margin: 4px 0;
    transition: 0.3s;
}

.burger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.burger.active span:nth-child(2) {
    opacity: 0;
}
.burger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Контент */
.container {
    display: flex;
    padding: 20px;
    gap: 20px;
}

.content {
    flex: 3;
}

.sidebar {
    flex: 1;
    background: white;
    padding: 15px;
    border-radius: 8px;
}

/* Заголовки */
h1, h2, h3 {
    color: #2c8f6b;
    margin-bottom: 15px;
}

/* Галерея */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
}

.gallery img {
    width: 100%;
    border-radius: 8px;
    transition: 0.3s;
    cursor: pointer;
}

.gallery img:hover {
    transform: scale(1.1);
}

/* Подвал */
.footer {
    background: #2c3e50;
    color: white;
    padding: 30px;
}

.footer-columns {
    display: flex;
    justify-content: space-between;
}

.sub-footer {
    background: #1a252f;
    color: white;
    text-align: center;
    padding: 10px;
}

/* Кнопка вверх */
#toTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #2ecc71;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
}

/* Адаптив */
@media (max-width: 768px) {

    .nav-menu {
        position: fixed;
        top: 60px;
        right: -100%;
        flex-direction: column;
        background: #3498db;
        width: 200px;
        height: 100%;
        transition: 0.3s;
    }

    .nav-menu.active {
        right: 0;
    }

    .burger {
        display: flex;
    }

    .container {
        flex-direction: column;
    }

    .sidebar {
        order: 2;
    }

    .footer-columns {
        flex-direction: column;
        gap: 20px;
    }
}