

/* ============================================================
   НАПРАВЛЕНИЯ
   ============================================================ */
.directions { position: relative; }

.dir-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.dir-card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 0 26px 24px;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    color: inherit;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.dir-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--gradient-red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s ease;
}
.dir-card:hover::before { transform: scaleX(1); }
.dir-card:hover {
    transform: translateY(-6px);
    border-color: rgba(220, 20, 60, 0.4);
    box-shadow: 0 34px 60px -34px rgba(139, 0, 0, 0.65);
}

/* Место под фотографию направления */
.dir-card__media {
    position: relative;
    display: block;
    margin: 0 -26px 0;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: linear-gradient(150deg, #FBE9E9 0%, #F3D3D3 100%);
}
.dir-card__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}
.dir-card:hover .dir-card__media img { transform: scale(1.06); }
.dir-card__media-ph {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: rgba(139, 0, 0, 0.24);
}

/* Иконка направления заходит на фото */
.dir-card__ico {
    position: relative;
    z-index: 2;
    width: 52px; height: 52px;
    border-radius: 16px;
    background: var(--gradient-red-soft);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    margin: -26px 0 16px;
    border: 3px solid var(--white);
    box-shadow: 0 12px 26px -12px rgba(220, 20, 60, 0.85);
}
.dir-card h3 { font-size: 19px; font-weight: 700; line-height: 1.3; margin-bottom: 6px; }
.dir-card__full { font-size: 14px; color: var(--text-muted); line-height: 1.5; }

.dir-card__curator {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px dashed var(--card-border);
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 13.5px;
    color: var(--text-light);
    text-align: left;
}
/* Двое кураторов — портреты внахлёст, как в мессенджерах */
.dir-card__curator-avas { display: inline-flex; flex-shrink: 0; }
.dir-card__curator-avas .dir-card__curator-ava + .dir-card__curator-ava { margin-left: -14px; }

.dir-card__curator-ava {
    position: relative;
    width: 38px; height: 38px;
    flex-shrink: 0;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid var(--white);
    box-shadow: 0 0 0 1px var(--card-border);
    background: linear-gradient(150deg, #FBE9E9 0%, #F0CFCF 100%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(139, 0, 0, 0.35);
    font-size: 15px;
}
/* кадрируем по верхней трети — там лицо */
/* Портрет поверх значка: не открылся — останется значок */
.dir-card__curator-ava img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 18%;
    display: block;
}

.dir-card__curator-name { min-width: 0; display: flex; flex-direction: column; font-weight: 700; color: var(--text-dark); }
.dir-card__curator-name small {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--accent-red);
    margin-bottom: 2px;
}
.dir-card__more {
    margin-top: 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--accent-red);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap 0.25s ease;
}
.dir-card:hover .dir-card__more { gap: 13px; }
.dir-card__details { display: none; }

@media (max-width: 1200px) { .dir-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 900px) { .dir-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .dir-grid { grid-template-columns: 1fr; } }

/* --- Модалка направления --- */
.dirmodal__head { display: flex; align-items: flex-start; gap: 16px; }
.dirmodal__ico {
    width: 54px; height: 54px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    flex-shrink: 0;
}
.dirmodal__eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.78);
}
.dirmodal__title { font-size: 26px; font-weight: 700; line-height: 1.15; }
.dirmodal__full { font-size: 14px; color: rgba(255, 255, 255, 0.82); }


/* Файл на вкладке: регламент отбора и подобное */
.file-link {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 16px;
    padding: 13px 16px;
    border: 1px solid var(--line, rgba(0, 0, 0, .1));
    border-radius: 14px;
    background: var(--white);
    text-decoration: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.file-link:hover {
    border-color: var(--accent-red);
    box-shadow: 0 12px 26px -18px rgba(58, 5, 9, .7);
}
.file-link__ico {
    flex-shrink: 0;
    width: 40px; height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--red-soft);
    color: var(--accent-red);
    font-size: 17px;
}
.file-link__body { flex: 1; min-width: 0; }
.file-link__body b {
    display: block;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--text-dark);
}
.file-link__body span { font-size: 12.5px; color: var(--text-muted); }
.file-link__go { flex-shrink: 0; color: var(--accent-red); font-size: 14px; }

