:root {
    color-scheme: light;
    --ink: #172033;
    --muted: #647084;
    --line: #d9e1ea;
    --panel: #ffffff;
    --page: #f4f7fb;
    --accent: #166a72;
    --accent-dark: #10535a;
    --gold: #b77620;
    --danger: #b42318;
    --shadow: 0 18px 45px rgba(23, 32, 51, 0.10);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

a {
    color: inherit;
}

.wrap {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
}

.site-header {
    background: #111827;
    color: #fff;
    border-bottom: 4px solid var(--gold);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 76px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    text-decoration: none;
}

.brand span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-weight: 900;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.nav-links a {
    border-radius: 8px;
    color: #d7dde7;
    padding: 9px 11px;
    text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.10);
    color: #fff;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
    gap: 34px;
    align-items: center;
    padding: 56px 0 44px;
}

.hero h1,
.page h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(36px, 5vw, 64px);
    line-height: 1.02;
}

.hero p,
.page > p,
.about-layout p {
    max-width: 720px;
    color: var(--muted);
    font-size: 18px;
}

.eyebrow {
    color: var(--accent);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
}

.button,
button {
    border: 0;
    border-radius: 8px;
    cursor: pointer;
    display: inline-block;
    font: inherit;
    font-weight: 800;
    padding: 13px 18px;
    text-decoration: none;
}

.primary {
    background: var(--accent);
    color: #fff;
}

.primary:hover {
    background: var(--accent-dark);
}

.secondary {
    background: #e8edf3;
    color: var(--ink);
}

.hero-panel,
.panel,
.side-panel,
.contact-card,
.timeline article,
.feature-grid article {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.hero-panel {
    padding: 20px;
}

.paper {
    background: #f9fbfd;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 24px;
}

.paper-line {
    width: 78%;
    height: 12px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: #cfdbe7;
}

.paper-line.wide {
    width: 100%;
}

.paper-line.short {
    width: 48%;
}

.score-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 26px 0 14px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.paper ul {
    margin: 0;
    padding-left: 20px;
    color: var(--muted);
}

.feature-band {
    background: #e9eff5;
    padding: 34px 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.feature-grid article,
.timeline article,
.contact-card {
    padding: 24px;
}

h2,
h3 {
    margin: 0 0 12px;
    line-height: 1.18;
}

.feature-grid p,
.timeline p,
.contact-card p,
.service-section p,
.human-help p,
.hint,
.muted {
    color: var(--muted);
}

.service-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: center;
    padding: 44px 0 52px;
}

.service-copy h2 {
    max-width: 720px;
    font-size: clamp(28px, 4vw, 44px);
}

.price-card,
.human-help {
    background: #111827;
    border-radius: 8px;
    color: #fff;
    padding: 26px;
    box-shadow: var(--shadow);
}

.price-card p,
.human-help p {
    color: #d7dde7;
}

.price-label {
    color: #f0c47d;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.price-card strong {
    display: block;
    font-size: 52px;
    line-height: 1;
    margin: 8px 0 12px;
}

.human-help {
    grid-column: 1 / -1;
}

.page {
    padding: 52px 0;
}

.timeline {
    display: grid;
    gap: 18px;
    margin: 28px 0;
}

.timeline article {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 14px 18px;
}

.timeline span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: #edf3f4;
    color: var(--accent);
    font-weight: 900;
}

.timeline h2,
.timeline p {
    grid-column: 2;
}

.about-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
}

.review-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
    padding: 24px 0 52px;
}

.panel,
.side-panel {
    padding: 26px;
}

label {
    display: block;
    margin: 18px 0 8px;
    font-weight: 700;
}

input[type="file"],
textarea,
input[type="text"] {
    width: 100%;
    border: 1px solid #c8d2df;
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

input[type="file"] {
    padding: 14px;
}

textarea,
input[type="text"] {
    padding: 14px 15px;
}

textarea {
    min-height: 220px;
    resize: vertical;
}

.compact-textarea {
    min-height: 130px;
}

.medium-textarea {
    min-height: 160px;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

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

.alert {
    border: 1px solid #f1b8b3;
    background: #fff3f2;
    color: var(--danger);
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 18px;
    font-weight: 700;
}

.output {
    white-space: pre-wrap;
    border: 1px solid var(--line);
    background: #f9fbfd;
    border-radius: 8px;
    padding: 18px;
    overflow-x: auto;
}

.question-shell {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f9fbfd;
    margin-top: 20px;
    overflow: hidden;
}

.question-topline {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--line);
    background: #edf3f4;
    color: var(--accent);
    font-size: 14px;
    font-weight: 900;
    padding: 13px 16px;
}

.question-card {
    padding: 20px;
}

.question-card[hidden] {
    display: none;
}

.question-card label {
    color: var(--ink);
    font-size: 20px;
    line-height: 1.3;
    margin-top: 10px;
}

.question-number {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    font-weight: 900;
}

.loading-screen {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(17, 24, 39, 0.86);
}

.loading-screen[hidden] {
    display: none;
}

.loading-panel {
    width: min(680px, 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.30);
    padding: 30px;
}

.loading-panel h2 {
    font-size: clamp(28px, 5vw, 44px);
}

.loading-panel p:not(.eyebrow) {
    color: var(--muted);
    margin-bottom: 22px;
}

.progress-row {
    display: grid;
    grid-template-columns: 1fr 58px;
    gap: 14px;
    align-items: center;
}

.progress-track {
    height: 14px;
    overflow: hidden;
    border-radius: 999px;
    background: #dbe4ee;
}

.progress-fill {
    width: 20%;
    height: 100%;
    border-radius: inherit;
    background: var(--accent);
    transition: width 0.4s ease;
}

.status-list {
    display: grid;
    gap: 9px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.status-list li {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f9fbfd;
    color: var(--muted);
    padding: 10px 12px;
}

body.is-loading {
    overflow: hidden;
}

.steps {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.step {
    display: grid;
    grid-template-columns: 30px 1fr;
    gap: 12px;
    align-items: start;
    color: var(--muted);
}

.step span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: #edf3f4;
    color: var(--accent);
    font-weight: 900;
}

.meta {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}

@media (max-width: 840px) {
    .nav,
    .hero,
    .review-grid,
    .about-layout,
    .service-section {
        grid-template-columns: 1fr;
    }

    .nav {
        display: grid;
        justify-items: start;
        padding: 16px 0;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .field-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .panel,
    .side-panel {
        padding: 22px;
    }

    .question-topline,
    .progress-row {
        grid-template-columns: 1fr;
    }

    .loading-panel {
        padding: 22px;
    }
}
