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

:root {
    --gold: #c8aa6e;
    --blue: #0d5b8f;
    --dark-blue: #071d33;
    --light-gold: #f0e6d2;
    --red: #801b1b;
}

body {
    font-family: 'Cinzel', serif;
    background: linear-gradient(135deg, #0a1428 0%, #1a3a5f 100%);
    color: var(--light-gold);
    line-height: 1.6;
}

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

/* Навигация */
.navbar {
    background: rgba(7, 29, 51, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    border-bottom: 2px solid var(--gold);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'MedievalSharp', cursive;
    font-size: 1.5rem;
    color: var(--gold);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.alliance-icon {
    font-size: 1.8rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--light-gold);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a:hover {
    color: var(--gold);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width 0.3s;
}

.nav-menu a:hover::after {
    width: 100%;
}

/* Герой секция */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(10, 20, 40, 0.7), rgba(10, 20, 40, 0.9)), 
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><rect fill="%23071428" width="1200" height="800"/><path fill="%23c8aa6e" d="M0,400L1200,200L1200,800L0,800Z"/></svg>');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.hero-content {
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-family: 'MedievalSharp', cursive;
    font-size: 4rem;
    color: var(--gold);
    margin-bottom: 1rem;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.5);
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    color: var(--light-gold);
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-quote {
    font-style: italic;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--gold);
    border-left: 3px solid var(--gold);
    padding-left: 1rem;
    animation: fadeInUp 1s ease 0.4s both;
}

.cta-button {
    background: linear-gradient(45deg, var(--gold), #e6c78a);
    color: var(--dark-blue);
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    font-family: 'Cinzel', serif;
    animation: fadeInUp 1s ease 0.6s both;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(200, 170, 110, 0.4);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--gold);
    font-size: 2rem;
    animation: bounce 2s infinite;
}

/* Секции */
section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 3rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--gold);
}

/* Биография */
.biography {
    background: rgba(13, 91, 143, 0.1);
}

.bio-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    align-items: start;
}

.bio-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.bio-highlight {
    background: rgba(200, 170, 110, 0.1);
    border-left: 4px solid var(--gold);
    padding: 1.5rem;
    margin-top: 2rem;
}

.bio-highlight h3 {
    color: var(--gold);
    margin-bottom: 1rem;
}

.bio-highlight ul {
    list-style: none;
}

.bio-highlight li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.bio-highlight li::before {
    content: '⚜️';
    position: absolute;
    left: 0;
}

.bio-stats {
    display: grid;
    gap: 1rem;
}

.stat-card {
    background: rgba(7, 29, 51, 0.8);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--gold);
    text-align: center;
}

.stat-card h4 {
    color: var(--gold);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

/* Подвиги */
.achievements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.achievement-card {
    background: linear-gradient(135deg, rgba(13, 91, 143, 0.3), rgba(7, 29, 51, 0.6));
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--gold);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}

.achievement-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(200, 170, 110, 0.2), transparent);
    transition: left 0.5s;
}

.achievement-card:hover::before {
    left: 100%;
}

.achievement-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(200, 170, 110, 0.3);
}

.achievement-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.achievement-card h3 {
    color: var(--gold);
    margin-bottom: 1rem;
}

/* Цитаты */
.quotes {
    background: rgba(128, 27, 27, 0.1);
}

.quotes-slider {
    max-width: 800px;
    margin: 0 auto 2rem;
    position: relative;
    min-height: 200px;
}

.quote {
    display: none;
    text-align: center;
    font-size: 1.3rem;
    font-style: italic;
    color: var(--light-gold);
}

.quote.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.quote-context {
    display: block;
    margin-top: 1rem;
    font-size: 1rem;
    color: var(--gold);
    font-style: normal;
}

.quote-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.quote-nav button {
    background: var(--gold);
    color: var(--dark-blue);
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s;
}

.quote-nav button:hover {
    background: #e6c78a;
}

/* Галерея */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.gallery-item {
    text-align: center;
}

.gallery-image {
    height: 200px;
    background: linear-gradient(135deg, var(--dark-blue), var(--blue));
    border: 2px solid var(--gold);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    margin-bottom: 1rem;
    transition: transform 0.3s;
}

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

.placeholder-1 { background: linear-gradient(135deg, #0d5b8f, #c8aa6e); }
.placeholder-2 { background: linear-gradient(135deg, #801b1b, #c8aa6e); }
.placeholder-3 { background: linear-gradient(135deg, #071d33, #c8aa6e); }

/* Хронология */
.timeline {
    background: rgba(13, 91, 143, 0.1);
}

.timeline-content {
    max-width: 600px;
    margin: 0 auto;
}

.timeline-item {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(7, 29, 51, 0.8);
    border-radius: 8px;
    border-left: 4px solid var(--gold);
}

.timeline-year {
    font-weight: bold;
    color: var(--gold);
    min-width: 100px;
    font-size: 1.1rem;
}

.timeline-event {
    flex: 1;
    padding-left: 1rem;
    border-left: 1px solid var(--blue);
}

/* Футер */
.footer {
    background: rgba(7, 29, 51, 0.95);
    border-top: 2px solid var(--gold);
    padding: 3rem 0;
    text-align: center;
}

.footer-logo {
    font-family: 'MedievalSharp', cursive;
    font-size: 1.5rem;
    color: var(--gold);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.wow-credit {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--blue);
}

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

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

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-10px) translateX(-50%);
    }
    60% {
        transform: translateY(-5px) translateX(-50%);
    }
}

/* Адаптивность */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .bio-content {
        grid-template-columns: 1fr;
    }
    
    .achievements-grid {
        grid-template-columns: 1fr;
    }
    
    .timeline-item {
        flex-direction: column;
        text-align: center;
    }
    
    .timeline-year {
        margin-bottom: 0.5rem;
        border-left: none;
        padding-left: 0;
    }
}
