﻿:root {
    --pit-bg-main: #05080D;
    --pit-bg-deep: #020409;
    --pit-bg-panel: #0B1118;
    --pit-bg-card: #101820;
    --pit-bg-card-soft: #151E27;
    --pit-red: #E10600;
    --pit-red-bright: #FF120A;
    --pit-red-dark: #9B0500;
    --pit-red-soft: rgba(225, 6, 0, 0.16);
    --pit-white: #FFFFFF;
    --pit-text-main: #F4F4F4;
    --pit-text-soft: #C7CCD1;
    --pit-text-muted: #8A929A;
    --pit-graphite: #1A1F26;
    --pit-steel: #2A323C;
    --pit-metal: #384654;
    --pit-border: rgba(255, 255, 255, 0.10);
    --pit-border-strong: rgba(255, 255, 255, 0.18);
    --pit-navy: #07111A;
    --pit-ocean: #0D1D27;
    --pit-ocean-soft: #132936;
    --pit-success: #20C46B;
    --pit-warning: #F2A900;
    --pit-danger: #E10600;
    --pit-shadow-heavy: 0 24px 80px rgba(0, 0, 0, 0.50);
    --pit-shadow-red: 0 12px 30px rgba(225, 6, 0, 0.22);
    --pit-radius-lg: 22px;
    --pit-radius-md: 18px;
    --pit-radius-sm: 14px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--pit-bg-main);
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--pit-bg-main);
    color: var(--pit-text-main);
    font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
}

