/* CSS Variables - Аналоговая цветовая схема */
:root {
    --primary-color: #2E8B57;
    --secondary-color: #4682B4;
    --accent-color: #20B2AA;
    --tertiary-color: #3CB371;
    --background-light: #F8FFF8;
    --background-dark: #1A1A1A;
    --text-dark: #2C3E50;
    --text-light: #FFFFFF;
    --text-muted: #6C7B7F;
    --border-color: #E8F5E8;
    --success-color: #27AE60;
    --warning-color: #F39C12;
    --error-color: #E74C3C;
    
    /* Градиенты */
    --gradient-primary: linear-gradient(135deg, var(--primary-color), var(--tertiary-color));
    --gradient-secondary: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    --gradient-overlay: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.3));
    
    /* Шрифты */
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Merriweather', serif;
    
    /* Отступы */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Радиусы */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Тени */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.15);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.2);
    --shadow-xl: 0 12px 24px rgba(0,0,0,0.25);
    
    /* Переходы */
    --transition-fast: all 0.2s ease;
    --transition-normal: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Типографика */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--spacing-sm);
}
.subtitle{
    margin-top: 0!important;
}
h1 { font-size: 3rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 2rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition-fast);
}

a:hover {
    color: var(--tertiary-color);
}

/* Глобальные стили кнопок */
.btn,
button,
input[type='submit'],
.button {
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-lg);
    background: var(--gradient-primary);
    color: var(--text-light);
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-normal);
    box-shadow: var(--shadow-md);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn:hover,
button:hover,
input[type='submit']:hover,
.button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    color: var(--text-light);
}

.btn::before,
button::before,
input[type='submit']::before,
.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: var(--transition-normal);
}

.btn:hover::before,
button:hover::before,
input[type='submit']:hover::before,
.button:hover::before {
    left: 100%;
}

.btn.is-light,
.button.is-light {
    background: var(--text-light);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn.is-light:hover,
.button.is-light:hover {
    background: var(--primary-color);
    color: var(--text-light);
}

/* Header */
.navbar {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-sm) 0;
    z-index: 1000;
}

.navbar-brand .navbar-item {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.navbar-item {
    color: var(--text-dark);
    font-weight: 500;
    transition: var(--transition-fast);
}

.navbar-item:hover {
    color: var(--primary-color);
    background: transparent;
}

.navbar-burger {
    color: var(--text-dark);
}

/* Hero секция */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.parallax-bg {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
}

.parallax-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-overlay);
    z-index: 1;
}

.hero-body {
    position: relative;
    z-index: 2;
}

.hero .title {
    color: var(--text-light);
    font-size: 3.5rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    margin-bottom: var(--spacing-md);
}

.hero .subtitle {
    color: var(--text-light);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xl);
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.hero .buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

/* Секции */
.section {
    padding: var(--spacing-xxl) 0;
}

.section.has-background-light {
    background: var(--background-light);
}

.section .title {
    color: var(--text-dark);
    text-align: center;
    margin-bottom: var(--spacing-md);
    position: relative;
}

.section .title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
}

