/* ===== ОБЩИЕ СБРОСЫ И БАЗА ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'EB Garamond', serif;
    background: #0b0a0c;
    color: #d4c9b8;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ===== ФОН: ЧАСТИЦЫ (CANVAS) ===== */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ===== МАГИЧЕСКИЙ КРУГ (декор) ===== */
.magic-circle {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 80vmin;
    height: 80vmin;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 2px solid rgba(212, 175, 55, 0.08);
    box-shadow: 0 0 80px rgba(212, 175, 55, 0.03), inset 0 0 80px rgba(212, 175, 55, 0.02);
    z-index: 0;
    pointer-events: none;
    animation: pulse-circle 8s ease-in-out infinite alternate;
}

.magic-circle::before,
.magic-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(212, 175, 55, 0.06);
}
.magic-circle::before {
    width: 90%;
    height: 90%;
    animation: spin-circle 20s linear infinite;
}
.magic-circle::after {
    width: 70%;
    height: 70%;
    animation: spin-circle 30s linear infinite reverse;
}

@keyframes pulse-circle {
    0% { opacity: 0.5; transform: translate(-50%, -50%) scale(0.95); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
}

@keyframes spin-circle {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* ===== ОБЩИЙ КОНТЕЙНЕР ===== */
.app {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    max-width: 1300px;
    margin: 0 auto;
    padding: 1rem 2rem 0;
}

/* ===== ШАПКА ===== */
.header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0 0.8rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    margin-bottom: 1.5rem;
}

.header-brand {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.3rem 0.8rem;
}
.brand-symbol {
    font-size: 1.6rem;
    color: #d4af37;
    text-shadow: 0 0 12px #d4af37;
}
.brand-name {
    font-family: 'Cinzel', serif;
    font-weight: 900;
    font-size: 1.7rem;
    letter-spacing: 0.05em;
    color: #f0e6d3;
}
.brand-title {
    font-family: 'EB Garamond', serif;
    font-style: italic;
    font-size: 1rem;
    color: #b8a78b;
    opacity: 0.9;
}

.nav {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
}
.nav-btn {
    background: transparent;
    border: 1px solid rgba(212, 175, 55, 0.2);
    color: #c4b59b;
    padding: 0.5rem 1.4rem;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 30px;
    background: rgba(20, 18, 22, 0.6);
    backdrop-filter: blur(4px);
}
.nav-btn:hover {
    background: rgba(212, 175, 55, 0.1);
    color: #f0e6d3;
    border-color: #d4af37;
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.15);
}
.nav-btn.active {
    background: rgba(212, 175, 55, 0.15);
    border-color: #d4af37;
    color: #f0e6d3;
    box-shadow: 0 0 25px rgba(212, 175, 55, 0.1);
}

/* ===== СОДЕРЖИМОЕ ===== */
.content {
    flex: 1;
    padding: 0.5rem 0 2rem;
}

.page {
    display: none;
    animation: fade-page 0.6s ease;
}
.page.active {
    display: block;
}

@keyframes fade-page {
    0% { opacity: 0; transform: translateY(15px); }
    100% { opacity: 1; transform: translateY(0); }
}

.page-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.5rem 0;
}

.page-title {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 2.2rem;
    color: #f0e6d3;
    margin-bottom: 2rem;
    text-align: center;
    letter-spacing: 0.04em;
}

.glow-text {
    color: #d4af37;
    text-shadow: 0 0 15px rgba(212, 175, 55, 0.4);
}

/* ===== ГЛАВНАЯ ===== */
.hero {
    text-align: center;
    padding: 1rem 0;
}
.hero-title {
    font-family: 'Cinzel', serif;
    font-weight: 900;
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 0.3rem;
}
.hero-title .hero-sub {
    display: block;
    font-size: 2.2rem;
    color: #f0e6d3;
    text-shadow: 0 0 30px rgba(212, 175, 55, 0.2);
}
.hero-tagline {
    font-family: 'EB Garamond', serif;
    font-size: 1.1rem;
    letter-spacing: 0.15em;
    color: #b8a78b;
    margin: 0.5rem 0 1.2rem;
}
.hero-divider {
    width: 80px;
    height: 2px;
    margin: 0.8rem auto 1.2rem;
    background: linear-gradient(90deg, transparent, #d4af37, transparent);
}
.hero-description {
    max-width: 750px;
    margin: 0 auto 2rem;
    font-size: 1.2rem;
    line-height: 1.7;
    color: #cfc3b0;
}
.hero-description strong {
    color: #d4af37;
}

.hero-stats {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2.5rem 4rem;
}
.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.stat-number {
    font-family: 'Cinzel', serif;
    font-weight: 900;
    font-size: 2.5rem;
    color: #f0e6d3;
    text-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}
.stat-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #b8a78b;
}

