:root {
    --fc-brand: #454576;
    --fc-brand-2: #3a3a66;
    --fc-violet: #8a7ff0;
    --fc-lavender: #b9b2ff;
    --fc-ink: #111827;
    --fc-muted: #5b6172;
    --fc-bg: #f4f4f7;
    --fc-line: #e5e7eb;
    --fc-dark: #1d1b3a;
    --fc-white: #ffffff;
    --fc-soft: #f8f8fb;
    --fc-success: #27845b;
    --fc-warning: #8b5c16;
    color-scheme: light;
    color: var(--fc-ink);
    background: var(--fc-bg);
    font-family: "Open Sans", Arial, Helvetica, sans-serif;
    font-synthesis: none;
}

* { box-sizing: border-box; }
html { min-width: 320px; scroll-behavior: smooth; background: var(--fc-bg); }
body { min-height: 100vh; margin: 0; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { display: block; max-width: 100%; }

:focus-visible {
    outline: 3px solid rgba(138, 127, 240, .6);
    outline-offset: 3px;
}

.calculator-page { background: var(--fc-bg); }

.office-page { min-height: 100vh; background: var(--fc-bg); }
.office-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    padding: 14px max(24px, calc((100vw - 1180px) / 2));
    border-bottom: 1px solid var(--fc-line);
    background: rgba(255, 255, 255, .94);
}
.office-brand { display: flex; align-items: center; gap: 18px; color: var(--fc-brand); font-weight: 700; text-decoration: none; }
.office-brand img { width: 122px; }
.office-brand span { padding-left: 18px; border-left: 1px solid var(--fc-line); }
.office-public-link,
.office-row-link,
.office-create-link {
    color: var(--fc-brand);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}
