.progs__content {
    cursor: pointer;
    position: relative;
    width: calc(100% - 66px);
    margin-bottom: 30px;
    padding: 30px;
    border: 3px solid #333333;
    border-radius: 10px
}

.progs__content-title {
    font-size: 42px;
    color: #333333;
    margin: 0;
    font-weight: 400
}

.progs__dot {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #C0312B
}

.modal-progs-1 {
        z-index: 999;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 320px;
        height: 500px;
        background: #a3a3ff;
        border-radius: 24px 4px 24px 4px;
        padding: 24px 20px 20px;
        display: flex;
        flex-direction: column;
        border: 3px solid #2e8b57;
        box-shadow: 8px 8px 0 #2e8b57;
        box-sizing: border-box;
    }

    .modal-progs-1-title {
        font-size: 20px;
        font-weight: 700;
        color: #fff;
        background: #2e8b57;
        padding: 5px 16px 5px 12px;
        border-radius: 30px 2px 30px 2px;
        margin-bottom: 18px;
        align-self: flex-start;
        border: 2px solid #1f4d33;
        box-shadow: -3px 3px 0 #1f4d33;
    }

    .modal-progs-1-select {
        background: #fff;
        border: 3px solid #2e8b57;
        border-radius: 30px 2px 30px 2px;
        padding: 12px 16px;
        font-size: 16px;
        font-weight: 500;
        color: #1f3a3a;
        margin-bottom: 18px;
        box-shadow: -4px 4px 0 #2e8b57;
        cursor: pointer;
        appearance: none;
        width: 100%;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232e8b57' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 16px center;
        background-size: 18px;
    }

    .modal-progs-1-goal-label {
        font-weight: 600;
        font-size: 15px;
        color: #1f3a3a;
        background: rgba(255, 255, 255, 0.4);
        padding: 3px 12px 3px 8px;
        border-radius: 30px 0 30px 0;
        border-left: 4px solid #2e8b57;
        margin-bottom: 14px;
        align-self: flex-start;
    }

    .modal-progs-1-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        flex: 1;
        align-content: start;
    }

    .modal-progs-1-radio-label {
        display: flex;
        align-items: center;
        background: rgba(255, 255, 255, 0.5);
        border: 2px solid #2e8b57;
        border-radius: 30px 2px 30px 2px;
        padding: 6px 6px 6px 32px;
        min-height: 38px;
        cursor: pointer;
        box-shadow: -2px 2px 0 #2e8b57;
        font-size: 13px;
        font-weight: 500;
        color: #1f3a3a;
        position: relative;
        transition: background 0.15s ease;
    }

    .modal-progs-1-radio-label:hover {
        background: rgba(255, 255, 255, 0.75);
    }

    .modal-progs-1-radio-label input[type="radio"] {
        position: absolute;
        opacity: 0;
        width: 0;
        height: 0;
        pointer-events: none;
    }

    .modal-progs-1-custom-check {
        position: absolute;
        left: 6px;
        top: 50%;
        transform: translateY(-50%);
        width: 18px;
        height: 18px;
        background: #fff;
        border: 3px solid #2e8b57;
        border-radius: 4px 1px 4px 1px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        transition: background 0.15s, border-color 0.15s;
    }

    .modal-progs-1-radio-label input[type="radio"]:checked + .modal-progs-1-custom-check {
        background: #2e8b57;
        border-color: #1f4d33;
    }

    .modal-progs-1-radio-label input[type="radio"]:checked + .modal-progs-1-custom-check::after {
        content: "✓";
        font-size: 14px;
        font-weight: 700;
        color: white;
        line-height: 1;
        display: block;
    }

    .modal-progs-1-btn {
        background: #2e8b57;
        border: 3px solid #1f4d33;
        border-radius: 60px 2px 60px 2px;
        padding: 14px;
        font-size: 20px;
        font-weight: 700;
        text-transform: uppercase;
        color: #fff;
        cursor: pointer;
        box-shadow: -6px 6px 0 #1f4d33;
        margin-top: auto;
        width: 100%;
        transition: transform 0.08s, box-shadow 0.08s;
        letter-spacing: 0.5px;
    }

    .modal-progs-1-btn:hover {
        transform: translate(-1px, -1px);
        box-shadow: -5px 5px 0 #1f4d33;
    }

    .modal-progs-1-btn:active {
        transform: translate(2px, 2px);
        box-shadow: -2px 2px 0 #1f4d33;
    }
    
    .modal-progs-2 {
        z-index: 999;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 320px;
        height: 500px;
        background: #a3a3ff;
        border-radius: 24px 4px 24px 4px;
        padding: 16px 14px 14px;
        display: flex;
        flex-direction: column;
        border: 3px solid #2e8b57;
        box-shadow: 8px 8px 0 #2e8b57;
        box-sizing: border-box;
    }

    .modal-progs-2-text {
        font-size: 13px;
        line-height: 1.4;
        color: #1a2e2e;
        margin: 0 0 10px 0;
        font-weight: 500;
        background: rgba(255, 255, 255, 0.3);
        padding: 8px 10px;
        border-radius: 12px 2px 12px 2px;
        border-left: 4px solid #2e8b57;
        flex-shrink: 0;
    }

    .modal-progs-2-block {
        margin-bottom: 10px;
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
    }

    .modal-progs-2-block:last-of-type {
        margin-bottom: 0;
    }

    .modal-progs-2-block-title {
        font-weight: 700;
        font-size: 13px;
        color: #1f3a3a;
        background: rgba(255, 255, 255, 0.4);
        padding: 2px 10px 2px 8px;
        border-radius: 30px 0 30px 0;
        border-left: 4px solid #2e8b57;
        display: inline-block;
        margin-bottom: 4px;
        flex-shrink: 0;
    }

    .modal-progs-2-slider {
        display: flex;
        align-items: stretch;
        gap: 3px;
        flex: 1;
        min-height: 0;
    }

    .modal-progs-2-arrow {
        font-size: 18px;
        font-weight: 700;
        color: #2e8b57;
        cursor: pointer;
        user-select: none;
        width: 20px;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        transition: transform 0.1s ease;
    }

    .modal-progs-2-arrow:hover {
        transform: scale(1.2);
    }

    .modal-progs-2-track {
        flex: 1;
        overflow-x: auto;
        overflow-y: hidden;
        border: 2px solid #2e8b57;
        border-radius: 8px 2px 8px 2px;
        background: #fff;
        box-shadow: -3px 3px 0 #2e8b57;
        padding: 3px;
        display: flex;
        align-items: stretch;
    }

    .modal-progs-2-track::-webkit-scrollbar {
        height: 3px;
    }

    .modal-progs-2-track::-webkit-scrollbar-thumb {
        background: #2e8b57;
        border-radius: 10px;
    }

    .modal-progs-2-track::-webkit-scrollbar-track {
        background: #e0e0e0;
        border-radius: 10px;
    }

    .modal-progs-2-grid {
        display: grid;
        gap: 2px;
        min-width: max-content;
        width: 100%;
    }

    /* Для устного счета — 5 колонок */
    .modal-progs-2-block:first-of-type .modal-progs-2-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    /* Для уравнений — 4 колонки */
    .modal-progs-2-block:last-of-type .modal-progs-2-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .modal-progs-2-item {
        padding: 4px 3px;
        text-align: center;
        font-weight: 600;
        font-size: 11px;
        color: #1a3a2a;
        border-radius: 4px 0 4px 0;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 26px;
        white-space: nowrap;
        transition: background 0.15s ease;
    }

    .modal-progs-2-item:nth-child(-n+5) {
        background: rgba(46, 139, 87, 0.15);
    }

    .modal-progs-2-item:nth-child(n+6) {
        background: rgba(163, 163, 255, 0.2);
    }

    .modal-progs-2-item:hover {
        filter: brightness(0.95);
        transform: scale(1.02);
    }

