/* Admin mode - hidden by default */
.gallery-delete, .news-delete, .news-edit, .doc-delete, .news-actions { display: none; }
.add-news-form, .add-form, #addDocForm { display: none; }

/* Admin mode - show when logged in */
html.admin-mode .gallery-delete, 
html.admin-mode .news-delete, 
html.admin-mode .news-edit, 
html.admin-mode .doc-delete,
html.admin-mode .news-actions { display: block; }
html.admin-mode .add-news-form, 
html.admin-mode .add-form, 
html.admin-mode #addDocForm { display: block; }

/* ==========================================
   ЗОЦЕНТУМ - Ecology & Nature Center Styles
   ========================================== */

:root {
    --primary: #22c55e;
    --primary-dark: #16a34a;
    --primary-light: #4ade80;
    --secondary: #f59e0b;
    --secondary-dark: #d97706;
    --tertiary: #3b82f6;
    --accent-pink: #ec4899;
    --accent-purple: #8b5cf6;
    --accent-cyan: #06b6d4;
    --dark: #1e293b;
    --dark-secondary: #334155;
    --light: #f0fdf4;
    --white: #ffffff;
    --gray: #94a3b8;
    --gray-light: #e2e8f0;
    --border: #cbd5e1;
    --shadow: rgba(34, 197, 94, 0.15);
    --shadow-lg: rgba(34, 197, 94, 0.25);
    --transition: 0.3s ease;
    --radius: 12px;
    --radius-lg: 20px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Nunito', 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 80%, rgba(34, 197, 94, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(236, 72, 153, 0.05) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--white);
}

.header.scrolled { 
    box-shadow: 0 4px 30px var(--shadow-lg); 
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
}

.logo-icon {
    font-size: 32px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.logo-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark-secondary);
    padding: 10px 18px;
    border-radius: 25px;
    position: relative;
    transition: all var(--transition);
}

.nav-link:hover {
    color: var(--primary);
    background: rgba(34, 197, 94, 0.1);
}

.nav-link-active {
    color: var(--white);
    background: var(--primary);
}

.nav-link-active:hover {
    color: var(--white);
    background: var(--primary-dark);
}

/* Login Button */
.nav-link-login {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    color: var(--white) !important;
    padding: 10px 20px;
    border-radius: 25px;
}

.nav-link-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(245, 158, 11, 0.4);
}

/* Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--dark);
    border-radius: 3px;
    transition: var(--transition);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
    animation: float 6s infinite ease-in-out;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.2) 0%, rgba(34, 197, 94, 0.05) 100%);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(59, 130, 246, 0.05) 100%);
    bottom: -50px;
    left: -50px;
    animation-delay: 1s;
}

.shape-3 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2) 0%, rgba(236, 72, 153, 0.05) 100%);
    top: 40%;
    left: 20%;
    animation-delay: 2s;
}

.shape-4 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, var(--secondary), 0.2) 0%, rgba(245, 158, 11, 0.05) 100%);
    bottom: 30%;
    right: 15%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(5deg); }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    animation: fadeInUp 0.8s ease-out;
}

.hero-top {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 16px;
    display: inline-block;
    padding: 8px 20px;
    background: rgba(34, 197, 94, 0.15);
    border-radius: 25px;
}

.hero-title {
    font-size: 42px;
    font-weight: 800;
    line-height: 1.3;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 50%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 22px;
    color: var(--dark-secondary);
    margin-bottom: 32px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-download {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border-radius: 25px;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(34, 197, 94, 0.4);
}

.btn-download.btn-disabled,
.btn-download:disabled {
    background: linear-gradient(135deg, var(--gray) 0%, var(--dark-secondary) 100%);
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/*
 * News Full Page
 */
.news-full-section {
    padding: 120px 0 60px;
    min-height: 100vh;
}

.news-full {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 20px var(--shadow);
}

.news-full-image {
    width: 100%;
    height: 350px;
    border-radius: 15px;
    margin-bottom: 24px;
    overflow: hidden;
    background: var(--light);
}

.news-full-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-full-date {
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 12px;
}

.news-full h1 {
    font-size: 32px;
    color: var(--dark);
    margin-bottom: 24px;
    line-height: 1.3;
}

.news-full-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--dark);
    text-align: justify;
    white-space: pre-line;
    text-indent: 2em;
    margin-top: 16px;
}

/* Sections */
.section { padding: 80px 0; }
.section-alt { background: rgba(240, 253, 244, 0.5); }

.page-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 32px;
    text-align: center;
    padding-top: 80px;
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 40px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    margin: 12px auto 0;
    border-radius: 2px;
}

/* News Cards */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.news-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 20px var(--shadow);
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.news-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px var(--shadow-lg);
}

