:root {
    --bg: #eef5fb;
    --surface: #ffffff;
    --surface-soft: #f6f9fc;
    --surface-blue: #edf5ff;
    --surface-cyan: #edfafa;
    --border: #d6e1ec;
    --border-strong: #b8c9da;
    --text: #102033;
    --muted: #607087;
    --muted-strong: #34465c;
    --navy: #0c2d52;
    --navy-2: #143d68;
    --blue: #075fb8;
    --blue-2: #0b78d0;
    --cyan: #0a9bb0;
    --teal: #087d78;
    --success: #12815d;
    --shadow-sm: 0 8px 20px rgba(20, 45, 75, 0.06);
    --shadow-md: 0 18px 42px rgba(20, 45, 75, 0.12);
    --shadow-lg: 0 28px 70px rgba(20, 45, 75, 0.16);
    --radius: 8px;
    --content-width: 1240px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Noto Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(900px 560px at 11% -5%, rgba(7, 95, 184, 0.18), transparent 66%),
        radial-gradient(720px 520px at 93% 10%, rgba(10, 155, 176, 0.14), transparent 68%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.78) 25%, transparent 25%) 0 0 / 44px 44px,
        linear-gradient(225deg, rgba(255, 255, 255, 0.55) 25%, transparent 25%) 0 0 / 44px 44px,
        linear-gradient(180deg, #f7fbff 0%, #eef5fb 46%, #f8fbfd 100%);
}

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

img,
svg {
    display: block;
}

img {
    max-width: 100%;
}

.site-shell {
    position: relative;
    overflow: hidden;
}

.site-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(7, 95, 184, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(7, 95, 184, 0.055) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.52), rgba(0, 0, 0, 0.08) 62%, transparent);
}

.site-shell__glow {
    position: fixed;
    z-index: 0;
    width: 48rem;
    height: 16rem;
    pointer-events: none;
    filter: blur(36px);
    opacity: 0.42;
    transform: rotate(-12deg);
}

.site-shell__glow--left {
    top: -4rem;
    left: -18rem;
    background: linear-gradient(90deg, rgba(7, 95, 184, 0.22), rgba(10, 155, 176, 0.05));
}

.site-shell__glow--right {
    top: 7rem;
    right: -20rem;
    background: linear-gradient(90deg, rgba(10, 155, 176, 0.16), rgba(7, 95, 184, 0.08));
}

.page-shell {
    position: relative;
    z-index: 1;
    width: min(var(--content-width), calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    margin: 1rem 0 0;
    padding: 0.82rem 1rem 0.82rem 0.82rem;
    border: 1px solid rgba(184, 201, 218, 0.86);
    border-top: 3px solid rgba(7, 95, 184, 0.78);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-md);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    min-width: 0;
}

.brand__mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.45rem;
    height: 3.45rem;
    flex: 0 0 auto;
    border-radius: var(--radius);
    color: #ffffff;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.18), transparent 40%),
        linear-gradient(135deg, var(--navy) 0%, var(--blue) 58%, var(--cyan) 100%);
    box-shadow: 0 16px 32px rgba(7, 95, 184, 0.22);
}

.brand__mark svg {
    width: 1.75rem;
    height: 1.75rem;
}

.brand__copy {
    display: flex;
    flex-direction: column;
    gap: 0.22rem;
    min-width: 0;
}

.brand__title {
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: 0;
}