/* ===== СТРАНИЦА ОПЫТА ===== */
.exp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.8rem;
    margin-top: 0.5rem;
}

.exp-card {
    background: rgba(20, 18, 22, 0.7);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: 16px;
    padding: 1.6rem 1.4rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
}
.exp-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
    box-shadow: 0 8px 35px rgba(212, 175, 55, 0.08);
    transform: translateY(-4px);
}

.exp-card-title {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: #f0e6d3;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    padding-bottom: 0.6rem;
}

.exp-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.exp-list li {
    padding: 0.4rem 0;
    font-size: 0.98rem;
    line-height: 1.5;
    color: #cfc3b0;
    border-bottom: 1px dashed rgba(212, 175, 55, 0.05);
}
.exp-list li:last-child {
    border-bottom: none;
}
.exp-tag {
    display: inline-block;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    color: #d4af37;
    background: rgba(212, 175, 55, 0.08);
    padding: 0.05rem 0.6rem;
    border-radius: 12px;
    margin-right: 0.4rem;
    border: 1px solid rgba(212, 175, 55, 0.1);
}

/* ===== СТРАНИЦА КОНТАКТОВ ===== */
.contact-wrapper {
    max-width: 1000px;
}
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.8rem;
    margin: 1.5rem 0 2.5rem;
}
.contact-card {
    background: rgba(20, 18, 22, 0.7);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(212, 175, 55, 0.12);
    border-radius: 16px;
    padding: 1.6rem 1.2rem;
    text-align: center;
    transition: all 0.3s ease;
}
.contact-card:hover {
    border-color: rgba(212, 175, 55, 0.3);
    transform: scale(1.02);
    box-shadow: 0 8px 30px rgba(212, 175, 55, 0.08);
}
.contact-icon {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}
.contact-card h3 {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: #f0e6d3;
    margin-bottom: 0.5rem;
}
.contact-card p {
    color: #cfc3b0;
    line-height: 1.6;
    font-size: 0.98rem;
}
.contact-note {
    font-style: italic;
    color: #b8a78b;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    opacity: 0.8;
}

.contact-ritual {
    margin-top: 1.5rem;
    text-align: center;
    padding: 1.5rem;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
}
.ritual-text {
    font-family: 'EB Garamond', serif;
    font-size: 1.3rem;
    font-style: italic;
    color: #e0d3c0;
    letter-spacing: 0.03em;
}
.ritual-text .glow-text {
    margin: 0 0.5rem;
}

/* ===== ПОДВАЛ ===== */
.footer {
    border-top: 1px solid rgba(212, 175, 55, 0.08);
    padding: 1.5rem 0 0.8rem;
    text-align: center;
    font-size: 0.9rem;
    color: #7a6f5e;
    margin-top: 1rem;
}
.footer-motto {
    font-style: italic;
    font-size: 0.85rem;
    margin-top: 0.2rem;
    opacity: 0.7;
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 800px) {
    .header {
        flex-direction: column;
        align-items: stretch;
        gap: 0.8rem;
    }
    .header-brand {
        justify-content: center;
    }
    .nav {
        justify-content: center;
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-title .hero-sub {
        font-size: 1.8rem;
    }
    .hero-description {
        font-size: 1rem;
    }
    .page-title {
        font-size: 1.8rem;
    }
    .exp-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 500px) {
    .app {
        padding: 0.8rem 0.8rem 0;
    }
    .brand-name {
        font-size: 1.3rem;
    }
    .nav-btn {
        padding: 0.4rem 0.9rem;
        font-size: 0.75rem;
    }
    .hero-title {
        font-size: 2.2rem;
    }
    .hero-title .hero-sub {
        font-size: 1.4rem;
    }
    .hero-stats {
        gap: 1rem 2rem;
    }
    .stat-number {
        font-size: 1.8rem;
    }
    .exp-grid {
        grid-template-columns: 1fr;
    }
    .contact-grid {
        grid-template-columns: 1fr 1fr;
    }
    .ritual-text {
        font-size: 1rem;
    }
}