:root {
    --cream: #FDF8F0;
    --cream-dark: #F2E8D5;
    --olive: #4A5B3A;
    --olive-dark: #2D3B22;
    --olive-light: #6B7F55;
    --gold: #C9A96E;
    --gold-dark: #B8924A;
    --gold-light: #DBC28B;
    --charcoal: #2C2C2C;
    --charcoal-light: #4A4A4A;
    --white: #FFFFFF;
    --black: #1a1a1a;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.06);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.08);
    --shadow-xl: 0 24px 64px rgba(0,0,0,0.12);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--cream);
    color: var(--charcoal);
    line-height: 1.6;
}

/* ========== HEADER - TRANSPARENT & SCROLL ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.header-transparent {
    background: transparent;
    backdrop-filter: none;
}

.header-transparent .logo-text,
.header-transparent .nav-link {
    color: var(--white);
}

.header-transparent .logo-mark {
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
}

.header-transparent .nav-link::after {
    background: var(--gold);
}

/* Scrolled state */
.header.scrolled {
    background: rgba(253, 248, 240, 0.98);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
}

.header.scrolled .logo-text,
.header.scrolled .nav-link {
    color: var(--olive-dark);
}

.header.scrolled .logo-mark {
    background: var(--olive);
    color: var(--gold);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.logo-mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    transition: color 0.3s ease;
}

.logo-text span {
    color: var(--gold);
}

/* Navigation */
.nav-menu {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
    position: relative;
    padding: 0.5rem 0;
    color: inherit;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link.admin {
    background: var(--gold);
    color: var(--olive-dark) !important;
    padding: 0.5rem 1.25rem;
    border-radius: 40px;
}

.nav-link.admin::after {
    display: none;
}

/* Mobile toggle */
.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-toggle span {
    width: 24px;
    height: 2px;
    background: currentColor;
    transition: all 0.3s ease;
}

.header-transparent .mobile-toggle span {
    background: var(--white);
}

/* ========== HERO WITH BACKGROUND IMAGE ========== */
.hero-spacer {
    height: 85px;
}

.hero-full {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white);
    overflow: hidden;
}

.hero-full::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 1;
}

.hero-full .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 4rem 2rem;
}

.hero-label {
    font-size: 0.85rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 1.5rem;
    display: inline-block;
}

.hero-full h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-full h1 span {
    color: var(--gold);
}

.hero-full p {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Hero for inner pages */
.hero-inner {
    position: relative;
    height: 50vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.5), rgba(0,0,0,0.3));
}

.hero-inner .hero-content {
    position: relative;
    z-index: 2;
}

.hero-inner h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* ========== BUTTONS ========== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border-radius: 60px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--gold);
    color: var(--olive-dark);
}

.btn-primary:hover {
    background: var(--gold-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-outline {
    background: transparent;
    border: 1.5px solid var(--gold);
    color: var(--gold);
}

.btn-outline:hover {
    background: var(--gold);
    color: var(--olive-dark);
    transform: translateY(-2px);
}

.btn-dark {
    background: var(--olive-dark);
    color: var(--white);
}

.btn-dark:hover {
    background: var(--olive);
}

/* ========== CONTAINER ========== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 5rem 2rem;
}

/* ========== SECTION HEADERS ========== */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-subtitle {
    font-size: 0.85rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--gold);
    font-weight: 600;
    margin-bottom: 1rem;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--olive-dark);
    margin-bottom: 1rem;
}

.section-title span {
    color: var(--gold);
}

/* ========== CARDS ========== */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 2rem;
}

.card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    box-shadow: var(--shadow-sm);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-image {
    transform: scale(1.05);
}

.card-content {
    padding: 1.75rem;
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--olive-dark);
    margin-bottom: 0.75rem;
}

.card-date {
    font-size: 0.8rem;
    color: var(--gold);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ========== FEATURES ========== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.feature {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 20px;
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon {
    width: 70px;
    height: 70px;
    background: var(--cream-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    font-size: 1.75rem;
    color: var(--gold);
    transition: all 0.3s ease;
}

/* ========== FORM SECTION ========== */
.form-section {
    background: linear-gradient(135deg, var(--olive-dark), var(--olive));
    border-radius: 30px;
    color: var(--white);
    margin: 2rem auto;
}

.form-section .section-title {
    color: var(--white);
}

.form-card {
    background: var(--white);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow-xl);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--olive-dark);
}

.form-control {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1.5px solid var(--cream-dark);
    border-radius: 12px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.1);
}