/* Табы */
.tabs {
    display: flex;
    gap: 24px;
    padding: 0 30px;
    border-bottom: 1px solid var(--border-light);
    overflow-x: auto;
    flex-shrink: 0;
    scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab-btn {
    border: none;
    background: none;
    font-family: inherit;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--text-muted);
    padding: 16px 0;
    cursor: pointer;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: color 0.25s ease, border-color 0.25s ease;
}
.tab-btn:hover { color: var(--accent-red); }
.tab-btn.is-active { color: var(--accent-red); border-bottom-color: var(--accent-red); }

.tab-pane { display: none; }
.tab-pane.is-active { display: block; }

.dirmodal__body {
    padding: 24px 30px 26px;
}
.dirmodal__body p { color: var(--text-light); font-size: 15px; line-height: 1.75; }
.dirmodal__hint { font-size: 14px; color: var(--text-muted); margin-bottom: 16px; }

/* Списки внутри табов */
.num-list, .book-list, .check-list { list-style: none; display: grid; gap: 10px; }
.num-list li, .book-list li, .check-list li {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 16px;
    background: var(--card-soft);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    font-size: 14.5px;
    color: var(--text-dark);
}
.num-list li b {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: var(--gradient-red-soft);
    color: var(--white);
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.book-list li { align-items: flex-start; }
.book-list i { color: var(--accent-red); font-size: 15px; margin-top: 3px; }
.book-list b { display: block; font-size: 14.5px; font-weight: 700; }
.book-list span { font-size: 13px; color: var(--text-muted); }
.check-list i { color: #17A34A; font-size: 15px; }

.note-box {
    margin-top: 18px;
    padding: 16px 20px;
    border-radius: 14px;
    background: #FFF8EC;
    border: 1px solid #F5E2C0;
}
.note-box b { display: flex; align-items: center; gap: 9px; font-size: 14px; margin-bottom: 6px; }
.note-box b i { color: #D89B24; }
.note-box p { font-size: 13.5px; color: var(--text-muted); line-height: 1.65; }

.dirmodal__contacts {
    margin-top: 20px;
    padding: 18px 20px;
    border-radius: 16px;
    background: var(--card-soft);
    border: 1px solid var(--card-border);
}
.dirmodal__contacts b {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.dirmodal__contacts p { font-size: 16px; font-weight: 700; color: var(--text-dark); margin-bottom: 3px; }
.dirmodal__contacts > span { font-size: 13.5px; color: var(--text-muted); }
.dirmodal__contacts-btns { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }

/* Карточка одного куратора внутри блока контактов */
.dirmodal__contact {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid var(--border-light);
}
.dirmodal__contact:first-of-type { border-top: 0; padding-top: 0; }
.dirmodal__contact:last-child { padding-bottom: 0; }
.dirmodal__contact-ava {
    position: relative;
    overflow: hidden;
    width: 46px; height: 46px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--red-soft);
    color: var(--accent-red);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.dirmodal__contact-ava img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center 18%;
}
.dirmodal__contact-body { min-width: 0; }
.dirmodal__contact-body b {
    display: block;
    font-size: 15.5px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text-dark);
    margin-bottom: 2px;
}
.dirmodal__contact-body > span { display: block; font-size: 13px; color: var(--text-muted); }

/* Соцсети куратора — в фирменной палитре, а не в цветах самих сервисов */
.dirmodal__contacts-btns .btn-soc,
.dirmodal__contacts-btns .btn-soc.vk,
.dirmodal__contacts-btns .btn-soc.tg,
.dirmodal__contacts-btns .btn-soc.max {
    background: var(--white);
    border: 1px solid var(--card-border);
    color: var(--accent-red);
}
.dirmodal__contacts-btns .btn-soc img {
    filter: brightness(0) saturate(100%) invert(17%) sepia(88%) saturate(4661%) hue-rotate(340deg) brightness(93%) contrast(96%);
}
.dirmodal__contacts-btns .btn-soc:hover {
    border-color: var(--accent-red);
    background: var(--red-soft);
}
.dirmodal__contacts-btns .btn-soc.is-soon { opacity: 0.55; }

.dirmodal__foot {
    display: flex;
    gap: 12px;
    padding: 20px 30px 24px;
    border-top: 1px solid var(--border-light);
    background: var(--white);
    flex-shrink: 0;
}
.dirmodal__foot { justify-content: flex-end; }
.dirmodal__foot .btn { min-width: 170px; justify-content: center; }

@media (max-width: 560px) {
    .tabs { padding: 0 20px; gap: 16px; }
    .dirmodal__body, .dirmodal__foot { padding-left: 20px; padding-right: 20px; }
    .dirmodal__foot { flex-direction: column; }
}

/* ============================================================
   ИСТОРИЯ
   ============================================================ */
.hist-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.hist-card { position: relative; }
.hist-card {
    background: var(--white);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 26px 28px 28px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.hist-card:hover {
    transform: translateY(-5px);
    border-color: rgba(220, 20, 60, 0.35);
    box-shadow: 0 30px 56px -34px rgba(139, 0, 0, 0.6);
}
/* Год — крупным красным, без плашки */
.hist-card__year {
    display: block;
    font-size: 30px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.5px;
    color: var(--accent-red);
    margin-bottom: 12px;
}
.hist-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 9px; line-height: 1.35; }
.hist-card p { font-size: 14.5px; color: var(--text-muted); line-height: 1.65; }

/* Победы */
.wins-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.win-card {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: var(--white);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 24px 26px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.win-card:hover {
    transform: translateY(-5px);
    border-color: rgba(220, 20, 60, 0.35);
    box-shadow: 0 30px 56px -34px rgba(139, 0, 0, 0.6);
}
.win-card__year {
    flex-shrink: 0;
    width: 60px; height: 44px;
    border-radius: 13px;
    background: var(--gradient-red);
    color: var(--white);
    font-size: 13px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 22px -12px rgba(220, 20, 60, 0.8);
}
.win-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 7px; }
.win-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

@media (max-width: 1000px) { .hist-grid, .wins-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 660px) { .hist-grid, .wins-grid { grid-template-columns: 1fr; } }

/* ============================================================
   КОНТАКТЫ
   ============================================================ */
.contacts-layout {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 28px;
    align-items: stretch;
}
.contacts-main { display: flex; flex-direction: column; gap: 24px; }
.contacts-main .org-card { flex: 1; }

/* Капитан */
.captain-card {
    background: var(--gradient-red-dark);
    color: var(--white);
    border-radius: 22px;
    padding: 30px 32px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 60px -34px rgba(90, 0, 0, 0.8);
}
.captain-card::after {
    content: '';
    position: absolute;
    right: -70px; bottom: -70px;
    width: 240px; height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(220, 20, 60, 0.5), transparent 65%);
    pointer-events: none;
}
.captain-card__top { display: flex; align-items: center; gap: 18px; position: relative; z-index: 1; }

.captain-card__ava {
    width: 76px; height: 76px;
    border-radius: 17px;
    background: var(--white);
    color: var(--accent-red);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    flex-shrink: 0;
    overflow: hidden;
    box-shadow: 0 14px 28px -18px rgba(0, 0, 0, 0.75);
}
.captain-card__ava.has-photo {
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.14), 0 16px 34px -18px rgba(0, 0, 0, 0.8);
    background: none;
}
.captain-card__ava img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* лицо обычно в верхней половине кадра */
    object-position: center 20%;
    display: block;
}
.captain-card__info { display: flex; flex-direction: column; gap: 4px; }
.captain-card__eyebrow {
    display: block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}
