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

:root {
    --bg-primary: #0A192F;
    --bg-card: #112240;
    --accent-green: #39FF14;
    --accent-orange: #FF6B00;
    --text-light: #E6F1FF;
    --text-muted: #8892B0;
    --text-white: #FFFFFF;
    --warning-red: #FF2E2E;
    --font-heading: Impact, 'Arial Black', sans-serif;
    --font-body: 'Noto Sans SC', 'Microsoft YaHei', sans-serif;
    --font-data: 'Roboto Mono', 'Courier New', monospace;
    --container-w: 1280px;
    --header-top-h: 36px;
    --header-main-h: 72px;
    --space-section: clamp(4rem, 10vw, 8rem);
}

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-body);
    background-color: var(--bg-primary);
    color: var(--text-light);
    line-height: 1.75;
    font-size: 16px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

img, svg { display: block; max-width: 100%; height: auto; }

ul[class], ol[class] { list-style: none; }

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

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

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

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 300;
    background: var(--accent-green);
    color: var(--bg-primary);
    padding: 12px 24px;
    font-family: var(--font-heading);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: top 0.3s ease;
}

.skip-link:focus { top: 16px; }

.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent-green);
    z-index: 999;
    transform-origin: left center;
    transform: scaleX(0);
    box-shadow: 0 0 12px rgba(57, 255, 20, 0.6);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 25, 47, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(57, 255, 20, 0.15);
}

.site-header__top {
    background: var(--bg-card);
    border-bottom: 1px solid rgba(136, 146, 176, 0.2);
    font-family: var(--font-data);
    font-size: 12px;
}

.site-header__top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: var(--header-top-h);
}

.site-header__status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.site-header__contact {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.site-header__contact a {
    color: var(--text-muted);
    transition: color 0.2s ease;
}

.site-header__contact a:hover { color: var(--accent-green); }

.site-header__main-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: var(--header-main-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.brand__icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    filter: drop-shadow(0 0 6px rgba(57, 255, 20, 0.3));
}

.brand__text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand__text strong {
    font-family: var(--font-heading);
    font-size: 22px;
    color: var(--text-white);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.brand__text small {
    font-family: var(--font-data);
    font-size: 10px;
    color: var(--accent-orange);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.site-nav__list {
    display: flex;
    align-items: center;
    gap: 4px;
}

.site-nav__list a {
    display: inline-block;
    padding: 8px 14px;
    font-family: var(--font-heading);
    font-size: 15px;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 1px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease, text-shadow 0.2s ease;
}

.site-nav__list a:hover {
    color: var(--accent-green);
    text-shadow: 0 0 12px rgba(57, 255, 20, 0.4);
}

.site-nav__list a[aria-current="page"] {
    color: var(--accent-green);
    border-bottom-color: var(--accent-green);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 10px 20px;
    background: transparent;
    border: 2px solid var(--accent-green);
    color: var(--accent-green);
    clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%, 8px 50%);
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
    white-space: nowrap;
}

.btn:hover {
    background: var(--accent-green);
    color: var(--bg-primary);
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.3);
}

.btn-primary {
    background: var(--accent-green);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: var(--text-white);
    border-color: var(--text-white);
    box-shadow: 0 0 24px rgba(230, 241, 255, 0.4);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 12px;
}

.site-header__cta { flex-shrink: 0; }

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    position: relative;
    z-index: 110;
    flex-shrink: 0;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-light);
    margin: 5px auto;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-footer {
    background: var(--bg-card);
    border-top: 4px solid var(--accent-green);
    margin-top: auto;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding: 64px 0 48px;
}

.site-footer__brand p {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 16px;
}

.trust-statement {
    border-left: 3px solid var(--accent-orange);
    padding-left: 16px;
    font-family: var(--font-data);
    font-size: 13px;
    line-height: 1.8;
    color: var(--text-light);
}

