/* Скидання та база */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #fff;
    -webkit-font-smoothing: antialiased;
}

.header-container {
    width: 100%;             /* Тепер блок займає 100% ширини екрану */
    max-width: 1600px;       /* Опціонально: обмежуємо на дуже широких моніторах (UltraWide) */
    margin: 0 auto;          /* Центруємо сам контейнер */
    
    display: grid;
    /* 1fr зліва і справа створюють однакові гнучкі зони. 
       Це гарантує, що центральний блок завжди буде МАТЕМАТИЧНИМ центром екрану. */
    grid-template-columns: 1fr auto 1fr; 
    
    align-items: start;
    padding: 25px 40px;      /* 40px — це комфортний відступ від країв екрану */
}

/* Притискаємо лівий блок до самого краю */
.logo-area {
    justify-self: start;
}

/* Центральний блок */
.support-area {
    justify-self: center;
    text-align: center;
}

/* Притискаємо правий блок до самого краю */
.login-container {
    justify-self: end;
}

/* Медіа-запит для мобільних пристроїв: 
   якщо екран зовсім вузький, Grid перебудує їх в один стовпчик */
@media (max-width: 900px) {
    .header-container {
        grid-template-columns: 1fr; /* Один стовпчик */
        justify-items: center;      /* Все по центру */
        gap: 20px;
        padding: 20px;
    }
    
    .logo-area, .login-container {
        justify-self: center;
    }
}
/* --- ЛОГОТИП --- */

.logo-img {
    width: 68px;
    height: auto;
}

.logo-text {
    font-size: 17px;
    font-weight: bold;
    color: #4b4b4b;
    line-height: 1.2;
    letter-spacing: 0.2px;
}

/* --- ПІДТРИМКА --- */


.support-label {
    font-size: 11.5px;
    color: #666;
}

.support-hours {
    font-size: 11px;
    color: #888;
    margin-bottom: 5px;
}

.phone-numbers {
    margin-bottom: 3px;
}

.phone {
    font-size: 26px;
    font-weight: bold;
    color: #7eb5d6; /* Точний колір зі скріна */
    line-height: 1;
    letter-spacing: -0.5px;
}

.email {
    font-size: 11.5px;
    color: #333;
}

.email a {
    color: #005ba1;
    text-decoration: underline;
}

/* --- БЛОК ВХОДУ --- */


.login-card {
    border: 1px solid #d4d4d4;
    border-radius: 4px;
    background: linear-gradient(to bottom, #ffffff 0%, #f9f9f9 100%);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.login-header {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 8px;
}

.login-title {
    color: #005ba1;
    font-size: 12.5px;
    font-weight: bold;
}

.login-content {
    padding: 12px;
}

.agreement-line {
    font-size: 11px;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 5px;
    line-height: 1.2;
}

.agreement-line a {
    color: #005ba1;
    text-decoration: underline;
}

.input-group {
    display: flex;
    align-items: center;
    margin-bottom: 6px;
}

.input-group label {
    width: 45px;
    font-size: 11px;
    color: #777;
}

.field {
    flex-grow: 1;
    height: 22px;
    border: 1px solid #ccc;
    padding: 0 4px;
    font-size: 12px;
}

.password-group {
    position: relative;
    padding-right: 52px; /* Місце для кнопки */
}

.btn-submit {
    position: absolute;
    right: 0;
    height: 24px;
    width: 48px;
    background: linear-gradient(to bottom, #f7f7f7, #e6e6e6);
    border: 1px solid #bbb;
    border-radius: 10px; /* Округлість як на скріні */
    font-size: 11px;
    color: #444;
    cursor: pointer;
}

.btn-submit:hover {
    background: #eee;
}

.login-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    font-size: 11px;
    margin-top: 10px;
    padding-right: 52px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 3px;
    color: #333;
}

.remember input {
    accent-color: #008000; /* Зелений колір чекбокса */
}

.pipe {
    margin: 0 6px;
    color: #ccc;
}

.forgot {
    color: #005ba1;
    text-decoration: underline;
}
/* --- КОНТЕЙНЕР КОНТЕНТУ --- */
.content-wrapper {
    width: 100%;
    background-color: #fff;
    padding-bottom: 50px;
}

.content-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px 1fr; /* Сайдбар фіксований, контент гумовий */
    gap: 20px;
    padding: 0 40px;
}

/* --- САЙДБАР БЛОКИ --- */
.sidebar-block {
    border: 1px solid #d4d4d4;
    border-radius: 4px;
    margin-bottom: 20px;
    background: #fff;
    overflow: hidden;
}

