/* layout.css — сетки, раскладки, карточки небольших проектов.
   .download-card живёт в style.css (не относится к grid-раскладкам). */

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 20px;
    align-items: start;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-top: 20px;
    align-items: stretch;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.video-grid iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: none;
    border-radius: var(--radius-sm);
    transition:
        box-shadow 0.3s var(--ease-out),
        transform 0.3s var(--ease-out);
}
.video-grid iframe:hover {
    box-shadow: 0 0 24px rgba(61, 158, 179, 0.15);
    transform: scale(1.01);
}

.requirements-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 24px;
    margin-top: 24px;
}

.row {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.trailer-card {
    flex: 3;
    min-width: 300px;
}
.developer-card {
    flex: 2;
    min-width: 250px;
}
.half {
    flex: 1 1 calc(50% - 12px);
}
.profile-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
    align-items: start;
}

.small-projects-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
    align-items: stretch;
}
.small-projects-container .project-card-link {
    height: 100%;
}
.small-projects-container .project-card {
    width: 100%;
}
.small-projects-container .project-card.square-card .image-wrapper {
    padding-bottom: 100%;
}

.loading-spinner {
    text-align: center;
    padding: 30px;
    color: var(--text-secondary);
}
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    font-size: 16px;
}
.empty-state i {
    font-size: 48px;
    color: var(--accent);
    margin-bottom: 16px;
    opacity: 0.6;
}
.progress-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    flex-wrap: wrap;
    justify-content: center;
}
.progress-label {
    font-size: 14px;
    color: var(--text-secondary);
    white-space: nowrap;
}
.progress-bar {
    flex: 1;
    min-width: 150px;
    height: 8px;
    background: var(--bg-inner-gradient);
    border-radius: 20px;
    border: 1px solid var(--border);
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: var(--accent);
    border-radius: 20px;
    transition: width 0.3s var(--ease-out);
}
.progress-percent {
    font-size: 14px;
    color: var(--accent);
    font-weight: bold;
    min-width: 45px;
    text-align: right;
}
.project-card .button {
    width: 100%;
    text-align: center;
    margin-top: 12px;
    padding: 10px 0;
    box-sizing: border-box;
    display: block;
}

.download-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin: 24px 0;
}

.section-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    margin: 10px auto 20px;
    border-radius: 4px;
}