.captain-card h3 { font-size: 23px; font-weight: 700; line-height: 1.2; }
.captain-card__course { font-size: 14px; color: rgba(255, 255, 255, 0.78); }
.captain-card__btns { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; position: relative; z-index: 1; }

.captain-card__btns .btn-soc {
    background: var(--white);
    border: 1px solid var(--white);
    color: var(--primary-red);
}
.captain-card__btns .btn-soc img { filter: brightness(0) saturate(100%) invert(9%) sepia(78%) saturate(4000%) hue-rotate(357deg) brightness(93%) contrast(105%); }
.captain-card__btns .btn-soc:hover { background: transparent; color: var(--white); }
.captain-card__btns .btn-soc:hover img { filter: brightness(0) invert(1); }
.captain-card__btns .btn-soc.is-soon {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.4);
    color: rgba(255, 255, 255, 0.75);
    opacity: 1;
}
.captain-card__btns .btn-soc.is-soon img { filter: brightness(0) invert(1); opacity: 0.75; }

/* Преподаватели */
.persons-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}
.person-card {
    background: var(--white);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 24px 22px 26px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.person-card:hover {
    transform: translateY(-5px);
    border-color: rgba(220, 20, 60, 0.35);
    box-shadow: 0 28px 52px -32px rgba(139, 0, 0, 0.55);
}
.person-card__ico {
    width: 44px; height: 44px;
    border-radius: 13px;
    background: var(--gradient-red-soft);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    margin-bottom: 18px;
}
.person-card h4 { font-size: 16px; font-weight: 700; line-height: 1.35; margin-bottom: 7px; }
.person-card .role { font-size: 13px; font-weight: 700; color: var(--accent-red); margin-bottom: 5px; }
.person-card p { font-size: 13px; color: var(--text-muted); }

/* Организация */
.org-card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 30px 30px 28px;
    overflow: hidden;
}
.org-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--gradient-red);
}
.org-card h4 { font-size: 19px; font-weight: 700; margin-bottom: 20px; }
.org-list { display: grid; gap: 6px; }
.org-item { padding: 12px 0; border-bottom: 1px solid var(--border-light); }
.org-item:last-child { border-bottom: none; }
.org-item { display: flex; gap: 16px; align-items: flex-start; }
.org-item > i {
    width: 44px; height: 44px;
    flex-shrink: 0;
    border-radius: 50%;
    background: var(--card-soft);
    border: 1px solid var(--card-border);
    color: var(--accent-red);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.org-item:hover > i { background: var(--gradient-red); color: var(--white); border-color: transparent; }
.org-item b { display: block; font-size: 15.5px; font-weight: 700; }
.org-item span span, .org-item > span > span { font-size: 13.5px; color: var(--text-muted); }

/* Карта */
.contacts__map {
    position: relative;
    height: 100%;
    min-height: 340px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    box-shadow: 0 30px 56px -34px rgba(139, 0, 0, 0.5);
}
.contacts__map iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
    filter: grayscale(0.25) contrast(1.03);
}


