:root {
    color-scheme: light;
    --leaf: #31866d;
    --leaf-mid: #51a488;
    --leaf-soft: #bde9d6;
    --leaf-pale: #e6f6ef;
    --coral: #cd506c;
    --coral-soft: #f9cbd6;
    --sky: #e8eaff;
    --paper: #ffffff;
    --base: #f4f4ff;
    --ink: #526f80;
    --muted: #6f8b96;
    --line: #cbdedb;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--base);
    color: var(--ink);
    font-family: Verdana, Geneva, sans-serif;
}

.shell {
    width: min(1110px, calc(100% - 64px));
    margin: 0 auto;
}

p {
    margin: 0 0 19px;
    font-size: 16px;
    line-height: 1.72;
}

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

h1, h2, h3 {
    color: var(--leaf);
    letter-spacing: -.04em;
    font-family: "Trebuchet MS", Verdana, sans-serif;
}

h1 {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.2;
    margin: 17px 0 23px;
}

h2 {
    font-size: 28px;
    line-height: 1.25;
    font-weight: 800;
    margin: 15px 0 24px;
}

h3 {
    font-size: 22px;
    line-height: 1.28;
    margin: 0;
    font-weight: 800;
}

a {
    color: inherit;
}

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

strong {
    color: var(--leaf);
    font-weight: 800;
}

.site-head {
    position: relative;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.site-head::before {
    content: "";
    display: block;
    height: 7px;
    background: repeating-linear-gradient(90deg, var(--leaf) 0 92px, var(--coral) 92px 116px);
}

.head-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 86px;
    gap: 28px;
}

.identity {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    font-size: 21px;
    font-weight: 900;
    text-decoration: none;
    letter-spacing: -.055em;
    color: var(--leaf);
}

.identity-pictogram {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 39px;
    height: 39px;
    border: 4px solid var(--leaf);
    border-radius: 12px 12px 3px 12px;
    gap: 5px;
}

.identity-pictogram i {
    width: 8px;
    height: 20px;
    border-radius: 9px;
    background: var(--coral);
    transform: rotate(25deg);
}

.identity-pictogram i:nth-child(2) {
    height: 12px;
    background: var(--leaf-mid);
}

.menu {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.menu a {
    display: inline-block;
    padding: 10px 0;
    border-bottom: 3px solid transparent;
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    text-decoration: none;
}

.menu a:hover,
.menu a[aria-current="page"] {
    color: var(--coral);
    border-bottom-color: var(--coral);
}

.opening {
    background: var(--leaf-pale);
    border-bottom: 1px solid var(--line);
}

.opening-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(290px, .88fr);
    gap: 50px;
    align-items: stretch;
}

.opening-text {
    padding: 58px 0 55px;
}

.eyebrow {
    display: inline-block;
    color: var(--coral);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .17em;
    line-height: 1.5;
}

.cta-set {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 27px;
}

.action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 14px 24px;
    border-radius: 4px;
    border: 2px solid transparent;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -.02em;
    text-align: center;
    text-decoration: none;
    transition: background .18s, transform .18s, color .18s;
}

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

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

.action.primary {
    background: var(--coral);
    color: white;
    box-shadow: 4px 4px 0 var(--coral-soft);
}

.action.primary:hover {
    background: #b54460;
}

.action.secondary {
    background: var(--paper);
    color: var(--leaf);
    border-color: var(--leaf);
}

.action.secondary:hover {
    background: #edfaf4;
}

.circuit-display {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    min-width: 0;
    overflow: hidden;
    padding: 28px;
    background: #bce8d5;
}

.circuit-display::before {
    content: "";
    position: absolute;
    top: -50px;
    right: -85px;
    width: 245px;
    height: 245px;
    border: 22px solid #96d7bb;
    border-radius: 50%;
}

.circuit-code, .circuit-caption {
    position: relative;
    z-index: 2;
    font-size: 11px;
    font-weight: 900;
    color: var(--leaf);
    letter-spacing: .15em;
}

.circuit-caption {
    text-align: right;
}

