.company-card {
    background: var(--white);
    border-radius: 10px;
    border: 1px solid transparent;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
    transition: border-color 200ms ease, transform 200ms ease;
}

.company-card__link::after {
    content: '';
    position: absolute;
    inset: 0;
}

.company-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.company-card__logo {
    position: relative;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: var(--white);
    overflow: visible;
}

.company-card__logo img {
    max-height: 60px;
    max-width: 100%;
    object-fit: contain;
}

.company-card__logo-placeholder {
    width: 55px;
    height: 55px;
    border-radius: 10px;
    background: var(--primary-color);
    color: var(--white);
    font-size: 22px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.company-card__verified {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #f5a623;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.20);
    border: 2px solid var(--white);
    cursor: default;
}

.company-card__verified svg {
    width: 12px;
    height: 12px;
}

.company-card__verified::after {
    content: 'Verified';
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    transform: none;
    background: rgba(0, 0, 0, 0.80);
    color: var(--white);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 150ms ease;
}

.company-card__verified::before {
    content: '';
    position: absolute;
    top: calc(100% + 3px);
    right: 7px;
    transform: none;
    border-width: 0 5px 5px;
    border-style: solid;
    border-color: transparent transparent rgba(0, 0, 0, 0.80);
    opacity: 0;
    pointer-events: none;
    transition: opacity 150ms ease;
}

.company-card__verified:hover::after,
.company-card__verified:hover::before {
    opacity: 1;
}

.company-card__body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 15px;
    flex: 1;
}

.company-card__meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.company-card__name {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    line-height: 1.3;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 200ms ease;
}

.company-card:hover .company-card__name {
    color: var(--primary-color);
}

.company-card__location {
    font-size: 12px;
    color: var(--text-color);
    opacity: 0.55;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 5px;
}

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

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

.company-card__desc {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-color);
    opacity: 0.70;
    margin: 0;
}

.company-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.company-card__tag {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    white-space: nowrap;
}

.company-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin-top: auto;
}

.company-card__contacts {
    display: flex;
    gap: 8px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.company-card__contact {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--background-color);
    text-decoration: none;
    transition: background 150ms ease;
}

.company-card__contact:hover {
    background: rgba(86, 132, 202, 0.15);
}

.company-card__contact svg {
    width: 18px;
    height: 18px;
}

.company-card .button {
    font-size: 12px;
    padding: 6px 12px;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

@media (max-width: 480px) {
    .company-card__body {
        padding: 12px;
        gap: 8px;
    }

    .company-card__name {
        font-size: 13px;
    }

    .company-card .button {
        font-size: 11px;
        padding: 5px 10px;
    }
}