/* Соцсети внутри карточки «Организация» */
.org-socials__title {
    display: block;
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid var(--border-light);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-muted);
}
.org-socials {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 22px;
}
.org-soc {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 13px 16px;
    border-radius: 15px;
    background: var(--card-soft);
    border: 1px solid var(--card-border);
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, border-color 0.25s ease;
}
.org-soc:hover { transform: translateX(4px); border-color: rgba(220, 20, 60, 0.4); }
.org-soc.is-soon { opacity: 0.75; }
.org-soc__ico {
    width: 40px; height: 40px;
    border-radius: 12px;
    background: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.org-soc__ico img { width: 20px; height: 20px; filter: brightness(0); opacity: 0.75; }
.org-soc b { display: block; font-size: 15px; font-weight: 700; }
.org-soc > span > span { font-size: 13px; color: var(--text-muted); }
.org-soc > i { margin-left: auto; color: var(--text-muted); font-size: 12px; }

/* Блок «Вступить в СХО» — широкой плашкой под контактами */
.join-box {
    margin-top: 26px;
    background: var(--gradient-red-dark);
    color: var(--white);
    border-radius: 22px;
    padding: 30px 36px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    box-shadow: 0 30px 60px -36px rgba(90, 0, 0, 0.85);
}
.join-box h3 { font-size: 21px; font-weight: 700; margin-bottom: 8px; }
.join-box p { font-size: 15px; color: rgba(255, 255, 255, 0.78); line-height: 1.7; max-width: 620px; }
@media (max-width: 700px) { .join-box { padding: 26px 24px 28px; } .join-box .btn { width: 100%; } }

@media (max-width: 1000px) {
    .contacts-layout { grid-template-columns: 1fr; }
    .contacts__map { min-height: 300px; }
}

/* ============================================================
   ОБУЧЕНИЕ — ВИДЕОУРОКИ (education.html)
   ============================================================ */
/* Секция видеоуроков — тёмная, в стиле блока about__final */
.section.videos {
    background: var(--gradient-red-dark);
    color: var(--white);
}
.section.videos .section-title { color: var(--white); }
.section.videos .section-title span { color: var(--bright-red); }
.section.videos .eyebrow { color: var(--bright-red); }
.section.videos .title-rule { background: var(--bright-red); }
.section.videos .section-desc { color: rgba(255, 255, 255, 0.75); }
.section.videos .deco-dots { background-image: radial-gradient(rgba(255, 255, 255, 0.28) 1.5px, transparent 1.7px); }

/* Первый ролик — крупной карточкой на всю ширину */
.video-featured {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 0;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 22px;
    overflow: hidden;
    margin-bottom: 26px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.video-featured:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.34);
    box-shadow: 0 36px 64px -36px rgba(0, 0, 0, 0.7);
}
.video-featured__body h3 { color: var(--white); }
.video-featured__body p { color: rgba(255, 255, 255, 0.75); }
.video-featured__label { color: var(--bright-red); }
.video-featured__meta span { color: rgba(255, 255, 255, 0.7); }
.video-featured__meta span i { color: var(--bright-red); }
.video-featured .video-card__thumb { aspect-ratio: auto; min-height: 320px; }
.video-featured__body {
    padding: 36px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.video-featured__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-red);
    margin-bottom: 12px;
}
.video-featured__body h3 { font-size: clamp(21px, 2.2vw, 27px); font-weight: 700; line-height: 1.25; margin-bottom: 14px; }
.video-featured__body p { font-size: 15.5px; color: var(--text-muted); line-height: 1.75; margin-bottom: 22px; }
.video-featured__meta { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.video-featured__meta span { font-size: 14px; color: var(--text-muted); display: inline-flex; align-items: center; gap: 8px; }
.video-featured__meta span i { color: var(--accent-red); }

@media (max-width: 900px) {
    .video-featured { grid-template-columns: 1fr; }
    .video-featured .video-card__thumb { min-height: 220px; aspect-ratio: 16/9; }
    .video-featured__body { padding: 26px 24px 28px; }
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}
.video-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 20px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.video-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 255, 255, 0.34);
    box-shadow: 0 34px 60px -34px rgba(0, 0, 0, 0.7);
}

