/*
УРОК: CSS — это язык стилей. Он описывает КАК выглядит страница.

Синтаксис: селектор { свойство: значение; }

Селекторы:
- .class — элементы с классом class
- #id — элемент с id
- element — все теги этого типа (body, h1, button)
*/

/* Сброс стандартных отступов браузера */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --bg-deep: #000208;
    --panel-bg: rgba(6, 14, 30, 0.85);
    --panel-border: rgba(40, 140, 220, 0.25);
    --text-main: #e5e7eb;
    --text-soft: #9ca3af;
    background:
        /* мягкие световые пятна */
        radial-gradient(circle at 0% 0%, rgba(40, 140, 220, 0.10), transparent 55%),
        radial-gradient(circle at 100% 100%, rgba(50, 120, 200, 0.14), transparent 55%),
        radial-gradient(circle at 100% 0%, rgba(40, 140, 220, 0.08), transparent 55%),
        /* СЕТКА РИСУЕТСЯ CANVAS'ОМ (bgChargeCanvas), чтобы:
           - линии были неравномерные
           - каждая 3-я линия была двойной со сдвигом (1px вправо/вниз)
           - каждая 4-я линия могла быть только на 50% длины
           - шарики строго ехали по линии и останавливались на конце */
        var(--bg-deep);
    min-height: 100vh;
    color: var(--text-main);
    position: relative;
    overflow-x: hidden;
    padding: 0 4px; /* общий отступ 4px слева/справа для всего контента */
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin: 0 auto;
    background-size:
        auto,
        auto,
        auto,
        auto;
}

body::before,
body::after {
    content: '';
    position: fixed;
    inset: -20%;
    background:
        linear-gradient(130deg, rgba(40, 140, 220, 0.03), transparent 60%),
        linear-gradient(310deg, rgba(50, 120, 200, 0.04), transparent 55%);
    opacity: 0.40;
    mix-blend-mode: screen;
    pointer-events: none;
    transform: translate3d(0, 0, 0) rotate(2deg);
    animation: diagonals-slide 30s linear infinite alternate;
}

/* Canvas-слой для анимации "тока" по сетке */
.bg-charge-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    mix-blend-mode: screen;
}

body::after {
    animation-direction: alternate-reverse;
    opacity: 0.45;
}

.page-shell {
    max-width: 1320px;
    margin: 0 auto 2.5rem;
    padding: 2.5rem 1.5rem 2.5rem;
    position: relative;
    z-index: 1;
}

.hidden {
    display: none !important;
}

/* Личная секция my под таймлайном: три flex-блока
   one  — обёртка для левого сайдбара (ширина по содержимому)
   two  — занимает всё оставшееся свободное место
   three — обёртка для правого сайдбара (ширина по содержимому) */
.my {
    display: flex;
    gap: 0; /* без отступов между one / two / three */
    margin: 1.5rem 0;
    width: 100%;
}

.my .one,
.my .three {
    flex: 0 0 auto; /* ширина = ширине вложенных сайдбаров */
    min-height: 100vh; /* во всю высоту видимой области экрана */
}

.my .two {
    flex: 1 1 auto; /* занимает всё оставшееся пространство между ними */
    display: flex;
    flex-direction: column;
    gap: 0; /* блоки внутри управляют отступами сами */
    border: none; /* у central-столбца нет своих линий, только у вложенных блоков */
}

/* Вертикальные разделительные линии должны быть только у внешних обёрток:
   справа у first и слева у third. У внутренних блоков в этих колонках
   убираем соответствующие боковые бордеры, чтобы не было нахлёстов. */
.my .one {
    border-right: 0.5px solid rgba(40, 140, 220, 0.32);
}

.my .three {
    border: 0.5px solid rgba(40, 140, 220, 0.32); /* полноценный бордер по периметру для третьей колонки */
}

.layout {
    display: flex;                /* 3 неравные колонки в ряд */
    align-items: flex-start;
    gap: 1.5rem;
    width: 100%;
    margin: 0;
    padding: 0;                   /* панели прижаты к краям окна */
}

/* На большинстве ноутбуков/десктопов сайдбары должны быть видимы.
   Складываемся в одну колонку только на узких экранах (960px и ниже) */

.header {
    width: 100%;
    /* приглушённый полупрозрачный фон — гексы просвечивают */
    background:
        linear-gradient(120deg, rgba(8, 20, 50, 0.45), rgba(4, 10, 30, 0.55)),
        rgba(2, 6, 18, 0.35);
    padding: 1.4rem 2.2rem;
    box-shadow: none;
    border-radius: 0;
    border: none;
    border-bottom: 0.5px solid rgba(40, 140, 220, 0.18);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    display: flex;
    align-items: flex-start; /* кнопки по линии заголовка */
    justify-content: space-between;
    gap: 1.5rem;
}

.header-left {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.header-actions {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.875rem; /* +~2px */
    flex-wrap: wrap;
    justify-content: flex-end;
    padding-top: 0.35rem; /* чуть опускаем кнопки, чтобы совпадали с линией заголовка */
}

.header-actions a {
    border-radius: 0 !important;
}

.header-telegram-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.header-donate {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.95rem; /* +пару пикселей воздуха */
    border-radius: 0 !important;
    text-decoration: none;
    background: rgba(6, 14, 30, 0.08);
    box-shadow:
        0 0 0 0.25px rgba(250, 204, 21, 0.8),
        0 10px 30px rgba(6, 14, 30, 0.7);
    color: #fefce8;
    font-size: 0.85rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: transform 160ms ease, box-shadow 160ms ease;
    position: relative;
    z-index: 0;
}

.header-donate:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow:
        0 0 0 0.25px rgba(250, 204, 21, 0.8),
        0 0 0 0.5px rgba(255, 255, 255, 0.14),
        0 12px 34px rgba(6, 14, 30, 0.85);
    z-index: 2;
}

.money-icon {
    position: relative;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ffe5a6, #ffb24a);
    box-shadow: 0 0 0 0.25px rgba(255,255,255,0.9);
}

.money-icon::before {
    content: '$';
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 0.85rem;
    color: rgba(77, 36, 0, 0.9);
}

.donate-label {
    font-weight: 600;
}

