/* ========================================= */
/* СТРАНИЦА "ОФИЦИАЛЬНЫЕ ДОКУМЕНТЫ" */
/* ========================================= */

.official-page {
    position: relative;
    width: 100%;
    min-height: 100vh; /* Прокрутка для работы хедера */
    box-sizing: border-box;

    /* Задник — тот же, что на странице "Документы" */
    background-image: url('../Images/Promo_background2.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;

    padding: 180px 60px 100px 60px;
    display: block;
}

/* Затемнение фона */
.official-page::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.official-title,
.official-layout {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
}

/* ЗАГОЛОВОК — как на других страницах */
/* ЗАГОЛОВОК */
.official-title {
    font-family: 'Mirra Auriolic', 'Playfair Display', serif;
    font-size: clamp(2.5rem, 5vw, 5rem);
    font-weight: 400;
    text-transform: uppercase;
    
    /* Компенсируем letter-spacing — текст реально встанет по центру */
    letter-spacing: 5px;
    text-indent: 5px; /* Сдвигаем на величину letter-spacing */
    
    text-align: center;
    margin: 0 auto 70px auto; /* Явно по центру */
    line-height: 1;
    display: block; /* На случай, если родитель — flex */
    width: 100%;
    max-width: 1400px;

    background: linear-gradient(180deg, #ffffff 0%, #a3c4d9 50%, #6b9bb5 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;

    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: #83D3FF;
    paint-order: stroke fill;

    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.8));
}

/* Двухколоночная раскладка */
.official-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
    align-items: start;
}

/* ========================================= */
/* ЛЕВАЯ КОЛОНКА: список категорий */
/* ========================================= */

.official-sidebar {
    padding-top: 20px;
}

.official-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: doc-counter;
}

.official-nav-list li {
    counter-increment: doc-counter;
    margin-bottom: 14px;
    position: relative;
    padding-left: 35px;
}

/* Нумерация "1." "2." и т.д. */
.official-nav-list li::before {
    content: counter(doc-counter) ".";
    position: absolute;
    left: 0;
    top: 0;
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    font-weight: 500;
    color: #83D3FF;
    letter-spacing: 0.5px;
}

.official-nav-list a {
    font-family: 'Oswald', sans-serif;
    font-size: 20px;
    font-weight: 400;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.5px;
    line-height: 1.5;
    transition: color 0.3s ease, padding-left 0.3s ease;
    display: inline-block;
}

.official-nav-list a:hover {
    color: #83D3FF;
    padding-left: 6px;
}

/* ========================================= */
/* ПРАВАЯ КОЛОНКА: файлы */
/* ========================================= */

.official-content {
    padding-top: 20px;
}

.official-subtitle {
    font-family: 'Oswald', sans-serif;
    font-size: 26px;
    font-weight: 500;
    color: #fff;
    letter-spacing: 1px;
    margin: 0 0 25px 0;
}

/* Таблица файлов */
.official-table {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

/* Шапка таблицы */
.official-table-header {
    display: grid;
    grid-template-columns: 2fr 1fr;
    padding: 20px 25px;
    background: rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);

    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #fff;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Строка файла */
.official-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    padding: 20px 25px;
    align-items: center;
    color: #fff;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: 18px;
    letter-spacing: 0.5px;
    transition: background 0.3s ease, padding-left 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.official-row:last-child {
    border-bottom: none;
}

.official-row:hover {
    background: rgba(0, 96, 162, 0.35);
    padding-left: 35px;
}

.official-row .col-name {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pdf-icon {
    font-size: 22px;
    flex-shrink: 0;
}

.official-row .col-size {
    color: #83D3FF;
    font-size: 17px;
    letter-spacing: 0.5px;
}

/* Кнопка "Назад" */
.official-back {
    margin-top: 40px;
}

.back-link {
    display: inline-block;
    font-family: 'Oswald', sans-serif;
    font-size: 16px;
    color: #83D3FF;
    text-decoration: none;
    letter-spacing: 1px;
    padding: 10px 22px;
    border: 1px solid #83D3FF;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.back-link:hover {
    background: #83D3FF;
    color: #1a2a3a;
}

/* ========================================= */
/* АДАПТИВ */
/* ========================================= */

@media (max-width: 1024px) {
    .official-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .official-page {
        padding: 120px 20px 60px 20px;
        min-height: auto;
    }

    .official-title {
        font-size: 32px;
        letter-spacing: 3px;
        margin-bottom: 40px;
    }

    .official-nav-list a {
        font-size: 17px;
    }

    .official-subtitle {
        font-size: 22px;
    }

    .official-table-header,
    .official-row {
        padding: 15px 18px;
        font-size: 14px;
    }

    .official-table-header {
        letter-spacing: 1px;
    }

    .official-row .col-size {
        font-size: 14px;
    }

    .pdf-icon {
        font-size: 18px;
    }
}