.brand__subtitle {
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.35;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.site-nav__link {
    position: relative;
    padding: 0.68rem 0.92rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    color: var(--muted-strong);
    font-size: 0.92rem;
    font-weight: 700;
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.site-nav__link:hover,
.site-nav__link:focus-visible,
.site-nav__link.is-active {
    color: var(--navy);
    background: linear-gradient(180deg, #f8fbff 0%, #edf5ff 100%);
    border-color: #bed3e8;
    box-shadow: inset 0 -2px 0 rgba(7, 95, 184, 0.28);
    transform: translateY(-1px);
}

.site-nav__link--accent {
    color: var(--blue);
    background: #f6faff;
    border-color: #c9d9e9;
}

.site-main {
    padding: 1.6rem 0 3rem;
}

.site-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 0 2rem;
    color: var(--muted);
    font-size: 0.86rem;
}

.messages {
    margin-top: 1rem;
}

.message {
    margin-bottom: 0.75rem;
    padding: 0.9rem 1rem;
    border: 1px solid #b7ded9;
    border-radius: var(--radius);
    background: linear-gradient(180deg, #f0fbf8 0%, #e7f7f3 100%);
    color: #135f52;
    box-shadow: var(--shadow-sm);
}

.card,
.search-panel,
.result-card,
.feature-card,
.quick-item,
.text-card,
.drawing-card {
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(214, 225, 236, 0.92);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.card,
.search-panel,
.text-card {
    padding: 1.45rem;
    margin-bottom: 1.1rem;
}

.page-heading {
    margin-bottom: 1.2rem;
}

.page-heading__eyebrow,
.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.46rem 0.75rem;
    border: 1px solid #bad2e7;
    border-radius: 999px;
    background: linear-gradient(180deg, #ffffff 0%, #edf6ff 100%);
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    box-shadow: 0 8px 18px rgba(7, 95, 184, 0.08);
}

.page-heading__eyebrow svg,
.badge svg {
    width: 0.95rem;
    height: 0.95rem;
}

.page-heading h1,
.card h1,
.search-panel h2,
.text-card h2 {
    margin: 0;
    letter-spacing: 0;
}

.page-heading h1 {
    margin-top: 0.85rem;
    max-width: 56rem;
    font-size: 2.8rem;
    line-height: 1.08;
}

.page-heading p {
    max-width: 54rem;
    margin: 0.85rem 0 0;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.72;
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(24rem, 0.9fr);
    gap: 1.5rem;
    min-height: 32rem;
    padding: 2rem;
    margin-bottom: 1.35rem;
    border: 1px solid rgba(178, 204, 229, 0.94);
    border-radius: var(--radius);
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 251, 255, 0.96) 52%, rgba(231, 244, 255, 0.92) 100%),
        linear-gradient(90deg, rgba(7, 95, 184, 0.08), rgba(10, 155, 176, 0.08));
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(90deg, rgba(7, 95, 184, 0.07) 1px, transparent 1px),
        linear-gradient(rgba(7, 95, 184, 0.06) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.38) 46%, rgba(0, 0, 0, 0.7) 100%);
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto -8rem -9rem 38%;
    height: 18rem;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(7, 95, 184, 0), rgba(7, 95, 184, 0.17), rgba(10, 155, 176, 0.1));
    filter: blur(34px);
    transform: rotate(-8deg);
}

.hero__content,
.hero__visual {
    position: relative;
    z-index: 1;
}

.hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.5rem 0;
}

.hero__actions,
.actions {
    display: flex;
    align-items: center;
    gap: 0.72rem;
    flex-wrap: wrap;
}

.btn,
button.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 2.9rem;
    padding: 0.78rem 1.12rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--blue-2) 0%, var(--blue) 52%, #064c95 100%);
    color: #ffffff;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 14px 28px rgba(7, 95, 184, 0.24);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.btn:hover,
button.btn:hover,
.btn:focus-visible,
button.btn:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(7, 95, 184, 0.28);
}