.video-card__thumb {
    position: relative;
    aspect-ratio: 16/9;
    background: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-decoration: none;
}
.video-card__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.5; }
.video-card__play {
    position: relative;
    width: 60px; height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    transition: transform 0.3s ease, background 0.3s ease;
}
.video-card:hover .video-card__play { transform: scale(1.1); background: var(--accent-red); border-color: var(--accent-red); }

.video-card__tag {
    position: absolute;
    top: 14px; left: 14px;
    padding: 6px 14px;
    border-radius: 20px;
    background: var(--gradient-red-soft);
    color: var(--white);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.6px;
    z-index: 1;
}
.video-card__time {
    position: absolute;
    top: 14px; right: 14px;
    padding: 5px 11px;
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.6);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    z-index: 1;
}

.video-card__body { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.video-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 9px; line-height: 1.35; color: var(--white); }
.video-card p { font-size: 14.5px; color: rgba(255, 255, 255, 0.7); line-height: 1.65; flex: 1; }
.video-card__more {
    margin-top: 18px;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--bright-red);
    text-decoration: none;
    transition: gap 0.25s ease, color 0.25s ease;
}
.video-card__more:hover { gap: 14px; color: var(--white); }

@media (max-width: 1000px) { .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .video-grid { grid-template-columns: 1fr; } }

