/* Основной стиль */
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: #002533;
    color: #FFFFFF;
}

main{
    border-radius: 20px;
    margin: 40px auto;
    line-height: 1.6;
    display: grid;
    justify-content: center;
    border: solid;
    max-width: 1200px;
}


section{
    display: grid;
    justify-items: stretch;
    margin: 15px 20px;
    line-height: 1.6;
}

img{
    width: 100%;
    border-radius: 20px;
}

p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 1.2em;
}

/* Стили для всех заголовков */
h1, h2, h3, h5, h6 {
    font-family: 'Inter', sans-serif;
    color: #B9F700;
    margin-bottom: 0.5em;
    text-align: center;
}

/* Стили для списков */
ul, ol {
    margin: 0;
    padding-left: 20px;
}

li {
    margin-bottom: 0.5em;
}

/* Ссылки */
a {
    color: darkblue;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

/* Хедер */
.main-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #003744;
    position: relative;
}

/* Логотип */
.logo img {
    height: 65px;
    width: 65px;
}

/* Навигация */
.nav-links ul {
    display: flex;
    list-style: none;
    margin: 20px;
    padding: 0;
    gap: 20px;
}

.nav-links ul li {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-links ul li a {
    text-decoration: none;
    color: #FFFFFF;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-links ul li a img {
    width: 20px;
    height: 20px;
}

/* Правый блок */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-right a img {
    width: 20px;
    height: 20px;
}

.language-switch {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #FFFFFF;
    font-size: 14px;
}

.language-switch img {
    width: 20px;
    height: 15px;
}

/* Кнопки */
.btn {
    padding: 5px 15px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
}

.btn.login {
    background-color: #FFFFFF;
    color: #003744;
}

.btn.register {
    background-color: #B9F700;
    color: #003744;
}

/* Бургер-меню */
.menu-toggle {
    display: none;
    font-size: 24px;
    color: white;
    cursor: pointer;
}

/* Общие стили футера */
.main-footer {
    background-color: #003744;
    padding: 20px;
    color: #fff;
    font-family: 'Inter', sans-serif;
    border-top: 1px solid #eaeaea;
}

/* Секции футера */
.footer-sections {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    margin-bottom: 20px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-column ul li {
    margin-bottom: 8px;
}

.footer-column ul li a {
    text-decoration: none;
    color: #fff;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #8bea4f;
}

/* Мобильное приложение */
.mobile-app {
    text-align: center;
    margin-bottom: 20px;
}

.mobile-app .app-download {
    display: inline-flex;
    align-items: flex-end;
    gap: 10px;
    text-decoration: none;
    color: #333;
    font-weight: bold;
    background-color: #000;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
}

.mobile-app img {
    width: 24px;
    height: 24px;
}

/* Способы оплаты */
.payment-methods {
    text-align: center;
    margin-bottom: 20px;
}

.payment-methods .payment-icons img {
    width: 50px;
    margin: 0 10px;
}

/* Социальные сети */
.social-media {
    text-align: center;
}

.social-media .social-icons a {
    margin: 0 10px;
}

.social-media .social-icons img {
    width: 30px;
    height: 30px;
}

@media (max-width: 1216px){
    main{
        margin: 25px 10px;
        border: solid;
    }
}


@media (max-width: 870px){
    .nav-links .calendar{
        display: none;
    }
    .nav-links .rocket{
        display: none;
    }
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .nav-links ul {
        display: none; /* Скрываем меню */
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        background-color: #003744;
        width: 100%;
        padding: 10px 0;
    }

    .nav-links ul {
        margin: 0;
    }

    .nav-links ul.active {
        display: flex; /* Показываем меню, если добавлен класс active */
        align-items: center;
    }


    .menu-toggle {
        display: block; /* Показываем бургер */
    }

    .nav-links ul li a {
        justify-content: center;
    }

    .btn {
        font-size: 12px;
        padding: 10px 30px;
    }

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

    .footer-column {
        text-align: center;
    }
}

@media (max-width: 416px){
    .btn {
        font-size: 12px;
        padding: 10px 12px;
    }
}