.block-header {
    background: linear-gradient(to bottom, #ffffff, #e6e6e6);
    padding: 8px 12px;
    border-bottom: 1px solid #d4d4d4;
    display: flex;
    align-items: center;
    gap: 10px;
}

.block-icon {
    width: 20px;
    height: auto;
}

.block-title {
    font-size: 12px;
    font-weight: bold;
    color: #b13131; /* Темно-червоний як на скріні */
}

.block-content {
    padding: 15px;
}

/* Пошук */
.search-input-row {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}

.search-input {
    flex-grow: 1;
    height: 24px;
    border: 1px solid #ccc;
    padding: 0 5px;
    font-size: 11px;
}

.btn-search {
    background: linear-gradient(to bottom, #4a76a1, #2b567d);
    color: white;
    border: 1px solid #2b567d;
    padding: 0 10px;
    font-size: 11px;
    cursor: pointer;
    border-radius: 2px;
}

.advanced-link {
    font-size: 11px;
    color: #005ba1;
    text-decoration: underline;
}

/* Посилання в сайдбарі */
.sidebar-links {
    list-style: none;
}

.sidebar-links li {
    padding: 4px 0 4px 15px;
    background: url('https://old.bankrot.fedresurs.ru/images/icons/bullet_red.png') no-repeat left center;
    /* Якщо немає іконки, можна використати псевдоелемент: */
    position: relative;
}

.sidebar-links li::before {
    content: "»";
    position: absolute;
    left: 0;
    color: #b13131;
    font-weight: bold;
}

.sidebar-links a {
    font-size: 11px;
    color: #005ba1;
    text-decoration: none;
}

.sidebar-links a:hover {
    text-decoration: underline;
}

/* Моніторинг */
.monitoring-box p {
    font-size: 11px;
    margin-bottom: 15px;
}

.more-link-row {
    text-align: right;
}

.more-link {
    font-size: 11px;
    color: #b13131;
    font-weight: bold;
}

.arrow-circle {
    background: #b13131;
    color: white;
    border-radius: 50%;
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    margin-left: 5px;
}

/* --- ГОЛОВНА ТАБЛИЦЯ --- */
.table-container {
    border: 1px solid #d4d4d4;
    border-radius: 4px;
}

.table-header {
    background: linear-gradient(to bottom, #ffffff, #e6e6e6);
    padding: 10px 15px;
    border-bottom: 1px solid #d4d4d4;
    display: flex;
    align-items: center;
    gap: 12px;
}

.table-header-title {
    font-size: 13px;
    font-weight: bold;
    color: #b13131;
}

.data-grid {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}

.data-grid th {
    background-color: #f2f2f2;
    color: #666;
    font-weight: bold;
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #d4d4d4;
    border-right: 1px solid #e0e0e0;
}

.data-grid td {
    padding: 10px;
    border-bottom: 1px solid #eee;
    border-right: 1px solid #f9f9f9;
    vertical-align: top;
    line-height: 1.4;
}

.data-grid tr.even {
    background-color: #f9f9f9;
}

.data-grid a {
    color: #005ba1;
    text-decoration: none;
}

.data-grid a:hover {
    text-decoration: underline;
}

/* Футер таблиці та пагінація */
.table-footer {
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
}

.pagination {
    display: flex;
    gap: 5px;
}

.page {
    display: inline-block;
    padding: 2px 6px;
    border: 1px solid #ccc;
    color: #005ba1;
    text-decoration: none;
}

.page.active {
    background-color: #b13131;
    color: white;
    border-color: #b13131;
}

/* Адаптивність */
@media (max-width: 1100px) {
    .content-container {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
}
/* Базові змінні футера */
.fed-footer {
    background-color: #c9bcab;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    width: 100%;
    margin-top: 40px;
}

.footer-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Верхня панель */
.fed-top-panel {
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.fed-top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fed-logo-block { display: flex; align-items: center; }
.fed-logo { display: flex; align-items: center; gap: 8px; }
.fed-logo-icon { 
    width: 22px; height: 22px; 
    background: linear-gradient(135deg, #ff8c00 50%, #e67e22 50%); 
    transform: rotate(-10deg); 
}
.fed-logo-text { font-size: 24px; font-weight: bold; }
.fed-divider { width: 1px; height: 35px; background: rgba(255, 255, 255, 0.5); margin: 0 15px; }
.fed-description { font-size: 10px; line-height: 1.2; opacity: 0.9; }

.fed-menu { list-style: none; display: flex; gap: 20px; }
.fed-menu a { color: #fff; font-size: 12px; font-weight: bold; text-decoration: none; }
.fed-menu a.active { border-bottom: 2px solid #fff; padding-bottom: 2px; }

/* Основна сітка футера */
.fed-footer-main {
    padding: 30px 0;
}

.fed-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 40px;
    align-items: start;
}

/* Колонки міністерств */
.fed-ministry {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.fed-min-logo { width: 45px; height: auto; }
.fed-min-info strong { display: block; font-size: 11px; line-height: 1.3; margin-bottom: 3px; }
.fed-min-info a { font-size: 11px; color: #fff; text-decoration: underline; opacity: 0.8; }

/* Колонка посилань */
.fed-links-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fed-links-col a {
    color: #fff;
    font-size: 12px;
    font-weight: bold;
    text-decoration: none;
}

/* Техпідтримка та Кабінет */
.fed-col-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.fed-col-header span { font-size: 14px; font-weight: bold; }
.fed-col-icon { width: 30px; height: 30px; }

.fed-col-content p {
    font-size: 11px;
    line-height: 1.5;
    margin-bottom: 10px;
    opacity: 0.9;
}

.fed-col-content a { color: #fff; text-decoration: underline; }
.fed-phones { font-size: 13px; font-weight: bold; line-height: 1.4; }

/* Нижня частина */
.fed-footer-bottom {
    padding: 25px 0 40px;
}

.fed-copyright {
    font-size: 12px;
    margin-bottom: 10px;
    opacity: 0.8;
}

.fed-policy-link {
    font-size: 11px;
    color: #fff;
    text-decoration: underline;
    opacity: 0.7;
    display: block;
}

/* Адаптивність */
@media (max-width: 1024px) {
    .fed-footer-grid { grid-template-columns: 1fr 1fr; }
    .fed-top-inner { flex-direction: column; gap: 20px; text-align: center; }
    .fed-divider { display: none; }
}

@media (max-width: 600px) {
    .fed-footer-grid { grid-template-columns: 1fr; }
}
.full-width-banner {
    width: 1200px;   /* Твоя фіксована ширина */
    margin: 0 auto;  /* Цей рядок ставить блок по центру сторінки */
    overflow: hidden;
    line-height: 0;
}

.banner-image {
    width: 100%;     /* Картинка розтягнеться на всі 1200px */
    height: auto;
    display: block;
}
/* ==================== ПЕРЕМЕННЫЕ (ГЛОБАЛЬНО +2px) ==================== */
:root {
    --fz-xs: 11px;       /* Было 10px */
    --fz-small: 12px;    /* Было 11px - основной текст */
    --fz-base: 13px;     /* Было 12px */
    --fz-medium: 14px;   /* Было 13px */
    --fz-large: 15px;    /* Было 14px */
    --fz-header: 18px;   /* Было 17px */
    --fz-phone: 26px;    /* Было 26px */
    
    --color-fed: #c9bcab;
    --color-blue: #005ba1;
    --color-red: #b13131;
    --color-border: #d4d4d4;
}

/* ==================== БАЗА ==================== */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
    font-family: Arial, Helvetica, sans-serif; 
    background-color: #fff; 
    font-size: var(--fz-small); 
    line-height: 1.4;
}
a { color: var(--color-blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.header-container, .content-container, .footer-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ==================== ХЕДЕР ==================== */
.main-header { padding: 25px 0; border-bottom: 1px solid #eee; }
.main-header .header-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: start;
}

.support-area { text-align: center; }
.support-label { font-size: var(--fz-medium); color: #666; }
.support-hours { font-size: var(--fz-small); color: #888; margin-bottom: 5px; }
.phone { font-size: var(--fz-phone); font-weight: bold; color: #7eb5d6; line-height: 1; }

.login-container { width: 315px; justify-self: end; }
.login-card { border: 1px solid var(--color-border); border-radius: 4px; background: linear-gradient(to bottom, #fff, #f9f9f9); }
.login-header { padding: 10px 12px; border-bottom: 1px solid #eee; display: flex; align-items: center; gap: 8px; color: var(--color-blue); font-weight: bold; font-size: var(--fz-medium); }
.login-content { padding: 12px; font-size: var(--fz-small); }
.input-group { display: flex; align-items: center; margin-bottom: 6px; }
.input-group label { width: 50px; color: #777; font-size: var(--fz-small); }
.field { flex-grow: 1; height: 24px; border: 1px solid #ccc; padding: 0 4px; font-size: var(--fz-small); }
.password-group { position: relative; padding-right: 52px; }
.btn-submit { position: absolute; right: 0; height: 24px; width: 48px; background: linear-gradient(to bottom, #f7f7f7, #e6e6e6); border: 1px solid #bbb; border-radius: 10px; font-size: var(--fz-small); cursor: pointer; }

/* ==================== КОНТЕНТ ==================== */
.content-container { display: grid; grid-template-columns: 280px 1fr; gap: 20px; padding: 30px 40px; }

/* Сайдбар */
.sidebar-block { border: 1px solid var(--color-border); border-radius: 4px; margin-bottom: 20px; overflow: hidden; }
.block-header { background: linear-gradient(to bottom, #fff, #e6e6e6); padding: 8px 12px; border-bottom: 1px solid var(--color-border); display: flex; align-items: center; gap: 10px; color: var(--color-red); font-weight: bold; font-size: var(--fz-base); }
.block-icon { width: 20px; }
.sidebar-links { list-style: none; padding: 10px; }
.sidebar-links li { margin-bottom: 8px; padding-left: 12px; position: relative; }
.sidebar-links li::before { content: "»"; position: absolute; left: 0; color: var(--color-red); }
.sidebar-links a { font-size: var(--fz-small); }

/* Таблица */
.table-container { border: 1px solid var(--color-border); border-radius: 4px; }
.table-header { background: linear-gradient(to bottom, #fff, #e6e6e6); padding: 10px 15px; border-bottom: 1px solid var(--color-border); color: var(--color-red); font-weight: bold; font-size: var(--fz-large); }
.data-grid { width: 100%; border-collapse: collapse; font-size: var(--fz-small); }
.data-grid th { background: #f2f2f2; padding: 12px 10px; border-bottom: 1px solid var(--color-border); text-align: left; color: #666; }
.data-grid td { padding: 12px 10px; border-bottom: 1px solid #eee; vertical-align: top; }
.data-grid tr.even { background: #f9f9f9; }

.table-footer { padding: 10px 15px; display: flex; justify-content: space-between; align-items: center; font-size: var(--fz-small); }
.page { padding: 3px 8px; border: 1px solid #ccc; margin-left: 5px; color: var(--color-blue); }
.page.active { background: var(--color-red); color: #fff; border-color: var(--color-red); }

/* ==================== БАННЕР (РЕГУЛИРУЕМЫЙ) ==================== */
.banner-image { width: 100%; height: 100%; object-fit: contain; display: block; }

/* ==================== ФУТЕР ==================== */
.fed-footer { background-color: var(--color-fed); color: #fff; }
.fed-top-panel { padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,0.4); }
.fed-top-inner { display: flex; justify-content: space-between; align-items: center; }
.fed-logo-text { font-size: 26px; font-weight: bold; } /* +2px */
.fed-description { font-size: var(--fz-small); line-height: 1.2; opacity: 0.9; }
.fed-menu { list-style: none; display: flex; gap: 20px; }
.fed-menu a { color: #fff; font-size: var(--fz-large); font-weight: bold; }

.fed-footer-main { padding: 30px 0; }
.fed-footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.fed-min-info strong { display: block; font-size: var(--fz-small); margin-bottom: 4px; }
.fed-min-info a { font-size: var(--fz-small); color: #fff; text-decoration: underline; }
.fed-col-header { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; font-size: var(--fz-large); font-weight: bold; }
.fed-col-content p { font-size: var(--fz-small); line-height: 1.5; margin-bottom: 10px; }
.fed-phones { font-size: var(--fz-large); font-weight: bold; }

.fed-footer-bottom { padding: 20px 0; background: rgba(0,0,0,0.05); }
.fed-copyright { font-size: var(--fz-base); margin-bottom: 5px; }
.fed-policy-link { font-size: var(--fz-small); color: #fff; opacity: 0.8; }

@media (max-width: 768px) {
    /* Контейнери */
    .header-container, .content-container, .footer-container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
.login-container {
        display: none !important;
    }
    /* Хедер */
    .header-container {
        grid-template-columns: 1fr !important;
        text-align: center;
    }
    .logo-area, .support-area, .login-container {
        justify-self: center !important;
        margin-bottom: 20px;
    }
    .login-container { width: 100%; max-width: 315px; }

    /* Контент */
    .content-container {
        grid-template-columns: 1fr !important;
    }
    .sidebar {
        order: 2; /* Сайдбар йде після таблиці */
    }
    .main-content {
        order: 1;
        width: 100%;
        overflow-x: hidden;
    }

    /* Банер */
    .full-width-banner {
        width: 100% !important;
    }

    /* Футер */
    .fed-top-inner {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .fed-logo-block {
        flex-direction: column;
    }
    .fed-divider {
        display: none;
    }
    .fed-menu {
        flex-wrap: wrap;
        justify-content: center;
    }
    .fed-footer-grid {
        grid-template-columns: 1fr !important;
        padding: 20px 0;
    }
}