/* ===== БАЗОВЫЕ СБРОСЫ ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #e73c1a;
    --primary-dark: #a5281b;
    --secondary-color: #238b4e;
    --secondary-dark: #158f48;
    --accent-color: #f1c40f;
    --text-dark: #2c3e50;
    --bg-light: #f9f9f9;
    --white: #ffffff;
}

body {
    background: 
        radial-gradient(circle at 10% 20%, rgba(192, 57, 43, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(39, 174, 96, 0.1) 0%, transparent 40%),
        /* Едва заметный белорусский орнамент (ромбы) */
        url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 0l40 40-40 40L0 40z' fill='%23c0392b' fill-opacity='0.03'/%3E%3C/svg%3E"),
        #b8e0bb; /* Базовый светлый фон */
    
    background-attachment: fixed;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
    font-family: 'Playfair Display', Georgia, serif;
}

/* ===== ШАПКА ===== */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: var(--white);
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 { font-size: 4rem; margin-bottom: 10px; }
.hero h2 { font-size: 2rem; font-weight: 400; margin-bottom: 20px; color: var(--accent-color); }
.hero p { font-size: 1.2rem; margin-bottom: 30px; }

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: background-color 0.3s;
    border: 2px solid var(--accent-color);
}

.btn:hover { background: var(--secondary-dark); }

/* ===== GIF-ОГОНЬ ===== */
.fire-wrapper {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.fire-gif {
    display: block;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.4;
    mix-blend-mode: screen;
}

/* ===== НАВИГАЦИЯ ===== */
nav {
    background: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 6px solid var(--secondary-dark);
}

nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    padding: 15px 0;
}

nav ul li { margin: 5px 15px; }
nav ul li a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    font-size: 1.1rem;
    transition: color 0.3s;
}
nav ul li a:hover { color: var(--accent-color); }

/* ===== ЗЕЛЕНЫЕ ПОЛЯ ===== */
#heroes, #pilots, #underground, #famous {
    background: var(--secondary-dark);
    padding: 60px 20px;
    width: 100%;
}

#heroes .section-inner,
#pilots .section-inner,
#underground .section-inner,
#famous .section-inner {
    background: var(--bg-light);
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 30px;
    border-radius: 10px;
    border: 1px solid #ccc;
}

/* ===== ОБЩИЕ СЕКЦИИ ===== */
.section { padding: 80px 20px; max-width: 1200px; margin: 0 auto; }
.section-fullwidth { padding: 0; max-width: 100%; }

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--bg-light);
}

.section-title::after {
    content: '';
    display: block;
    width: 100px;
    height: 3px;
    background: var(--secondary-dark);
    margin: 15px auto 0;
}

.section-subtitle {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px;
    font-size: 1.1rem;
}

/* ===== ФОТО ===== */
.fullwidth-photo { width: 100%; overflow: hidden; }
.fullwidth-photo img { width: 100%; height: auto; display: block; max-height: 70vh; object-fit: cover; }

/* ===== СЛОГАН ===== */
.slogan-banner {
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
    text-align: center;
    padding: 30px 20px;
}
.slogan-banner h2 { font-size: 2rem; font-weight: 600; }

/* ===== КАРТОЧКИ ===== */
.cards-container, .flip-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.card, .flip-card {
    perspective: 1000px;
    cursor: pointer;
    height: 380px;
}

.card-inner, .flip-card-inner {
    position: relative;
    width: 100%; height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
}

.card.flipped .card-inner,
.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back, .flip-card-front, .flip-card-back {
    position: absolute;
    width: 100%; height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 8px;
    background: var(--primary-dark);
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    border: 3px solid var(--accent-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); 
}

.card-front img, .flip-card-front img {
    width: 130px; height: 130px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid var(--accent-color);
}

.card-front h3, .flip-card-front h3 {
    font-size: 1.3rem; margin-bottom: 5px; color: var(--white);
}

.card-front .role, .flip-card-front .role {
    color: var(--accent-color);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.card-back, .flip-card-back {
    background: linear-gradient(135deg, #1e5631 0%, #27ae60 100%); 
    color: var(--white);
    transform: rotateY(180deg);
    justify-content: center;
    padding: 20px;
    overflow-y: auto;
}

.card-back h3, .flip-card-back h3 {
    margin-bottom: 10px; color: var(--accent-color); font-size: 1.2rem;
}

.card-back p, .flip-card-back p {
    font-size: 0.95rem; line-height: 1.5; color: var(--white);
}

/* ===== ЦИТАТА ===== */
.quote-container { padding: 30px 20px; max-width: 900px; margin: 0 auto; }
.quote-box {
    background: var(--white);
    border-left: 8px solid var(--primary-color);
    border-right: 8px solid var(--secondary-dark);
    padding: 25px 30px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-style: italic;
}
.quote-box p { font-size: 1.15rem; margin-bottom: 15px; }
.quote-box cite { display: block; text-align: right; font-size: 0.9rem; color: var(--primary-color); font-weight: 600; }

/* ===== ТАЙМЛАЙН ===== */
.history-timeline { position: relative; max-width: 1000px; margin: 0 auto; padding: 20px 0; }
.timeline-svg-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }

.history-item { position: relative; width: 50%; padding: 10px 30px; z-index: 1; }
.history-item.left { left: 0; text-align: right; }
.history-item.right { left: 50%; text-align: left; }

.history-content {
    background: var(--primary-dark);
    border-radius: 8px;
    padding: 20px;
    border: 3px solid var(--accent-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.history-photo {
    width: 80px; height: 80px; border-radius: 50%; object-fit: cover;
    border: 3px solid var(--accent-color); display: block; margin: 0 auto 10px;
}

.history-date {
    display: inline-block; background: var(--accent-color); color: var(--primary-dark);
    padding: 4px 12px; border-radius: 20px; font-size: 0.85rem; font-weight: 700; margin-bottom: 10px;
}

.history-content h3 { font-size: 1.2rem; color: var(--white); margin-bottom: 5px; }
.history-content .role { color: var(--accent-color); font-weight: 500; font-size: 0.9rem; margin-bottom: 10px; }
.history-content p:not(.role) { font-size: 0.9rem; line-height: 1.5; color: #f0f0f0; }

/* ===== СОВРЕМЕННОСТЬ И ФУТЕР ===== */
.modern-banner { text-align: center; margin-bottom: 30px; }
.modern-banner img { max-width: 100%; height: auto; max-height: 400px; object-fit: contain; }
.modern-content { text-align: center; max-width: 900px; margin: 0 auto; }
.modern-content > p:first-child { font-size: 1.3rem; font-style: italic; margin-bottom: 10px; }
.modern-content .author { font-weight: 600; color: var(--primary-color); margin-bottom: 30px; }

footer {
    background: var(--primary-dark);
    color: var(--white);
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    border-top: 6px solid var(--secondary-dark);
}

/* ===== АДАПТИВНОСТЬ ===== */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero h2 { font-size: 1.5rem; }
    nav ul li { margin: 5px 10px; }
    .card, .flip-card { height: 420px; }
    .history-item { width: 100%; left: 0 !important; text-align: left !important; padding: 10px 20px 10px 60px; }
    .timeline-svg-bg { display: none; }
    .history-photo { margin: 0 0 10px 0; }
    .slogan-banner h2 { font-size: 1.3rem; }
    #heroes, #pilots, #underground, #famous { padding: 30px 10px; background: var(--bg-light); }
    #heroes .section-inner, #pilots .section-inner, #underground .section-inner, #famous .section-inner { padding: 20px 10px; box-shadow: none; }
}
