/* ===========================================
   HERO BLOCK STYLES - Новый дизайн
   =========================================== */

/* Базовые стили hero секции */
.hero {
    position: relative;
    width: 100%;
    /*min-height: 100vh;*/
    background: linear-gradient(180deg, #E9E0D7 0%, #EFE7E1 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/hero-block-shrt.webp');
    /*background-size: cover;*/
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 1;
}

.hero > * {
    position: relative;
    z-index: 2;
}

/* Контентная область hero */
.hero__content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px 80px 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: calc(100vh - 180px);
}

/* Верхний блок заголовка hero */
.hero__title-top {
    width: 100%;
    max-width: 1200px;
    margin: 20px auto 60px;
    text-align: left;
}

.hero__title-main {
    font-family: 'Gilroy', sans-serif;
    font-size: clamp(54px, 14vw, 200px);
    line-height: 1;
    font-weight: 600;
    text-transform: uppercase;
    color: #FF6B00;
    display: inline-block;
    width: 100%;
    text-align: left;
}

.hero__title-orange {
    color: #FF6B00;
}

.text-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    margin-bottom: 40px;
}

.text-left {
    width: 100%;
}

/* Заголовок h1 */
h1 {
    font-family: 'Gilroy', sans-serif;
    font-size: 60px;
    line-height: 0.95;
    margin: 0;
    padding: 0;
    font-weight: 700;
    text-transform: uppercase;
    text-align: left;
}

h1 span {
    display: block;
    text-align: left;
}

.hero__title-black {
    color: #000000;
}

/* Контейнер кнопок */
.hero__buttons {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: auto;
    width: 100%;
    max-width: 1200px;
}

/* Основная кнопка CTA */
.hero .cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    height: 56px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 28px;
    background-color: #FF6B00;
    color: #ffffff;
    border: none;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.hero .cta-button:hover {
    transform: scale(1.05);
    background-color: #ff7a1a;
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.3);
}

.hero .cta-button:active {
    transform: scale(0.98);
}

/* Вторичная кнопка */
.hero .cta-button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    height: 56px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 28px;
    background-color: #ffffff;
    color: #000000;
    border: none;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.hero .cta-button-secondary:hover {
    background-color: #f0f0f0;
    transform: scale(1.05);
}

.hero .cta-button-secondary:active {
    transform: scale(0.98);
}

/* Описание под кнопками */
.hero-description {
    font-family: 'Gilroy', sans-serif;
    font-size: 18px;
    line-height: 1.5;
    color: #000000;
    margin: 0;
    text-align: left;
    max-width: 320px;
    align-self: flex-end;
    /*margin-left: auto;*/
}

/* ===========================================
   МЕДИА-ЗАПРОСЫ - АДАПТИВНОСТЬ
   =========================================== */

/* Планшет большой (1024px - 1200px) */
@media (max-width: 1200px) {
    .hero__content {
        max-width: 1100px;
        padding: 40px 40px 60px 40px;
    }

    .hero__title-top {
        margin-bottom: 50px;
    }

    h1 {
        font-size: 52px;
    }

    .hero .cta-button,
    .hero .cta-button-secondary {
        font-size: 16px;
        height: 54px;
    }

    .hero-description {
        font-size: 18px;
        max-width: 250px;
    }
}

/* Планшет средний (768px - 1024px) */
@media (max-width: 1024px) {
    .hero__content {
        padding: 40px 30px 50px 30px;
    }

    .hero__title-top {
        margin-bottom: 45px;
    }

    h1 {
        font-size: 46px;
    }

    .hero .cta-button,
    .hero .cta-button-secondary {
        padding: 14px 32px;
        height: 52px;
        font-size: 16px;
    }

    .hero-description {
        font-size: 18px;
        max-width: 230px;
    }
}

/* Смещение фона влево для диапазона 1110px - 769px */
@media (max-width: 1110px) and (min-width: 769px) {
    .hero::before {
        /* Картинка на заднем фоне во всю ширину экрана */
        background-position: center center;
        background-size: cover;
        top: -50px;
        left: 0px;
        width: 130% !important;
        height: 130% !important;
    }

    .hero__content {
        padding-top: 60px;
        /*margin-top: -100px;*/
    }

    .hero__title-top {
        text-align: left;
    }

    .hero__title-main {
        text-align: left;
    }

    /* Описание под заголовком слева под заголовком */
    .hero-description {
        margin-top: 16px;
        align-self: flex-start;
        text-align: left;
        max-width: 340px;
    }
}

/* Планшет малый (600px - 768px) */
@media (max-width: 768px) {
    .hero {
        min-height: 100vh;
    }

    .hero::before {
        background-image: url('../images/hero-block-mob-shrt.webp');
        background-position: center center;
        background-size: cover;
    }

    .hero__content {
        padding: 40px 20px 40px 20px;
    }

    .hero__title-top {
        margin-bottom: 40px;
    }

    h1 {
        font-size: 52px;
        line-height: 1;
    }

    .text-container {
        gap: 35px;
    }

    .hero__buttons {
        gap: 15px;
    }

    .hero .cta-button,
    .hero .cta-button-secondary {
        padding: 12px 28px;
        height: 50px;
        font-size: 12px;
    }

    .hero-description {
        font-size: 16px;
        max-width: 60%;
        margin-left: 0;
        align-self: flex-start;
    }
}

/* Мобильный стандартный (до 480px) */
@media (max-width: 480px) {
    .hero::before {
        background-image: url('../images/hero-block-mob-shrt.webp');
        background-position: center center;
        background-size: cover;
    }

    .hero__content {
        padding: 40px 15px 30px 15px;
        min-height: calc(100vh - 70px);
    }

    .hero__title-top {
        margin-bottom: 20px;
    }

    h1 {
        font-size: 36px;
    }

    .text-container {
        gap: 25px;
        margin-bottom: 25px;
    }

    .hero__buttons {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
        width: 100%;
    }

    .hero .cta-button,
    .hero .cta-button-secondary {
        width: 100%;
        height: 48px;
        font-size: 14px;
        padding: 10px 20px;
    }

    .hero-description {
        font-size: 16px;
        max-width: 100%;
        align-self: flex-start;
    }
}

/* Очень маленькие экраны */
@media (max-width: 360px) {

    h1 {
        font-size: 32px;
    }

    .hero-description {
        font-size: 16px;
    }
}

/* Единый размер шрифта кнопок на мобильных */
@media (max-width: 768px) {
    .hero .cta-button,
    .hero .cta-button-secondary {
        font-size: 16px;
    }

    .hero-desktop-br {
        display: none;
    }
}

@media (max-width: 320px) {

    h1 {
        font-size: 28px;
    }

    .hero .cta-button,
    .hero .cta-button-secondary {
        font-size: 12px;
        height: 44px;
    }

    .hero-description {
        font-size: 13px;
    }
}

/* Ландшафтная ориентация на низких экранах */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }

    .hero::before {
        background-image: url('../images/hero-block-mob-shrt.webp');
    }

    .hero__content {
        padding: 30px 40px 30px 40px;
        min-height: calc(100vh - 60px);
    }

    .hero__title-top {
        margin-bottom: 25px;
    }

    h1 {
        font-size: 32px;
    }

    .text-container {
        gap: 20px;
        margin-bottom: 25px;
    }

    .hero__buttons {
        gap: 12px;
    }

    .hero .cta-button,
    .hero .cta-button-secondary {
        height: 44px;
        font-size: 11px;
        padding: 10px 20px;
    }

    .hero-description {
        font-size: 11px;
    }
}