.btn-light {
    color: var(--navy);
    background: linear-gradient(180deg, #ffffff 0%, #f2f7fc 100%);
    border-color: #c4d4e3;
    box-shadow: 0 8px 18px rgba(20, 45, 75, 0.08);
}

.btn-secondary {
    background: linear-gradient(180deg, #168ca0 0%, #08758a 100%);
    box-shadow: 0 14px 28px rgba(8, 117, 138, 0.2);
}

.btn-ghost {
    color: var(--blue);
    background: #f4f9ff;
    border-color: #c8daeb;
    box-shadow: none;
}

.icon-token {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.72rem;
    height: 2.72rem;
    border: 1px solid #bfd3e6;
    border-radius: var(--radius);
    background: linear-gradient(180deg, #ffffff 0%, #edf6ff 100%);
    color: var(--blue);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.icon-token svg {
    width: 1.22rem;
    height: 1.22rem;
}

.network-panel {
    height: 100%;
    min-height: 28rem;
    padding: 1.05rem;
    border: 1px solid rgba(159, 192, 222, 0.9);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(238, 247, 255, 0.9)),
        linear-gradient(135deg, rgba(7, 95, 184, 0.08), rgba(10, 155, 176, 0.08));
    box-shadow: var(--shadow-md);
}

.network-panel__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0.8rem;
    border: 1px solid #cfe0ef;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.82);
}

.network-panel__top span,
.hero-metric span {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.network-panel__top strong,
.hero-metric strong {
    display: block;
    margin-top: 0.22rem;
    font-size: 1rem;
}

.network-panel__signal {
    display: flex;
    align-items: flex-end;
    gap: 0.22rem;
    height: 1.2rem;
}

.network-panel__signal i {
    display: block;
    width: 0.28rem;
    border-radius: 999px;
    background: var(--success);
}

.network-panel__signal i:nth-child(1) {
    height: 0.45rem;
}

.network-panel__signal i:nth-child(2) {
    height: 0.78rem;
}

.network-panel__signal i:nth-child(3) {
    height: 1.08rem;
}

.globe-map {
    position: relative;
    margin: 1rem 0;
    min-height: 18rem;
    border: 1px solid #c8dceb;
    border-radius: var(--radius);
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.78), rgba(234, 246, 255, 0.72)),
        repeating-linear-gradient(0deg, rgba(7, 95, 184, 0.045) 0, rgba(7, 95, 184, 0.045) 1px, transparent 1px, transparent 22px);
    overflow: hidden;
}

.globe-map svg {
    width: 100%;
    height: 100%;
    min-height: 18rem;
}

.map-grid {
    stroke: rgba(7, 95, 184, 0.34);
    stroke-width: 1.5;
}

.map-line {
    stroke: var(--blue);
    stroke-width: 2.4;
    stroke-linecap: round;
}

.map-line--teal {
    stroke: var(--teal);
}

.map-node {
    fill: #ffffff;
    stroke: var(--blue);
    stroke-width: 3;
}

.map-node--teal {
    stroke: var(--teal);
}

.map-card {
    fill: rgba(255, 255, 255, 0.82);
    stroke: #b8cfe3;
    stroke-width: 1.2;
}

.map-card-line {
    stroke: rgba(12, 45, 82, 0.62);
    stroke-width: 4;
    stroke-linecap: round;
}

.platform-strip,
.result-card__badges,
.doc-passport {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.platform-strip {
    margin-bottom: 0.9rem;
}

.platform-strip span,
.soft-badge,
.doc-badge,
.search-panel__status {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid #c5d9eb;
    background: linear-gradient(180deg, #ffffff 0%, #eff7ff 100%);
    color: var(--navy);
    font-weight: 800;
    box-shadow: 0 8px 16px rgba(20, 45, 75, 0.06);
}

.platform-strip span {
    min-width: 3.05rem;
    justify-content: center;
    padding: 0.42rem 0.55rem;
    font-size: 0.78rem;
}

.hero-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.72rem;
}

.hero-metric {
    min-height: 5.25rem;
    padding: 0.85rem;
    border: 1px solid #c8dceb;
    border-left: 3px solid var(--blue);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.84);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.35rem;
}

.feature-card {
    position: relative;
    padding: 1.25rem;
    overflow: hidden;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.feature-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.feature-card:hover,
.feature-card:focus-within {
    transform: translateY(-3px);
    border-color: #aac5de;
    box-shadow: var(--shadow-md);
}

.feature-card strong {
    display: block;
    margin: 0.88rem 0 0.42rem;
    font-size: 1rem;
}

.feature-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.91rem;
    line-height: 1.62;
}

.search-panel {
    position: relative;
    overflow: hidden;
}

.search-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(7, 95, 184, 0.06), transparent 34%, rgba(10, 155, 176, 0.06));
}