.pit-page {
    min-height: 100vh;
    padding: 48px;
    background: radial-gradient(circle at top left, rgba(225, 6, 0, 0.18), transparent 28%), radial-gradient(circle at bottom right, rgba(56, 70, 84, 0.22), transparent 34%), linear-gradient(135deg, #020409 0%, #07111A 48%, #05080D 100%);
}

.pit-hero,
.pit-dashboard,
.pit-actions,
.pit-session,
.pit-feedback,
.pit-grid {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

.pit-hero {
    min-height: 300px;
    display: grid;
    grid-template-columns: 1.55fr .8fr;
    gap: 28px;
    align-items: stretch;
    padding: 36px;
    border-radius: var(--pit-radius-lg);
    background: linear-gradient(145deg, rgba(16, 24, 32, 0.98), rgba(5, 8, 13, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    box-shadow: var(--pit-shadow-heavy), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    position: relative;
    overflow: hidden;
    margin-bottom: 28px;
}

    .pit-hero::before,
    .pit-panel::before,
    .pit-session::before,
    .pit-feedback::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: linear-gradient(90deg, rgba(225, 6, 0, 0.12), transparent 22%), radial-gradient(circle at top right, rgba(255, 255, 255, 0.06), transparent 24%);
        opacity: 0.75;
    }

    .pit-hero > *,
    .pit-panel > *,
    .pit-session > *,
    .pit-feedback > * {
        position: relative;
        z-index: 1;
    }

.pit-kicker {
    color: var(--pit-red);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 12px;
    font-weight: 800;
}

.pit-hero h1 {
    color: var(--pit-white);
    font-size: clamp(38px, 5vw, 68px);
    line-height: .95;
    margin: 14px 0 18px;
    font-weight: 900;
    letter-spacing: -0.055em;
}

.pit-hero p {
    color: var(--pit-text-soft);
    font-size: 18px;
    line-height: 1.7;
    max-width: 780px;
    margin: 0;
}

.pit-hero-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 28px;
    border-radius: var(--pit-radius-md);
    background: linear-gradient(145deg, rgba(21, 30, 39, 0.96), rgba(10, 16, 22, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid rgba(225, 6, 0, 0.75);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

    .pit-hero-card span,
    .pit-hero-card small {
        color: var(--pit-text-muted);
        line-height: 1.55;
    }

    .pit-hero-card strong {
        color: var(--pit-white);
        font-size: 28px;
        font-weight: 900;
        line-height: 1.08;
        margin: 10px 0;
    }

.pit-dashboard {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.pit-card,
.pit-list-item,
.pit-summary-item,
.pit-item {
    background: linear-gradient(145deg, rgba(21, 30, 39, 0.96), rgba(10, 16, 22, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 3px solid rgba(225, 6, 0, 0.65);
    border-radius: var(--pit-radius-md);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.pit-card {
    padding: 22px;
}

    .pit-card span {
        color: var(--pit-text-muted);
        font-size: 13px;
        font-weight: 750;
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }

    .pit-card strong {
        display: block;
        margin: 8px 0;
        color: var(--pit-white);
        font-size: 34px;
        font-weight: 900;
    }

    .pit-card small {
        color: var(--pit-text-muted);
    }

.pit-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.pit-btn {
    min-height: 52px;
    border-radius: 999px;
    padding: 0 22px;
    font-family: inherit;
    font-weight: 850;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    transition: .2s ease;
}

    .pit-btn:hover {
        transform: translateY(-2px);
    }

.pit-btn-primary {
    background: linear-gradient(135deg, var(--pit-red), var(--pit-red-dark));
    color: var(--pit-white);
    border: 1px solid rgba(225, 6, 0, 0.75);
    box-shadow: var(--pit-shadow-red), inset 0 1px 0 rgba(255, 255, 255, 0.20);
}

    .pit-btn-primary:hover {
        background: linear-gradient(135deg, var(--pit-red-bright), #B80600);
    }

.pit-btn-secondary {
    background: rgba(255, 255, 255, 0.06) !important;
    color: var(--pit-text-main) !important;
    border: 1px solid var(--pit-border) !important;
    box-shadow: none !important;
}

    .pit-btn-secondary:hover {
        border-color: rgba(225, 6, 0, 0.55) !important;
        background: rgba(225, 6, 0, 0.08) !important;
    }

.pit-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 24px;
}

.pit-panel,
.pit-session,
.pit-feedback {
    position: relative;
    overflow: hidden;
    border-radius: var(--pit-radius-lg);
    background: linear-gradient(145deg, rgba(11, 17, 24, 0.76), rgba(5, 8, 13, 0.70));
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.pit-panel {
    padding: 28px;
}

.pit-panel-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: end;
    margin-bottom: 18px;
}

    .pit-panel-header h2 {
        color: var(--pit-white);
        margin: 0;
        font-size: 26px;
        font-weight: 900;
        letter-spacing: -0.03em;
    }

        .pit-panel-header h2::before {
            content: "";
            display: inline-block;
            width: 22px;
            height: 3px;
            background: var(--pit-red);
            margin-right: 10px;
            vertical-align: middle;
            border-radius: 999px;
        }

    .pit-panel-header span {
        color: var(--pit-text-muted);
        font-weight: 650;
    }

.pit-list,
.pit-summary {
    display: grid;
    gap: 14px;
}

.pit-list-item,
.pit-summary-item {
    padding: 18px;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

    .pit-list-item:hover,
    .pit-summary-item:hover {
        transform: translateY(-3px);
        border-color: rgba(225, 6, 0, 0.72);
        background: linear-gradient(145deg, rgba(225, 6, 0, 0.10), rgba(10, 16, 22, 0.96));
    }

.pit-list-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.pit-list-item h3,
.pit-summary-item h3 {
    color: var(--pit-white);
    margin: 9px 0;
    font-size: 20px;
    line-height: 1.18;
    font-weight: 900;
    letter-spacing: -0.025em;
}

.pit-list-item p,
.pit-summary-item p {
    color: var(--pit-text-muted);
    font-size: 14px;
    line-height: 1.45;
    margin: 0;
}

.pit-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(225, 6, 0, 0.14);
    color: var(--pit-white);
    border: 1px solid rgba(225, 6, 0, 0.55);
    font-weight: 850;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.pit-priority {
    color: var(--pit-red-bright);
    font-weight: 900;
    font-size: 22px;
}

.pit-session {
    padding: 28px;
    margin-bottom: 24px;
}

.pit-session-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .pit-session-header h2 {
        color: var(--pit-white);
        margin: 6px 0 0;
        font-size: 26px;
        font-weight: 900;
        letter-spacing: -0.03em;
    }

.pit-progress {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    border: 2px solid rgba(225, 6, 0, 0.75);
    background: rgba(225, 6, 0, 0.10);
    display: grid;
    place-items: center;
    color: var(--pit-white);
    font-weight: 900;
    box-shadow: var(--pit-shadow-red);
}

.pit-item {
    margin-top: 22px;
    padding: 22px;
}

.pit-question-title {
    color: var(--pit-white);
    font-size: 26px;
    margin: 12px 0;
    font-weight: 900;
    letter-spacing: -0.03em;
}

.pit-question-content {
    color: var(--pit-text-soft);
    font-size: 16px;
    line-height: 1.7;
}

.pit-options {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.pit-option {
    min-height: 52px;
    text-align: left;
    border: 1px solid var(--pit-border);
    border-radius: var(--pit-radius-sm);
    padding: 14px;
    color: var(--pit-text-main);
    background: rgba(255, 255, 255, 0.045);
    cursor: pointer;
    font-family: inherit;
    font-weight: 750;
    transition: .2s ease;
}

    .pit-option:hover,
    .pit-option.selected {
        border-color: rgba(225, 6, 0, 0.70);
        background: rgba(225, 6, 0, 0.10);
        transform: translateY(-1px);
    }

.pit-textarea {
    width: 100%;
    min-height: 130px;
    margin-top: 16px;
    padding: 16px;
    border-radius: var(--pit-radius-sm);
    border: 1px solid var(--pit-border);
    background: rgba(255, 255, 255, 0.045);
    color: var(--pit-text-main);
    outline: none;
    resize: vertical;
    font-family: inherit;
    line-height: 1.55;
}

    .pit-textarea::placeholder {
        color: var(--pit-text-muted);
    }

    .pit-textarea:focus {
        border-color: rgba(225, 6, 0, 0.65);
        background: rgba(225, 6, 0, 0.06);
    }

.pit-difficulty {
    margin-top: 16px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    color: var(--pit-text-muted);
    font-weight: 750;
}

    .pit-difficulty button {
        width: 38px;
        height: 38px;
        border-radius: 50%;
        border: 1px solid var(--pit-border);
        background: rgba(255, 255, 255, 0.06);
        color: var(--pit-text-main);
        cursor: pointer;
        font-family: inherit;
        font-weight: 850;
    }

        .pit-difficulty button.selected {
            border-color: rgba(225, 6, 0, 0.75);
            background: linear-gradient(135deg, var(--pit-red), var(--pit-red-dark));
            color: var(--pit-white);
            box-shadow: var(--pit-shadow-red);
        }

.pit-answer-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 18px;
}

.pit-feedback {
    padding: 20px 24px;
    margin-bottom: 24px;
    border-left: 3px solid rgba(225, 6, 0, 0.75);
}

    .pit-feedback.ok {
        border-left-color: var(--pit-success);
    }

    .pit-feedback.err {
        border-left-color: var(--pit-danger);
    }

    .pit-feedback h3 {
        color: var(--pit-white);
        margin: 0 0 8px;
        font-size: 22px;
        font-weight: 900;
    }

    .pit-feedback p {
        color: var(--pit-text-soft);
        margin: 0;
        line-height: 1.6;
    }

.pit-summary-metrics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
    color: var(--pit-text-muted);
    font-size: 13px;
    margin-top: 14px;
}

    .pit-summary-metrics span {
        border: 1px solid var(--pit-border);
        border-radius: var(--pit-radius-sm);
        padding: 10px;
        background: rgba(255, 255, 255, 0.045);
        font-weight: 700;
    }

.hidden,
.pit-hidden {
    display: none !important;
}

.pit-empty {
    padding: 24px;
    color: var(--pit-text-muted);
    border: 1px dashed var(--pit-border);
    border-radius: var(--pit-radius-md);
    background: linear-gradient(145deg, rgba(21, 30, 39, 0.96), rgba(10, 16, 22, 0.96));
    text-align: center;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--pit-bg-deep);
}

::-webkit-scrollbar-thumb {
    background: var(--pit-steel);
    border-radius: 999px;
}

    ::-webkit-scrollbar-thumb:hover {
        background: var(--pit-metal);
    }

@media (max-width: 1100px) {
    .pit-hero {
        grid-template-columns: 1fr;
    }

    .pit-grid {
        grid-template-columns: 1fr;
    }

    .pit-dashboard {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .pit-page {
        padding: 24px;
    }

    .pit-hero,
    .pit-panel,
    .pit-session {
        padding: 28px;
        border-radius: 18px;
    }

        .pit-hero h1 {
            font-size: 38px;
        }
}

@media (max-width: 640px) {
    .pit-page {
        padding: 16px;
    }

    .pit-dashboard {
        grid-template-columns: 1fr;
    }

    .pit-actions {
        flex-direction: column;
    }

    .pit-btn {
        width: 100%;
    }

    .pit-hero,
    .pit-panel,
    .pit-session {
        padding: 22px;
    }

    .pit-session-header {
        align-items: flex-start;
        gap: 18px;
        flex-direction: column;
    }

    .pit-summary-metrics {
        grid-template-columns: 1fr;
    }
}
