.predictor-page {
    background: #f7fbfb;
    color: #1f2a32;
    font-family: Roboto, Arial, sans-serif;
}

.predictor-shell {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.predictor-hero {
    background: linear-gradient(135deg, #e8faf8 0%, #f7fbfb 58%, #ffffff 100%);
    border-bottom: 1px solid #d9ecec;
    padding: 46px 0;
}

.predictor-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 36px;
    align-items: center;
}

.predictor-kicker {
    margin: 0 0 10px;
    color: #087f83;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
}

.predictor-hero h1 {
    margin: 0 0 18px;
    max-width: 720px;
    font-size: 42px;
    line-height: 1.14;
}

.predictor-hero p {
    margin: 0;
    max-width: 680px;
    color: #4d6266;
    font-size: 18px;
    line-height: 1.6;
}

.predictor-hero__actions,
.predictor-results__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.predictor-hero__panel,
.predictor-preview,
.predictor-step,
.predictor-results {
    border: 1px solid #dce9ea;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(20, 58, 64, 0.07);
}

.predictor-hero__panel {
    padding: 28px;
}

.predictor-hero__panel span,
.predictor-preview__label {
    display: block;
    margin-bottom: 8px;
    color: #60777b;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.predictor-hero__panel strong {
    display: block;
    font-size: 30px;
    line-height: 1.15;
}

.predictor-hero__panel p {
    margin-top: 12px;
    font-size: 15px;
}

.predictor-context,
.predictor-factors,
.predictor-faq {
    padding-top: 38px;
    padding-bottom: 38px;
}

.predictor-context__lead {
    max-width: 820px;
}

.predictor-context h2,
.predictor-factors h2,
.predictor-faq h2 {
    margin: 0;
    color: #1f2a32;
    font-size: 30px;
    line-height: 1.2;
}

.predictor-context__lead > p:last-child {
    margin: 14px 0 0;
    color: #4d6266;
    font-size: 17px;
    line-height: 1.6;
}

.predictor-context__cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.predictor-context__cards article,
.predictor-factors,
.predictor-faq details {
    border: 1px solid #dce9ea;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(20, 58, 64, 0.05);
}

.predictor-context__cards article {
    padding: 20px;
}

.predictor-context__cards span {
    display: block;
    margin-bottom: 8px;
    color: #60777b;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.predictor-context__cards strong {
    display: block;
    color: #087f83;
    font-size: 30px;
    line-height: 1.1;
}

.predictor-context__cards p {
    margin: 12px 0 0;
    color: #4d6266;
    line-height: 1.55;
}

.predictor-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid #0f9ea3;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.predictor-btn_primary {
    background: #0f9ea3;
    color: #fff;
}

.predictor-btn_secondary {
    background: #fff;
    color: #087f83;
}

.predictor-btn_light {
    border-color: #d4e1e2;
    background: #f7fbfb;
    color: #344b50;
}

.predictor-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 22px;
    padding-top: 36px;
    padding-bottom: 36px;
    align-items: start;
}

.predictor-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.predictor-advanced {
    grid-column: 1 / -1;
    border: 1px solid #dce9ea;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(20, 58, 64, 0.05);
}

.predictor-advanced summary {
    padding: 16px 18px;
    color: #087f83;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}

.predictor-advanced__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    padding: 0 18px 18px;
}

.predictor-step {
    margin: 0;
    padding: 18px;
}

.predictor-step legend {
    padding: 0 6px;
    color: #087f83;
    font-size: 18px;
    font-weight: 700;
}

.predictor-step label {
    display: grid;
    gap: 7px;
    margin-top: 14px;
    color: #31484d;
    font-weight: 600;
}

.predictor-step input,
.predictor-step select {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #cddcde;
    border-radius: 8px;
    padding: 10px 12px;
    color: #1f2a32;
    font: inherit;
    background: #fff;
}

.predictor-step input[type="range"] {
    padding: 0;
}

.predictor-step output {
    color: #087f83;
    font-weight: 700;
}

.predictor-check {
    grid-template-columns: 18px 1fr;
    align-items: start;
}

.predictor-check input {
    width: 18px;
    margin-top: 3px;
}

.predictor-form__footer {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}

.predictor-form__footer p {
    margin: 0;
    color: #60777b;
}

.predictor-preview {
    position: sticky;
    top: 16px;
    padding: 20px;
}

.predictor-preview strong,
.predictor-preview span {
    display: block;
}

.predictor-preview strong {
    font-size: 24px;
}

.predictor-preview span {
    margin-top: 10px;
    color: #60777b;
    line-height: 1.5;
}

.predictor-results {
    margin-bottom: 44px;
    padding: 24px;
}

