/* КРАСИВЫЕ СТИЛИ С ПРЕМИАЛЬНЫМИ ШРИФТАМИ - НЕБЕСНО-ГОЛУБОЙ ВАРИАНТ */

/* Подключаем шрифты Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&family=Cormorant+Garamond:wght@400;500;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

/* CSS переменные для единого стиля */
:root {
    /* Цветовая палитра - НЕБЕСНО-ГОЛУБАЯ ГАММА */
    --color-primary: #4A90E2;         /* Основной небесно-голубой */
    --color-secondary: #6BB5FF;       /* Светлый небесно-голубой */
    --color-accent: #E74C3C;          /* Акцентный красный */
    --color-gold: #D4AF37;            /* Золотой для акцентов */
    --color-light: #F8F9FA;           /* Светлый фон */
    --color-dark: #1A252F;            /* Темный текст */
    --color-gray: #95A5A6;            /* Серый */
    --color-success: #27AE60;         /* Зеленый */
    
    /* Градиенты - МЯГКИЕ НЕБЕСНО-ГОЛУБЫЕ */
    --gradient-primary: linear-gradient(135deg, #87CEEB 0%, #A7D8FF 100%);
    --gradient-accent: linear-gradient(135deg, #E74C3C 0%, #FF7F50 100%);
    --gradient-gold: linear-gradient(135deg, #D4AF37 0%, #F7EF8A 100%);
    --gradient-light: linear-gradient(135deg, #FFFFFF 0%, #F8F9FA 100%);
    --gradient-red: linear-gradient(135deg, #ff6b6b 0%, #ff8e53 100%);
    
    /* Шрифты */
    --font-heading: 'Playfair Display', 'Georgia', serif;
    --font-body: 'Inter', 'Arial', sans-serif;
    --font-elegant: 'Cormorant Garamond', 'Georgia', serif;
    --font-modern: 'Montserrat', 'Arial', sans-serif;
    
    /* Тени */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.3);
    --shadow-red: 0 4px 20px rgba(255, 107, 107, 0.3);
    
    /* Скругления */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 50px;
    
    /* Анимации */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.7;
    color: var(--color-primary);
    background: linear-gradient(135deg, #F8F9FA 0%, #FFFFFF 100%);
    font-size: 18px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding: 0;
    margin: 0;
}

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

/* ========== ШАПКА САЙТА - НЕБЕСНО-ГОЛУБАЯ ========== */
.header {
    background: var(--gradient-primary);
    color: #1E3A5F;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(135, 206, 235, 0.2);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    padding: 10px 0;
    width: 100%;
}

/* Верхняя часть шапки (лого + кнопка ИИ) */
.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* Логотип */
.logo {
    text-decoration: none;
    color: #1E3A5F;
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    transition: var(--transition-normal);
}

.logo:hover {
    transform: translateY(-2px);
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #1E3A5F;
}

.logo-subtitle {
    font-family: var(--font-elegant);
    font-size: 0.75rem;
    opacity: 0.8;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 2px;
    color: #2C5282;
}

/* Кнопка ИИ в шапке */
.ai-button-header {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--gradient-red);
    color: white !important;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-family: var(--font-modern);
    font-weight: 600;
    font-size: 0.85rem;
    transition: all var(--transition-normal);
    white-space: nowrap;
    box-shadow: var(--shadow-red);
}

.ai-button-header:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255,107,107,0.4);
}

.ai-icon {
    font-size: 1.1em;
}

/* Навигация */
.main-nav {
    display: flex;
    justify-content: center;
    position: relative;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-family: var(--font-modern);
    font-weight: 500;
    color: #1E3A5F !important;
    text-decoration: none;
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    transition: all var(--transition-normal);
    white-space: nowrap;
}

.nav-link:hover {
    background: rgba(30, 58, 95, 0.1);
    transform: translateY(-2px);
}

.nav-link.active {
    background: rgba(30, 58, 95, 0.15);
    color: #1E3A5F !important;
}

/* Мобильное меню */
.menu-toggle {
    display: none;
    background: rgba(30, 58, 95, 0.1);
    border: 2px solid rgba(30, 58, 95, 0.3);
    color: #1E3A5F;
    font-size: 1.3rem;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 6px;
    position: absolute;
    right: 0;
    top: -45px;
    transition: var(--transition-normal);
}

.menu-toggle:hover {
    border-color: var(--color-gold);
    background: rgba(212, 175, 55, 0.1);
}

/* ========== ОСНОВНОЙ КОНТЕНТ ========== */
.main-content {
    padding-top: 120px !important; /* Важно: отступ для фиксированной шапки */
    padding-bottom: 80px;
    min-height: calc(100vh - 200px);
    width: 100%;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: #1E3A5F;
    margin: 1.5rem 0 2.5rem 0;
    text-align: center;
    line-height: 1.3;
    padding: 0 15px;
}

/* Контентные секции */
.content-section {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 3rem;
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform var(--transition-normal);
}

.content-section:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Типографика */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 1.5rem;
    color: #1E3A5F;
}

h1 {
    font-size: 3rem;
    font-weight: 800;
    background: linear-gradient(135deg, #1E3A5F 0%, #4A90E2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 20px;
}

h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: var(--gradient-gold);
    border-radius: 2px;
}

h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1E3A5F;
    position: relative;
    padding-bottom: 15px;
    margin-top: 2rem;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

h3 {
    font-size: 1.6rem;
    font-weight: 600;
    color: #1E3A5F;
    margin-top: 1.5rem;
}

p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
}

