/* =========================================================
   SCORE AI — фиолетовая дизайн-система
   Тёмный фон, фиолетовый акцент, скруглённые "стеклянные"
   карточки — в духе премиальных SaaS-дашбордов.
========================================================= */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--chalk);
    overflow: hidden;
}

/* ---------------- ТОКЕНЫ ---------------- */

:root {
    --bg: #0d0b1a;
    --bg-secondary: #120f24;
    --panel: rgba(24, 20, 42, .68);
    --panel-solid: #1a1630;
    --panel-raised: #221c3d;

    --border: rgba(255, 255, 255, .08);
    --border-strong: rgba(255, 255, 255, .15);

    --chalk: #f2f0fa;
    --muted: #9d97b8;
    --muted-dim: #6b6485;

    /* фиолетовый акцент */
    --gold: #7c5cff;
    --gold-soft: #9b82ff;
    --gold-dim: rgba(124, 92, 255, .16);

    /* семантика */
    --turf: #34d399;
    --turf-dim: rgba(52, 211, 153, .16);
    --foul: #f87171;
    --foul-dim: rgba(248, 113, 113, .16);
    --info: #60a5fa;
    --info-dim: rgba(96, 165, 250, .16);
    --warn: #fb923c;
    --warn-dim: rgba(251, 146, 60, .16);

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 22px;

    --transition: .2s ease;
    --shadow: 0 24px 60px rgba(0, 0, 0, .5);

    --font-display: "Inter", sans-serif;
    --font-mono: "Inter", sans-serif;
}

/* ---------------- ФОН ---------------- */

.background {
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(1200px 700px at 10% -10%, rgba(124, 92, 255, .14), transparent 60%),
        radial-gradient(900px 600px at 100% 100%, rgba(96, 165, 250, .08), transparent 55%),
        linear-gradient(180deg, var(--bg) 0%, var(--bg-secondary) 100%);
}

/* ---------------- APP ---------------- */

.app {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* ---------------- SIDEBAR ---------------- */

.sidebar {
    width: 250px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    padding: 24px 18px;
    background: rgba(13, 11, 26, .85);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    padding: 0 8px;
}

.logo {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    background: linear-gradient(135deg, var(--gold), var(--info));
    box-shadow: 0 10px 26px rgba(124, 92, 255, .35);
}

.sidebar-logo h2 {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -.01em;
}

.sidebar-logo span {
    display: block;
    color: var(--muted-dim);
    font-size: 10.5px;
    letter-spacing: .06em;
    text-transform: uppercase;
    margin-top: 1px;
}

.sidebar nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.nav-item {
    border: none;
    background: none;
    color: var(--muted);
    cursor: pointer;
    text-align: left;
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.nav-item:hover {
    background: rgba(255, 255, 255, .04);
    color: var(--chalk);
}

.nav-item.active {
    color: #fff;
    background: linear-gradient(135deg, var(--gold), #6a4ff0);
    box-shadow: 0 8px 20px rgba(124, 92, 255, .3);
}

/* ---------------- CONTENT ---------------- */

.content {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 24px 28px;
    gap: 18px;
}

/* ---------------- ПАНЕЛИ ---------------- */

.panel {
    background: var(--panel);
    border: 1px solid var(--border);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

/* ---------------- HEADER / TOPBAR ---------------- */

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.topbar h1 {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -.01em;
}

.topbar p {
    color: var(--muted);
    font-size: 13.5px;
    margin-top: 4px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

#refreshButton {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-strong);
    background: var(--panel-solid);
    color: var(--chalk);
    font-family: var(--font-display);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

#refreshButton:hover {
    border-color: var(--gold);
    color: var(--gold-soft);
}

/* ---------------- ACCOUNT WIDGET ---------------- */

.account-guest-btn {
    padding: 11px 22px;
    border-radius: var(--radius-sm);
    border: none;
    background: linear-gradient(135deg, var(--gold), #6a4ff0);
    color: #fff;
    font-family: var(--font-display);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(124, 92, 255, .3);
    transition: var(--transition);
}

.account-guest-btn:hover {
    filter: brightness(1.08);
}

.account-chip {
    display: flex;
    align-items: center;
    gap: 10px;
}

.account-balance {
    font-size: 13px;
    font-weight: 600;
    color: var(--chalk);
    background: var(--panel-solid);
    border: 1px solid var(--border);
    padding: 9px 15px;
    border-radius: 999px;
}

.account-badge {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .03em;
    color: var(--gold-soft);
    background: var(--gold-dim);
    border: 1px solid rgba(124, 92, 255, .3);
    padding: 6px 12px;
    border-radius: 999px;
}

.account-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, var(--gold), var(--info));
    color: #fff;
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.account-avatar:hover {
    filter: brightness(1.1);
}

/* ---------------- TOOLBAR (спорт / дата / поиск) ---------------- */

.toolbar {
    display: flex;
    align-items: flex-end;
    gap: 30px;
    padding: 20px 24px;
    flex-shrink: 0;
}

.toolbar > div:not(.search-box) h3 {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted-dim);
    margin-bottom: 10px;
}

#sports {
    display: flex;
    gap: 8px;
}

.sport {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--panel-solid);
    color: var(--muted);
    font-family: var(--font-display);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.sport:hover {
    border-color: var(--border-strong);
    color: var(--chalk);
}

.sport.active {
    border-color: transparent;
    background: linear-gradient(135deg, var(--gold), #6a4ff0);
    color: #fff;
}

#calendar {
    display: flex;
    gap: 8px;
}

.date-button {
    padding: 9px 15px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--panel-solid);
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.date-button:hover {
    border-color: var(--border-strong);
    color: var(--chalk);
}

.date-button.active {
    border-color: transparent;
    background: var(--turf-dim);
    color: var(--turf);
}

.search-box {
    flex: 1;
    margin-left: auto;
}

#matchSearch {
    width: 100%;
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--panel-solid);
    color: var(--chalk);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

#matchSearch::placeholder {
    color: var(--muted-dim);
}

