:root {
    --blue-950: #071b46;
    --blue-900: #0a2864;
    --blue-800: #0c3b98;
    --blue-700: #1552d6;
    --blue-600: #2868ed;
    --blue-100: #dce8ff;
    --blue-50: #eff5ff;
    --ink: #102044;
    --muted: #64718c;
    --line: #dfe6f1;
    --surface: #ffffff;
    --background: #f4f7fb;
    --danger: #c93d4e;
    --danger-bg: #fff1f2;
    --success: #19a474;
    --shadow: 0 24px 70px rgba(15, 41, 89, .14);
    --radius-lg: 28px;
    --radius-md: 18px;
    font-family: Inter, Manrope, "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    background: var(--background);
    font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; min-height: 100%; }
body { margin: 0; min-height: 100vh; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
[hidden] { display: none !important; }

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: inherit;
    text-decoration: none;
}

.brand__mark {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    overflow: hidden;
    border-radius: 13px;
    color: #fff;
    background: rgba(255, 255, 255, .15);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
}

.brand__mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__text strong { font-size: 19px; letter-spacing: .08em; }
.brand__text span { margin-top: 5px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .74; }
.brand-cluster { display: flex; align-items: center; gap: 21px; }
.brand-cluster--promo { position: relative; z-index: 2; }
.mintrans-brand { display: flex; align-items: center; padding-left: 21px; border-left: 1px solid currentColor; color: inherit; text-decoration: none; }
.mintrans-brand__surface { display: grid; padding: 5px 7px; place-items: center; border-radius: 8px; background: #fff; }
.mintrans-brand__logo { display: block; width: 158px; height: auto; }
.brand-cluster--header .mintrans-brand { color: #4d5d77; border-left-color: #d9e0ea; }

.auth-body { overflow-x: hidden; background: #fff; }
.auth-shell { display: grid; min-height: 100vh; grid-template-columns: minmax(410px, 44%) 1fr; }

.auth-promo {
    position: relative;
    display: flex;
    overflow: hidden;
    flex-direction: column;
    padding: clamp(32px, 4vw, 64px);
    color: #fff;
    background:
        radial-gradient(circle at 15% 15%, rgba(73, 142, 255, .65), transparent 30%),
        radial-gradient(circle at 90% 75%, rgba(48, 115, 246, .5), transparent 35%),
        linear-gradient(145deg, #0d3ca0 0%, #124fc8 48%, #082866 100%);
}

.auth-promo::before {
    position: absolute;
    width: 540px;
    height: 540px;
    right: -330px;
    top: -100px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    box-shadow: 0 0 0 80px rgba(255, 255, 255, .025), 0 0 0 160px rgba(255, 255, 255, .02);
    content: "";
}

.auth-promo::after {
    position: absolute;
    width: 260px;
    height: 520px;
    right: -120px;
    bottom: -270px;
    border: 38px solid rgba(255, 255, 255, .05);
    border-radius: 50%;
    transform: rotate(-25deg);
    content: "";
}

.auth-promo .brand { position: relative; z-index: 1; }
.auth-promo__content { position: relative; z-index: 1; max-width: 580px; margin: auto 0; padding: 70px 0; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .11em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .74);
}

.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: #6edbbc; box-shadow: 0 0 0 5px rgba(110, 219, 188, .13); }
.auth-promo h1 { max-width: 650px; margin: 24px 0 20px; font-size: clamp(42px, 5.2vw, 74px); line-height: .98; letter-spacing: -.045em; }
.auth-promo h1 span { display: block; color: #8fbdff; }
.auth-promo__content > p { max-width: 540px; margin: 0; color: rgba(255, 255, 255, .72); font-size: 17px; line-height: 1.65; }

.promo-points { display: grid; gap: 18px; margin-top: 44px; }
.promo-point { display: flex; align-items: center; gap: 15px; }
.promo-point__icon { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid rgba(255, 255, 255, .24); border-radius: 14px; color: #a9cbff; font-size: 11px; font-weight: 800; }
.promo-point > span:last-child { display: flex; flex-direction: column; gap: 4px; }
.promo-point strong { font-size: 14px; }
.promo-point small { color: rgba(255, 255, 255, .6); }

.promo-score { display: flex; align-items: center; gap: 20px; margin-top: 42px; }
.promo-score__ring { display: grid; width: 76px; height: 76px; place-content: center; border: 5px solid rgba(255, 255, 255, .14); border-top-color: #75dcbf; border-right-color: #75dcbf; border-radius: 50%; text-align: center; transform: rotate(15deg); }
.promo-score__ring > * { transform: rotate(-15deg); }
.promo-score__ring strong { display: inline; font-size: 25px; line-height: 20px; }
.promo-score__ring small { font-size: 10px; }
.promo-score > div:last-child { display: flex; flex-direction: column; gap: 5px; }
.promo-score > div:last-child strong { font-size: 15px; }
.promo-score > div:last-child span { color: rgba(255, 255, 255, .62); font-size: 13px; }

.speed-line { position: absolute; right: -5%; bottom: 20%; left: 44%; display: flex; flex-direction: column; gap: 8px; transform: rotate(-12deg); opacity: .22; }
.speed-line span { height: 2px; background: linear-gradient(90deg, transparent, white); }
.speed-line span:nth-child(2) { margin-left: 20%; }
.speed-line span:nth-child(3) { margin-left: 38%; }
.auth-promo__footer { position: relative; z-index: 1; margin: 0; color: rgba(255, 255, 255, .48); font-size: 12px; letter-spacing: .04em; }

.auth-panel { display: grid; align-items: center; padding: 48px clamp(32px, 8vw, 130px); background: #fff; }
.auth-panel__inner { width: 100%; max-width: 470px; margin: auto; }
.auth-panel--register .auth-panel__inner { max-width: 560px; }
.auth-mobile-brand { display: none; color: var(--blue-700); }
.auth-mobile-brand .brand__mark { background: var(--blue-700); }
.auth-mobile-brand .mintrans-brand { color: #52617a; border-left-color: #d9e0ea; }

.form-heading__step { color: var(--blue-700); font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.form-heading h2 { margin: 12px 0 9px; font-size: clamp(31px, 3vw, 42px); line-height: 1.1; letter-spacing: -.035em; }
.form-heading p { margin: 0 0 34px; color: var(--muted); font-size: 15px; }
.auth-form { display: flex; flex-direction: column; gap: 19px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.field label { display: flex; justify-content: space-between; margin: 0 0 8px; color: #253657; font-size: 13px; font-weight: 700; }
.field label span { color: #96a0b5; font-size: 11px; font-weight: 500; }
.field__control { position: relative; display: flex; align-items: center; }
.field__control > svg { position: absolute; left: 16px; width: 19px; fill: none; stroke: #8794ad; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.field__control > svg + input { padding-left: 47px; }
.field input { width: 100%; height: 52px; padding: 0 15px; border: 1px solid #d9e1ee; border-radius: 13px; outline: none; color: var(--ink); background: #fbfcfe; transition: border-color .2s, box-shadow .2s, background .2s; }
.field input::placeholder { color: #a8b1c2; }
.field input:focus { border-color: #76a4f8; background: #fff; box-shadow: 0 0 0 4px rgba(39, 104, 237, .09); }
.password-toggle { position: absolute; right: 8px; display: grid; width: 38px; height: 38px; padding: 0; place-items: center; border: 0; border-radius: 10px; color: #8490a7; background: transparent; cursor: pointer; }
.password-toggle:hover { color: var(--blue-700); background: var(--blue-50); }
.password-toggle svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.password-toggle.is-visible svg { color: var(--blue-700); }
.field__hint, .field__error { display: block; margin: 6px 2px 0; font-size: 11px; line-height: 1.35; }
.field__hint { color: #8c97aa; }
.field__error { color: var(--danger); }
.field--invalid input { border-color: #e8939e; background: #fffafb; }

.form-alert { margin-bottom: 18px; padding: 13px 15px; border: 1px solid #f0c4ca; border-radius: 12px; color: #a72e3e; background: var(--danger-bg); font-size: 13px; line-height: 1.5; }
.primary-button { display: flex; height: 54px; align-items: center; justify-content: center; gap: 12px; margin-top: 5px; border: 0; border-radius: 14px; color: #fff; background: linear-gradient(135deg, var(--blue-700), var(--blue-600)); box-shadow: 0 13px 27px rgba(21, 82, 214, .23); font-weight: 750; cursor: pointer; transition: transform .2s, box-shadow .2s, opacity .2s; }
.primary-button:hover { transform: translateY(-1px); box-shadow: 0 16px 32px rgba(21, 82, 214, .3); }
.primary-button:active { transform: translateY(0); }
.primary-button:disabled { cursor: wait; opacity: .75; }
.primary-button > svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 2; }
.button-spinner { display: none; width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.primary-button.is-loading .button-spinner { display: block; }
.primary-button.is-loading > svg { display: none; }
.form-switch { margin: 27px 0 0; color: var(--muted); text-align: center; font-size: 13px; }
.form-switch a { color: var(--blue-700); font-weight: 750; text-underline-offset: 3px; }

.profile-body { background: var(--background); }
.app-shell { min-height: 100vh; }
.topbar { display: flex; height: 78px; align-items: center; justify-content: space-between; padding: 0 clamp(22px, 5vw, 76px); color: var(--blue-950); background: #fff; border-bottom: 1px solid #e9edf4; }
.topbar .brand__mark { color: #fff; background: var(--blue-700); }
.topbar__right { display: flex; align-items: center; gap: 25px; }
.topbar__status { display: flex; align-items: center; gap: 8px; color: #758198; font-size: 12px; }
.topbar__status i { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(25, 164, 116, .1); }
.logout-button { display: flex; align-items: center; gap: 8px; padding: 9px 13px; border: 1px solid #dde4ef; border-radius: 11px; color: #52617a; background: #fff; font-size: 13px; font-weight: 650; cursor: pointer; }
.logout-button:hover { color: var(--blue-700); border-color: #b9cdf5; background: var(--blue-50); }
.logout-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.topbar-link { display: flex; align-items: center; gap: 7px; padding: 9px 12px; border: 1px solid #dde4ef; border-radius: 11px; color: #52617a; text-decoration: none; font-size: 12px; font-weight: 650; }
.topbar-link:hover { color: var(--blue-700); border-color: #b9cdf5; background: var(--blue-50); }
.topbar-link svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.profile-main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 38px 0 64px; }
.profile-loading { display: grid; min-height: 55vh; place-content: center; justify-items: center; color: var(--muted); font-size: 14px; }
.loader { width: 40px; height: 40px; border: 3px solid #d9e4f8; border-top-color: var(--blue-700); border-radius: 50%; animation: spin .75s linear infinite; }
.profile-error { margin: 100px auto; padding: 32px; max-width: 480px; border: 1px solid #f0c4ca; border-radius: var(--radius-md); text-align: center; background: #fff; box-shadow: var(--shadow); }
.profile-error span { display: block; margin-bottom: 18px; }
.profile-error button { padding: 10px 16px; border: 0; border-radius: 10px; color: #fff; background: var(--blue-700); cursor: pointer; }

.profile-content { animation: fade-up .45s ease both; }
.profile-hero { position: relative; display: flex; overflow: hidden; min-height: 230px; align-items: center; gap: 30px; padding: 42px 48px; border-radius: var(--radius-lg); color: #fff; background: linear-gradient(120deg, #0a2b70, #1554d8 64%, #2b6ceb); box-shadow: 0 22px 50px rgba(22, 71, 168, .2); }
.profile-hero__glow { position: absolute; width: 420px; height: 420px; right: -140px; top: -240px; border: 1px solid rgba(255, 255, 255, .15); border-radius: 50%; box-shadow: 0 0 0 65px rgba(255, 255, 255, .035), 0 0 0 130px rgba(255, 255, 255, .02); }
.profile-hero__rail { position: absolute; right: -40px; bottom: 28px; width: 45%; height: 2px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.32)); transform: rotate(-10deg); }
.profile-hero__rail::after, .profile-hero__rail::before { position: absolute; right: 0; width: 80%; height: 1px; background: inherit; content: ""; }
.profile-hero__rail::before { top: 10px; }
.profile-hero__rail::after { top: 20px; width: 60%; }
.avatar { position: relative; z-index: 1; display: grid; flex: 0 0 112px; width: 112px; height: 112px; overflow: hidden; place-items: center; border: 5px solid rgba(255, 255, 255, .25); border-radius: 32px; color: var(--blue-800); background: #fff; box-shadow: 0 15px 30px rgba(2, 20, 59, .2); font-size: 33px; font-weight: 800; letter-spacing: -.05em; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-identity { position: relative; z-index: 1; min-width: 0; }
.eyebrow--light { font-size: 10px; }
.profile-identity h1 { overflow: hidden; margin: 12px 0 6px; font-size: clamp(29px, 4vw, 43px); line-height: 1.08; letter-spacing: -.035em; text-overflow: ellipsis; }
.profile-identity > p { margin: 0; color: #bdd4ff; font-size: 16px; }
.profile-edit-button { position: relative; z-index: 2; display: flex; align-items: center; gap: 8px; margin-left: auto; padding: 11px 15px; border: 1px solid rgba(255,255,255,.22); border-radius: 12px; color: #fff; background: rgba(255,255,255,.1); text-decoration: none; font-size: 12px; font-weight: 700; backdrop-filter: blur(8px); }
.profile-edit-button:hover { background: rgba(255,255,255,.18); }
.profile-edit-button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 21px; }
.profile-tags > span { display: flex; align-items: center; gap: 7px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.14); border-radius: 9px; color: rgba(255,255,255,.82); background: rgba(255,255,255,.08); font-size: 11px; }
.profile-tags svg { width: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.profile-tags b, .profile-tags i { font-style: normal; font-weight: 600; }

.profile-section { margin-top: 38px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.section-heading > div:first-child > span { color: var(--blue-700); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.section-heading h2 { margin: 5px 0 0; font-size: 23px; letter-spacing: -.02em; }
.section-heading__mark { color: #8a96aa; font-size: 11px; }
.stats-grid { display: grid; grid-template-columns: 1.25fr repeat(3, 1fr); gap: 14px; }
.stat-card { position: relative; display: flex; min-height: 155px; flex-direction: column; justify-content: flex-end; padding: 21px; border: 1px solid #e3e8f0; border-radius: var(--radius-md); background: #fff; box-shadow: 0 8px 24px rgba(18, 42, 84, .045); }
.stat-card--primary { color: #fff; border: 0; background: linear-gradient(145deg, #174fca, #2471ef); }
.stat-card__label { color: #7a879c; font-size: 12px; line-height: 1.35; }
.stat-card--primary .stat-card__label { color: #c9dcff; }
.stat-card strong { margin-top: 8px; font-size: 31px; letter-spacing: -.04em; }
.stat-card small { margin-top: 3px; color: #9aa4b5; font-size: 10px; }
.stat-card__icon { position: absolute; top: 18px; right: 18px; display: grid; width: 35px; height: 35px; place-items: center; border-radius: 11px; color: var(--blue-700); background: var(--blue-50); }
.stat-card__icon--safety { color: #19875f; background: #e9f8f2; }
.stat-card__icon--loyalty { color: #ce7e23; background: #fff4e6; }
.stat-card__icon svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.stat-progress { overflow: hidden; height: 4px; margin-top: 14px; border-radius: 99px; background: rgba(255,255,255,.18); }
.stat-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: #77ddc0; transition: width .8s ease; }

.profile-columns { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; }
.panel-card { padding: 25px 27px; border: 1px solid #e3e8f0; border-radius: var(--radius-md); background: #fff; box-shadow: 0 8px 24px rgba(18, 42, 84, .04); }
.section-heading--compact { margin-bottom: 21px; }
.section-heading--compact h2 { font-size: 19px; }
.exam-summary { display: flex; align-items: stretch; gap: 28px; }
.exam-summary__count { display: flex; min-width: 130px; align-items: center; gap: 9px; padding-right: 28px; border-right: 1px solid var(--line); }
.exam-summary__count > strong { color: var(--blue-700); font-size: 48px; line-height: 1; letter-spacing: -.06em; }
.exam-summary__count > span { display: flex; flex-direction: column; color: #8995a8; font-size: 12px; }
.exam-summary__count b { color: var(--ink); font-size: 16px; }
.exam-summary__count small { margin-top: 4px; font-size: 9px; white-space: nowrap; }
.exam-summary__items { display: grid; flex: 1; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.exam-summary__items > div { display: flex; flex-direction: column; justify-content: center; }
.exam-summary__items span { color: #8b96a8; font-size: 10px; line-height: 1.3; }
.exam-summary__items strong { margin-top: 7px; font-size: 20px; }
.empty-note { margin: 20px 0 0; padding: 11px 13px; border-radius: 10px; color: #71809a; background: var(--blue-50); font-size: 11px; }
.account-list { margin: 0; }
.account-list > div { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid #edf0f5; }
.account-list > div:last-child { border: 0; }
.account-list dt { color: #8994a6; font-size: 11px; }
.account-list dd { overflow: hidden; margin: 0; max-width: 62%; font-size: 12px; font-weight: 700; text-align: right; text-overflow: ellipsis; }
.app-footer { padding: 3px 20px 28px; color: #9aa4b5; text-align: center; font-size: 10px; letter-spacing: .06em; text-transform: uppercase; }
.app-footer span { padding: 0 5px; color: var(--blue-700); }

.toast { position: fixed; z-index: 20; top: 94px; right: 28px; display: flex; align-items: center; gap: 10px; padding: 13px 17px; border: 1px solid #bfe7d9; border-radius: 13px; color: #147353; background: #f0fbf7; box-shadow: 0 14px 35px rgba(17, 79, 59, .14); font-size: 13px; font-weight: 650; animation: toast-in .3s ease both; }
.toast svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.toast--hiding { opacity: 0; transform: translateY(-7px); transition: opacity .25s, transform .25s; }

.edit-main { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 46px 0 70px; }
.edit-loading { display: grid; min-height: 60vh; place-content: center; justify-items: center; color: var(--muted); font-size: 13px; }
.edit-layout { display: grid; grid-template-columns: minmax(250px, .68fr) minmax(540px, 1.45fr); gap: 42px; align-items: start; animation: fade-up .4s ease both; }
.edit-aside { position: sticky; top: 34px; padding: 13px 4px; }
.back-link { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 55px; color: #6f7d94; text-decoration: none; font-size: 12px; font-weight: 650; }
.back-link:hover { color: var(--blue-700); }
.back-link svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.eyebrow--blue { color: var(--blue-700); }
.edit-aside h1 { max-width: 380px; margin: 14px 0; font-size: clamp(31px, 3.5vw, 45px); line-height: 1.05; letter-spacing: -.045em; }
.edit-aside > p { max-width: 370px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.edit-avatar { display: grid; width: 82px; height: 82px; overflow: hidden; place-items: center; margin-top: 39px; border: 4px solid #fff; border-radius: 24px; color: #fff; background: linear-gradient(140deg, var(--blue-800), var(--blue-600)); box-shadow: 0 10px 26px rgba(21, 82, 214, .2); font-size: 24px; font-weight: 800; }
.edit-avatar img { width: 100%; height: 100%; object-fit: cover; }
.edit-aside__name { display: block; margin-top: 15px; font-size: 14px; }
.edit-aside__login { display: block; margin-top: 4px; color: #8a96aa; font-size: 12px; }
.edit-aside__login i { font-style: normal; }
.edit-card { padding: 35px 38px 38px; border: 1px solid #e1e7f0; border-radius: 24px; background: #fff; box-shadow: 0 18px 50px rgba(18, 42, 84, .08); }
.edit-card__header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 30px; padding-bottom: 24px; border-bottom: 1px solid #e9edf3; }
.edit-card__header > div > span { color: var(--blue-700); font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.edit-card__header h2 { margin: 6px 0 0; font-size: 23px; letter-spacing: -.025em; }
.required-note { color: #8e99ab; font-size: 10px; }
.required-note i, .profile-form label i { color: var(--danger); font-style: normal; }
.profile-form { display: flex; flex-direction: column; gap: 19px; }
.form-grid--profile { gap: 15px; }
.form-divider { display: flex; align-items: center; gap: 13px; margin: 8px 0 0; color: #8995a9; font-size: 10px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.form-divider::after { flex: 1; height: 1px; background: #e7ebf2; content: ""; }
.field__control--url svg { left: 15px; }
.edit-actions { display: flex; justify-content: flex-end; gap: 11px; margin-top: 12px; padding-top: 25px; border-top: 1px solid #e9edf3; }
.secondary-button { display: flex; min-width: 110px; height: 50px; align-items: center; justify-content: center; padding: 0 18px; border: 1px solid #dbe2ed; border-radius: 13px; color: #64718a; background: #fff; text-decoration: none; font-size: 13px; font-weight: 700; }
.secondary-button:hover { color: var(--blue-700); border-color: #b8cef8; background: var(--blue-50); }
.primary-button--save { min-width: 205px; height: 50px; margin: 0; padding: 0 20px; font-size: 13px; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 980px) {
    .auth-shell { grid-template-columns: 38% 1fr; }
    .auth-promo { padding: 34px; }
    .auth-promo h1 { font-size: 45px; }
    .promo-points, .promo-score { display: none; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .profile-columns { grid-template-columns: 1fr; }
    .edit-layout { grid-template-columns: minmax(220px, .6fr) minmax(480px, 1.4fr); gap: 25px; }
    .edit-card { padding: 30px; }
    .brand-cluster--promo .mintrans-brand__logo { width: 116px; }
}

@media (max-width: 720px) {
    .auth-shell { display: block; }
    .auth-promo { display: none; }
    .auth-panel { min-height: 100vh; padding: 28px 22px 42px; align-items: start; }
    .auth-panel__inner { max-width: 520px; }
    .auth-mobile-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 55px; }
    .auth-mobile-brand .mintrans-brand { padding-left: 14px; }
    .auth-mobile-brand .mintrans-brand__logo { width: 85px; }
    .form-heading h2 { font-size: 32px; }
    .form-heading p { margin-bottom: 28px; }
    .form-grid { grid-template-columns: 1fr; gap: 19px; }
    .topbar { height: 68px; padding: 0 18px; }
    .topbar__status { display: none; }
    .brand-cluster--header { gap: 12px; }
    .brand-cluster--header .mintrans-brand { padding-left: 12px; }
    .brand-cluster--header .brand__text { display: none; }
    .brand-cluster--header .mintrans-brand__logo { width: 74px; }
    .logout-button span { display: none; }
    .profile-main { width: min(100% - 24px, 600px); padding-top: 18px; }
    .profile-hero { display: block; padding: 29px 25px; }
    .avatar { width: 84px; height: 84px; margin-bottom: 22px; border-radius: 25px; font-size: 27px; }
    .profile-identity h1 { white-space: normal; }
    .profile-edit-button { width: fit-content; margin: 23px 0 0; }
    .profile-section { margin-top: 28px; }
    .section-heading { align-items: flex-start; }
    .section-heading__mark { display: none; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat-card { min-height: 142px; padding: 17px; }
    .stat-card strong { font-size: 27px; }
    .stat-card__icon { top: 14px; right: 14px; }
    .panel-card { padding: 22px 19px; }
    .exam-summary { display: block; }
    .exam-summary__count { padding: 0 0 20px; border: 0; border-bottom: 1px solid var(--line); }
    .exam-summary__items { padding-top: 18px; }
    .edit-main { width: min(100% - 24px, 600px); padding-top: 24px; }
    .edit-layout { display: block; }
    .edit-aside { position: static; padding: 0; }
    .back-link { margin-bottom: 29px; }
    .edit-aside > p { margin-bottom: 26px; }
    .edit-avatar, .edit-aside__name, .edit-aside__login { display: none; }
    .edit-card { padding: 24px 20px; border-radius: 19px; }
    .edit-card__header { align-items: flex-start; }
    .required-note { display: none; }
    .form-grid--profile { grid-template-columns: 1fr; }
    .edit-actions { flex-direction: column-reverse; }
    .secondary-button, .primary-button--save { width: 100%; }
    .toast { top: 82px; right: 12px; left: 12px; justify-content: center; }
}

@media (max-width: 410px) {
    .stats-grid { grid-template-columns: 1fr; }
    .stat-card { min-height: 126px; }
    .exam-summary__items { grid-template-columns: 1fr 1fr; row-gap: 18px; }
}

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