
@font-face {
  font-family: 'Forum';
  src: url('/Forum-Regular.ttf') format('ttf');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

div#copyrights .row {
	margin-bottom: 0;
}

header#header {
	position: relative;
}

header#header .container {
	background: #0F0F0F;
	box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 1);
}

ul.sub-menu-container {
	background: #0F0F0F;
}

.menu-container .menu-item:first-child {
display: none;
}

ul#top-social {
	position: absolute;
    bottom: -44%;
    right: 0;
    z-index: 99;
    background: #0F0F0F;
	border-radius: 0 0 12px 12px;
	box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 1);
}

ul#top-social li {
	overflow: hidden;
}

div#logo,
ul.menu-container,
ul#top-social li {
	border: none !important;
}

ul.menu-container li a,
.card-title a {
  font-family: "Forum", serif !important;
  font-weight: 400 !important;
  font-style: normal !important;
  font-size: 26px !important;
}

.hover-effect:hover {
	box-shadow: 5px 5px 10px 0px rgba(0, 0, 0, 0.3) !important;
	transform: unset !important;
}

div.bg-overlay-content {
	box-shadow: 0px 5px 10px 0px rgba(0, 0, 0, 1);
	border-radius: 16px;
}

@media (min-width: 1024px) {
	.retina-logo img {
		height: 132px !important;
	}
}

@media (max-width: 1024px) {
	ul#top-social {
		position: relative;
	}

	.slider-inner .vertical-middle .container {
		margin-top: 10%;
	}
}

span i::before {
	font-size: 28px;
}

div.course-card {
	height:902px;
	border-radius: 24px;
	box-shadow: 5px 5px 10px 0px rgba(0, 0, 0, 0.3) !important;
	overflow: hidden;
}

.menu-item:hover a {
	transition: 0.5s ease;
}

.menu-item:hover a{
	transform: scale(1.1);
	transition: 0.5s ease;
}

ul.sub-menu-container {
	padding: 0 !important;
}

ul.sub-menu-container .menu-item {
	background: #0F0F0F;
}

p.card-title-sub span {
	font-weight: normal !important;
	margin-left: auto;
	text-align: right;
	height: 36px;
}

.style-6 .menu-container > .menu-item > .menu-link::after, .style-6 .menu-container > .menu-item.current > .menu-link::after {
	top: 10px !important;
	height: 3px !important;
}

div.course-card p.card-title-sub {
	padding-right: 12px !important;
}

div.course-card img {
	transition: 0.3s ease;
}

div.course-card:hover img {
	transform: scale(1.1);
}

.imgcard {
	overflow: hidden;
}

.card-body .card-title-sub span,
.card-text span{
	color: #8d000e !important;
	font-size: 17px;
	font-family: "Forum", serif;
	text-decoration: underline !important;
}

.card-button-wrap button {
	border-radius: 12px;
	margin: 0 auto;
	transition: 0.3s ease;
}

.card-body {
	display: flex;
    flex-direction: column;
    justify-content: space-between;
	padding: 24px 12px;
}

p.card-title-sub span.align-items-center {
	align-items: unset !important;
}

div.card-body .mt-3 {
	margin-top: 0 !important;
}

div.mb-5,
div.mt-5 {
	margin: 0 !important;
}

.bx-red .row .col-xl-3 {
	margin-bottom: 32px !important;
}

.row {
	margin-bottom: 48px;
}

.card-button-wrap mb-3 {
	margin-bottom: 0 !important;
}

/* ============================================
   СТИЛИ ДЛЯ ТАБЛИЦ РАСПИСАНИЯ КУРСОВ
   ============================================ */

/* === СБРОС ОБЁРТКИ TABLE-RESPONSIVE === */
#content .table-responsive {
    overflow: visible !important;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* === БАЗОВЫЕ СТИЛИ ТАБЛИЦЫ === */
.table-shedule {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: #ffffff !important;
    border-radius: 12px !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    margin-bottom: 40px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

/* === ШАПКА ТАБЛИЦЫ === */
.table-shedule thead {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%) !important;
}

.table-shedule thead tr {
    background: transparent !important;
}

