:root {
    --color-background: #181a1b;
    --color-surface: #2d3235;
    --color-text-primary: #e8e6e3;
    --color-text-secondary: #909396;
    --color-accent: #C19A6B;
    --color-accent-dark: #a8855a;
    --font-primary: 'Trebuchet MS', sans-serif;
    --font-secondary: 'Trebuchet MS', sans-serif;
}

body {
    margin: 0;
    font-family: var(--font-primary);
    background-color: var(--color-background);
    color: var(--color-text-primary);
    line-height: 1.7;
     display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body.no-scroll {
    overflow: hidden;
}

.container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-secondary);
    font-weight: 700;
    color: #fff;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--color-accent-dark);
}

.site-header {
    background-color: var(--color-surface);
    padding: 20px 0;
    border-bottom: 3px solid var(--color-accent);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-secondary);
    font-size: 28px;
    font-weight: 900;
    color: #fff;
    text-transform: uppercase;
}

.main-nav a {
    color: var(--color-text-primary);
    margin-left: 25px;
    font-size: 16px;
    font-weight: 700;
    transition: color 0.2s;
}

.main-nav a:hover, .main-nav a.active {
    color: var(--color-accent);
}

.site-content {
    padding: 60px 0;
     flex-grow: 1;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    justify-items: center;
}

.team-card {
    background-color: var(--color-surface);
    border-radius: 8px;
    text-align: center;
    padding: 40px 20px;
    border: 1px solid #444;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    transition: transform 0.3s, box-shadow 0.3s;
    width: 100%;
    max-width: 300px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.4);
}

.team-card img {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-accent);
    margin: 0 auto 25px auto;
}

.team-card h3 {
    margin: 0 0 8px 0;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
}

.team-position {
    color: var(--color-text-secondary);
    font-size: 14px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-bio {
    font-size: 14px;
    color: var(--color-text-secondary);
    font-style: italic;
    line-height: 1.5;
    margin: 15px 0;
    flex-grow: 1;
}

.team-phone {
    font-size: 16px;
    font-weight: bold;
    color: var(--color-text-primary);
    margin: 0 0 25px 0;
}

.team-contact-link {
    display: inline-block;
    padding: 10px 30px;
    background-color: var(--color-accent);
    color: #000;
    border-radius: 4px;
    font-weight: 700;
    font-size: 16px;
    transition: background-color 0.2s;
    margin-top: auto;
}

.team-contact-link:hover {
    background-color: var(--color-accent-dark);
    color: #000;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--color-text-secondary);
    font-weight: 700;
}
.pagination {
    text-align: center;
    margin-top: 50px;
}
.pagination a {
    color: var(--color-text-secondary);
    border: 1px solid #444;
    padding: 8px 16px;
    margin: 0 4px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s;
}
.pagination a:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: #000;
}
.pagination a.active {
    background-color: var(--color-accent);
    border-color: var(--color-accent-dark);
    color: #000;
    pointer-events: none;
}
.form-group input[type="text"],
.form-group input[type="date"],
.form-group input[type="email"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    background-color: #1c1f23;
    border: 1px solid #495057;
    color: var(--color-text-primary);
    border-radius: 4px;
    box-sizing: border-box;
    font-family: var(--font-primary);
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    cursor: pointer;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(193, 154, 107, 0.3);
}
.comment-form input[type="text"]:focus,
.comment-form textarea:focus {
    border-color: var(--color-accent);
    outline: none;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 0 3px rgba(193, 154, 107, 0.3);
}

.comment-form input[type="text"]:focus + .comment-editor-container textarea,
.comment-form textarea:focus ~ input[type="text"] {
    border-color: #495057;
}
.form-group select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 30px;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23909396%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.8-9.2-5.4-12.8z%22/%3E%3C/svg%3E');
    background-repeat: no-repeat;
    background-position: right 12px top 50%;
    background-size: .65em auto;
}

.form-button {
    padding: 12px 30px;
    background-color: var(--color-accent);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    font-family: var(--font-secondary);
    transition: background-color 0.2s;
}