/* ============================================================
   СЕКЦИЯ «ОБУЧЕНИЕ» НА ГЛАВНОЙ — тёмная, как блок about__final
   ============================================================ */
.section.education {
    background: var(--gradient-red-dark);
    color: var(--white);
}
.section.education::after {
    content: '';
    position: absolute;
    right: -120px; top: -140px;
    width: 460px; height: 460px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(220, 20, 60, 0.4), transparent 66%);
    pointer-events: none;
    z-index: 0;
}
.section.education .section-title { color: var(--white); }
.section.education .section-title span { color: var(--bright-red); }
.section.education .eyebrow { color: var(--bright-red); }
.section.education .title-rule { background: var(--bright-red); }
.section.education .section-desc { color: rgba(255, 255, 255, 0.75); }
.section.education .deco-dots { background-image: radial-gradient(rgba(255, 255, 255, 0.26) 1.5px, transparent 1.7px); }
.section.education .deco-ring { border-color: rgba(255, 255, 255, 0.2); }

/* На тёмном фоне этапы идут без карточек — только кружки и подписи */
.section.education .train-step { background: none; border: none; box-shadow: none; }
.section.education .train-step h3 { color: var(--white); }
.section.education .train-step p { color: rgba(255, 255, 255, 0.72); }
.section.education .train-step__num { color: rgba(255, 255, 255, 0.16); }



.train-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}
.train-step {
    position: relative;
    text-align: center;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.3s ease;
}
.train-step:hover { transform: translateY(-6px); box-shadow: none; }


.train-step__dot {
    position: relative;
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.train-step:not(:last-child) .train-step__dot::after {
    content: '';
    position: absolute;
    top: 50%;
    left: calc(50% + 42px);
    right: calc(-50% + 16px);
    height: 2px;
    margin-top: -1px;
    background: var(--card-border);
}

.train-step__ico {
    position: relative;
    z-index: 1;
    width: 68px; height: 68px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--card-border);
    color: var(--accent-red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin: 0;
    box-shadow: none;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.train-step:hover .train-step__ico {
    background: var(--gradient-red);
    border-color: transparent;
    color: var(--white);
}

.train-step__num {
    display: block;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 2px;
    color: var(--accent-red);
    margin-bottom: 14px;
}
.train-step h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; padding: 0 6px; }
.train-step p { font-size: 14px; color: var(--text-muted); line-height: 1.6; padding: 0 6px; }

/* На тёмном фоне */
.section.education .train-step:not(:last-child) .train-step__dot::after {
    background: rgba(255, 255, 255, 0.35);
}
.section.education .train-step__ico {
    background: var(--white);
    border-color: var(--white);
    color: var(--accent-red);
}
/* на ховере кружок краснеет, иконка — белая */
.section.education .train-step:hover .train-step__ico {
    background: var(--accent-red);
    border-color: var(--accent-red);
    color: var(--white);
}
.section.education .train-step__num { color: var(--bright-red); }
.section.education .train-step h3 { color: var(--white); }
.section.education .train-step p { color: rgba(255, 255, 255, 0.72); }

@media (max-width: 1000px) {
    .train-steps { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
    .train-step .train-step__dot::after { display: none; }
}
@media (max-width: 560px) { .train-steps { grid-template-columns: 1fr; } }


.edu-preview {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 24px;
    margin-bottom: 46px;
}

/* Крупное превью — кнопка: открывает проигрыватель в модальном окне */
.edu-player {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border-radius: 20px;
    overflow: hidden;
    min-height: 360px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: none;
    font: inherit;
    text-align: left;
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.edu-player:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.34);
    box-shadow: 0 34px 62px -34px rgba(0, 0, 0, 0.75);
}
.edu-player img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.45;
    transition: transform 0.5s ease, opacity 0.3s ease;
}
.edu-player:hover img { transform: scale(1.05); opacity: 0.55; }
.edu-player::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(24, 3, 6, 0.25) 0%, rgba(24, 3, 6, 0.85) 100%);
}