.table-shedule thead th {
    color: #ffffff !important;
    font-weight: 600 !important;
    padding: 18px 15px !important;
    text-align: center !important;
    font-size: 13px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    border: none !important;
    white-space: nowrap !important;
    background: transparent !important;
}

.table-shedule thead th:first-child {
    text-align: left !important;
    padding-left: 25px !important;
}

/* === СТРОКИ ТАБЛИЦЫ === */
.table-shedule tbody {
    background: #ffffff !important;
}

.table-shedule tbody tr {
    transition: all 0.3s ease !important;
    background: #ffffff !important;
}

.table-shedule tbody tr:hover {
    background: #f8f9fa !important;
    transform: translateX(2px) !important;
}

.table-shedule tbody tr:not(:last-child) td {
    border-bottom: 1px solid #f0f0f0 !important;
}

/* === ЯЧЕЙКИ ТАБЛИЦЫ === */
.table-shedule tbody td {
    padding: 20px 15px !important;
    vertical-align: middle !important;
    color: #2c3e50 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    border: none !important;
    background: transparent !important;
}

/* === НАЗВАНИЕ КУРСА === */
.table-shedule td[aria-label="Название курса"] {
    font-weight: 700 !important;
    font-size: 15px !important;
    color: #1a1a1a !important;
    padding-left: 25px !important;
}

.table-shedule td[aria-label="Название курса"] a {
    color: #1a1a1a !important;
    text-decoration: none !important;
    transition: color 0.2s ease !important;
    display: inline-block !important;
}

.table-shedule td[aria-label="Название курса"] a:hover {
    color: #0006ff !important;
}

/* === ЦЕНТРИРОВАНИЕ ОСТАЛЬНЫХ КОЛОНОК === */
.table-shedule tbody td:not([aria-label="Название курса"]) {
    text-align: center !important;
}

/* === СТОИМОСТЬ === */
.table-shedule td[aria-label="Стоимость обучения"] {
    font-weight: 700 !important;
    color: #1a1a1a !important;
    font-size: 15px !important;
}

/* === СВОБОДНЫЕ МЕСТА (зелёный #28a745) === */
.table-shedule td[aria-label="Наличие свободных мест"] {
    color: #28a745 !important;
    font-weight: 600 !important;
}

/* === КНОПКА "ЗАПИСАТЬСЯ" (синий #0006ff) === */
.table-shedule .call_shedule_form,
.table-shedule .btn-danger.call_shedule_form {
    background: #0006ff !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0, 6, 255, 0.25) !important;
    margin-top: 10px !important;
    width: auto !important;
    min-width: 130px !important;
    display: inline-block !important;
    line-height: 1.4 !important;
}

.table-shedule .call_shedule_form:hover,
.table-shedule .btn-danger.call_shedule_form:hover {
    background: #0004cc !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(0, 6, 255, 0.35) !important;
    color: #ffffff !important;
}

.table-shedule .call_shedule_form:active,
.table-shedule .btn-danger.call_shedule_form:active {
    transform: translateY(0) !important;
}

/* === ЗАГОЛОВКИ СЕКЦИЙ (Дневные/Вечерние/Курсы выходного дня) === */
#content .heading-block h3 {
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
    margin-bottom: 30px !important;
    position: relative !important;
    display: inline-block !important;
}

#content .heading-block h3::after {
    content: "" !important;
    display: block !important;
    width: 60px !important;
    height: 3px !important;
    background: #0006ff !important;
    margin: 12px auto 0 !important;
    border-radius: 2px !important;
}

/* === СБРОС СТИЛЕЙ BOOTSTRAP === */
.table-shedule.table-bordered {
    border: none !important;
}

.table-shedule.table-hover tbody tr:hover {
    background-color: #f8f9fa !important;
}

/* ============================================
   АДАПТИВНОСТЬ ДЛЯ МОБИЛЬНЫХ УСТРОЙСТВ
   ============================================ */

