.courses-block {
    padding: 0;
}

.courses-contact-info {
    font-family: 'Alegreya Sans', sans-serif;
    /*background: #337AB7;*/
    /*border: 1px solid #337AB7;*/
    color: white;
    padding: 15px 20px;
    font-size: 25px;
    border-radius: 2px;
    transition: .5s;
    margin: 40px auto;
    display: flex;
    justify-content: space-around;
    /*flex-direction: column;*/
    max-width: 1100px;
}

.courses-contact-section-block {
    width: 100%;
    background: #337AB7;
    margin-bottom: 80px;
    margin-top: 20px;
}

.courses-contact-info-block {
    /*width: 100%;*/
    display: flex;
    flex-direction: column;
    /*align-items: center;*/
    justify-content: center;
}

.courses-contact-info-block p {}

.courses-contact-info-block__row {

    display: flex;

    align-items: center;
    /*margin-left: 0.7rem;*/
}

.courses-contact-info-block__row img {
    width: 19px;
    height: 19px;
    margin-right: 0.4rem;
}

.courses-contact-section {
    display: flex;
    flex-direction: column;
    position: relative;
    margin: 0 auto;
    background: #f2f2f2;
    width: 100%;
    max-width: none;
}

.footer-line-section {
    width: 100%;
    position: relative;
}

.courses-wrapper {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.courses-titles {
    box-sizing: border-box;
    max-width: inherit;
    font-family: "Alegreya Sans", sans-serif;
    font-size: 25px;
    font-weight: 600;
    padding: 30px 20px;
    text-align: center;
}

.courses-main-section {
    padding-bottom: 0 !important;
}


/* --------------------------------- */
.courses-items-container {
    margin-top: 2rem;
    padding: 0 1rem;
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    /*  */
    gap: 20px;
}

.courses-item {
    min-height: 250px;
    width: 49%;
    display: flex;
    flex-direction: column;

    border-radius: 0.9rem;
    background-color: #337AB7;

    /* font-size: 1rem; */
    font-size: 25px;

    -webkit-box-shadow: 0px 0px 20px -10px rgba(0, 0, 0, 0.75);
    -moz-box-shadow: 0px 0px 20px -10px rgba(0, 0, 0, 0.75);
    box-shadow: 0px 0px 20px -10px rgba(0, 0, 0, 0.75);

}


.courses-item__header {
    width: 100%;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;

    border-top-left-radius: 0.9rem;
    border-top-right-radius: 0.9rem;

    background-color: #fff;

}

.courses-item__name {
    color: #337AB7;
    font-size: 0.75em;
}

.courses-item__icon-container {
    margin-left: 10px;
    width: 45px;
    height: 63px;
    flex-shrink: 0;

    background-size: 100%;
    background-position-y: 50%;
    background-repeat: no-repeat;

    overflow: hidden;
}

.courses-item__icon {
    max-width: 100%;
    object-fit: cover;
}

.courses-item__info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;

    color: #fff;

}

.courses-item__text {

    font-weight: 600;
    font-size: 0.68em;


}

.courses-item__features-list {
    display: flex;
    flex-direction: column;
    padding-left: 1.3rem;

    font-size: 0.64em;
}

.courses-item__feature {
    margin-top: 0.7rem;
}


/* new */
.courses-button-link {
    max-width: 90%;
    margin: 20px auto;
    padding: 10px 50px;

    background-color: #337AB7;
    border-radius: 5px;

    border: none;
    font-size: 18px;
    color: #fff;
    font-family: 'Alegreya Sans', sans-serif;
    text-align: center;

    transition: 0.3s all;
}

.courses-button-link:hover {
    background-color: #439FF0;
}




/* media */

@media screen and (max-width: 1100px) {
    .courses-titles {
        font-size: 21px;
    }
}

@media screen and (max-width: 1035px) {

    .courses-items-container {
        gap: 0;
    }

    .courses-item {
        width: 70%;
        margin-top: 30px;
    }

    #data-courses {
        width: 400px;
    }

    .table-wrapper {
        flex-direction: column;
        align-items: center;
    }
}

@media screen and (max-width: 900px) {
    .courses-contact-info {
        flex-direction: column;
        align-items: center;
        padding-bottom: 0;
    }

    .courses-contact-info-block {
        align-items: center;
        margin-bottom: 15px;
    }
}

@media screen and (max-width: 800px) {}

@media screen and (max-width: 768px) {
    .courses-contact-info {
        /*font-size: 20px;*/
    }


    .courses-titles {
        font-size: 19px;
    }
}

@media screen and (max-width: 540px) {

    .courses-titles {
        font-weight: 600;
        padding: 30px 15px;
    }

    .courses-contact-info-block {
        flex-direction: column;
        margin-bottom: 10px;
    }

    .courses-item {
        width: 100%;
    }

    .courses-item__icon-container {
        width: 35px;
        height: 49px;
    }

    .courses-item__features-list {
        padding-left: 1.5rem;
    }
}

