.text-content-page h1,
.text-content-page h2,
.text-content-page h3 {
    color: #343a40; /* Более глубокий черный для заголовков */
}

.text-content-page .main-title {
    margin-bottom: 2rem;
}

.section-divider {
    border: 0;
    height: 1px;
    background-color: #e9ecef;
    margin: 2.5rem 0;
}

.rules-section {
    margin-bottom: 2rem;
}

.rules-section h2 {
    font-size: 1.6em;
    margin-bottom: 1rem;
}

/* Стилизуем списки */
.rules-section ul {
    list-style: none; /* Убираем стандартные маркеры */
    padding-left: 0;
}

.rules-section ul li {
    position: relative;
    padding-left: 2em; /* Место для кастомного маркера */
    margin-bottom: 0.75rem;
    font-size: 1.1em;
    line-height: 1.7;
    color: #495057;
}

/* Рисуем кастомный маркер-галочку */
.rules-section ul li::before {
    content: '✔'; /* Или можно использовать SVG */
    position: absolute;
    left: 0;
    top: 2px;
    color: #28a745; /* Зеленый цвет */
    font-size: 1.2em;
    font-weight: bold;
}

/* Блок "Обратите внимание" */
.attention-block {
    background-color: #fff3cd; /* Теплый желтый фон */
    border-left: 5px solid #ffeeba;
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 8px;
}
.attention-block h3 {
    margin-top: 0;
    color: #856404;
}
.attention-block p {
    margin-bottom: 0.5rem;
    font-weight: 500;
}
.attention-block p:last-child {
    margin-bottom: 0;
}

/* Финальный блок-заметка */
.final-note {
    text-align: center;
    padding: 1.5rem;
    margin-top: 2rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 500;
}
.final-note p {
    margin: 0;
}

.document-list {
    max-width: 700px;
    margin: 2rem auto;
}

.document-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.document-list li {
    margin-bottom: 1rem;
}

.document-list a {
    position: relative; /* Необходимо для ::before */
    display: flex;
    align-items: center;
    padding: 1.25rem 1.5rem 1.25rem 4rem; /* Увеличили отступ слева для иконки */
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 12px;

    text-decoration: none;
    color: #343a40;
    font-size: 1.1em;
    font-weight: 500;

    transition: all 0.3s ease;
}

/* Добавляем SVG-иконку документа через псевдо-элемент */
.document-list a::before {
    content: '';
    position: absolute;
    left: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background-color: #adb5bd; /* Цвет иконки по умолчанию */
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 0h5.293A1 1 0 0 1 10 .293L13.707 4a1 1 0 0 1 .293.707V14a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2zm0 1a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 0h5.293A1 1 0 0 1 10 .293L13.707 4a1 1 0 0 1 .293.707V14a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V2a2 2 0 0 1 2-2zm0 1a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h8a1 1 0 0 0 1-1V4.5h-2A1.5 1.5 0 0 1 9.5 3V1H4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    transition: background-color 0.3s ease;
}


.document-list a:hover {
    border-color: #007bff;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.1);
    transform: translateY(-3px);
    text-decoration: none;
    color: #007bff;
}

/* Меняем цвет иконки при наведении */
.document-list a:hover::before {
    background-color: #007bff;
}

.doc-title {
    flex-grow: 1;
}

.arrow {
    font-size: 1.5em;
    font-weight: bold;
    color: #ced4da;
    transition: all 0.3s ease;
}

.document-list a:hover .arrow {
    color: #007bff;
    transform: translateX(5px);
}

.document-header {
    text-align: center; /* Центрируем все содержимое */
    padding-bottom: 2rem;
}

.document-header .main-title {
    margin-bottom: 0.5rem;
}

.document-header .subtitle {
    font-size: 1em;
    color: #888;
    margin-top: 0;
    margin-bottom: 2rem;
}

/* Стилизуем кнопку "Назад" как "призрачную" */
.back-to-docs-button {
    background-color: transparent;
    color: #007bff;
    border: 2px solid #007bff;

    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 10px 20px;
    font-size: 0.9em;
}

.back-to-docs-button:hover {
    background-color: #007bff;
    color: #fff;
}

.back-to-docs-button .arrow {
    font-weight: bold;
    transition: transform 0.2s ease;
}

.back-to-docs-button:hover .arrow {
    transform: translateX(-4px);
}