/* === Планшеты и мобильные (< 992px) === */
@media (max-width: 991px) {
    .table-shedule {
        display: block !important;
        box-shadow: none !important;
        background: transparent !important;
        border-radius: 0 !important;
        overflow: visible !important;
    }
    
    .table-shedule thead {
        display: none !important;
    }
    
    .table-shedule tbody {
        display: block !important;
        width: 100% !important;
    }
    
    .table-shedule tbody tr {
        display: block !important;
        background: #ffffff !important;
        margin-bottom: 20px !important;
        border-radius: 12px !important;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06) !important;
        padding: 20px !important;
        border: 1px solid #f0f0f0 !important;
    }
    
    .table-shedule tbody tr:hover {
        transform: none !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    }
    
    .table-shedule tbody tr:not(:last-child) td {
        border-bottom: none !important;
    }
    
    .table-shedule tbody td {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 12px 0 !important;
        border-bottom: 1px solid #f5f5f5 !important;
        text-align: right !important;
        font-size: 14px !important;
    }
    
    .table-shedule tbody td:last-child {
        border-bottom: none !important;
        padding-bottom: 0 !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    /* Подписи перед каждой ячейкой (из aria-label) */
    .table-shedule tbody td::before {
        content: attr(aria-label) !important;
        font-weight: 600 !important;
        color: #6c757d !important;
        font-size: 12px !important;
        text-transform: uppercase !important;
        letter-spacing: 0.3px !important;
        text-align: left !important;
        margin-right: 15px !important;
        flex-shrink: 0 !important;
    }
    
    /* Название курса — крупный заголовок карточки */
    .table-shedule td[aria-label="Название курса"] {
        padding: 0 0 15px 0 !important;
        border-bottom: 2px solid #f0f0f0 !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
    }
    
    .table-shedule td[aria-label="Название курса"]::before {
        display: none !important;
    }
    
    .table-shedule td[aria-label="Название курса"] a {
        font-size: 18px !important;
        color: #1a1a1a !important;
    }
    
    /* Стоимость — выделяем синим */
    .table-shedule td[aria-label="Стоимость обучения"] {
        font-size: 16px !important;
        color: #0006ff !important;
    }
    
    /* Кнопка на мобильных — на всю ширину */
    .table-shedule .call_shedule_form,
    .table-shedule .btn-danger.call_shedule_form {
        width: 100% !important;
        margin-top: 15px !important;
        padding: 14px 20px !important;
        font-size: 14px !important;
        min-width: 100% !important;
    }
    
    /* Свободные места — в колонку */
    .table-shedule td[aria-label="Наличие свободных мест"] {
        flex-direction: column !important;
        align-items: stretch !important;
        text-align: center !important;
    }
}

/* === Очень маленькие экраны (< 576px) === */
@media (max-width: 575px) {
    #content .heading-block h3 {
        font-size: 24px !important;
    }
    
    .table-shedule tbody tr {
        padding: 15px !important;
        margin-bottom: 15px !important;
    }
    
    .table-shedule td[aria-label="Название курса"] a {
        font-size: 16px !important;
    }
    
    .table-shedule tbody td {
        font-size: 13px !important;
    }
    
    .table-shedule tbody td::before {
        font-size: 11px !important;
        max-width: 45% !important;
    }
}

/* ============================================
   СТРАНИЦА СТАТЕЙ (ЖУРНАЛ)
   Класс page-journal добавляется через jQuery
   ============================================ */

/* === Сброс высоты и overflow === */
body.page-journal div.course-card {
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
}

/* === Hover-эффект карточки === */
body.page-journal div.course-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 24px rgba(0, 6, 255, 0.15) !important;
}

/* === Изображение статьи === */
body.page-journal div.course-card a > img.card-img-top {
    width: 100% !important;
    height: 240px !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.4s ease !important;
}

body.page-journal div.course-card:hover a > img.card-img-top {
    transform: scale(1.05) !important;
}

/* === Body карточки === */
body.page-journal div.course-card .card-body {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    padding: 24px 20px 16px !important;
    height: auto !important;
    justify-content: flex-start !important;
}

/* === Заголовок === */
body.page-journal div.course-card .card-title {
    margin: 0 0 12px 0 !important;
    line-height: 1.4 !important;
}

body.page-journal div.course-card .card-title b {
    font-weight: 400 !important;
    display: block !important;
}