.module-card {
    position: relative;
    z-index: 1;
    width: min(100%, 312px);
    height: 290px;
    margin: 18px auto;
    border: 13px solid #71bea3;
    border-radius: 9px;
    background: #e8fbf2;
    transform: rotate(7deg);
    box-shadow: 14px 16px 0 #93d4bb;
}

.module-top {
    position: absolute;
    top: 20px;
    left: 22px;
    right: 22px;
    display: flex;
    justify-content: space-between;
}

.module-top i {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--coral);
    border: 3px solid #f0a7b8;
}

.module-wires {
    position: absolute;
    inset: 0;
}

.wire {
    position: absolute;
    display: block;
    border-color: #70ad93;
    border-style: solid;
}

.wire-a {
    left: 34px;
    top: 46px;
    height: 120px;
    width: 74px;
    border-width: 0 0 7px 7px;
    border-radius: 0 0 0 16px;
}

.wire-b {
    right: 43px;
    top: 44px;
    height: 133px;
    width: 60px;
    border-width: 0 7px 7px 0;
    border-radius: 0 0 14px 0;
}

.wire-c {
    left: 49px;
    right: 47px;
    bottom: 37px;
    height: 62px;
    border-width: 0 7px 7px;
    border-radius: 0 0 12px 12px;
}

.module-chip {
    position: absolute;
    top: 90px;
    left: 50%;
    display: grid;
    grid-template-columns: 18px 18px;
    grid-template-rows: 18px 18px;
    place-content: center;
    gap: 7px;
    width: 116px;
    height: 107px;
    border: 12px solid var(--coral);
    border-radius: 9px;
    background: #f7bccc;
    transform: translateX(-50%);
    box-shadow: 0 0 0 8px #fce6ed;
}

.module-chip i {
    display: block;
    border-radius: 4px;
    background: #d56b87;
}

.module-port {
    position: absolute;
    display: block;
    width: 15px;
    height: 15px;
    background: #5ca887;
    border-radius: 50%;
    border: 3px solid #b8ebd0;
}

.port-a { left: 25px; top: 148px; }
.port-b { right: 25px; top: 159px; }
.port-c { left: calc(50% - 7px); bottom: 22px; }

.chapter-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 0 0 10px;
    border-bottom: 3px solid var(--coral);
    color: var(--coral);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .13em;
    line-height: 1.4;
}

.arrival {
    padding-top: 42px;
    padding-bottom: 47px;
}

.arrival p {
    max-width: 1040px;
}

.repair-ledger {
    padding: 50px 0 52px;
    border-block: 1px solid var(--line);
    background: var(--paper);
}

.ledger-record {
    padding: 23px 0 28px;
    border-top: 1px solid var(--line);
}

.ledger-record:first-of-type {
    border-top: 6px solid var(--leaf-soft);
}

.record-heading {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-bottom: 15px;
}

.record-heading span {
    flex-shrink: 0;
    color: var(--coral);
    font-size: 27px;
    font-family: "Trebuchet MS", Arial, sans-serif;
    font-weight: 900;
    letter-spacing: -.07em;
}

.record-text {
    max-width: 1010px;
    padding-left: 55px;
}

.visit-box {
    padding: 46px 0 57px;
    background: var(--leaf-pale);
}

.visit-flow {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(285px, .9fr);
    gap: 39px;
    align-items: start;
}

.visit-copy {
    min-width: 0;
}

.open-hours {
    padding: 24px;
    border: 1px solid #a6d4c0;
    border-top: 7px solid var(--coral);
    background: var(--paper);
    box-shadow: 7px 7px 0 #c7e5d8;
}

.hours-topline {
    display: block;
    margin-bottom: 20px;
    color: var(--coral);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .14em;
}

.open-hours div {
    display: flex;
    justify-content: space-between;
    gap: 13px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
    font-size: 13px;
    line-height: 1.4;
    font-weight: 700;
}

.open-hours strong {
    white-space: nowrap;
    color: var(--leaf);
}

