/* ═══════════════════════════════════════════
   Hero — Páginas individuais de índice
   ═══════════════════════════════════════════ */

.idex-modular-hero {
    position: relative;
    background: #0080ff;
    overflow: hidden;
}

.idex-modular-hero__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(90deg, rgba(29, 29, 32, 0.2) 1px, transparent 1px),
        linear-gradient(rgba(29, 29, 32, 0.2) 1px, transparent 1px),
        linear-gradient(135deg, transparent calc(50% - 1px), rgba(29, 29, 32, 0.2) 50%, transparent calc(50% + 1px));
    background-size: 320px 320px, 320px 320px, 100% 100%;
    opacity: 0.6;
    pointer-events: none;
}

.idex-modular-hero__container {
    position: relative;
    z-index: 1;
    max-width: 1280px;
    margin: 0 auto;
    padding: 120px 54px 48px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: end;
}

.idex-modular-hero__nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-self: end;
}

.idex-modular-hero__nav-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.idex-modular-hero__btn {
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s, border-color 0.15s;
    white-space: nowrap;
}

.idex-modular-hero__btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

.idex-modular-hero__btn.is-active {
    background: #fff;
    color: #0080ff;
    border-color: #fff;
    font-weight: 600;
}

.idex-modular-hero__btn--sub {
    background: rgba(255, 255, 255, 0.15);
    font-size: 13px;
    height: 34px;
    border-radius: 7px;
}

.idex-modular-hero__btn--sub.is-active {
    background: #1d1d20;
    color: #fff;
    border-color: #1d1d20;
}

.idex-modular-hero__content {
    align-self: end;
}

.idex-modular-hero__title {
    margin: 0 0 12px;
    color: #1d1d20;
    font-size: clamp(36px, 5vw, 48px);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.idex-modular-hero__description {
    margin: 0;
    max-width: 420px;
    color: rgba(29, 29, 32, 0.7);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.45;
}

@media (max-width: 960px) {
    .idex-modular-hero__container {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .idex-modular-hero__content {
        order: -1;
    }
}

@media (max-width: 768px) {
    .idex-modular-hero__container {
        padding: 90px 20px 32px;
    }
    .idex-modular-hero__title {
        font-size: 32px;
    }
    .idex-modular-hero__btn {
        height: 34px;
        padding: 0 12px;
        font-size: 13px;
    }
    .idex-modular-hero__btn--sub {
        height: 30px;
        font-size: 12px;
    }
}
