/*==============================================
    Hero Section (первая секция)
    Стили по образцу баннера, своя структура
===============================================*/

:root {
    --hero-bg: #0d47a1;
    --hero-bg-dark: #0a3a82;
    --hero-text: #ffffff;
    --hero-btn-border: #ffffff;
    --hero-btn-text: #ffffff;
}

.hero-section {
    position: relative;
    display: block;
    padding: 80px 0 100px;
    background-color: var(--hero-bg);
    overflow: hidden;
    z-index: 1;
}

.hero-section__inner {
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    min-height: 380px;
}

.hero-section__content {
    position: relative;
    flex: 1 1 auto;
    max-width: 640px;
    z-index: 2;
}

.hero-section__title {
    font-size: clamp(20px, 4.5vw + 1rem, 42px);
    line-height: 1.25;
    font-weight: 600;
    color: var(--hero-text);
    margin: 0 0 20px;
    font-family: var(--nexin-font);
    letter-spacing: 0.01em; 
}

.hero-section__contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 28px;
    margin: 0 0 22px;
}

.hero-section__contacts-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.hero-section__contacts-icon {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.15);
    color: var(--hero-text);
    font-size: 14px;
}

.hero-section__contacts-text {
    font-size: 15px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.95);
    font-family: var(--nexin-font);
}

.hero-section__contacts-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.95);
    transition: color 0.2s ease;
}

.hero-section__contacts-link:hover {
    color: #fff;
}

.hero-section__description {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 28px;
    max-width: 520px;
}

.hero-section__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--hero-btn-text);
    background-color: transparent;
    border: 2px solid var(--hero-btn-border);
    border-radius: 4px;
    text-decoration: none;
    transition: background-color 0.25s ease, color 0.25s ease;
}

.hero-section__btn:hover {
    background-color: var(--hero-btn-border);
    color: var(--hero-bg);
}

.hero-section__media {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 280px;
    align-self: stretch;
    z-index: 2;
}

.hero-section__media-inner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
}

.hero-section__media-inner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Плейсхолдер, когда картинка не задана */
.hero-section__media-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.25);
    font-size: 14px;
    pointer-events: none;
}

.hero-section__media-inner:has(img) .hero-section__media-placeholder {
    display: none;
}

/* Адаптив: планшеты */
@media (max-width: 991px) {
    .hero-section {
        padding: 60px 0 80px;
    }

    .hero-section__inner {
        flex-direction: column;
        align-items: flex-start;
        min-height: auto;
        gap: 36px;
    }

    .hero-section__content {
        max-width: 100%;
    }

    .hero-section__media {
        max-width: 100%;
        min-height: 240px;
    }
}

/* Адаптив: мобильные */
@media (max-width: 767px) {
    .hero-section {
        padding: 48px 0 64px;
    }

    .hero-section__inner {
        gap: 28px;
    }

    .hero-section__title {
        margin-bottom: 16px;
    }

    .hero-section__contacts {
        gap: 14px 20px;
        margin-bottom: 18px;
    }

    .hero-section__contacts-icon {
        width: 32px;
        height: 32px;
        font-size: 13px;
    }

    .hero-section__contacts-text {
        font-size: 14px;
    }

    .hero-section__description {
        font-size: 16px;
        margin-bottom: 22px;
    }

    .hero-section__btn {
        padding: 12px 22px;
        font-size: 13px;
    }

    .hero-section__media {
        min-height: 200px;
    }
}

@media (max-width: 480px) {
    .hero-section__media {
        min-height: 180px;
    }
}