.site-footer h4 {
    font-family: var(--font-heading);
    font-size: 16px;
    text-transform: uppercase;
    color: var(--text-white);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.site-footer__nav ul,
.site-footer__legal ul,
.site-footer__contact ul {
    list-style: none;
    display: grid;
    gap: 12px;
}

.site-footer__nav a,
.site-footer__legal a,
.site-footer__contact a {
    color: var(--text-muted);
    font-size: 14px;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.site-footer__nav a:hover,
.site-footer__legal a:hover,
.site-footer__contact a:hover {
    color: var(--accent-green);
    padding-left: 4px;
}

.site-footer__contact ul {
    font-size: 14px;
    color: var(--text-muted);
}

.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px 0;
    border-top: 1px solid rgba(136, 146, 176, 0.2);
    font-family: var(--font-data);
    font-size: 12px;
    color: var(--text-muted);
}

.back-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--bg-card);
    border: 1px solid var(--accent-green);
    color: var(--accent-green);
    font-size: 24px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%);
    z-index: 900;
}

.back-top[data-visible] {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-top:hover {
    background: var(--accent-green);
    color: var(--bg-primary);
    box-shadow: 0 0 20px rgba(57, 255, 20, 0.4);
}

.card {
    background: var(--bg-card);
    border: 1px solid rgba(136, 146, 176, 0.15);
    padding: 24px;
    height: 100%;
}

.card--cut {
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-data);
    font-size: 12px;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 2px;
    background: rgba(136, 146, 176, 0.15);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tag-live {
    background: rgba(255, 46, 46, 0.15);
    color: var(--warning-red);
}

.tag-live::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--warning-red);
    animation: pulse 1.5s ease-in-out infinite;
}

.tag-accent {
    background: rgba(57, 255, 20, 0.1);
    color: var(--accent-green);
}

.tag-orange {
    background: rgba(255, 107, 0, 0.1);
    color: var(--accent-orange);
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    text-transform: uppercase;
    line-height: 1.1;
    color: var(--text-white);
    max-width: 14em;
}

.section-title .highlight { color: var(--accent-green); }

.section-number {
    font-family: var(--font-data);
    font-size: 14px;
    color: var(--accent-orange);
    display: block;
    margin-bottom: 8px;
}

.img-frame {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-primary) 100%);
    border: 1px solid rgba(57, 255, 20, 0.3);
    overflow: hidden;
}

.img-frame::after {
    content: attr(data-label);
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-data);
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.img-frame--portrait { aspect-ratio: 3 / 4; }

.grid { display: grid; gap: 24px; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr); }

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
    font-family: var(--font-data);
    font-size: 13px;
    color: var(--text-muted);
}

.breadcrumbs a { color: var(--text-muted); transition: color 0.2s ease; }
.breadcrumbs a:hover { color: var(--accent-green); }
.breadcrumbs .sep { color: var(--text-muted); opacity: 0.5; }
.breadcrumbs [aria-current] { color: var(--accent-green); }

.text-muted { color: var(--text-muted); }
.font-data { font-family: var(--font-data); }
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-4 { margin-top: 4rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

:focus-visible {
    outline: 2px solid var(--accent-green);
    outline-offset: 4px;
}

@media (max-width: 960px) {
    .site-header__cta { display: none; }
    .nav-toggle { display: block; }
    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(10, 25, 47, 0.98);
        border-bottom: 2px solid var(--accent-green);
        padding: 16px 24px 24px;
        max-height: calc(100vh - 100px);
        overflow-y: auto;
    }
    .site-nav[data-open] { display: block; }
    .site-nav__list { flex-direction: column; align-items: stretch; gap: 8px; }
    .site-nav__list a {
        display: block;
        padding: 12px 16px;
        border-left: 3px solid transparent;
        border-bottom-color: transparent;
        font-size: 18px;
    }
    .site-nav__list a[aria-current="page"] {
        border-left-color: var(--accent-green);
        border-bottom-color: transparent;
    }
    .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .grid-cols-4 { grid-template-columns: 1fr 1fr; }
    .grid-cols-3 { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
    .container { width: min(100% - 32px, var(--container-w)); }
    .site-header__contact span { display: none; }
    .site-header__contact { gap: 8px; }
    .site-header__status { font-size: 11px; }
    .site-footer__grid { grid-template-columns: 1fr; }
    .site-footer__bottom { flex-direction: column; text-align: center; }
    .grid-cols-2, .grid-cols-3, .grid-cols-4 { grid-template-columns: 1fr; }
    .back-top { bottom: 24px; right: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .tag-live::before { animation: none; }
    [data-reveal] { opacity: 1; transform: none; }
    .back-top, .scroll-progress { transition: none; }
}