#matchSearch:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-dim);
}

/* ---------------- MAIN GRID ---------------- */

main {
    flex: 1;
    display: grid;
    grid-template-columns: 420px 1fr;
    gap: 18px;
    overflow: hidden;
}

.matches-panel {
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

#matches {
    overflow-y: auto;
    padding: 16px;
}

.analysis-panel {
    overflow-y: auto;
    padding: 32px;
}

/* ---------------- ПУСТЫЕ СОСТОЯНИЯ ---------------- */

.empty,
.empty-state {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 30px;
    color: var(--muted);
}

.empty .icon,
.empty-state {
    font-size: 40px;
    margin-bottom: 4px;
}

.empty h2 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--chalk);
    margin: 10px 0 8px;
}

.empty p {
    font-size: 13.5px;
    max-width: 260px;
    line-height: 1.5;
}

/* ---------------- ГРУППЫ ЛИГ ---------------- */

.league-group {
    margin-bottom: 20px;
}

.group-title {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted-dim);
    padding: 6px 8px 12px;
}

.league {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .02);
    margin-bottom: 10px;
    overflow: hidden;
    transition: border-color var(--transition);
}

.league.open {
    border-color: var(--border-strong);
}

.league-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    cursor: pointer;
}

.league-title {
    font-size: 14px;
    font-weight: 700;
}

.league-country {
    font-size: 11.5px;
    color: var(--muted-dim);
    margin-top: 3px;
}

.league-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.match-count {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--muted-dim);
}

.league-arrow {
    color: var(--muted-dim);
    font-size: 11px;
    transition: transform var(--transition);
}

.league.open .league-arrow {
    color: var(--gold-soft);
}

.league-matches {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 12px 12px;
}

.league-matches.hidden {
    display: none;
}

/* ---------------- КАРТОЧКА МАТЧА ---------------- */

.match-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--panel-solid);
    padding: 14px 16px;
    cursor: pointer;
    transition: var(--transition);
}

.match-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-1px);
}

.match-card.selected {
    border-color: var(--gold);
    background: var(--gold-dim);
    box-shadow: 0 0 0 1px var(--gold) inset;
}

.match-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.sport-badge {
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
    font-size: 13px;
}

.match-time {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--muted);
}

