/**
 * Стили Hero-блока главной страницы
 * Файл: /local/templates/opk/css/hero.css
 */

/* Hero Block Container */
.hero-block {
    width: 100%;
    max-width: 1240px;
    height: 469px;
    margin: 0 auto;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
}

/* Background */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(31, 31, 31, 0.0);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

/* Content */
.hero-content {
    position: relative;
    z-index: 2;
    padding: 122px 0 0 105px;
}

/* Title */
.hero-title {
    color: #FFFFFF;
    font-size: 44px;
    font-family: 'Manrope', 'Inter', sans-serif;
    font-weight: 600;
    margin: 0 0 40px 0;
    line-height: 1.2;
}

/* Search Form */
.hero-search-form {
    width: 1023px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-input-wrapper {
    flex: 1;
    height: 56px;
    background: #FFFFFF;
    border-radius: 90px;
    padding: 0 24px;
    display: flex;
    align-items: center;
}

.search-input {
    width: 100%;
    height: 100%;
    border: none;
    background: transparent;
    font-size: 15px;
    font-family: 'Manrope', 'Inter', sans-serif;
    font-weight: 400;
    color: #02254E;
    outline: none;
}

.search-input::placeholder {
    color: rgba(2, 37, 78, 0.40);
}

.search-submit {
    width: 56px;
    height: 56px;
    background: #FFFFFF;
    border-radius: 90px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: opacity 0.2s ease;
}

.search-submit:hover {
    opacity: 0.9;
}

.search-icon {
    width: 20px;
    height: 16px;
}

.search-btn {
    width: 166px;
    height: 56px;
    background: #E32125;
    border-radius: 90px;
    border: none;
    cursor: pointer;
    font-size: 15px;
    font-family: 'Manrope', 'Inter', sans-serif;
    font-weight: 500;
    color: #FFFFFF;
    transition: background 0.2s ease;
}

.search-btn:hover {
    background: #C41D20;
}

/* Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 48px;
    margin-top: 74px;
    opacity: 0.70;
}

.stat-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
}

.stat-label {
    color: #FFFFFF;
    font-size: 16px;
    font-family: 'Manrope', 'Inter', sans-serif;
    font-weight: 500;
}

.stat-value {
    color: #FFFFFF;
    font-size: 40px;
    font-family: 'Manrope', 'Inter', sans-serif;
    font-weight: 400;
    line-height: 1;
}

/* Employer Link */
.employer-link {
    position: absolute;
    right: 112px;
    bottom: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #FFFFFF;
    font-size: 15px;
    font-family: 'Manrope', 'Inter', sans-serif;
    font-weight: 500;
    text-transform: uppercase;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.employer-link:hover {
    opacity: 0.8;
    color: #FFFFFF;
}

.employer-link .arrow-icon {
    width: 8px;
    height: 14px;
}

/* Responsive */
@media (max-width: 1280px) {
    .hero-block {
        max-width: 100%;
        border-radius: 0;
        margin: 0 -20px;
        width: calc(100% + 40px);
    }

    .hero-content {
        padding-left: 40px;
        padding-right: 40px;
    }

    .hero-search-form {
        width: 100%;
    }

    .employer-link {
        right: 40px;
    }
}

@media (max-width: 1024px) {
    .hero-block {
        height: auto;
        min-height: 400px;
    }

    .hero-content {
        padding: 60px 30px;
    }

    .hero-title {
        font-size: 36px;
        margin-bottom: 30px;
    }

    .hero-search-form {
        flex-wrap: wrap;
    }

    .search-input-wrapper {
        flex: 1 1 100%;
        min-width: 100%;
    }

    .search-submit {
        display: none;
    }

    .search-btn {
        width: 100%;
        margin-top: 10px;
    }

    .hero-stats {
        margin-top: 40px;
        gap: 30px;
    }

    .stat-value {
        font-size: 32px;
    }

    .employer-link {
        position: relative;
        right: auto;
        bottom: auto;
        margin-top: 30px;
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .hero-block {
        min-height: 350px;
    }

    .hero-content {
        padding: 40px 20px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 20px 40px;
    }

    .stat-item {
        min-width: 100px;
    }

    .stat-label {
        font-size: 14px;
    }

    .stat-value {
        font-size: 28px;
    }

    .employer-link {
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 24px;
    }

    .hero-stats {
        gap: 15px 30px;
    }

    .stat-value {
        font-size: 24px;
    }
}