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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

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

header {
    background: rgba(255,255,255,0.95);
    padding: 2rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header h1 {
    text-align: center;
    color: #667eea;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.tagline {
    text-align: center;
    color: #764ba2;
    font-size: 1.2rem;
}

main {
    background: white;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.intro {
    margin-bottom: 2rem;
}

.intro h2 {
    color: #667eea;
    margin-bottom: 1rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s, box-shadow 0.3s;
    display: block;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.card h3 {
    color: #667eea;
    margin-bottom: 1rem;
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
    margin-top: 1rem;
}

footer {
    text-align: center;
    padding: 2rem 0;
    color: white;
    margin-top: auto;
}

footer p {
    font-size: 0.9rem;
}
.intro {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2rem;
    background: white;
    border-radius: 10px;
}

.intro-content {
    flex: 1;
}

.intro-image {
    flex: 0 0 300px;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
}

@media (max-width: 768px) {
    .intro {
        flex-direction: column;
    }
    .intro-image {
        flex: 1;
        width: 100%;
    }
}
/* ---------- одинаковые карточки 853×1280 ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.card {
    background: #fff;
    border-radius: 10px;
    padding: 0;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 12px rgba(0,0,0,.1);
    transition: transform .3s, box-shadow .3s;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,.15);
}

.card h3 {
    padding: 1rem 1.2rem 0;
    font-size: 1.1rem;
    color: #5a4b8c; /* тот же фиолетовый, что и заголовки */
}

.card img {
    width: 100%;
    height: 480px;        /* фикс. высота = 1280 / (853 / 260) ≈ 320 px */
    object-fit: cover;    /* заполняет блок без искажений, лишнее обрежется */
    border-radius: 10px 10px 0 0;
}
