:root {
    --brand-blue: #2044cc;
    --brand-blue-dark: #1534a8;
    --brand-blue-soft: #edf1ff;
    --brand-pink: #f48498;
    --brand-pink-dark: #d85d78;
    --brand-pink-soft: #fff0f4;
    --brand-sky: #c6ddf0;
    --brand-sky-soft: #eff7fc;
    --brand-white: #ffffff;
    --brand-ink: #15214a;
    --brand-muted: #647092;
    --brand-border: rgba(32, 68, 204, 0.14);
    --brand-shadow: 0 18px 48px rgba(31, 57, 148, 0.1);
    --brand-shadow-small: 0 8px 24px rgba(31, 57, 148, 0.09);
    --brand-radius: 24px;
    --brand-radius-small: 15px;
    --bs-primary: #2044cc;
    --bs-primary-rgb: 32, 68, 204;
    --bs-link-color: #2044cc;
    --bs-link-hover-color: #1534a8;
    --bs-body-font-family: "Chiron GoRound TC", "Trebuchet MS", Arial, sans-serif;
    --bs-body-color: #15214a;
}

html,
body {
    max-width: 100%;
    min-height: 100%;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

body {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
    background:
        radial-gradient(circle at 8% 18%, rgba(198, 221, 240, 0.55), transparent 24rem),
        radial-gradient(circle at 92% 42%, rgba(244, 132, 152, 0.14), transparent 22rem),
        #f8fbff;
    color: var(--brand-ink);
    font-family: var(--bs-body-font-family);
    font-weight: 430;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

body.brand-intro-active {
    overflow: hidden;
}

main,
.row > *,
.card,
.card-body,
.min-width-0 {
    min-width: 0;
    max-width: 100%;
}

a {
    color: var(--brand-blue);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.18em;
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
    color: var(--brand-blue-dark);
}

h1,
h2,
h3,
h4,
h5,
h6,
.navbar-brand,
.btn {
    letter-spacing: -0.018em;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--brand-ink);
    font-weight: 720;
    line-height: 1.2;
}

h2 {
    margin-bottom: 1.4rem;
}

h2::after {
    display: block;
    width: 52px;
    height: 5px;
    margin-top: 0.65rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand-pink), var(--brand-blue));
    content: "";
}

p:last-child {
    margin-bottom: 0;
}

::selection {
    background: var(--brand-pink);
    color: var(--brand-ink);
}

.text-muted {
    color: var(--brand-muted) !important;
}

.long-text,
.long-text * {
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere !important;
    word-break: normal;
}

/* First-session brand intro */
.brand-intro[hidden] {
    display: none !important;
}

.brand-intro {
    position: fixed;
    z-index: 12000;
    inset: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at center, rgba(198, 221, 240, 0.42), transparent 42%),
        var(--brand-white);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.brand-intro::before,
.brand-intro::after {
    position: absolute;
    width: min(34vw, 360px);
    aspect-ratio: 1;
    border-radius: 50%;
    content: "";
    filter: blur(2px);
}

.brand-intro::before {
    top: -14%;
    left: -8%;
    background: rgba(198, 221, 240, 0.48);
}

.brand-intro::after {
    right: -10%;
    bottom: -18%;
    background: rgba(244, 132, 152, 0.24);
}

.brand-intro--visible {
    opacity: 1;
}

.brand-intro--closing {
    opacity: 0;
    pointer-events: none;
}

.brand-intro__logo {
    position: relative;
    z-index: 1;
    width: min(96vw, 1000px);
    height: min(72vh, 520px);
    --intro-half-width: clamp(70px, 16vw, 160px);
    --intro-separation: clamp(110px, 31vw, 280px);
}

.brand-intro__brain-half {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--intro-half-width);
    aspect-ratio: 230.5 / 499;
    overflow: hidden;
    opacity: 1;
    will-change: transform;
}

.brand-intro__brain-half img {
    position: absolute;
    top: 0;
    width: 200%;
    height: 100%;
    object-fit: fill;
}