.edu-player__play {
    position: absolute;
    top: 46%; left: 50%;
    transform: translate(-50%, -50%);
    width: 74px; height: 74px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 23px;
    z-index: 2;
    transition: transform 0.3s ease, background 0.3s ease;
}
.edu-player:hover .edu-player__play { transform: translate(-50%, -50%) scale(1.08); background: var(--accent-red); border-color: var(--accent-red); }

.edu-player__tag {
    position: absolute;
    top: 18px; left: 18px;
    z-index: 2;
    padding: 6px 14px;
    border-radius: 20px;
    background: var(--gradient-red-soft);
    color: var(--white);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.6px;
}
.edu-player__time {
    position: absolute;
    top: 18px; right: 18px;
    z-index: 2;
    padding: 6px 12px;
    border-radius: 9px;
    background: rgba(0, 0, 0, 0.6);
    color: var(--white);
    font-size: 12.5px;
    font-weight: 700;
}
.edu-player__caption {
    position: absolute;
    left: 26px; right: 26px; bottom: 24px;
    z-index: 2;
    color: var(--white);
}
.edu-player__caption b { display: block; font-size: 21px; font-weight: 700; line-height: 1.3; }
.edu-player__caption span { display: block; font-size: 13.5px; color: rgba(255, 255, 255, 0.72); margin-top: 6px; }

/* Плейлист */
.edu-playlist {
    background: var(--white);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 22px 22px 18px;
    display: flex;
    flex-direction: column;
}
.edu-playlist__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 16px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
    font-size: 13.5px;
    color: var(--text-muted);
}
.edu-playlist__head i { color: var(--accent-red); margin-right: 8px; }
.edu-playlist__head b { color: var(--text-dark); font-size: 13px; white-space: nowrap; }

.edu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    width: 100%;
    padding: 13px 14px;
    border: 0;
    border-radius: 14px;
    background: none;
    font: inherit;
    text-align: left;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: background 0.25s ease, transform 0.25s ease;
}
.edu-item:hover { background: var(--card-soft); transform: translateX(3px); }
.edu-item.is-active { background: var(--red-soft); }
.edu-item__num {
    width: 34px; height: 34px;
    flex-shrink: 0;
    border-radius: 11px;
    background: var(--card-soft);
    color: var(--accent-red);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}
.edu-item.is-active .edu-item__num { background: var(--accent-red); color: var(--white); }
.edu-item__body { flex: 1; min-width: 0; }
.edu-item__body b { display: block; font-size: 15px; font-weight: 600; color: var(--text-dark); line-height: 1.35; }
.edu-item__body span { display: block; font-size: 12.5px; color: var(--text-muted); margin-top: 3px; }
.edu-item > i { color: var(--text-muted); font-size: 12px; transition: color 0.25s ease; }
.edu-item:hover > i { color: var(--accent-red); }

.edu-playlist__more {
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    color: var(--accent-red);
    text-decoration: none;
    transition: gap 0.25s ease, color 0.25s ease;
}
.edu-playlist__more:hover { gap: 15px; color: var(--primary-red); }

.edu__steps-title { color: var(--white); }

@media (max-width: 992px) {
    .edu-preview { grid-template-columns: 1fr; }
    .edu-player { min-height: 260px; }
}