.lead {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--color-gray);
    font-family: var(--font-elegant);
    font-style: italic;
    letter-spacing: 0.5px;
    line-height: 1.6;
}

/* Выделения */
.highlight {
    background: linear-gradient(120deg, rgba(74, 144, 226, 0.1) 0%, rgba(231, 76, 60, 0.1) 100%);
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-weight: 600;
    color: #1E3A5F;
    font-family: var(--font-modern);
}

/* Цитаты */
blockquote {
    border-left: 4px solid var(--color-gold);
    padding: 1.5rem 2.5rem;
    margin: 2.5rem 0;
    font-family: var(--font-elegant);
    font-size: 1.3rem;
    font-style: italic;
    color: #1E3A5F;
    background: linear-gradient(135deg, #FFF9E6 0%, #FFF 100%);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    position: relative;
    box-shadow: var(--shadow-sm);
}

blockquote::before {
    content: '"';
    position: absolute;
    top: -20px;
    left: 20px;
    font-size: 4rem;
    color: var(--color-gold);
    opacity: 0.3;
    font-family: var(--font-heading);
}

blockquote footer {
    margin-top: 1rem;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-gray);
    font-style: normal;
    font-weight: 500;
}

/* Списки */
ul, ol {
    margin: 1.5rem 0 1.5rem 2rem;
}

li {
    margin-bottom: 0.8rem;
    line-height: 1.6;
    font-size: 1.1rem;
}

.numbered-list {
    background: linear-gradient(135deg, #F8F9FA 0%, #FFFFFF 100%);
    padding: 2rem 2rem 2rem 3rem;
    border-radius: var(--radius-md);
    margin: 2rem 0;
    border-left: 4px solid var(--color-secondary);
    box-shadow: var(--shadow-sm);
}

.numbered-list h3 {
    color: var(--color-secondary);
    margin-bottom: 1.5rem;
    font-family: var(--font-modern);
}

.numbered-list ol {
    list-style-type: decimal-leading-zero;
    font-family: var(--font-modern);
}

.numbered-list li {
    margin-bottom: 1rem;
    padding-left: 10px;
    font-weight: 500;
}

/* ========== КНОПКИ ИИ-АССИСТЕНТА ========== */
.ai-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--gradient-gold);
    color: #1E3A5F !important;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: var(--radius-full);
    font-family: var(--font-modern);
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-normal);
    border: none;
    cursor: pointer;
    box-shadow: var(--shadow-gold);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.ai-button::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.7s;
}

.ai-button:hover::before {
    left: 100%;
}

