/* Главная страница */
.hero-card {
    min-height: 560px;
    padding: 42px;
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: "";
    position: absolute;
    left: -130px;
    bottom: -130px;
    width: 290px;
    height: 290px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 201, 255, 0.14), transparent 68%);
    filter: blur(8px);
}

.hero-card::after {
    content: "";
    position: absolute;
    right: -92px;
    top: -80px;
    width: 260px;
    height: 260px;
    border-radius: 72px;
    background: linear-gradient(135deg, rgba(146,254,157,0.22), rgba(0,201,255,0.18));
    transform: rotate(16deg);
    opacity: 0.9;
}

.hero-card > * {
    position: relative;
    z-index: 1;
}

.hero-text {
    max-width: 760px;
    color: var(--muted-2);
    font-size: 18px;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 34px;
}

.hero-metrics div,
.hint-card {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
}

.hero-metrics span,
.hint-card strong {
    display: block;
    color: var(--text);
    font-weight: 800;
}

.hero-metrics p,
.hint-card p,
.info-card p,
.card-header p,
.report-hero p,
.section-heading p,
.switch-row p,
.confirm-panel p,
.final-card p {
    color: var(--muted);
    margin: 6px 0 0;
    line-height: 1.5;
}

.process-panel {
    min-height: 560px;
    padding: 30px;
    border: 1px solid var(--border);
    background:
        radial-gradient(circle at 92% 8%, rgba(0, 201, 255, 0.16), transparent 30%),
        radial-gradient(circle at 5% 95%, rgba(146, 254, 157, 0.11), transparent 34%),
        linear-gradient(145deg, rgba(12, 21, 34, 0.96), rgba(13, 24, 39, 0.92));
    backdrop-filter: blur(18px);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.process-panel::before {
    content: "";
    position: absolute;
    right: -68px;
    top: -78px;
    width: 255px;
    height: 255px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(0,201,255,0.22), rgba(146,254,157,0.13));
    opacity: 0.9;
}

.process-panel::after {
    content: "";
    position: absolute;
    left: -110px;
    bottom: -120px;
    width: 280px;
    height: 280px;
    border-radius: 80px;
    background: linear-gradient(135deg, rgba(146,254,157,0.10), rgba(0,201,255,0.08));
    transform: rotate(-18deg);
    opacity: 0.75;
}

.process-panel > * {
    position: relative;
    z-index: 1;
}

.process-panel-header {
    margin-bottom: 22px;
}

.process-panel h2 {
    max-width: 390px;
    font-size: 42px;
    line-height: 1.05;
    letter-spacing: -0.055em;
}

.process-line {
    display: grid;
    gap: 14px;
}

.process-step-card {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 14px;
    align-items: flex-start;
    padding: 17px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.process-step-card.active {
    background:
        linear-gradient(135deg, rgba(146,254,157,0.13), rgba(0,201,255,0.11)),
        rgba(255, 255, 255, 0.055);
    border-color: rgba(146,254,157,0.25);
}

.process-number {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    color: #07101d;
    background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(0, 201, 255, 0.16);
}

.process-step-card h3 {
    font-size: 17px;
    margin-bottom: 6px;
}

.process-step-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.analysis-card,
.card-dark {
    padding: 30px;
    margin-bottom: 18px;
}

.analysis-card {
    margin-top: 24px;
}

.info-card {
    padding: 22px;
}

.info-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    color: #07101d;
    font-weight: 900;
    background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
    margin-bottom: 18px;
}

/* Предпросмотр и отчёт */
.report-hero {
    padding: 32px;
    background:
        linear-gradient(135deg, rgba(146,254,157,0.16), rgba(0,201,255,0.12)),
        var(--card);
    overflow: hidden;
}

.compact-hero h1 {
    font-size: clamp(38px, 5vw, 62px);
    margin: 18px 0 10px;
}

.stat-card {
    padding: 20px;
    min-width: 0;
}

.stat-card p {
    margin: 0 0 8px;
    color: var(--muted);
}

.stat-card strong {
    display: block;
    font-size: 23px;
    word-break: break-word;
}

.card-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 18px;
}

.plain-text {
    color: var(--muted-2);
    line-height: 1.65;
}

.columns-box {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.columns-box span {
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border);
    color: var(--muted-2);
    font-size: 13px;
}