body.page-journal div.course-card .card-title a {
    color: #1a1a1a !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    display: block !important;
    transition: color 0.3s ease !important;
    line-height: 1.4 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

body.page-journal div.course-card .card-title a:hover {
    color: #0006ff !important;
}

/* === Описание === */
body.page-journal div.course-card .card-text {
    color: #4a4a4a !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    text-align: justify !important;
    flex: 1 !important;
    margin: 0 0 20px 0 !important;
}

/* === Обёртка кнопки === */
body.page-journal div.course-card .card-button-wrap {
    margin-top: auto !important;
    padding: 0 20px 20px !important;
    text-align: center !important;
    display: block !important;
}

body.page-journal div.course-card .card-button-wrap .news-list-more {
    text-align: center !important;
}

/* === Кнопка "Подробнее" === */
body.page-journal div.course-card .card-button-wrap .btn {
    background: #0006ff !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 12px 32px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0, 6, 255, 0.25) !important;
    display: inline-block !important;
    text-decoration: none !important;
}

body.page-journal div.course-card .card-button-wrap .btn:hover {
    background: #0004cc !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(0, 6, 255, 0.35) !important;
    color: #ffffff !important;
}

body.page-journal div.course-card .card-button-wrap .btn:active {
    transform: translateY(0) !important;
}

/* === Заголовок секции статей === */
body.page-journal #content .heading-block h3 {
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
}

body.page-journal #content .heading-block h3::after {
    content: "" !important;
    display: block !important;
    width: 60px !important;
    height: 3px !important;
    background: #0006ff !important;
    margin: 12px auto 0 !important;
    border-radius: 2px !important;
}

/* === Мобильная адаптация === */
@media (max-width: 767px) {
    body.page-journal div.course-card {
        margin-bottom: 24px !important;
    }
    
    body.page-journal div.course-card .card-body {
        padding: 16px 16px 12px !important;
    }
    
    body.page-journal div.course-card .card-button-wrap {
        padding: 0 16px 16px !important;
    }
    
    body.page-journal div.course-card .card-title a {
        font-size: 17px !important;
    }
    
    body.page-journal div.course-card .card-text {
        font-size: 13px !important;
    }
    
    body.page-journal div.course-card a > img.card-img-top {
        height: 200px !important;
    }
    
    body.page-journal #content .heading-block h3 {
        font-size: 24px !important;
    }
}

body.page-journal div.course-card {
	margin-bottom: 24px;
}

/* ============================================
   ФУТЕР — COPYRIGHTS BLOCK
   ============================================ */

/* === Общий контейнер футера === */
#copyrights {
    background: #0f0f0f !important;
    color: #a0a0a0 !important;
    padding: 50px 0 30px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    font-size: 14px !important;
    line-height: 1.6 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    margin-top: 60px !important;
}

/* === Верхний блок: копирайт + меню === */
#copyrights .row.align-items-center {
    padding-bottom: 20px !important;
}

/* === Копирайт (левая колонка) === */
#copyrights .col-md-6:first-child {
    color: #a0a0a0 !important;
    font-size: 13px !important;
    line-height: 1.7 !important;
}

/* === Политики конфиденциальности === */
#copyrights .copyright-links {
    margin-top: 12px !important;
    font-size: 12px !important;
    color: #6c6c6c !important;
}

#copyrights .copyright-links a {
    color: #8a8a8a !important;
    text-decoration: none !important;
    transition: color 0.25s ease !important;
    border-bottom: 1px solid transparent !important;
    padding-bottom: 1px !important;
}

#copyrights .copyright-links a:hover {
    color: #ffffff !important;
    border-bottom-color: #0006ff !important;
}

/* === Меню в футере (правая колонка) === */
#copyrights .copyrights-menu {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px 20px !important;
    justify-content: flex-end !important;
    align-items: center !important;
}

#copyrights .copyrights-menu a {
    color: #c0c0c0 !important;
    text-decoration: none !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    transition: all 0.25s ease !important;
    position: relative !important;
    padding: 6px 0 !important;
    display: inline-block !important;
    letter-spacing: 0.2px !important;
}

#copyrights .copyrights-menu a::after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    bottom: 2px !important;
    width: 0 !important;
    height: 2px !important;
    background: #0006ff !important;
    transition: width 0.3s ease !important;
    border-radius: 2px !important;
}