.search-panel > * {
    position: relative;
    z-index: 1;
}

.search-panel--featured {
    border-color: #b7d3ec;
    box-shadow: var(--shadow-md);
}

.search-panel__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.search-panel h2,
.card h2,
.text-card h2 {
    margin: 0 0 0.35rem;
    font-size: 1.34rem;
}

.search-panel__lead,
.section-lead {
    margin: 0;
    color: var(--muted);
    line-height: 1.62;
}

.card > .section-lead,
.section-card > .section-lead {
    margin-bottom: 1rem;
}

.search-panel__footer {
    margin-top: 1rem;
}

.search-panel__status {
    flex: 0 0 auto;
    padding: 0.46rem 0.72rem;
    color: var(--teal);
    font-size: 0.78rem;
}

form {
    margin: 0;
}

.search-main-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.9rem;
    align-items: end;
    margin-bottom: 0.95rem;
}

.form-grid,
.grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.82rem;
}

.field-group {
    display: flex;
    flex-direction: column;
}

.field-group--query input {
    min-height: 3.45rem;
    padding: 0.95rem 1rem;
    border-color: #b8cfe3;
    font-size: 1.04rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

label {
    display: block;
    margin-bottom: 0.46rem;
    color: var(--muted-strong);
    font-size: 0.83rem;
    font-weight: 800;
    letter-spacing: 0;
}

.field-note,
.search-hint {
    margin: 0.45rem 0 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.search-hint {
    padding-top: 0.9rem;
    border-top: 1px solid rgba(198, 216, 232, 0.7);
}

input,
select,
textarea {
    width: 100%;
    min-height: 2.85rem;
    padding: 0.76rem 0.88rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.96);
    color: var(--text);
    font: inherit;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

input::placeholder,
textarea::placeholder {
    color: #8799ad;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #6aa7dd;
    box-shadow: 0 0 0 4px rgba(7, 95, 184, 0.12);
    background: #ffffff;
}

code {
    padding: 0.12rem 0.38rem;
    border-radius: 5px;
    background: #eaf4ff;
    color: var(--navy);
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.88em;
}

.quick-grid,
.latest-grid,
.drawing-grid,
.entity-columns,
.detail-grid {
    display: grid;
    gap: 1rem;
}

.quick-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quick-item {
    display: block;
    padding: 1rem;
    border-left: 3px solid transparent;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.quick-item:hover,
.quick-item:focus-visible {
    transform: translateY(-2px);
    border-color: var(--blue);
    box-shadow: var(--shadow-md);
}

.quick-item strong {
    display: block;
    margin-bottom: 0.45rem;
}

.quick-item span {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.55;
}

.latest-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.latest-item {
    padding: 0.92rem;
    border: 1px solid var(--border);
    border-left: 3px solid var(--cyan);
    border-radius: var(--radius);
    background: rgba(246, 250, 253, 0.86);
}

.latest-item strong {
    display: block;
    margin-bottom: 0.35rem;
}

.latest-item span {
    color: var(--muted);
    font-size: 0.88rem;
}

.status-card,
.empty-state {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}

.status-card__content h2,
.empty-state h2 {
    margin: 0 0 0.35rem;
    font-size: 1.12rem;
}

.status-card__content p,
.empty-state p {
    margin: 0;
    color: var(--muted);
    line-height: 1.62;
}

.results-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.results-summary__stats {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.summary-chip {
    min-width: 8rem;
    padding: 0.82rem 0.92rem;
    border: 1px solid #c8d9e9;
    border-radius: var(--radius);
    background: linear-gradient(180deg, #ffffff 0%, #f1f8ff 100%);
}

.summary-chip span {
    display: block;
    color: var(--muted);
    font-size: 0.78rem;
    margin-bottom: 0.22rem;
}

.summary-chip strong {
    font-size: 1.18rem;
}

.result-stack {
    display: grid;
    gap: 0.92rem;
}

.result-card {
    position: relative;
    padding: 1.2rem 1.25rem;
    border-left: 4px solid var(--blue);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.result-card:hover {
    transform: translateY(-2px);
    border-color: #9ec0df;
    border-left-color: var(--cyan);
    box-shadow: var(--shadow-md);
}

.result-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.result-card__main {
    min-width: 0;
}

.result-card__kicker {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.42rem;
    margin-bottom: 0.62rem;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.country-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    min-height: 1.65rem;
    padding: 0.18rem 0.5rem;
    border-radius: 5px;
    background: var(--navy);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 900;
}

.result-card__title {
    margin: 0;
    font-size: 1.32rem;
    line-height: 1.34;
    letter-spacing: 0;
}

.result-card__badges {
    margin-top: 0.72rem;
}

.soft-badge {
    max-width: 100%;
    padding: 0.38rem 0.62rem;
    color: var(--muted-strong);
    font-size: 0.78rem;
    overflow-wrap: anywhere;
}

.result-card__id {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    padding: 0.52rem 0.72rem;
    border: 1px solid #bdd4e8;
    border-radius: var(--radius);
    background: linear-gradient(180deg, #ffffff 0%, #edf6ff 100%);
    color: var(--blue);
    font-size: 0.82rem;
    font-weight: 900;
}

.result-card__id svg {
    width: 0.92rem;
    height: 0.92rem;
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.72rem;
    margin-bottom: 0.95rem;
}

.meta-item {
    min-height: 5rem;
    padding: 0.78rem 0.86rem;
    border: 1px solid #d8e4ef;
    border-radius: var(--radius);
    background: rgba(248, 251, 253, 0.8);
}

.meta-item span {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.meta-item strong,
.meta-item div {
    color: var(--text);
    font-size: 0.91rem;
    line-height: 1.52;
    overflow-wrap: anywhere;
}

.result-card__excerpt {
    margin: 0 0 0.98rem;
    padding: 0.88rem 0.95rem;
    border-left: 3px solid #bdd4e8;
    background: #f7fbff;
    color: var(--muted-strong);
    line-height: 1.68;
}

.result-card__actions {
    justify-content: flex-end;
}

.pagination-card {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.doc-hero {
    position: relative;
    padding: 1.55rem;
    margin-bottom: 1.1rem;
    border: 1px solid #b9d1e7;
    border-top: 4px solid var(--blue);
    border-radius: var(--radius);
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.98), rgba(241, 248, 255, 0.95)),
        linear-gradient(90deg, rgba(7, 95, 184, 0.07), rgba(10, 155, 176, 0.06));
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.doc-hero::after {
    content: "";
    position: absolute;
    inset: auto -5rem -7rem 45%;
    height: 13rem;
    background: linear-gradient(90deg, rgba(7, 95, 184, 0.12), rgba(10, 155, 176, 0.08));
    filter: blur(32px);
    pointer-events: none;
}

.doc-hero > * {
    position: relative;
    z-index: 1;
}

.doc-hero__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.doc-hero__title {
    margin: 0.7rem 0 0;
    font-size: 2.35rem;
    line-height: 1.16;
    letter-spacing: 0;
}

.doc-passport {
    margin-top: 0.95rem;
}

.doc-badge {
    flex-direction: column;
    align-items: flex-start;
    min-width: 8rem;
    padding: 0.72rem 0.86rem;
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.92rem;
}

.doc-badge small {
    margin-bottom: 0.2rem;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.doc-hero__actions {
    margin-top: 1.12rem;
}

.doc-hero__meta {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.78rem;
}

.doc-hero__meta .meta-item {
    min-height: auto;
}

.detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.section-card {
    position: relative;
    padding: 1.25rem;
    margin-bottom: 1.1rem;
    border-top: 3px solid #c2d9ed;
}

.section-card h2 {
    margin: 0 0 0.95rem;
    font-size: 1.24rem;
}

.definition-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.72rem;
}

.definition-item {
    padding: 0.8rem 0.86rem;
    border: 1px solid #d8e4ef;
    border-radius: var(--radius);
    background: rgba(248, 251, 253, 0.8);
}

.definition-item span {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.definition-item strong,
.definition-item div {
    font-size: 0.91rem;
    line-height: 1.58;
    overflow-wrap: anywhere;
}

.entity-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.entity-card {
    padding: 0 0.2rem;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.entity-card h3 {
    margin: 0 0 0.78rem;
    font-size: 0.98rem;
    color: var(--navy);
}

.plain-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.plain-list li {
    position: relative;
    padding: 0.62rem 0 0.62rem 0.95rem;
    border-top: 1px solid #e1e9f1;
    color: var(--muted-strong);
    line-height: 1.55;
}

.plain-list li:first-child {
    border-top: 0;
    padding-top: 0;
}

.plain-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1rem;
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 50%;
    background: var(--blue);
}

.plain-list li:first-child::before {
    top: 0.38rem;
}

.muted {
    color: var(--muted);
}

.text-card {
    border-left: 4px solid var(--blue);
}

.text-card__content {
    max-width: 78ch;
    color: var(--muted-strong);
    font-size: 1rem;
    line-height: 1.82;
    overflow-wrap: anywhere;
}

.text-card__content p {
    margin: 0;
}

.drawing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.drawing-card {
    margin: 0;
    padding: 0.78rem;
    background: #ffffff;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.drawing-card:hover {
    transform: translateY(-2px);
    border-color: #aac5de;
    box-shadow: var(--shadow-md);
}

.drawing-card img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    padding: 0.7rem;
    border: 1px solid #d7e4ee;
    border-radius: var(--radius);
    background:
        linear-gradient(45deg, #f8fbfd 25%, transparent 25%) 0 0 / 18px 18px,
        linear-gradient(45deg, transparent 75%, #f8fbfd 75%) 0 0 / 18px 18px,
        #ffffff;
}

.drawing-card figcaption {
    margin-top: 0.72rem;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.5;
}

.citation-link {
    color: var(--blue);
    font-weight: 800;
}

.service-data {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.72rem;
}

@media (max-width: 1100px) {
    .hero,
    .detail-grid,
    .entity-columns {
        grid-template-columns: 1fr;
    }

    .feature-grid,
    .meta-grid,
    .quick-grid,
    .latest-grid,
    .drawing-grid,
    .doc-hero__meta,
    .definition-grid,
    .service-data,
    .form-grid,
    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .page-shell {
        width: min(var(--content-width), calc(100% - 24px));
    }

    .site-header,
    .results-summary,
    .doc-hero__top,
    .pagination-card,
    .search-panel__header {
        flex-direction: column;
        align-items: stretch;
    }

    .site-nav {
        justify-content: flex-start;
    }

    .hero,
    .feature-grid,
    .form-grid,
    .grid,
    .meta-grid,
    .quick-grid,
    .latest-grid,
    .drawing-grid,
    .doc-hero__meta,
    .definition-grid,
    .service-data,
    .hero-metric-grid {
        grid-template-columns: 1fr;
    }

    .search-main-row {
        grid-template-columns: 1fr;
    }

    .page-heading h1 {
        font-size: 2.15rem;
    }

    .doc-hero__title {
        font-size: 1.9rem;
    }
}

@media (max-width: 640px) {
    .site-main {
        padding-top: 1.15rem;
    }

    .site-header {
        margin-top: 0.75rem;
        padding: 0.8rem;
    }

    .brand {
        align-items: flex-start;
    }

    .brand__subtitle {
        font-size: 0.76rem;
    }

    .hero,
    .doc-hero,
    .card,
    .search-panel,
    .section-card,
    .text-card,
    .result-card {
        padding: 1rem;
    }

    .hero {
        min-height: auto;
    }

    .network-panel {
        min-height: auto;
    }

    .globe-map,
    .globe-map svg {
        min-height: 14rem;
    }

    .result-card__header {
        flex-direction: column;
    }

    .site-footer {
        flex-direction: column;
    }
}
