/* Brain Ecology — главная, макет на Bootstrap 5.3
   Палитра: синий / белый / серый */
:root {
    --be-blue-900: #0A1F44;
    --be-blue-800: #0E2D63;
    --be-blue-700: #133E8A;
    --be-blue-600: #1D56C4;
    --be-blue-500: #2F6BEA;
    --be-blue-400: #5B8CF2;
    --be-blue-100: #E6EEFD;
    --be-blue-50:  #F3F7FE;
    --be-gray-900: #111827;
    --be-gray-700: #374151;
    --be-gray-500: #6B7280;
    --be-gray-300: #D1D5DB;
    --be-gray-200: #E5E7EB;
    --be-gray-100: #F3F4F6;
    --be-white: #FFFFFF;

    --bs-primary: var(--be-blue-600);
    --bs-primary-rgb: 29, 86, 196;
    --bs-body-font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --bs-body-color: var(--be-gray-900);
    --bs-body-bg: var(--be-white);
    --bs-border-radius: .75rem;
    --bs-border-radius-lg: 1.25rem;
    --bs-link-color-rgb: 29, 86, 196;

    --be-shadow-sm: 0 2px 8px rgba(10, 31, 68, .06);
    --be-shadow: 0 12px 32px rgba(10, 31, 68, .10);
    --be-shadow-lg: 0 24px 60px rgba(10, 31, 68, .18);
    --be-ease: cubic-bezier(.22, .8, .24, 1);
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip; }
html { overflow-x: clip; }
h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4, .h5, .display-4 { font-weight: 800; letter-spacing: -.02em; }

/* ---------- Кнопки ---------- */
.btn { --bs-btn-font-weight: 700; --bs-btn-padding-x: 1.4rem; --bs-btn-padding-y: .75rem; border-radius: 999px; transition: transform .25s var(--be-ease), box-shadow .25s var(--be-ease), background-color .2s; }
.btn-primary { --bs-btn-bg: var(--be-blue-600); --bs-btn-border-color: var(--be-blue-600); --bs-btn-hover-bg: var(--be-blue-700); --bs-btn-hover-border-color: var(--be-blue-700); --bs-btn-active-bg: var(--be-blue-800); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(29, 86, 196, .35); }
.btn-outline-primary { --bs-btn-color: var(--be-blue-600); --bs-btn-border-color: var(--be-blue-600); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--be-blue-600); --bs-btn-hover-border-color: var(--be-blue-600); --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--be-blue-700); --bs-btn-active-border-color: var(--be-blue-700); --bs-btn-disabled-color: var(--be-blue-600); --bs-btn-disabled-border-color: var(--be-blue-600); }
.btn-light:hover { transform: translateY(-2px); }
.btn-outline-light { --bs-btn-hover-color: var(--be-blue-800); }
.btn-sm { --bs-btn-padding-x: 1rem; --bs-btn-padding-y: .45rem; }
.btn .bi-arrow-right, .btn .bi-arrow-up-right { transition: transform .25s var(--be-ease); display: inline-block; }
.btn:hover .bi-arrow-right { transform: translateX(4px); }
.btn:hover .bi-arrow-up-right { transform: translate(3px, -3px); }

