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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: -100px;
    left: -100px;
    width: calc(100% + 200px);
    height: calc(100% + 200px);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cg transform='translate(40,40)'%3E%3Ccircle cx='0' cy='0' r='18' stroke='white' fill='none' stroke-width='2'/%3E%3Ccircle cx='-6' cy='-5' r='2.5' fill='white'/%3E%3Ccircle cx='6' cy='-5' r='2.5' fill='white'/%3E%3Cpath d='M-8,4 Q0,11 8,4' stroke='white' fill='none' stroke-width='2'/%3E%3C/g%3E%3Cg transform='translate(120,40) rotate(30)'%3E%3Ccircle cx='0' cy='0' r='18' stroke='white' fill='none' stroke-width='2'/%3E%3Ccircle cx='-6' cy='-5' r='2.5' fill='white'/%3E%3Ccircle cx='6' cy='-5' r='2.5' fill='white'/%3E%3Cpath d='M-8,4 Q0,11 8,4' stroke='white' fill='none' stroke-width='2'/%3E%3C/g%3E%3Cg transform='translate(40,120) rotate(-20)'%3E%3Ccircle cx='0' cy='0' r='18' stroke='white' fill='none' stroke-width='2'/%3E%3Ccircle cx='-6' cy='-5' r='2.5' fill='white'/%3E%3Ccircle cx='6' cy='-5' r='2.5' fill='white'/%3E%3Cpath d='M-8,4 Q0,11 8,4' stroke='white' fill='none' stroke-width='2'/%3E%3C/g%3E%3Cg transform='translate(120,120) rotate(15)'%3E%3Ccircle cx='0' cy='0' r='18' stroke='white' fill='none' stroke-width='2'/%3E%3Ccircle cx='-6' cy='-5' r='2.5' fill='white'/%3E%3Ccircle cx='6' cy='-5' r='2.5' fill='white'/%3E%3Cpath d='M-8,4 Q0,11 8,4' stroke='white' fill='none' stroke-width='2'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 160px 160px;
    opacity: 0.2;
    animation: drift 18s linear infinite;
    pointer-events: none;
    z-index: 0;
}

.container {
    position: relative;
    z-index: 1;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 60px 40px;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 800px;
    width: 100%;
}

h1 {
    font-size: 48px;
    color: #764ba2;
    margin-bottom: 10px;
    font-weight: 700;
}

h2 {
    font-size: 28px;
    color: #764ba2;
    margin-top: 40px;
    margin-bottom: 20px;
    font-weight: 600;
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 20px;
    text-align: left;
}

.card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #bbb;
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(118, 75, 162, 0.25);
    text-decoration: none;
}

.card-image {
    aspect-ratio: 16 / 10;
    background: #f0f0f5;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-body {
    padding: 18px 20px 22px;
    border-top: 1px solid #ddd;
}

.card-body h3 {
    font-size: 20px;
    color: #764ba2;
    margin-bottom: 8px;
    font-weight: 600;
}

.card-body p {
    font-size: 14px;
    color: #444;
    line-height: 1.5;
}

p > a, .container > p a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

p > a:hover, .container > p a:hover {
    color: #764ba2;
    text-decoration: underline;
}

@keyframes drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(160px, 160px); }
}

@media (max-width: 600px) {
    .container {
        padding: 40px 30px;
    }

    h1 {
        font-size: 36px;
    }
}

@media (max-width: 400px) {
    h1 {
        font-size: 28px;
    }
}
