:root {
    --bg: #f5f6f8;
    --card: #fff;
    --ink: #1c2230;
    --muted: #667085;
    --line: #e3e6ec;
    --brand: #0f766e;
    --brand-ink: #fff;
    --danger: #b42318;
    --warn: #b54708;
    --ok: #067647;
    --radius: 10px
}

@media (prefers-color-scheme:dark) {
    :root {
        --bg: #10141b;
        --card: #181e28;
        --ink: #e8ebf1;
        --muted: #9aa3b2;
        --line: #283040;
        --brand: #2dd4bf;
        --brand-ink: #052b27;
        --danger: #f97066;
        --warn: #fdb022;
        --ok: #47cd89
    }
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    font: 14px/1.45 system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
    background: var(--bg);
    color: var(--ink)
}

h1 {
    font-size: 20px;
    margin: 0
}

h2 {
    font-size: 16px;
    margin: 0 0 10px
}

.layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    min-height: 100vh
}

.p-0 {
    padding: 0
}
.p-1 {
    padding: 4px
}
.p-2 {
    padding: 8px
}
.pl-1 {
    padding-left: 4px
}
.pl-2 {
    padding-left: 8px
}
.pr-1 {
    padding-right: 4px
}
.pr-2 {
    padding-right: 8px
}
.pt-1 {
    padding-top: 4px
}
.pt-2 {
    padding-top: 8px
}
.pb-1 {
    padding-bottom: 4px
}
.pb-2 {
    padding-bottom: 8px
}
.pb-3 {
    padding-bottom: 12px
}

.m-0 {
    margin: 0
}
.m-1 {
    margin: 5px
}
.m-2 {
    margin: 10px
}
.m-3 {
    margin: 15px
}
.mt-1 {
    margin-top: 5px
}
.mt-2 {
    margin-top: 10px
}
.mt-3 {
    margin-top: 15px
}
.mb-1 {
    margin-bottom: 5px
}
.mb-2 {
    margin-bottom: 10px
}
.mb-3 {
    margin-bottom: 15px
}

.bg-primary {
    background: var(--brand);
    color: var(--brand-ink)
}

nav {
    background: var(--card);
    border-right: 1px solid var(--line);
    padding: 14px 10px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: auto
}

nav .brand {
    font-weight: 700;
    padding: 4px 10px 14px;
    font-size: 15px
}

nav a {
    display: block;
    padding: 8px 10px;
    border-radius: 8px;
    color: var(--ink);
    text-decoration: none;
    cursor: pointer
}

nav a:hover {
    background: var(--bg)
}

nav a.on {
    background: var(--brand);
    color: var(--brand-ink)
}

nav .who {
    margin-top: 16px;
    padding: 10px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px
}

main {
    padding: 20px 24px;
    min-width: 0
}

.bar {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin: 0 0 14px
}

.bar .sp {
    flex: 1
}

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 14px
}

.tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 12px;
    margin-bottom: 14px
}

.tile {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px
}

.tile b {
    display: block;
    font-size: 22px
}

.tile span {
    color: var(--muted);
    font-size: 12px
}

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden
}

th,
td {
    text-align: left;
    padding: 8px 10px;
    border-bottom: 1px solid var(--line);
    vertical-align: top
}

th {
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .03em;
    background: var(--bg)
}

tr:last-child td {
    border-bottom: 0
}

tr.click {
    cursor: pointer
}

tr.click:hover td {
    background: var(--bg)
}

.wrap {
    overflow-x: auto
}

button,
.btn {
    font: inherit;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--ink);
    padding: 6px 12px;
    border-radius: 8px;
    cursor: pointer
}

button:hover {
    border-color: var(--brand)
}

button.primary {
    background: var(--brand);
    color: var(--brand-ink);
    border-color: var(--brand)
}

button.danger {
    color: var(--danger)
}

button:disabled {
    opacity: .5;
    cursor: default
}

button.sm {
    padding: 3px 8px;
    font-size: 12px
}

