/* === ОСНОВНЫЕ СТИЛИ === */
body {
    background-color: #121212; /* Угольно-серый, чтобы было не так глухо */
    color: #d4c9b8;
    font-family: 'Georgia', 'Times New Roman', serif;
    margin: 0;
    padding: 20px;
}

/* === ШАПКА === */
.rebel-header {
    text-align: center;
    border-bottom: 2px solid #b22222; /* Яркий красный */
    padding-bottom: 20px;
    margin-bottom: 30px;
}

h1 {
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: 4rem;
    letter-spacing: 10px;
    color: #b22222;
    text-shadow: 0 0 25px rgba(178, 34, 34, 0.6);
    margin: 10px 0 5px;
}

.subtitle {
    font-style: italic;
    color: #777;
    font-size: 1.2rem;
}

/* === ЧЕРЕПА (КРАСНО-БЕЛАЯ ТЕМА) === */
.skull-row {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.skull-icon {
    width: 40px;
    height: 40px;
    /* БЕЛЫЙ ЦВЕТ + КРАСНОЕ СВЕЧЕНИЕ */
    filter: brightness(0) invert(1) drop-shadow(0 0 8px rgba(178, 34, 34, 0.8));
    transition: transform 0.3s ease;
}

.skull-icon:hover {
    transform: scale(1.2) rotate(10deg);
    filter: brightness(0) invert(1) drop-shadow(0 0 15px rgba(178, 34, 34, 1));
}

/* === КАРТОЧКИ МОТОЦИКЛОВ === */
.bike-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.bike-card {
    background: #1a1c1e;
    border: 1px solid #b22222;
    border-radius: 8px;
    padding: 15px;
    width: 280px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
}

.bike-card:hover {
    box-shadow: 0 0 30px rgba(178, 34, 34, 0.4);
    transform: scale(1.02);
    border-color: #ff3333;
}

.bike-card h3 {
    color: #b22222;
    font-size: 1.4rem;
    margin-top: 0;
}

.bike-card a {
    color: #b22222;
    text-decoration: none;
    font-weight: bold;
}

.bike-card a:hover {
    color: #ff6666;
    text-decoration: underline;
}

hr {
    border: 1px solid #b22222;
    width: 50%;
    margin: 10px auto;
}

/* === ПОДВАЛ === */
footer {
    text-align: center;
    border-top: 2px solid #b22222;
    padding-top: 20px;
    margin-top: 40px;
    color: #555;
    font-size: 0.9rem;
}

footer .skull-icon {
    width: 25px;
    height: 25px;
    opacity: 0.6;
    filter: brightness(0) invert(1) drop-shadow(0 0 4px rgba(178, 34, 34, 0.4));
}

.vintage-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: url('/static/img/vintage-noise.png');
    background-size: 200px 200px;
    opacity: 0.03;
    z-index: 9999;
}
/* === МЕНЮ === */
.main-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 15px 0 5px;
    flex-wrap: wrap;
}

.main-nav a {
    color: #b22222;
    text-decoration: none;
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: 1.2rem;
    letter-spacing: 1px;
    padding: 5px 10px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.main-nav a:hover {
    color: #ff6666;
    border-bottom-color: #b22222;
}

/* === ФЛАГ НА СТРАНИЦЕ "О ПРОЕКТЕ" === */
.about-flag-wrapper {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 60px;
    cursor: help;
    transition: transform 0.3s ease;
    z-index: 10;
}

.about-flag-wrapper:hover {
    transform: scale(1.1) rotate(-2deg);
}

.flag-tooltip {
    position: absolute;
    bottom: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%);
    background: #1a1a1a;
    color: #d4c9b8;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Georgia', 'Times New Roman', serif;
    font-style: italic;
    text-align: center;
    border: 1px solid #8b7a6a;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.9);
    letter-spacing: 0.5px;
    text-shadow: 0 0 12px rgba(180, 150, 120, 0.15);
    white-space: normal;    /* Разрешаем перенос */
    min-width: 220px;       /* Минимальная ширина */
    max-width: 340px;       /* Максимальная ширина, чтобы не растягивалась */
    line-height: 1.5;       /* Межстрочный интервал */
    word-wrap: break-word;
}

.about-flag-wrapper:hover .flag-tooltip {
    opacity: 1 !important;
}