#copyrights .copyrights-menu a:hover {
    color: #ffffff !important;
    transform: translateY(-1px) !important;
}

#copyrights .copyrights-menu a:hover::after {
    width: 100% !important;
}

/* === Разделительная линия === */
#copyrights .line {
    height: 1px !important;
    background: linear-gradient(
        to right,
        transparent 0%,
        rgba(255, 255, 255, 0.08) 15%,
        rgba(255, 255, 255, 0.08) 85%,
        transparent 100%
    ) !important;
    border: none !important;
    margin: 20px 0 !important;
}

/* === SEO-текст внизу === */
#copyrights .col-md-12.d-none.d-xl-block {
    color: #6c6c6c !important;
    font-size: 12px !important;
    line-height: 1.7 !important;
    text-align: center !important;
    padding: 10px 40px !important;
    font-style: italic !important;
    max-width: 900px !important;
    margin: 0 auto !important;
    letter-spacing: 0.2px !important;
}

/* ============================================
   АДАПТИВНОСТЬ
   ============================================ */

/* === Планшет (< 992px) === */
@media (max-width: 991px) {
    #copyrights {
        padding: 40px 0 25px !important;
        margin-top: 40px !important;
    }
    
    #copyrights .row.align-items-center.justify-content-between {
        flex-direction: column !important;
        text-align: center !important;
    }
    
    #copyrights .col-md-6 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }
    
    #copyrights .col-md-6:first-child {
        margin-bottom: 20px !important;
    }
    
    /* Меню центрируем и в несколько строк */
    #copyrights .copyrights-menu {
        justify-content: center !important;
        gap: 4px 16px !important;
    }
    
    #copyrights .copyrights-menu a {
        font-size: 13px !important;
    }
    
    #copyrights .copyright-links {
        text-align: center !important;
    }
}

/* === Мобильные (< 768px) === */
@media (max-width: 767px) {
    #copyrights {
        padding: 30px 0 20px !important;
    }
    
    #copyrights .col-md-6:first-child {
        font-size: 12px !important;
    }
    
    #copyrights .copyright-links {
        font-size: 11px !important;
    }
    
    /* Меню на мобильных — 2 колонки для компактности */
    #copyrights .copyrights-menu {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 10px 12px !important;
        text-align: center !important;
    }
    
    #copyrights .copyrights-menu a {
        font-size: 13px !important;
        padding: 8px 4px !important;
        background: rgba(255, 255, 255, 0.03) !important;
        border-radius: 6px !important;
        border: 1px solid rgba(255, 255, 255, 0.05) !important;
    }
    
    #copyrights .copyrights-menu a:hover {
        background: rgba(0, 6, 255, 0.15) !important;
        border-color: #0006ff !important;
        transform: translateY(-2px) !important;
    }
    
    #copyrights .copyrights-menu a::after {
        display: none !important;
    }
    
    /* Разделитель — тоньше */
    #copyrights .line {
        margin: 16px 0 !important;
    }
}

/* === Очень маленькие (< 480px) === */
@media (max-width: 479px) {
    #copyrights .container {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    
    #copyrights .copyrights-menu {
        grid-template-columns: 1fr !important;
    }
    
    #copyrights .col-md-6:first-child {
        font-size: 11px !important;
    }
}

#copyrights .copyrights-menu a:first-child {
	display: none !important;
}

.button.button-border:not(.button-fill):hover {
	background: #0006ff;
	border-color: #0006ff;
}

div.course-card {
	margin-bottom: 24px !important;
}

/* ============================================
   СТРАНИЦА ВИДЕО-УРОКОВ
   Класс page-video добавляется через jQuery
   ============================================ */

/* === Сброс базовых стилей карточек === */
body.page-video div.course-card {
    height: auto !important;
    min-height: 0 !important;
    overflow: hidden !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    border-radius: 16px !important;
    background: #ffffff !important;
    transition: all 0.3s ease !important;
    display: flex !important;
    flex-direction: column !important;
    margin-bottom: 24px !important;
}

body.page-video div.course-card:hover {
    transform: translateY(-4px) !important;
    box-shadow: 0 8px 24px rgba(0, 6, 255, 0.15) !important;
}

