:root {
    --bg-pistachio: #CBE2B0;
    --text-color: #222222;
    --white: #ffffff;
    --accent-green: #4A7c59;
    --sidebar-width: 300px;
}

/* --- Базовые стили --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: var(--bg-pistachio);
    color: var(--text-color);
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

/* --- Header --- */
header {
    padding: 30px 20px;
    width: 100%;
    position: relative;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
}

/* --- Burger Menu Button --- */
.burger-menu {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    cursor: pointer;
    font-size: 1.8rem;
    color: var(--text-color);
    transition: color 0.3s;
}

.burger-menu:hover {
    color: var(--accent-green);
}

.raleway {
    font-family: 'Raleway', sans-serif;
}

.title {
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}

.color-green {
    color: var(--accent-green);
}

/* --- Side Navigation Panel --- */
.side-panel {
    position: fixed;
    top: 0;
    right: calc(var(--sidebar-width) * -1);
    /* Спрятано за экраном */
    width: var(--sidebar-width);
    height: 100%;
    background-color: var(--white);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1002;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 80px 30px 30px;
}

.side-panel.active {
    right: 0;
}

.side-panel .close-menu {
    position: absolute;
    top: 25px;
    right: 25px;
    font-size: 1.5rem;
    cursor: pointer;
}

.side-panel nav ul {
    list-style: none;
}

.side-panel nav ul li {
    margin-bottom: 20px;
}

.side-panel nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 400;
    font-size: 1.1rem;
    transition: color 0.2s;
    font-family: 'Raleway', sans-serif;
}

.side-panel nav ul li a:hover {
    color: var(--accent-green);
}

/* Затемнение фона при открытом меню */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    display: none;
    backdrop-filter: blur(2px);
}

.overlay.active {
    display: block;
}

.logo-wrapper {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.logo {
    max-width: 100px;
    height: auto;
    display: block;
}

.title-wrapper {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.title-snt {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 2px;
    color: var(--text-color);
    opacity: 0.9;
}

h1 {
    font-weight: 700;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
    margin: 0;
}

.logo-placeholder {
    width: 80px;
    height: 80px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--accent-green);
}

@media (max-width: 480px) {
    .header-container {
        flex-direction: column;
        text-align: center;
    }

    .title-wrapper {
        text-align: center;
        padding-right: 0;
    }

    .burger-menu {
        position: fixed;
        top: 20px;
        right: 20px;
        transform: none;
        background: white;
        width: 45px;
        height: 45px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }
}

main {
    flex: 1;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.doc-block {
    background-color: var(--white);
    width: 80%;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.doc-block h2 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--bg-pistachio);
    padding-bottom: 10px;
}

.file-link {
    display: flex;
    align-items: flex-start;
    text-decoration: none;
    color: var(--text-color);
    margin-bottom: 20px;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.file-link:hover {
    background-color: #f4f9f4;
}

.file-icon {
    font-size: 28px;
    margin-right: 15px;
    margin-top: 2px;
}

.fa-file-pdf {
    color: #D32F2F;
}

.file-info {
    display: flex;
    flex-direction: column;
}

.file-name {
    font-weight: 600;
    font-size: 1rem;
}

.file-meta {
    font-size: 0.85rem;
    color: #666;
}

.image-preview-section {
    width: 100%;
    text-align: center;
    margin-top: 10px;
}

.preview-img {
    max-width: 100%;
    max-height: 512px;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    border: 4px solid var(--white);
}

.preview-caption {
    font-size: 0.8rem;
}

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 1200px;
    animation: zoomIn 0.3s;
}

.close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

footer {
    text-align: center;
    padding: 30px 20px;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: auto;
}

@media (max-width: 768px) {
    .doc-block {
        width: 100%;
        padding: 20px;
    }

    h1 {
        font-size: 1.2rem;
    }
}

.content-block {

}

.content-block p {
    margin-bottom: 16px;
}

.content-block ul {
    margin-left: 24px;
}

.content-block ul li {
    margin-bottom: 8px;
}

.content-block a {
    color: var(--accent-green);
    transition: color 0.2s;
}

.content-block a:hover {
    color: var(--bg-pistachio);
    text-decoration: none;
}