.ai-badge {
    margin-left: auto;
    font-size: 11px;
    font-weight: 700;
    color: var(--gold-soft);
    background: var(--gold-dim);
    border: 1px solid rgba(124, 92, 255, .3);
    padding: 3px 9px;
    border-radius: 999px;
}

.teams {
    display: flex;
    align-items: center;
    gap: 10px;
}

.team-row {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.team-icon {
    font-size: 13px;
    flex-shrink: 0;
    opacity: .8;
    display: inline-flex;
}

.team-icon-img {
    width: 22px;
    height: 22px;
    object-fit: cover;
    border-radius: 6px;
    background: rgba(255, 255, 255, .06);
    flex-shrink: 0;
}

.team-icon-img.team-icon-round {
    border-radius: 50%;
}

.team-name {
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vs-line {
    font-size: 10px;
    font-weight: 700;
    color: var(--muted-dim);
    flex-shrink: 0;
}

.analyze-btn {
    width: 100%;
    margin-top: 12px;
    padding: 9px;
    border: none;
    border-radius: var(--radius-sm);
    background: rgba(124, 92, 255, .1);
    color: var(--gold-soft);
    font-family: var(--font-display);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.analyze-btn:hover {
    background: linear-gradient(135deg, var(--gold), #6a4ff0);
    color: #fff;
}

/* ---------------- СОСТОЯНИЕ ЗАГРУЗКИ ---------------- */

.loading-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 70px 30px;
    color: var(--muted);
}

.loader {
    width: 54px;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    border-radius: 50%;
    border: 3px solid var(--border);
    border-top-color: var(--gold);
    animation: spin 1s linear infinite;
    margin-bottom: 18px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-box h2 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--chalk);
    margin-bottom: 6px;
}

.loading-box p {
    font-size: 13px;
    max-width: 260px;
}

.loading-time {
    font-size: 11px;
    color: var(--muted-dim);
    margin-top: 10px !important;
}

.loading-steps {
    margin-top: 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    text-align: left;
    font-size: 12.5px;
}

.loading-steps > div {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--border);
    color: var(--muted-dim);
    transition: var(--transition);
}

.loading-steps > div.done {
    color: var(--turf);
    border-color: rgba(52, 211, 153, .3);
    background: var(--turf-dim);
}

/* =========================================================
   КАРТОЧКА АНАЛИЗА
========================================================= */

.analysis-card {
    animation: fadeUp .3s ease;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.analysis-card.loading {
    align-items: center;
    justify-content: center;
    min-height: 300px;
}

.analysis-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.ai-ready {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--gold-soft);
    background: var(--gold-dim);
    border: 1px solid rgba(124, 92, 255, .3);
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 12px;
}

.analysis-header h2 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.analysis-header h2 span {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted-dim);
}

.match-info {
    text-align: right;
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.6;
    flex-shrink: 0;
}

/* --- счёт --- */

.score-box {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 22px 26px;
    border-radius: var(--radius-lg);
    background: var(--panel-raised);
    border: 1px solid var(--border-strong);
}

.score {
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 800;
    color: var(--gold-soft);
    font-variant-numeric: tabular-nums;
}

.confidence {
    font-size: 12.5px;
    color: var(--muted);
    text-align: right;
}

.winner-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    border-radius: var(--radius);
    background: var(--turf-dim);
    border: 1px solid rgba(52, 211, 153, .3);
}

.winner-name {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--turf);
}

.winner-percent {
    font-size: 18px;
    font-weight: 800;
    color: var(--turf);
}

/* --- вероятности --- */

.probability {
    padding: 20px 22px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .02);
    border: 1px solid var(--border);
}

.probability h3 {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted-dim);
    margin-bottom: 16px;
}

.prob-row {
    margin-bottom: 14px;
}

.prob-row:last-child {
    margin-bottom: 0;
}

.prob-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 6px;
}

.prob-top strong {
    font-size: 13px;
    font-weight: 700;
}

.progress {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .07);
    overflow: hidden;
}

.progress > div {
    height: 100%;
    border-radius: 999px;
    transition: width .5s ease;
    background: var(--gold);
}

.prob-row:nth-child(1) .progress > div { background: var(--turf); }
.prob-row:nth-child(2) .progress > div { background: var(--muted); }
.prob-row:nth-child(3) .progress > div { background: var(--info); }