/* ---------- Навбар ---------- */
.be-nav { transition: background-color .3s, box-shadow .3s, padding .3s; padding-block: 1.1rem; }
.be-nav .navbar-brand { font-weight: 800; color: #fff; display: flex; align-items: center; gap: .55rem; }
.be-nav .nav-link { color: rgba(255, 255, 255, .82); font-weight: 600; position: relative; }
.be-nav .nav-link:hover, .be-nav .nav-link.active { color: #fff; }
.be-nav .nav-link::after { content: ""; position: absolute; left: var(--bs-navbar-nav-link-padding-x); right: var(--bs-navbar-nav-link-padding-x); bottom: .25rem; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--be-ease); }
.be-nav .nav-link:hover::after, .be-nav .nav-link.active::after { transform: scaleX(1); }
.be-nav.is-scrolled { background: rgba(255, 255, 255, .88); backdrop-filter: saturate(180%) blur(14px); box-shadow: var(--be-shadow-sm); padding-block: .6rem; }
.be-nav.is-scrolled .navbar-brand { color: var(--be-blue-800); }
.be-nav.is-scrolled .nav-link { color: var(--be-gray-700); }
.be-nav.is-scrolled .nav-link:hover, .be-nav.is-scrolled .nav-link.active { color: var(--be-blue-600); }
.be-nav.is-scrolled .btn-outline-light { --bs-btn-color: var(--be-blue-600); --bs-btn-border-color: var(--be-gray-300); --bs-btn-hover-bg: var(--be-blue-50); --bs-btn-hover-color: var(--be-blue-700); --bs-btn-hover-border-color: var(--be-blue-400); }
.be-nav.is-scrolled .btn-light { --bs-btn-bg: var(--be-blue-600); --bs-btn-color: #fff; --bs-btn-border-color: var(--be-blue-600); --bs-btn-hover-bg: var(--be-blue-700); --bs-btn-hover-color: #fff; }
.be-nav .navbar-toggler { color: #fff; border: 0; font-size: 1.6rem; }
.be-nav.is-scrolled .navbar-toggler { color: var(--be-blue-800); }

.lang-switch { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .14); }
.lang-switch a { font-size: .75rem; font-weight: 700; padding: .3rem .6rem; border-radius: 999px; color: rgba(255, 255, 255, .8); text-decoration: none; }
.lang-switch a.active { background: #fff; color: var(--be-blue-700); }
.be-nav.is-scrolled .lang-switch { background: var(--be-gray-100); }
.be-nav.is-scrolled .lang-switch a { color: var(--be-gray-500); }
.be-nav.is-scrolled .lang-switch a.active { background: var(--be-blue-600); color: #fff; }

@media (max-width: 1199.98px) {
    .be-nav .navbar-collapse { background: #fff; margin-top: .75rem; padding: 1rem; border-radius: 1rem; box-shadow: var(--be-shadow); }
    .be-nav .navbar-collapse .nav-link { color: var(--be-gray-700); }
    .be-nav .navbar-collapse .btn-outline-light { --bs-btn-color: var(--be-blue-600); --bs-btn-border-color: var(--be-gray-300); }
    .be-nav .navbar-collapse .btn-light { --bs-btn-bg: var(--be-blue-600); --bs-btn-color: #fff; }
    .be-nav .navbar-collapse .lang-switch { background: var(--be-gray-100); }
    .be-nav .navbar-collapse .lang-switch a { color: var(--be-gray-500); }
    .be-nav .navbar-collapse .lang-switch a.active { background: var(--be-blue-600); color: #fff; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative; min-height: 100vh; display: flex; align-items: center; color: #fff; overflow: hidden;
    background:
        radial-gradient(1200px 600px at 85% 10%, rgba(91, 140, 242, .45), transparent 60%),
        radial-gradient(900px 500px at 0% 100%, rgba(47, 107, 234, .35), transparent 60%),
        linear-gradient(160deg, var(--be-blue-900) 0%, var(--be-blue-800) 55%, var(--be-blue-700) 100%);
    padding: 8rem 0 5rem;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .75; }
.hero .container { position: relative; z-index: 2; }
.hero__chip { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem 1rem; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); font-size: .85rem; font-weight: 600; backdrop-filter: blur(6px); }
.hero__chip .dot { width: 8px; height: 8px; border-radius: 50%; background: #7FB0FF; box-shadow: 0 0 0 0 rgba(127, 176, 255, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(127, 176, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(127, 176, 255, 0); } }
.hero__title { font-size: clamp(2.4rem, 5.5vw, 4.4rem); line-height: 1.05; margin: 1.5rem 0; }
.hero__title .grad, .hero__title .grad .word { background: linear-gradient(90deg, #A9C6FF, #fff 80%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__title .word { display: inline-block; opacity: 0; transform: translateY(.6em); animation: wordIn .8s var(--be-ease) forwards; }
@keyframes wordIn { to { opacity: 1; transform: none; } }
.hero__lead { font-size: 1.15rem; color: rgba(255, 255, 255, .78); max-width: 560px; }

.hero__visual { position: relative; height: 460px; }
.glass { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(14px); border-radius: 1.25rem; box-shadow: 0 20px 50px rgba(0, 0, 0, .2); }
.hero__orb { position: absolute; inset: 50% auto auto 50%; width: 300px; height: 300px; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center; }
.hero__orb::before, .hero__orb::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .3); animation: spin 40s linear infinite; }
.hero__orb::after { inset: 40px; border-style: solid; border-color: rgba(255, 255, 255, .15); animation-duration: 25s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__orb-core { width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 30% 30%, #7FB0FF, var(--be-blue-600) 60%, var(--be-blue-800)); box-shadow: 0 0 80px rgba(91, 140, 242, .6), inset 0 0 30px rgba(255, 255, 255, .25); font-size: 4rem; color: #fff; animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.06); box-shadow: 0 0 110px rgba(91, 140, 242, .8), inset 0 0 30px rgba(255, 255, 255, .25); } }
.hero__float { position: absolute; padding: .9rem 1.1rem; display: flex; gap: .75rem; align-items: center; animation: float 6s ease-in-out infinite; }
.hero__float i { width: 40px; height: 40px; border-radius: .75rem; display: grid; place-items: center; background: #fff; color: var(--be-blue-600); font-size: 1.2rem; }
.hero__float b { display: block; font-size: .95rem; }
.hero__float small { color: rgba(255, 255, 255, .7); }
.hero__float--1 { top: 6%; left: 0; }
.hero__float--2 { top: 42%; right: -2%; animation-delay: -2s; }
.hero__float--3 { bottom: 4%; left: 12%; animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-14px); } }

.hero__stats { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(255, 255, 255, .15); }
.hero__stats b { display: block; font-size: 1.75rem; font-weight: 800; line-height: 1; white-space: nowrap; }
.hero__stats b .bi { font-size: .85em; }
@media (min-width: 576px) and (max-width: 767.98px) { .hero__stats b { font-size: 1.25rem; } }
@media (min-width: 992px) and (max-width: 1199.98px) { .hero__stats b { font-size: 1.25rem; } }
@media (min-width: 1200px) and (max-width: 1399.98px) { .hero__stats b { font-size: 1.5rem; } }
.hero__stats > div > span { display: block; margin-top: .4rem; color: rgba(255, 255, 255, .65); font-size: .9rem; }

.scroll-cue { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); z-index: 2; width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, .45); border-radius: 14px; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: #fff; border-radius: 2px; animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Шапка внутренних страниц ---------- */
.page-head {
    position: relative; color: #fff; overflow: hidden; padding: 8.5rem 0 4.5rem;
    background:
        radial-gradient(700px 360px at 90% 0%, rgba(91, 140, 242, .45), transparent 60%),
        radial-gradient(600px 300px at 0% 100%, rgba(47, 107, 234, .3), transparent 60%),
        linear-gradient(160deg, var(--be-blue-900), var(--be-blue-700));
}
.page-head::before {
    content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
    background-image: radial-gradient(rgba(169, 198, 255, .35) 1px, transparent 1px);
    background-size: 28px 28px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
            mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.page-head .container { position: relative; z-index: 1; }
.page-head .breadcrumb { --bs-breadcrumb-divider-color: rgba(255, 255, 255, .45); --bs-breadcrumb-item-active-color: #fff; font-size: .9rem; font-weight: 600; }
.page-head .breadcrumb a { color: rgba(255, 255, 255, .7); text-decoration: none; }
.page-head .breadcrumb a:hover { color: #fff; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.1; margin: .75rem 0 1rem; }
.page-head__lead { color: rgba(255, 255, 255, .78); font-size: 1.1rem; max-width: 560px; }
.page-head__facts { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.page-head__facts span { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .9rem; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); font-size: .88rem; font-weight: 600; }

/* ---------- Секции ---------- */
.section { padding: 6.5rem 0; position: relative; }
.section--gray { background: var(--be-gray-100); }
.section--dark { background: radial-gradient(800px 400px at 100% 0%, rgba(91, 140, 242, .3), transparent 60%), linear-gradient(160deg, var(--be-blue-900), var(--be-blue-800)); color: #fff; }
.section--dark .eyebrow { color: #A9C6FF; }
.section--tint { background: linear-gradient(180deg, var(--be-blue-50), #fff); }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--be-blue-600); margin-bottom: 1rem; }
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; }
.section-title { font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.15; margin-bottom: 1rem; }
.lead-muted { color: var(--be-gray-500); font-size: 1.1rem; }

/* Миссия */
.mission-tile { padding: 1.75rem; border-radius: 1.25rem; background: #fff; border: 1px solid var(--be-gray-200); height: 100%; transition: transform .35s var(--be-ease), box-shadow .35s var(--be-ease), border-color .35s; }
.mission-tile:hover { transform: translateY(-6px); box-shadow: var(--be-shadow); border-color: transparent; }
.icon-badge { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.4rem; background: var(--be-blue-100); color: var(--be-blue-600); margin-bottom: 1.1rem; transition: transform .35s var(--be-ease), background-color .3s, color .3s; }
.mission-tile:hover .icon-badge { background: var(--be-blue-600); color: #fff; transform: rotate(-8deg) scale(1.05); }
.mission-quote { position: relative; padding: 2.5rem; border-radius: 1.5rem; background: var(--be-blue-800); color: #fff; overflow: hidden; }
.mission-quote::after { content: "\201C"; position: absolute; right: 1.5rem; top: -2rem; font-size: 12rem; font-family: Georgia, serif; color: rgba(255, 255, 255, .08); line-height: 1; }

/* Направления — интерактивные вкладки */
.dir-tabs .nav-link { text-align: left; width: 100%; padding: 1.25rem 1.5rem; border-radius: 1rem; color: var(--be-gray-700); background: transparent; border: 1px solid transparent; display: flex; gap: 1rem; align-items: center; font-weight: 700; font-size: 1.1rem; transition: all .3s var(--be-ease); }
.dir-tabs .nav-link .num { font-size: .8rem; color: var(--be-gray-500); font-weight: 700; min-width: 1.6rem; }
.dir-tabs .nav-link i.arr { margin-left: auto; opacity: 0; transform: translateX(-6px); transition: all .3s var(--be-ease); }
.dir-tabs .nav-link:hover { background: #fff; }
.dir-tabs .nav-link.active { background: #fff; color: var(--be-blue-700); border-color: var(--be-gray-200); box-shadow: var(--be-shadow-sm); }
.dir-tabs .nav-link.active .num { color: var(--be-blue-600); }
.dir-tabs .nav-link.active i.arr { opacity: 1; transform: none; }
.dir-panel { position: relative; border-radius: 1.5rem; padding: 2.75rem; min-height: 360px; color: #fff; overflow: hidden; background: linear-gradient(140deg, var(--be-blue-600), var(--be-blue-800)); }
.dir-panel__icon { font-size: 3rem; width: 84px; height: 84px; border-radius: 1.25rem; display: grid; place-items: center; background: rgba(255, 255, 255, .14); margin-bottom: 1.5rem; }
.dir-panel__bg { position: absolute; right: -40px; bottom: -40px; font-size: 16rem; line-height: 1; opacity: .08; }
.dir-panel ul { list-style: none; padding: 0; margin: 1.5rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.dir-panel li { padding: .4rem .9rem; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: .9rem; font-weight: 600; }
.tab-pane.fade { transition: opacity .35s ease, transform .35s var(--be-ease); transform: translateY(10px); }
.tab-pane.fade.show { transform: none; }

/* Курсы */
.course-card { position: relative; border-radius: 1.5rem; background: #fff; border: 1px solid var(--be-gray-200); padding: 2rem; height: 100%; display: flex; flex-direction: column; transition: box-shadow .35s var(--be-ease), transform .35s var(--be-ease); transform-style: preserve-3d; overflow: hidden; }
.course-card:hover { box-shadow: var(--be-shadow-lg); }
.course-card__glow { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), rgba(47, 107, 234, .12), transparent 40%); }
.course-card:hover .course-card__glow { opacity: 1; }
.course-card__cover { height: 170px; border-radius: 1rem; margin-bottom: 1.5rem; position: relative; overflow: hidden; display: grid; place-items: center; font-size: 4rem; color: #fff; background: linear-gradient(135deg, var(--be-blue-500), var(--be-blue-800)); }
.course-card__cover--alt { background: linear-gradient(135deg, #64748B, var(--be-blue-700)); }
.course-card__cover i { transition: transform .5s var(--be-ease); }
.course-card:hover .course-card__cover i { transform: scale(1.15) rotate(-6deg); }
.course-card__cover::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 14px); }
.tag { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .75rem; border-radius: 999px; background: var(--be-gray-100); color: var(--be-gray-700); font-size: .8rem; font-weight: 700; }
.tag--blue { background: var(--be-blue-100); color: var(--be-blue-700); }
.course-card h3 { font-size: 1.4rem; margin: 1rem 0 .5rem; }
.course-card__foot { padding-top: 1.5rem; border-top: 1px dashed var(--be-gray-300); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.course-card__price { font-size: 1.4rem; font-weight: 800; color: var(--be-blue-800); }
.course-card__price small { display: block; font-size: .75rem; font-weight: 600; color: var(--be-gray-500); }
.module-dots { display: flex; gap: 4px; margin: auto 0 1.5rem; padding-top: 1.25rem; }
.module-dots span { flex: 1; height: 6px; border-radius: 3px; background: var(--be-gray-200); transition: background-color .3s; }
.course-card:hover .module-dots span { background: var(--be-blue-400); }
.course-card:hover .module-dots span:nth-child(n) { transition-delay: calc(var(--i) * 30ms); }

/* Методология — таймлайн */
.method { position: relative; }
.method__track { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.method__line { position: absolute; top: 31px; left: 10%; right: 10%; height: 3px; background: var(--be-gray-200); border-radius: 2px; }
.method__line span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--be-blue-400), var(--be-blue-600)); border-radius: 2px; transition: width .6s var(--be-ease); }
.step-btn { position: relative; z-index: 1; background: none; border: 0; padding: 0; text-align: center; color: var(--be-gray-500); cursor: pointer; }
.step-btn__num { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; background: #fff; border: 3px solid var(--be-gray-200); color: var(--be-gray-500); transition: all .4s var(--be-ease); }
.step-btn__title { font-weight: 700; font-size: .95rem; display: block; transition: color .3s; }
.step-btn:hover .step-btn__num { border-color: var(--be-blue-400); color: var(--be-blue-600); }
.step-btn.is-done .step-btn__num { background: var(--be-blue-100); border-color: var(--be-blue-400); color: var(--be-blue-600); }
.step-btn.is-active .step-btn__num { background: var(--be-blue-600); border-color: var(--be-blue-600); color: #fff; transform: scale(1.12); box-shadow: 0 0 0 8px rgba(47, 107, 234, .15); }
.step-btn.is-active .step-btn__title { color: var(--be-gray-900); }
.method__detail { margin-top: 3rem; padding: 2rem 2.5rem; border-radius: 1.5rem; background: #fff; border: 1px solid var(--be-gray-200); box-shadow: var(--be-shadow-sm); display: flex; gap: 2rem; align-items: center; min-height: 140px; }
.method__detail-num { font-size: 4.5rem; font-weight: 800; line-height: 1; color: var(--be-blue-100); -webkit-text-stroke: 2px var(--be-blue-400); }
.method__detail-body { transition: opacity .25s, transform .25s; }
.method__detail-body.is-swapping { opacity: 0; transform: translateX(12px); }
.method__progress { height: 4px; border-radius: 2px; background: var(--be-gray-200); overflow: hidden; margin-top: 1rem; max-width: 240px; }
.method__progress span { display: block; height: 100%; width: 0; background: var(--be-blue-600); }
.method__progress span.run { animation: fill 5s linear forwards; }
@keyframes fill { to { width: 100%; } }
@media (max-width: 767.98px) {
    .method__track { grid-template-columns: 1fr; gap: .75rem; }
    .method__line { display: none; }
    .step-btn { display: flex; align-items: center; gap: 1rem; text-align: left; }
    .step-btn__num { margin: 0; width: 48px; height: 48px; font-size: 1.1rem; flex-shrink: 0; }
    .method__detail { flex-direction: column; align-items: flex-start; gap: .5rem; padding: 1.5rem; }
}

/* Эксперт */
.expert-photo { position: relative; aspect-ratio: 4 / 5; border-radius: 2rem; overflow: hidden; background: linear-gradient(160deg, var(--be-blue-100), var(--be-gray-200)); display: grid; place-items: center; }
.expert-photo > i { font-size: 9rem; color: var(--be-blue-400); opacity: .6; }
.expert-photo__ring { position: absolute; width: 140%; aspect-ratio: 1; border-radius: 50%; border: 1px solid rgba(47, 107, 234, .2); animation: spin 60s linear infinite; }
.expert-photo__ring:nth-child(2) { width: 110%; border-style: dashed; animation-direction: reverse; }
.expert-photo__caption { position: absolute; left: 1.25rem; right: 1.25rem; bottom: 1.25rem; padding: 1rem 1.25rem; border-radius: 1rem; background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); box-shadow: var(--be-shadow); }
.expert-photo__caption small { color: var(--be-gray-500); }
.stat-card { padding: 1.5rem; border-radius: 1.25rem; background: var(--be-gray-100); height: 100%; }
.stat-card b { display: block; font-size: 2.2rem; font-weight: 800; color: var(--be-blue-700); line-height: 1.1; }
.stat-card > span { color: var(--be-gray-500); font-size: .9rem; }

/* Результаты */
.result-card { position: relative; padding: 2rem; border-radius: 1.5rem; background: #fff; border: 1px solid var(--be-gray-200); height: 100%; overflow: hidden; transition: transform .35s var(--be-ease), box-shadow .35s; }
.result-card::before { content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: linear-gradient(90deg, var(--be-blue-400), var(--be-blue-700)); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--be-ease); }
.result-card:hover { transform: translateY(-6px); box-shadow: var(--be-shadow); }
.result-card:hover::before { transform: scaleX(1); }
.result-card__num { font-size: .85rem; font-weight: 800; color: var(--be-blue-600); }
.result-card p { font-size: 1.15rem; font-weight: 700; margin: .75rem 0 0; }
.disclaimer { display: flex; gap: .75rem; align-items: center; padding: 1rem 1.25rem; border-radius: 1rem; background: var(--be-gray-100); color: var(--be-gray-700); font-size: .9rem; }

/* Корпоративный блок */
.corp { position: relative; border-radius: 2rem; padding: clamp(1.5rem, 4vw, 3.5rem); color: #fff; overflow: hidden; background: radial-gradient(800px 400px at 0% 0%, rgba(91, 140, 242, .35), transparent 60%), linear-gradient(150deg, var(--be-blue-800), var(--be-blue-900)); }
.corp__features li { display: flex; gap: .85rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid rgba(255, 255, 255, .12); font-weight: 600; }
.corp__features li i { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, .12); color: #A9C6FF; }
.corp__form { background: #fff; color: var(--be-gray-900); border-radius: 1.5rem; padding: 2rem; box-shadow: var(--be-shadow-lg); }
.corp__form .form-control, .corp__form .form-select { border-radius: .75rem; border-color: var(--be-gray-300); background-color: var(--be-gray-100); }
.corp__form .form-control:focus, .corp__form .form-select:focus { background-color: #fff; border-color: var(--be-blue-400); box-shadow: 0 0 0 .25rem rgba(47, 107, 234, .15); }
.corp__form .form-floating > label { color: var(--be-gray-500); }
.corp__trap { position: absolute; left: -9999px; }

/* Футер */
.footer { background: var(--be-blue-900); color: rgba(255, 255, 255, .7); padding: 4.5rem 0 2rem; }
.footer h6 { color: #fff; font-weight: 800; margin-bottom: 1rem; }
.footer a { color: rgba(255, 255, 255, .7); text-decoration: none; display: block; padding: .25rem 0; transition: color .2s, transform .2s; }
.footer a:hover { color: #fff; transform: translateX(3px); }
.footer__brand { color: #fff !important; font-weight: 800; font-size: 1.35rem; display: inline-flex !important; align-items: center; gap: .5rem; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 3rem; padding-top: 1.5rem; font-size: .85rem; }

/* Кнопка «наверх» и прогресс прокрутки */
.to-top { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1030; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--be-blue-600); color: #fff; box-shadow: var(--be-shadow); opacity: 0; transform: translateY(20px); pointer-events: none; transition: all .3s var(--be-ease); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.scroll-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--be-blue-400), var(--be-blue-600)); z-index: 1040; }

/* ---------- Появление при прокрутке ---------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--be-ease), transform .8s var(--be-ease); transition-delay: var(--d, 0s); }
[data-reveal="left"] { transform: translateX(-36px); }
[data-reveal="right"] { transform: translateX(36px); }
[data-reveal="zoom"] { transform: scale(.94); }
[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    [data-reveal] { opacity: 1; transform: none; }
    .hero__title .word { opacity: 1; transform: none; }
}

/* ---------- Мобильная доводка hero ---------- */
@media (max-width: 575.98px) {
    .hero { padding: 6.5rem 0 4rem; }
    .hero .btn-lg { width: 100%; --bs-btn-font-size: 1rem; }
    .hero__stats { margin-top: 2rem; }
    .hero__stats b { font-size: 1.4rem; }
    .hero__stats > div > span { font-size: .78rem; }
    .section { padding: 4.5rem 0; }
}

/* Карточки курсов: цена и кнопка не переносятся */
.course-card__price, .course-card__foot .btn { white-space: nowrap; }
@media (max-width: 399.98px) {
    .course-card { padding: 1.25rem; }
    .course-card__cover { height: 140px; }
    .course-card__price { font-size: 1.2rem; }
    .course-card__foot .btn { --bs-btn-padding-x: 1rem; }
}

@media (max-width: 575.98px) {
    .page-head { padding: 7rem 0 3rem; }
}

/* ---------- Переключатель состояний макета (только для демонстрации, удалить при переносе) ---------- */
.mock-switch { position: fixed; left: 1rem; bottom: 1rem; z-index: 1035; padding: .5rem .6rem; border-radius: 1rem; background: rgba(17, 24, 39, .88); color: #fff; font-size: .75rem; box-shadow: var(--be-shadow); display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; max-width: calc(100vw - 6rem); }
.mock-switch span { opacity: .65; padding: 0 .25rem; }
.mock-switch button { border: 0; border-radius: 999px; padding: .25rem .6rem; background: rgba(255, 255, 255, .12); color: #fff; font-weight: 700; }
.mock-switch button.active { background: #fff; color: var(--be-gray-900); }
.mock-switch__hub { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .6rem; border-radius: 999px; background: var(--be-blue-600); color: #fff; font-weight: 700; text-decoration: none; margin-right: .2rem; }
.mock-switch__hub:hover { background: var(--be-blue-500); color: #fff; }

/* =====================================================================
   Базовые компоненты (общие для всех страниц, см. ui-kit/index.html)
   ===================================================================== */

/* ---------- Поля ввода ---------- */
.form-control, .form-select { border-radius: .9rem; border-color: var(--be-gray-300); background-color: var(--be-gray-100); font-weight: 500; }
.form-control:focus, .form-select:focus { background-color: #fff; border-color: var(--be-blue-400); box-shadow: 0 0 0 .25rem rgba(47, 107, 234, .15); }
.form-control.is-invalid, .form-select.is-invalid { background-color: #FFF7F7; border-color: #E5484D; }
.form-control.is-valid { border-color: #2E9E62; }
.form-floating > label { color: var(--be-gray-500); }
.form-label { font-weight: 700; font-size: .9rem; color: var(--be-gray-700); }
.form-text { color: var(--be-gray-500); }
.invalid-feedback { font-weight: 600; font-size: .83rem; }
.form-check-input { border-color: var(--be-gray-300); }
.form-check-input:checked { background-color: var(--be-blue-600); border-color: var(--be-blue-600); }
.form-check-input:focus { box-shadow: 0 0 0 .25rem rgba(47, 107, 234, .15); border-color: var(--be-blue-400); }
.form-switch { padding-left: 3.3em; }
.form-switch .form-check-input { width: 2.6em; height: 1.4em; margin-left: -3.3em; margin-top: .05em; cursor: pointer; }
.form-range::-webkit-slider-thumb { background: var(--be-blue-600); }
.form-range::-moz-range-thumb { background: var(--be-blue-600); }

/* ---------- Сообщения ---------- */
.be-alert { display: flex; gap: .75rem; align-items: flex-start; padding: .9rem 1rem; border-radius: .9rem; font-weight: 600; font-size: .92rem; }
.be-alert i { font-size: 1.15rem; line-height: 1.3; }
.be-alert--success { background: #E8F7EF; color: #17663F; }
.be-alert--error { background: #FDECEC; color: #B4232A; }
.be-alert--info { background: var(--be-blue-50); color: var(--be-blue-700); }
.be-alert--warning { background: #FFF6E5; color: #8A5A00; }

/* ---------- Значки и счётчики ---------- */
.tag--success { background: #E8F7EF; color: #17663F; }
.tag--warning { background: #FFF6E5; color: #8A5A00; }
.tag--danger { background: #FDECEC; color: #B4232A; }
.tag--dark { background: var(--be-blue-800); color: #fff; }
.count-badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--be-blue-600); color: #fff; font-size: .72rem; font-weight: 800; line-height: 1; }
.count-badge--danger { background: #E5484D; }
.dot-status { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; font-size: .88rem; }
.dot-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--be-gray-300); }
.dot-status--success::before { background: #2E9E62; }
.dot-status--warning::before { background: #F5A524; }
.dot-status--blue::before { background: var(--be-blue-600); }

/* ---------- Прогресс ---------- */
.be-progress { height: 10px; border-radius: 999px; background: var(--be-gray-200); overflow: hidden; }
.be-progress__fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--be-blue-400), var(--be-blue-600)); transition: width 1s var(--be-ease); }
.be-progress--sm { height: 6px; }
.be-progress--lg { height: 14px; }
.ring-progress { --p: 0; --size: 96px; width: var(--size); height: var(--size); border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--be-blue-600) calc(var(--p) * 1%), var(--be-gray-200) 0); position: relative; }
.ring-progress::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: #fff; }
.ring-progress b { position: relative; font-size: calc(var(--size) / 4.2); font-weight: 800; color: var(--be-blue-800); }

/* ---------- Пагинация ---------- */
.be-pagination { display: flex; flex-wrap: wrap; gap: .35rem; list-style: none; padding: 0; margin: 0; justify-content: center; }
.be-pagination a, .be-pagination span { min-width: 42px; height: 42px; padding: 0 .75rem; border-radius: 999px; display: grid; place-items: center; font-weight: 700; text-decoration: none; color: var(--be-gray-700); background: #fff; border: 1px solid var(--be-gray-200); transition: all .2s; }
.be-pagination a:hover { border-color: var(--be-blue-400); color: var(--be-blue-600); }
.be-pagination .is-active span { background: var(--be-blue-600); border-color: var(--be-blue-600); color: #fff; }
.be-pagination .is-disabled span { color: var(--be-gray-300); }
.be-pagination .is-gap span { border: 0; background: none; min-width: 20px; padding: 0; }

/* ---------- Таблица ---------- */
.be-table-wrap { border: 1px solid var(--be-gray-200); border-radius: 1.25rem; overflow-x: auto; background: #fff; }
.be-table { width: 100%; border-collapse: collapse; }
.be-table th { background: var(--be-gray-100); color: var(--be-gray-500); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: .85rem 1.1rem; text-align: left; white-space: nowrap; }
.be-table td { padding: 1rem 1.1rem; border-top: 1px solid var(--be-gray-200); vertical-align: middle; }
.be-table tbody tr { transition: background-color .2s; }
.be-table tbody tr:hover { background: var(--be-blue-50); }
@media (max-width: 767.98px) {
    /* таблица превращается в карточки */
    .be-table--stack thead { display: none; }
    .be-table--stack tr { display: block; padding: .75rem 1rem; border-top: 1px solid var(--be-gray-200); }
    .be-table--stack tr:first-child { border-top: 0; }
    .be-table--stack td { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border: 0; text-align: right; }
    .be-table--stack td::before { content: attr(data-label); color: var(--be-gray-500); font-weight: 700; font-size: .85rem; text-align: left; }
}
@media (max-width: 1199.98px) {
    /* то же для страниц с боковым меню: карточки до 1200px */
    .be-table--stack-xl thead { display: none; }
    .be-table--stack-xl tr { display: block; padding: .75rem 1rem; border-top: 1px solid var(--be-gray-200); }
    .be-table--stack-xl tr:first-child { border-top: 0; }
    .be-table--stack-xl td { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border: 0; text-align: right; }
    .be-table--stack-xl td::before { content: attr(data-label); color: var(--be-gray-500); font-weight: 700; font-size: .85rem; text-align: left; }
}
@media (max-width: 1399.98px) {
    /* то же для страниц с боковым меню: карточки до 1400px (широкие таблицы) */
    .be-table--stack-xxl thead { display: none; }
    .be-table--stack-xxl tr { display: block; padding: .75rem 1rem; border-top: 1px solid var(--be-gray-200); }
    .be-table--stack-xxl tr:first-child { border-top: 0; }
    .be-table--stack-xxl td { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border: 0; text-align: right; }
    .be-table--stack-xxl td::before { content: attr(data-label); color: var(--be-gray-500); font-weight: 700; font-size: .85rem; text-align: left; }
}

/* ---------- Пустое состояние ---------- */
.be-empty { text-align: center; padding: clamp(2rem, 6vw, 3.5rem) 1.5rem; border: 2px dashed var(--be-gray-300); border-radius: 1.5rem; background: #fff; }
.be-empty__icon { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1.25rem; background: var(--be-blue-50); color: var(--be-blue-600); font-size: 2rem; }
.be-empty p { color: var(--be-gray-500); max-width: 420px; margin: 0 auto 1.5rem; }

/* ---------- Аватар ---------- */
.avatar { width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; flex-shrink: 0; background: var(--be-blue-100); color: var(--be-blue-700); font-weight: 800; font-size: .95rem; position: relative; }
.avatar--sm { width: 32px; height: 32px; font-size: .75rem; }
.avatar--lg { width: 72px; height: 72px; font-size: 1.5rem; }
.avatar--dark { background: var(--be-blue-600); color: #fff; }
.avatar--online::after { content: ""; position: absolute; right: 1px; bottom: 1px; width: 11px; height: 11px; border-radius: 50%; background: #2E9E62; box-shadow: 0 0 0 2px #fff; }

/* ---------- Белая карточка-панель ---------- */
.panel { background: #fff; border: 1px solid var(--be-gray-200); border-radius: 1.25rem; padding: 1.5rem; }
.panel--soft { background: var(--be-gray-100); border-color: transparent; }
.panel__title { font-size: 1.1rem; font-weight: 800; margin-bottom: 1rem; }

/* ---------- Модальное окно и уведомление ---------- */
.modal-content { border: 0; border-radius: 1.5rem; box-shadow: var(--be-shadow-lg); }
.modal-header { border-bottom: 0; padding: 1.5rem 1.5rem .5rem; }
.modal-body { padding: .5rem 1.5rem 1rem; }
.modal-footer { border-top: 0; padding: .5rem 1.5rem 1.5rem; }
.modal-backdrop.show { opacity: .4; background: var(--be-blue-900); }
.toast { border: 0; border-radius: 1rem; box-shadow: var(--be-shadow-lg); }

/* ---------- Сегментированные вкладки (pills) ---------- */
.be-pills { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border-radius: 999px; background: var(--be-gray-100); }
.be-pills .nav-link { border-radius: 999px; padding: .5rem 1.1rem; font-weight: 700; color: var(--be-gray-500); }
.be-pills .nav-link:hover { color: var(--be-blue-600); }
.be-pills .nav-link.active { background: #fff; color: var(--be-blue-700); box-shadow: var(--be-shadow-sm); }

/* ---------- Подсказка Bootstrap ---------- */
.tooltip { --bs-tooltip-bg: var(--be-gray-900); --bs-tooltip-border-radius: .6rem; --bs-tooltip-font-size: .8rem; }

/* ---------- Поле пароля с кнопкой «показать» и шкала надёжности ---------- */
.pw-field { position: relative; }
.pw-field .form-control { padding-right: 3.2rem; }
.pw-toggle { position: absolute; right: .6rem; top: 29px; transform: translateY(-50%); z-index: 5; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--be-gray-500); font-size: 1.15rem; }
.pw-toggle:hover { color: var(--be-blue-600); background: var(--be-blue-50); }
.pw-field .form-control.is-invalid { background-image: none; }

.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: .5rem; }
.pw-meter span { height: 4px; border-radius: 2px; background: var(--be-gray-200); transition: background-color .3s; }
.pw-meter[data-level="1"] span:nth-child(-n+1) { background: #E5484D; }
.pw-meter[data-level="2"] span:nth-child(-n+2) { background: #F5A524; }
.pw-meter[data-level="3"] span:nth-child(-n+3) { background: var(--be-blue-400); }
.pw-meter[data-level="4"] span { background: var(--be-blue-600); }
.pw-hint { font-size: .8rem; color: var(--be-gray-500); margin-top: .35rem; font-weight: 600; }


/* ---------- Состояния для переключателя макета ---------- */
[data-view-state]:not(.is-active) { display: none !important; }

/* ---------- Иконка-статус: круг с кольцом, галочка и крестик рисуются линией ---------- */
/* Иконка-статус */
.status-icon { position: relative; width: 104px; height: 104px; margin: 0 auto 1.75rem; border-radius: 50%; display: grid; place-items: center; font-size: 2.6rem; background: var(--be-blue-50); color: var(--be-blue-600); }
.status-icon::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1.5px dashed var(--be-blue-100); animation: spin 30s linear infinite; }
.status-icon::after { content: ""; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 0 rgba(47, 107, 234, .35); animation: ring 2.4s ease-out infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(47, 107, 234, .3); } 100% { box-shadow: 0 0 0 22px rgba(47, 107, 234, 0); } }
.status-icon--success { background: #E8F7EF; color: #17663F; }
.status-icon--success::before { border-color: #BFE8D1; }
.status-icon--success::after { animation-name: ringOk; }
@keyframes ringOk { 0% { box-shadow: 0 0 0 0 rgba(23, 102, 63, .25); } 100% { box-shadow: 0 0 0 22px rgba(23, 102, 63, 0); } }
.status-icon--danger { background: #FDECEC; color: #B4232A; }
.status-icon--danger::before { border-color: #F7C9CB; }
.status-icon--danger::after { animation: none; }

/* Галочка и крестик рисуются линией */
.draw-icon { width: 52px; height: 52px; }
.draw-icon path { fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .7s .3s var(--be-ease) forwards; }
.draw-icon path + path { animation-delay: .55s; }
@keyframes draw { to { stroke-dashoffset: 0; } }


/* ---------- Кнопка-ссылка ---------- */
.link-btn { border: 0; background: none; padding: 0; font-weight: 700; color: var(--be-gray-500); }
.link-btn:hover { color: var(--be-blue-600); }

/* ---------- Утилиты ---------- */
.min-w-0 { min-width: 0; }
.be-table--stack td, .be-table--stack-xl td, .be-table--stack-xxl td { overflow-wrap: break-word; }
.be-table .tag { white-space: nowrap; }
.be-table td::before { flex-shrink: 0; overflow-wrap: normal; }
@media (max-width: 767.98px) { .be-table--stack td { overflow-wrap: anywhere; } }
@media (max-width: 1199.98px) { .be-table--stack-xl td { overflow-wrap: anywhere; } }
@media (max-width: 1399.98px) { .be-table--stack-xxl td { overflow-wrap: anywhere; } }

/* ---------- Сертификат (страница курса, кабинет) ---------- */
.certificate { position: relative; aspect-ratio: 1.414 / 1; border-radius: 1rem; padding: 1.5rem; background: #fff; border: 1px solid var(--be-gray-200); box-shadow: var(--be-shadow); overflow: hidden; transition: transform .4s var(--be-ease); transform-style: preserve-3d; display: flex; flex-direction: column; justify-content: space-between; }
.certificate::before { content: ""; position: absolute; inset: 10px; border: 1.5px solid var(--be-blue-100); border-radius: .6rem; pointer-events: none; }
.certificate__shine { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .7) 45%, transparent 60%); transform: translateX(-100%); }
.certificate:hover .certificate__shine { animation: shine 1.2s var(--be-ease); }
@keyframes shine { to { transform: translateX(100%); } }
.certificate__top { display: flex; justify-content: space-between; align-items: center; font-weight: 800; color: var(--be-blue-800); font-size: .9rem; }
.certificate__title { text-align: center; }
.certificate__title small { display: block; letter-spacing: .2em; text-transform: uppercase; font-size: .62rem; color: var(--be-gray-500); font-weight: 700; }
.certificate__title b { display: block; font-size: clamp(1rem, 2.2vw, 1.35rem); color: var(--be-gray-900); margin: .3rem 0; }
.certificate__title span { font-size: .78rem; color: var(--be-gray-500); }
.certificate__seal { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--be-blue-600); color: #fff; font-size: 1.4rem; box-shadow: 0 0 0 5px var(--be-blue-100); }
.certificate__bottom { display: flex; justify-content: space-between; align-items: flex-end; font-size: .7rem; color: var(--be-gray-500); }
.certificate__line { width: 90px; border-top: 1px solid var(--be-gray-300); padding-top: .25rem; }


/* ---------- Выпадающее меню «Курсы» в шапке ---------- */
.be-nav .dropdown-menu { border: 0; border-radius: 1rem; padding: .5rem; box-shadow: var(--be-shadow-lg); margin-top: .5rem !important; min-width: 260px; }
.be-nav .dropdown-item { border-radius: .7rem; padding: .6rem .8rem; font-weight: 600; display: flex; gap: .7rem; align-items: center; white-space: normal; }
.be-nav .dropdown-item i { color: var(--be-blue-600); font-size: 1.1rem; }
.be-nav .dropdown-item small { display: block; color: var(--be-gray-500); font-weight: 500; }
.be-nav .dropdown-item:hover, .be-nav .dropdown-item.active { background: var(--be-blue-50); color: var(--be-blue-700); }
.be-nav .dropdown-toggle::after { vertical-align: .15em; }


/* ---------- Программа курса: раскрывающийся список модулей (страница курса, куратор, дизайн-система) ---------- */
.program-acc .accordion-item { border: 1px solid var(--be-gray-200); border-radius: 1.1rem !important; overflow: hidden; margin-bottom: .7rem; transition: box-shadow .3s, border-color .3s; }
.program-acc .accordion-item:has(.accordion-button:not(.collapsed)) { border-color: var(--be-blue-400); box-shadow: var(--be-shadow-sm); }
.program-acc .accordion-button { gap: 1rem; padding: 1.1rem 1.25rem; font-weight: 700; font-size: 1.02rem; color: var(--be-gray-900); background: #fff; box-shadow: none; }
.program-acc .accordion-button:not(.collapsed) { color: var(--be-blue-700); background: var(--be-blue-50); }
.program-acc { --bs-accordion-btn-focus-box-shadow: none; --bs-accordion-border-width: 0; }
.program-acc .accordion-button:focus { box-shadow: none; }
.program-acc .accordion-button:focus-visible { box-shadow: inset 0 0 0 2px var(--be-blue-400); }
.mod-num { width: 40px; height: 40px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; font-weight: 800; font-size: .9rem; background: var(--be-gray-100); color: var(--be-gray-500); transition: all .3s var(--be-ease); }
.accordion-button:not(.collapsed) .mod-num { background: var(--be-blue-600); color: #fff; }
.program-acc .accordion-body { background: var(--be-blue-50); padding: 0 1.25rem 1.25rem calc(1.25rem + 40px + 1rem); color: var(--be-gray-700); }

/* ---------- Баннер «Подтвердите почту» над шапкой ---------- */
.be-verify { background: #FFF6E5; color: #8A5A00; font-size: .88rem; font-weight: 600; }
.be-verify .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .5rem 1rem; padding-block: .5rem; }
.be-verify span { display: inline-flex; align-items: center; gap: .4rem; overflow-wrap: anywhere; }
.be-verify form { margin: 0; }

/* ---------- Шапка: пункты меню не переносятся ---------- */
.be-nav .nav-link { white-space: nowrap; }

[data-zoomable] img { max-width: 100%; height: auto; border-radius: .75rem; cursor: zoom-in; }
[data-zoomable] a img { cursor: pointer; }
.image-modal .modal-content { background: transparent; border: 0; box-shadow: none; align-items: center; }
.image-modal .btn-close { align-self: flex-end; margin-bottom: .5rem; }
.image-modal__img { max-width: 100%; max-height: 85vh; width: auto; height: auto; border-radius: .5rem; }
