.programs-intro {
    max-width: 760px;
    margin: 0 auto 2rem;
    text-align: center;
}

.programs-intro h2,
.program-hero h2 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 380px));
    justify-content: center;
    gap: 1.5rem;
}

.program-card,
.program-panel {
    background: var(--card-bg);
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.07);
}

.program-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.program-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #eaf2ff;
}

.program-card-content {
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.program-card h3 {
    border: 0;
    margin: 0 0 0.4rem;
    padding: 0;
}

.program-card p {
    flex: 1;
}

.program-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.75rem 0 1.2rem;
}

.badge {
    background: #eff6ff;
    color: #1d4ed8;
    border-radius: 999px;
    padding: 0.25rem 0.7rem;
    font-size: 0.9rem;
    font-weight: 600;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.button {
    display: inline-block;
    padding: 0.7rem 1.1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    text-align: center;
    border: 2px solid var(--primary-color);
    transition: var(--transition);
}

.button-primary {
    background: var(--primary-color);
    color: white;
}

.button-secondary {
    background: white;
    color: var(--primary-color);
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(37, 99, 235, 0.18);
}

.program-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 2rem;
    align-items: center;
    margin: 1.25rem 0 2rem;
}

.program-hero img {
    width: 100%;
    border-radius: 14px;
    border: 1px solid #dbeafe;
}

.program-panel {
    padding: 1.5rem;
    margin: 1.25rem 0;
}

.program-panel h3 {
    margin-top: 0;
}

.program-panel li + li {
    margin-top: 0.45rem;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.screenshot-placeholder {
    aspect-ratio: 16 / 9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    color: #64748b;
    background: linear-gradient(135deg, #f8fafc, #eef2ff);
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    text-align: center;
    padding: 1rem;
    box-sizing: border-box;
}

.screenshot-placeholder span {
    font-size: 2.2rem;
    line-height: 1;
}

.screenshots-grid img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: contain;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.edit-note {
    border-left: 4px solid #f59e0b;
    background: #fffbeb;
    padding: 1rem;
    border-radius: 0 8px 8px 0;
    color: #78350f;
}

@media (max-width: 750px) {
    .programs-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .program-hero {
        grid-template-columns: 1fr;
    }

    .screenshots-grid {
        grid-template-columns: 1fr;
    }
}

.donate-box {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.2rem;
    align-items: center;
    margin: 2rem 0 0;
    padding: 1.5rem;
    background: linear-gradient(135deg, #fff7ed, #fffbeb);
    border: 1px solid #fed7aa;
    border-radius: 14px;
}
.donate-box h3 { margin: 0 0 0.35rem; border: 0; padding: 0; }
.donate-box p { margin: 0 0 1rem; }
.donate-icon { font-size: 3rem; line-height: 1; }
@media (max-width: 520px) { .donate-box { grid-template-columns: 1fr; } }

/* 4. НАЗВИ ФАЙЛІВ (Оновлено на зелений) */
code.file-name {
    color: #059669 !important;        /* Насичений зелений (Emerald) */
    background-color: #ecfdf5 !important; /* Дуже світлий зелений фон */
    border: 1px solid #a7f3d0 !important; /* Ніжна зелена рамка */
    padding: 0.08rem 0.4rem;
    border-radius: 4px;              
}