.brand-intro__brain-half--left {
    transform: translate(-100%, -50%) translateX(15px);
}

.brand-intro__brain-half--left img {
    left: 0;
}

.brand-intro__brain-half--right {
    transform: translate(0, -50%) translateX(-15px);
}

.brand-intro__brain-half--right img {
    right: 0;
}

.brand-intro__title {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(56vw, 520px);
    color: var(--brand-blue);
    font-size: clamp(1.45rem, 4vw, 3.35rem);
    font-weight: 620;
    line-height: 1.08;
    text-align: center;
    opacity: 0;
    transform: translate(-50%, -42%) scale(0.96);
    will-change: transform, opacity;
}

.brand-intro--visible .brand-intro__brain-half--left {
    animation: intro-left 1.05s 0.15s cubic-bezier(0.2, 0.75, 0.2, 1) forwards;
}

.brand-intro--visible .brand-intro__brain-half--right {
    animation: intro-right 1.05s 0.15s cubic-bezier(0.2, 0.75, 0.2, 1) forwards;
}

.brand-intro--visible .brand-intro__title {
    animation: intro-title 0.7s 0.72s ease-out forwards;
}

.brand-intro__skip {
    position: absolute;
    z-index: 2;
    right: 1.5rem;
    bottom: 1.5rem;
    padding: 0.45rem 0.85rem;
    border: 0;
    background: transparent;
    color: var(--brand-muted);
    font: inherit;
    font-size: 0.9rem;
}

.brand-intro__skip:hover,
.brand-intro__skip:focus-visible {
    color: var(--brand-blue);
}

@keyframes intro-left {
    from { transform: translate(-100%, -50%) translateX(15px); }
    to { transform: translate(-100%, -50%) translateX(calc(-1 * var(--intro-separation))); }
}

@keyframes intro-right {
    from { transform: translate(0, -50%) translateX(-15px); }
    to { transform: translate(0, -50%) translateX(var(--intro-separation)); }
}

