body {
    font-family: "Inter", sans-serif;
}
.content .eyebrow {
    color: #1000ED;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 40px;
}
.content span {
    color: #171B23;
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}
h1 {
    color: #171B23 !important;
    font-family: Inter !important;
    font-size: 47px !important;
    font-weight: 700 !important;
    text-align: left !important;
    text-transform: none !important;
    padding-bottom: 2% !important;
}
.hero {
    border-radius: 38px;
    margin-bottom: 40px;
}
.hero-copy {
    background: #DDE0FC;
    padding: 32px !important;
}
.hero-copy p, .section-heading p {
    color: #60666E;
    font-family: Inter;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}
.hero-art {
    background: #1000ED;
    padding: 65px;
}
.hero-art img {
    display: block;
    margin: 0 auto 50px;
}
.content .hero-art p{
    text-align: center;
    color: #FFF;
    font-family: Inter;
    font-size: 19px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}
.hero-art span {
    display: block;
    text-align: center;
    color: #FFF;
    font-size: 13px;
}
.btn-primary {
    color: #FFF !important;
    text-align: center !important;
    font-family: Inter !important;
    font-size: 14px !important;
    font-style: normal !important;
    font-weight: 700 !important;
    line-height: normal !important;
    padding: 14px 50px !important;
    background: #1000ED !important;
    border-radius: 8px !important;
}
.btn-outline-secondary {
    color: #171B23 !important;
    text-align: center !important;
    font-family: Inter !important;
    font-size: 14px !important;
    font-style: normal !important;
    font-weight: 700 !important;
    line-height: normal !important;
    background: #fff !important;
    padding: 14px 50px !important;
    border-radius: 8px !important;
}
h2 {
    color: #171B23 !important;
    font-family: Inter !important;
    font-size: 32px !important;
    font-style: normal !important;
    font-weight: 700 !important;
    line-height: normal !important;
    text-align: left !important;
    text-transform: none !important;
}
.tile-top {
    color: #1000ED;
    font-family: Inter;
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin-bottom: 12px;
}
h3 {
    color: #171B23 !important;
    font-family: Inter !important;
    font-size: 15px !important;
    font-style: normal !important;
    font-weight: 700 !important;
    line-height: normal !important;
    text-transform: none !important;

}
.content .speker {
    color: #60666E;
    font-family: Inter;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}
.video-card a {
    color: #1000ED;
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    text-decoration: none;
}
.video-card a:hover {
    text-decoration: underline;
}
.see_more_video a {
    color: #1000ED;
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}
.content .section-intro, .content p {
    color: #60666E;
    font-family: Inter;
    font-size: 17px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}
.materials-band {
    background: #F5F6F8;
    padding: 40px 0;
    margin-bottom: 60px;
}

/* Контейнер-сетка для обеспечения отступа между карточками 20px (пример для flex/grid) */
.cards-row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}



/* Основной контейнер карточки */
.content .material-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 20px;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-sizing: border-box;
    min-height: 400px;
}

/* Блок превью документа на сером фоне */
.doc-preview.cover {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 150px; /* Высота серой плашки */
    margin-bottom: 16px;
    background-color: #eff1f5;
    border-radius: 4px;
}

.doc-preview.cover img {
    max-height: 120px;
    max-width: 90%;
    object-fit: contain;
}

/* Категория и метаданные (фиолетовый текст) */
.content .material-title {
    margin: 0 0 8px 0;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #4f46e5;
}

/* Заголовок-описание документа */
.content .material-description {
    margin: 0 0 12px 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    color: #1f2937;
}

/* Имя автора (прижимается к нижней части перед линией) */
.content .material_avtor {
    margin: auto 0 14px 0; /* margin-top: auto толкает автора и кнопки вниз */
    font-size: 13px;
    font-weight: 400;
    color: #6b7280;
}

/* Нижний блок со ссылками и разделительной линией */
.content .card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid #e5e7eb; /* Разделительный бордер между автором и ссылками */
}