.section .subtitle {
    color: var(--text-muted);
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

/* Карточки */
.card {
    background: var(--text-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    /* display: flex; */
    align-items: center;
    justify-content: center;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.card:hover .card-image img {
    transform: scale(1.05);
}

.card-content {
    padding: var(--spacing-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.card-content .title {
    color: var(--text-dark);
    margin-bottom: var(--spacing-sm);
}

.card-content .title::after {
    display: none;
}

.card-content p {
    color: var(--text-muted);
    flex: 1;
}

/* Медиа элементы */
.media {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: var(--text-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--spacing-md);
}

.media-left img {
    border-radius: 50%;
    width: 64px;
    height: 64px;
    object-fit: cover;
}

.media-content .title {
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.media-content .title::after {
    display: none;
}

.media-content .subtitle {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: var(--spacing-xs);
}

/* Формы */
.field {
    margin-bottom: var(--spacing-md);
}

.label {
    color: var(--text-dark);
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
}

.input,
.textarea {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--spacing-sm);
    font-family: var(--font-body);
    transition: var(--transition-fast);
    background: var(--text-light);
}

.input:focus,
.textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 139, 87, 0.1);
}

.box {
    background: var(--text-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    padding: var(--spacing-xl);
}

/* Временная шкала */
.timeline {
    position: relative;
    padding-left: var(--spacing-xl);
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--spacing-lg);
}

.timeline-marker {
    position: absolute;
    left: -35px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--primary-color);
    border: 3px solid var(--text-light);
    box-shadow: var(--shadow-sm);
}

.timeline-content {
    background: var(--text-light);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.timeline-content .title {
    color: var(--text-dark);
    margin-bottom: var(--spacing-xs);
}

.timeline-content .title::after {
    display: none;
}

/* Галерея */
.image {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.image:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

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

/* Статистика */
.stats-card {
    text-align: center;
    padding: var(--spacing-xl);
    background: var(--text-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.stats-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    display: block;
    margin-bottom: var(--spacing-sm);
}

.stats-label {
    font-size: 1.25rem;
    color: var(--text-dark);
    font-weight: 600;
}

/* Footer */
.footer {
    background: var(--background-dark);
    color: var(--text-light);
    padding: var(--spacing-xxl) 0 var(--spacing-xl);
}

.footer .title {
    color: var(--text-light);
    margin-bottom: var(--spacing-md);
}

.footer .title::after {
    display: none;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: var(--spacing-xs);
}

.footer a {
    color: var(--text-light);
    transition: var(--transition-fast);
}

.footer a:hover {
    color: var(--primary-color);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.social-links a {
    color: var(--text-light);
    font-weight: 500;
    transition: var(--transition-fast);
}

.social-links a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Модальные окна */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal.is-active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-card {
    background: var(--text-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    max-width: 500px;
    width: 90%;
    overflow: hidden;
}

.modal-card-head {
    background: var(--primary-color);
    color: var(--text-light);
    padding: var(--spacing-md) var(--spacing-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-card-body {
    padding: var(--spacing-xl);
}

.modal-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
}

.delete {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete:hover {
    opacity: 0.7;
}

.delete::before {
    content: '×';
}

/* Страница успеха */
.success-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--background-light);
}

.success-content {
    text-align: center;
    background: var(--text-light);
    padding: var(--spacing-xxl);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    width: 90%;
}

.success-content .title {
    color: var(--success-color);
    margin-bottom: var(--spacing-md);
}

.success-content .title::after {
    background: var(--success-color);
}

/* Страницы с отступом от хедера */
.page-with-header {
    padding-top: 100px;
    min-height: 100vh;
}

.page-content {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-xl);
    background: var(--text-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.page-content .title {
    color: var(--text-dark);
    margin-bottom: var(--spacing-lg);
}

.page-content h2 {
    color: var(--primary-color);
    margin-top: var(--spacing-xl);
    margin-bottom: var(--spacing-md);
}

.page-content h3 {
    color: var(--text-dark);
    margin-top: var(--spacing-lg);
    margin-bottom: var(--spacing-sm);
}

.page-content p {
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.page-content ul,
.page-content ol {
    margin-left: var(--spacing-lg);
    margin-bottom: var(--spacing-md);
}

.page-content li {
    margin-bottom: var(--spacing-xs);
}

/* Анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.animate-slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

.animate-slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

/* Параллакс эффект */
.parallax-element {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Responsive дизайн */
@media (max-width: 768px) {
    .hero .title {
        font-size: 2.5rem;
    }
    
    .hero .subtitle {
        font-size: 1rem;
    }
    
    .hero .buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section {
        padding: var(--spacing-xl) 0;
    }
    
    .timeline {
        padding-left: var(--spacing-lg);
    }
    
    .timeline-marker {
        left: -25px;
    }
    
    .media {
        flex-direction: column;
        text-align: center;
    }
    
    .navbar-menu {
        background: rgba(255,255,255,0.95);
        backdrop-filter: blur(10px);
    }
    
    .parallax-bg {
        background-attachment: scroll;
    }
}

@media (max-width: 480px) {
    .hero .title {
        font-size: 2rem;
    }
    
    .modal-card {
        width: 95%;
        margin: var(--spacing-md);
    }
    
    .page-content {
        padding: var(--spacing-md);
    }
    
    .stats-number {
        font-size: 2rem;
    }
}

/* Утилитарные классы */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }
.mb-6 { margin-bottom: var(--spacing-xxl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }
.mt-6 { margin-top: var(--spacing-xxl); }

.position-relative {
    position: relative;
}

.position-absolute {
    position: absolute;
}

.z-index-1 { z-index: 1; }
.z-index-2 { z-index: 2; }
.z-index-3 { z-index: 3; }

.overflow-hidden {
    overflow: hidden;
}

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.d-flex { display: flex; }
.d-block { display: block; }
.d-inline-block { display: inline-block; }
.d-none { display: none; }

.align-items-center { align-items: center; }
.align-items-start { align-items: flex-start; }
.align-items-end { align-items: flex-end; }

.justify-content-center { justify-content: center; }
.justify-content-start { justify-content: flex-start; }
.justify-content-end { justify-content: flex-end; }
.justify-content-between { justify-content: space-between; }