.hero {
    min-height: clamp(520px, 72vh, 680px);
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

.hero--photo {
    display: flex;
    align-items: stretch;
}

.hero__cover {
    position: absolute;
    inset: 0;
    top: var(--header-height);
    z-index: 0;
    background-color: var(--bg-primary);
    background-image: var(--hero-cover);
    background-size: cover;
    background-position: center right;
}

.hero__gradient {
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        var(--bg-primary) 0%,
        rgba(15, 15, 30, 0.96) 18%,
        rgba(15, 15, 30, 0.84) 34%,
        rgba(15, 15, 30, 0.52) 52%,
        rgba(15, 15, 30, 0.18) 72%,
        rgba(15, 15, 30, 0.04) 100%
    );
}

.hero--photo:not([style*="--hero-cover"]) .hero__cover {
    background-image: linear-gradient(135deg, rgba(94, 72, 249, 0.18), rgba(15, 15, 30, 0.95));
}

.hero__content {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: calc(clamp(520px, 72vh, 680px) - var(--header-height));
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
    padding-block: 56px;
}

.hero__copy {
    max-width: 560px;
}

.hero__title {
    font-size: clamp(34px, 4.2vw, 52px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin: 0 0 14px;
}

.hero__title-line {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.hero__title-accent {
    color: var(--accent-light);
}

.hero__title-icon {
    color: var(--accent-light);
    font-size: 0.82em;
}

.hero__subtitle {
    margin: 0;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 520px;
}

.hero__stat-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    max-width: 720px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.hero__stat-card {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: top;
    gap: 12px;
    min-height: 92px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-light);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero__stat-card-icon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(94, 72, 249, 0.14);
    color: var(--accent-light);
}

.hero__stat-card-icon--logo {
    font-size: 20px;
    line-height: 1;
    color: var(--accent);
}

.hero__stat-card-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.hero__stat-card strong {
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    color: var(--text-primary);
}

.hero__stat-card-body span {
    font-size: 13px;
    color: var(--text-secondary);
}

.hero__stat-card--accent {
    border-color: rgba(94, 72, 249, 0.35);
    background: rgba(94, 72, 249, 0.12);
}

.hero__cta {
    width: auto;
    align-self: flex-start;
    min-height: 48px;
    padding: 12px 28px;
}

.hero__cta svg {
    margin-left: 4px;
}

@media (max-width: 900px) {
    .hero__stat-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: none;
    }
}

@media (max-width: 1024px) {
    .hero__cover {
        background-position: center;
    }

    .hero__gradient {
        background: linear-gradient(
            180deg,
            var(--bg-primary) 0%,
            rgba(15, 15, 30, 0.92) 42%,
            rgba(15, 15, 30, 0.62) 68%,
            rgba(15, 15, 30, 0.28) 100%
        );
    }

    .hero__content {
        padding-block: 36px 44px;
    }
}

@media (max-width: 640px) {
    .hero {
        min-height: auto;
    }

    .hero__content {
        min-height: auto;
        gap: 20px;
        padding-block: 28px 36px;
    }
}