input,
select,
textarea {
    font: inherit;
    color: var(--ink);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 6px 8px;
    max-width: 100%
}

textarea {
    width: 100%;
    min-height: 90px
}

label {
    display: block;
    margin-bottom: 10px;
    font-size: 12px;
    color: var(--muted)
}

label input,
label select,
label textarea {
    display: block;
    width: 100%;
    margin-top: 3px;
    font-size: 14px
}

label.chk {
    display: flex;
    gap: 8px;
    align-items: center;
    color: var(--ink)
}

label.chk input {
    width: auto;
    margin: 0
}

.badge {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 600;
    background: var(--bg);
    border: 1px solid var(--line)
}

.b-ok {
    color: var(--ok)
}

.b-bad {
    color: var(--danger)
}

.b-warn {
    color: var(--warn)
}

.modal-bg {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 5vh 12px;
    overflow: auto;
    z-index: 10
}

.modal {
    background: var(--card);
    border-radius: 12px;
    padding: 18px;
    width: min(640px, 100%);
    border: 1px solid var(--line)
}

.modal.wide {
    width: min(900px, 100%)
}

.modal .foot {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    margin-top: 12px
}

.grid2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 12px
}

.login {
    max-width: 360px;
    margin: 12vh auto;
    background: var(--card);
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--line)
}

#toasts {
    position: fixed;
    right: 14px;
    bottom: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 20
}

.toast {
    background: var(--ink);
    color: var(--bg);
    padding: 10px 14px;
    border-radius: 8px;
    max-width: 360px
}

.toast.err {
    background: var(--danger);
    color: #fff
}

.muted {
    color: var(--muted)
}

.right {
    text-align: right
}

.pager {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 10px
}

.tree-child {
    margin-left: 18px
}

@media(max-width:760px) {
    .layout {
        grid-template-columns: 1fr
    }

    nav {
        position: static;
        height: auto;
        display: flex;
        flex-wrap: wrap;
        gap: 4px
    }

    nav .brand,
    nav .who {
        width: 100%
    }

    .grid2 {
        grid-template-columns: 1fr
    }

    main {
        padding: 14px
    }
}

html {
    scroll-behavior: smooth
}