/* === Body карточки === */
body.page-video div.course-card .card-body {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 !important;
    padding: 0 !important;
    height: auto !important;
    justify-content: flex-start !important;
}

/* === Картинка видео (первая ссылка в card-body) === */
body.page-video div.course-card .card-body > a:first-child {
    display: block !important;
    overflow: hidden !important;
    border-radius: 16px 16px 0 0 !important;
    line-height: 0 !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.page-video div.course-card .card-body > a:first-child img {
    width: 100% !important;
    height: 220px !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.4s ease !important;
    margin: 0 !important;
}

body.page-video div.course-card:hover .card-body > a:first-child img {
    transform: scale(1.05) !important;
}

/* Убираем overlay поверх картинки (если есть) */
body.page-video div.course-card .card-body > a:first-child .bg-overlay {
    display: none !important;
}

/* === Заголовок === */
body.page-video div.course-card .card-title {
    margin: 16px 20px 12px !important;
    line-height: 1.4 !important;
    order: 2 !important;
}

body.page-video div.course-card .card-title b {
    font-weight: 400 !important;
    display: block !important;
}

body.page-video div.course-card .card-title a {
    color: #1a1a1a !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    display: block !important;
    transition: color 0.3s ease !important;
    line-height: 1.4 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

body.page-video div.course-card .card-title a:hover {
    color: #0006ff !important;
}

/* === Кнопка "Смотреть видео" === */
body.page-video div.course-card .news-list-more {
    margin-top: auto !important;
    padding: 0 20px 20px !important;
    text-align: center !important;
    order: 3 !important;
}

body.page-video div.course-card .news-list-more .btn {
    background: #0006ff !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 12px 28px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 8px rgba(0, 6, 255, 0.25) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    text-decoration: none !important;
}

body.page-video div.course-card .news-list-more .btn i.icon-play-circle {
    font-size: 18px !important;
    color: #ffffff !important;
}

body.page-video div.course-card .news-list-more .btn:hover {
    background: #0004cc !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(0, 6, 255, 0.35) !important;
    color: #ffffff !important;
}

body.page-video div.course-card .news-list-more .btn:active {
    transform: translateY(0) !important;
}

/* === Скрываем пустые элементы, создающие лишние отступы === */
body.page-video div.course-card .d-flex.justify-content-between:empty {
    display: none !important;
}

body.page-video div.course-card .card-body > div.text-center:not(:has(.news-list-more)) {
    display: none !important;
}

/* === Заголовок секции "Видео-уроки" === */
body.page-video #content .heading-block h3 {
    font-size: 32px !important;
    font-weight: 700 !important;
    color: #1a1a1a !important;
}

body.page-video #content .heading-block h3::after {
    content: "" !important;
    display: block !important;
    width: 60px !important;
    height: 3px !important;
    background: #0006ff !important;
    margin: 12px auto 0 !important;
    border-radius: 2px !important;
}

/* === Мобильная адаптация === */
@media (max-width: 767px) {
    body.page-video div.course-card .card-body > a:first-child img {
        height: 180px !important;
    }
    
    body.page-video div.course-card .card-title {
        margin: 12px 16px 8px !important;
    }
    
    body.page-video div.course-card .card-title a {
        font-size: 16px !important;
    }
    
    body.page-video div.course-card .news-list-more {
        padding: 0 16px 16px !important;
    }
    
    body.page-video div.course-card .news-list-more .btn {
        padding: 10px 20px !important;
        font-size: 13px !important;
    }
    
    body.page-video #content .heading-block h3 {
        font-size: 24px !important;
    }
}

@media (min-width: 1024px) {
	body.page-video div.course-card {
		height: 416px !important;
	}
}

div#copyrights {
	margin-top: 0px !important;
}

/* ============================================
   ИСПРАВЛЕНИЕ АДАПТИВНОСТИ ТАБЛИЦЫ (НЕТБУКИ < 1300px)
   ============================================ */

/* 1. Разрешаем горизонтальный скролл только для этой таблицы, если она не влезает */
.table-shedule-wrapper, 
div:has(> .table-shedule) {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
}