.table-wrap {
    overflow: auto;
    border-radius: 18px;
    border: 1px solid var(--border);
    max-height: 520px;
}

.preview-table-wrap {
    max-height: 520px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background: rgba(0,0,0,0.16);
}

.table th,
.table td {
    padding: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    text-align: left;
    white-space: nowrap;
}

.table th {
    color: var(--accent-a);
    background: rgba(255,255,255,0.04);
    font-weight: 800;
    position: sticky;
    top: 0;
    z-index: 1;
}

.table td {
    color: var(--muted-2);
}

.confirm-panel {
    margin-top: 18px;
    padding: 26px;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 18px;
    align-items: center;
}

.confirm-button {
    margin: 0;
}

.accent-card {
    border-color: rgba(0,201,255,0.24);
    background:
        linear-gradient(135deg, rgba(146,254,157,0.08), rgba(0,201,255,0.08)),
        var(--card);
}

.request-box {
    padding: 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    margin-bottom: 16px;
}

.request-box p {
    color: var(--muted-2);
    line-height: 1.6;
}

.result-cards-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 18px;
}

.result-card {
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.result-card span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    margin-bottom: 14px;
    border-radius: 13px;
    color: #07101d;
    background: linear-gradient(135deg, var(--accent-a), var(--accent-b));
    font-weight: 900;
}

.result-card h3 {
    margin-bottom: 8px;
    font-size: 18px;
}

.result-card p {
    margin: 0;
    color: var(--muted-2);
    line-height: 1.55;
}

.details-title {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
}

.details-title::-webkit-details-marker {
    display: none;
}

.details-title span {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.details-title b {
    color: var(--accent-a);
    font-size: 13px;
}

.details-content {
    margin-top: 20px;
}

.report-text {
    color: var(--muted-2);
    line-height: 1.75;
    font-size: 16px;
    max-height: 760px;
    overflow: auto;
    padding-right: 10px;
}

.report-text h2,
.report-text h3 {
    color: var(--text);
    margin: 22px 0 10px;
}

.report-text p {
    margin: 10px 0;
}

.report-text ul {
    margin: 10px 0 18px;
    padding-left: 24px;
}

.report-text li {
    margin: 7px 0;
}

.report-text code {
    background: rgba(255,255,255,0.08);
    padding: 2px 6px;
    border-radius: 6px;
}

.report-gap {
    height: 8px;
}

.report-table-wrap {
    width: 100%;
    overflow-x: auto;
    margin: 14px 0 20px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.08);
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 720px;
    background: rgba(0, 0, 0, 0.18);
}

.report-table th,
.report-table td {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    text-align: left;
    vertical-align: top;
}

.report-table th {
    color: var(--accent-a);
    background: rgba(255,255,255,0.05);
    font-weight: 800;
}

.report-table td {
    color: var(--muted-2);
}

.report-divider {
    border: none;
    height: 1px;
    background: rgba(255,255,255,0.12);
    margin: 22px 0;
}

.report-text blockquote {
    margin: 14px 0;
    padding: 14px 16px;
    border-left: 4px solid var(--accent-a);
    border-radius: 12px;
    background: rgba(146, 254, 157, 0.08);
    color: var(--muted-2);
}

.charts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.chart-frame {
    margin: 0;
    padding: 14px;
    border-radius: 22px;
    background: rgba(0, 0, 0, 0.32);
    border: 1px solid var(--border);
}

.chart-frame img {
    width: 100%;
    display: block;
    border-radius: 16px;
}

.timeline {
    display: grid;
    gap: 12px;
}

.timeline-item {
    border-radius: 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    overflow: hidden;
}

.timeline-item summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    padding: 16px;
}

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

.timeline-item summary span {
    color: var(--muted);
}

.timeline-item summary strong {
    color: var(--accent-a);
}

.timeline-content {
    border-top: 1px solid var(--border);
    padding: 16px;
}

.warning-pill.inside {
    display: inline-block;
    margin-bottom: 16px;
    color: #fff2c7;
    border-color: rgba(255, 209, 102, 0.26);
    background: rgba(255, 209, 102, 0.11);
}

.export-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.final-card {
    padding: 26px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center;
    margin-top: 18px;
}