body {
    min-height: 100vh;
    overflow: auto;
    overflow-x: hidden;
    background:
        radial-gradient(ellipse at 75% 10%, rgba(68, 128, 132, .15), transparent 34rem),
        #080e18;
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: normal;
    -webkit-font-smoothing: antialiased
}

 a {
    color: inherit;
    text-decoration: none
}

 .container {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto
}

 .site-header {
    padding: 26px 0
}

 .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px
}

 .brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-size: 19px;
    font-weight: 750;
    letter-spacing: -.05em
}

 .brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid rgba(158, 231, 207, .35);
    border-radius: 11px;
    background: linear-gradient(145deg, rgba(158, 231, 207, .2), rgba(158, 231, 207, .04));
    color: var(--accent);
    font-size: 14px;
    letter-spacing: -.08em
}

 .zz-nav-links {
    display: flex;
    align-items: center;
    gap: 34px;
    color: #b6c0ce;
    font-size: 13px
}

 .zz-nav-links a {
    transition: color .2s ease
}

 .zz-nav-links a:hover {
    color: var(--accent)
}

 .header-cta,
 .button-primary,
 .button-secondary {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 650;
    transition: transform .2s ease, background .2s ease, border-color .2s ease
}

 .header-cta,
 .button-primary {
    background: var(--accent);
    color: #08130f
}

 .header-cta:hover,
 .button-primary:hover {
    transform: translateY(-2px);
    background: #b7f4df
}

 .hero {
    position: relative;
    padding: 100px 0 105px
}

 .hero::after {
    position: absolute;
    top: 24px;
    right: -225px;
    width: 600px;
    height: 600px;
    border: 1px solid rgba(158, 231, 207, .07);
    border-radius: 50%;
    box-shadow: 0 0 0 65px rgba(158, 231, 207, .025), 0 0 0 130px rgba(158, 231, 207, .018);
    content: "";
    pointer-events: none
}

 .hero-copy {
    position: relative;
    z-index: 1;
    max-width: 720px
}

 .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase
}

 .eyebrow::before {
    width: 23px;
    height: 1px;
    background: var(--accent);
    content: ""
}

 .hero h1 {
    max-width: 720px;
    margin: 22px 0 20px;
    font-size: clamp(48px, 7.3vw, 82px);
    font-weight: 600;
    letter-spacing: -.075em;
    line-height: .99
}

 .hero h1 span {
    color: var(--accent)
}

 .hero-description {
    max-width: 560px;
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.8
}

 .hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 13px;
    margin-top: 32px
}

 .button-primary,
 .button-secondary {
    min-height: 50px
}

 .button-primary {
    padding: 0 22px
}

 .button-secondary {
    border: 1px solid var(--line);
    color: #dce3ed
}

 .button-secondary:hover {
    transform: translateY(-2px);
    border-color: rgba(158, 231, 207, .45)
}

 .hero-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 54px;
    color: #8390a2;
    font-size: 12px
}

 .status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px rgba(158, 231, 207, .65)
}

 .section {
    padding: 76px 0;
    border-top: 1px solid var(--line)
}

 .section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 32px
}

 .section-heading h2 {
    margin: 13px 0 0;
    font-size: clamp(30px, 4vw, 42px);
    font-weight: 550;
    letter-spacing: -.055em
}

 .section-heading p {
    max-width: 370px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75
}

 .service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px
}

 .service-card {
    min-height: 230px;
    padding: 25px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(21, 33, 51, .84), rgba(13, 21, 34, .68))
}

 .service-number {
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em
}

 .service-card h3 {
    margin: 28px 0 10px;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -.035em
}

 .service-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.75
}

 .about-section {
    padding: 74px 0
}

 .about-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 36px;
    padding: 38px 42px;
    border: 1px solid rgba(158, 231, 207, .17);
    border-radius: 14px;
    background: radial-gradient(ellipse at 85% 50%, rgba(83, 163, 139, .12), transparent 42%), #101a28
}

 .about-copy {
    max-width: 620px
}

 .about-copy h2 {
    margin: 13px 0 10px;
    font-size: clamp(27px, 3.5vw, 38px);
    font-weight: 550;
    letter-spacing: -.055em
}

 .about-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8
}

 .about-link {
    flex: 0 0 auto;
    color: var(--accent);
    font-size: 13px;
    font-weight: 650
}

 .site-footer {
    padding: 26px 0;
    border-top: 1px solid var(--line);
    color: #8390a2;
    font-size: 12px
}

 .footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px
}

 .footer-brand {
    color: #dce3ed;
    font-weight: 650
}

 .contact-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    padding: 28px 30px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(17, 26, 42, .72)
}

 .contact-panel p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8
}

 .contact-location {
    flex: 0 0 auto;
    color: #dce3ed !important
}

 .contact-location span {
    display: block;
    margin-bottom: 5px;
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase
}

@media (max-width: 700px) {
     .container {
        width: min(100% - 36px, 540px)
    }

     .site-header {
        padding: 18px 0
    }

     .zz-nav-links {
        display: none
    }

     .hero {
        padding: 78px 0 74px
    }

     .hero::after {
        top: 105px;
        right: -390px
    }

     .hero-description {
        font-size: 15px
    }

     .hero-note {
        margin-top: 42px
    }

     .section {
        padding: 58px 0
    }

     .section-heading {
        align-items: start;
        flex-direction: column;
        gap: 14px
    }

     .service-grid {
        grid-template-columns: 1fr
    }

     .service-card {
        min-height: 195px
    }

     .service-card h3 {
        margin-top: 27px
    }

     .about-section {
        padding: 54px 0
    }

     .about-panel {
        align-items: start;
        flex-direction: column;
        padding: 27px 24px
    }

     .contact-panel {
        align-items: start;
        flex-direction: column;
        padding: 24px
    }

     .footer-inner {
        align-items: start;
        flex-direction: column
    }
}