.cards {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

.cards__card {
    overflow: hidden;
    cursor: pointer;
    position: relative;
    display: flex;
    flex-direction: column;
    width: calc((100% - 90px) / 2);
    height: 350px;
    margin-bottom: 30px;
    padding: 15px 15px 0 15px;
    border-radius: 10px;
}

#first-card {
    background-color: var(--light-violet);
}

#second-card {
    background-color: var(--dark-green);
}

.cards__card:not(:nth-child(4n)) {
    margin-right: 30px;
}

.cards__card:last-child {
    margin-right: 0;
}

.cards__card:hover svg {
    transform: rotate(25deg);
    transition: transform .4s ease-in-out;
}

.cards__card:not(:hover) svg {
    transform: rotate(0deg);
    transition: transform .4s ease-in-out;
}

.cards__card-name {
    font-size: 42px;
    color: var(--white);
    margin: 0;
    font-weight: 400;
}

.cards__card-image {
    position: absolute;
    bottom: 15px;
    right: 15px;
}

.second-image {
    bottom: 0;
    right: 5px;
}

@media (max-width: 800px) {
    .cards__card {
        width: 100%;
    }

    .cards__card:not(:nth-child(2n)) {
        margin-right: 0;
    }
}

@media (max-width: 576px) {
    .progs__content-title {
        font-size: 32px;
        text-align: center;
    }
}