/* --- статистика формы --- */

.stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.stat-card {
    padding: 16px 18px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .02);
    border: 1px solid var(--border);
    font-size: 13px;
    line-height: 1.6;
}

.stat-card strong {
    display: block;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--chalk);
}

/* --- секции --- */

.section h3 {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted-dim);
    margin-bottom: 12px;
}

.section > p {
    font-size: 14px;
    line-height: 1.65;
    color: var(--chalk);
}

.factors {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.factor {
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--border);
    font-size: 13.5px;
    line-height: 1.5;
}

.strengths {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.strength-card {
    padding: 16px 18px;
    border-radius: var(--radius);
    background: var(--turf-dim);
    border: 1px solid rgba(52, 211, 153, .25);
    font-size: 13px;
    line-height: 1.65;
}

.bet-box {
    padding: 18px 22px;
    border-radius: var(--radius);
    background: var(--gold-dim);
    border: 1px solid rgba(124, 92, 255, .3);
    color: var(--gold-soft);
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
}

/* ---------------- AUTH MODAL ---------------- */

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: rgba(6, 4, 14, .75);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-modal {
    position: relative;
    width: 100%;
    max-width: 380px;
    padding: 32px 28px 28px;
    background: var(--panel-solid);
    animation: fadeUp .25s ease;
}

.auth-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 30px;
    height: 30px;
    border: none;
    background: transparent;
    color: var(--muted);
    font-size: 15px;
    cursor: pointer;
    border-radius: var(--radius-sm);
}

.auth-close:hover {
    color: var(--chalk);
    background: rgba(255, 255, 255, .06);
}

.auth-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.auth-tab {
    flex: 1;
    padding: 10px;
    border: none;
    background: none;
    color: var(--muted);
    font-family: var(--font-display);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: var(--transition);
}

.auth-tab.active {
    color: var(--gold-soft);
    border-bottom-color: var(--gold);
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-field span {
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--muted-dim);
}

.auth-field input {
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    color: var(--chalk);
    font-size: 14px;
    outline: none;
    transition: var(--transition);
}

.auth-field input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px var(--gold-dim);
}

.auth-error {
    font-size: 12.5px;
    color: var(--foul);
    background: var(--foul-dim);
    border: 1px solid rgba(248, 113, 113, .3);
    padding: 9px 12px;
    border-radius: var(--radius-sm);
}

.auth-error.hidden {
    display: none;
}

.auth-submit {
    margin-top: 6px;
    padding: 12px;
    border: none;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--gold), #6a4ff0);
    color: #fff;
    font-family: var(--font-display);
    font-size: 13.5px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.auth-submit:hover {
    filter: brightness(1.08);
}

.auth-submit:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* ---------------- SCROLLBARS ---------------- */

.analysis-panel::-webkit-scrollbar,
#matches::-webkit-scrollbar {
    width: 8px;
}

.analysis-panel::-webkit-scrollbar-track,
#matches::-webkit-scrollbar-track {
    background: transparent;
}

.analysis-panel::-webkit-scrollbar-thumb,
#matches::-webkit-scrollbar-thumb {
    background: var(--panel-raised);
    border-radius: 999px;
}

.analysis-panel::-webkit-scrollbar-thumb:hover,
#matches::-webkit-scrollbar-thumb:hover {
    background: var(--gold);
}

/* ---------------- ФОКУС ДЛЯ КЛАВИАТУРЫ ---------------- */

button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* ---------------- АДАПТИВНОСТЬ ---------------- */

@media (max-width: 1200px) {
    main {
        grid-template-columns: 360px 1fr;
    }
}

@media (max-width: 980px) {
    body {
        overflow: auto;
    }

    .app {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .sidebar {
        width: 100%;
        flex-direction: row;
        align-items: center;
        padding: 16px 20px;
    }

    .sidebar-logo {
        margin-bottom: 0;
    }

    .sidebar nav {
        flex-direction: row;
        overflow-x: auto;
    }

    main {
        grid-template-columns: 1fr;
        overflow: visible;
    }

    .toolbar {
        flex-wrap: wrap;
        gap: 16px;
    }

    .search-box {
        width: 100%;
    }

    .stats-grid,
    .strengths {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
    }
}
