.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 900px;
    background-size: cover;
    background-position: top left;
    background-color: var(--color-black);
    color: #fff;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.65) 100%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.45) 100%);
    pointer-events: none;
    animation: pulse-gradient 2.5s ease-in-out infinite;
    animation-delay: 0.4s;
}

@keyframes pulse-gradient {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

/* ===== Верхняя плашка поверх баннера ===== */

.hero__topbar {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 3vw;
    flex-wrap: wrap;
    padding: 28px var(--section-padding-x) 0;
}

.hero__burger {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: var(--color-cream);
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 500;
    text-transform: uppercase;
}
.hero__burger-icon {
    display: flex;
    flex-direction: column;
  
}
.hero__burger-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--color-cream);
    border-radius: 2px;
}

.hero__topbar-contacts {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}
.hero__topbar-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-cream);
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 18px;
}
.hero__topbar-icon {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
}

/* ===== Контент ===== */

.hero__inner {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-block: clamp(42px, 3.2vw, 70px)  clamp(40px, 8vw, 100px);
}

.hero__title {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(40px, 5.2vw, 100px);
    font-weight: 400;
    line-height: 1.1;
    text-transform: uppercase;
}

.hero__bottom {
    margin-top: auto;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.hero__content {
    display: flex;
    flex-direction: column;
    gap: 17px;
    max-width: 687px;
    flex: 1;
    min-width: 280px;
}

.hero__subtitle {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 24px;
    font-weight: 500;
    line-height: 1.4;
}

.hero__buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero__button {
    flex: 1;
    min-width: 200px;
    padding: 16px 40px;
    border-radius: 8px;
    text-align: center;
    text-decoration: none;
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}
.hero__button:hover {
    opacity: 0.85;
}
.hero__button--primary {
    background: var(--color-tangerine);
    color: #fff;
}
.hero__button--secondary {
    background: rgba(255, 255, 255, 0.79);
    color: var(--color-black);
}

/* ===== Плашки-преимущества ===== */

.hero__stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    flex: 1 1;
    justify-content: flex-end;
}

.hero__stat {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero__stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
 
}
.hero__stat-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.hero__stat-text {
    font-family: var(--font-sans);
    font-size: 18px;
    line-height: 1.4;
    max-width: 220px;
}

/* ===== Адаптив ===== */

@media (max-width: 1199px) {
    .hero__bottom {
        align-items: flex-start;
        gap: 24px;
    }
    .hero__stats {
      justify-content: flex-start;
        align-items: flex-start;
        gap: 12px;
    }

.hero__buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    flex-direction: column;
}


}

@media (max-width: 768px) {
    .hero__topbar-contacts {
        display: none;
    }
    .hero__buttons {
        flex-direction: column;
    }
    .hero__button {
        width: 100%;
    }
    .hero__subtitle {
        font-size: 18px;
    }
}


@media (max-width: 480px) {

    .hero {
    background-position: 34% top;
}

.hero::before {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0) 12%, rgb(0 0 0 / 66%) 77%);
    
}

.hero__bottom {

    flex-direction: column-reverse;
}
}