/* Базовая обертка */

.hero {
    position: relative;
    min-height: 620px;
    color: var(--hero-text-color);
    font-family: var(--hero-font-main);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__bg {
    position: absolute;
    inset: 0;
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: var(--hero-overlay-color);
}

/* Контент */

.container {
    max-width: 1440px;
    padding-inline: 50px;
    margin-inline: auto;
}

.hero__content {
    position: relative;
    z-index: 1;
    padding-top: 133px;
    padding-bottom: 133px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* Eyebrow text */
.hero__eyebrow {
    display: block;
    color: var(--white-100, #FFF);
    text-align: center;
    font-family: var(--font-family);
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: 1.4;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 16px;
    opacity: 0.9;
}

.hero__title {
    color: var(--white-100, #FFF);
    text-align: center;

    /* H1 */
    font-family: var(--font-family);
    font-size: 66px;
    font-style: normal;
    font-weight: 600;
    line-height: 103%;
}

.hero__text {
    color: var(--white-100, #FFF);
    text-align: center;

    /* Body */
    font-family: var(--font-family);
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 22px; /* 137.5% */
    padding: 40px 0;
    max-width: 756px;
}

/* Кнопки */

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 30px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease,
    transform 0.1s ease;
}

.btn--primary {
    background: var(--Red, #CC2229);
    border: none;
    color: #ffffff;
}

.btn--primary:hover {
    background-color: var(--Red, #CC2229);
    transform: translateY(-1px);
}

.btn--outline {
    border: 1px solid var(--white-100, #FFF);
    background-color: transparent;
    color: #ffffff;
    backdrop-filter: blur(8px);
}

.btn--outline:hover {
    border-color: #ffffff;
    background-color: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}

/* Иконка в кнопке телефона */

.btn__icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   HEIGHT VARIANTS
   ======================================== */

.hero--small {
    min-height: 400px;
}

.hero--small .hero__content {
    padding-top: 100px;
    padding-bottom: 100px;
}

.hero--medium {
    min-height: 520px;
}

.hero--medium .hero__content {
    padding-top: 120px;
    padding-bottom: 120px;
}

.hero--large {
    min-height: 620px;
}

.hero--full {
    min-height: 100vh;
}

.hero--full .hero__content {
    padding-top: 180px;
    padding-bottom: 180px;
}

/* ========================================
   CONTENT ALIGNMENT
   ======================================== */

.hero--align-left .hero__content {
    align-items: flex-start;
    text-align: left;
}

.hero--align-left .hero__eyebrow,
.hero--align-left .hero__title,
.hero--align-left .hero__text {
    text-align: left;
}

.hero--align-right .hero__content {
    align-items: flex-end;
    text-align: right;
}

.hero--align-right .hero__eyebrow,
.hero--align-right .hero__title,
.hero--align-right .hero__text {
    text-align: right;
}

.hero--align-center .hero__content {
    align-items: center;
    text-align: center;
}

/* ========================================
   SERVICE HERO SPECIFIC
   ======================================== */

.hero--service {
    /* Default service hero styles */
}

.hero--service .hero__title {
    max-width: 900px;
}

/* ========================================
   RESPONSIVE STYLES
   ======================================== */

@media (max-width: 1024px) {
    .container {
        padding-inline: 40px;
    }

    .hero__title {
        font-size: 56px;
        line-height: 1.2;
    }

    .hero__eyebrow {
        font-size: 14px;
    }

    .hero__content {
        padding-top: 100px;
        padding-bottom: 100px;
    }

    .hero--full .hero__content {
        padding-top: 140px;
        padding-bottom: 140px;
    }
}

@media (max-width: 768px) {
    .container {
        padding-inline: 20px;
    }

    .hero {
        min-height: 520px;
    }

    .hero--small {
        min-height: 350px;
    }

    .hero--small .hero__content {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .hero--medium {
        min-height: 450px;
    }

    .hero--full {
        min-height: 100svh;
    }

    .hero__title {
        font-size: 44px;
        line-height: 1.2;
    }

    .hero__eyebrow {
        font-size: 12px;
        margin-bottom: 12px;
    }

    .hero__text {
        padding: 24px 0;
        font-size: 14px;
    }

    .hero__actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .btn {
        width: 100%;
        justify-content: center;
    }

    /* On mobile, center alignment is forced for better UX */
    .hero--align-left .hero__content,
    .hero--align-right .hero__content {
        align-items: center;
        text-align: center;
    }

    .hero--align-left .hero__eyebrow,
    .hero--align-left .hero__title,
    .hero--align-left .hero__text,
    .hero--align-right .hero__eyebrow,
    .hero--align-right .hero__title,
    .hero--align-right .hero__text {
        text-align: center;
    }
}

/* ========================================
   REDUCED MOTION
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    .btn {
        transition: none;
    }

    .btn:hover {
        transform: none;
    }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .hero {
        min-height: auto;
        color: #000;
        background: #fff;
    }

    .hero__bg,
    .hero__overlay {
        display: none;
    }

    .hero__content {
        padding: 20px 0;
        align-items: flex-start;
        text-align: left;
    }

    .hero__eyebrow,
    .hero__title,
    .hero__text {
        color: #000;
        text-align: left;
    }

    .hero__actions {
        display: none;
    }
}
