:root {
    --canvas: #eef8f7;
    --canvas-soft: #e3f1ef;
    --paper: #ffffff;
    --ink: #45566f;
    --ink-soft: #68758a;
    --plum: #765d8f;
    --plum-deep: #654d7e;
    --mint: #2f887d;
    --mint-soft: #d7ece8;
    --coral: #cf6b55;
    --coral-deep: #b95846;
    --line: #bfd7d2;
    --line-strong: #94b9b2;
    --focus: #526fa4;
    --wrap: 1120px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

body::before {
    content: " ";
    display: block;
    height: 8px;
    background: var(--plum);
    border-right: 28vw solid var(--mint);
    box-shadow: inset -18vw 0 var(--coral);
}

h1,
h2,
h3,
p,
dl,
dd {
    margin-top: 0;
}

h1,
h2,
h3 {
    color: var(--ink);
    line-height: 1.14;
    letter-spacing: -0.025em;
}

h1 {
    margin-bottom: 24px;
    font-size: 40px;
    font-weight: 800;
}

h2 {
    margin-bottom: 18px;
    font-size: 28px;
    font-weight: 760;
}

h3 {
    margin-bottom: 10px;
    font-size: 18px;
}

p {
    margin-bottom: 18px;
    font-size: 16px;
}

p:last-child {
    margin-bottom: 0;
}

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

a {
    color: inherit;
}

.masthead {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.masthead-inner {
    display: flex;
    min-height: 82px;
    align-items: center;
    gap: 28px;
}

.identity {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    text-decoration: none;
}

.identity-sign {
    display: inline-grid;
    width: 48px;
    height: 42px;
    place-items: center;
    background: var(--plum);
    color: var(--paper);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    clip-path: polygon(0 0, 100% 0, 100% 72%, 83% 100%, 0 100%);
}

.identity-name {
    font-size: 15px;
    font-weight: 760;
    white-space: nowrap;
}

.mast-nav {
    display: flex;
    align-self: stretch;
    margin-right: auto;
}

.mast-nav a {
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-bottom: 3px solid transparent;
    color: var(--ink-soft);
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
}

.mast-nav a:hover,
.mast-nav a.is-current {
    border-bottom-color: var(--mint);
    color: var(--ink);
}

.mast-actions,
.intro-actions,
.finish-actions,
.story-actions,
.offer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.action {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 4px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 760;
    line-height: 1.2;
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.action:hover {
    transform: translateY(-1px);
}

.action:active {
    transform: translateY(0);
}

.action-phone {
    border-color: var(--line-strong);
    background: var(--paper);
    color: var(--ink);
}

.action-phone:hover {
    border-color: var(--mint);
    background: var(--mint-soft);
}

.action-report {
    background: var(--coral);
    color: var(--paper);
}

.action-report:hover {
    background: var(--coral-deep);
}

a:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}

.overline {
    margin-bottom: 10px;
    color: var(--plum);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.intro-lead,
.offer-lead {
    max-width: 790px;
    font-size: 18px;
    line-height: 1.65;
}

.register-intro {
    padding: 58px 0 52px;
    background: var(--paper);
}

.intro-frame {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr) 250px;
    gap: 34px;
    align-items: start;
}

.intro-number {
    padding-top: 5px;
    color: var(--plum);
    font-size: 38px;
    font-weight: 800;
    line-height: 1;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.intro-copy {
    padding-right: 10px;
}

.intro-actions {
    margin-top: 26px;
}

.duty-slip {
    border-top: 5px solid var(--mint);
    background: var(--canvas-soft);
    padding: 22px;
}

.slip-title {
    margin-bottom: 14px;
    color: var(--plum);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.duty-slip dl {
    margin: 0;
}

.duty-slip dl div {
    padding: 10px 0;
    border-top: 1px solid var(--line);
}

.duty-slip dt,
.duty-slip dd {
    font-size: 14px;
}

.duty-slip dt {
    color: var(--ink-soft);
}

.duty-slip dd {
    margin: 2px 0 0;
    font-weight: 800;
}

.register-entry {
    padding: 44px 0;
    border-top: 1px solid var(--line);
    background: var(--canvas);
}

.entry-accent {
    background: var(--paper);
}

.entry-layout {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 34px;
}

.entry-with-note {
    grid-template-columns: 74px minmax(0, 1fr) 240px;
}

.entry-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding-top: 7px;
    color: var(--plum);
    font-size: 13px;
    font-weight: 800;
}

.entry-marker::after {
    content: " ";
    display: block;
    width: 2px;
    min-height: 86px;
    flex: 1;
    background: var(--line-strong);
}

.entry-copy {
    max-width: 800px;
}

.ledger-note {
    align-self: start;
    margin-top: 4px;
    border-left: 5px solid var(--coral);
    background: var(--mint-soft);
    padding: 18px 20px;
}

.ledger-note strong,
.ledger-note span {
    display: block;
}

.ledger-note strong {
    margin-bottom: 6px;
    color: var(--plum);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.ledger-note span {
    margin-bottom: 10px;
    font-size: 24px;
    font-weight: 800;
}

.ledger-note p {
    font-size: 14px;
    line-height: 1.55;
}

.compact-note span {
    display: none;
}

.service-finish {
    padding: 44px 0;
    background: var(--plum);
    color: var(--paper);
}

.finish-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
}

.service-finish h2,
.service-finish p {
    color: var(--paper);
}

.service-finish p {
    max-width: 720px;
}

.service-finish .action-phone {
    border-color: var(--paper);
}

.extra-copy {
    padding: 16px 0;
    background: var(--canvas-soft);
    border-top: 1px solid var(--line);
}

.extra-copy p {
    color: var(--ink-soft);
    font-size: 14px;
}

.repair-opening {
    padding: 54px 0 26px;
    background: var(--paper);
}

.repair-opening-inner {
    position: relative;
}

.repair-title {
    max-width: 860px;
    padding-right: 40px;
}

.symptom-ribbon {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 30px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.symptom-ribbon span {
    padding: 10px 18px;
    border-right: 1px solid var(--line);
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 700;
}

.symptom-ribbon span:first-child {
    padding-left: 0;
}

.repair-story {
    padding: 42px 0;
    background: var(--canvas);
}

.story-tint {
    background: var(--paper);
}

.story-line {
    display: grid;
    grid-template-columns: 56px minmax(0, 820px);
    gap: 26px;
}

.story-note-line {
    grid-template-columns: 56px minmax(0, 1fr) 260px;
}

.story-index {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 2px solid var(--plum);
    color: var(--plum);
    font-weight: 800;
}

.repair-price {
    align-self: start;
    border-top: 5px solid var(--mint);
    background: var(--canvas-soft);
    padding: 19px 21px;
}

.repair-price strong {
    display: block;
    margin-bottom: 10px;
    color: var(--plum);
    font-size: 18px;
}

.repair-price p {
    font-size: 14px;
}

.story-actions {
    align-self: start;
}

.repair-tail {
    padding: 40px 0;
    border-top: 1px solid var(--line);
    background: var(--mint-soft);
}

.repair-tail .wrap {
    max-width: 880px;
}

.offer-head {
    padding: 54px 0 44px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.offer-head-inner {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 52px;
    align-items: end;
}

.offer-heading h1 {
    margin-bottom: 0;
}

.offer-lead {
    margin-bottom: 0;
}

.offer-sheet {
    padding: 40px 0;
    background: var(--canvas);
    border-bottom: 1px solid var(--line);
}

.sheet-tint {
    background: var(--paper);
}

.sheet-row {
    display: grid;
    grid-template-columns: 150px minmax(0, 800px);
    gap: 34px;
}

.sheet-row-note {
    grid-template-columns: 150px minmax(0, 1fr) 220px;
}

.sheet-code {
    padding-top: 6px;
    color: var(--plum);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.sheet-note {
    align-self: start;
    border-left: 4px solid var(--mint);
    padding: 4px 0 4px 18px;
}

.sheet-note strong,
.sheet-note span {
    display: block;
}

.sheet-note strong {
    color: var(--ink-soft);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.sheet-note span {
    margin: 4px 0 8px;
    color: var(--plum);
    font-size: 23px;
    font-weight: 800;
}

.sheet-note p {
    font-size: 14px;
}

.offer-contact {
    padding: 42px 0;
    background: var(--plum);
}

.offer-contact-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
}

.offer-contact h2,
.offer-contact p {
    color: var(--paper);
}

.offer-contact p {
    max-width: 760px;
}

.offer-contact .action-phone {
    border-color: var(--paper);
}

.site-footer {
    padding: 26px 0;
    background: #52627a;
    color: var(--paper);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.footer-id {
    text-decoration: none;
    font-weight: 800;
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.site-footer nav a {
    text-decoration: none;
    font-size: 14px;
}

.site-footer nav a:hover {
    text-decoration: underline;
}

.privacy {
    opacity: 0.7;
}

@media (max-width: 1024px) {
    .wrap {
        width: min(calc(100% - 40px), var(--wrap));
    }

    .masthead-inner {
        flex-wrap: wrap;
        gap: 0;
        padding: 14px 0 0;
    }

    .identity {
        margin-right: auto;
    }

    .mast-actions {
        margin-left: 20px;
    }

    .mast-nav {
        order: 3;
        width: 100%;
        min-height: 44px;
        margin-top: 12px;
        border-top: 1px solid var(--line);
    }

    .mast-nav a {
        padding: 10px 18px 8px 0;
        margin-right: 18px;
    }

    .intro-frame {
        grid-template-columns: 56px minmax(0, 1fr);
    }

    .duty-slip {
        grid-column: 2;
        max-width: 520px;
    }

    .entry-with-note,
    .story-note-line,
    .sheet-row-note {
        grid-template-columns: 56px minmax(0, 1fr);
    }

    .entry-with-note .ledger-note,
    .story-note-line .repair-price,
    .sheet-row-note .sheet-note {
        grid-column: 2;
        max-width: 520px;
    }

    .sheet-row,
    .sheet-row-note {
        grid-template-columns: 120px minmax(0, 1fr);
    }

    .sheet-row-note .sheet-note {
        grid-column: 2;
    }

    .offer-head-inner {
        grid-template-columns: 1fr;
        gap: 22px;
        align-items: start;
    }
}

@media (max-width: 768px) {
    .wrap {
        width: min(calc(100% - 32px), var(--wrap));
    }

    .masthead-inner {
        align-items: flex-start;
    }

    .identity-name {
        white-space: normal;
    }

    .mast-actions {
        width: 100%;
        margin: 12px 0 0;
    }

    .mast-nav {
        overflow-x: auto;
    }

    .register-intro,
    .repair-opening,
    .offer-head {
        padding-top: 42px;
    }

    .intro-frame,
    .entry-layout,
    .entry-with-note,
    .story-line,
    .story-note-line,
    .sheet-row,
    .sheet-row-note {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .intro-number {
        writing-mode: horizontal-tb;
        transform: none;
        font-size: 22px;
    }

    .duty-slip,
    .entry-with-note .ledger-note,
    .story-note-line .repair-price,
    .sheet-row-note .sheet-note {
        grid-column: 1;
        max-width: none;
    }

    .entry-marker {
        flex-direction: row;
        justify-content: flex-start;
    }

    .entry-marker::after {
        width: 80px;
        min-height: 2px;
        flex: 0 0 80px;
    }

    .story-index {
        width: 38px;
        height: 38px;
    }

    .sheet-code {
        padding: 0 0 8px;
        border-bottom: 1px solid var(--line);
    }

    .finish-line,
    .offer-contact-inner,
    .footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .symptom-ribbon span {
        padding: 9px 12px;
    }

    .symptom-ribbon span:first-child {
        padding-left: 12px;
    }
}

@media (max-width: 480px) {
    .wrap {
        width: min(calc(100% - 24px), var(--wrap));
    }

    h1 {
        font-size: 40px;
    }

    h2 {
        font-size: 28px;
    }

    .identity-sign {
        width: 44px;
        height: 38px;
    }

    .mast-actions,
    .intro-actions,
    .finish-actions,
    .story-actions,
    .offer-actions {
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
    }

    .action {
        width: 100%;
    }

    .mast-nav a {
        flex: 0 0 auto;
    }

    .intro-copy {
        padding-right: 0;
    }

    .intro-lead,
    .offer-lead {
        font-size: 17px;
    }

    .register-entry,
    .repair-story,
    .offer-sheet {
        padding: 34px 0;
    }

    .duty-slip,
    .ledger-note,
    .repair-price {
        padding: 18px;
    }

    .symptom-ribbon {
        display: block;
    }

    .symptom-ribbon span {
        display: block;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .symptom-ribbon span:last-child {
        border-bottom: 0;
    }

    .site-footer nav {
        gap: 14px;
    }
}
