/* ============================================
   HERO SECTION - DevSEO
   ============================================ */

.hero {
    position: relative;
    min-height: 700px;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 80px 0;
}

/* Фон — фото на всю ширину (размытое фото офиса) */
.hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center right;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Затемнение фона для читаемости */
.hero__bg::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255,255,255,0.3) 0%, rgba(255,255,255,0) 50%);
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
}

/* Левый блок с контентом */
.hero__content {
    position: relative;
    flex: 1;
    max-width: 55%;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--devseo-outer-border-radius);
    padding: 48px 56px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

/* Точечный паттерн (halftone dots) — только на левом блоке */
.hero__content::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(circle, rgba(22, 102, 161, 0.15) 1px, transparent 1px);
    background-size: 6px 6px;
    border-radius: 0 var(--devseo-outer-border-radius) var(--devseo-outer-border-radius) 0;
    pointer-events: none;
}

/* Мелкая метка сверху */
.hero__top-label {
    display: inline-block;
    font-size: 14px;
    color: var(--devseo-secondary-text);
    margin-bottom: 16px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* Бейдж (если нужен) */
.hero__badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--devseo-darker-bg);
    border-radius: 20px;
    font-size: 12px;
    color: var(--devseo-basic-text);
    margin-left: 8px;
    position: relative;
    z-index: 1;
}

/* Заголовок H1 — ТЁМНЫЙ */
.hero__title {
    font-family: var(--devseo-font-title-family);
    font-size: clamp(1.6rem, 0.125rem + 3.2vw, calc(1rem + 24px));
    font-weight: 700;
    color: var(--devseo-title-text);
    line-height: 1.15;
    margin: 0 0 20px;
    position: relative;
    z-index: 1;
}

.hero__title .accent {
    color: var(--devseo-base-color);
    font-weight: 800;
}

/* Описание — тоже тёмное */
.hero__text {
    font-size: 16px;
    line-height: 1.6;
    color: var(--devseo-basic-text);
    margin-bottom: 32px;
    position: relative;
    z-index: 1;
}

/* Кнопки в ряд */
.hero__buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* --- Кнопки --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--devseo-button-border-radius);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    white-space: nowrap;
    color: #fff;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
    color: #fff;
}

.btn--primary {
    background: var(--devseo-base-color);
}

.btn--primary:hover {
    background: #0d4a75;
}

.btn--danger {
    background: var(--devseo-more-color);
}

.btn--danger:hover {
    background: #7a0004;
}

.btn--success {
    background: #4caf50;
}

.btn--success:hover {
    background: #3d8b40;
}

.btn--telegram {
    background: #7c3aed;
}

.btn--telegram:hover {
    background: #5b21b6;
}

.btn--info {
    background: #3b82f6;
}

.btn--info:hover {
    background: #2563eb;
}

/* Иконка в кнопке */
.btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* --- Правая часть с людьми --- */
.hero__image-wrapper {
    flex: 1;
    max-width: 600px;
    position: relative;
}

/* ИЗОБРАЖЕНИЕ ЛЮДЕЙ — ПОКАЗЫВАЕМ! */
.hero__image {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.15));

}

/* --- Responsive --- */
@media (max-width: 1200px) {
    .hero__inner {
        flex-direction: column;
        text-align: center;
    }

    .hero__content {
        max-width: 100%;
    }

    .hero__buttons {
        justify-content: center;
    }

    .hero__image-wrapper {
        max-width: 500px;
    }
}

@media (max-width: 991px) {
    .hero {
        min-height: auto;
        padding: 40px 0;
    }

    .hero__content {
        max-width: 100%;
        padding: 32px 24px;
    }

    .hero__content::before {
        width: 30%;
    }
}

@media (max-width: 600px) {
    .hero__title {
        font-size: clamp(1.5rem, 6vw, 2rem);
    }

    .hero__buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    .hero__image-wrapper {
        max-width: 100%;
        order: -1;
    }
}

/* --- Анимация появления --- */
@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero__content {
    animation: heroFadeIn 0.8s ease-out;
}

.hero__image-wrapper {
    animation: heroFadeIn 0.8s ease-out 0.2s both;
}

/* === Блок преимуществ === */
.hero__features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 32px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.77);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.hero__feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.hero__feature-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--devseo-base-color);
}

.hero__feature-icon svg {
    width: 32px;
    height: 32px;
    stroke: currentColor;
}

.hero__feature-text {
    flex: 1;
    min-width: 0;
}

.hero__feature-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--devseo-title-text);
    line-height: 1.3;
    margin-bottom: 4px;
}

.hero__feature-desc {
    font-size: 13px;
    line-height: 1.4;
    color: var(--devseo-basic-text);
}

/* Адаптивность */
@media (max-width: 1200px) {
    .hero__features {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero__features {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
    }

    .hero__feature {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* === MOBILE FIX: hero на всю ширину === */
@media (max-width: 1200px) {
    .hero__inner {
        flex-direction: column;
        align-items: stretch;   /* ← было center */
    }
    .hero__content {
        width: 100%;
        max-width: 100%;
    }
    .hero__image-wrapper {
        width: 100%;
        max-width: 100%;
    }
}