.news-card .news-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius) var(--radius) 0 0;
    margin: -24px -24px 0;
    background-color: var(--light);
}

.news-card .news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card .news-image-placeholder {
    height: 200px;
    background: linear-gradient(135deg, var(--light) 0%, var(--gray-light) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    border-radius: var(--radius) var(--radius) 0 0;
}

.news-card:hover .news-image,
.news-card:hover .news-image-placeholder {
    opacity: 0.9;
}

.news-date {
    font-size: 13px;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 8px;
}

.news-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 8px;
}

.news-card p {
    font-size: 14px;
    color: var(--dark-secondary);
}

.news-read-more {
    display: inline-block;
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    margin-top: 12px;
    transition: all var(--transition);
}

.news-read-more:hover {
    color: var(--primary-dark);
    transform: translateX(5px);
}

.news-delete, .news-edit {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
    transition: all var(--transition);
}

.news-delete:hover { background: #dc2626; }

.news-edit {
    position: absolute;
    top: 12px;
    right: 48px;
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    z-index: 10;
    transition: all var(--transition);
}

.news-edit:hover { background: var(--primary-dark); }

.news-full-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.btn-edit {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
}

.btn-delete {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
}

.modal-content-large {
    max-width: 600px;
    width: 90%;
}

/* About Cards */
.about-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.about-card {
    background: var(--white);
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: 0 4px 20px var(--shadow);
    transition: all var(--transition);
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.about-card:nth-child(1) { animation-delay: 0.1s; }
.about-card:nth-child(2) { animation-delay: 0.2s; }
.about-card:nth-child(3) { animation-delay: 0.3s; }
.about-card:nth-child(4) { animation-delay: 0.4s; }

.about-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px var(--shadow-lg);
}

.about-card h3 {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.about-card p {
    font-size: 14px;
    color: var(--dark-secondary);
    font-weight: 600;
}

/* Document Cards */
.documents-list { display: grid; gap: 16px; }

.document-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    background: var(--white);
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}

.document-card:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 20px var(--shadow);
    transform: translateX(5px);
}

.document-card.hidden { display: none; }

.document-info { flex: 1; }

.document-info h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 6px;
}

.document-info p {
    font-size: 14px;
    color: var(--dark-secondary);
}

.document-delete {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: none;
}

.document-edit {
    position: absolute;
    top: 12px;
    right: 44px;
    width: 28px;
    height: 28px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: none;
}

.doc-actions {
    display: none;
    position: absolute;
    top: 12px;
    right: 12px;
    gap: 8px;
}

.document-card:hover .doc-actions {
    display: flex;
}

.document-card.admin { position: relative; }
.document-card.admin .document-delete,
.document-card.admin .document-edit {
    display: block;
}

.document-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    background: rgba(34, 197, 94, 0.1);
    padding: 4px 12px;
    border-radius: 15px;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.gallery-item {
    aspect-ratio: 4/3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
    position: relative;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 40px var(--shadow-lg);
}

.gallery-item.hidden { display: none; }

.gallery-image {
    width: 100%;
    height: 100%;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--light) 0%, var(--gray-light) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--gray);
}

.gallery-delete:hover { background: #dc2626; }

/* Document Tabs */
.doc-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

/* Documents page */
#documentsList {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.doc-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: var(--light);
    border-radius: var(--radius);
    border-left: 4px solid var(--primary);
    transition: all var(--transition);
}

.doc-item:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow);
}

.doc-info { flex: 1; }
.doc-title { font-weight: 700; color: var(--dark); font-size: 18px; }
.doc-desc { color: var(--gray); margin-top: 4px; }
.doc-actions { display: flex; gap: 12px; align-items: center; }

.doc-link-btn {
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius);
    font-weight: 600;
    transition: all var(--transition);
}

.doc-link-btn:hover {
    background: var(--primary-dark);
}

.doc-delete {
    width: 32px;
    height: 32px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
}

.doc-delete:hover { background: #dc2626; }

/* Add form */
.add-form {
    margin-top: 40px;
    padding: 24px;
    background: var(--light);
    border-radius: var(--radius-lg);
}

.doc-link-btn:hover {
    background: var(--primary-dark);
}
    display: none; 
}

.doc-tabs::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gray-light);
    pointer-events: none;
}

.doc-tab {
    padding: 14px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--dark-secondary);
    background: none;
    border: none;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    transition: all var(--transition);
    border-radius: 10px 10px 0 0;
}

.doc-tab:hover {
    color: var(--primary);
    background: rgba(34, 197, 94, 0.08);
}

.doc-tab::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width var(--transition);
}

.doc-tab:hover { color: var(--primary); }

.doc-tab.active {
    color: var(--primary);
    background: rgba(34, 197, 94, 0.12);
}

