/* === Контейнер всіх карток (плагін NCV) === */
.entry-content .ncv-companies {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 12px;
    box-sizing: border-box;
}

/* === Картка однієї компанії === */
.ncv-companies .ncv-card {
    position: relative;
    z-index: 50;

    width: 100%;
    max-width: 600px;
    background: #f2f4f5;
    padding: 16px;
    margin: 0 auto 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    box-sizing: border-box;
    overflow: hidden;
}

/* === Назва компанії === */
.ncv-companies .ncv-card__title {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 700;
    color: #046DA2;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

.ncv-companies .ncv-card__title a {
    color: #046DA2;
    text-decoration: none;
}

.ncv-companies .ncv-card__title a:hover {
    text-decoration: underline;
}

/* === Контакти та зображення === */
.ncv-companies .ncv-card__top {
    display: flex;
    flex-wrap: nowrap;
    gap: 20px;
    align-items: flex-start;
    justify-content: space-between; /* <- Текст ліворуч, зображення праворуч */
    max-width: 100%;
}

/* --- Лівий блок: контакти --- */
.ncv-companies .ncv-card__contacts {
    flex: 1 1 auto;
    min-width: 0;
    max-width: calc(100% - 260px);
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 0.95rem;
    color: #333;
    box-sizing: border-box;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.ncv-companies .ncv-card__field {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    line-height: 1.45;
    flex-wrap: wrap;
}

/* === EMAIL: FIX 100% (ДОДАТИ НИЖЧЕ) === */
.ncv-companies .ncv-card__field.email {
    flex-wrap: nowrap !important;
    white-space: nowrap;
    overflow-wrap: normal !important;
    word-break: keep-all !important;
}

/* === Адреса === */
.ncv-companies .ncv-card__field.address {
    align-items: flex-start;
    color: #000;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
}

.ncv-companies .ncv-card__field.address .icon {
    color: #000 !important;
    margin-top: 2px;
    line-height: 1.3;
    flex-shrink: 0;
}

.ncv-companies .ncv-card__field.address a {
    color: #000 !important;
    text-decoration: none;
}

/* === Телефон === */
.ncv-companies .ncv-card__field.phone {
    color: #046DA2;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 500;
}

.ncv-companies .ncv-card__field.phone .icon {
    color: #046DA2;
    min-width: 14px;
    flex-shrink: 0;
}

.ncv-companies .ncv-card__field.phone a {
    color: #046DA2 !important;
    text-decoration: none;
}

.ncv-companies .ncv-card__field.phone a:hover {
    text-decoration: underline;
}

/* === Email === */
.ncv-companies .ncv-card__field.email {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    font-style: italic;
    color: #000;
}

/* іконка */
.ncv-companies .ncv-card__field.email .icon {
    color: #000 !important;
    flex-shrink: 0;
    font-size: 12px;
}

/* email текст */
.ncv-companies .ncv-card__field.email a {
    color: #000 !important;
    text-decoration: none;
    font-style: italic;

    white-space: nowrap;   /* 🔥 ключовий рядок */
    display: inline-block; /* фіксує перенесення */
}

.ncv-companies .ncv-card__field.email a:hover {
    text-decoration: underline;
}

/* === EMAIL FIX (ANTI-BREAK) === */

.ncv-companies .ncv-card__field.email {
    display: block; /* важливо: НЕ flex */
}

/* зв’язка іконка + email */
.ncv-companies .ncv-email {
    display: inline-flex;
    align-items: center;
    gap: 4px;

    white-space: nowrap;   /* 🔒 заборона переносу */
    word-break: keep-all; /* 🔒 не ламати Unicode */
}

/* іконка */
.ncv-companies .ncv-email .icon {
    flex-shrink: 0;
    font-size: 12px;
}

/* текст email */
.ncv-companies .ncv-email .text {
    white-space: nowrap;
}

/* === Інші іконки === */
.ncv-companies .ncv-card__field:not(.address):not(.phone):not(.email) .icon {
    min-width: 12px;
    color: #6690b7;
    flex-shrink: 0;
}

.ncv-companies .ncv-card__field a {
    display: inline-block;
    max-width: 100%;
    color: #1a5ea8;
    text-decoration: none;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.ncv-companies .ncv-card__field a:hover {
    text-decoration: underline;
}

/* === Правий блок: зображення === */
.ncv-companies .ncv-card__image {
    flex-shrink: 0;       /* не стискається */
    width: 150px;         /* фіксована ширина */
    max-width: 150px;
    max-height: 150px;    /* обмеження по висоті */
    display: flex;
    align-items: center;
    justify-content: center; /* центруємо картинку */
}

.ncv-companies .ncv-card__image img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    display: block;
    border-radius: 6px;
}

/* === Сайт === */
.ncv-companies .ncv-card__field.website {
    display: inline-flex;       /* flex-контейнер для значка і тексту */
    align-items: center;        /* вирівнювання по центру вертикалі */
    gap: 6px;                   /* відстань між значком і текстом */
    flex-wrap: nowrap;
    font-family: 'Inter', sans-serif;
    font-size: 12px;            /* зменшений розмір тексту */
    font-weight: 500;
    color: #000;
    line-height: 1.35;          /* трохи щільніше */
    word-break: break-word;
    overflow-wrap: anywhere;
}

.ncv-companies .ncv-card__field.website .icon {
    font-size: 14px;             /* трохи більший розмір значка для гармонії з текстом */
    display: inline-flex;
    align-items: center;         /* центрування значка по вертикалі */
    color: #000 !important;
    flex-shrink: 0;
    margin-top: 0;               /* прибрали зайвий відступ */
    line-height: 1.35;
}

.ncv-companies .ncv-card__field.website a {
    color: #000 !important;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    font-size: 12px !important;  /* зменшений розмір посилання */
    font-weight: 500;
    line-height: 1.35;
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.ncv-companies .ncv-card__field.website a:hover {
    text-decoration: underline;
}

/* === Опис === */
.ncv-companies .ncv-card__description {
    margin-top: 14px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    line-height: 1.45;
    font-weight: 400;
    color: #333;
}

/* === Розділювач === */
.ncv-companies .ncv-card__divider {
    margin-top: 12px;
    height: 1px;
    background: #314B757D;
    border-radius: 1px;
}

/* === Мобільні === */
@media (max-width: 760px) {
    .ncv-companies .ncv-card {
        max-width: 100%;
        width: 100%;
    }

    .ncv-companies .ncv-card__top {
        flex-direction: column;
    }

    .ncv-companies .ncv-card__contacts {
        max-width: 100%;
    }

    .ncv-companies .ncv-card__image {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
}