.header-left h1 {
    font-size: 2.1rem;
    background: linear-gradient(120deg, #b8ddf0, #7ab8e0, #b8ddf0);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-size: 200% 200%;
    animation: title-glow 14s linear infinite;
    font-family:
        "JetBrains Mono",
        "Fira Code",
        "IBM Plex Mono",
        "Courier New",
        monospace;
    letter-spacing: 0.06em;
    transform: translateY(-1px); /* чуть приподнимаем, чтобы совпало по линии с кнопками в шапке */
}

/* Глитч-заголовок: лёгкий "сигнал рвётся" */
.glitch-title {
    position: relative;
    text-transform: uppercase;
    color: rgba(248, 250, 252, 1);
    text-shadow:
        0 0 12px rgba(255,255,255,0.28),
        0 0 24px rgba(56,189,248,0.35);
}

.glitch-title::before,
.glitch-title::after {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    color: rgba(248, 250, 252, 0.9);
    pointer-events: none;
    mix-blend-mode: screen;
    opacity: 0.55;
}

.glitch-title::before {
    transform: translate(-1px, 1px);
    text-shadow: 0 0 14px rgba(56,189,248,0.22);
    clip-path: inset(0 0 60% 0);
    animation: glitch-shift-1 4.5s infinite steps(1, end);
}

.glitch-title::after {
    transform: translate(2px, -1px);
    text-shadow: 0 0 14px rgba(255,255,255,0.16);
    clip-path: inset(55% 0 0 0);
    animation: glitch-shift-2 6s infinite steps(1, end);
}

.glitch-title {
    background-image:
        linear-gradient(90deg, transparent 0, rgba(255,255,255,0.0) 40%, rgba(255,255,255,0.12) 50%, rgba(56,189,248,0.08) 55%, transparent 70%),
        linear-gradient(90deg, transparent 0, rgba(255,255,255,0.0) 20%, rgba(255,255,255,0.10) 30%, transparent 45%);
    background-size: 240px 100%, 180px 100%;
    background-repeat: no-repeat;
    animation: title-scan 9s linear infinite;
}

@keyframes title-scan {
    0% { background-position: -260px 0, 120% 0; }
    100% { background-position: 120% 0, -220px 0; }
}

@keyframes glitch-shift-1 {
    0%, 74% { transform: translate(-1px, 1px); opacity: 0.35; }
    75% { transform: translate(-2px, 0px); opacity: 0.75; }
    76% { transform: translate(0px, 0px); opacity: 0.4; }
    100% { transform: translate(-1px, 1px); opacity: 0.35; }
}

@keyframes glitch-shift-2 {
    0%, 58% { transform: translate(2px, -1px); opacity: 0.35; }
    59% { transform: translate(1px, -2px); opacity: 0.7; }
    60% { transform: translate(0px, 0px); opacity: 0.4; }
    100% { transform: translate(2px, -1px); opacity: 0.35; }
}

.subtitle {
    margin-top: 0.5rem;
    color: var(--text-soft);
    max-width: 520px;
    font-family:
        "JetBrains Mono",
        "Fira Code",
        "IBM Plex Mono",
        "Courier New",
        monospace;
    letter-spacing: 0.02em;
}

.header-telegram {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.95rem; /* +пару пикселей воздуха */
    border-radius: 0 !important;
    text-decoration: none;
    background: rgba(6, 14, 30, 0.08);
    box-shadow:
        0 0 0 0.5px rgba(40, 140, 220, 0.85),
        0 10px 30px rgba(6, 14, 30, 0.7);
    color: #b8ddf0;
    font-size: 0.85rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: transform 160ms ease, box-shadow 160ms ease;
    position: relative;
    z-index: 0;
}

.header-telegram:hover {
    transform: translateY(-1px) scale(1.02);
    box-shadow:
        0 0 0 0.5px rgba(40, 140, 220, 0.85),
        0 0 0 0.5px rgba(255, 255, 255, 0.12),
        0 12px 34px rgba(6, 14, 30, 0.85);
    z-index: 2;
}

.tg-icon {
    position: relative;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #7cc8e8, #288cdc);
    box-shadow: 0 0 0 0.5px rgba(255,255,255,0.9);
}

.tg-icon::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 12px;
    height: 9px;
    border-radius: 2px;
    background: white;
    transform: translate(-50%, -50%);
    clip-path: polygon(0 0, 100% 50%, 0 100%, 18% 50%);
}

.tg-label {
    font-weight: 500;
}

