:root {
    --bg: #050a14;
    --panel: rgba(15, 29, 52, .72);
    --line: rgba(151, 180, 222, .18);
    --text: #f4f7fc;
    --muted: #8f9fb7;
    --blue: #438cff;
    --cyan: #61c9ff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 68% 42%, rgba(38, 102, 196, .18), transparent 33%),
        linear-gradient(135deg, #030710 0%, #07111f 52%, #050a14 100%);
    font-family: Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .2;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(to bottom, black, transparent 88%);
}

a { color: inherit; text-decoration: none; }

.shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto 1fr auto;
    width: min(1440px, 100%);
    min-height: 100dvh;
    margin: auto;
    padding: 0 56px;
}

.topbar {
    height: 92px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    border-bottom: 1px solid var(--line);
}

.brand {
    font-size: 25px;
    font-weight: 750;
    letter-spacing: -.04em;
}

.brand span, h1 span { color: var(--muted); font-weight: 450; }

.status {
    color: #aab7ca;
    font-size: 11px;
    letter-spacing: .18em;
}

.status i {
    display: inline-block;
    width: 7px;
    height: 7px;
    margin-right: 10px;
    border-radius: 50%;
    background: #55d89a;
    box-shadow: 0 0 16px #55d89a;
}

.nav-link {
    justify-self: end;
    color: #c8d3e3;
    font-size: 13px;
}

.hero {
    align-self: center;
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(340px, .7fr);
    gap: clamp(48px, 7vw, 110px);
    align-items: center;
    padding: 42px 0;
}

.pitch { max-width: 810px; }

.eyebrow {
    margin: 0 0 18px;
    color: var(--cyan);
    font-size: 11px;
    font-weight: 650;
    letter-spacing: .24em;
}

h1 {
    margin: 0;
    font-size: clamp(82px, 10vw, 154px);
    font-weight: 720;
    line-height: .88;
    letter-spacing: -.085em;
}

h1 span {
    margin-left: .05em;
    font-size: .28em;
    letter-spacing: -.04em;
}

h2 {
    max-width: 760px;
    margin: 30px 0 18px;
    font-size: clamp(25px, 2.6vw, 40px);
    font-weight: 580;
    line-height: 1.3;
    letter-spacing: -.035em;
}

.intro {
    max-width: 670px;
    margin: 0;
    color: #9eadc1;
    font-size: 15px;
    line-height: 1.85;
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 24px;
}

.tags span {
    padding: 7px 11px;
    color: #9eb1ca;
    border: 1px solid var(--line);
    font-size: 11px;
    letter-spacing: .04em;
}

.actions {
    display: flex;
    gap: 12px;
    margin-top: 30px;
}

.primary, .secondary {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    font-size: 13px;
    transition: transform .2s, background .2s, border-color .2s;
}

.primary {
    background: var(--blue);
    box-shadow: 0 14px 40px rgba(67, 140, 255, .24);
}

.secondary {
    color: #c4d1e2;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, .02);
}

.primary:hover, .secondary:hover { transform: translateY(-2px); }
.secondary:hover { border-color: rgba(151, 180, 222, .42); }

.contacts {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 22px;
    color: #75869e;
    font-size: 11px;
}

.contacts a:hover { color: var(--text); }

.visit-panel {
    min-height: 460px;
    max-height: 59vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    overflow: hidden;
    border: 1px solid var(--line);
    background: linear-gradient(145deg, rgba(17, 31, 54, .86), rgba(7, 15, 29, .78));
    box-shadow: 0 30px 80px rgba(0, 0, 0, .22);
    backdrop-filter: blur(18px);
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px;
    border-bottom: 1px solid var(--line);
}

.panel-head p {
    margin: 0 0 5px;
    color: var(--cyan);
    font-size: 9px;
    letter-spacing: .2em;
}

.panel-head h3 { margin: 0; font-size: 16px; font-weight: 550; }
.panel-head > span { color: #6f819a; font-size: 10px; }

.visit-list {
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #243a5b transparent;
}

.visit-row {
    display: grid;
    grid-template-columns: 8px 116px 1fr;
    gap: 10px;
    align-items: center;
    min-height: 43px;
    padding: 0 24px;
    border-bottom: 1px solid rgba(151, 180, 222, .09);
    font-size: 11px;
}

.visit-row code {
    color: #c5d3e7;
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 10px;
}

.location {
    overflow: hidden;
    color: #8496ad;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pulse {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 0 9px var(--blue);
}

.empty {
    display: grid;
    min-height: 260px;
    place-items: center;
    color: #71839b;
    font-size: 12px;
}

.privacy-note {
    margin: 0;
    padding: 13px 24px;
    color: #62738b;
    border-top: 1px solid var(--line);
    font-size: 9px;
}

footer {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #62738b;
    border-top: 1px solid var(--line);
    font-size: 10px;
}

@media (max-width: 860px) {
    .shell { padding: 0 22px; }
    .topbar { height: 72px; grid-template-columns: 1fr auto; }
    .status { display: none; }
    .hero { grid-template-columns: 1fr; gap: 38px; padding: 52px 0; }
    .visit-panel { min-height: 380px; max-height: 480px; }
    footer { gap: 20px; padding: 18px 0; }
}

@media (max-width: 520px) {
    h1 { font-size: 84px; }
    h2 { font-size: 25px; }
    .actions { flex-direction: column; }
    .contacts { flex-direction: column; gap: 8px; }
    .visit-row { grid-template-columns: 8px 102px 1fr; padding: 0 16px; }
    .panel-head, .privacy-note { padding-left: 16px; padding-right: 16px; }
    footer { align-items: flex-start; flex-direction: column; }
}

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