@keyframes intro-title {
    from { opacity: 0; transform: translate(-50%, -42%) scale(0.96); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

/* Header */
.site-header {
    position: sticky;
    z-index: 1030;
    top: 0;
    min-height: 84px;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(32, 68, 204, 0.09);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 8px 28px rgba(31, 57, 148, 0.06);
    backdrop-filter: blur(16px);
}

.site-header .container {
    max-width: 1440px;
}

.site-brand {
    display: flex;
    width: 142px;
    height: 68px;
    margin-right: 1.35rem;
    padding: 0;
    align-items: center;
}

.site-brand img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.site-nav {
    gap: 0.08rem;
    align-items: center;
}

.site-header .nav-link {
    position: relative;
    padding: 0.55rem 0.62rem !important;
    border-radius: 12px;
    color: var(--brand-ink);
    font-size: 0.94rem;
    font-weight: 590;
    line-height: 1.25;
    text-decoration: none;
    white-space: nowrap;
}

.site-header .nav-link:hover,
.site-header .nav-link:focus-visible,
.site-header .nav-link.active {
    background: var(--brand-blue-soft);
    color: var(--brand-blue);
}

.site-header .nav-link.active::after {
    position: absolute;
    right: 0.65rem;
    bottom: 0.3rem;
    left: 0.65rem;
    height: 2px;
    border-radius: 999px;
    background: var(--brand-pink);
    content: "";
}

.site-header .nav-link--action {
    color: var(--brand-blue);
}

.site-header .nav-link--profile {
    background: var(--brand-pink-soft);
    color: var(--brand-pink-dark);
}

.site-header .nav-link--logout {
    width: auto;
    border: 0;
}

.site-register-btn {
    margin-left: 0.35rem;
    padding: 0.55rem 1rem;
    white-space: nowrap;
}

.navbar-toggler {
    padding: 0.55rem;
    border: 1px solid var(--brand-border);
    border-radius: 13px;
    color: var(--brand-blue);
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.22rem rgba(32, 68, 204, 0.14);
}

/* Main layout */
.site-main {
    flex: 1 0 auto;
    width: 100%;
    padding-top: 2.5rem;
    padding-bottom: 4.5rem;
}

.site-messages {
    position: relative;
    z-index: 2;
    margin-bottom: 1.5rem;
}

/* Home */
.brand-hero {
    position: relative;
    display: grid;
    min-height: 530px;
    margin-bottom: 5rem;
    padding: clamp(2rem, 5vw, 4.5rem);
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 5rem);
    overflow: hidden;
    border: 1px solid rgba(32, 68, 204, 0.08);
    border-radius: 36px;
    background:
        linear-gradient(125deg, rgba(255, 255, 255, 0.98), rgba(239, 247, 252, 0.92)),
        var(--brand-white);
    box-shadow: var(--brand-shadow);
}

.brand-hero::before {
    position: absolute;
    width: 290px;
    height: 290px;
    right: -100px;
    bottom: -130px;
    border-radius: 50%;
    background: var(--brand-pink);
    content: "";
    opacity: 0.3;
}

.brand-hero__copy {
    position: relative;
    z-index: 1;
}

.brand-eyebrow {
    display: inline-flex;
    margin-bottom: 1.15rem;
    padding: 0.48rem 0.9rem;
    align-items: center;
    gap: 0.55rem;
    border: 1px solid rgba(32, 68, 204, 0.11);
    border-radius: 999px;
    background: var(--brand-blue-soft);
    color: var(--brand-blue);
    font-size: 0.84rem;
    font-weight: 720;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.brand-eyebrow::before {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--brand-pink);
    content: "";
}

.brand-hero h1 {
    max-width: 760px;
    margin-bottom: 1.35rem;
    color: var(--brand-blue);
    font-size: clamp(2.6rem, 5.4vw, 5.2rem);
    font-weight: 790;
    line-height: 0.98;
}

.brand-hero h1 span {
    color: var(--brand-pink-dark);
}

.brand-hero__lead {
    max-width: 650px;
    color: var(--brand-muted);
    font-size: clamp(1.05rem, 1.6vw, 1.3rem);
}

.brand-hero__actions {
    display: flex;
    margin-top: 2rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.brand-hero__visual {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: 350px;
    place-items: center;
}

.brand-hero__visual::before {
    position: absolute;
    width: min(100%, 400px);
    aspect-ratio: 1;
    border-radius: 38% 62% 61% 39% / 48% 39% 61% 52%;
    background: var(--brand-blue);
    box-shadow: 26px 28px 0 rgba(244, 132, 152, 0.58);
    content: "";
    transform: rotate(-5deg);
}

.brand-hero__brain {
    position: relative;
    z-index: 1;
    width: min(76%, 300px);
    height: auto;
    filter: brightness(0) invert(1);
}

.brand-hero__tag {
    position: absolute;
    z-index: 2;
    padding: 0.52rem 0.8rem;
    border: 1px solid rgba(32, 68, 204, 0.08);
    border-radius: 999px;
    background: var(--brand-white);
    box-shadow: var(--brand-shadow-small);
    color: var(--brand-blue);
    font-size: 0.86rem;
    font-weight: 680;
}

.brand-hero__tag--one { top: 9%; left: -2%; }
.brand-hero__tag--two { right: -3%; bottom: 21%; }
.brand-hero__tag--three { bottom: 2%; left: 9%; }

.content-section {
    margin-bottom: 4.5rem;
}

.section-heading {
    display: flex;
    margin-bottom: 1.4rem;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
}

.section-heading h2,
.section-heading h3 {
    margin: 0;
}

.section-heading h2::after,
.section-heading h3::after {
    display: none;
}

.section-kicker {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--brand-pink-dark);
    font-size: 0.8rem;
    font-weight: 720;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.content-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.content-card:hover {
    box-shadow: 0 22px 52px rgba(31, 57, 148, 0.16);
    transform: translateY(-5px);
}

.content-card__image {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.content-card .card-title a {
    color: var(--brand-ink);
    text-decoration: none;
}

.content-card .card-title a:hover {
    color: var(--brand-blue);
}

.news-list-image {
    width: 100%;
    min-height: 220px;
    object-fit: cover;
}

.detail-panel {
    padding: clamp(1.35rem, 3vw, 2.25rem);
    border: 1px solid var(--brand-border);
    border-radius: var(--brand-radius);
    background: var(--brand-white);
    box-shadow: var(--brand-shadow-small);
}

.detail-panel > :last-child {
    margin-bottom: 0;
}

.course-progress-column .card {
    position: sticky;
    top: 104px;
}

/* Bootstrap component theme */
.btn {
    padding: 0.68rem 1.08rem;
    border-radius: 14px;
    font-weight: 680;
    line-height: 1.25;
    transition: transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-sm {
    padding: 0.46rem 0.78rem;
    border-radius: 11px;
}

.btn-lg {
    padding: 0.82rem 1.35rem;
    border-radius: 16px;
}

.btn-primary {
    --bs-btn-bg: var(--brand-blue);
    --bs-btn-border-color: var(--brand-blue);
    --bs-btn-hover-bg: var(--brand-blue-dark);
    --bs-btn-hover-border-color: var(--brand-blue-dark);
    --bs-btn-active-bg: var(--brand-blue-dark);
    --bs-btn-active-border-color: var(--brand-blue-dark);
    box-shadow: 0 8px 20px rgba(32, 68, 204, 0.2);
}

.btn-outline-primary {
    --bs-btn-color: var(--brand-blue);
    --bs-btn-border-color: rgba(32, 68, 204, 0.42);
    --bs-btn-hover-bg: var(--brand-blue);
    --bs-btn-hover-border-color: var(--brand-blue);
}

.btn-outline-secondary {
    --bs-btn-color: var(--brand-ink);
    --bs-btn-border-color: rgba(21, 33, 74, 0.22);
    --bs-btn-hover-bg: var(--brand-sky);
    --bs-btn-hover-border-color: var(--brand-sky);
    --bs-btn-hover-color: var(--brand-ink);
}

.btn-outline-info {
    --bs-btn-color: var(--brand-blue);
    --bs-btn-border-color: var(--brand-sky);
    --bs-btn-hover-bg: var(--brand-sky);
    --bs-btn-hover-border-color: var(--brand-sky);
    --bs-btn-hover-color: var(--brand-ink);
}

.btn-outline-warning {
    --bs-btn-color: #956013;
    --bs-btn-border-color: #e7c272;
    --bs-btn-hover-bg: #fff1bf;
    --bs-btn-hover-border-color: #e7c272;
    --bs-btn-hover-color: #6b4206;
}

.btn-outline-danger {
    --bs-btn-color: #c23f61;
    --bs-btn-border-color: rgba(216, 93, 120, 0.55);
    --bs-btn-hover-bg: #c23f61;
    --bs-btn-hover-border-color: #c23f61;
}

.card {
    overflow: hidden;
    border: 1px solid var(--brand-border);
    border-radius: var(--brand-radius);
    background: var(--brand-white);
    box-shadow: var(--brand-shadow-small);
}

.card-header {
    padding: 1.05rem 1.3rem;
    border-bottom: 1px solid var(--brand-border);
    background: linear-gradient(90deg, var(--brand-sky-soft), var(--brand-white));
}

.card-body {
    padding: 1.3rem;
}

.card-footer {
    padding: 1rem 1.3rem 1.25rem;
    border-top: 0;
    background: var(--brand-white);
}

.card-img-top,
.rounded-start {
    border-radius: 0;
}

.form-label,
.col-form-label {
    color: var(--brand-ink);
    font-weight: 660;
}

.form-control,
.form-select {
    min-height: 48px;
    border: 1px solid rgba(32, 68, 204, 0.19);
    border-radius: 14px;
    background-color: var(--brand-white);
    color: var(--brand-ink);
    font: inherit;
}

textarea.form-control {
    min-height: 112px;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 0.24rem rgba(32, 68, 204, 0.12);
}

.form-check-input {
    border-color: rgba(32, 68, 204, 0.36);
}

.form-check-input:checked {
    border-color: var(--brand-blue);
    background-color: var(--brand-blue);
}

.form-check-input:focus {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 0.24rem rgba(32, 68, 204, 0.12);
}

.form-text {
    color: var(--brand-muted);
}

.auth-shell {
    position: relative;
    padding: 1rem 0 3rem;
}

.auth-shell::before {
    position: absolute;
    z-index: -1;
    width: 260px;
    height: 260px;
    top: 6%;
    left: 50%;
    border-radius: 50%;
    background: rgba(198, 221, 240, 0.45);
    content: "";
    transform: translateX(-150%);
    filter: blur(2px);
}

.auth-card {
    padding: clamp(1.4rem, 4vw, 2.4rem);
    border: 1px solid var(--brand-border);
    border-radius: var(--brand-radius);
    background: var(--brand-white);
    box-shadow: var(--brand-shadow);
}

.auth-card input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="reset"]),
.auth-card select,
.auth-card textarea {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 48px;
    box-sizing: border-box;
    padding: 0.62rem 0.82rem;
    border: 1px solid rgba(32, 68, 204, 0.19);
    border-radius: 14px;
    background-color: var(--brand-white);
    color: var(--brand-ink);
    font: inherit;
}

.auth-card textarea {
    min-height: 112px;
    resize: vertical;
}

.auth-card input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus,
.auth-card select:focus,
.auth-card textarea:focus {
    border-color: var(--brand-blue);
    outline: 0;
    box-shadow: 0 0 0 0.24rem rgba(32, 68, 204, 0.12);
}

.password-field {
    position: relative;
    width: 100%;
    min-width: 0;
}

.password-field > input {
    padding-right: 3.35rem !important;
}

/* У поля с ошибкой справа одновременно находятся системный индикатор
   Bootstrap и кнопка показа пароля — разводим их по разным позициям. */
.password-field > input.is-invalid {
    padding-right: 5.85rem !important;
    background-position: right 3.45rem center;
}

/* После добавления JS-обёртки feedback становится соседом обёртки,
   а не самого input, поэтому стандартный селектор Bootstrap его не показывает. */
.password-field + .invalid-feedback {
    display: block;
}

.password-toggle {
    position: absolute;
    z-index: 3;
    top: 50%;
    right: 0.42rem;
    display: grid;
    width: 40px;
    height: 40px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: var(--brand-muted);
    transform: translateY(-50%);
    transition: color 0.18s ease, background-color 0.18s ease;
}

.password-toggle:hover,
.password-toggle:focus-visible,
.password-toggle.is-visible {
    background: var(--brand-blue-soft);
    color: var(--brand-blue);
}

.password-toggle:focus-visible {
    outline: 2px solid var(--brand-blue);
    outline-offset: 1px;
}

.password-toggle svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.password-toggle__slash {
    opacity: 0;
    transition: opacity 0.18s ease;
}

.password-toggle.is-visible .password-toggle__slash {
    opacity: 1;
}

.auth-logo {
    display: block;
    width: 94px;
    height: 94px;
    margin: 0 auto 1rem;
    border-radius: 24px;
}

.alert {
    padding: 1rem 1.15rem;
    border-width: 1px;
    border-radius: 16px;
    box-shadow: 0 6px 18px rgba(31, 57, 148, 0.06);
}

.alert-success {
    border-color: rgba(38, 149, 98, 0.25);
    background: #eaf8f1;
    color: #145d3d;
}

.alert-info {
    border-color: rgba(32, 68, 204, 0.18);
    background: var(--brand-sky-soft);
    color: var(--brand-blue-dark);
}

.alert-warning {
    border-color: rgba(244, 132, 152, 0.38);
    background: var(--brand-pink-soft);
    color: #88364c;
}

.alert-secondary {
    border-color: var(--brand-border);
    background: #f2f5fb;
    color: var(--brand-muted);
}

.badge {
    padding: 0.42em 0.68em;
    border-radius: 999px;
    font-weight: 620;
    letter-spacing: 0;
}

.bg-primary {
    background-color: var(--brand-blue) !important;
}

.bg-info {
    background-color: var(--brand-sky) !important;
    color: var(--brand-ink) !important;
}

.bg-secondary {
    background-color: #69769d !important;
}

.border-primary {
    border-color: rgba(32, 68, 204, 0.35) !important;
}

.list-group {
    overflow: hidden;
    border: 1px solid var(--brand-border);
    border-radius: 18px;
}

.list-group-flush {
    border: 0;
    border-radius: 0;
}

.list-group-item {
    padding: 0.9rem 1.05rem;
    border-color: var(--brand-border);
    color: var(--brand-ink);
}

.list-group-item-action:hover,
.list-group-item-action:focus,
.list-group-item.active {
    border-color: var(--brand-blue);
    background: var(--brand-blue-soft);
    color: var(--brand-blue);
}

.table {
    --bs-table-bg: transparent;
    --bs-table-border-color: var(--brand-border);
    overflow: hidden;
    border: 1px solid var(--brand-border);
    border-radius: 16px;
    background: var(--brand-white);
    box-shadow: var(--brand-shadow-small);
}

.table > :not(caption) > * > * {
    padding: 0.85rem;
}

.table thead th {
    border-bottom-color: rgba(32, 68, 204, 0.18);
    background: var(--brand-sky-soft);
    color: var(--brand-ink);
    font-weight: 700;
}

.table-hover > tbody > tr:hover > * {
    --bs-table-bg-state: var(--brand-blue-soft);
}

.pagination {
    gap: 0.35rem;
}

.page-link {
    min-width: 42px;
    border: 1px solid var(--brand-border);
    border-radius: 12px !important;
    color: var(--brand-blue);
    text-align: center;
}

.active > .page-link,
.page-link.active {
    border-color: var(--brand-blue);
    background: var(--brand-blue);
}

.progress {
    overflow: hidden;
    border-radius: 999px;
    background: var(--brand-sky-soft);
}

.progress-bar {
    border-radius: 999px;
    background: linear-gradient(90deg, var(--brand-blue), #5272e8);
}

hr {
    border-color: rgba(32, 68, 204, 0.15);
    opacity: 1;
}

iframe {
    max-width: 100%;
    border: 0;
    border-radius: 18px;
}

/* Footer */
.site-footer {
    position: relative;
    overflow: hidden;
    padding: 3.5rem 0 1.4rem;
    background: var(--brand-blue);
    color: var(--brand-white);
}

.site-footer::after {
    position: absolute;
    width: 330px;
    height: 330px;
    right: -120px;
    bottom: -190px;
    border: 58px solid rgba(244, 132, 152, 0.28);
    border-radius: 50%;
    content: "";
}

.site-footer .container {
    position: relative;
    z-index: 1;
}

.site-footer h6 {
    color: var(--brand-white);
    font-size: 1rem;
}

.site-footer__brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    color: var(--brand-white);
    text-decoration: none;
}

.site-footer__brand:hover {
    color: var(--brand-white);
    opacity: 0.9;
}

.site-footer__brand img {
    flex: 0 0 auto;
    border-radius: 18px;
}

.site-footer__brand strong,
.site-footer__brand small {
    display: block;
}

.site-footer__brand strong {
    font-size: 1.28rem;
}

.site-footer__brand small,
.site-footer__about {
    color: rgba(255, 255, 255, 0.72);
}

.site-footer__about {
    max-width: 460px;
    margin-top: 1rem;
    font-size: 0.93rem;
}

.site-footer__links li + li {
    margin-top: 0.42rem;
}

.site-footer__links a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
}

.site-footer__links a:hover {
    color: var(--brand-white);
}

.site-footer__bottom {
    display: flex;
    margin-top: 2.6rem;
    padding-top: 1.15rem;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    justify-content: space-between;
    gap: 1rem;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 1399.98px) {
    .site-header {
        min-height: 76px;
    }

    .site-brand {
        width: 126px;
        height: 62px;
    }

    .site-header .navbar-collapse {
        max-height: calc(100vh - 90px);
        margin: 0.55rem -0.3rem 0;
        padding: 0.8rem;
        overflow-y: auto;
        border: 1px solid var(--brand-border);
        border-radius: 18px;
        background: var(--brand-white);
        box-shadow: var(--brand-shadow);
    }

    .site-nav {
        align-items: stretch;
    }

    .site-header .nav-link,
    .site-header .nav-link--logout {
        width: 100%;
        padding: 0.72rem 0.85rem !important;
        text-align: left;
    }

    .site-nav--account {
        margin-top: 0.6rem;
        padding-top: 0.6rem;
        border-top: 1px solid var(--brand-border);
    }

    .site-register-btn {
        display: block;
        width: 100%;
        margin: 0.35rem 0 0;
    }
}

@media (max-width: 991.98px) {
    .brand-hero {
        min-height: auto;
        grid-template-columns: 1fr;
    }

    .brand-hero__visual {
        min-height: 320px;
        order: -1;
    }

    .brand-hero__visual::before {
        width: 310px;
    }

    .brand-hero__brain {
        width: 225px;
    }

    .brand-hero h1 {
        max-width: 700px;
    }
}

@media (max-width: 767.98px) {
    body {
        font-size: 0.96rem;
    }

    .site-main {
        padding-top: 1.5rem;
        padding-bottom: 3rem;
    }

    .brand-hero {
        margin-bottom: 3.4rem;
        padding: 1.35rem;
        border-radius: 25px;
    }

    .brand-hero__visual {
        min-height: 265px;
    }

    .brand-hero__visual::before {
        width: 235px;
        box-shadow: 16px 17px 0 rgba(244, 132, 152, 0.58);
    }

    .brand-hero__brain {
        width: 170px;
    }

    .brand-hero__tag {
        font-size: 0.75rem;
    }

    .brand-hero__tag--one { left: 0; }
    .brand-hero__tag--two { right: 0; }

    .brand-hero h1 {
        font-size: clamp(2.35rem, 12vw, 3.5rem);
    }

    .brand-hero__actions,
    .brand-hero__actions .btn {
        width: 100%;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .content-section {
        margin-bottom: 3.3rem;
    }

    .card {
        border-radius: 19px;
    }

    .card-header,
    .card-body,
    .card-footer {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .detail-panel {
        margin-right: calc(var(--bs-gutter-x) * 0.5);
        margin-left: calc(var(--bs-gutter-x) * 0.5);
    }

    .course-progress-column {
        margin-top: 1rem;
    }

    .course-progress-column .card {
        position: static;
    }

    .news-list-image {
        max-height: 260px;
    }

    .d-flex.justify-content-between.align-items-center.mb-4,
    .d-flex.justify-content-between.align-items-center.gap-2.mb-4 {
        align-items: flex-start !important;
        flex-direction: column;
    }

    .table {
        display: block;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .site-footer {
        padding-top: 2.7rem;
    }

    .site-footer__bottom {
        flex-direction: column;
    }
}

@media (max-width: 479.98px) {
    .site-brand {
        width: 106px;
        height: 56px;
    }

    .brand-intro__logo {
        width: 96vw;
        height: 62vh;
        --intro-half-width: 70px;
        --intro-separation: 110px;
    }

    .brand-intro__title {
        width: 190px;
        font-size: 1.55rem;
    }

    .brand-intro__skip {
        right: 0.8rem;
        bottom: 0.8rem;
    }

    .btn + .btn,
    .btn + form.d-inline,
    form.d-inline + .btn {
        margin-top: 0.35rem;
    }

    .ms-2 {
        margin-left: 0.25rem !important;
    }

    .auth-card {
        padding: 1.25rem;
    }

    .auth-card input,
    .auth-card select,
    .auth-card textarea {
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .content-card:hover,
    .btn:hover {
        transform: none;
    }
}
