/* Общие стили */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

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

/* Шапка */
header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    padding: 40px 0;
    text-align: center;
    border-bottom: 4px solid #e94560;
}

header h1 {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 2px;
}

header .subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-top: 5px;
}

/* Вступление */
.intro {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    font-size: 1.05rem;
}

/* Сетка поколений */
.generations {
    margin: 40px 0;
}

.generations h2 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: #1a1a2e;
    border-left: 5px solid #e94560;
    padding-left: 15px;
}

.generations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

/* Карточка поколения */
.generation-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.generation-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.generation-card .image-wrapper {
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
}

.generation-card .image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.generation-card:hover .image-wrapper img {
    transform: scale(1.03);
}

.generation-card .card-body {
    padding: 20px;
}

.generation-card .card-body h3 {
    font-size: 1.4rem;
    color: #1a1a2e;
    margin-bottom: 5px;
}

.generation-card .card-body .years {
    color: #e94560;
    font-weight: 600;
    font-size: 0.95rem;
    margin-bottom: 12px;
    display: inline-block;
    background: #fef0f2;
    padding: 2px 14px;
    border-radius: 20px;
}

.generation-card .card-body .description {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.5;
}

.generation-card .card-body .specs {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.generation-card .card-body .specs .tag {
    background: #f0f0f0;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #555;
}

/* Футер */
footer {
    background: #1a1a2e;
    color: #aaa;
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    border-top: 4px solid #e94560;
}

footer p {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Адаптив */
@media (max-width: 768px) {
    header h1 {
        font-size: 2.2rem;
    }
    .generations-grid {
        grid-template-columns: 1fr;
    }
    .intro {
        padding: 20px;
    }
}