body {
    background: #f7f8f3;
}

.system-program-hero {
    position: relative;
    overflow: hidden;
    padding: 150px 0 86px;
    text-align: center;
    background:
        linear-gradient(135deg, rgba(255, 215, 0, 0.96), rgba(255, 165, 0, 0.92)),
        url('../assets/images/system-14-98-main.jpg') center / cover;
}

.system-program-hero::after {
    content: '';
    position: absolute;
    inset: auto -5% -90px;
    height: 160px;
    background: #f7f8f3;
    border-radius: 50% 50% 0 0;
}

.system-program-hero .container {
    position: relative;
    z-index: 1;
    max-width: 980px;
}

.hero-kicker {
    margin-bottom: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.system-program-hero h1 {
    margin-bottom: 18px;
    font-size: clamp(2.2rem, 4.8vw, 4.7rem);
    color: #243022;
}

.system-program-hero > .container > p:not(.hero-kicker) {
    max-width: 780px;
    margin: 0 auto;
    font-size: clamp(1.05rem, 1.6vw, 1.32rem);
    color: #3e3e32;
}

.program-stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.program-stats span {
    padding: 10px 18px;
    color: #fff;
    border-radius: 999px;
    background: rgba(16, 70, 37, 0.9);
    box-shadow: 0 8px 25px rgba(21, 55, 27, 0.18);
}

.program-stats strong {
    font-size: 1.25rem;
}

.lesson-jump {
    position: sticky;
    top: 76px;
    z-index: 50;
    padding: 14px 0;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(255, 165, 0, 0.25);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    backdrop-filter: blur(10px);
}

.lesson-jump .container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.lesson-jump span {
    margin-right: 4px;
    font-weight: 800;
}

.lesson-jump a {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    color: #124b2c;
    font-weight: 800;
    text-decoration: none;
    border: 1px solid rgba(18, 75, 44, 0.18);
    border-radius: 50%;
    background: #fff9e7;
    transition: var(--transition);
}

.lesson-jump a:hover,
.lesson-jump a:focus-visible {
    color: #fff;
    background: #124b2c;
    transform: translateY(-2px);
}

.program-shell {
    padding-top: 48px;
    padding-bottom: 70px;
}

.lesson-block {
    margin-bottom: 48px;
    scroll-margin-top: 150px;
}

.lesson-heading {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    margin-bottom: 20px;
    padding: 24px;
    color: #fff;
    border-radius: 18px;
    background: linear-gradient(135deg, #174f2f, #2f7d43);
    box-shadow: 0 14px 34px rgba(19, 72, 40, 0.18);
}

.lesson-number {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    color: #234427;
    font-size: 1.8rem;
    font-weight: 900;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-gold), #fff4ac);
}

.lesson-date {
    margin-bottom: 5px;
    color: #ffe993;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.lesson-heading h2 {
    color: #fff;
    font-size: clamp(1.4rem, 2.4vw, 2.25rem);
}

.program-items {
    display: grid;
    gap: 14px;
}

.program-item {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 22px;
    align-items: center;
    padding: 16px;
    border: 1px solid rgba(255, 165, 0, 0.18);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.07);
    transition: var(--transition);
}

.program-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.program-item-visual {
    position: relative;
    overflow: hidden;
    width: 132px;
    height: 132px;
    border-radius: 14px;
    background: #e9eedf;
}

.program-item-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.program-item:nth-child(3n + 2) .program-item-visual img {
    object-position: 58% center;
}

.program-item:nth-child(3n) .program-item-visual img {
    object-position: 42% center;
}

.program-item:hover .program-item-visual img {
    transform: scale(1.07);
}

.program-item-visual span {
    position: absolute;
    top: 8px;
    left: 8px;
    display: grid;
    place-items: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    color: #fff;
    font-weight: 900;
    border-radius: 10px;
    background: rgba(13, 67, 37, 0.92);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}

.program-item-copy h3 {
    margin-bottom: 8px;
    color: #2f3830;
    font-size: clamp(1.04rem, 1.6vw, 1.28rem);
    text-align: left;
}

.program-item-copy p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.98rem;
    line-height: 1.68;
    text-align: left;
}

.program-details {
    padding: 72px 0;
    background: linear-gradient(135deg, #fff3c7, #ffe091);
}

.program-details h2 {
    margin-bottom: 28px;
    text-align: center;
    color: #3d3b2b;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.program-details ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 1000px;
    margin: 0 auto 32px;
    padding: 0;
    list-style: none;
}

.program-details li {
    padding: 15px 17px 15px 46px;
    position: relative;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.78);
}

.program-details li::before {
    content: '✓';
    position: absolute;
    top: 14px;
    left: 17px;
    color: #1c693b;
    font-weight: 900;
}

.program-contact {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 18px;
    text-align: center;
}

.program-contact p {
    margin: 0;
    font-size: 1.16rem;
    font-weight: 800;
}

.footer {
    padding: 45px 0 20px;
    color: #fff;
    background: #262a26;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 24px;
    align-items: center;
}

.footer-logo,
.footer-links,
.footer-social {
    display: flex;
    align-items: center;
    gap: 14px;
}

.footer-logo img {
    width: 42px;
    height: 42px;
}

.footer-links a,
.footer-social a {
    color: #fff;
    text-decoration: none;
}

.footer-social {
    justify-content: flex-end;
}

.footer-bottom {
    margin-top: 25px;
    padding-top: 18px;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

@media (max-width: 900px) {
    .lesson-jump {
        top: 70px;
    }

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

    .footer-content {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .footer-social {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .system-program-hero {
        padding: 120px 0 70px;
    }

    .lesson-jump {
        position: relative;
        top: auto;
    }

    .lesson-heading {
        grid-template-columns: 58px minmax(0, 1fr);
        gap: 14px;
        padding: 18px 14px;
    }

    .lesson-number {
        width: 54px;
        height: 54px;
        font-size: 1.25rem;
    }

    .program-item {
        grid-template-columns: 92px minmax(0, 1fr);
        gap: 14px;
        align-items: start;
        padding: 12px;
    }

    .program-item-visual {
        width: 92px;
        height: 108px;
    }

    .program-item-copy p {
        font-size: 0.9rem;
        line-height: 1.52;
    }

    .program-contact .btn {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .program-item {
        grid-template-columns: 78px minmax(0, 1fr);
        gap: 11px;
    }

    .program-item-visual {
        width: 78px;
        height: 96px;
    }

    .program-item-visual span {
        min-width: 28px;
        height: 28px;
        font-size: 0.85rem;
    }
}