.office-nav { display: flex; align-items: center; gap: 22px; }
.office-nav a { position: relative; padding: 9px 0; color: var(--fc-muted); font-weight: 750; text-decoration: none; }
.office-nav a.is-active { color: var(--fc-brand); }
.office-nav a.is-active::after { position: absolute; right: 0; bottom: 2px; left: 0; height: 2px; border-radius: 2px; background: var(--fc-violet); content: ""; }
.office-nav .office-nav-action { padding: 10px 16px; border-radius: 999px; color: #fff; background: var(--fc-brand); }
.office-nav .office-nav-action::after { display: none; }
.office-catalog-error { margin: 0 0 18px; padding: 14px 18px; border: 1px solid #efb5b5; border-radius: 14px; color: #842828; background: #fff1f1; font-weight: 700; }
.office-catalog-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 34px; }
.office-catalog-form { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 24px; border: 1px solid var(--fc-line); border-radius: 22px; background: #fff; }
.office-catalog-form > span { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #fff; background: var(--fc-brand); font-size: 13px; font-weight: 800; }
.office-catalog-form h2 { margin: 0; color: var(--fc-dark); font-size: 19px; }
.office-catalog-form label { display: grid; gap: 7px; color: var(--fc-muted); font-size: 12px; font-weight: 700; }
.office-catalog-form input,
.office-catalog-form select { width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid var(--fc-line); border-radius: 10px; color: var(--fc-ink); background: #fff; font: inherit; font-size: 14px; }
.office-catalog-form small { color: var(--fc-muted); font-weight: 500; line-height: 1.4; }
.office-catalog-form button { margin-top: auto; min-height: 44px; border: 0; border-radius: 12px; color: #fff; background: var(--fc-brand); font: inherit; font-weight: 750; cursor: pointer; }
.office-catalog-list { overflow: hidden; border: 1px solid var(--fc-line); border-radius: 24px; background: #fff; }
.office-catalog-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 26px; }
.office-catalog-heading h2 { margin: 4px 0 0; color: var(--fc-dark); font-size: 26px; }
.office-catalog-heading dl { display: flex; gap: 26px; margin: 0; }
.office-catalog-heading dl > div { display: grid; gap: 4px; text-align: right; }
.office-catalog-heading dt { color: var(--fc-muted); font-size: 11px; }
.office-catalog-heading dd { margin: 0; color: var(--fc-dark); font-size: 21px; font-weight: 800; }
.office-catalog-section { border-top: 1px solid var(--fc-line); }
.office-catalog-section summary { display: flex; align-items: center; justify-content: space-between; padding: 18px 26px; color: var(--fc-dark); font-weight: 800; cursor: pointer; }
.office-catalog-section summary small { color: var(--fc-muted); }
.office-catalog-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 26px 24px; }
.office-catalog-chips span { padding: 8px 11px; border-radius: 9px; background: var(--fc-soft); font-size: 13px; font-weight: 650; }
.office-catalog-list i { margin-left: 7px; color: #27845b; font-size: 10px; font-style: normal; font-weight: 800; text-transform: uppercase; }
.office-catalog-table-wrap { overflow: auto; max-height: 520px; }
.office-catalog-table-wrap table { width: 100%; border-collapse: collapse; }
.office-catalog-table-wrap th,
.office-catalog-table-wrap td { padding: 12px 26px; border-top: 1px solid var(--fc-line); text-align: left; font-size: 13px; }
.office-catalog-table-wrap th { position: sticky; top: 0; color: var(--fc-muted); background: var(--fc-soft); font-size: 11px; text-transform: uppercase; }
.office-tariff-manager { display: grid; grid-template-columns: minmax(0, .85fr) minmax(320px, 1.15fr); gap: 26px; margin: 0 0 30px; padding: 28px; border-radius: 24px; color: #fff; background: var(--fc-brand); }
.office-tariff-copy h2 { margin: 5px 0 12px; font-size: 28px; }
.office-tariff-copy p { max-width: 540px; margin: 0; color: rgba(255,255,255,.72); line-height: 1.55; }
.office-tariff-copy .eyebrow { color: #c8c1ff; }
.office-tariff-create { display: grid; gap: 12px; padding: 20px; border-radius: 18px; background: rgba(255,255,255,.1); }
.office-tariff-create label { display: grid; gap: 7px; color: rgba(255,255,255,.72); font-size: 12px; font-weight: 700; }
.office-tariff-create input,
.office-tariff-create select { width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid rgba(255,255,255,.18); border-radius: 10px; color: var(--fc-ink); background: #fff; font: inherit; }
.office-tariff-create button,
.office-tariff-submit button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 11px; color: var(--fc-brand); background: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.office-tariff-profiles { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.office-tariff-profiles > p { color: rgba(255,255,255,.7); }
.office-tariff-profiles a { display: grid; gap: 4px; padding: 15px 17px; border: 1px solid rgba(255,255,255,.13); border-radius: 13px; color: #fff; background: rgba(255,255,255,.08); text-decoration: none; }
.office-tariff-profiles span { overflow: hidden; color: rgba(255,255,255,.62); font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.office-tariff-profiles i { color: #c8c1ff; font-size: 12px; font-style: normal; font-weight: 750; }
.office-tariff-editor { max-width: 1080px; }
.office-tariff-form { display: grid; gap: 16px; }
.office-tariff-section { display: grid; grid-template-columns: minmax(210px, .42fr) minmax(0, 1fr); gap: 30px; padding: 26px; border: 1px solid var(--fc-line); border-radius: 20px; background: #fff; }
.office-tariff-section h2 { margin: 0 0 8px; color: var(--fc-dark); font-size: 20px; }
.office-tariff-section p { margin: 0; color: var(--fc-muted); font-size: 13px; line-height: 1.5; }
.office-tariff-grid,
.office-interval-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.office-tariff-section label { display: grid; gap: 6px; color: var(--fc-muted); font-size: 11px; font-weight: 700; }
.office-tariff-section input { width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid var(--fc-line); border-radius: 9px; color: var(--fc-ink); font: inherit; font-size: 14px; }
.office-rate-table { overflow-x: auto; }
.office-rate-table table { width: 100%; border-collapse: collapse; }
.office-rate-table th,
.office-rate-table td { padding: 8px; border-bottom: 1px solid var(--fc-line); text-align: left; font-size: 12px; }
.office-rate-table thead th { color: var(--fc-muted); }
.office-rate-table input { min-width: 82px; }
.office-tariff-submit { position: sticky; bottom: 14px; display: flex; justify-content: flex-end; padding: 15px; border: 1px solid var(--fc-line); border-radius: 16px; background: rgba(255,255,255,.94); box-shadow: 0 14px 40px -24px rgba(20,20,55,.45); }
.office-tariff-submit button { color: #fff; background: var(--fc-brand); }
.office-catalog-workspace { max-width: 1180px; }
.office-tariff-create-panel { display: grid; grid-template-columns: minmax(240px, .72fr) minmax(420px, 1.28fr); gap: 34px; margin-bottom: 22px; padding: 30px; border: 1px solid #d9d7f1; border-radius: 24px; background: linear-gradient(135deg, #f7f6ff 0%, #fff 72%); }
.office-tariff-create-panel h2,
.office-pane-heading h2 { margin: 3px 0 8px; color: var(--fc-dark); font-size: 25px; }
.office-tariff-create-panel > div > p:last-child { margin: 0; color: var(--fc-muted); line-height: 1.55; }
.office-tariff-create-panel .office-tariff-create { padding: 0; background: transparent; }
.office-tariff-create-panel .office-tariff-create label { color: var(--fc-muted); }
.office-tariff-create-panel .office-tariff-create input,
.office-tariff-create-panel .office-tariff-create select { border-color: var(--fc-line); }
.office-tariff-create-panel .office-tariff-create small { color: var(--fc-muted); font-weight: 500; line-height: 1.45; }
.office-tariff-create-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.office-tariff-create-actions a { color: var(--fc-brand); font-size: 13px; font-weight: 750; text-decoration: none; }
.office-tariff-create-actions button { color: #fff; background: var(--fc-brand); }
.office-profile-library,
.office-source-library { overflow: hidden; margin-bottom: 22px; border: 1px solid var(--fc-line); border-radius: 24px; background: #fff; }
.office-pane-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 24px 26px; }
.office-pane-heading > span { display: grid; place-items: center; min-width: 42px; height: 34px; padding: 0 12px; border-radius: 999px; color: var(--fc-brand); background: #efeff9; font-size: 14px; font-weight: 800; }
.office-profile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0 26px 26px; }
.office-profile-card { display: grid; gap: 7px; min-height: 158px; padding: 20px; border: 1px solid var(--fc-line); border-radius: 18px; color: var(--fc-dark); background: var(--fc-soft); text-decoration: none; transition: transform .18s ease, border-color .18s ease; }
.office-profile-card:hover { transform: translateY(-2px); border-color: #beb9ec; }
.office-profile-card > span { color: var(--fc-violet); font-size: 10px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.office-profile-card strong { font-size: 16px; line-height: 1.35; }
.office-profile-card small { color: var(--fc-muted); line-height: 1.4; }
.office-profile-card i { align-self: end; color: var(--fc-brand); font-size: 12px; font-style: normal; font-weight: 800; }
.office-empty-compact { padding: 28px 24px 34px; border-top: 1px solid var(--fc-line); }
.office-source-heading { align-items: flex-end; }
.office-library-search { display: grid; gap: 6px; width: min(360px, 100%); color: var(--fc-muted); font-size: 11px; font-weight: 750; }
.office-library-search input { min-height: 42px; padding: 9px 12px; border: 1px solid var(--fc-line); border-radius: 11px; color: var(--fc-ink); background: var(--fc-soft); }
.office-source-library .office-catalog-table-wrap { max-height: 460px; border-top: 1px solid var(--fc-line); }
.office-source-library td:last-child { width: 190px; text-align: right; }
.office-library-status { margin: 0; padding: 12px 26px; border-top: 1px solid var(--fc-line); color: var(--fc-muted); font-size: 12px; }
.office-back-link { display: inline-flex; margin-bottom: 22px; color: var(--fc-brand); font-size: 13px; font-weight: 800; text-decoration: none; }
.office-profile-title { align-items: center; }
.office-profile-state { display: inline-flex; padding: 9px 13px; border-radius: 999px; color: var(--fc-muted); background: #ececf1; font-size: 12px; font-weight: 800; }
.office-profile-state.is-editable { color: #17633f; background: #e8f7ef; }
.office-clone-bar { display: grid; grid-template-columns: minmax(220px, .7fr) minmax(380px, 1.3fr); gap: 28px; margin-bottom: 18px; padding: 24px 26px; border-radius: 20px; color: #fff; background: var(--fc-brand); }
.office-clone-bar h2 { margin: 0 0 6px; font-size: 20px; }
.office-clone-bar p { margin: 0; color: rgba(255,255,255,.7); font-size: 13px; }
.office-clone-bar form { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 12px; }
.office-clone-bar label { display: grid; gap: 6px; color: rgba(255,255,255,.72); font-size: 11px; font-weight: 750; }
.office-clone-bar input { min-height: 42px; padding: 8px 10px; border: 0; border-radius: 9px; }
.office-clone-bar button { min-height: 42px; padding: 0 16px; border: 0; border-radius: 10px; color: var(--fc-brand); background: #fff; font-weight: 800; cursor: pointer; }
.office-tariff-form.is-readonly input[readonly] { color: var(--fc-dark); background: #f3f3f7; cursor: default; }
.office-catalog-form a { color: var(--fc-brand); }
.result-status.is-saved { color: #17633f; background: #e8f7ef; }
.office-row-link { display: inline-flex; padding: 8px 14px; border-radius: 999px; background: #eeedf9; }
.office-create-link { display: inline-flex; padding: 11px 18px; border-radius: 999px; color: white; background: var(--fc-brand); }
.office-shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 42px 0 72px; }
.office-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; margin-bottom: 26px; }
.office-title-row h1 { margin: 0; color: var(--fc-dark); font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.035em; }
.office-title-row p:not(.eyebrow) { margin: 12px 0 0; color: var(--fc-muted); line-height: 1.6; }
.office-section-title { margin: 30px 0 12px; color: var(--fc-dark); font-size: 20px; }
.office-card { overflow: hidden; border: 1px solid var(--fc-line); border-radius: 24px; background: white; box-shadow: 0 18px 44px -32px rgba(69,69,118,.45); }
.office-table-wrap { overflow-x: auto; }
.office-table { width: 100%; border-collapse: collapse; }
.office-table th,
.office-table td { padding: 17px 20px; border-bottom: 1px solid var(--fc-line); text-align: left; white-space: nowrap; }
.office-table th { color: var(--fc-muted); background: var(--fc-soft); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.office-table tbody tr:last-child td { border-bottom: 0; }
.office-table tbody tr:hover { background: #fbfbfe; }
.office-status { display: inline-flex; padding: 7px 11px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.office-status.is-active { color: #17633f; background: #e8f7ef; }
.office-status.is-inactive { color: #6b4a17; background: #fff4d9; }
.office-empty { display: grid; gap: 7px; padding: 54px 24px; color: var(--fc-muted); text-align: center; }
.office-empty strong { color: var(--fc-dark); font-size: 20px; }
.office-pagination { display: flex; justify-content: center; gap: 24px; margin-top: 24px; color: var(--fc-muted); font-size: 14px; }
.office-pagination a { color: var(--fc-brand); font-weight: 700; text-decoration: none; }
.office-notice { margin-bottom: 22px; padding: 15px 18px; border: 1px solid #dcd9fb; border-radius: 14px; color: var(--fc-brand); background: #f3f2ff; line-height: 1.5; }
.office-save-confirmation { margin: 0 0 18px; padding: 14px 18px; border: 1px solid #b8dfc9; border-radius: 14px; color: #17633f; background: #e8f7ef; font-weight: 700; }
.office-save-action { background: #27845b; }
.office-values { padding: 28px; }
.office-values h2 { margin: 0 0 20px; color: var(--fc-dark); font-size: 22px; }
.office-values dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 30px; margin: 0; }
.office-values dl > div { display: grid; grid-template-columns: minmax(170px, .8fr) minmax(0, 1.2fr); gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--fc-line); }
.office-values dt { color: var(--fc-muted); font-size: 13px; line-height: 1.45; }
.office-values dd { overflow-wrap: anywhere; margin: 0; color: var(--fc-ink); font-weight: 600; line-height: 1.45; }
.office-calculation-view { max-width: 1040px; }
.office-calculation-meta { font-size: 13px; }
.office-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; overflow: hidden; margin: 0 0 24px; border: 1px solid var(--fc-line); border-radius: 22px; background: var(--fc-line); }
.office-total { display: grid; gap: 9px; padding: 22px 24px; background: #fff; }
.office-total span { color: var(--fc-muted); font-size: 13px; }
.office-total strong { color: var(--fc-dark); font-size: clamp(18px, 2.2vw, 25px); font-variant-numeric: tabular-nums; }
.office-total.is-primary { background: var(--fc-brand); }
.office-total.is-primary span { color: rgba(255,255,255,.7); }
.office-total.is-primary strong { color: #fff; }
.office-calculation-groups { display: grid; gap: 12px; }
.office-value-group { overflow: hidden; border: 1px solid var(--fc-line); border-radius: 18px; background: #fff; }
.office-value-group summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 19px 22px; color: var(--fc-dark); font-weight: 750; cursor: pointer; list-style: none; }
.office-value-group summary::-webkit-details-marker { display: none; }
.office-value-group summary::after { content: '+'; order: 3; color: var(--fc-brand); font-size: 22px; font-weight: 400; }
.office-value-group[open] summary::after { content: '−'; }
.office-value-group summary small { margin-left: auto; color: var(--fc-muted); font-size: 12px; font-weight: 600; }
.office-value-group dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0 22px 16px; }
.office-value-group dl > div { display: grid; grid-template-columns: minmax(140px, .9fr) minmax(0, 1.1fr); gap: 14px; padding: 13px 0; border-top: 1px solid var(--fc-line); }
.office-value-group dl > div:nth-child(odd) { padding-right: 22px; }
.office-value-group dl > div:nth-child(even) { padding-left: 22px; border-left: 1px solid var(--fc-line); }
.office-value-group dt { color: var(--fc-muted); font-size: 13px; line-height: 1.4; }
.office-value-group dd { overflow-wrap: anywhere; margin: 0; color: var(--fc-ink); font-weight: 650; line-height: 1.4; }
.office-value-group .is-computed dd { color: var(--fc-brand); }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(1px, 1px, 1px, 1px) !important; white-space: nowrap !important; }

@media (max-width: 760px) {
    .office-header { align-items: flex-start; gap: 16px; }
    .office-brand { align-items: flex-start; flex-direction: column; gap: 8px; }
    .office-brand span { padding: 0; border: 0; font-size: 13px; }
    .office-title-row { align-items: flex-start; flex-direction: column; }
    .office-nav { flex-wrap: wrap; gap: 12px 18px; }
    .office-catalog-actions { grid-template-columns: 1fr; }
    .office-tariff-manager,
    .office-tariff-section,
    .office-tariff-create-panel,
    .office-clone-bar { grid-template-columns: 1fr; }
    .office-tariff-profiles { grid-template-columns: 1fr; }
    .office-profile-grid { grid-template-columns: 1fr; }
    .office-source-heading { align-items: stretch; flex-direction: column; }
    .office-library-search { width: 100%; }
    .office-clone-bar form { grid-template-columns: 1fr; }
    .office-tariff-grid,
    .office-interval-grid { grid-template-columns: 1fr; }
    .office-catalog-heading { align-items: flex-start; flex-direction: column; }
    .office-catalog-heading dl { width: 100%; justify-content: space-between; }
    .office-values dl { grid-template-columns: 1fr; }
    .office-values dl > div { grid-template-columns: 1fr; gap: 5px; }
    .office-totals { grid-template-columns: 1fr; }
    .office-value-group dl { grid-template-columns: 1fr; }
    .office-value-group dl > div { grid-template-columns: 1fr; gap: 5px; padding: 12px 0; }
    .office-value-group dl > div:nth-child(odd),
    .office-value-group dl > div:nth-child(even) { padding-right: 0; padding-left: 0; border-left: 0; }
}

.site-header {
    position: sticky;
    z-index: 20;
    top: 0;
    padding: 12px 16px 0;
    pointer-events: none;
}

.header-shell {
    display: flex;
    align-items: center;
    width: min(1440px, 100%);
    min-height: 64px;
    margin: 0 auto;
    padding: 0 20px;
    border: 1px solid #dadada;
    border-radius: 16px;
    background: rgba(255, 255, 255, .88);
    box-shadow: 0 10px 34px -14px rgba(69, 69, 118, .28);
    backdrop-filter: blur(12px);
    pointer-events: auto;
}

.brand { flex: none; }
.brand img { width: 112px; height: auto; }

.main-navigation {
    display: flex;
    align-items: center;
    gap: clamp(16px, 2vw, 30px);
    margin-left: clamp(30px, 4vw, 64px);
}

.main-navigation a,
.header-phone,
.header-link {
    color: var(--fc-brand);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.main-navigation a { position: relative; }
.main-navigation a::after {
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;
    height: 2px;
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    background: var(--fc-violet);
    transition: transform .2s ease;
}
.main-navigation a:hover::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.header-phone { white-space: nowrap; font-weight: 700; }
.header-link {
    min-height: 42px;
    padding: 11px 18px;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, var(--fc-brand), var(--fc-brand-2));
}

.calculator-shell {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 24px;
}

.calculator-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr);
    min-height: 390px;
    overflow: hidden;
    margin-bottom: 32px;
    padding: clamp(38px, 5vw, 72px);
    border-radius: 32px;
    color: white;
    background:
        radial-gradient(60% 70% at 85% 12%, rgba(138, 127, 240, .34), transparent 60%),
        radial-gradient(115% 476% at 79% 43%, #595982 0%, #000011 100%);
}

.calculator-hero::after {
    position: absolute;
    right: -120px;
    bottom: -240px;
    width: 480px;
    height: 480px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
    content: "";
}

.hero-copy { position: relative; z-index: 2; max-width: 690px; }
.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 14px;
    color: var(--fc-brand);
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.eyebrow::before {
    width: 28px;
    height: 2px;
    content: "";
    background: linear-gradient(90deg, var(--fc-brand), var(--fc-violet));
}
.calculator-hero .eyebrow { color: #dedbff; }
.calculator-hero .eyebrow::before { background: linear-gradient(90deg, white, var(--fc-lavender)); }

.calculator-hero h1 {
    max-width: 660px;
    margin: 0;
    font-size: clamp(2.35rem, 5vw, 4rem);
    font-weight: 700;
    letter-spacing: -.045em;
    line-height: 1.08;
}

.hero-copy > p:not(.eyebrow) {
    max-width: 620px;
    margin: 24px 0 0;
    color: rgba(255,255,255,.78);
    font-size: clamp(1rem, 1.4vw, 1.16rem);
    line-height: 1.65;
}

.hero-note {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    padding: 10px 14px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    color: rgba(255,255,255,.86);
    background: rgba(255,255,255,.08);
    font-size: 13px;
}
.hero-note span { color: #c9ffc9; font-weight: 800; }

.hero-orbit { position: relative; z-index: 2; min-height: 280px; }
.orbit-line {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 245px;
    height: 245px;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 50%;
}
.orbit-line::before,
.orbit-line::after {
    position: absolute;
    inset: 22px;
    border: 1px solid rgba(185,178,255,.2);
    border-radius: inherit;
    content: "";
}
.orbit-line::after { inset: 55px; background: rgba(138,127,240,.08); }

.orbit-node {
    position: absolute;
    display: grid;
    place-content: center;
    width: 116px;
    height: 116px;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 50%;
    text-align: center;
    background: rgba(255,255,255,.1);
    box-shadow: 0 20px 60px rgba(0,0,17,.3);
    backdrop-filter: blur(8px);
}
.orbit-node span { color: var(--fc-lavender); font-size: 10px; font-weight: 800; }
.orbit-node strong { margin-top: 4px; font-size: 12px; line-height: 1.2; }
.orbit-vehicle { top: 0; left: 50%; transform: translateX(-50%); }
.orbit-finance { right: 4%; bottom: 6%; }
.orbit-services { bottom: 6%; left: 4%; }
.orbit-center {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    place-content: center;
    width: 108px;
    height: 108px;
    transform: translate(-50%, -35%);
    border-radius: 50%;
    text-align: center;
    background: linear-gradient(145deg, var(--fc-violet), #665bd0);
    box-shadow: 0 16px 50px rgba(0,0,17,.45);
}
.orbit-center small { color: rgba(255,255,255,.65); font-size: 10px; }
.orbit-center strong { margin-top: 3px; font-size: 15px; }

.calculator-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(360px, 5fr);
    gap: 32px;
    align-items: start;
}

.calculator-card,
.details-card {
    overflow: hidden;
    border: 1px solid var(--fc-line);
    border-radius: 24px;
    background: var(--fc-white);
    box-shadow: 0 18px 44px -32px rgba(69,69,118,.45);
}
.calculator-card { padding: 28px; }

.card-heading,
.details-heading,
.result-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}
.card-heading { margin-bottom: 24px; }
.card-heading h2,
.details-heading h2,
.result-heading h2 {
    margin: 0;
    font-size: clamp(1.55rem, 3vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -.035em;
    line-height: 1.15;
}
.environment-label {
    flex: none;
    padding: 8px 12px;
    border-radius: 999px;
    color: var(--fc-brand);
    background: #eeedf8;
    font-size: 12px;
    font-weight: 700;
}

.calculator-form > ul,
.calculator-field > ul,
.option-card > ul {
    margin: 9px 0 0;
    padding: 10px 12px;
    list-style: none;
    border-radius: 10px;
    color: #9d2a2a;
    background: #fff0f0;
    font-size: 12px;
    line-height: 1.45;
}

.tab-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    padding: 6px;
    border-radius: 16px;
    background: var(--fc-bg);
}
.tab-list button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 9px 10px;
    border: 0;
    border-radius: 12px;
    color: var(--fc-muted);
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}
.tab-list button span {
    display: grid;
    place-items: center;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    color: var(--fc-brand);
    background: white;
    font-size: 10px;
}
.tab-list button:hover { color: var(--fc-brand); background: rgba(255,255,255,.65); }
.tab-list button[aria-selected="true"] {
    color: var(--fc-brand);
    background: white;
    box-shadow: 0 8px 24px -18px rgba(69,69,118,.8);
}
.tab-list button[aria-selected="true"] span { color: white; background: var(--fc-brand); }

.tabbed-interface.tabs-ready .tab-panel:not(.is-active) { display: none; }
.tab-panel { padding-top: 28px; }
.tab-panel.is-active { animation: panel-in .25s ease both; }

.panel-heading {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 18px;
    align-items: start;
    margin-bottom: 24px;
}
.panel-heading > span {
    padding-top: 5px;
    color: var(--fc-violet);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.panel-heading h3 { margin: 0; font-size: 1.35rem; letter-spacing: -.02em; }
.panel-heading p { margin: 6px 0 0; color: var(--fc-muted); font-size: 13px; line-height: 1.5; }

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.field-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field-wide { grid-column: 1 / -1; }
.vehicle-selector {
    margin-bottom: 20px;
    padding: 18px;
    border: 1px solid #d9d7ee;
    border-radius: 18px;
    background: linear-gradient(135deg, #f8f8fc, #f2f1fa);
}
.vehicle-selector-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 16px;
}
.vehicle-selector-heading strong { color: var(--fc-brand); font-size: 13px; }
.vehicle-selector-heading span {
    overflow: hidden;
    color: var(--fc-muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.vehicle-selector .calculator-field select { background: white; }
.vehicle-selector .calculator-field select:disabled { cursor: not-allowed; opacity: .58; }
.vehicle-price-fields { margin-top: 0; }
.calculator-field label {
    display: block;
    margin-bottom: 8px;
    color: var(--fc-ink);
    font-size: 13px;
    font-weight: 700;
}
.calculator-field input,
.calculator-field select {
    width: 100%;
    min-height: 50px;
    padding: 0 14px;
    border: 1px solid #d8dae3;
    border-radius: 12px;
    color: var(--fc-ink);
    background: white;
    transition: border-color .18s ease, box-shadow .18s ease;
}
.calculator-field select { padding-right: 36px; cursor: pointer; }
.calculator-field input:focus,
.calculator-field select:focus {
    border-color: var(--fc-brand);
    outline: 0;
    box-shadow: 0 0 0 4px rgba(69,69,118,.14);
}
.calculator-field .form-text {
    display: block;
    margin-top: 7px;
    color: #777d8d;
    font-size: 11px;
    line-height: 1.4;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.service-grid-compact { margin-top: 18px; }
.option-card {
    display: grid;
    grid-template-columns: 24px 1fr;
    gap: 11px;
    align-items: start;
    min-height: 70px;
    padding: 14px;
    border: 1px solid var(--fc-line);
    border-radius: 14px;
    background: var(--fc-soft);
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.option-card:hover { border-color: #c8c4ee; background: #f5f4fc; transform: translateY(-1px); }
.option-card input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
    accent-color: var(--fc-brand);
}
.option-card label { display: block; cursor: pointer; font-size: 13px; font-weight: 700; line-height: 1.35; }
.option-card small { display: block; margin-top: 4px; color: var(--fc-muted); font-size: 11px; font-weight: 400; line-height: 1.35; }
.option-card.is-disabled { opacity: .55; cursor: not-allowed; }
.option-card.is-disabled:hover { transform: none; border-color: var(--fc-line); background: var(--fc-soft); }

.tab-next {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    margin-top: 24px;
    padding: 0;
    border: 0;
    color: var(--fc-brand);
    background: transparent;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
}
.tab-next span { transition: transform .18s ease; }
.tab-next:hover span { transform: translateX(4px); }

.schedule-settings {
    margin-top: 24px;
    padding: 20px;
    border: 1px solid var(--fc-line);
    border-radius: 18px;
    background: var(--fc-soft);
}
.schedule-settings-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.schedule-settings-heading h4 { margin: 0; color: var(--fc-brand); font-size: 15px; }
.schedule-settings-heading p { max-width: 440px; margin: 0; color: var(--fc-muted); font-size: 11px; line-height: 1.5; }
.schedule-settings .calculator-field input,
.schedule-settings .calculator-field select { background: #fff; }

.form-action {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--fc-line);
}
.calculator-submit {
    flex: none;
    min-height: 50px;
    padding: 0 26px;
    border: 0;
    border-radius: 999px;
    color: white;
    background: linear-gradient(135deg, var(--fc-brand), var(--fc-brand-2));
    box-shadow: 0 12px 28px -16px rgba(69,69,118,.85);
    cursor: pointer;
    font-weight: 700;
    transition: transform .18s ease, box-shadow .18s ease;
}
.calculator-submit:hover { transform: translateY(-1px); box-shadow: 0 16px 30px -16px rgba(69,69,118,.9); }
.form-action p { margin: 0; color: var(--fc-muted); font-size: 11px; line-height: 1.45; }

.result-card {
    position: sticky;
    top: 96px;
    overflow: hidden;
    padding: 28px;
    border-radius: 24px;
    color: white;
    background:
        radial-gradient(75% 65% at 100% 0%, rgba(138,127,240,.44), transparent 68%),
        linear-gradient(150deg, var(--fc-brand-2), var(--fc-dark));
    box-shadow: 0 28px 60px -30px rgba(29,27,58,.8);
}
.result-card::after {
    position: absolute;
    right: -85px;
    bottom: -85px;
    width: 230px;
    height: 230px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}
.result-heading { position: relative; z-index: 1; }
.result-heading .eyebrow { color: var(--fc-lavender); }
.result-heading .eyebrow::before { background: var(--fc-lavender); }
.result-heading h2 { max-width: 280px; font-size: 1.35rem; }
.result-status {
    flex: none;
    padding: 7px 10px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 999px;
    color: #dcffec;
    background: rgba(39,132,91,.22);
    font-size: 11px;
    font-weight: 700;
}
.result-status[data-dirty="true"] { color: #fff0cb; background: rgba(171,112,25,.28); }

.primary-result { position: relative; z-index: 1; padding: 36px 0 26px; }
.primary-result > span { color: rgba(255,255,255,.62); font-size: 13px; }
.primary-result strong {
    display: block;
    margin-top: 5px;
    font-size: clamp(2.25rem, 4.2vw, 3.35rem);
    font-weight: 800;
    letter-spacing: -.05em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.primary-result small { color: var(--fc-lavender); font-size: .42em; letter-spacing: 0; }

.payment-composition { position: relative; z-index: 1; }
.composition-strip { display: flex; height: 8px; overflow: hidden; border-radius: 99px; background: rgba(255,255,255,.12); }
.composition-segment { min-width: 2px; }
.composition-asset, .legend-asset { background: var(--fc-violet); }
.composition-finance, .legend-finance { background: var(--fc-lavender); }
.composition-services, .legend-services { background: #e5e7eb; }
.composition-legend { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 17px; }
.composition-legend > div { display: grid; grid-template-columns: 8px 1fr; column-gap: 8px; align-content: start; }
.legend-key { width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; }
.composition-legend p { margin: 0; color: rgba(255,255,255,.58); font-size: 9px; line-height: 1.35; }
.composition-legend strong { grid-column: 2; margin-top: 5px; font-size: 11px; font-variant-numeric: tabular-nums; }
.composition-legend small { grid-column: 2; margin-top: 2px; color: rgba(255,255,255,.42); font-size: 9px; }

.quick-results { position: relative; z-index: 1; display: grid; gap: 0; margin: 25px 0 0; }
.quick-results > div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-top: 1px solid rgba(255,255,255,.1); }
.quick-results dt { color: rgba(255,255,255,.6); font-size: 11px; }
.quick-results dd { margin: 0; text-align: right; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.result-details-link { position: relative; z-index: 1; display: flex; justify-content: space-between; margin-top: 14px; color: var(--fc-lavender); font-size: 12px; font-weight: 700; text-decoration: none; }
.result-empty { position: relative; z-index: 1; display: grid; justify-items: start; padding: 60px 0 30px; }
.result-empty > span { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 16px; border-radius: 50%; color: var(--fc-dark); background: var(--fc-lavender); font-weight: 800; }
.result-empty strong { font-size: 20px; }
.result-empty p { margin: 8px 0 0; color: rgba(255,255,255,.6); font-size: 13px; }

.details-card { margin-top: 32px; padding: 28px; }
.details-heading { align-items: end; padding-bottom: 24px; }
.details-heading > p { max-width: 360px; margin: 0; color: var(--fc-muted); font-size: 12px; line-height: 1.5; }
.details-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 620px; }
.details-tabs.has-schedule { grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 820px; }
.detail-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.detail-metrics > div { min-height: 104px; padding: 18px; border: 1px solid var(--fc-line); border-radius: 16px; background: var(--fc-soft); }
.detail-metrics dt { color: var(--fc-muted); font-size: 11px; line-height: 1.35; }
.detail-metrics dd { margin: 12px 0 0; color: var(--fc-brand); font-size: 1.13rem; font-weight: 800; font-variant-numeric: tabular-nums; }

.calculation-warnings { margin-top: 18px; padding: 18px 20px; border: 1px solid #eedda9; border-radius: 16px; color: #654615; background: #fff9e9; }
.calculation-warnings strong { font-size: 13px; }
.calculation-warnings ul { margin: 10px 0 0; padding-left: 18px; }
.calculation-warnings li { margin-top: 5px; font-size: 12px; line-height: 1.5; }

.component-table-wrap { overflow-x: auto; border: 1px solid var(--fc-line); border-radius: 16px; }
.component-table { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.component-table th, .component-table td { padding: 13px 15px; border-bottom: 1px solid var(--fc-line); text-align: right; white-space: nowrap; }
.component-table th:first-child { text-align: left; }
.component-table thead th { color: var(--fc-muted); background: var(--fc-soft); font-size: 10px; text-transform: uppercase; letter-spacing: .05em; }
.component-table tbody th { font-weight: 600; }
.component-table tbody th span { display: inline-grid; place-items: center; width: 25px; height: 25px; margin-right: 10px; border-radius: 50%; color: var(--fc-brand); background: #eeedf8; font-size: 9px; }
.component-table tbody tr:hover { background: #fafafe; }
.component-table tfoot th, .component-table tfoot td { border-bottom: 0; color: var(--fc-brand); background: #eeedf8; font-weight: 800; }

.schedule-summary { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 18px; }
.schedule-summary > div { min-width: 150px; padding: 14px 16px; border: 1px solid var(--fc-line); border-radius: 14px; background: var(--fc-soft); }
.schedule-summary dt { color: var(--fc-muted); font-size: 10px; }
.schedule-summary dd { margin: 6px 0 0; color: var(--fc-brand); font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.schedule-table th:first-child { width: 42%; }

.calculator-footer { display: flex; align-items: center; gap: 28px; padding: 34px 2px 10px; color: var(--fc-muted); font-size: 12px; }
.calculator-footer img { width: 100px; }
.calculator-footer p { margin: 0; }
.calculator-footer > a:last-child { margin-left: auto; color: var(--fc-brand); font-weight: 700; text-decoration: none; }

@keyframes panel-in {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1080px) {
    .main-navigation { display: none; }
    .calculator-hero { grid-template-columns: 1fr minmax(300px, .7fr); }
    .calculator-grid { grid-template-columns: 1fr; }
    .result-card { position: relative; top: auto; }
    .result-heading h2 { max-width: none; }
}

@media (max-width: 760px) {
    .header-shell { min-height: 58px; padding: 0 15px; }
    .header-phone { display: none; }
    .header-link { min-height: 38px; padding: 10px 13px; font-size: 12px; }
    .calculator-hero { grid-template-columns: 1fr; min-height: 0; padding: 38px 28px; border-radius: 24px; }
    .hero-orbit { display: none; }
    .calculator-card, .details-card { padding: 22px; }
    .card-heading, .details-heading { display: block; }
    .environment-label { display: inline-block; margin-top: 14px; }
    .details-heading > p { margin-top: 12px; }
    .schedule-settings-heading { display: block; }
    .schedule-settings-heading p { margin-top: 7px; }
    .tab-list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
    .tab-list button { flex: 0 0 auto; min-width: 145px; scroll-snap-align: start; }
    .details-tabs button { min-width: 130px; }
    .field-grid-three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .vehicle-selector .field-grid-three { grid-template-columns: 1fr; }
    .detail-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .site-header { padding: 8px 8px 0; }
    .brand img { width: 100px; }
    .header-link { padding: 9px 11px; }
    .calculator-shell { width: min(100% - 20px, 1280px); padding-top: 18px; }
    .calculator-hero { margin-bottom: 20px; padding: 30px 22px; }
    .calculator-hero h1 { font-size: 2.2rem; }
    .hero-note { align-items: flex-start; border-radius: 16px; line-height: 1.45; }
    .calculator-grid { gap: 20px; }
    .calculator-card, .details-card, .result-card { padding: 19px; border-radius: 20px; }
    .card-heading h2, .details-heading h2 { font-size: 1.7rem; }
    .field-grid, .field-grid-three, .service-grid, .detail-metrics { grid-template-columns: 1fr; }
    .panel-heading { grid-template-columns: 1fr; gap: 7px; }
    .panel-heading > span { padding: 0; }
    .vehicle-selector-heading { display: block; }
    .vehicle-selector-heading span { display: block; margin-top: 6px; white-space: normal; }
    .form-action { display: grid; }
    .calculator-submit { width: 100%; }
    .composition-legend { grid-template-columns: 1fr; }
    .composition-legend > div { grid-template-columns: 8px 1fr auto; }
    .composition-legend strong { grid-column: 3; grid-row: 1; margin: 0; }
    .composition-legend small { display: none; }
    .primary-result strong { font-size: 2.45rem; }
    .component-table-wrap { overflow: visible; border: 0; }
    .component-table, .component-table tbody, .component-table tfoot, .component-table tr, .component-table th, .component-table td { display: block; }
    .component-table thead { display: none; }
    .component-table tbody tr { margin-bottom: 10px; padding: 14px; border: 1px solid var(--fc-line); border-radius: 14px; }
    .component-table th, .component-table td { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border: 0; text-align: right; white-space: normal; }
    .component-table td::before { content: attr(data-label); color: var(--fc-muted); font-size: 10px; text-align: left; }
    .component-table tfoot tr { padding: 14px; border-radius: 14px; background: #eeedf8; }
    .component-table tfoot th, .component-table tfoot td { background: transparent; }
    .calculator-footer { align-items: flex-start; flex-direction: column; gap: 12px; }
    .calculator-footer > a:last-child { margin-left: 0; }
}

@media print {
    .site-header, .calculator-hero, .calculator-card, .calculator-footer, .tab-list, .result-details-link { display: none !important; }
    .calculator-shell { width: 100%; padding: 0; }
    .calculator-grid { display: block; }
    .result-card { color: #000; background: #fff; box-shadow: none; }
    .details-card { display: block; margin: 16px 0 0; border: 0; box-shadow: none; }
    .tabbed-interface.tabs-ready .tab-panel { display: block !important; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

/* Legacy-compatible calculator. The class names remain stable for the migrated
   layout, but this is the single public calculator experience. */
.full-calculator-page {
    --full-grid-line: rgba(69, 69, 118, .075);
    background:
        linear-gradient(var(--full-grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--full-grid-line) 1px, transparent 1px),
        var(--fc-bg);
    background-size: 36px 36px;
}

.full-calculator-shell {
    width: min(1440px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 24px;
}

.full-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(370px, .56fr);
    gap: 28px 52px;
    overflow: hidden;
    min-height: 320px;
    margin-bottom: 28px;
    padding: clamp(38px, 5vw, 66px);
    border-radius: 30px;
    color: white;
    background:
        linear-gradient(90deg, rgba(185, 178, 255, .14) 1px, transparent 1px) 70% 0 / 38px 38px,
        linear-gradient(rgba(185, 178, 255, .14) 1px, transparent 1px) 70% 0 / 38px 38px,
        radial-gradient(72% 130% at 88% 12%, rgba(138, 127, 240, .45), transparent 66%),
        linear-gradient(145deg, #272646 0%, #17162d 75%);
}
.full-hero.is-client { grid-template-columns: minmax(0, 920px); }

.full-hero::after {
    position: absolute;
    top: -140px;
    right: -90px;
    width: 410px;
    height: 410px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 50%;
    content: "";
}

.full-hero-copy,
.full-hero-facts,
.full-privacy-note { position: relative; z-index: 1; }

.full-hero .eyebrow { color: #dedbff; }
.full-hero .eyebrow::before { background: linear-gradient(90deg, white, var(--fc-lavender)); }
.full-hero h1 {
    max-width: 780px;
    margin: 0;
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 700;
    letter-spacing: -.055em;
    line-height: 1.02;
}
.full-hero-copy > p:not(.eyebrow) {
    max-width: 720px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, .72);
    font-size: clamp(.96rem, 1.35vw, 1.1rem);
    line-height: 1.65;
}

.full-hero-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-self: center;
    margin: 0;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 22px;
    background: rgba(255, 255, 255, .07);
    backdrop-filter: blur(10px);
}
.full-hero-facts > div { padding: 20px 12px; text-align: center; }
.full-hero-facts > div + div { border-left: 1px solid rgba(255, 255, 255, .12); }
.full-hero-facts dt { color: rgba(255, 255, 255, .52); font-size: 10px; line-height: 1.3; }
.full-hero-facts dd {
    margin: 6px 0 0;
    color: white;
    font-size: clamp(1.45rem, 3vw, 2.25rem);
    font-weight: 800;
    letter-spacing: -.04em;
    font-variant-numeric: tabular-nums;
}

.full-privacy-note {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 13px;
    max-width: 760px;
    margin-top: 3px;
    color: rgba(255, 255, 255, .7);
    font-size: 12px;
    line-height: 1.5;
}
.full-privacy-note > span {
    display: grid;
    flex: 0 0 32px;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    color: var(--fc-lavender);
}
.full-privacy-note p { margin: 0; }
.full-privacy-note strong { color: white; }

.full-form-card,
.full-result-card,
.full-ledger,
.full-schedule {
    border: 1px solid var(--fc-line);
    border-radius: 24px;
    background: var(--fc-white);
    box-shadow: 0 20px 48px -36px rgba(69, 69, 118, .55);
}

#calculator,
#details,
#calculation-ledger,
.calculator-anchor { scroll-margin-top: 96px; }
.calculator-anchor { display: block; height: 0; }

.full-form-card { overflow: hidden; padding: clamp(22px, 3vw, 34px); }
.full-card-heading,
.full-result-heading,
.full-ledger-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
}
.full-card-heading { margin-bottom: 26px; }
.full-card-heading h2,
.full-result-heading h2,
.full-ledger-heading h2 {
    margin: 0;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    letter-spacing: -.04em;
    line-height: 1.08;
}
.full-card-heading > p,
.full-ledger-heading > p {
    max-width: 480px;
    margin: 0;
    color: var(--fc-muted);
    font-size: 12px;
    line-height: 1.55;
}

.full-calculator-form > ul {
    margin: 0 0 18px;
    padding: 14px 16px;
    list-style: none;
    border: 1px solid #ffd1d1;
    border-radius: 14px;
    color: #8b2525;
    background: #fff3f3;
    font-size: 13px;
}

.full-tab-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 7px;
    padding: 7px;
    border: 1px solid #e8e7ef;
    background: #f5f5f8;
}
.full-tab-list button {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    grid-template-rows: auto;
    justify-content: stretch;
    min-height: 67px;
    padding: 11px 12px;
    text-align: left;
}
.full-tab-list button span {
    grid-row: 1;
    align-self: center;
    width: 25px;
    height: 25px;
}
.full-tab-list button strong {
    overflow: hidden;
    color: inherit;
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.full-tab-list button small {
    color: #8a8f9e;
    font-size: 9px;
    font-weight: 600;
}

.full-tab-panel { padding-top: 32px; }
.full-panel-heading {
    display: grid;
    grid-template-columns: minmax(280px, .7fr) minmax(260px, .45fr);
    gap: 34px;
    align-items: end;
    margin: 0 2px 20px;
}
.full-panel-heading > div { display: flex; align-items: baseline; gap: 13px; }
.full-panel-heading span { color: var(--fc-violet); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.full-panel-heading h3 { margin: 0; font-size: 1.45rem; letter-spacing: -.025em; }
.full-panel-heading p { margin: 0; color: var(--fc-muted); font-size: 11px; line-height: 1.5; }

.full-sections,
.full-output-sections { display: grid; gap: 13px; }

.full-section,
.full-output-section {
    overflow: hidden;
    border: 1px solid var(--fc-line);
    border-radius: 18px;
    background: var(--fc-soft);
}
.full-section > summary,
.full-output-section > summary {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto 24px;
    gap: 12px;
    align-items: center;
    min-height: 62px;
    padding: 13px 18px;
    cursor: pointer;
    list-style: none;
    background: #f9f9fb;
    user-select: none;
}
.full-section > summary::-webkit-details-marker,
.full-output-section > summary::-webkit-details-marker { display: none; }
.full-section > summary > span,
.full-output-section > summary > span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    color: var(--fc-brand);
    background: #edecf7;
    font-size: 9px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.full-section > summary strong,
.full-output-section > summary strong { font-size: 13px; line-height: 1.4; }
.full-section > summary small,
.full-output-section > summary small { color: var(--fc-muted); font-size: 10px; }
.full-section > summary i,
.full-output-section > summary i {
    position: relative;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #edecf7;
}
.full-section > summary i::before,
.full-section > summary i::after,
.full-output-section > summary i::before,
.full-output-section > summary i::after {
    position: absolute;
    top: 10px;
    left: 6px;
    width: 10px;
    height: 2px;
    content: "";
    background: var(--fc-brand);
    transition: transform .18s ease;
}
.full-section > summary i::after,
.full-output-section > summary i::after { transform: rotate(90deg); }
.full-section[open] > summary i::after,
.full-output-section[open] > summary i::after { transform: rotate(0); }
.full-section[open] > summary,
.full-output-section[open] > summary { border-bottom: 1px solid var(--fc-line); background: white; }

.full-section-body { padding: 20px; background: white; }
.full-field-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.full-field { min-width: 0; }
.full-field-label {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}
.full-field-label label { min-width: 0; }
.full-field-label > span,
.field-purpose {
    flex: none;
    padding: 3px 6px;
    border-radius: 99px;
    color: #696189;
    background: #efedf8;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .02em;
    white-space: nowrap;
}
.full-field.is-metadata input { border-color: #d8d3eb; background: #fcfbff; }
.full-field input:disabled,
.full-field select:disabled { cursor: not-allowed; color: #858a98; background: #f0f1f4; opacity: .75; }

.full-option-card {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 10px;
    align-content: start;
    min-height: 84px;
    padding: 14px;
    border: 1px solid var(--fc-line);
    border-radius: 13px;
    background: #fafafd;
    transition: border-color .18s ease, background .18s ease;
}
.full-option-card:focus-within { border-color: #aaa3e8; background: #f8f7fd; }
.full-option-card.is-metadata { border-color: #dfdced; background: #fcfbff; }
.full-option-card.is-disabled { opacity: .58; }
.full-option-card > input[type="checkbox"] {
    width: 19px;
    height: 19px;
    margin: 1px 0 0;
    accent-color: var(--fc-brand);
}
.full-option-copy label { display: block; cursor: pointer; font-size: 12px; font-weight: 700; line-height: 1.4; }
.full-option-copy .form-text { display: block; margin-top: 6px; color: var(--fc-muted); font-size: 10px; line-height: 1.4; }
.full-option-copy .field-purpose { display: inline-block; margin-top: 7px; }
.full-option-copy > ul { margin: 8px 0 0; padding-left: 17px; color: #982c2c; font-size: 10px; }

.full-section-separator {
    grid-column: 1 / -1;
    height: 1px;
    margin: 4px 0;
    background: linear-gradient(90deg, var(--fc-line), transparent 85%);
}

.full-section-results {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--fc-line);
}
.full-section-results h4 {
    margin: 0 0 12px;
    color: var(--fc-brand);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .04em;
}

.full-vehicle-flow {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 16px;
    padding: 11px 14px;
    border: 1px solid #dcd9ef;
    border-radius: 12px;
    color: var(--fc-brand);
    background: linear-gradient(100deg, #f5f4fb, #fbfbfd);
    font-size: 11px;
}
.full-vehicle-flow > span { font-weight: 700; }
.full-vehicle-flow > strong {
    overflow: hidden;
    color: var(--fc-muted);
    font-size: 10px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.full-form-action {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 26px;
    padding: 20px;
    border: 1px solid #d8d5ec;
    border-radius: 18px;
    background: linear-gradient(105deg, #f5f4fb, #fbfbfd);
}
.full-form-action > div { display: flex; align-items: center; gap: 18px; }
.full-form-action p { max-width: 460px; margin: 0; color: var(--fc-muted); font-size: 10px; line-height: 1.45; }
.full-form-action > a { flex: none; color: var(--fc-brand); font-size: 11px; font-weight: 700; text-decoration: none; }
.full-form-action > a span { margin-left: 6px; }

.full-result-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(300px, .65fr) minmax(0, 1.35fr);
    gap: 26px 42px;
    overflow: hidden;
    margin-top: 28px;
    padding: clamp(24px, 3vw, 36px);
    color: white;
    border-color: transparent;
    background:
        radial-gradient(60% 130% at 100% 0%, rgba(138, 127, 240, .42), transparent 68%),
        linear-gradient(145deg, #35345f, #1d1b3a);
}
.full-result-card::after {
    position: absolute;
    right: -120px;
    bottom: -180px;
    width: 380px;
    height: 380px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 50%;
    content: "";
}
.full-result-heading { position: relative; z-index: 1; grid-column: 1 / -1; align-items: flex-start; }
.full-result-heading .eyebrow { color: var(--fc-lavender); }
.full-result-heading .eyebrow::before { background: var(--fc-lavender); }
.full-result-heading .result-status { color: #dcffec; }
.full-result-heading-actions {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}
.pdf-action {
    min-height: 38px;
    padding: 0 15px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 11px;
    color: white;
    background: rgba(255, 255, 255, .1);
    font: inherit;
    font-size: 10px;
    font-weight: 800;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease;
}
.pdf-action:hover,
.pdf-action:focus-visible { border-color: rgba(255, 255, 255, .58); background: rgba(255, 255, 255, .18); }
.full-result-lead { position: relative; z-index: 1; align-self: center; }
.full-result-lead > span { color: rgba(255, 255, 255, .59); font-size: 12px; }
.full-result-lead > strong {
    display: block;
    margin-top: 8px;
    font-size: clamp(2.25rem, 4.7vw, 4rem);
    font-weight: 800;
    letter-spacing: -.055em;
    line-height: .98;
    font-variant-numeric: tabular-nums;
}
.full-result-lead > small { display: block; margin-top: 14px; color: rgba(255, 255, 255, .46); font-size: 10px; }
.full-result-totals { position: relative; z-index: 1; }
.full-result-totals dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 22px;
    margin: 0;
    padding: 8px 20px;
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 18px;
    background: rgba(255, 255, 255, .06);
}
.full-result-totals dl > div { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, .09); }
.full-result-totals dl > div:nth-last-child(-n + 2) { border-bottom: 0; }
.full-result-totals dt { color: rgba(255, 255, 255, .53); font-size: 9px; line-height: 1.4; }
.full-result-totals dd { margin: 0; text-align: right; font-size: 10px; font-weight: 750; font-variant-numeric: tabular-nums; }
.full-warnings { position: relative; z-index: 1; grid-column: 1 / -1; margin: 0; }
.full-result-empty {
    position: relative;
    z-index: 1;
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 120px;
    color: rgba(255, 255, 255, .65);
}
.full-result-empty > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: var(--fc-dark); background: var(--fc-lavender); }
.full-result-empty strong { color: white; font-size: 17px; }
.full-result-empty p { margin: 6px 0 0; font-size: 12px; }

.full-ledger,
.full-schedule { margin-top: 28px; padding: clamp(22px, 3vw, 34px); }
.full-ledger-heading { margin-bottom: 24px; }
.full-output-sections { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.full-output-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    margin: 0;
    padding: 1px;
    background: var(--fc-line);
}
.full-output-grid > div { min-width: 0; padding: 13px 15px; background: white; }
.full-output-grid dt { color: var(--fc-muted); font-size: 9px; line-height: 1.4; }
.full-output-grid dd {
    overflow-wrap: anywhere;
    margin: 7px 0 0;
    color: var(--fc-brand);
    font-size: 13px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}
.full-schedule .component-table-wrap { max-height: 580px; overflow: auto; }
.full-schedule .component-table thead { position: sticky; z-index: 1; top: 0; }
.full-footer { padding-right: 4px; padding-left: 4px; }

@media (max-width: 1160px) {
    .full-hero { grid-template-columns: minmax(0, 1fr) 360px; }
    .full-field-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .full-output-sections { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
    .full-hero { grid-template-columns: 1fr; }
    .full-hero-facts { max-width: 560px; }
    .full-privacy-note { grid-column: 1; }
    .full-tab-list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
    .full-tab-list button { flex: 0 0 190px; scroll-snap-align: start; }
    .full-panel-heading { grid-template-columns: 1fr; gap: 7px; }
    .full-result-card { grid-template-columns: 1fr; }
    .full-result-heading,
    .full-warnings { grid-column: 1; }
}

@media (max-width: 680px) {
    .full-calculator-shell { width: min(100% - 20px, 1440px); padding-top: 18px; }
    .full-hero { min-height: 0; margin-bottom: 20px; padding: 32px 22px; border-radius: 23px; }
    .full-hero h1 { font-size: clamp(2.2rem, 11vw, 3.2rem); }
    .full-hero-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .full-hero-facts > div { padding: 14px 6px; }
    .full-hero-facts dt { font-size: 8px; }
    .full-form-card,
    .full-result-card,
    .full-ledger,
    .full-schedule { border-radius: 20px; }
    .full-card-heading,
    .full-result-heading,
    .full-ledger-heading { display: block; }
    .full-card-heading > p,
    .full-ledger-heading > p { margin-top: 10px; }
    .full-result-heading .result-status { display: inline-block; margin-top: 12px; }
    .full-result-heading-actions { align-items: flex-start; flex-direction: column; margin-top: 12px; }
    .full-result-heading-actions .result-status { margin-top: 0; }
    .full-section > summary,
    .full-output-section > summary { grid-template-columns: 31px minmax(0, 1fr) 22px; padding: 12px 13px; }
    .full-section > summary small,
    .full-output-section > summary small { display: none; }
    .full-section-body { padding: 15px; }
    .full-field-grid,
    .full-output-grid { grid-template-columns: 1fr; }
    .full-field-label { display: block; }
    .full-field-label > span { display: inline-block; margin: -2px 0 7px; }
    .full-vehicle-flow { display: block; }
    .full-vehicle-flow > strong { display: block; margin-top: 5px; white-space: normal; }
    .full-form-action,
    .full-form-action > div { display: grid; }
    .full-form-action .calculator-submit { width: 100%; }
    .full-form-action > a { display: none; }
    .full-result-totals dl { grid-template-columns: 1fr; }
    .full-result-totals dl > div:nth-last-child(2) { border-bottom: 1px solid rgba(255, 255, 255, .09); }
    .full-result-lead > strong { font-size: clamp(2.3rem, 12vw, 3.3rem); }
}

@media print {
    .full-site-header,
    .full-hero,
    .full-form-card,
    .full-footer,
    .pdf-action { display: none !important; }
    .full-calculator-shell { width: 100%; padding: 0; }
    .full-result-card { margin: 0; color: #000; background: #fff; box-shadow: none; }
    .full-output-sections { grid-template-columns: 1fr 1fr; }
    .full-output-section { break-inside: avoid; }
    .full-output-section:not([open]) > :not(summary) { display: block; }
}
