﻿/* Общие стили */
body, html {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    scroll-behavior: smooth;
    overflow-x: hidden;
    background-color: #0e1621;
    color: #ffffff;
}
p{    font-size: 1.25em;}

/* Шрифты */
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

/* Блоки */
.block {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
}

.dark {
    background-color: #0e1621;
    color: #ffffff;
}

.light {
    background-color: #f2f3ff;
    color: #0e1621;
}

.block ul {
    padding: 0;
}

.block ul li {
    line-height: 1.5em;
    list-style: none;
    padding: 0.5em 0;
    text-align: left;
    font-size: 1.25em;
}

.block ul li a {    text-decoration: underline;}

.light ul li a {
    color: #0560bb;
}

.dark ul li a {
    color: #cfdbff;
}

/* Заголовки */
h1, h2 {
    font-weight: 700;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 2px;
}

h1 {
    font-size: 3rem;
    color: #5eb5f7;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #5eb5f7;
    position: relative;
    text-align: center;
    padding: 0 60px;
}

h2::before,
h2::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 50px;
    height: 2px;
    transform: translateY(-50%);
}

h2::before {
    left: 0;
    background: linear-gradient(90deg, transparent, #5eb5f7);
}

h2::after {
    right: 0;
    background: linear-gradient(90deg, #5eb5f7, transparent);
}

/* Кнопки */
.btn {
    display: inline-block;
    padding: 10px 20px;
    min-width: 4em;
    margin: 5px;
    background-color: #5eb5f7;
    color: #0e1621;
    border: none;
    border-radius: 5px;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #4a9ed8;
}

.nav-links a:hover {
    color: #ffffff !important;
}

.scroll-links a:hover {
    color: #0e1621 !important;
}

/* Ссылки */
a {
    color: #5eb5f7;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #4a9ed8;
}

/* Меню */
#navbar {
    position: fixed;
    top: 0;
    right: 0;
    padding: 20px 20px 20px 10%;
    z-index: 1000;
    background: linear-gradient(45deg, transparent 30%, #0e1720 30%);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: #5eb5f7;
    margin: 4px 0;
    transition: 0.3s;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: #ffffff;
}

/* Адаптивность */
@media (max-width: 768px) {
    #navbar {
        position: static; /* Меню статично на мобильных устройствах */
        width: 100%;
        padding: 10px 0;
        background-color: green; /* Зеленая заливка */
        text-align: center;
    }

    .nav-links {
        display: flex
;
        flex-direction: row;
        justify-content: center;
        gap: 1.25em;
        padding: 10px 0;
        position: fixed;
        background: #0e1720;
        width: -webkit-fill-available;
        top: 0;
        font-size: 1.25em;
    }

    .hamburger {
        display: none; /* Скрываем кнопку гамбургера */
    }

    .close-btn {
        display: none; /* Скрываем кнопку закрытия */
    }
}

/* Подвал */
footer {
    background-color: #0e1621;
    color: #ffffff;
    text-align: center;
    padding: 20px;
}

footer nav {
    margin: 10px 0;
}