/* Сброс всех отступов и базовых стилей */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Основные стили для body */
body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f0f4f8;
    color: #333;
    line-height: 1.6;
}

/* Стиль хедера */
header {
    background: #0d3b33;
    color: #fff;
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid #ddd;
    position: relative;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

header p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

/* Ссылки в хедере */
.header-links {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.login-link, .support-link {
    background-color: #087060;
    color: #fff;
    padding: 12px 20px;
    font-size: 1.1rem;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.login-link:hover, .support-link:hover {
    background-color: #0d3b33;
}

.login-link i, .support-link i {
    margin-right: 10px;
}

/* Основное содержимое */
.main-content {
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
    text-align: center;
}

.main-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.main-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 40px;
}

/* Блоки с функциями */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 60px;
}

.feature-box {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: center;
}

.feature-box h3 {
    font-size: 1.6rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.feature-box p {
    font-size: 1rem;
    color: #555;
}

.feature-box img {
    width: 60px;
    margin-bottom: 15px;
}

/* Стили для FAQ секции */
.faq-section {
    background: #fff;
    padding: 40px 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 80px;
}

.faq-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    font-weight: 600;
}

.faq-item {
    margin-bottom: 15px;
}

.faq-item button {
    width: 100%;
    background: #0d3b33;
    color: #fff;
    border: none;
    padding: 15px;
    font-size: 1.1rem;
    border-radius: 5px;
    text-align: left;
    cursor: pointer;
    transition: background 0.3s ease;
}

.faq-item button:hover {
    background: #087060;
}

.faq-answer {
    display: none;
    background: #f9f9f9;
    padding: 15px;
    margin-top: 10px;
    border-left: 5px solid #0d3b33;
    border-radius: 5px;
    font-size: 1rem;
    color: #555;
}

/* Стиль футера */
footer {
    text-align: center;
    padding: 30px 20px;
    background: #0d3b33;
    color: #fff;
}

footer p {
    font-size: 1rem;
}

/* Стиль для модального окна */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
    padding-top: 60px;
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 30px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Стили для закрытия модального окна */
.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}

/* Стили для формы внутри модального окна */
.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Стили для полей ввода */
input[type="text"],
input[type="email"],
textarea {
    padding: 12px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 100%;
    background-color: #f9f9f9;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    border-color: #087060;
    background-color: #fff;
}

/* Стили для кнопки отправки */
button[type="submit"] {
    background-color: #087060;
    color: white;
    padding: 12px 20px;
    font-size: 1.1rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
    background-color: #0d3b33;
}

/* Стили для заголовков формы */
.modal-content h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}

.modal-content label {
    font-size: 1rem;
    font-weight: 600;
}

/* Мобильная версия */
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    header p {
        font-size: 1rem;
    }

    .header-links {
        flex-direction: column;
        align-items: center;
    }

    .login-link, .support-link {
        width: 100%;
        text-align: center;
    }

    .main-content h2 {
        font-size: 1.8rem;
    }

    .main-content p {
        font-size: 1rem;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .modal-content {
        margin: 20% auto;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.8rem;
    }

    header p {
        font-size: 0.9rem;
    }

    .main-content h2 {
        font-size: 1.5rem;
    }

    .main-content p {
        font-size: 0.9rem;
    }

    .faq-section h2 {
        font-size: 1.5rem;
    }

    .faq-item button {
        font-size: 1rem;
    }

    .faq-answer {
        font-size: 0.9rem;
    }
}