.simulator-day {
    margin-bottom: 0;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    background: rgba(6, 14, 30, 0.75);
    border: 0.5px solid rgba(40, 150, 220, 0.25);
    border-left: none;
    border-right: none;
    box-shadow:
        0 0 8px rgba(40, 150, 220, 0.06),
        0 22px 70px rgba(4, 8, 20, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.simulator-greeting {
    font-weight: 700;
    color: #e5e7eb;
    margin-bottom: 0.75rem;
}

.today-board-title {
    font-size: 0.85rem;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.today-tasks {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    overflow-x: auto;
}

.task-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.6rem;
    border-radius: 0;
    font-size: 0.8rem;
    border: 0.2px solid rgba(40, 140, 220, 0.18);
    background: rgba(6, 14, 30, 0.96);
    color: #e5e7eb;
}

.task-chip.status-todo {
    border-color: rgba(40, 120, 210, 0.9);
    background: radial-gradient(circle at 0% 0%, rgba(40, 120, 210, 0.4), rgba(15,23,42,0.98));
    color: #b0d4f0;
}

.task-chip.status-inprogress {
    border-color: rgba(251, 191, 36, 0.9);
    background: radial-gradient(circle at 0% 0%, rgba(251, 191, 36, 0.35), rgba(15,23,42,0.98));
    color: #fef9c3;
}

.task-chip.status-done {
    border-color: rgba(34, 197, 94, 0.9);
    background: radial-gradient(circle at 0% 0%, rgba(34, 197, 94, 0.35), rgba(15,23,42,0.98));
    color: #bbf7d0;
}

.sdlc-visual {
    margin: 1.5rem 0;
    padding: 1.5rem;
    border-radius: 18px;
    border: 0.5px solid rgba(40, 150, 220, 0.25);
    width: 100%;
    background: rgba(6, 14, 30, 0.75);
    box-shadow:
        0 0 8px rgba(40, 150, 220, 0.06),
        0 22px 70px rgba(4, 8, 20, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.sdlc-visual h2 {
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
    color: #e5e7eb;
}

.sdlc-steps {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-left: 0;
    margin-bottom: 0.85rem;
    width: 100%;
}

.sdlc-step {
    list-style: none;
    width: 100%;
    text-align: left;
    padding: 0;
    border-radius: 0;
    background: rgba(6, 14, 30, 0.9);
    border: 0.2px solid rgba(40, 140, 220, 0.18);
    color: #b0d4f0;
    font-size: 0.9rem;
    position: relative;
    cursor: pointer;
    transition: background 0.2s ease;
}

.sdlc-step-label {
    display: block;
    padding: 0.75rem 1rem;
    padding-left: 2.5rem;
    position: relative;
}

.sdlc-step::before {
    content: counter(sdlc-counter);
    counter-increment: sdlc-counter;
    position: absolute;
    left: 0.75rem;
    top: 0.75rem;
    font-weight: 600;
    color: rgba(40, 140, 220, 0.8);
    z-index: 1;
}

.sdlc-steps {
    counter-reset: sdlc-counter;
}

.sdlc-step.active {
    background: radial-gradient(circle at 0% 0%, rgba(40, 140, 220, 0.35), rgba(6, 14, 30, 0.98));
    border-color: rgba(40, 140, 220, 0.9);
    color: #f9fafb;
}

.sdlc-step-content {
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(6, 14, 30, 0.5);
    border-top: 1px solid rgba(40, 140, 220, 0.3);
    border-radius: 0 0 8px 8px;
}

.sdlc-step.active .sdlc-step-content {
    display: block;
}

.sdlc-step-content h3 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: #b8ddf0;
}

.sdlc-step-content p {
    color: #e5e7eb;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.sdlc-step-content ul {
    margin-left: 1.5rem;
    margin-top: 0.5rem;
    color: #e5e7eb;
}

.sdlc-step-content li {
    margin-bottom: 0.4rem;
    line-height: 1.5;
}

.sdlc-hint {
    font-size: 0.85rem;
    color: #9ca3af;
}

.tests-panel {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed rgba(40, 140, 220, 0.3);
}

.tests-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.75rem;
}

.quiz-area {
    margin-top: 0.9rem;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    border: 0.5px solid rgba(40, 150, 220, 0.25);
    background: rgba(6, 14, 30, 0.75);
    box-shadow:
        0 0 8px rgba(40, 150, 220, 0.06),
        0 22px 70px rgba(4, 8, 20, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.quiz-progress {
    font-size: 0.8rem;
    color: var(--text-soft);
    margin-bottom: 0.5rem;
}

.quiz-question {
    font-weight: 700;
    color: #e5e7eb;
    margin-bottom: 0.75rem;
}

.quiz-options {
    display: grid;
    gap: 0.5rem;
}

.quiz-options .btn {
    text-align: left;
    width: 100%;
    min-height: 3.1rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    white-space: normal;
}

.quiz-feedback {
    margin-top: 0.8rem;
}

.quiz-feedback .ok {
    border: 0.5px solid rgba(74, 222, 128, 0.7);
    background: rgba(22, 163, 74, 0.14);
    color: #bbf7d0;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
}

.quiz-feedback .bad {
    border: 0.5px solid rgba(248, 113, 113, 0.8);
    background: rgba(248, 113, 113, 0.18);
    color: #ffe4e6;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    margin-bottom: 0.6rem;
}

.quiz-actions {
    margin-top: 0.75rem;
    display: flex;
    justify-content: flex-end;
}

/* Стили для вопросов с определениями и скрытыми словами */
.definition-container {
    margin-top: 1rem;
}

.definition-words {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1rem 0;
    line-height: 2;
}

.definition-word {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    background: rgba(40, 140, 220, 0.2);
    border: 1px solid rgba(40, 140, 220, 0.4);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #b8ddf0;
    font-weight: 500;
}

.definition-word.hidden {
    background: rgba(6, 14, 30, 0.6);
    border-color: rgba(40, 140, 220, 0.2);
    color: transparent;
    position: relative;
    min-width: 60px;
    text-align: center;
}

.definition-word.hidden::after {
    content: '▢';
    color: rgba(40, 140, 220, 0.5);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
}

.definition-word.hidden:hover {
    background: rgba(40, 140, 220, 0.15);
    border-color: rgba(40, 140, 220, 0.4);
}

.definition-word.revealed {
    background: rgba(40, 140, 220, 0.3);
    border-color: rgba(40, 140, 220, 0.6);
    color: #b8ddf0;
    cursor: default;
}

.definition-word.revealed:hover {
    background: rgba(40, 140, 220, 0.35);
}

.definition-controls {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
}

.definition-hint {
    color: #9ca3af;
    font-size: 0.9rem;
    font-style: italic;
    text-align: center;
    margin: 1rem 0;
}

.checklists-panel {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed rgba(40, 140, 220, 0.3);
}

/* Тренажёры / карточки обучения */
.trainer-panel,
.employment-panel {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px dashed rgba(40, 140, 220, 0.3);
}

.trainer-header,
.employment-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.trainer-actions {
    display: inline-flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.trainer-hint {
    margin-top: 0.6rem;
    color: var(--text-soft);
    font-size: 0.85rem;
}

.sdlc-match {
    margin-top: 0.9rem;
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 1rem;
}

.sdlc-bank,
.sdlc-targets {
    border-radius: 18px;
    border: 0.5px solid rgba(40, 150, 220, 0.25);
    background: rgba(6, 14, 30, 0.75);
    box-shadow:
        0 0 8px rgba(40, 150, 220, 0.06),
        0 22px 70px rgba(4, 8, 20, 0.95);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.sdlc-bank {
    padding: 0.85rem;
}

.sdlc-bank-title {
    font-weight: 600;
    font-size: 0.9rem;
    color: #e5e7eb;
    margin-bottom: 0.6rem;
}

.sdlc-bank-items {
    display: grid;
    gap: 0.5rem;
}

.sdlc-chip {
    user-select: none;
    cursor: grab;
    border-radius: 14px;
    padding: 0.55rem 0.7rem;
    border: 0.5px solid rgba(60, 130, 200, 0.75);
    background: rgba(6, 14, 30, 0.35);
    color: #e5e7eb;
    font-size: 0.88rem;
    box-shadow: 0 8px 18px rgba(6, 14, 30, 0.55);
}

.sdlc-chip:active {
    cursor: grabbing;
}

.sdlc-targets {
    padding: 0.85rem;
    display: grid;
    gap: 0.6rem;
}

.sdlc-target-row {
    display: grid;
    grid-template-columns: 1fr 220px;
    gap: 0.8rem;
    align-items: center;
}

.sdlc-target-title {
    font-weight: 700;
    color: #e5e7eb;
}

.sdlc-drop {
    min-height: 46px;
    border-radius: 14px;
    border: 0.5px solid rgba(60, 130, 200, 0.7);
    background: rgba(6, 14, 30, 0.22);
    display: flex;
    align-items: center;
    padding: 0.35rem 0.45rem;
    gap: 0.4rem;
}

.sdlc-drop.is-over {
    border-color: rgba(40, 140, 220, 0.9);
    box-shadow:
        0 0 0 1px rgba(40, 140, 220, 0.35),
        0 0 22px rgba(40, 140, 220, 0.25);
}

.trainer-result {
    margin-top: 0.8rem;
    font-size: 0.9rem;
}

.trainer-result.ok {
    color: #bbf7d0;
    text-shadow: 0 0 16px rgba(74, 222, 128, 0.25);
}

.trainer-result.bad {
    color: #ffe4e6;
    text-shadow: 0 0 16px rgba(248, 113, 113, 0.18);
}

/* Собеседование */
.employment-card {
    margin-top: 0.9rem;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    border: 0.5px solid rgba(40, 150, 220, 0.25);
    background: rgba(6, 14, 30, 0.75);
    box-shadow: 0 0 8px rgba(40, 150, 220, 0.06);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.employment-card-title {
    font-weight: 700;
    color: #e5e7eb;
    margin-bottom: 0.7rem;
}

.qa-list {
    display: grid;
    gap: 0.55rem;
}

.qa-item {
    border-radius: 14px;
    border: 0.5px solid rgba(60, 130, 200, 0.55);
    background: rgba(6, 14, 30, 0.28);
    padding: 0.4rem 0.6rem;
}

.qa-item > summary {
    cursor: pointer;
    font-weight: 650;
    color: #e5e7eb;
    list-style: none;
}

.qa-item > summary::-webkit-details-marker {
    display: none;
}

.qa-answer {
    margin-top: 0.55rem;
    color: #d1d5db;
    font-size: 0.92rem;
    line-height: 1.45;
}

.qa-answer ul {
    margin-top: 0.4rem;
    padding-left: 1.1rem;
}

.qa-tip {
    margin-top: 0.6rem;
    color: var(--text-soft);
    font-size: 0.85rem;
}

@media (max-width: 960px) {
    .sdlc-match {
        grid-template-columns: 1fr;
    }
    .sdlc-target-row {
        grid-template-columns: 1fr;
    }
}

/* =========================
   Mobile / Tablet responsive
   ========================= */
@media (max-width: 960px) {
    body {
        padding: 0;
    }

    .page-shell {
        padding: 1.25rem 0.75rem 2rem;
    }

    .header {
        padding: 1.1rem 1rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
    }

    .header-actions {
        justify-content: flex-start;
        padding-top: 0;
        gap: 0.75rem;
    }

    .header-telegram-group {
        align-items: flex-start;
    }

    /* 3 колонки -> 1 колонка */
    .my {
        flex-direction: column;
        margin: 1rem 0;
    }

    .my .one,
    .my .two,
    .my .three {
        width: 100%;
        min-height: auto;
        border: none;
    }

    /* Левый навигатор: превращаем в горизонтальную полосу */
    .left-sidebar-nav {
        position: static;
        top: auto;
        width: 100%;
        flex: 0 0 auto;
        border-right: none;
        padding: 0.75rem 0.75rem;
        display: flex;
        flex-direction: row;
        gap: 0.5rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .left-sidebar-nav::-webkit-scrollbar {
        display: none;
    }

    .left-nav-link {
        white-space: nowrap;
        flex: 0 0 auto;
        font-size: 0.82rem;
    }

    /* Правая теория: показываем как обычный блок ниже */
    .theory-sidebar {
        margin-top: 1rem;
    }

    .theory-ticker {
        overflow: visible;
    }

    .theory-ticker-inner {
        animation: none;
    }

    /* SDLC и панели */
    .simulator-day,
    .sdlc-visual,
    .bug-list {
        border-left: none;
        padding: 1rem 0.9rem;
    }

    .sdlc-step-label {
        padding: 0.8rem 0.9rem 0.8rem 2.35rem;
    }

    .sdlc-step::before {
        left: 0.65rem;
        top: 0.8rem;
    }
}

@media (max-width: 768px) {
    .header-left h1 {
        font-size: 1.55rem;
        letter-spacing: 0.04em;
    }

    .subtitle {
        font-size: 0.9rem;
        line-height: 1.35;
    }

    .roadmap-banner {
        margin: 1rem auto 0.5rem;
        padding: 0.9rem 0.9rem 0.75rem;
    }

    .roadmap-title {
        font-size: 0.95rem;
    }

    /* Модалки на телефоне: почти full-screen */
    .modal {
        align-items: stretch;
        justify-content: stretch;
        padding: 0;
    }

    .modal-content {
        width: 100%;
        max-width: 100%;
        height: 100dvh;
        max-height: 100dvh;
        border-radius: 0;
        padding: 1rem;
    }

    .jira-modal {
        width: 100%;
        max-width: 100%;
        height: 100dvh;
        max-height: 100dvh;
    }

    .jira-top-nav {
        padding: 0.75rem 0.85rem;
        gap: 0.5rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }

    .jira-nav-item {
        flex: 0 0 auto;
        font-size: 0.82rem;
        padding: 0.4rem 0.55rem;
    }

    .jira-content-wrapper {
        flex-direction: column;
    }

    .jira-sidebar {
        width: 100%;
        flex-direction: row;
        padding: 0.65rem 0.65rem;
        overflow-x: auto;
        gap: 0.5rem;
        border-right: none;
        border-bottom: 0.5px solid rgba(40, 140, 220, 0.28);
    }

    .jira-sidebar::before {
        display: none;
    }

    .jira-sidebar-btn {
        width: auto;
        white-space: nowrap;
        padding: 0.5rem 0.75rem;
        font-size: 0.82rem;
        flex: 0 0 auto;
    }

    .jira-form-area {
        padding: 1rem 0.85rem 1.25rem;
        background: transparent;
    }

    .form-row {
        flex-direction: column;
        gap: 0.75rem;
    }

    .quiz-popup-window {
        width: 96%;
        max-width: 96%;
    }
}

@media (max-width: 480px) {
    .page-shell {
        padding: 1rem 0.6rem 1.6rem;
    }

    .header-donate,
    .header-telegram {
        padding: 0.5rem 0.75rem;
        font-size: 0.82rem;
    }

    .today-board-title {
        font-size: 0.92rem;
    }

    .task-chip {
        font-size: 0.78rem;
    }

    .modal-content {
        padding: 0.85rem;
    }

    .btn-close {
        font-size: 1.6rem;
    }
}

/* Убираем скругления у блоков (кроме кругов/чекпоинтов роадмапа) */
.header,
.main,
.theory-sidebar,
.left-sidebar-nav,
.roadmap-banner,
.simulator-day,
.sdlc-visual,
.quiz-area,
.checklist-run-area,
.checklist-order-area,
.bug-card,
.modal-content,
.quiz-popup-window,
.employment-card,
.qa-item,
.sdlc-bank,
.sdlc-targets,
.sdlc-chip,
.sdlc-drop,
.btn {
    border-radius: 0 !important;
}

.checklists-header h2 {
    font-size: 1.05rem;
    margin-bottom: 0.75rem;
}

.checklists-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.75rem;
}

.checklists-start-actions {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.checklists-start-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.75rem 0 0.85rem;
}

.checklists-start-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.checklist-card-btn {
    width: 100%;
    text-align: left;
    padding: 0.75rem 0.85rem;
    background: rgba(6, 14, 30, 0.25);
    border: 1px solid rgba(40, 140, 220, 0.35);
    color: #e5e7eb;
}

.checklist-card-btn .checklist-card-title {
    font-weight: 700;
    color: #b8ddf0;
    margin-bottom: 0.25rem;
}

.checklist-card-btn .checklist-card-meta {
    font-size: 0.82rem;
    color: rgba(156, 163, 175, 0.95);
    line-height: 1.3;
}

.checklists-header-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: space-between;
}

.checklists-current-title {
    flex: 1;
    text-align: right;
    color: #b8ddf0;
    font-weight: 700;
    font-size: 0.95rem;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

@media (max-width: 960px) {
    .checklists-start-list {
        grid-template-columns: 1fr;
    }
}

.checklists-types,
.checklists-modes {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.checklists-type-btn,
.checklists-mode-btn {
    font-size: 0.82rem;
    padding: 0.35rem 0.8rem;
}

.checklists-content {
    display: grid;
    gap: 0.75rem;
}

.checklist-run-area,
.checklist-order-area {
    padding: 0.85rem 0.9rem;
    border-radius: 14px;
    border: 1px solid rgba(40, 140, 220, 0.45);
    background: var(--panel-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.checklist-run-area ul,
.checklist-order-area ul {
    list-style: none;
    padding-left: 0;
    display: grid;
    gap: 0.35rem;
}

.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    font-size: 0.86rem;
}

.checklist-item input[type="checkbox"] {
    margin-top: 0.15rem;
}

.checklist-order-item {
    padding: 0.35rem 0.45rem;
    border-radius: 6px;
    border: 1px dashed rgba(200, 210, 255, 0.9);
    background: rgba(245, 247, 255, 0.9);
    cursor: grab;
    font-size: 0.86rem;
}

.checklist-order-item.dragging {
    opacity: 0.7;
    border-style: solid;
}

.checklist-order-footer {
    margin-top: 0.6rem;
    display: flex;
    justify-content: flex-end;
}

.checklist-order-result {
    margin-top: 0.5rem;
    font-size: 0.84rem;
}

/* Подсказки над полями (вместо placeholder) */
.field-hint {
    display: block;
    margin-top: 0.35rem;
    margin-bottom: 0.45rem;
    color: rgba(156, 163, 175, 0.95);
    font-size: 0.82rem;
    line-height: 1.35;
}

/* Конструктор чек-листов */
.checklist-categories {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.checklist-category-card {
    padding: 0.85rem 0.9rem;
    border: 1px solid rgba(40, 140, 220, 0.35);
    background: rgba(6, 14, 30, 0.35);
    box-shadow: 0 16px 50px rgba(6, 14, 30, 0.85);
}

.checklist-category-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    justify-content: space-between;
    margin-bottom: 0.55rem;
}

.checklist-category-head .btn {
    padding: 0.35rem 0.6rem;
    font-size: 0.78rem;
}

.checklist-category-name {
    flex: 1;
    min-width: 0;
}

.checklist-category-card textarea {
    width: 100%;
    resize: vertical;
}

.roadmap-banner {
    margin: 1.4rem auto 0.6rem;
    max-width: none;
    width: 100%;
    /* усиленный синий градиент: темнее уже к середине, глубже в тёмно-синий справа */
    background:
        radial-gradient(circle at 0% 0%, rgba(40, 120, 210, 0.14), transparent 48%),
        radial-gradient(circle at 100% 0%, rgba(20, 60, 150, 0.16), transparent 52%),
        linear-gradient(
            135deg,
            rgba(4, 10, 28, 0.02),
            rgba(20, 60, 150, 0.14),
            rgba(6, 14, 30, 0.88)
        );
    border-radius: 0;
    box-shadow:
        18px 18px 18px rgba(255, 255, 255, 0.08),
        0 30px 90px rgba(6, 14, 30, 0.98);
    padding: 1.4rem 1.6rem 1.2rem; /* чуть больше отступ сверху/слева, чтобы glow не бился об край */
    border: 0.5px solid transparent; /* оставляем только внешний бордер ::before */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: visible; /* glow пульсации не должен "резаться" по краям блока */
}

.roadmap-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    border: 0.5px solid rgba(40, 140, 220, 0.32);
    transform: translate(1px, 1px);
    pointer-events: none;
}

.roadmap-scroll {
    overflow-y: visible;
}

.roadmap-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-soft);
    margin-bottom: 0.7rem; /* чуть выше от пульсации */
}

.roadmap-toggle input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #3a7ec0;
}

.roadmap-title {
    font-weight: 500;
    color: #e5e7eb;
}

.roadmap-content {
    font-size: 0.8rem;
}

.roadmap-scroll {
    overflow: visible; /* вертикальный glow не режем */
    padding-bottom: 0;
    scrollbar-width: none; /* Firefox */
}

.roadmap-scroll::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.roadmap-scroll-inner {
    overflow-x: auto; /* горизонтальный скролл оставляем тут */
    overflow-y: visible;
    padding: 12px 0 8px; /* ещё +8px, чтобы кружки были дальше от подписи и краёв */
    scrollbar-width: none;
}

.roadmap-scroll-inner::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.roadmap-timeline {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 2.2rem;
    padding: 0.95rem 0.85rem 0.7rem; /* марджин внутри панели для пульсации */
    min-width: 650px;
}

.roadmap-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    /* линия проходит уже под подписями (под Trainee и остальными), поэтому опускаем её ниже центра */
    top: calc(50% + 20px);
    transform: translateY(-50%);
    height: 0.2px;
    border-radius: 0;
    background: rgba(40, 140, 220, 0.18);
}

.roadmap-timeline-progress {
    position: absolute;
    left: 0;
    top: calc(50% + 20px);
    transform: translateY(-50%);
    height: 0.2px;
    border-radius: 0;
    background: rgba(40, 140, 220, 0.35);
    width: 0;
    transition: width 0.3s ease-out;
}

.roadmap-step {
    position: relative;
    flex: 0 0 auto;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.roadmap-step--grade-label {
    min-width: 140px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-right: 0.4rem;
}

.roadmap-grade-label {
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    color: rgba(248, 250, 252, 0.98);
    text-shadow:
        0 0 10px rgba(255,255,255,0.18),
        0 0 18px rgba(56,189,248,0.22);
}

.roadmap-step-grade-row {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    justify-content: center;
}

.roadmap-circle {
    position: relative;
    z-index: 2;
    width: 34px;
    height: 30px;
    border-radius: 0;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    border: none;
    background:
        linear-gradient(180deg, rgba(20, 50, 90, 0.7) 0%, rgba(8, 20, 50, 0.95) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b0d4f1;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    /* Гекс-бордер через outline нельзя — используем box-shadow внутри clip-path не видно,
       поэтому бордер рисуется через ::after */
}

/* Внешний гекс-бордер (второй слой) — чуть больше, имитирует обводку */
.roadmap-circle::before {
    content: '';
    position: absolute;
    inset: -2px;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    background: linear-gradient(180deg, rgba(40, 140, 220, 0.35), rgba(20, 80, 160, 0.15));
    z-index: -1;
    pointer-events: none;
}

/* Glass-блик на верхней части гекса */
.roadmap-circle::after {
    content: '';
    position: absolute;
    top: 1px;
    left: 15%;
    right: 15%;
    height: 40%;
    background: linear-gradient(180deg, rgba(150, 210, 255, 0.12), transparent);
    clip-path: polygon(10% 0%, 90% 0%, 100% 100%, 0% 100%);
    pointer-events: none;
}

.roadmap-step--done .roadmap-circle {
    background: linear-gradient(180deg, #1d6ed8 0%, #0c5baa 100%);
    color: #ffffff;
    filter: drop-shadow(0 0 6px rgba(40, 140, 220, 0.7));
}

.roadmap-step--current .roadmap-circle {
    background: linear-gradient(180deg, rgba(20, 60, 120, 0.9), rgba(8, 25, 60, 0.95));
    color: #b8ddf0;
    filter: drop-shadow(0 0 10px rgba(40, 140, 220, 0.8));
}

.roadmap-step--current .roadmap-circle::before {
    content: '';
    position: absolute;
    inset: -4px;
    clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
    background: linear-gradient(180deg, rgba(40, 140, 220, 0.5), rgba(30, 100, 200, 0.25));
    animation: roadmap-pulse 1.6s ease-out infinite;
    z-index: -1;
}

.roadmap-step--done .roadmap-circle-index::after {
    content: '✓';
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 0.8rem;
    color: #fff;
}

.roadmap-step--done .roadmap-circle-index {
    opacity: 0;
}

.roadmap-step-labels {
    margin-top: 0.95rem; /* ещё +4px отступа между кружком и подписями */
    font-size: 0.75rem;
    line-height: 1.25;
    min-height: 2.4em;
    display: grid;
    align-content: start;
}

/* Для стартового Trainee чуть больше отступа от кружка до подписи */
.roadmap-step[data-step-id="trainee-start"] .roadmap-step-labels {
    margin-top: 1.15rem;
}

.roadmap-step-grade {
    font-weight: 600;
    color: #e5e7eb;
}

.roadmap-step--grade .roadmap-step-grade {
    font-size: 0.86rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.roadmap-step-skill {
    color: #9ca3af;
    max-width: 100px;
    margin: 0 auto;
}

.roadmap-circle-index {
    position: relative;
    font-size: 0; /* по умолчанию кружок пустой, без цифр */
}

/* Большой гекс для фундаментальных навыков */
.roadmap-circle--large {
    width: 52px;
    height: 46px;
    font-size: 1.1rem;
}

.roadmap-circle--large::before {
    inset: -3px;
}

.roadmap-step--fundamental .roadmap-step-labels {
    margin-top: 1.25rem;
}

.roadmap-step--fundamental .roadmap-step-grade {
    font-size: 0.95rem;
    max-width: 160px;
}

/* Гекс среднего размера для методик и стратегий */
.roadmap-circle--medium {
    width: 42px;
    height: 37px;
    font-size: 0.9rem;
}

.roadmap-circle--medium::before {
    inset: -2.5px;
}

.roadmap-step--medium .roadmap-step-labels {
    margin-top: 1.1rem;
    min-height: 3em;
}

.roadmap-step--medium .roadmap-step-skill {
    font-size: 0.78rem;
    max-width: 130px;
}

/* Под-навыки списком */
.roadmap-subskills {
    list-style: none;
    margin: 0.5rem 0 0 0;
    padding: 0;
    font-size: 0.68rem;
    color: #6b7280;
    text-align: left;
    max-width: 140px;
    margin-left: auto;
    margin-right: auto;
}

.roadmap-subskills li {
    padding: 0.15rem 0;
    line-height: 1.2;
}

.roadmap-subskills li::before {
    content: '• ';
    color: rgba(40, 140, 220, 0.5);
}

.roadmap-note {
    margin-top: 0.55rem;
    font-size: 0.75rem;
    color: var(--text-soft);
}

@keyframes roadmap-pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(1.4);
        opacity: 0;
    }
}

.main {
    flex: 1;
    padding: 2rem;
    background: rgba(6, 14, 30, 0.7);
    border-radius: 26px;
    box-shadow:
        0 0 12px rgba(40, 150, 220, 0.05),
        0 30px 90px rgba(4, 8, 20, 0.98);
    border: 0.5px solid rgba(40, 150, 220, 0.22);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
}

/* Кнопка: стеклянный неоновый стиль */
.btn {
    position: relative;
    padding: 10px 22px;
    border-radius: 999px;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    background: rgba(6, 14, 30, 0.1);
    color: #e5e7eb;
    box-shadow:
        4px 4px 18px rgba(20, 90, 200, 0.9),
        0 0 0 1px rgba(40, 140, 220, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    transition: 0.5s;
    overflow: hidden;
}

.btn:hover {
    transform: translate(0, -3px);
    box-shadow:
        0 20px 40px 0 rgba(20, 90, 200, 1),
        0 0 0 1px rgba(40, 120, 210, 0.7);
}

.btn-primary {
    background: linear-gradient(135deg, #1a5ab0, #153d8a);
    border-color: rgba(40, 140, 220, 0.95);
}

/* Кнопка "Создать багрепорт" должна визуально идти поверх любых рамок по краям колонок */
#createBugReportBtn {
    position: relative;
    z-index: 3;
    margin-top: 1.5rem; /* отступ от блока "Процесс дня" после того, как убрали gap у .my .two */
    /* возвращаем прежнее оформление именно для этой кнопки */
    background: rgba(6, 14, 30, 0.35);
    background-image: none; /* перекрываем градиент из .btn-primary */
    border-color: rgba(40, 140, 220, 0.9);
}

.btn-secondary {
    background: rgba(6, 14, 30, 0.85);
    color: #e5e7eb;
    border-color: rgba(40, 140, 220, 0.7);
}

.bug-list {
    margin-top: 2rem;
    padding: 1.5rem 1.1rem 0 1.1rem;
    border-top: 0.5px solid rgba(40, 150, 220, 0.2);
    border-left: none;
    border-right: none;
    background: rgba(6, 14, 30, 0.8);
    box-shadow: 0 22px 70px rgba(4, 8, 20, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.empty-state {
    color: var(--text-soft);
    font-style: italic;
}

/* Модальное окно */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.modal-content {
    /* ещё менее прозрачный фон для форм багрепорта и чеклистов */
    background: radial-gradient(circle at 0% 0%, rgba(40, 140, 220, 0.90), rgba(6, 14, 30, 0.98));
    padding: 2rem;
    border-radius: 18px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid rgba(40, 140, 220, 0.6);
    box-shadow:
        0 0 0 1px rgba(6, 14, 30, 0.9),
        0 26px 80px rgba(6, 14, 30, 0.95);
}

/* Jira-подобный интерфейс для модального окна баг-репорта */
.jira-modal {
    width: 90%;
    max-width: 90%;
    height: 90vh;
    max-height: 90vh;
    padding: 0;
    display: flex;
    flex-direction: column;
    border-radius: 0;
}

/* Верхняя панель навигации (как в Jira) */
.jira-top-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 1.5rem;
    background: rgba(6, 14, 30, 0.95);
    border-bottom: 1px solid rgba(40, 140, 220, 0.3);
    flex-shrink: 0;
}

.jira-nav-item {
    color: #e5e7eb;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.jira-nav-item:hover {
    background: rgba(40, 140, 220, 0.15);
}

.jira-nav-bold {
    font-weight: 700;
    color: #b8ddf0;
}

.jira-top-nav .btn-close {
    margin-left: auto;
    color: #e5e7eb;
    font-size: 1.5rem;
    padding: 0.25rem 0.5rem;
}

.jira-top-nav .btn-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

/* Обёртка для основного контента */
.jira-content-wrapper {
    display: flex;
    flex: 1;
    overflow: hidden;
}

/* Левая боковая панель навигации */
.jira-sidebar {
    width: 220px;
    background: rgba(4, 10, 28, 0.21);
    border-right: 0.5px solid rgba(40, 140, 220, 0.38);
    padding: 1.7rem 0.85rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
    overflow-y: auto;
    box-shadow:
        0 0 0 1.5px rgba(40, 140, 220, 0.12),
        0 26px 80px rgba(6, 14, 30, 0.9);
    position: relative;
}

.jira-sidebar::before {
    content: '';
    position: absolute;
    inset: 0;
    border-width: 0.5px 0 0.5px 0.5px;
    border-style: solid;
    border-color: rgba(40, 140, 220, 0.38);
    transform: translate(-1px, -1px);
    pointer-events: none;
}

.jira-sidebar-btn {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.52rem 0.78rem;
    border-radius: 0;
    border: none;
    background: rgba(6, 14, 30, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #e5e7eb;
    font-size: 0.82rem;
    cursor: pointer;
    margin-bottom: 0;
    box-shadow:
        0 0 0 0.5px rgba(40, 140, 220, 0.38),
        0 8px 24px rgba(6, 14, 30, 0.85);
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
    position: relative;
    z-index: 0;
}

.jira-sidebar-btn:hover {
    background: rgba(6, 14, 30, 0.24);
    transform: scale(1.02);
    box-shadow:
        0 0 0 0.5px rgba(40, 140, 220, 0.55),
        0 0 0 1.5px rgba(255, 255, 255, 0.06),
        0 12px 28px rgba(6, 14, 30, 0.95);
    z-index: 2;
}

.jira-sidebar-btn.active {
    background: rgba(40, 140, 220, 0.25);
    color: #b8ddf0;
    font-weight: 600;
    box-shadow:
        0 0 0 0.5px rgba(40, 140, 220, 0.7),
        0 0 0 1.5px rgba(255, 255, 255, 0.08),
        0 12px 28px rgba(6, 14, 30, 0.95);
}

/* Область формы */
.jira-form-area {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 2rem;
    background: rgba(6, 14, 30, 0.5);
}

.jira-form-area .modal-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(40, 140, 220, 0.2);
}

.jira-form-area .modal-header h2 {
    margin: 0;
    color: #b8ddf0;
    font-size: 1.5rem;
}

/* Внутри форм (модалок) делаем кнопки тёмными, как "Скачать TXT / PDF" */
.modal-content .btn-primary,
.modal-content .btn-secondary {
    background: rgba(6, 14, 30, 0.85);
    color: #e5e7eb;
    border-color: rgba(40, 140, 220, 0.7);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.btn-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
}

.btn-close:hover {
    color: #333;
}

.form-placeholder {
    color: #999;
}

/* Форма багрепорта */
.bug-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.form-group label {
    font-size: 0.95rem;
    font-weight: 600;
    color: #e5e7eb;
}

.required {
    color: #e53e3e;
}

.hint {
    font-size: 0.8rem;
    color: #9ca3af;
}

.bug-form input[type=\"text\"],
.bug-form textarea,
.bug-form select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border: 1px solid #d0d0d0;
    font-size: 0.95rem;
    font-family: inherit;
}

.bug-form textarea {
    resize: vertical;
    min-height: 60px;
}

.bug-form input[type=\"text\"]:focus,
.bug-form textarea:focus,
.bug-form select:focus {
    outline: none;
    border-color: #3a7ec0;
    box-shadow: 0 0 0 1px rgba(102, 126, 234, 0.3);
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.5rem;
    gap: 4px; /* небольшой 4px отступ между кнопками "Сохранить отчёт" и "Отмена" */
}

/* Карточка багрепорта в списке */
.bug-card {
    border: 0.5px solid rgba(40, 150, 220, 0.22);
    border-radius: 16px;
    padding: 1rem 1.25rem;
    margin-top: 1rem;
    background: rgba(6, 14, 30, 0.9);
    box-shadow:
        0 0 6px rgba(40, 150, 220, 0.04),
        0 20px 50px rgba(4, 8, 20, 0.9);
}

.bug-card h3 {
    margin-bottom: 0.25rem;
    font-size: 1rem;
    color: #f9fafb;
}

.bug-meta {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-bottom: 0.5rem;
}

.bug-card details {
    margin-top: 0.25rem;
}

.bug-card summary {
    cursor: pointer;
    font-size: 0.9rem;
    color: #e5e7eb;
}

.bug-card pre {
    font-family: Consolas, 'Courier New', monospace;
    font-size: 0.8rem;
    background: rgba(6, 14, 30, 0.9);
    border-radius: 8px;
    border: 1px solid rgba(30, 100, 210, 0.8);
    padding: 0.5rem;
    white-space: pre-wrap;
}

.bug-card .btn-download {
    margin-top: 10px; /* на 10px ниже текста/деталей багрепорта */
}

.bug-card .download-actions {
    margin-top: 10px;
    display: flex;
    justify-content: flex-end;
    gap: 4px;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.step-row {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.step-index {
    width: 1.5rem;
    text-align: right;
    margin-top: 0.35rem;
    font-size: 0.85rem;
    color: #9ca3af;
}

.step-input {
    flex: 1 1 auto;
    padding: 0.4rem 0.6rem;
    border-radius: 4px;
    border: 1px solid rgba(40, 140, 220, 0.55);
    background: rgba(6, 14, 30, 0.95);
    color: #e5e7eb;
}

.add-step-btn {
    margin-top: 0.5rem;
}

.make-screenshot-btn {
    margin-top: 0.4rem;
}

/* Правый сайдбар с теорией */
.theory-sidebar {
    width: 280px;
    flex: 0 0 280px; /* фиксированная ширина справа */
    background: rgba(4, 10, 28, 0.32); /* чуть ярче, чтобы блок явно был виден справа */
    border-radius: 0;
    box-shadow:
        0 26px 80px rgba(15,23,42,0.98); /* только мягкая внешняя тень, без "бордера" по периметру */
    padding: 1.25rem 1.5rem;
    font-size: 0.85rem;
    position: sticky;
    top: 1.5rem;
    max-height: 100vh;
    display: flex;
    flex-direction: column;
    align-self: stretch;
    min-height: 100vh; /* во всю высоту видимой области экрана */
    overflow: hidden;
    margin-right: 0;
}

.theory-sidebar::before {
    content: '';
    position: absolute;
    inset: 0;
    border: none; /* бордер даёт обёртка .my .three, псевдоэлемент только для внутренних эффектов при необходимости */
    transform: none;
    pointer-events: none;
}

.theory-sidebar h2 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: #e5e7eb;
}

.theory-ticker {
    overflow: hidden;
    flex: 1;
}

.theory-ticker-inner {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    animation: theory-scroll 1040s linear infinite;
}

.theory-block-title {
    font-weight: 600;
    color: #e5e7eb;
}

.theory-ticker ul {
    padding-left: 1rem;
}

.theory-ticker li {
    margin-bottom: 0.4rem;
    line-height: 1.4;
}

@keyframes theory-scroll {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

.footer {
    text-align: center;
    padding: 1.5rem 0 0.5rem;
    color: rgba(255,255,255,0.7);
}


@keyframes greeting-pop {
    0% {
        transform: scale(0.8);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes title-glow {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 200% 50%;
    }
}

@keyframes diagonals-slide {
    0% {
        transform: translate3d(-20px, 0, 0) rotate(2deg);
    }
    100% {
        transform: translate3d(40px, -20px, 0) rotate(2deg);
    }
}

/* Левый сайдбар-навигация по разделам симулятора */
.main-layout-columns {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    flex: 1 1 0%;
    min-width: 0;
}

.left-sidebar-nav {
    width: 220px;
    flex: 0 0 220px; /* фиксированная ширина слева */
    border-radius: 0;
    background: rgba(4, 10, 28, 0.21);
    border: 0.5px solid rgba(255, 255, 255, 0.18);
    border-right: none; /* правую линию даём только обёртке .my .one, чтобы не было двойного бордера */
    box-shadow:
        0 0 0 1.5px rgba(40, 140, 220, 0.12),
        0 26px 80px rgba(15,23,42,0.9);
    padding: 1.7rem 0.85rem 1rem; /* опускаем кнопки ещё на ~10px от верхнего края сайдбара */
    display: flex;
    flex-direction: column;
    gap: 6px; /* +2px воздуха между кнопками */
    position: sticky;
    top: 1.5rem;
    align-self: stretch;
    min-height: 100vh; /* во всю высоту видимой области экрана */
    overflow: hidden;
    margin-left: 0; /* вплотную к левому краю */
}

.left-sidebar-nav::before {
    content: '';
    position: absolute;
    inset: 0;
    border-width: 0.5px 0 0.5px 0.5px; /* сверху, снизу и слева; справа убираем, чтобы не дублировать бордер */
    border-style: solid;
    border-color: rgba(40, 140, 220, 0.38);
    transform: translate(-1px, -1px);
    pointer-events: none;
}

.left-sidebar-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: #e5e7eb;
    margin-bottom: 0.5rem;
}

.left-nav-link {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.52rem 0.78rem; /* +пару пикселей воздуха внутри */
    border-radius: 0;
    border: none;
    background: rgba(6, 14, 30, 0.2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #e5e7eb;
    font-size: 0.82rem;
    cursor: pointer;
    margin-bottom: 0;
    box-shadow:
        0 0 0 0.5px rgba(40, 140, 220, 0.38), /* бордер виден всегда */
        4px 4px 14px rgba(6, 14, 30, 0.55);
    transition:
        transform 160ms ease,
        box-shadow 160ms ease,
        background 160ms ease;
    position: relative;
    z-index: 0;
}

.left-nav-link:hover {
    background: rgba(6, 14, 30, 0.24);
    transform: scale(1.02); /* лёгкий скейл на ~полпикселя */
    box-shadow:
        0 0 0 0.5px rgba(40, 140, 220, 0.55),
        0 0 0 1.5px rgba(255, 255, 255, 0.06),
        0 12px 28px rgba(6, 14, 30, 0.95);
    z-index: 2; /* поверх соседних кнопок */
}

.main-content {
    flex: 1 1 0%;
    min-width: 0;
}

.section-hint {
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: rgba(229, 231, 235, 0.88);
}

/* В модалке чек‑листов подсказку делаем ещё заметнее */
#checklistsModal .section-hint {
    color: rgba(248, 250, 252, 0.92);
    margin-top: 0.25rem;
}

/* Попап‑квиз каждые N минут */
.quiz-popup {
    position: fixed;
    inset: 0;
    background: rgba(6, 14, 30, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1500;
}

.quiz-popup.hidden {
    display: none;
}

.quiz-popup-window {
    /* делаем окно мини-теста ещё менее прозрачным, чтобы совпадало по плотности с формами */
    background: radial-gradient(circle at 0% 0%, rgba(40, 140, 220, 0.68), rgba(6, 14, 30, 0.98));
    border-radius: 22px;
    max-width: 720px;
    width: 98%;
    box-shadow:
        0 0 0 0.5px rgba(40, 140, 220, 0.65),
        0 0 0 1.5px rgba(255, 255, 255, 0.05),
        0 26px 80px rgba(15,23,42,0.98);
    padding: 1.4rem 1.6rem 1.6rem;
}

/* Модалка собеседования: немного шире и с равномерными карточками */
.interview-modal {
    max-width: 920px;
}

.interview-panel {
    margin-top: 0.75rem;
}

.interview-qa-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.interview-qa {
    border-radius: 16px;
    border: 0.5px solid rgba(60, 130, 200, 0.5);
    background: radial-gradient(circle at 0% 0%, rgba(20, 60, 150, 0.45), rgba(6, 14, 30, 0.96));
    padding: 0.85rem 0.95rem;
}

.interview-question {
    font-size: 0.98rem;
    margin-bottom: 0.4rem;
}

.interview-qa .btn {
    margin-bottom: 0.5rem;
}

.interview-answer {
    font-size: 0.9rem;
    color: var(--text-main);
}

.interview-answer ul {
    padding-left: 1.1rem;
}

.interview-answer li {
    margin-bottom: 0.25rem;
}

/* Таблица в ответах собеседования */
.interview-answer table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.75rem 0;
    font-size: 0.85rem;
    background: rgba(6, 14, 30, 0.6);
    border-radius: 8px;
    overflow: hidden;
}

.interview-answer table thead {
    background: rgba(40, 100, 180, 0.3);
}

.interview-answer table th,
.interview-answer table td {
    padding: 0.5rem 0.75rem;
    border: 0.5px solid rgba(40, 140, 220, 0.15);
    text-align: left;
}

.interview-answer table th {
    font-weight: 600;
    color: #e5e7eb;
    background: rgba(20, 60, 120, 0.5);
}

.interview-answer table td {
    color: #9ca3af;
}

.interview-answer table tr:hover {
    background: rgba(40, 100, 180, 0.1);
}

.quiz-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.quiz-popup-title {
    font-weight: 600;
    color: #e5e7eb;
    font-size: 0.95rem;
}

.quiz-popup-close {
    background: none;
    border: none;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    color: #9ca3af;
}

.quiz-popup-close:hover {
    color: #e5e7eb;
}

.quiz-popup-progress {
    font-size: 0.8rem;
    color: #9ca3af;
    margin-bottom: 0.4rem;
}

.quiz-popup-question {
    font-weight: 600;
    color: #e5e7eb;
    margin-bottom: 0.6rem;
}

.quiz-popup-options {
    display: grid;
    gap: 0.4rem;
}

.quiz-popup-options .btn {
    width: 100%;
    text-align: left;
}

.quiz-popup-feedback {
    margin-top: 0.7rem;
}

.quiz-popup-actions {
    margin-top: 0.8rem;
    display: flex;
    justify-content: flex-end;
}

/* Приветственный попап с matrix rain + плавный пролёт */
.greeting-popup {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1600;
    background: rgba(0, 2, 8, 0.88);
}

.greeting-popup.hidden {
    display: none;
}

.greeting-matrix-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    transform-origin: center center;
    will-change: transform;
}

.greeting-popup-text {
    position: relative;
    z-index: 2;
    font-size: 3.2rem;
    line-height: 1.2;
    font-weight: 400;
    text-align: center;
    font-family:
        "JetBrains Mono",
        "Fira Code",
        "IBM Plex Mono",
        "Courier New",
        monospace;
    letter-spacing: 0.05em;
    color: rgba(130, 200, 255, 0.85);
    text-shadow:
        0 0 14px rgba(40, 150, 220, 0.5),
        0 0 30px rgba(40, 150, 220, 0.2),
        0 2px 6px rgba(0, 2, 8, 0.9);
    transform-origin: center center;
    will-change: transform, opacity;
}

@media (max-width: 768px) {
    .greeting-popup-text {
        font-size: 2rem;
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .greeting-popup-text {
        font-size: 1.5rem;
    }
}

