/* Hero Section Styles for mebel-garda.ru - 1-Screen from Figma */

/* Hero Section Container */
#rec805224388.hero-section {
    position: relative;
    height: 924px;
    background-color: #E6E6E6;
    overflow: hidden;
}

/* Hero Static Background */
#rec805224388 .hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 1;
}

/* Hero Content Container */
#rec805224388 .hero-content {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 3;
}

/* Hero Title - согласно Figma: x: 170px, y: 399px, размер 48px */
#rec805224388 .hero-title {
    position: absolute;
    top: 399px;
    left: 170px;
    width: 366px;
    font-family: 'Montserrat', Arial, sans-serif;
    font-size: 48px;
    line-height: 1;
    font-weight: 400;
    color: #ffffff;
    margin: 0;
    padding: 0;
    z-index: 4;
    white-space: pre;
    letter-spacing: 0;
    text-transform: uppercase;
}

/* Плюс в заголовке - зеленый цвет */
#rec805224388 .hero-title__plus {
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 500;
    color: #57a7b3;
    white-space: pre;
}

/* Убираем лишние пробелы и переносы в заголовке */
#rec805224388 .hero-title span {
    white-space: pre;
}

/* Hero Text - согласно Figma: x: 1235px, y: 524px, размер 21px, italic */
#rec805224388 .hero-text {
    position: absolute;
    top: 524px;
    right: 161px; /* 1920px - 1235px - 404px = 281px, но лучше использовать right для адаптивности */
    width: 404px;
    min-width: 404px;
    max-width: calc(100% - 40px); /* Чтобы не уезжал за экран */
    font-family: 'Montserrat', sans-serif; /* Убираем fallback, используем только Montserrat */
    font-size: 21px;
    /* Резервируем высоту с учетом метрик Montserrat italic */
    min-height: 25px;
    line-height: 1.2;
    font-weight: 400;
    font-style: italic;
    color: #ffffff;
    margin: 0;
    padding: 0;
    z-index: 5;
    box-sizing: border-box;
    /* Агрессивно скрываем текст до загрузки шрифта */
    visibility: hidden !important;
    opacity: 0 !important;
    will-change: transform;
    transform: translateZ(0);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* Предотвращаем показ текста до загрузки */
    font-display: block;
}

/* Показываем текст только после загрузки шрифта */
#rec805224388 .hero-text.font-loaded {
    visibility: visible !important;
    opacity: 1 !important;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

/* Hero Scroll Indicator - согласно Figma: x: 170px, y: 838px */
#rec805224388 .hero-scroll-indicator {
    position: absolute;
    top: 838px;
    left: 170px;
    width: 19px;
    height: 29px;
    z-index: 6;
}

#rec805224388 .hero-scroll-indicator a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

/* Иконка скролла - стилизованная кнопка */
#rec805224388 .hero-scroll-icon {
    width: 19px;
    height: 29px;
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    position: relative;
    background: transparent;
}

#rec805224388 .hero-scroll-icon::after {
    content: '';
    position: absolute;
    left: 9px;
    top: 5px;
    width: 1px;
    height: 8px;
    background-color: #57a7b3;
}

/* Hero Line - согласно Figma: x: 266px (от центра), y: 855px, ширина 1460px */
#rec805224388 .hero-line {
    position: absolute;
    top: 855px;
    left: 266px;
    width: calc(100% - 532px); /* 266px слева + 266px справа */
    height: 1px;
    background: #FFF;
    opacity: 0.2;
    z-index: 6;
}

/* Responsive - Tablet */
@media screen and (max-width: 1199px) {
    #rec805224388.hero-section {
        height: clamp(600px, 80vh, 924px);
    }
    
    #rec805224388 .hero-title {
        top: clamp(200px, 43%, 399px);
        left: clamp(20px, 8.85%, 170px);
        font-size: clamp(32px, 4vw, 48px);
        width: clamp(250px, 30vw, 366px);
    }
    
    #rec805224388 .hero-text {
        top: clamp(300px, 57%, 524px);
        right: 20px; /* Отступ справа вместо left */
        left: auto;
        width: clamp(280px, 35vw, 404px);
        max-width: calc(100% - 40px);
        font-size: clamp(16px, 1.75vw, 21px);
    }
    
    #rec805224388 .hero-scroll-indicator {
        top: clamp(500px, 91%, 838px);
        left: clamp(20px, 8.85%, 170px);
    }
    
    #rec805224388 .hero-line {
        top: clamp(520px, 92.5%, 855px);
        left: clamp(20px, 8.85%, 170px);
        width: calc(100% - clamp(40px, 17.7%, 340px)); /* Симметричные отступы слева и справа */
    }
}

/* Responsive - Mobile Landscape */
@media screen and (max-width: 959px) {
    #rec805224388.hero-section {
        height: clamp(500px, 70vh, 800px);
    }
    
    #rec805224388 .hero-title {
        top: clamp(150px, 30%, 350px);
        left: 20px;
        font-size: clamp(28px, 5vw, 40px);
        width: clamp(200px, 40vw, 320px);
    }
    
    #rec805224388 .hero-text {
        top: clamp(250px, 50%, 450px);
        left: 20px;
        width: clamp(250px, 50vw, 350px);
        font-size: clamp(14px, 2vw, 18px);
    }
    
    #rec805224388 .hero-scroll-indicator {
        top: clamp(400px, 80%, 700px);
        left: 20px;
    }
    
    #rec805224388 .hero-line {
        top: clamp(420px, 85%, 750px);
        left: 20px;
        width: calc(100% - 40px); /* 20px слева + 20px справа */
    }
}

/* Responsive - Mobile (640px и меньше) */
@media screen and (max-width: 639px) {
    #rec805224388.hero-section {
        height: auto;
        min-height: 100vh;
        padding: 120px 20px 60px;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }
    
    #rec805224388 .hero-content {
        position: relative;
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: column;
        gap: 24px;
        padding: 0;
    }
    
    #rec805224388 .hero-title {
        position: static;
        width: 100%;
        max-width: 100%;
        font-size: 32px;
        line-height: 1.2;
        margin: 0;
        padding: 0;
        white-space: normal;
        text-align: left;
    }
    
    #rec805224388 .hero-text {
        position: static;
        width: 100%;
        max-width: 100%;
        font-size: 16px;
        line-height: 1.5;
        margin: 0;
        padding: 0;
        text-align: left;
    }
    
    #rec805224388 .hero-scroll-indicator {
        position: static;
        margin-top: 32px;
        align-self: flex-start;
    }
    
    #rec805224388 .hero-line {
        position: static;
        width: 100%;
        max-width: 100%;
        margin-top: 40px;
        transform: none;
        left: auto;
    }
}

/* Responsive - Small Mobile (480px и меньше) */
@media screen and (max-width: 479px) {
    #rec805224388.hero-section {
        padding: 100px 16px 40px;
        min-height: 90vh;
    }
    
    #rec805224388 .hero-content {
        gap: 20px;
    }
    
    #rec805224388 .hero-title {
        font-size: 28px;
        line-height: 1.3;
    }
    
    #rec805224388 .hero-text {
        font-size: 14px;
        line-height: 1.5;
    }
    
    #rec805224388 .hero-scroll-indicator {
        margin-top: 24px;
    }
    
    #rec805224388 .hero-line {
        margin-top: 32px;
    }
}