.detail-hero, .service-intro {
    padding-top: 54px;
    padding-bottom: 57px;
}

.detail-hero p, .service-intro p {
    max-width: 1030px;
}

.failure-sections, .service-procedure {
    padding: 45px 0 56px;
    border-block: 1px solid var(--line);
    background: var(--paper);
}

.failure-note {
    margin-top: 30px;
    padding: 25px 28px 29px;
    border-left: 7px solid var(--leaf-soft);
    background: #f1faf6;
}

.failure-note + .failure-note {
    border-left-color: var(--coral-soft);
    background: #fcf4f7;
}

.failure-counter, .stage-label {
    display: block;
    margin-bottom: 14px;
    color: var(--coral);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .14em;
}

.failure-note h3 {
    margin-bottom: 14px;
}

.closing-detail, .service-contact {
    padding-top: 47px;
    padding-bottom: 61px;
}

.closing-detail p, .service-contact p {
    max-width: 1040px;
}

.procedure-stage {
    position: relative;
    padding: 26px 0 22px 25px;
    border-left: 4px solid var(--leaf-soft);
    border-bottom: 1px solid var(--line);
}

.procedure-stage:last-child {
    border-bottom: 0;
}

.procedure-stage h3 {
    margin-bottom: 16px;
}

.procedure-stage p {
    max-width: 1000px;
}

.site-foot {
    border-top: 5px solid var(--leaf);
    background: var(--sky);
}

.foot-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    min-height: 98px;
}

.foot-brand {
    color: var(--leaf);
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -.03em;
    text-decoration: none;
}

.foot-inner nav {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}

.foot-inner nav a {
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.foot-inner nav a:hover {
    color: var(--coral);
    text-decoration: underline;
}

.foot-inner nav a.foot-small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 400;
}

@media (max-width: 1020px) {
    .opening-layout {
        gap: 25px;
        grid-template-columns: minmax(0, 1.2fr) minmax(255px, .9fr);
    }

    .circuit-display {
        padding: 18px;
    }

    .module-card {
        height: 270px;
    }

    .visit-flow {
        gap: 23px;
        grid-template-columns: minmax(0, 1fr) 280px;
    }
}

@media (max-width: 800px) {
    .shell {
        width: min(100% - 40px, 690px);
    }

    .head-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
        padding-block: 19px 15px;
    }

    .menu {
        gap: 20px;
    }

    .opening-layout, .visit-flow {
        display: block;
    }

    .opening-text {
        padding: 44px 0 38px;
    }

    .circuit-display {
        min-height: 337px;
        margin-bottom: 28px;
        padding: 18px 25px;
    }

    .module-card {
        height: 230px;
        width: 256px;
    }

    .module-chip {
        top: 74px;
        width: 93px;
        height: 89px;
        border-width: 8px;
    }

    .wire-a, .wire-b {
        height: 92px;
    }

    .wire-c {
        bottom: 23px;
        height: 35px;
    }

    .visit-flow .open-hours {
        margin-top: 28px;
        box-shadow: none;
    }
}

@media (max-width: 520px) {
    .shell {
        width: calc(100% - 34px);
    }

    h1 {
        font-size: 40px;
    }

    h2 {
        font-size: 28px;
    }

    p {
        font-size: 16px;
    }

    .identity {
        font-size: 20px;
    }

    .menu {
        gap: 10px 17px;
    }

    .menu a {
        font-size: 13px;
        padding-block: 7px;
    }

    .opening-text, .detail-hero, .service-intro {
        padding-block: 37px;
    }

    .cta-set {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
    }

    .action {
        width: 100%;
    }

    .circuit-display {
        padding-inline: 14px;
    }

    .chapter-heading {
        align-items: flex-start;
        gap: 10px;
        font-size: 10px;
    }

    .record-heading {
        gap: 15px;
    }

    .record-text {
        padding-left: 0;
    }

    .failure-note {
        padding: 20px 15px 22px;
    }

    .procedure-stage {
        padding-left: 17px;
    }

    .foot-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
        padding-block: 27px;
    }
}