.doc-tab.active::after {
    width: 100%;
}

.doc-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 16px;
    background: var(--primary);
    color: white;
    border-radius: var(--radius);
    font-weight: 600;
    transition: all var(--transition);
}

.doc-link-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.doc-tab-contents {
    position: relative;
    min-height: 300px;
}

.doc-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: var(--light);
    border-radius: var(--radius);
    margin-bottom: 12px;
    transition: all var(--transition);
}

.doc-item:hover {
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.doc-info { flex: 1; }
.doc-title { font-weight: 700; color: var(--dark); }
.doc-desc { color: var(--gray); font-size: 14px; }
.doc-actions { display: flex; gap: 8px; align-items: center; }

.doc-delete {
    width: 28px;
    height: 28px;
    background: #ef4444;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
}

.doc-section {
    margin-bottom: 16px;
}

.doc-section-toggle {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all var(--transition);
}

.doc-section-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(34, 197, 94, 0.3);
}

.doc-section-toggle .toggle-icon {
    font-size: 14px;
    transition: transform var(--transition);
}

.doc-section-toggle.open .toggle-icon {
    transform: rotate(180deg);
}

.doc-section-content {
    display: block;
    padding: 16px 0;
    border-left: 4px solid var(--primary-light);
    margin-left: 10px;
    padding-left: 20px;
}

.doc-section-content.open {
    display: block;
}

.doc-tab-content {
    display: none;
    animation: fadeIn 0.3s ease-out;
    opacity: 1;
}

.doc-tab-content.active {
    display: block;
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark-secondary);
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 25px;
    cursor: pointer;
    transition: all var(--transition);
}

.filter-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-color: var(--primary);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(34, 197, 94, 0.3);
}

/* Forms */
.form-group { margin-bottom: 20px; }

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    font-family: inherit;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: var(--white);
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.1);
}

.add-news-form,
.add-doc-form {
    background: linear-gradient(135deg, var(--white) 0%, var(--light) 100%);
    padding: 28px;
    border-radius: var(--radius-lg);
    margin-top: 32px;
    border: 2px solid var(--gray-light);
}

.add-doc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 16px;
}

.add-news-form .full-width,
.add-doc-form .full-width {
    grid-column: 1 / -1;
}

/* Contacts */
.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.contact-item { margin-bottom: 24px; }

.contact-item h3 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    margin-bottom: 8px;
}

.contact-item p { 
    font-size: 16px; 
    color: var(--dark);
    margin-bottom: 4px;
}

.contact-map {
    margin-top: 16px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.contacts-form {
    background: linear-gradient(135deg, var(--white) 0%, var(--light) 100%);
    padding: 36px;
    border-radius: var(--radius-lg);
    border: 2px solid var(--gray-light);
}

.contacts-form h2 {
    font-size: 24px;
    margin-bottom: 24px;
    color: var(--dark);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active { display: flex; }

.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-lg);
    max-width: 400px;
    width: 90%;
    position: relative;
    animation: fadeInUp 0.3s ease-out;
    border: 3px solid var(--primary);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 28px;
    cursor: pointer;
    color: var(--gray);
    transition: color var(--transition);
}

.modal-close:hover { color: var(--dark); }

.modal-content h2 {
    font-size: 22px;
    margin-bottom: 24px;
    text-align: center;
    color: var(--dark);
}

.login-hint {
    font-size: 13px;
    color: var(--gray);
    text-align: center;
    margin-top: 16px;
}

/* Footer */
.footer {
    padding: 32px 0;
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-secondary) 100%);
    color: var(--white);
    text-align: center;
}

.footer p {
    font-size: 14px;
    color: var(--gray);
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 1024px) {
    .news-grid { grid-template-columns: repeat(2, 1fr); }
    .about-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .menu-toggle { 
        display: flex;
        z-index: 1001;
    }
    
.nav {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    z-index: 999;
    flex-direction: column;
    background: var(--white);
    padding: 20px;
    gap: 0;
    box-shadow: 0 4px 20px var(--shadow);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
}
    
    .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link { 
        padding: 14px 0; 
        border-bottom: 1px solid var(--gray-light); 
    }
    
    .hero-title { font-size: 30px; }
    .hero-subtitle { font-size: 18px; }
    .section-title { font-size: 28px; }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .news-grid,
    .about-grid,
    .gallery-grid,
    .contacts-grid { grid-template-columns: 1fr; }
    
    .contacts-form { padding: 24px; }
    .add-doc-grid { grid-template-columns: 1fr; }
    
    .doc-tabs { 
        justify-content: flex-start;
        padding-bottom: 8px;
    }
    
    .doc-tab {
        padding: 10px 14px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .hero-title { font-size: 22px; }
    .about-grid { grid-template-columns: 1fr; }
}