/* ---------------------------------------
   Глобальная типографика
--------------------------------------- */
:root {
    font-family:
        "Oswald",
        "Montserrat",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Oxygen,
        Ubuntu,
        Cantarell,
        "Helvetica Neue",
        Arial,
        sans-serif;

    /* Цветовая система */
    --agat-blue: #0d4678;        /* тёплый глубокий синий */
    --agat-black: #1E1E1E;       /* текст */
    --agat-copper: #C45A1A;      /* акценты, кнопки, strong, заголовки */

    --scrap-surface: rgba(255,255,255,0.65);
    --scrap-border: rgba(0,0,0,0.12);
    --scrap-text: var(--agat-black);
    --scrap-muted: rgba(30,30,30,0.55);
}
h2.agat-title-section {
    color: var(--agat-copper) !important;
    font-family: "Oswald", sans-serif !important;
    font-weight: 700;
    letter-spacing: 0.5px;
    font-size: 2.2rem;
    margin-bottom: 1.2rem;
}

/* ---------------------------------------
   Заголовки (все h1–h6)
--------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    color: var(--agat-copper);
    font-family: "Oswald", sans-serif;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 1.2rem;
}

/* ---------------------------------------
   Акцентный текст (strong)
--------------------------------------- */
strong {
    color: var(--agat-copper);
    font-weight: 700;
}

/* ---------------------------------------
   Заголовок блока таблицы
--------------------------------------- */
.agat-title-section {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--agat-copper);
    letter-spacing: 0.5px;
    margin-bottom: 1.2rem;
    font-family: "Oswald", sans-serif;
}

/* ---------------------------------------
   Примечание под заголовком
--------------------------------------- */
.agat-table-note {
    font-size: 1.55rem;
    color: var(--scrap-muted);
    margin-bottom: 1.4rem;
    line-height: 1.6;
}

/* ---------------------------------------
   Обёртка таблицы
--------------------------------------- */
.agat-table-wrapper {
    margin-top: 2rem;
    padding: 2rem 2.4rem;
    border-radius: 1.6rem;
    background: var(--scrap-surface);
    backdrop-filter: blur(20px);
    border: 1px solid var(--scrap-border);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.18);
    overflow: hidden;
}

/* ---------------------------------------
   Контейнер таблицы
--------------------------------------- */
.agat-table-container {
    margin-bottom: 2rem;
}

/* ---------------------------------------
   Таблица
--------------------------------------- */
.agat-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 1.2rem;
    color: var(--scrap-text);
    border-radius: 1.2rem;
    overflow: hidden;
}

/* ---------------------------------------
   Шапка таблицы
--------------------------------------- */
.agat-table thead th {
    background: var(--agat-blue);
    backdrop-filter: blur(14px);

    padding: 1.2rem 1rem;
    font-weight: 600;
    color: #fff;
    text-align: left;
    font-size: 1.4rem;

    border-bottom: 1px solid rgba(255,255,255,0.25);

    box-shadow:
        0 5px 12px rgba(15, 23, 42, 0.18),
        0 0 14px rgba(0, 58, 122, 0.28);
}

/* ---------------------------------------
   Ячейки
--------------------------------------- */
.agat-table td {
    padding: 1.2rem 1rem;
    border-bottom: 1px solid var(--scrap-border);
    vertical-align: top;
    font-size: 1.2rem;
}

/* ---------------------------------------
   Чередование строк
--------------------------------------- */
.agat-table tbody tr:nth-child(even) {
    background: rgba(248, 251, 255, 0.55);
}

.agat-table tbody tr:nth-child(odd) {
    background: rgba(248, 251, 255, 0.25);
}

/* ---------------------------------------
   Нижний блок
--------------------------------------- */
.agat-bottom-info {
    margin-top: 2rem;
    padding: 1.6rem 1.9rem;
    border-radius: 1.4rem;
    background: rgba(248, 251, 255, 0.55);
    backdrop-filter: blur(16px);
    border: 1px solid var(--scrap-border);
    box-shadow: 0 10px 26px rgba(15,23,42,0.14);
    font-size: 1.55rem;
    line-height: 1.6;
}

/* ---------------------------------------
   Кнопки
--------------------------------------- */
.agat-btn {
    display: inline-block;
    padding: 1rem 1.6rem;
    font-size: 1.55rem;
    font-weight: 600;
    border-radius: 1rem;
    background: var(--agat-copper);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: 0.25s ease;
    box-shadow: 0 0 18px rgba(196, 90, 26, 0.45);
}

.agat-btn:hover {
    background: #d86a22;
    box-shadow: 0 0 26px rgba(196, 90, 26, 0.65);
    transform: translateY(-2px);
}
/* ---------------------------------------
   Адаптивность таблиц Agat‑UI
--------------------------------------- */

/* Обёртка делает таблицу скроллируемой на узких экранах */
.agat-table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Чтобы скролл был аккуратным */
.agat-table-wrapper::-webkit-scrollbar {
    height: 8px;
}
.agat-table-wrapper::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.25);
    border-radius: 4px;
}
.agat-table-wrapper::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.08);
}

/* ---------------------------------------
   Мобильная адаптация
--------------------------------------- */
@media (max-width: 760px) {

    /* Уменьшаем внутренние отступы */
    .agat-table-wrapper {
        padding: 1.4rem 1.2rem;
    }

    /* Таблица становится компактнее */
    .agat-table td,
    .agat-table thead th {
        padding: 0.9rem 0.7rem;
        font-size: 1.1rem;
    }

    .agat-table thead th {
        font-size: 1.25rem;
    }

    /* Примечание под заголовком */
    .agat-table-note {
        font-size: 1.3rem;
    }

    /* Нижний блок */
    .agat-bottom-info {
        font-size: 1.35rem;
        padding: 1.2rem 1.4rem;
    }
}

/* ---------------------------------------
   Сверхмалые экраны (телефоны < 480px)
--------------------------------------- */
@media (max-width: 480px) {

    .agat-table td,
    .agat-table thead th {
        padding: 0.7rem 0.55rem;
        font-size: 1rem;
    }

    .agat-table thead th {
        font-size: 1.15rem;
    }

    .agat-title-section {
        font-size: 1.8rem;
    }

    .agat-table-note {
        font-size: 1.2rem;
    }

    .agat-bottom-info {
        font-size: 1.25rem;
    }
}
