.hero {
    position: relative;
    width: 100%;
    min-height: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    margin-top: 0;
    padding-top: clamp(1rem, 2vw, 2rem);
    overflow: hidden;
}

.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transform: scale(1.1);
    transition: opacity 2s ease-in-out, transform 8s ease-out;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: min(1425px, 95%);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 2.5vw, 2.5rem);
    width: 100%;
    animation: fadeInUp 1s ease-out 0.3s both;
    margin-top: clamp(-2rem, -3vw, -1rem);
}

.hero-title {
    font-family: 'Montserrat', sans-serif !important;
    font-style: normal;
    font-size: clamp(2rem, 4.5vw, 4.5rem);
    font-weight: 500;
    line-height: 1.223;
    color: #FFFFFF;
    text-shadow: 0px clamp(0.125rem, 0.25vw, 0.25rem) clamp(0.125rem, 0.25vw, 0.25rem) rgba(0, 0, 0, 0.25);
    margin-bottom: clamp(1.5rem, 4vw, 4rem);
    animation: fadeInUp 1s ease-out 0.5s both;
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.hero-title-bold {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 500;
}

.hero-title-light {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 500;
    font-size: 0.9em;
}

/* На узких экранах делаем "МОСКВА И ОБЛАСТЬ" в одну строку */
body.mobile-only .hero-title-light,
html.mobile-only .hero-title-light {
    font-size: 0.75em !important;
    white-space: nowrap !important;
    display: inline-block !important;
}

.hero-description {
    font-size: clamp(1.125rem, 1.75vw, 1.75rem);
    font-weight: 300;
    font-family: 'Commissioner', sans-serif !important;
    letter-spacing: clamp(0.1px, 0.188vw, 0.188px);
    color: var(--color-white);
    margin-bottom: clamp(2rem, 4vw, 4rem);
    max-width: min(1000px, 90%);
    line-height: 1.6;
    animation: fadeInUp 1s ease-out 0.7s both;
}

.hero-btn {
    background-color: #D9CAAB;
    color: var(--color-white);
    border: none;
    border-radius: clamp(0.5rem, 0.75vw, 0.75rem);
    padding: clamp(1rem, 1.25vw, 1.25rem) clamp(2rem, 3.75vw, 3.75rem);
    font-size: clamp(1rem, 1.25vw, 1.25rem);
    font-weight: 400;
    font-family: Commissioner, sans-serif;
    line-height: 1.2;
    /* padding-top переопределен в global.css для мобильных */
    padding-top: clamp(0.75rem, 1vw, 1rem);
    animation: fadeInUp 1s ease-out 0.9s both;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-btn {
    animation: buttonPulse 3s ease-in-out infinite;
}

.hero-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(217, 202, 171, 0.5);
    animation: none;
}

.hero-btn:active {
    transform: translateY(0) scale(0.98);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(clamp(1rem, 1.875vw, 1.875rem));
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Центрирование на мобильных устройствах */
body.mobile-only .hero-content,
html.mobile-only .hero-content {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    }

body.mobile-only .hero-title,
html.mobile-only .hero-title {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    }
    
body.mobile-only .hero-description,
html.mobile-only .hero-description {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100% !important;
    }

body.mobile-only .hero-btn,
html.mobile-only .hero-btn {
    margin-left: auto !important;
    margin-right: auto !important;
    display: inline-block !important;
}

