.company-hero {
    position: relative;
    min-height: 280px;
    display: flex;
    align-items: center;
    background: var(--text-color) center center / cover no-repeat;
    overflow: hidden;
}

.company-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(14, 80, 179, 0.75) 0%, rgba(0, 0, 9, 0.55) 100%);
}

.company-hero .container {
    position: relative;
    z-index: 1;
    padding-top: 60px;
    padding-bottom: 60px;
}

.company-hero__title {
    color: var(--white);
    font-size: 36px;
    font-weight: 700;
    margin: 0 0 15px;
    line-height: 1.2;
}

.company-hero__subtitle {
    color: var(--white);
    font-size: 16px;
    margin: 0;
    opacity: 0.85;
    line-height: 1.6;
}

.company-filter {
    background: var(--white);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.07);
    padding: 25px 0;
    position: relative;
    z-index: 1;
}

.company-filter__tabs {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
}

.company-filter__tab {
    padding: 8px 20px;
    border: 1.5px solid rgba(0, 0, 0, 0.12);
    border-radius: 20px;
    background: transparent;
    font-size: 14px;
    cursor: pointer;
    color: var(--text-color);
    transition: all 150ms ease;
}

.company-filter__tab.is-active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.company-filter__panel.is-hidden {
    display: none;
}

.company-filter__list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.company-filter__item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border: 1.5px solid rgba(0, 0, 0, 0.10);
    border-radius: 20px;
    text-decoration: none;
    color: var(--text-color);
    font-size: 13px;
    transition: all 150ms ease;
    white-space: nowrap;
}

.company-filter__item:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
}

.company-filter__item.is-active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.company-filter__item:hover .company-filter__icon img,
.company-filter__item.is-active .company-filter__icon img {
    filter: brightness(0) invert(1);
}

.company-filter__flag {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(0, 0, 0, 0.10);
    display: flex;
}

.company-filter__flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.company-filter__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.company-filter__icon img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.company-filter__alpha {
    display: none;
    flex-wrap: wrap;
    gap: 4px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
    margin-top: 15px;
}

.company-filter__alpha-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    border: 1px solid rgba(0, 0, 0, 0.10);
    transition: all 150ms ease;
}

.company-filter__alpha-item:first-child {
    width: auto;
    padding: 0 10px;
    font-weight: 500;
}

.company-filter__alpha-item:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
}

.company-filter__alpha-item.is-active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: var(--white);
}

.company-grid {
    padding: 40px 0;
    background:
        radial-gradient(circle, rgba(86, 132, 202, 0.10) 1px, transparent 1px),
        var(--background-color);
    background-size: 24px 24px;
}

.company-grid__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 25px;
}

.company-grid__title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
}


.company-grid__cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    position: relative;
}

.company-grid__empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 0;
    font-size: var(--font-size-base);
    opacity: 0.55;
}

@media (max-width: 1200px) {
    .company-grid__cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .company-hero__title {
        font-size: 28px;
    }

    .company-grid__cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .company-hero {
        min-height: 200px;
    }

    .company-hero__title {
        font-size: 22px;
    }

    .company-hero .container {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    .company-filter {
        padding: 15px 0;
    }

    .company-filter__tabs {
        margin-bottom: 12px;
    }

    .company-filter__list {
        gap: 8px;
    }

    .company-filter__item {
        font-size: 12px;
        padding: 5px 10px;
    }

    .company-grid__cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .company-grid {
        padding: 25px 0;
        background: var(--background-color);
    }
}

.company-grid__ghost-cta--standalone {
    position: static;
    grid-column: 1 / -1;
    padding: 40px 20px;
    background: none;
    margin-top: 10px;
}

.company-card--ghost {
    filter: blur(6px);
    opacity: 0.2;
    pointer-events: none;
    user-select: none;
}

.company-grid__ghost-cta {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px 20px 40px;
    background: linear-gradient(to bottom, transparent, rgba(241, 244, 249, 0.95) 30%);
    text-align: center;
    pointer-events: none;
}

.company-grid__ghost-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.07);
    padding: 20px 50px;
    pointer-events: auto;
    width: 100%;
}

.company-grid__teaser-label {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: var(--text-color);
    line-height: 1.3;
}

.company-grid__teaser-sublabel {
    font-size: 15px;
    color: var(--text-color);
    opacity: 0.65;
    margin: 0 0 8px;
    line-height: 1.6;
}

.company-grid__ghost-box .button {
    font-size: 15px;
    padding: 12px 35px;
}

@media (max-width: 900px) {
    .company-grid__cards > .company-card--ghost:nth-child(n+9) {
        display: none;
    }
}

@media (max-width: 400px) {
    .company-filter__alpha {
        gap: 3px;
    }

    .company-filter__alpha-item {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

.pagination-company {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
}

.pagination-company__side {
    display: flex;
}

.pagination-company__side--right {
    justify-content: flex-end;
}

.pagination-company__btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--white);
    background: var(--secondary-color);
    text-decoration: none;
    transition: background 180ms ease, color 180ms ease;
}

.pagination-company__btn:hover {
    background: var(--primary-color);
    color: var(--white);
    text-decoration: none;
}
