:root {
    --ink: #24384f;
    --ink-soft: #40586d;
    --paper: #f6fbfd;
    --paper-strong: #ffffff;
    --mist: #e7f0f3;
    --line: #b8cbd3;
    --line-strong: #7898a5;
    --blue: #17677f;
    --blue-deep: #28526d;
    --signal: #e66a3d;
    --signal-soft: #fff0ea;
    --focus: #ff9a63;
    --wrap: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

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

a {
    color: inherit;
}

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

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

h1,
h2,
h3 {
    margin: 0;
    color: var(--ink);
    line-height: 1.12;
}

h1 {
    margin-bottom: 22px;
    font-size: 40px;
    letter-spacing: -0.8px;
}

h2 {
    margin-bottom: 18px;
    font-size: 28px;
    letter-spacing: -0.35px;
}

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

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

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

.header-grid {
    display: grid;
    grid-template-columns: 220px 1fr auto;
    align-items: stretch;
    min-height: 84px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 22px;
    border-right: 1px solid var(--line);
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    background: var(--blue);
    color: #ffffff;
    font-size: 13px;
    letter-spacing: 1.5px;
}

.brand-copy {
    display: grid;
    gap: 2px;
}

.brand-copy strong {
    font-size: 17px;
}

.brand-copy span {
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 400;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0 20px;
}

.main-nav a {
    padding: 11px 12px;
    border-bottom: 3px solid transparent;
    color: var(--ink-soft);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
    border-bottom-color: var(--signal);
    color: var(--ink);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.action {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: 2px solid var(--blue);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: background .18s ease, color .18s ease, transform .18s ease;
}

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

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

.action-phone {
    background: var(--blue);
    color: #ffffff;
}

.action-phone:hover {
    background: var(--blue-deep);
}

.action-online {
    background: transparent;
    color: var(--blue);
}

.action-online:hover {
    background: var(--mist);
}

.service-bar {
    background: var(--ink);
    color: #ffffff;
}

.service-bar .wrap {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 22px;
    align-items: center;
    min-height: 42px;
}

.service-bar strong,
.service-bar span {
    font-size: 13px;
}

.service-bar span {
    color: #d9e6eb;
}

.ticket-intro {
    padding: 70px 0 54px;
}

.ticket-shell {
    display: grid;
    grid-template-columns: 78px minmax(0, 1.35fr) minmax(270px, .65fr);
    border-top: 1px solid var(--line-strong);
    border-bottom: 1px solid var(--line-strong);
    background: var(--paper-strong);
}

.ticket-index {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 28px;
    border-right: 1px solid var(--line);
    color: var(--blue);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

.ticket-copy {
    padding: 38px 44px 34px;
}

.kicker {
    display: inline-block;
    margin-bottom: 15px;
    color: var(--signal);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.lead {
    max-width: 760px;
    color: var(--ink-soft);
    font-size: 16px;
}

.ticket-side {
    display: grid;
    align-content: start;
    gap: 0;
    border-left: 1px solid var(--line);
    background: var(--mist);
}

.side-row {
    padding: 24px 26px;
    border-bottom: 1px solid var(--line);
}

.side-row:last-child {
    border-bottom: 0;
}

.side-row span {
    display: block;
    margin-bottom: 5px;
    color: var(--ink-soft);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.side-row strong {
    display: block;
    font-size: 17px;
}

.intro-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 26px;
}

.section {
    padding: 58px 0;
}

.section-rule {
    border-top: 1px solid var(--line);
}

.section-title {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
    gap: 28px;
    margin-bottom: 34px;
    align-items: start;
}

.section-number {
    padding-top: 6px;
    color: var(--signal);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
}

.section-title p {
    max-width: 760px;
    color: var(--ink-soft);
}

.route-list {
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr);
}

.route-label {
    padding: 22px 24px 22px 0;
    border-top: 1px solid var(--line);
    color: var(--blue);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}

.route-body {
    position: relative;
    padding: 22px 0 22px 38px;
    border-top: 1px solid var(--line);
}

.route-body::before {
    content: "";
    position: absolute;
    left: 0;
    top: 28px;
    width: 14px;
    height: 14px;
    background: var(--signal);
}

.route-body p:last-child {
    margin-bottom: 0;
}

.device-ledger {
    border-top: 1px solid var(--line-strong);
}

.device-row {
    display: grid;
    grid-template-columns: 58px 250px minmax(0, 1fr) auto;
    align-items: center;
    min-height: 84px;
    border-bottom: 1px solid var(--line);
    text-decoration: none;
}

.device-code {
    color: var(--signal);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.4px;
}

.device-name {
    font-size: 20px;
    font-weight: 700;
}

.device-scope {
    padding-right: 24px;
    color: var(--ink-soft);
    font-size: 15px;
}

.device-arrow {
    color: var(--blue);
    font-size: 22px;
    transition: transform .18s ease;
}

.device-row:hover {
    background: #edf6f8;
}

.device-row:hover .device-arrow {
    transform: translateX(5px);
}

.device-row.is-static:hover {
    background: transparent;
}

.device-row.is-static .device-arrow {
    color: var(--line-strong);
}

.notice-band {
    background: var(--ink);
    color: #ffffff;
}

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

.notice-block {
    padding: 46px 42px;
    border-right: 1px solid #52677a;
}

.notice-block:last-child {
    border-right: 0;
}

.notice-block h2,
.notice-block h3 {
    color: #ffffff;
}

.notice-block p {
    color: #d9e6eb;
}

.notice-value {
    display: block;
    margin-bottom: 10px;
    color: #ffb08e;
    font-size: 31px;
    font-weight: 700;
    line-height: 1;
}

.symptom-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--line-strong);
}

.symptom {
    padding: 26px 28px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.symptom:nth-child(2n) {
    border-right: 0;
}

.symptom strong {
    display: block;
    margin-bottom: 8px;
    color: var(--blue);
    font-size: 15px;
}

.symptom p {
    margin-bottom: 0;
}

.service-notes {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 52px;
    align-items: start;
}

.note-rail {
    border-top: 4px solid var(--signal);
    padding-top: 22px;
}

.note-rail p:last-child {
    margin-bottom: 0;
}

.footer-info {
    padding: 28px 0;
    border-top: 1px solid var(--line);
}

.footer-info p {
    margin: 0;
    color: var(--ink-soft);
}

.site-footer {
    background: var(--blue-deep);
    color: #ffffff;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 28px;
    align-items: center;
    min-height: 92px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
}

.footer-links a {
    color: #e5f0f4;
    font-size: 14px;
    text-decoration: none;
}

.footer-links a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-subtle {
    opacity: .64;
}

.footer-mark {
    font-size: 14px;
    font-weight: 700;
}

@media (max-width: 1020px) {
    .header-grid {
        grid-template-columns: 1fr auto;
    }

    .main-nav {
        grid-column: 1 / -1;
        order: 3;
        padding: 0;
        border-top: 1px solid var(--line);
        flex-wrap: wrap;
    }

    .main-nav a {
        white-space: nowrap;
    }

    .brand {
        border-right: 0;
    }

    .ticket-shell {
        grid-template-columns: 62px minmax(0, 1fr);
    }

    .ticket-side {
        grid-column: 1 / -1;
        grid-template-columns: repeat(3, 1fr);
        border-top: 1px solid var(--line);
        border-left: 0;
    }

    .side-row {
        border-right: 1px solid var(--line);
        border-bottom: 0;
    }

    .side-row:last-child {
        border-right: 0;
    }

    .device-row {
        grid-template-columns: 50px 210px minmax(0, 1fr) auto;
    }
}

@media (max-width: 760px) {
    .wrap {
        width: min(100% - 28px, var(--wrap));
    }

    .header-grid {
        display: block;
        padding: 14px 0;
    }

    .brand {
        margin-bottom: 12px;
        padding-right: 0;
    }

    .header-actions {
        margin-bottom: 12px;
    }

    .main-nav {
        margin-inline: 0;
        padding-inline: 0;
    }

    .service-bar .wrap {
        grid-template-columns: 1fr;
        gap: 2px;
        padding: 10px 0;
    }

    .ticket-intro {
        padding: 40px 0 34px;
    }

    .ticket-shell {
        grid-template-columns: 1fr;
    }

    .ticket-index {
        display: block;
        padding: 14px 20px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
        writing-mode: horizontal-tb;
    }

    .ticket-copy {
        padding: 28px 22px;
    }

    .ticket-side {
        grid-template-columns: 1fr;
    }

    .side-row {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .side-row:last-child {
        border-bottom: 0;
    }

    .section {
        padding: 44px 0;
    }

    .section-title,
    .route-list,
    .service-notes {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .section-title {
        margin-bottom: 26px;
    }

    .route-label {
        padding: 18px 0 8px;
    }

    .route-body {
        padding: 14px 0 24px 30px;
        border-top: 0;
    }

    .route-body::before {
        top: 19px;
    }

    .device-row {
        grid-template-columns: 42px minmax(0, 1fr) auto;
        gap: 8px;
        padding: 16px 0;
    }

    .device-scope {
        grid-column: 2 / -1;
        padding-right: 0;
    }

    .notice-grid,
    .symptom-grid {
        grid-template-columns: 1fr;
    }

    .notice-block {
        padding: 34px 0;
        border-right: 0;
        border-bottom: 1px solid #52677a;
    }

    .notice-block:last-child {
        border-bottom: 0;
    }

    .symptom {
        border-right: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        padding: 24px 0;
    }

    .action {
        width: 100%;
    }
}