.form-button:hover {
    background-color: var(--color-accent-dark);
}

.site-footer {
    background-color: var(--color-surface);
    color: var(--color-text-secondary);
    padding: 50px 0 30px 0;
    margin-top: 60px;
    border-top: 1px solid #444;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
    margin-bottom: 40px;
}

.footer-column {
    min-width: 220px;
}

.footer-column.about-column {
    flex: 2;
}

.footer-column.social-column {
    flex: 1;
}

.footer-title {
    font-size: 18px;
    color: #fff;
    margin-top: 0;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background-color: var(--color-accent);
}

.footer-social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border: 1px solid #495057;
    border-radius: 50%;
    color: var(--color-text-secondary);
    margin-right: 10px;
    font-weight: bold;
    transition: all 0.2s;
}

.footer-social-links a:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: #000;
}

.footer-copyright {
    text-align: center;
    border-top: 1px solid #444;
    padding-top: 30px;
}

.hero-section {
    text-align: center;
    padding: 40px 0;
    margin-bottom: 40px;
}

.hero-section h1 {
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 10px;
}

.hero-section .subtitle {
    font-size: 20px;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

.news-section {
    margin-bottom: 60px;
}

.cta-button {
    display: inline-block;
    padding: 14px 32px;
    background-color: var(--color-accent);
    color: #fff;
    border-radius: 6px;
    font-weight: 700;
    font-family: var(--font-secondary);
    font-size: 17px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.2s ease-in-out;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.cta-button:hover {
    background-color: var(--color-accent-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.cta-section h2 {
    margin-top: 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.post-card {
    background-color: var(--color-surface);
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: var(--color-text-primary);
    display: flex;
    flex-direction: column;
    border: 1px solid #444;
    transition: transform 0.2s, box-shadow 0.2s;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

.post-card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    border-bottom: 3px solid var(--color-accent);
}

.post-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.post-card-content h3 {
    margin: 0 0 15px 0;
    font-size: 20px;
    line-height: 1.4;
}

.post-card-content p {
    color: var(--color-text-secondary);
    flex-grow: 1;
    margin: 0 0 20px 0;
    line-height: 1.6;
}

.post-card-date {
    font-size: 12px;
    font-weight: bold;
    color: var(--color-text-secondary);
    margin-top: auto;
}

.single-post-container {
    max-width: 1000px;
    margin: 0 auto;
}

.single-post-container h1 {
    font-size: 36px;
    line-height: 1.3;
}

.post-meta {
    color: var(--color-text-secondary);
    margin-bottom: 30px;
}

.single-post-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 30px;
}

.post-content {
    line-height: 1.8;
    font-size: 18px;
}

.post-content p {
    margin-bottom: 1.5em;
}
.post-content p img {
    max-width: 100% !important;
    height: auto !important;
    display: block;
    clear: both;
    margin-top: 15px;
    margin-left: auto;
    margin-right: auto;
}
.reactions-container {
    display: flex;
    justify-content: flex-start;
    gap: 15px;
    padding-top: 20px;
    padding-bottom: 10px;
    margin-top: 40px;
    border-top: 1px solid #444;
}
.reaction-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--color-surface);
    padding: 8px 12px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    border: 1px solid #444;
}

.reaction-item:hover {
    transform: translateY(-3px);
    background-color: #3e4448;
    border-color: var(--color-accent);
}

.reaction-item.reacted {
    background-color: var(--color-accent);
    color: #000;
    border-color: var(--color-accent-dark);
    pointer-events: none;
}

.reaction-item.reacted .reaction-count {
    color: #000;
    font-weight: bold;
}

.reaction-icon {
    font-size: 20px;
}

.reaction-count {
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text-secondary);
}
.team-group {
    margin-bottom: 40px;
}

.director-group {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

.deputy-group h2, .staff-group h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
}

.team-divider {
    border: 0;
    height: 1px;
    background: #444;
    margin: 40px auto 60px auto;
    width: 80%;
}

.site-header {
    position: relative; /* Обязательно для работы z-index */
    z-index: 1000;
}

/* Иконка-бургер */
.hamburger-menu {
    display: none; /* Скрыта на ПК */
    position: relative; /* Важно для дочерних span */
    width: 30px;
    height: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 2001; /* САМЫЙ ВЫСОКИЙ СЛОЙ, чтобы быть над всем */
}

/* Стили для полосок бургера */
.hamburger-menu span {
    display: block;
    position: absolute;
    width: 100%;
    height: 3px;
    background-color: var(--color-text-primary);
    border-radius: 2px;
    left: 0;
    transition: all 0.35s ease-in-out; /* Плавная анимация */
}

.hamburger-menu span:nth-child(1) {
    top: 0;
}

.hamburger-menu span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-menu span:nth-child(3) {
    bottom: 0;
}


/* АНИМАЦИЯ ПРЕВРАЩЕНИЯ В КРЕСТИК */
/* Когда у кнопки появляется класс .active */

.hamburger-menu.active span:nth-child(1) {
    /* Поворачиваем верхнюю полоску и сдвигаем в центр */
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.hamburger-menu.active span:nth-child(2) {
    /* Прячем среднюю полоску */
    opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
    /* Поворачиваем нижнюю полоску и сдвигаем в центр */
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}


/* Само выезжающее меню */
.mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(24, 26, 27, 0.98);
    backdrop-filter: blur(5px);
    z-index: 2000; /* Высокий слой, но НИЖЕ чем у кнопки-крестика */
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    /* Скрываем меню и делаем его невидимым */
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.35s ease-in-out, opacity 0.35s ease-in-out, visibility 0.35s;
}

/* Когда меню активно, возвращаем его */
.mobile-nav.active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav a {
    font-size: 24px;
    margin: 20px 0;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

/* Кнопка закрытия (если она у вас отдельная) */
.close-menu {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 45px;
    color: #fff;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    z-index: 2001; /* Чтобы точно быть поверх меню */
}
.tabs { display: flex; flex-wrap: wrap; border-bottom: 2px solid #495057; margin-bottom: 30px; }
.tab-button { padding: 15px 25px; cursor: pointer; background: none; border: none; color: var(--color-text-secondary); font-size: 16px; font-family: var(--font-secondary); font-weight: 700; position: relative; bottom: -2px; border-bottom: 3px solid transparent; }
.tab-button.active { color: var(--color-accent); border-bottom-color: var(--color-accent); }
.tab-content { display: none; }
.tab-content.active { display: block; }
.form-document { background-color: var(--color-surface); padding: 40px; border: 1px solid #444; border-radius: 8px; }

.form-header { border-bottom: 1px solid #495057; padding-bottom: 20px; margin-bottom: 30px; }
.form-header p { margin: 0; line-height: 1.5; color: var(--color-text-secondary); }
.form-header strong { color: var(--color-text-primary); }
.form-title { text-align: center; font-size: 22px; margin-bottom: 30px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 20px; }
.form-grid-4 { display: grid; grid-template-columns: 1fr 1fr 0.5fr 1.5fr; gap: 20px; }
.report-intro-text { color: var(--color-text-secondary); margin-bottom: 10px; }
.dynamic-value { font-style: italic; color: var(--color-text-primary); font-weight: bold; }
.form-group.inline-group { display: flex; align-items: center; gap: 10px; margin-top: 15px; }
.form-group.inline-group strong { flex-shrink: 0; }
.form-group.inline-group .comma { color: var(--color-text-primary); font-weight: bold; }
.form-group.inline-group input { width: 300px; }
.form-notification { padding: 15px 20px; border-radius: 8px; margin-bottom: 30px; font-weight: bold; text-align: center; border: 2px solid; }
.form-notification.success { background-color: rgba(40, 167, 69, 0.1); border-color: #28a745; color: #28a745; }
.form-notification.error { background-color: rgba(220, 53, 69, 0.1); border-color: #dc3545; color: #dc3545; }
.hiring-header h1 { font-size: 24px; }
.criteria-block { background-color: rgba(217, 119, 6, 0.05); border: 1px solid var(--color-accent); border-radius: 8px; padding: 20px; margin-bottom: 40px; }
.criteria-block h4 { margin-top: 0; text-align: center; color: var(--color-accent); }
.criteria-block ul { list-style: none; padding: 0; margin: 0; text-align: center; }
.criteria-block ul li { margin-bottom: 5px; }

.form-subtitle, .form-section-header, .form-footer-notes { text-align: center; }
.form-subtitle { margin-top: -20px; margin-bottom: 30px; color: var(--color-text-secondary); }
.form-section-header { margin-top: 30px; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 1px solid #444; color: var(--color-accent); }
.form-footer-notes { margin-top: 30px; padding: 15px; background-color: #1c1f23; border-radius: 4px; }
.form-footer-notes p { margin: 0; font-size: 13px; color: var(--color-text-secondary); }

.comments-section { max-width: 1000px; margin: 20px auto 0 auto; padding-top: 40px; border-top: 2px solid #444; }
.comments-section h2 { margin-top: 0; }
.comment-form {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 40px;
    padding-top: 20px;
}

.comment-form-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--color-surface);
    flex-shrink: 0;
    background-image: url(https://camel.1317.cam/assets/img/placeholder.png);
    background-size: 100%;
    background-position: center;
    background-repeat: no-repeat;
}
.comment-form-fields {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.comment-form .form-group {
    margin-bottom: 0;
}
.comment-form .form-group label {
    display: none; 
}

.comment-form input[type="text"],
.comment-form textarea {
    padding: 10px 15px;
    border: 1px solid #495057;
}

.comment-form .comment-editor-container textarea {
    border-radius: 0 0 4px 4px;
    margin-top: -1px; 
}

.comment-form input[type="text"] {
    font-weight: bold;
    border-bottom: none;
    border-radius: 4px 4px 0 0; 
}
.comment-form .form-button {
    align-self: flex-end;
    margin-top: 10px;
    padding: 8px 20px;
}
.comment-editor-container { position: relative; }
.comment-editor-container textarea { padding-bottom: 50px; }
.comment-editor-toolbar { position: absolute; bottom: 10px; left: 10px; display: flex; align-items: center; gap: 5px; }
.comment-editor-toolbar .tool-btn { width: 35px; height: 35px; border: 1px solid transparent; background-color: transparent; color: var(--color-text-secondary); cursor: pointer; font-size: 16px; border-radius: 4px; display: flex; align-items: center; justify-content: center; transition: background-color 0.2s; }
.comment-editor-toolbar .tool-btn:hover { background-color: rgba(255, 255, 255, 0.1); }
.comment-editor-toolbar .tool-btn strong, .comment-editor-toolbar .tool-btn em { font-style: normal; }
.comment-editor-toolbar .tool-btn svg { fill: currentColor; }
.emoji-picker-container { position: relative; }
emoji-picker { position: absolute; bottom: 100%; left: 0; margin-bottom: 10px; display: none; --background: #1c1f23; --border-color: #495057; --indicator-color: var(--color-accent); }
emoji-picker.visible { display: block; }
.comment-list { display: flex; flex-direction: column; gap: 20px; }
.comment-card { background-color: var(--color-surface); border: 1px solid #444; border-radius: 8px; padding: 20px; }
.comment-header { display: flex; justify-content: space-between; align-items: center; padding-bottom: 10px; border-bottom: 1px solid #444; margin-bottom: 15px; }
.comment-author { font-weight: bold; color: var(--color-accent); }
.comment-date { font-size: 12px; color: var(--color-text-secondary); }
.comment-body { line-height: 1.7; word-wrap: break-word; }
/* ========================================================== */
/* ==       СТИЛИ ДЛЯ ПРАВОВОЙ БАЗЫ, ДОКУМЕНТОВ, УСТАВА    == */
/* ========================================================== */
.legal-layout { display: flex; gap: 40px;  flex-grow: 1;}
.legal-nav { width: 300px; flex-shrink: 0; }
.legal-nav ul { list-style: none; padding: 0; margin: 0; position: sticky; top: 20px; }
.legal-nav a { display: block; padding: 10px 15px; text-decoration: none; color: var(--color-text-secondary); border-left: 3px solid transparent; transition: all 0.2s; border-radius: 0 4px 4px 0; margin-bottom: 5px; }
.legal-nav a:hover { background-color: #343a40; color: #fff; }
.legal-nav a.active { border-left-color: var(--color-accent); background-color: var(--color-surface); color: #fff; font-weight: bold; }
.legal-content { flex-grow: 1; min-width: 0; }
a.inactive-link { opacity: 0.6; }
a.inactive-link small { font-style: italic; }
.inactive-document-content { opacity: 0.6; }

/* Общая обертка для документов */
.document-content-wrapper { background-color: var(--color-surface); border-radius: 5px; border: 1px solid #444; overflow: hidden; padding: 40px 50px; }

/* Стили для Приказов */
.doc-header-center { text-align: center; margin-bottom: 30px; }
.doc-header-center .doc-title { font-size: 24px; font-weight: 700; margin: 0 0 10px 0; color: #fff; }
.doc-header-center .doc-subject { font-size: 18px; color: var(--color-text-secondary); margin: 0; line-height: 1.4; }
.doc-separator { border: none; border-top: 1px solid #444; margin: 40px 0; }
.doc-body { line-height: 1.8; font-size: 16px; text-align: justify; }
.doc-body p { text-indent: 1.5em; }
.doc-body > *:first-child { margin-top: 0; }
.doc-body ol, .doc-body ul { text-indent: 0; padding-left: 40px; text-align: left; }
.doc-footer-right { text-align: right; margin-top: 50px; }
.doc-footer-right .signature-item { display: inline-block; margin-bottom: 20px; }
.doc-footer-right .signature-position { margin: 0; font-size: 16px; color: var(--color-text-secondary); }
.doc-footer-right .signature-name { margin: 5px 0 0 0; font-size: 18px; font-weight: bold; }
.doc-footer-right .doc-footer-date { margin-top: 20px; font-size: 16px; color: var(--color-text-secondary); }
.prikaz-wrapper {
    background-color: var(--color-surface);
    color: var(--color-text-primary);
    font-family: var(--font-primary);
    margin: 0; /* Убираем внешний отступ, т.к. родитель уже имеет padding */
    padding: 0; /* Убираем внутренний отступ */
    border: none; /* Убираем рамку, т.к. у родителя она уже есть */
}

.prikaz-header {
    text-align: center;
    border-bottom: 1px solid #444; /* Используем ваш стандартный цвет разделителя */
    padding-bottom: 20px;
    margin-bottom: 25px;
}
.org-logo {
    width: 100px;
    height: 100px;
}

.prikaz-header .org-logo {
    max-width: 120px;
    margin-bottom: 15px;
}

.prikaz-header .org-name {
    font-size: 1.4em;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.prikaz-header .org-details {
    font-size: 0.9em;
    color: var(--color-text-secondary);
    line-height: 1.4;
}

.prikaz-main-title {
    text-align: center;
    margin-bottom: 25px;
}

.prikaz-main-title h2 {
    margin: 0 0 5px 0;
    font-size: 1.7em;
    font-weight: 700;
}

.prikaz-main-title .prikaz-subject {
    font-size: 1.1em;
    color: var(--color-text-secondary);
}

.prikaz-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    font-size: 1em;
    color: var(--color-text-secondary);
}

.prikaz-body {
    line-height: 1.7;
    text-align: justify;
}

.prikaz-body .prikaz-preamble {
    color: var(--color-text-secondary);
    margin-bottom: 25px;
    text-align: left;
    text-indent: 1.5em; /* Добавляем красный абзац */
}

.prikaz-body p>strong, .prikaz-body p>b {
    color: #fff;
}

.prikaz-body p {
     margin-bottom: 1em;
}

.prikaz-body ol {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}

/* Общие стили для всех пунктов, создаем висячий отступ */
.prikaz-body li {
    position: relative;
    padding-left: 45px; /* Освобождаем место для номера */
    margin-bottom: 12px;
}

/* Основные пункты (I, II, III) */
.prikaz-body > ol {
    counter-reset: main-item; /* Запускаем счетчик для основных пунктов */
}
.prikaz-body > ol > li::before {
    counter-increment: main-item; /* Увеличиваем счетчик */
    content: counter(main-item, upper-roman) "."; /* Выводим номер I. */
    
    position: absolute;
    left: 0;
    top: 0;
    width: 40px; /* Фиксированная ширина для номера */
    text-align: right; /* Выравниваем номер по правому краю */
    
    font-weight: bold;
    color: var(--color-accent);
}

/* Вложенные подпункты (I.I, I.II) */
.prikaz-body ol ol {
    margin-top: 12px;
    counter-reset: sub-item; /* Запускаем счетчик для подпунктов */
}
.prikaz-body ol ol > li {
    padding-left: 65px; /* Увеличиваем отступ для подпунктов */
}
.prikaz-body ol ol > li::before {
    counter-increment: sub-item; /* Увеличиваем счетчик подпунктов */
    /* Формируем номер вида "I.I." */
    content: counter(main-item, upper-roman) "." counter(sub-item, upper-roman) ".";
    
    position: absolute;
    left: 0;
    top: 0;
    width: 60px; /* Увеличиваем ширину блока для номера */
    text-align: right;

    font-weight: normal; /* Обычный шрифт для подпунктов */
    color: var(--color-text-secondary);
}

.prikaz-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #444;
    text-align: right;
}

.prikaz-footer .signature-item {
    display: inline-block;
    text-align: right;
    margin-left: 50px;
    vertical-align: top;
}

.prikaz-footer .signer-position {
    font-weight: 700;
    margin: 0;
    font-size: 1em;
    color: var(--color-text-secondary);
}

.prikaz-footer .signer-name {
    margin: 10px 0 0 0;
    font-size: 1em;
    color: var(--color-text-primary);
}


/* Стили для Устава */
.doc-charter-header { text-align: center; border-bottom: 2px solid #444; padding-bottom: 30px; margin-bottom: 40px; }
.doc-charter-header h1 { font-size: 28px; text-transform: uppercase; margin: 0 0 10px 0; }
.doc-charter-header .doc-subtitle { font-size: 16px; color: var(--color-text-secondary); margin: 0 0 20px 0; }
.doc-charter-header .doc-revision-date { font-size: 14px; font-style: italic; color: var(--color-text-secondary); margin: 0; }
.doc-charter-wrapper .doc-section-title { font-size: 22px; color: var(--color-accent); margin: 40px 0 25px 0; padding-bottom: 10px; border-bottom: 1px solid #444; }
.doc-charter-wrapper .doc-paragraph { line-height: 1.8; text-align: justify; text-indent: 1.5em; margin-bottom: 1em; }
.doc-charter-wrapper .doc-paragraph strong { font-weight: bold; color: var(--color-text-primary); text-indent: 0; }
.doc-charter-wrapper .doc-sub-paragraphs { margin-left: 30px; margin-top: 1em; margin-bottom: 1em; }
.doc-approval-block { margin-top: 60px; text-align: right; border-top: 2px solid #444; padding-top: 30px; }
.doc-approval-block .approval-title { font-size: 16px; text-transform: uppercase; letter-spacing: 1px; color: var(--color-text-secondary); margin-bottom: 20px; }
.doc-approval-block p { text-align: right; }


/* =================================================== */
/* ==           СТИЛИ ДЛЯ ГЛАВНОЙ И ДРУГИХ СТРАНИЦ        == */
/* =================================================== */
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h1, .section-header h2 { font-size: 36px; margin: 0 0 15px 0; position: relative; display: inline-block; padding-bottom: 15px; }
.section-header h1::after, .section-header h2::after { content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 60px; height: 3px; background-color: var(--color-accent); border-radius: 2px; }
.section-header p { font-size: 18px; color: var(--color-text-secondary); max-width: 600px; margin: 0 auto; }
.about-us-section { display: flex; align-items: center; gap: 40px; background-color: var(--color-surface); padding: 50px 40px; border-radius: 8px; border: 1px solid #444; margin-bottom: 60px; }
.about-us-icon { flex-shrink: 0; }
.about-us-icon svg { width: 80px; height: 80px; fill: var(--color-accent); }
.about-us-content h2 { margin-top: 0; font-size: 28px; }
.about-us-content p { color: var(--color-text-primary); font-size: 17px; line-height: 1.8; opacity: 0.9; }
.cta-highlight-section { text-align: center; padding: 50px 30px; border-radius: 8px; border: 1px dashed var(--color-accent); background-color: rgba(217, 119, 6, 0.05); margin-bottom: 60px; }
.cta-highlight-section h2 { margin-top: 0; font-size: 28px; color: var(--color-text-primary); }
.cta-highlight-section p { color: var(--color-text-secondary); max-width: 650px; margin: 15px auto 30px auto; }
.content-table { width: 100%; border-collapse: collapse; margin-top: 20px; margin-bottom: 20px; font-size: 16px; background-color: var(--color-surface); border-radius: 8px; overflow: hidden; border: 1px solid #444; }
.content-table th, .content-table td { padding: 12px 15px; text-align: left; vertical-align: top; border-bottom: 1px solid #444; }
.content-table td { border-left: 1px solid #444; }
.content-table td:first-child { border-left: none; }
.content-table thead th { background-color: rgba(0,0,0,0.2); color: var(--color-accent); font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 2px solid var(--color-accent); }
.content-table tbody tr:last-child td { border-bottom: none; }
.content-table ol, .content-table ul { margin: 0; padding-left: 20px; }
.content-table ul { list-style-type: circle; margin-top: 5px; margin-bottom: 5px; }

/* Блок "Последний выпуск журнала" */
.journal-section { background-color: var(--color-surface); border: 1px solid #444; border-radius: 8px; padding: 40px; display: flex; align-items: center; gap: 40px; margin-bottom: 60px; }
.journal-cover { flex-shrink: 0; width: 250px; box-shadow: 0 10px 25px rgba(0,0,0,0.5); border-radius: 4px; overflow: hidden; transition: transform 0.3s ease; }
.journal-cover:hover { transform: scale(1.05) rotate(1deg); }
.journal-cover img { width: 100%; height: auto; display: block; }
.journal-info { flex-grow: 1; }
.journal-info .section-header { text-align: left; margin-bottom: 20px; }
.journal-info .section-header h2 { font-size: 28px; padding-bottom: 10px; }
.journal-info .section-header h2::after { left: 0; transform: translateX(0); }
.journal-info p { font-size: 16px; color: var(--color-text-secondary); margin-bottom: 30px; }
.journal-info .cta-button { font-size: 18px; padding: 15px 35px; }


/* =================================================== */
/* ==                  АДАПТИВНЫЕ СТИЛИ                    == */
/* =================================================== */
/* =================================================== */
/* ==           АДАПТИВНЫЕ СТИЛИ (Часть 1)          == */
/* =================================================== */

/* --- Планшеты и небольшие десктопы (до 992px) --- */
@media (max-width: 992px) {
    /* Адаптация двухколоночного макета на странице /legal.php */
    .legal-layout {
        flex-direction: column;
        gap: 30px;
    }
    .legal-nav {
        width: 100%;
        position: static; /* Отменяем "прилипание" меню */
        border-bottom: 2px solid #444;
        padding-bottom: 20px;
    }
    .legal-nav ul {
        position: static;
        display: flex; /* Выстраиваем ссылки в ряд */
        flex-wrap: wrap; /* Разрешаем перенос на новую строку */
        gap: 10px;
        justify-content: center;
    }

    /* Адаптация футера */
    .footer-content { 
        flex-direction: column; 
        text-align: center; 
    }
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
}


/* --- Мобильные устройства (до 768px) --- */
@media (max-width: 768px) {
    /* Скрываем основную навигацию и показываем иконку гамбургера */
     .main-nav {
        display: none;
    }
    .hamburger-menu {
        display: flex;
    }
	
	 .hamburger-menu span {
        width: 100%;
        height: 3px;
        background-color: var(--color-text-primary);
        border-radius: 2px;
        transition: all 0.3s linear;
    }
    
    /* Уменьшаем боковые отступы у основного контейнера */
    .container {
        padding: 0 15px;
    }

    /* Уменьшаем отступы контента */
    .site-content {
        padding: 40px 0;
    }
    
    /* Уменьшаем заголовки */
    .section-header h1, .section-header h2 {
        font-size: 28px;
    }
    .section-header p {
        font-size: 16px;
    }
    .single-post-container h1 {
        font-size: 28px;
    }

    /* Перестраиваем все основные сетки в одну колонку */
    .blog-grid,
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    /* Адаптация многоколоночных форм в одну колонку */
    .form-grid,
    .form-grid-3,
    .form-grid-4 {
        grid-template-columns: 1fr;
    }

    /* Уменьшаем внутренние отступы у "документов" */
    .form-document,
    .document-content-wrapper {
        padding: 25px 20px;
    }

    /* Адаптация блоков на главной странице */
    .about-us-section,
    .journal-section {
        flex-direction: column;
        text-align: center;
        gap: 30px;
        padding: 30px 20px;
    }
    .about-us-icon svg {
        width: 60px;
        height: 60px;
    }

    /* Центрируем заголовок в блоке журнала */
    .journal-info .section-header {
        text-align: center;
    }
    .journal-info .section-header h2::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .journal-cover {
        width: 100%;
        max-width: 250px;
    }
}

/* =================================================== */
/* ==           АДАПТИВНЫЕ СТИЛИ (Часть 2)          == */
/* =================================================== */

@media (max-width: 768px) {

    .post-content img,
    .post-content iframe {
        max-width: 100%;
        height: auto !important; /* Важно для iframe */
    }

    /* Адаптация блока с реакциями */
    .reactions-container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    /* Адаптация формы отправки комментария */
     .comment-form {
        display: block; /* Самое важное изменение! */
    }

    /* 2. Скрываем аватар, как и планировалось */
    .comment-form-avatar {
        display: none;
    }

    /* 3. Блок с полями ввода теперь автоматически займет 100% ширины,
       так как его родитель теперь обычный display:block */
    .comment-form-fields {
        width: 100%;
    }

    /* 4. Растягиваем кнопку на всю ширину для удобства */
    .comment-form .form-button {
        width: 100%;
        margin-top: 15px;
        padding-top: 12px;
        padding-bottom: 12px;
    }
    
    /* === Страница форм (/forms.php) === */

    /* Центрируем вкладки и разрешаем перенос */
    .tabs {
        justify-content: center;
    }
    .tab-button {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    /* Адаптация сложной шапки в форме отчета */
    .form-group.inline-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }
    .form-group.inline-group input {
        width: 100%;
        margin-top: 5px;
    }
    .form-group.inline-group .comma {
        display: none;
    }


    .prikaz-meta {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }

    .prikaz-footer,
    .doc-footer-right {
        text-align: left;
    }
    .prikaz-footer .signature-item,
    .doc-footer-right .signature-item {
        display: block;
        margin-left: 0;
        margin-bottom: 25px;
    }

    .content-table, .content-table thead, .content-table tbody, .content-table th, .content-table td, .content-table tr { 
		display: block; 
	}
    .content-table thead tr { 
		position: absolute;
		top: -9999px;
		left: -9999px;
	}
    .content-table tr { 
        border: 1px solid #444;
        margin-bottom: 10px;
    }
	.content-table td { 
		border: none;
		border-bottom: 1px solid #333; 
		position: relative;
		padding-left: 50%; 
        border-left: none !important;
	}
	.content-table td:before { 
		position: absolute;
		top: 12px;
		left: 15px;
		width: 45%; 
		padding-right: 10px; 
		white-space: nowrap;
        font-weight: bold;
        color: var(--color-accent);
	}
}