/* Основные Стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #000;
    color: #fff;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 20px 0;
}

/* Хедер */
.header {
    background: #111;
    padding: 10px 0; /* Уменьшено для компактности */
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-text .site-title {
    color: #fff;
    font-size: 1.5rem;
    font-weight: bold;
    text-decoration: none;
}

/* Навигационное меню */
.nav ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: #1E90FF;
}

/* Кнопка Гамбургера */
.hamburger {
    display: none; /* Скрыто по умолчанию */
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Изменения при активном состоянии гамбургера */
.hamburger.active .bar:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Активное меню */
.nav.active ul {
    display: block;
}

/* Кнопки */
.btn-primary {
    background: #1E90FF;
    color: #fff;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease, transform 0.3s ease;
}

.btn-primary:hover {
    background: #63B3ED;
    transform: scale(1.05);
}

.btn-secondary {
    background: #fff;
    color: #000;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.btn-secondary:hover {
    background: #1E90FF;
    color: #fff;
    transform: scale(1.05);
}

/* Герой Секция */
.hero {
    background: url('images/hero-bg.jpg') no-repeat center center/cover;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 60px; /* Уменьшено для учета уменьшенного хедера */
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Затемнение фона */
}

.hero .container {
    position: relative;
    z-index: 1;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #fff;
    animation: fadeInDown 1s ease-out;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #ccc;
    animation: fadeInUp 1s ease-out;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* Почему Выбирают Нас */
.why-us {
    background: #222;
    padding: 60px 0;
    margin-top: 100px; /* Для отступа от хедера */
}

.why-us h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #1E90FF;
    font-size: 2rem;
}

.why-us-content,
.why-us-image {
    flex: 1;
}

.why-us-content {
    padding-right: 20px;
}

.why-us-image {
    padding-left: 20px;
}

.why-us-content p {
    color: #ddd;
    font-size: 1.1rem;
}

.why-us-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Как Это Работает */
.how-it-works {
    background: #000;
    padding: 60px 0;
}

.how-it-works h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #1E90FF;
    font-size: 2rem;
}

.steps {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.step {
    background: #111;
    padding: 40px 20px 20px 20px;
    border-radius: 10px;
    flex: 1 1 calc(50% - 20px);
    min-width: 250px;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.step-number {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #1E90FF;
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    z-index: 1;
}

.step h3 {
    margin-top: 60px; /* Отступ сверху для избежания перекрытия */
    margin-bottom: 10px;
    color: #fff;
    font-size: 1.3rem;
}

.step p {
    color: #ccc;
    font-size: 1rem;
}

/* Что Вы Получаете */
.benefits {
    background: #111;
    padding: 60px 0;
}

.benefits h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #1E90FF;
    font-size: 2rem;
}

.benefits-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.benefit {
    background: #000;
    padding: 20px;
    border-radius: 10px;
    flex: 1 1 calc(50% - 20px);
    min-width: 250px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benefit:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.benefit h3 {
    margin-bottom: 10px;
    color: #1E90FF;
    font-size: 1.3rem;
}

.benefit p {
    color: #ccc;
    font-size: 1rem;
}

/* Дополнительные Преимущества */
.additional-benefits {
    background: #222;
    padding: 60px 0;
}

.additional-benefits h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #1E90FF;
    font-size: 2rem;
}

.additional-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.additional {
    background: #000;
    padding: 20px;
    border-radius: 10px;
    flex: 1 1 calc(33.333% - 20px);
    min-width: 250px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.additional:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.additional h3 {
    margin-bottom: 10px;
    color: #1E90FF;
    font-size: 1.3rem;
}

.additional p {
    color: #ccc;
    font-size: 1rem;
}

/* FAQ */
.faq {
    background: #111;
    padding: 60px 0;
}

.faq h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #1E90FF;
    font-size: 2rem;
}

.accordion {
    max-width: 800px;
    margin: auto;
}

.accordion-item {
    background: #000;
    padding: 15px 20px;
    border-radius: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.accordion-item:hover {
    background: #1E90FF;
    transform: scale(1.02);
}

.accordion-header {
    font-size: 1.1rem;
    color: #fff;
}

.accordion-content {
    display: none;
    margin-top: 10px;
    color: #ccc;
    font-size: 1rem;
}

.accordion-item.active .accordion-content {
    display: block;
}

.accordion-item.active .accordion-header {
    color: #000;
}

/* Контакты */
.contact {
    background: #000;
    padding: 60px 0;
}

.contact h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #1E90FF;
    font-size: 2rem;
}

.contact p {
    text-align: center;
    margin-bottom: 20px;
    color: #ccc;
    font-size: 1rem;
}

.contact-info {
    list-style: none;
    text-align: center;
    gap: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-info li {
    margin-bottom: 10px;
    font-size: 1rem;
}

.contact-info a {
    color: #1E90FF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #63B3ED;
}

/* Футер */
.footer {
    background: #111;
    padding: 20px 0;
    text-align: center;
}

.footer p {
    color: #ccc;
    font-size: 0.9rem;
}

/* Анимации */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Мобильная Адаптация */
@media (max-width: 768px) {
    /* Отображение гамбургера */
    .hamburger {
        display: flex;
    }

    /* Скрытие навигационного меню по умолчанию */
    .nav {
        position: absolute;
        top: 60px; /* Высота хедера */
        right: 0;
        width: 100%;
        background: #111;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease-in-out;
    }

    .nav ul {
        flex-direction: column;
        align-items: center;
        padding: 20px 0;
    }

    .nav.active {
        max-height: 300px; /* Достаточная высота для отображения всех пунктов меню */
    }

    .nav.active ul {
        gap: 10px;
    }

    .steps, .benefits-list, .additional-list {
        flex-direction: column;
    }

    .step, .benefit, .additional {
        flex: 1 1 100%;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .why-us-content, .why-us-image {
        padding: 0;
    }

    .step h3 {
        margin-top: 20px; /* Дополнительный отступ для мобильных устройств */
    }

    .step-number {
        top: 10px;
        left: 10px;
    }

    /* Плавное открытие меню */
    .nav ul li {
        width: 100%;
        text-align: center;
    }
}