.predictor-results__head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: start;
}

.predictor-results h2 {
    margin: 0;
    font-size: 32px;
}

.predictor-results__head > p {
    max-width: 360px;
    margin: 0;
    color: #60777b;
    line-height: 1.5;
}

.predictor-scenarios {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 22px;
}

.predictor-scenario {
    border: 1px solid #dce9ea;
    border-radius: 8px;
    padding: 16px;
    background: #fbfefe;
}

.predictor-scenario strong {
    display: block;
    font-size: 24px;
}

.predictor-scenario p {
    min-height: 58px;
    margin: 8px 0 0;
    color: #60777b;
    font-size: 14px;
    line-height: 1.4;
}

.predictor-scenario dl {
    display: grid;
    gap: 8px;
    margin: 14px 0 0;
}

.predictor-scenario div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}

.predictor-scenario dt {
    color: #60777b;
}

.predictor-scenario dd {
    margin: 0;
    font-weight: 700;
}

.predictor-chart {
    margin-top: 22px;
    min-height: 260px;
    border: 1px solid #dce9ea;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.predictor-chart svg {
    display: block;
    width: 100%;
    height: 260px;
}

.predictor-channel-table,
.predictor-warnings {
    margin-top: 22px;
    border: 1px solid #dce9ea;
    border-radius: 8px;
    background: #fff;
}

.predictor-channel-table {
    overflow-x: auto;
}

.predictor-channel-table h3 {
    margin: 0;
    padding: 16px 18px 0;
    font-size: 20px;
}

.predictor-channel-table table {
    width: 100%;
    min-width: 620px;
    border-collapse: collapse;
}

.predictor-channel-table th,
.predictor-channel-table td {
    padding: 12px 18px;
    border-bottom: 1px solid #e5f0f1;
    text-align: left;
}

.predictor-channel-table thead th {
    color: #60777b;
    font-size: 13px;
    text-transform: uppercase;
}

.predictor-channel-table tbody th {
    color: #1f2a32;
}

.predictor-channel-table td {
    color: #31484d;
    font-weight: 700;
}

.predictor-warnings {
    padding: 14px 18px;
    background: #fffdf5;
}

.predictor-warnings ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 18px;
    color: #725a20;
    line-height: 1.45;
}

.predictor-insights {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 16px;
    margin-top: 22px;
}

.predictor-insights section {
    border: 1px solid #dce9ea;
    border-radius: 8px;
    padding: 18px;
    background: #fbfefe;
}

.predictor-insights h3 {
    margin: 0 0 12px;
    font-size: 20px;
}

.predictor-insights ul {
    display: grid;
    gap: 8px;
    margin: 0;
    padding-left: 18px;
    color: #31484d;
    line-height: 1.45;
}

.predictor-insights dl {
    display: grid;
    gap: 8px;
    margin: 0;
}

.predictor-insights dl div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.predictor-insights dt {
    color: #60777b;
}

.predictor-insights dd {
    margin: 0;
    font-weight: 700;
}

.predictor-error {
    color: #a33434;
    font-weight: 700;
}

.predictor-factors {
    margin-bottom: 38px;
    padding: 24px;
}

.predictor-factors {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 22px;
    align-items: start;
}

.predictor-factors ul {
    display: grid;
    gap: 10px;
    margin: 0;
    padding-left: 20px;
    color: #31484d;
    font-size: 16px;
    line-height: 1.5;
}

.predictor-factors__actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.predictor-faq {
    padding-top: 0;
    padding-bottom: 54px;
}

.predictor-faq h2 {
    margin-bottom: 18px;
}

.predictor-faq details {
    padding: 18px 20px;
}

.predictor-faq details + details {
    margin-top: 10px;
}

.predictor-faq summary {
    color: #1f2a32;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
}

.predictor-faq p {
    margin: 12px 0 0;
    color: #4d6266;
    line-height: 1.6;
}

.predictor-faq a {
    color: #087f83;
    font-weight: 700;
}

@media (max-width: 960px) {
    .predictor-hero__grid,
    .predictor-workspace,
    .predictor-form,
    .predictor-advanced__grid,
    .predictor-context__cards,
    .predictor-factors {
        grid-template-columns: 1fr;
    }

    .predictor-preview {
        position: static;
    }
}

@media (max-width: 720px) {
    .predictor-hero {
        padding: 34px 0;
    }

    .predictor-hero h1 {
        font-size: 31px;
    }

    .predictor-context h2,
    .predictor-factors h2,
    .predictor-faq h2 {
        font-size: 25px;
    }

    .predictor-scenarios,
    .predictor-insights,
    .predictor-results__head {
        grid-template-columns: 1fr;
        display: grid;
    }
}
