body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: url('../images/bd.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.content-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 20px;
     flex: 1 0 auto;
    min-height: calc(100vh - 180px);
}

.container {
    background: rgba(255, 255, 255, 0.75);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.site-footer {
    flex-shrink: 0;
    margin-top: auto; /* Гарантирует прижатие к низу */
}

.page-header h1 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 30px;
    background: linear-gradient(135deg, #0a3c64, #1976d2, #4fc3f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.subtitle {
    color: #546e7a;
    font-size: 16px;
    max-width: 600px;
    margin: 0 auto;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.requirement-item {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(224, 231, 255, 0.6);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.requirement-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    background: rgba(255, 255, 255, 0.95);
}

.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 40px;
}

.example-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #eef2f6;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.example-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12);
    border-color: transparent;
}

.example-card.good:hover {
    box-shadow: 0 16px 32px rgba(76, 175, 80, 0.2);
}

.example-card.bad:hover {
    box-shadow: 0 16px 32px rgba(244, 67, 54, 0.2);
}

.example-card.good {
    border-top: 4px solid #43a047;
    background: rgba(232, 245, 233, 0.7);
}

.example-card.bad {
    border-top: 4px solid #e53935;
    background: rgba(255, 235, 238, 0.7);
}

.example-card h4 {
     text-align: center;
    margin: 15px;
    font-size: 18px;
}

.example-card.good h4 { color: #2e7d32; }
.example-card.bad h4 { color: #c62828; }


.requirement-item h4 {
    color: #0a3c64;
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.requirement-item p {
    color: #546e7a;
    margin: 0;
    font-size: 14px;
    line-height: 1.55;
}
.example-card ul {
    list-style: none;
    text-align: center;
    padding: 0 !important;
    margin: 12px;
}

.example-card li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 6px;
    color: #455a64;
    font-size: 14px;
    line-height: 1.5;
}

.example-card.good li::before {
    color: #43a047;
}

.example-card.bad li::before {
    color: #e53935;
}

.example-card > h4 {
    margin: 0 0 5px 0;
    font-size: 18px;
    font-weight: 700;
}


@media (max-width: 768px) {
    .requirements-grid,
    .comparison-grid {
        grid-template-columns: 1fr;
    }

    .container {
        padding: 25px 20px;
        background: rgba(255, 255, 255, 0.85);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.25, 0.8, 0.25, 1),
                transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.requirements-grid .requirement-item {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.requirements-grid.active .requirement-item {
    opacity: 1;
    transform: translateY(0);
}

.example-badge {
    display: block;
    text-align: center;
    margin-bottom: 15px;
}

.requirements-grid.active .requirement-item:nth-child(1) { transition-delay: 0.1s; }
.requirements-grid.active .requirement-item:nth-child(2) { transition-delay: 0.15s; }
.requirements-grid.active .requirement-item:nth-child(3) { transition-delay: 0.2s; }
.requirements-grid.active .requirement-item:nth-child(4) { transition-delay: 0.25s; }
.requirements-grid.active .requirement-item:nth-child(5) { transition-delay: 0.3s; }
.requirements-grid.active .requirement-item:nth-child(6) { transition-delay: 0.35s; }
.requirements-grid.active .requirement-item:nth-child(7) { transition-delay: 0.4s; }
.requirements-grid.active .requirement-item:nth-child(8) { transition-delay: 0.45s; }
.requirements-grid.active .requirement-item:nth-child(9) { transition-delay: 0.5s; }

.example-placeholder {
    height: 300px;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.example-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 768px) {
    .example-placeholder {
        height: 220px;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-10px) rotate(0.5deg);
    }
}

.requirement-item {
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
    will-change: transform;
}

.requirement-item:hover {
    animation: float 2.5s ease-in-out infinite;
    box-shadow: 0 16px 32px rgba(25, 118, 210, 0.2);
    border-color: rgba(25, 118, 210, 0.3);
    z-index: 2;
}

.requirement-item:hover:active {
    animation-play-state: paused;
}