/* === Hero Section === */
.hero-section {
    background: var(--color-green-main);
}

.hero-container {
    max-width: 1920px;
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.hero-decor {
    position: absolute;
    bottom: 0;
    width: 846px;
    height: 362px;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.hero-decor-left { left: 0; }
.hero-decor-right { right: 0; }

.hero-decor img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    padding: 96px 48px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-family: var(--font-jetbrains-mono);
    font-weight: 500;
    font-size: var(--font-size-xl);
    line-height: var(--line-height-normal);
    color: var(--color-white);
    text-align: center;
    max-width: 954px;
    margin: 0;
}

.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.hero-section .btn {
    opacity: 1;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.hero-section .btn:hover {
    opacity: 1;
    text-decoration: none;
}

.hero-section .btn:active {
    text-decoration: none;
}

.btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border-radius: 2px;
    text-decoration: none;
    font-family: var(--font-golos-text);
    font-weight: 700;
    font-size: var(--font-size-base);
    line-height: var(--line-height-relaxed);
    transition: opacity 0.2s ease;
}

.btn-secondary {
    background: var(--color-white);
    border: 1px solid var(--color-grey-400);
    color: var(--color-dark-gray);
}

.btn-primary {
    background: var(--color-dark-gray);
    border: 1px solid var(--color-dark-gray);
    color: var(--color-white);
}

.hero-section .btn-hero-secondary:hover,
.hero-section .btn-hero-secondary:active {
    background: transparent;
    border-color: var(--color-white);
    color: var(--color-white);
}

.hero-section .btn-hero-primary:hover,
.hero-section .btn-hero-primary:active {
    background: transparent;
    border-color: var(--color-dark-gray);
    color: var(--color-white);
}

.hero-bottom {
    max-width: 960px;
    margin: 0 auto;
    border-radius: 32px 32px 0 0;
    background: var(--color-green-dark);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.hero-bottom img {
    width: 100%;
    height: auto;
}

/* Адаптация hero-блока для планшетов и мобильных */
@media (max-width: 1280px) {
    .hero-content {
        padding: 72px 32px;
        gap: 64px;
    }

    .hero-decor {
        width: 600px;
        height: 280px;
    }

    .hero-bottom {
        max-width: 100%;
        border-radius: 24px 24px 0 0;
    }
}

@media (max-width: 768px) {
    .hero-content {
        padding: 56px 16px;
        gap: 48px;
        align-items: flex-start;
    }

    .hero-title {
        font-size: 32px;
        text-align: left;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    /* Убираем декоративные фоны, чтобы не мешали на маленьких экранах */
    .hero-decor {
        display: none;
    }
}
