body {
margin: 0;
font-family: "Segoe UI", Roboto, Arial;
background: #f5f8ff;
display: flex;
flex-direction: column;
min-height: 100vh;
}

/* HEADER */
header {
background: linear-gradient(135deg, #1e3c72, #2a5298);
padding: 18px 0 22px;
text-align: center;
color: white;
}

header h1 {
margin: 0;
font-size: 26px;
font-weight: 600;
}

header p {
margin-top: 5px;
font-size: 15px;
opacity: 0.9;
max-width: 700px;
margin-left: auto;
margin-right: auto;
}

.top-link {
display: inline-block;
margin-top: 12px;
background: white;
color: #1e3c72;
padding: 7px 16px;
border-radius: 6px;
text-decoration: none;
font-weight: 600;
transition: 0.3s;
font-size: 14px;
}

.top-link:hover {
background: #dce4f7;
}

/* MAIN CONTENT */
.container {
display: flex;
justify-content: center;
gap: 40px;
padding: 30px 20px;
flex: 1;
}

.card {
background: white;
width: 300px;
border-radius: 14px;
box-shadow: 0 5px 16px rgba(0, 0, 0, 0.08);
overflow: hidden;
transition: .3s;
text-align: center;
cursor: pointer;
}

.card:hover {
transform: translateY(-5px);
box-shadow: 0 10px 26px rgba(0, 0, 0, 0.12);
}

.card img {
width: 100%;
height: 160px;
object-fit: contain;
background: #eef3ff;
}

.card h3 {
margin: 14px 0 4px;
font-size: 18px;
color: #1e3c72;
}

.card p {
font-size: 14px;
color: #444;
padding: 0 14px 18px;
line-height: 1.45;
}

.btn-primary {
display: inline-block;
background: #1e3c72;
color: white;
padding: 7px 16px;
border-radius: 8px;
text-decoration: none;
margin-bottom: 16px;
font-size: 14px;
}

.btn-primary:hover {
background: #16315c;
}

/* FOOTER */
footer {
background: #1e3c72;
color: #dce4f7;
padding: 18px 15px;
font-size: 14px;
margin-top: auto;
}

footer .footer-container {
max-width: 1100px;
margin: auto;
display: flex;
justify-content: space-between;
flex-wrap: wrap;
}

.footer-block {
margin-bottom: 10px;
min-width: 200px;
}

footer a {
color: #ffffff;
text-decoration: none;
}

footer a:hover {
text-decoration: underline;
}

.copyright {
margin-top: 10px;
text-align: center;
font-size: 13px;
opacity: 0.8;
}