/* ========== NEWS SECTION ========== */
.news-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.news-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
}

.news-badge {
    display: inline-block;
    background: var(--gold);
    color: var(--olive-dark);
    font-size: 0.7rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

/* ========== CTA SECTION ========== */
.cta-section {
    background: var(--olive-dark);
    color: var(--white);
    text-align: center;
    padding: 4rem 2rem;
    border-radius: 30px;
    margin: 3rem auto;
}

/* ========== FOOTER ========== */
.footer {
    background: var(--olive-dark);
    color: var(--cream);
    padding: 3rem 2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    text-align: center;
}

.footer a {
    color: var(--gold-light);
    text-decoration: none;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-full h1 {
        font-size: 3rem;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--cream);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2rem;
        transition: left 0.3s ease;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu .nav-link {
        color: var(--olive-dark) !important;
    }
    
    .hero-full {
        min-height: 70vh;
    }
    
    .hero-full h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== HERO С ЭФФЕКТОМ НАЕЗЖАНИЯ ========== */
.hero-full {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center 30%;
    background-attachment: fixed;
    color: var(--white);
    overflow: hidden;
    margin-top: -85px; /* Заезжаем под шапку */
    padding-top: 85px; /* Компенсируем отступ для контента */
}

/* Темный оверлей для читаемости текста */
.hero-full::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}

.hero-full .hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 4rem 2rem;
    animation: fadeInUp 0.8s ease;
}

/* Hero для внутренних страниц - тоже с наезжанием */
.hero-inner {
    position: relative;
    height: 60vh;
    min-height: 500px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    margin-top: -85px;
    padding-top: 85px;
}

.hero-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.5), rgba(0,0,0,0.35));
    z-index: 1;
}

.hero-inner .hero-content {
    position: relative;
    z-index: 2;
}

.hero-inner h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-inner p {
    font-size: 1.2rem;
    opacity: 0.95;
    text-shadow: 0 1px 5px rgba(0,0,0,0.3);
}

/* ========== ШАПКА - АБСОЛЮТНО ПРОЗРАЧНАЯ НАД КАРТИНКОЙ ========== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    background: transparent;
}

/* Текст в прозрачной шапке - белый */
.header .logo-text,
.header .nav-link {
    color: var(--white);
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.header .logo-mark {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(4px);
    color: var(--white);
}

.header .mobile-toggle span {
    background: var(--white);
}

/* При скролле - шапка становится плотной */
.header.scrolled {
    background: var(--cream);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
}

.header.scrolled .logo-text,
.header.scrolled .nav-link {
    color: var(--olive-dark);
    text-shadow: none;
}

.header.scrolled .logo-mark {
    background: var(--olive);
    color: var(--gold);
}

.header.scrolled .mobile-toggle span {
    background: var(--olive-dark);
}

/* Анимация для контента */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Стили для текста на hero */
.hero-label {
    font-size: 0.85rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 1.5rem;
    display: inline-block;
    background: rgba(0,0,0,0.3);
    padding: 0.3rem 1rem;
    border-radius: 40px;
    backdrop-filter: blur(4px);
}

.hero-full h1 {
    font-family: 'Playfair Display', serif;
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 2px 15px rgba(0,0,0,0.3);
}

.hero-full h1 span {
    color: var(--gold);
}

.hero-full p {
    font-size: 1.2rem;
    opacity: 0.95;
    margin-bottom: 2rem;
    text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .hero-full {
        min-height: 80vh;
        margin-top: -70px;
        padding-top: 70px;
    }
    
    .hero-full h1 {
        font-size: 2.5rem;
    }
    
    .hero-inner {
        height: 50vh;
        min-height: 400px;
        margin-top: -70px;
        padding-top: 70px;
    }
    
    .hero-inner h1 {
        font-size: 2rem;
    }
}

