/* =========================================================
   Підтримка та супровід експортерів
   Фінальна версія стилів для content/ms1/7.txt
   ========================================================= */

.department-content.export-support {
    width: 100%;
    box-sizing: border-box;
    padding-top: 14px;
}

/* Заголовок сторінки */
.department-content.export-support .section-header {
    justify-content: flex-start;
    padding: 0 10px;
    box-sizing: border-box;
}

.department-content.export-support .section-header h3 {
    margin: 0 0 10px;
    padding: 0;
    color: #1f1f1f;
    font-size: 1.28rem;
    line-height: 1.35;
}

.department-content.export-support .export-update-date {
    margin: 0 10px 18px;
    padding: 0;
    color: #555;
    font-size: 0.93rem;
    line-height: 1.45;
    text-align: left;
}

/* =========================================================
   Сітка карток
   На ПК — 2 картки в ряд.
   Центральну область використовуємо майже повністю,
   але залишаємо невеликі бокові відступи.
   ========================================================= */
.department-content.export-support .export-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;

    width: calc(100% - 20px);
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 0 24px;
    box-sizing: border-box;
}

.department-content.export-support .export-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;

    background: #fff;
    border: 1px solid #d3d9df;
    border-radius: 9px;
    overflow: hidden;
    box-sizing: border-box;

    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.07);
    transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.department-content.export-support .export-card:hover {
    border-color: #c4ccd4;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);
}

/* =========================================================
   Логотипи
   Однакова зона для всіх карток.
   ========================================================= */
.department-content.export-support .export-card-logo {
    display: flex;
    align-items: center;
    justify-content: center;

    height: 150px;
    padding: 14px 18px;
    box-sizing: border-box;

    background: #fff;
    border-bottom: 1px solid #e2e6ea;
}

.department-content.export-support .export-card-logo img {
    display: block;
    max-width: 100%;
    max-height: 126px;
    width: auto;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    border: 0;
}

/* =========================================================
   Текстова частина
   ========================================================= */
.department-content.export-support .export-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;

    padding: 16px 17px 14px;
    box-sizing: border-box;
}

.department-content.export-support .export-card-content h4 {
    margin: 0 0 11px;
    padding: 0;

    color: #202020;
    font-size: 1.08rem;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

/* Англомовна офіційна назва */
.department-content.export-support .export-card-official-name {
    margin: 0 0 12px;
    padding: 0;

    color: #5c6268;
    font-size: 0.79rem;
    line-height: 1.42;
    overflow-wrap: anywhere;
}

/* =========================================================
   Контакти
   ========================================================= */
.department-content.export-support .export-contact {
    display: flex;
    align-items: flex-start;
    gap: 6px;

    margin: 0 0 12px;
    padding: 0;

    font-size: 0.94rem;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.department-content.export-support .export-contact-label {
    flex: 0 0 auto;
    color: #222;
    font-weight: 700;
}

.department-content.export-support .export-contact a {
    color: #005bbb;
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
    text-decoration: underline;
    overflow-wrap: anywhere;
}

.department-content.export-support .export-contact a:hover,
.department-content.export-support .export-contact a:focus {
    text-decoration: none;
}

/* =========================================================
   Кнопки-посилання
   ========================================================= */
.department-content.export-support .export-card-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;

    margin-top: auto;
    padding-top: 12px;
}

.department-content.export-support .export-card-links > a {
    display: inline-block;
    width: auto;
    margin: 0;
    padding: 7px 12px;
    box-sizing: border-box;

    color: #005bbb;
    background: #f5f9fc;
    border: 1px solid #b8cfe2;
    border-radius: 5px;

    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none;
}

.department-content.export-support .export-card-links > a:hover,
.department-content.export-support .export-card-links > a:focus {
    background: #e7f1f9;
    border-color: #77a9cf;
    text-decoration: underline;
}

.department-content.export-support .export-card-links > a:focus-visible,
.department-content.export-support .export-contact a:focus-visible {
    outline: 2px solid #005bbb;
    outline-offset: 2px;
}

/* =========================================================
   Планшети
   До 900 px залишаємо 2 колонки, але трохи ущільнюємо картки.
   ========================================================= */
@media (max-width: 900px) {
    .department-content.export-support .export-cards {
        width: calc(100% - 16px);
        gap: 14px;
    }

    .department-content.export-support .export-card-logo {
        height: 140px;
        padding: 12px 14px;
    }

    .department-content.export-support .export-card-logo img {
        max-height: 116px;
    }

    .department-content.export-support .export-card-content {
        padding: 14px;
    }

    .department-content.export-support .export-card-content h4 {
        font-size: 1.02rem;
    }
}

/* =========================================================
   Телефони / вузька центральна колонка
   ========================================================= */
@media (max-width: 700px) {
    .department-content.export-support .export-cards {
        grid-template-columns: 1fr;
        width: calc(100% - 20px);
        gap: 14px;
        padding-bottom: 20px;
    }

    .department-content.export-support .export-card-logo {
        height: 150px;
    }

    .department-content.export-support .export-card-logo img {
        max-height: 126px;
    }

    .department-content.export-support .section-header {
        padding-left: 10px;
        padding-right: 10px;
    }

    .department-content.export-support .section-header h3 {
        font-size: 1.18rem;
    }
}

@media (max-width: 480px) {
    .department-content.export-support {
        padding-top: 10px;
    }

    .department-content.export-support .export-update-date {
        margin-bottom: 14px;
    }

    .department-content.export-support .export-card-content {
        padding: 14px;
    }

    .department-content.export-support .export-card-content h4 {
        font-size: 1rem;
    }

    .department-content.export-support .export-card-official-name {
        font-size: 0.77rem;
    }

    .department-content.export-support .export-card-links {
        flex-direction: column;
        align-items: stretch;
    }

    .department-content.export-support .export-card-links > a {
        width: 100%;
        text-align: center;
    }
}

/* =========================================================
   Друк / PDF
   ========================================================= */
@media print {
    .department-content.export-support .export-cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        max-width: none;
        gap: 12px;
    }

    .department-content.export-support .export-card {
        box-shadow: none;
        break-inside: avoid;
        page-break-inside: avoid;
    }

    .department-content.export-support .export-card-logo {
        height: 130px;
    }

    .department-content.export-support .export-card-logo img {
        max-height: 108px;
    }
}