@media screen and (max-width: 480px) {
    .courses-contact-info {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .services-titles {
        font-size: 18px;
    }

}

.table-wrapper {
    display: flex;
    justify-content: center;
    padding: 0 1rem;
    gap: 70px;
}

/* Контейнер таблицы */
#data-courses {
    max-height: 300px;
    overflow-y: auto;
    border-radius: 12px;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Таблица */
.table {
    border-collapse: collapse;
    table-layout: fixed;
}

/* Заголовок таблицы */
.tableHeader {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #337AB7;
}

.tableHead {
    padding: 16px 12px;
    text-align: left;
    color: white;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.tableHead:first-child {
    border-top-left-radius: 12px;
}

.tableHead:last-child {
    border-top-right-radius: 12px;
}

.headContent {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Тело таблицы */
.tableBody {
    max-height: 248px;
    overflow-y: auto;
}


/* Строки таблицы */
.tableRow {
    border-bottom: 1px solid #f3f4f6;
    transition: all 0.2s ease;
    cursor: pointer;
}


.tableRow.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 60%;
    border-radius: 0 2px 2px 0;
}

/* Ячейки таблицы */
.tableCell {
    padding: 14px 12px;
    vertical-align: middle;
    position: relative;
}

.cellContent {
    display: flex;
    align-items: center;
    min-height: 20px;
}

.courseName {
    font-weight: 500;
    color: #1f2937;
    font-size: 14px;
    line-height: 1.4;
}

.date {
    color: #6b7280;
    font-size: 13px;
    font-weight: 400;
}

/* Стили для кнопки Записаться */
.enroll-btn {
    padding: 8px 16px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.enroll-btn:hover {
    background: linear-gradient(135deg, #0da271 0%, #047857 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.enroll-btn:active {
    transform: translateY(0);
}

.courses-form {
    display: none;
    max-width: 500px;
    height: 300px;
    overflow-y: auto;
    padding: 15px;
    background: white;
    border-radius: 20px;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    position: relative;
}

.close-button {
    color: black;
    font-size: 14px;
    cursor: pointer;
    text-align: right;
}

.form-header {
    display: flex;
    justify-content: space-between;
}

.courses-input {
    display: flex;
    flex-direction: column;
    margin-bottom: 7px;
    position: relative;
}

.courses-input label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.3s ease;
}

.courses-input input,
.courses-input textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    color: #1f2937;
    background: #f9fafb;
    transition: all 0.3s ease;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

.courses-input input:focus,
.courses-input textarea:focus {
    outline: none;
    border-color: #8b5cf6;
    background: white;
    box-shadow:
        0 0 0 4px rgba(139, 92, 246, 0.1),
        0 4px 12px rgba(139, 92, 246, 0.15);
    transform: translateY(-1px);
}

.courses-input input:hover,
.courses-input textarea:hover {
    border-color: #d1d5db;
}

.courses-input input {
    height: 48px;
}

.courses-input textarea {
    min-height: 100px;
    resize: vertical;
    line-height: 1.5;
}

/* Эффект при фокусе для label */
.courses-input:focus-within label {
    color: #7c3aed;
}

/* Контейнер для чекбокса */
.courses-terms-container {
    margin: 32px 0 24px 0;
    padding: 20px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.courses-terms-accept {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    color: #374151;
    font-size: 14px;
    line-height: 1.5;
}

/* Кастомный чекбокс */
.courses-checkbox {
    position: relative;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    cursor: pointer;
    appearance: none;
    border: 2px solid #d1d5db;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.courses-checkbox:checked {
    background: #8b5cf6;
    border-color: #8b5cf6;
}

.courses-checkbox:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.courses-checkbox:hover {
    border-color: #8b5cf6;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.courses-href {
    color: #7c3aed;
    text-decoration: none;
    font-weight: 600;
    position: relative;
    transition: color 0.2s ease;
}

.cookie-form-info {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
    padding: 12px;
    background: #fef3c7;
    border-radius: 8px;
    border-left: 4px solid #f59e0b;
}

/* Стили для кнопки */
.courses-form-btn {
    width: 100%;
    padding: 16px 32px;
    background-color: #337AB7;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.courses-form-btn:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}




/* Валидация полей */
.courses-input input:invalid:not(:focus):not(:placeholder-shown),
.courses-input textarea:invalid:not(:focus):not(:placeholder-shown) {
    border-color: #ef4444;
    background: #fef2f2;
}

.courses-input input:valid:not(:focus):not(:placeholder-shown),
.courses-input textarea:valid:not(:focus):not(:placeholder-shown) {
    border-color: #10b981;
    background: #f0fdf4;
}

/* Плейсхолдеры */
.courses-input input::placeholder,
.courses-input textarea::placeholder {
    color: #9ca3af;
    font-size: 14px;
}

/* Индикатор обязательного поля */
.courses-input input[required]+label::after,
.courses-input textarea[required]+label::after {
    content: ' *';
    color: #ef4444;
    margin-left: 2px;
}