/* 2. Оптимизация для экранов от 1200px до 1366px (нетбуки) */
@media (min-width: 1200px) and (max-width: 1366px) {
    .table-shedule thead th {
        white-space: normal !important; /* Разрешаем перенос текста в шапке */
        padding: 12px 8px !important; /* Уменьшаем боковые отступы */
        font-size: 12px !important; /* Чуть уменьшаем шрифт */
        line-height: 1.3 !important;
    }
    
    .table-shedule tbody td {
        padding: 15px 8px !important;
        font-size: 13px !important;
    }
    
    /* Гарантируем место для кнопки и последней колонки */
    .table-shedule thead th:last-child,
    .table-shedule tbody td:last-child {
        min-width: 150px !important;
        white-space: nowrap !important;
    }
    
    /* Скрываем колонку "Стоимость для учащихся школы", если она пустая или содержит только мусор, 
       чтобы сэкономить место (опционально, раскомментируйте, если нужно) */
    /* 
    .table-shedule th:nth-child(7),
    .table-shedule td:nth-child(7) {
        display: none !important;
    } 
    */
}

/* 3. Сдвигаем breakpoint "карточного" вида на 1199px */
/* Теперь планшеты и нетбуки будут видеть красивые карточки, а не сплющенную таблицу */
@media (max-width: 1199px) {
    .table-shedule {
        display: block !important;
        box-shadow: none !important;
        background: transparent !important;
        border-radius: 0 !important;
        overflow: visible !important;
    }
    
    .table-shedule thead {
        display: none !important;
    }
    
    .table-shedule tbody {
        display: block !important;
        width: 100% !important;
    }
    
    .table-shedule tbody tr {
        display: block !important;
        background: #ffffff !important;
        margin-bottom: 20px !important;
        border-radius: 12px !important;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06) !important;
        padding: 20px !important;
        border: 1px solid #f0f0f0 !important;
    }
    
    .table-shedule tbody tr:hover {
        transform: none !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
    }
    
    .table-shedule tbody tr:not(:last-child) td {
        border-bottom: none !important;
    }
    
    .table-shedule tbody td {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 10px 0 !important;
        border-bottom: 1px solid #f5f5f5 !important;
        text-align: right !important;
        font-size: 14px !important;
    }
    
    .table-shedule tbody td:last-child {
        border-bottom: none !important;
        padding-top: 15px !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }
    
    /* Подписи перед каждой ячейкой (из aria-label) */
    .table-shedule tbody td::before {
        content: attr(aria-label) !important;
        font-weight: 600 !important;
        color: #6c757d !important;
        font-size: 11px !important;
        text-transform: uppercase !important;
        letter-spacing: 0.3px !important;
        text-align: left !important;
        margin-right: 15px !important;
        flex-shrink: 0 !important;
        max-width: 45%;
    }
    
    /* Название курса — крупный заголовок карточки */
    .table-shedule td[aria-label="Название курса"] {
        padding: 0 0 15px 0 !important;
        border-bottom: 2px solid #f0f0f0 !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
    }
    
    .table-shedule td[aria-label="Название курса"]::before {
        display: none !important;
    }
    
    .table-shedule td[aria-label="Название курса"] a {
        font-size: 18px !important;
        color: #1a1a1a !important;
    }
    
    /* Кнопка на мобильных/нетбуках — на всю ширину, крупная и заметная */
    .table-shedule .call_shedule_form,
    .table-shedule .btn-danger.call_shedule_form {
        width: 100% !important;
        margin-top: 10px !important;
        padding: 14px 20px !important;
        font-size: 14px !important;
        min-width: 100% !important;
        display: block !important;
        text-align: center !important;
    }
    
    /* Свободные места — в колонку */
    .table-shedule td[aria-label="Наличие свободных мест"] {
        flex-direction: column !important;
        align-items: stretch !important;
        text-align: center !important;
    }
}

/* 4. Очень маленькие экраны (< 576px) */
@media (max-width: 575px) {
    .table-shedule tbody tr {
        padding: 15px !important;
        margin-bottom: 15px !important;
    }
    
    .table-shedule td[aria-label="Название курса"] a {
        font-size: 16px !important;
    }
    
    .table-shedule tbody td {
        font-size: 13px !important;
    }
    
    .table-shedule tbody td::before {
        font-size: 10px !important;
        max-width: 40% !important;
    }
}