.ai-button:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
    background: linear-gradient(135deg, #E6C158 0%, #F7EF8A 100%);
}

.ai-button.small {
    padding: 10px 20px;
    font-size: 0.9rem;
}

.ai-button.large {
    padding: 20px 40px;
    font-size: 1.1rem;
    font-weight: 700;
}

.ai-button-container {
    margin: 3rem 0;
    text-align: center;
    padding: 40px;
    background: var(--gradient-light);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.05);
    position: relative;
    overflow: hidden;
}

.ai-button-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-gold);
}

.ai-button-note {
    margin-top: 1rem;
    font-family: var(--font-elegant);
    font-size: 1rem;
    color: var(--color-gray);
    font-style: italic;
    letter-spacing: 0.5px;
}

/* ========== ГАЛЕРЕЯ ========== */
.gallery-section {
    margin: 4rem 0;
    padding: 2rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.gallery-item {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-normal);
    border: 1px solid rgba(0,0,0,0.08);
    position: relative;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 58, 95, 0) 0%, rgba(30, 58, 95, 0.1) 100%);
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: transform 0.8s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-caption {
    padding: 1.5rem;
    text-align: center;
    position: relative;
    z-index: 2;
    background: white;
}

.gallery-caption h3 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    color: #1E3A5F;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.gallery-caption p {
    font-family: var(--font-elegant);
    color: var(--color-gray);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-style: italic;
}

.btn-secondary {
    font-family: var(--font-modern);
    font-weight: 600;
    background: linear-gradient(135deg, #1E3A5F 0%, #4A90E2 100%);
    color: white;
    border: none;
    padding: 10px 22px;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-normal);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.btn-secondary:hover {
    background: var(--color-secondary);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

/* ========== ПОДВАЛ ========== */
.footer {
    background: #1E3A5F;
    color: white;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-gold);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    font-family: var(--font-heading);
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--color-gold);
}

.footer-section p {
    color: rgba(255,255,255,0.8);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-family: var(--font-modern);
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
    letter-spacing: 0.5px;
}

/* ========== АНИМАЦИИ ========== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeInUp 0.8s ease forwards;
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 25px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 15px;
    }
    
    .logo-text {
        font-size: 1.4rem;
    }
    
    .logo-subtitle {
        font-size: 0.7rem;
    }
    
    .ai-button-header {
        align-self: flex-start;
        margin-top: 5px;
    }
    
    .menu-toggle {
        display: block;
        top: -40px;
    }
    
    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--gradient-primary);
        position: absolute;
        top: 40px;
        left: 0;
        padding: 1.5rem;
        box-shadow: var(--shadow-lg);
        border-radius: 0 0 15px 15px;
        z-index: 1001;
        gap: 0.8rem;
    }
    
    .nav-list.active {
        display: flex;
    }
    
    .nav-link {
        padding: 12px 16px;
        border-radius: 10px;
        text-align: center;
        font-size: 0.9rem;
        color: #1E3A5F !important;
    }
    
    .main-content {
        padding-top: 140px !important;
    }
    
    .page-title {
        font-size: 2rem;
        margin: 1rem 0 2rem 0;
    }
    
    .content-section {
        padding: 2rem;
    }
    
    .ai-button-container {
        padding: 30px 20px;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.3rem;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .main-content {
        padding-top: 150px !important;
    }
    
    .container {
        padding: 0 20px;
    }
    
    .content-section {
        padding: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .ai-button {
        padding: 14px 28px;
        font-size: 0.95rem;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
}

/* Утилитарные классы */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.p-1 { padding: 1rem; }
.p-2 { padding: 2rem; }
.p-3 { padding: 3rem; }

/* Хлебные крошки (если понадобятся) */
.breadcrumbs {
    padding: 1rem 0;
    font-family: var(--font-modern);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.breadcrumbs a {
    color: var(--color-secondary);
    text-decoration: none;
    transition: color var(--transition-fast);
    font-weight: 500;
}

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

.breadcrumbs span {
    color: var(--color-gray);
}