.content .card-actions a {
    font-size: 13px;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.card-actions a:hover {
    opacity: 0.75;
}

/* Левая ссылка ("Открыть PDF") */
.card-actions a:first-child {
    font-weight: 600;
    color: #111827;
}

/* Правая ссылка ("Скачать PDF") */
.card-actions a:last-child {
    font-weight: 400;
    color: #374151;
}
.direction_card {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-sizing: border-box;
    width: 30% !important;
}
.direction_img {
    width: 65px;
    height: 65px;
    border-radius: 8px;
    padding: 6px;
    margin-right: 20px;
}
.direction_img img {
    display: block;
    margin: auto;
}
.direction_card .card-actions {
    margin-top: 20px;
}
.direction_title {
    color: #171B23;
    font-family: Inter;
    font-size: 18px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin-bottom: 24px;
}
.direction_card span {
    color: #60666E;
    font-family: Inter;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}
/* Правая ссылка ("Скачать PDF") */
.direction_card a:last-child {
    font-weight: 400;
    color: #1000ED;
}
.direction_card .d-flex {
    min-height: 100px;
}
.bg1 {
    background: #1000ED;
}
.bg2 {
    background: #4CACF7;
}
.bg3 {
    background: #6DC185;
}
.bg4 {
    background: #FE9633;
}
.bg5 {
    background: #00DFF2;
}
.bg6 {
    background: #2E727F;
}
.bg6 img {
    margin: 10px auto;
}


    /* Slider for video lessons */
.video-slider{overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch;outline:none}
.video-slider::-webkit-scrollbar{display:none}
.video-track{display:flex;gap:14px;}
.video-slide{flex:0 0 calc((100% - 56px) / 5);scroll-snap-align:start;min-width:0}
.video-card{width:100%;height:263px;min-height:263px;box-sizing:border-box;display:flex;flex-direction:column}
.video-card>a{margin-top:auto;align-self:flex-start}
.tile-icon{width:100%;aspect-ratio:16/9;height:auto;flex:0 0 auto;border-radius:8px;overflow:hidden}
.tile-icon iframe{display:block;width:100%;height:100%;border:0;border-radius:8px}
.carousel-arrows{display:flex;gap:6px;padding:0 0 8px 12px; justify-content: end;}
.slider-button{width:30px;height:30px;padding:0;border:1px solid #e0e3e8;border-radius:50%;background:#fff;color:#454b55;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background .2s,color .2s,border-color .2s}
.slider-button:hover{background:var(--blue);border-color:blue;}
.slider-button:focus-visible{outline:3px solid #9c95ff;outline-offset:2px}




@media(max-width:575.98px){.carousel-arrows{display:flex;}
    .video-slide{flex-basis:100%}
    .video-card{height:auto;min-height:0}
    .tile-icon{flex:0 0 auto}
    .direction_card {
        width: 100% !important;
    }
    h1 {
        font-size: 36px !important;
    }
    .location-box {
        padding: 150px 0 20px;
    }
}
@media(min-width:576px) and (max-width:991.98px){.video-slide{flex-basis:calc((100% - 28px) / 3)}}
/* Удаляем старый дублирующийся блок с top: -80px !important */

@media screen and (max-width: 1270px) {
    /* Родительская шапка — единственная точка отсчёта */
    #menu,
    #menu.default,
    #menu.fixed {
        position: fixed !important; /* Либо relative для default, если шапка не всегда липкая */
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        z-index: 1000 !important;
    }

    /* Если шапка в default не должна быть fixed, раскомментируйте строку ниже: */
    /* #menu.default { position: relative !important; } */

    /* Сбрасываем позиционирование у промежуточной обёртки */
    .rs-nav-bg {
        position: static !important;
    }

    /* Фиксируем бургер строго по пикселям от верхнего правого угла #menu */
    #menu-icon {
        display: block !important;
        position: absolute !important;
        top: 20px !important;    /* Подберите точное число в px (например, 15px или 22px) */
        right: 20px !important;  /* Отступ от правого края экрана */
        transform: none !important;
        margin: 0 !important;
        z-index: 1005 !important;
    }
}

