:root {
    --bg: #070a17;
    --bg-soft: #0d1326;
    --panel: rgba(14, 20, 38, 0.84);
    --panel-solid: #11182d;
    --line: rgba(190, 210, 255, 0.16);
    --text: #f5f7ff;
    --muted: #aeb8d5;
    --muted-2: #7782a5;
    --blue: #58b7ff;
    --violet: #9b78ff;
    --silver: #dce7ff;
    --mint: #80f0d2;
    --rose: #ff6f9f;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
    --radius: 8px;
    --container: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

body.has-site-intro {
    overflow: hidden;
}

.site-intro {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #000;
    opacity: 1;
    transition: opacity 0.75s ease, visibility 0.75s ease;
}

.site-intro-video {
    display: block;
    width: 80vw;
    height: auto;
    max-height: 100vh;
    max-width: none;
    background: #000;
    object-fit: contain;
}

.site-intro.is-leaving {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.site-intro-stars,
.site-intro-stars::before,
.site-intro-stars::after {
    position: absolute;
    inset: -20%;
    content: "";
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 1px, transparent 1.6px),
        radial-gradient(circle, rgba(115, 185, 255, 0.8) 0 1px, transparent 1.8px);
    background-position: 0 0, 43px 67px;
    background-size: 113px 127px, 173px 191px;
    animation: intro-stars 4s ease-out both;
}

.site-intro-stars::before {
    transform: rotate(37deg) scale(1.15);
    opacity: 0.45;
}

.site-intro-stars::after {
    transform: rotate(-23deg) scale(0.85);
    opacity: 0.3;
}

.site-intro-scene {
    position: relative;
    width: min(82vw, 720px);
    perspective: 1200px;
    transform-style: preserve-3d;
}

.site-intro-logo-wrap {
    position: relative;
    transform-style: preserve-3d;
    animation: intro-logo 3.25s cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.site-intro-logo {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    filter: drop-shadow(0 20px 28px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 22px rgba(103, 181, 255, 0.25));
}

.site-intro-logo-shadow {
    position: absolute;
    inset: 18% 5%;
    z-index: 1;
    background: rgba(60, 152, 255, 0.42);
    filter: blur(40px);
    transform: translateZ(-55px);
}

.site-intro-logo-shine {
    position: absolute;
    inset: 0;
    z-index: 3;
    overflow: hidden;
    pointer-events: none;
    transform: translateZ(3px);
}

.site-intro-logo-shine::after {
    position: absolute;
    top: -40%;
    left: -35%;
    width: 18%;
    height: 180%;
    content: "";
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.75), transparent);
    filter: blur(8px);
    transform: rotate(16deg);
    animation: intro-shine 1.05s 1.75s ease-in-out both;
}

.site-intro-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 115%;
    aspect-ratio: 3 / 1;
    border: 1px solid rgba(105, 187, 255, 0.38);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(70, 155, 255, 0.18), inset 0 0 18px rgba(92, 173, 255, 0.12);
    transform: translate(-50%, -50%) rotateX(68deg) rotateZ(-8deg);
    animation: intro-orbit 3s 0.35s ease-out both;
}

.site-intro-tagline {
    position: absolute;
    top: calc(50% + clamp(80px, 13vw, 145px));
    left: 50%;
    margin: 0;
    color: #cfe5ff;
    font-size: clamp(0.68rem, 1.4vw, 0.92rem);
    font-weight: 600;
    letter-spacing: 0.48em;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0;
    transform: translate(-50%, 12px);
    animation: intro-tagline 1s 2.05s ease-out forwards;
}

.site-intro-skip {
    position: absolute;
    right: 24px;
    bottom: 22px;
    padding: 7px 12px;
    border: 1px solid rgba(190, 210, 255, 0.22);
    border-radius: 6px;
    background: rgba(7, 10, 23, 0.48);
    color: rgba(225, 235, 255, 0.72);
    font-size: 0.78rem;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.site-intro-skip:hover,
.site-intro-skip:focus-visible {
    border-color: rgba(105, 187, 255, 0.72);
    background: rgba(24, 49, 83, 0.7);
    color: #fff;
}

@keyframes intro-logo {
    0% { opacity: 0; transform: translateZ(-650px) rotateX(24deg) rotateY(-95deg) scale(0.42); }
    38% { opacity: 1; transform: translateZ(55px) rotateX(-5deg) rotateY(12deg) scale(1.04); }
    62% { transform: translateZ(0) rotateX(0) rotateY(-5deg) scale(1); }
    82% { opacity: 1; transform: translateZ(15px) rotateX(0) rotateY(0) scale(1); }
    100% { opacity: 0; transform: translateZ(240px) rotateX(-3deg) rotateY(0) scale(1.12); }
}

@keyframes intro-shine {
    from { left: -35%; opacity: 0; }
    20%, 80% { opacity: 1; }
    to { left: 120%; opacity: 0; }
}

@keyframes intro-orbit {
    0% { opacity: 0; transform: translate(-50%, -50%) rotateX(68deg) rotateZ(-40deg) scale(0.35); }
    45% { opacity: 1; }
    100% { opacity: 0; transform: translate(-50%, -50%) rotateX(68deg) rotateZ(35deg) scale(1.12); }
}

@keyframes intro-stars {
    from { opacity: 0; transform: scale(0.82); }
    35% { opacity: 1; }
    to { opacity: 0.55; transform: scale(1.08); }
}

@keyframes intro-tagline {
    0% { opacity: 0; transform: translate(-50%, 12px); }
    35%, 72% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, -8px); }
}

@media (prefers-reduced-motion: reduce) {
    .site-intro-stars,
    .site-intro-stars::before,
    .site-intro-stars::after,
    .site-intro-logo-wrap,
    .site-intro-logo-shine::after,
    .site-intro-orbit,
    .site-intro-tagline {
        animation: none;
    }
}

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

img,
video,
iframe {
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

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

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

.cosmic-background {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 20% 18%, rgba(88, 183, 255, 0.13), transparent 28%),
        radial-gradient(circle at 78% 22%, rgba(155, 120, 255, 0.11), transparent 24%),
        radial-gradient(circle at 50% 90%, rgba(128, 240, 210, 0.08), transparent 28%),
        #070a17;
}

.cosmic-background::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.65;
    background-image:
        radial-gradient(#fff 0.7px, transparent 0.8px),
        radial-gradient(#8dc8ff 0.7px, transparent 0.9px);
    background-size: 86px 86px, 132px 132px;
    background-position: 0 0, 38px 64px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(7, 10, 23, 0.82);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.header-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 76px;
}

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

.brand-mark {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border: 1px solid rgba(220, 231, 255, 0.52);
    border-radius: 50%;
    background:
        linear-gradient(135deg, rgba(88, 183, 255, 0.9), rgba(155, 120, 255, 0.82)),
        radial-gradient(circle at 70% 30%, #fff 0 2px, transparent 3px);
    box-shadow: 0 0 30px rgba(88, 183, 255, 0.32);
}

.brand-logo {
    display: block;
    width: 158px;
    height: 58px;
    object-fit: cover;
    object-position: center;
    border-radius: var(--radius);
}

.brand strong {
    display: block;
    color: var(--text);
    font-size: 1.05rem;
    line-height: 1.1;
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: 0.72rem;
    max-width: 230px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.main-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.main-nav a,
.admin-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--muted);
    width: 52px;
    height: 52px;
    padding: 0;
    border-radius: var(--radius);
    transition: color 160ms ease, background 160ms ease;
}

.main-nav svg {
    width: 48px;
    height: 48px;
}

.header-search-toggle svg,
.language-toggle svg {
    width: 48px;
    height: 48px;
}

.main-nav svg,
.header-search-toggle svg,
.language-toggle svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.main-nav a:hover,
.main-nav a.is-active {
    color: var(--text);
    background: rgba(220, 231, 255, 0.08);
}

.admin-link {
    border: 1px solid var(--line);
}

.header-tools {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.header-search-toggle,
.language-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
}

.header-search-toggle:hover,
.header-search-toggle:focus-visible,
.header-search-toggle.is-open,
.language-toggle:hover,
.language-toggle:focus-visible {
    color: var(--mint);
    border-color: rgba(128, 240, 210, 0.5);
    background: rgba(128, 240, 210, 0.1);
}

.header-search {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 30;
    display: none;
    width: 278px;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: var(--shadow);
}

.header-search.is-open {
    display: flex;
}

.header-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    color: var(--text);
    background: transparent;
    padding: 10px 12px;
    outline: 0;
}

.header-search button {
    border: 0;
    color: #07111f;
    background: var(--silver);
    padding: 0 14px;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.04);
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--text);
}

.hero {
    position: relative;
    min-height: 84vh;
    display: grid;
    align-items: center;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(7, 10, 23, 0.92) 0%, rgba(7, 10, 23, 0.64) 42%, rgba(7, 10, 23, 0.28) 100%),
        linear-gradient(180deg, rgba(7, 10, 23, 0.15) 0%, #070a17 98%);
}

.hero-content {
    padding: 10px 0 120px;
}

.hero-layout {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-copy {
    width: min(100%, 760px);
    min-width: 0;
    text-align: center;
}

.latest-hero-box {
    display: grid;
    gap: 14px;
    width: 100%;
    border: 1px solid rgba(220, 231, 255, 0.24);
    border-radius: var(--radius);
    background: rgba(7, 10, 23, 0.72);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    padding: 14px;
}

.latest-hero-section + .latest-hero-section {
    padding-top: 14px;
    border-top: 1px solid rgba(220, 231, 255, 0.16);
}

.latest-hero-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.latest-hero-head span {
    color: var(--text);
    font-weight: 900;
}

.latest-hero-section.is-featured .latest-hero-head span {
    color: var(--mint);
}

.latest-hero-empty {
    margin: 0;
    padding: 14px;
    border: 1px dashed rgba(128, 240, 210, 0.34);
    border-radius: var(--radius);
    color: var(--muted);
    background: rgba(128, 240, 210, 0.06);
    font-size: 0.9rem;
}

.latest-hero-head a {
    color: var(--mint);
    font-size: 0.86rem;
    font-weight: 800;
}

.latest-hero-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.latest-hero-item {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border: 1px solid rgba(220, 231, 255, 0.14);
    border-radius: var(--radius);
    background: #02040a;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.latest-hero-item:hover {
    transform: translateY(-2px);
    border-color: rgba(88, 183, 255, 0.44);
    background: rgba(88, 183, 255, 0.08);
}

.latest-hero-section.is-featured .latest-hero-item {
    border-color: rgba(128, 240, 210, 0.3);
}

.latest-hero-section.is-featured .latest-hero-item:hover {
    border-color: rgba(128, 240, 210, 0.62);
    background: rgba(128, 240, 210, 0.08);
}

.latest-hero-item img,
.latest-hero-item video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--mint);
    font-size: 0.77rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.hero h1,
.page-hero h1 {
    margin: 0;
    max-width: 760px;
    font-size: clamp(3rem, 9vw, 7.5rem);
    line-height: 0.9;
    letter-spacing: 0;
}

.hero h1.hero-logo-heading {
    max-width: 760px;
    font-size: 0;
    line-height: 0;
}

.hero-logo-title {
    display: block;
    width: min(100%, clamp(330px, 48vw, 590px));
    height: auto;
    object-fit: contain;
    object-position: center;
    margin-inline: auto;
}

.hero p:not(.eyebrow) {
    max-width: 640px;
    margin-inline: auto;
    color: var(--silver);
    font-size: 1.13rem;
}

.hero-actions,
.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.hero-actions {
    justify-content: center;
    max-width: 640px;
    margin-inline: auto;
}

.hero-actions .btn {
    width: 150px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-weight: 800;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.btn-primary {
    color: #06111f;
    background: linear-gradient(135deg, var(--blue), var(--mint));
}

.btn-secondary {
    color: var(--text);
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.08);
}

.btn-ghost {
    color: var(--muted);
    border-color: var(--line);
    background: transparent;
}

.hero-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 36px;
    justify-content: center;
}

.hero-metrics span {
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(7, 10, 23, 0.48);
    color: var(--muted);
}

.hero-metrics strong {
    color: var(--text);
}

.hero-email {
    display: inline-block;
    margin-top: 24px;
    color: var(--mint);
    font-size: 1.05rem;
    font-weight: 800;
}

.hero-email:hover,
.hero-email:focus-visible {
    color: var(--text);
}

.section {
    padding: 76px 0;
}

.section-muted {
    background: rgba(255, 255, 255, 0.025);
    border-block: 1px solid var(--line);
}

.section-heading {
    max-width: 760px;
    text-align: center;
    margin-bottom: 34px;
}

.section-heading.align-left {
    text-align: left;
    margin-inline: 0;
}

.section-heading h2,
.feature-panel h2,
.night-record h2,
.content-page h2,
.tech-box h2,
.related h2 {
    margin: 0 0 12px;
    font-size: clamp(1.7rem, 3vw, 2.7rem);
    line-height: 1.1;
}

.section-heading p,
.feature-panel p,
.content-page p,
.night-record p,
.detail-content p {
    color: var(--muted);
}

.split-feature,
.two-columns,
.detail-layout,
.contact-layout {
    display: grid;
    gap: 24px;
}

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

.feature-panel,
.night-record,
.tech-box,
.contact-form,
.contact-side {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.feature-panel {
    padding: 30px;
}

.text-link {
    display: inline-flex;
    margin-top: 8px;
    color: var(--blue);
    font-weight: 800;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.media-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(13, 19, 38, 0.82);
    transition: transform 180ms ease, border-color 180ms ease;
}

.media-card:hover {
    transform: translateY(-3px);
    border-color: rgba(88, 183, 255, 0.42);
}

.media-preview,
.detail-image {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: #03050c;
}

.media-preview {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.media-preview img,
.media-preview video,
.detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.video-card .media-preview {
    position: relative;
    aspect-ratio: 16 / 9;
}

.video-preview-fallback {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    min-height: 190px;
    color: var(--silver);
    font-weight: 800;
}

.play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    color: var(--text);
    background: rgba(1, 3, 8, 0.68);
    box-shadow: var(--shadow);
    font-size: 1.2rem;
}

.media-body {
    padding: 18px;
}

.chip {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--mint);
    font-size: 0.76rem;
    font-weight: 800;
}

.media-body h2,
.media-body h3 {
    margin: 0 0 8px;
    font-size: 1.12rem;
    line-height: 1.25;
}

.media-body p,
.media-body small {
    color: var(--muted);
}

.mini-meta,
.tech-list {
    display: grid;
    gap: 10px;
    margin: 14px 0 0;
}

.mini-meta div,
.tech-list div {
    display: grid;
    gap: 2px;
}

dt {
    color: var(--muted-2);
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

dd {
    margin: 0;
    color: var(--silver);
}

.video-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #02040a;
}

.video-embed iframe,
.video-embed video {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.video-embed.small {
    aspect-ratio: 16 / 10;
}

.timeline-list {
    display: grid;
    gap: 12px;
}

.timeline-item,
.related-item {
    display: grid;
    gap: 4px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.04);
}

.timeline-item span,
.related-item span {
    color: var(--rose);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
}

.timeline-item small,
.related-item small {
    color: var(--muted);
}

.two-columns {
    grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
}

.night-record {
    padding: 20px;
}

.night-record img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--line);
}

.equipment-band {
    border-top: 1px solid var(--line);
}

.equipment-list {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    margin-top: 22px;
}

.equipment-list span {
    text-align: center;
    padding: 14px 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.04);
    color: var(--silver);
    font-weight: 800;
}

.page-hero {
    position: relative;
    padding: 28px 0 22px;
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(13, 19, 38, 0.84), rgba(7, 10, 23, 0.94)),
        url("../img/hero-deep-sky.png") center / cover;
}

.page-hero.compact h1 {
    font-size: 40px !important;
    line-height: 1.15 !important;
}

.page-hero p:not(.eyebrow) {
    max-width: 760px;
    color: var(--muted);
    margin-bottom: 0;
}

.filters,
.search-page-form {
    display: grid;
    gap: 12px;
    align-items: end;
    padding: 16px;
    margin-bottom: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.04);
}

.filters {
    grid-template-columns: 1.3fr 1fr 0.85fr 1fr 1fr auto auto;
}

.search-page-form {
    grid-template-columns: 1fr auto;
}

label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    background: rgba(255, 255, 255, 0.06);
    padding: 12px 13px;
    outline: 0;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(88, 183, 255, 0.72);
    box-shadow: 0 0 0 3px rgba(88, 183, 255, 0.12);
}

select option {
    color: #101521;
}

.result-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0 20px;
    color: var(--muted);
}

.result-heading strong {
    color: var(--text);
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 28px;
}

.page-link {
    min-width: 40px;
    padding: 8px 12px;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--muted);
}

.page-link.is-active {
    color: #07111f;
    background: var(--mint);
}

.detail-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
}

.detail-main {
    min-width: 0;
}

.detail-media,
.detail-image {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.detail-image img {
    max-height: 78vh;
    object-fit: contain;
    background: #02040a;
}

.detail-content {
    margin: 26px 0;
}

.tech-box {
    padding: 24px;
}

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

.related {
    margin-top: 28px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.detail-sidebar {
    display: grid;
    align-content: start;
    gap: 18px;
}

.content-page {
    display: grid;
    gap: 22px;
    max-width: 920px;
}

.content-page article {
    padding-bottom: 22px;
    border-bottom: 1px solid var(--line);
}

.contact-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
}

.contact-form,
.contact-side {
    padding: 24px;
}

.contact-form {
    display: grid;
    gap: 14px;
}

.social-list {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.social-list a {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--muted);
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.link-card {
    display: grid;
    gap: 10px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(13, 19, 38, 0.82);
    transition: transform 180ms ease, border-color 180ms ease;
}

.link-card.is-featured {
    border-color: rgba(255, 196, 90, 0.62);
    background: linear-gradient(145deg, rgba(255, 196, 90, 0.09), rgba(13, 19, 38, 0.9));
}
.link-card.is-top {
    border-color: #f4c95d;
    box-shadow: 0 0 0 1px rgba(244, 201, 93, 0.18), 0 14px 36px rgba(0, 0, 0, 0.22);
}

.link-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.link-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1;
    text-transform: uppercase;
}

.link-badge.is-featured {
    color: #261700;
    background: #ffc45a;
}

.link-badge.is-new {
    color: #041d17;
    background: var(--mint);
    box-shadow: 0 0 18px rgba(85, 224, 178, 0.24);
}
.link-badge.is-top {
    color: #171207;
    background: linear-gradient(135deg, #ffe79a, #f4b942);
    border-color: #ffd86b;
    font-weight: 900;
}

.link-card:hover {
    transform: translateY(-2px);
    border-color: rgba(88, 183, 255, 0.42);
}

.link-card h2 {
    margin: 0;
    font-size: 1.12rem;
    line-height: 1.25;
}

.link-card h2 a {
    color: var(--mint);
    overflow-wrap: anywhere;
}

.link-card p {
    margin: 0;
    color: var(--muted);
}

.alert {
    padding: 13px 15px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
}

.alert.success {
    color: #082015;
    background: #9df7cb;
}

.alert.error {
    color: #fff;
    background: rgba(255, 111, 159, 0.16);
    border-color: rgba(255, 111, 159, 0.4);
}

.empty-state {
    padding: 22px;
    border: 1px dashed rgba(220, 231, 255, 0.24);
    border-radius: var(--radius);
    color: var(--muted);
    background: rgba(255, 255, 255, 0.035);
}

.ad-slot {
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(220, 231, 255, 0.18);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.04);
}

.ad-slot a {
    display: block;
    width: 100%;
}

.ad-slot img {
    width: 100%;
    height: auto;
    display: block;
}

.ad-wide {
    margin-block: 28px;
    max-width: 970px;
}

.ad-card {
    min-height: 240px;
}

.ad-sidebar {
    min-height: 250px;
}

.ad-footer {
    width: min(100% - 32px, 970px);
    margin: 42px auto 0;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(5, 7, 15, 0.92);
}

.footer-brand .brand-logo {
    width: 190px;
    height: 104px;
    object-fit: contain;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.6fr);
    gap: 34px;
    padding: 46px 0;
}

.footer-grid h2 {
    margin: 0 0 12px;
    font-size: 1rem;
}

.footer-grid p,
.footer-grid a {
    color: var(--muted);
}

.footer-grid a {
    display: block;
    margin-bottom: 8px;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0;
    border-top: 1px solid var(--line);
    color: var(--muted-2);
    font-size: 0.9rem;
}

.home-rights-footer {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 19;
    padding: 5px 0;
    border-top: 0;
    background: rgba(5, 7, 15, 0.9);
    backdrop-filter: blur(14px);
}

.home-rights-footer p {
    display: block;
    margin: 0;
    color: rgba(96, 106, 138, 0.92);
    font-size: 0.6rem;
    line-height: 1.25;
    text-align: center;
    text-align-last: center;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 24px;
    overflow: hidden;
    background: rgba(1, 3, 8, 0.92);
}

.lightbox[hidden] {
    display: none;
}

.lightbox-frame {
    position: relative;
    display: grid;
    place-items: center;
    flex: 1 1 auto;
    min-height: 0;
    width: min(100%, 1100px);
    max-height: 62vh;
    overflow: auto;
}

.lightbox img,
.lightbox video,
.lightbox iframe {
    max-width: 100%;
    max-height: 62vh;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: #02040a;
}

.lightbox img {
    object-fit: contain;
    transition: transform 180ms ease;
    transform-origin: center center;
}

.lightbox video,
.lightbox iframe {
    width: min(100%, 1100px);
    aspect-ratio: 16 / 9;
}

.lightbox video {
    cursor: pointer;
}

.lightbox iframe {
    height: auto;
}

.lightbox-panel {
    flex: 0 0 auto;
    width: min(100%, 1100px);
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(7, 10, 23, 0.9);
}

.lightbox-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-bottom: 0;
}

.lightbox-toolbar button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
    font-weight: 800;
}

.lightbox-toolbar button:hover,
.lightbox-toolbar button:focus-visible {
    border-color: rgba(128, 240, 210, 0.62);
    color: var(--mint);
    background: rgba(128, 240, 210, 0.1);
}

.lightbox-toolbar svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

.lightbox-toolbar button[hidden] {
    display: none;
}

.lightbox:fullscreen {
    padding: 16px;
}

.lightbox:fullscreen .lightbox-frame {
    width: min(100%, 96vw);
    max-height: 76vh;
}

.lightbox:fullscreen img,
.lightbox:fullscreen video,
.lightbox:fullscreen iframe {
    max-height: 76vh;
}

.lightbox:fullscreen video,
.lightbox:fullscreen iframe {
    width: min(100%, 96vw);
}

.lightbox:fullscreen .lightbox-panel {
    width: min(100%, 96vw);
}

.lightbox-info-modal {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(1, 3, 8, 0.72);
}

.lightbox-info-modal[hidden] {
    display: none;
}

.lightbox-info-card {
    width: min(100%, 760px);
    max-height: min(78vh, 640px);
    overflow: auto;
    padding: 20px;
    border: 1px solid rgba(220, 231, 255, 0.2);
    border-radius: var(--radius);
    background: rgba(7, 10, 23, 0.96);
    box-shadow: var(--shadow);
}

.lightbox-info-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.lightbox-info-head h2 {
    margin: 0;
    font-size: 1.25rem;
    line-height: 1.2;
}

.lightbox-info-head button {
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
    font-weight: 800;
}

.lightbox-close {
    position: absolute;
    z-index: 3;
    top: 18px;
    right: 18px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
    font-size: 1.8rem;
    line-height: 1;
}

.lightbox-nav {
    position: absolute;
    z-index: 3;
    top: 50%;
    display: grid;
    place-items: center;
    width: 56px;
    height: 74px;
    transform: translateY(-50%);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
    font-size: 3rem;
    line-height: 1;
}

.lightbox-nav[hidden] {
    display: none;
}

.lightbox-prev {
    left: 18px;
}

.lightbox-next {
    right: 18px;
}

.lightbox-caption {
    max-width: 900px;
    margin: 0 0 14px;
    color: var(--silver);
    text-align: left;
}

.lightbox-tech {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.lightbox-tech[hidden] {
    display: none;
}

.lightbox-tech div {
    min-width: 0;
    padding: 10px;
    border: 1px solid rgba(220, 231, 255, 0.12);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.04);
}

.lightbox-tech dt {
    margin-bottom: 4px;
}

.lightbox-tech dd {
    overflow-wrap: anywhere;
    white-space: pre-line;
}

code {
    color: var(--mint);
}

@media (max-width: 1050px) {
    .header-inner {
        display: flex;
        flex-wrap: nowrap;
        justify-content: center;
    }

    .hero-layout {
        grid-template-columns: 1fr;
    }

    .latest-hero-box {
        max-width: 680px;
    }

    .main-nav {
        display: flex;
        width: auto;
        flex-wrap: nowrap;
        justify-content: center;
    }

    .header-tools {
        width: auto;
        justify-content: center;
    }

    .header-search {
        width: min(320px, calc(100vw - 22px));
    }

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

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

    .detail-layout,
    .contact-layout,
    .two-columns {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .container {
        width: min(100% - 22px, var(--container));
    }

    .site-header {
        position: sticky;
        top: 0;
        max-height: 100dvh;
        overflow-y: auto;
    }

    .header-inner,
    .main-nav,
    .header-tools {
        gap: 4px;
    }

    .main-nav a,
    .header-search-toggle,
    .language-toggle {
        width: 44px;
        height: 44px;
    }

    .main-nav svg,
    .header-search-toggle svg,
    .language-toggle svg {
        width: 40px;
        height: 40px;
    }

    .hero {
        min-height: auto;
        align-items: start;
        overflow: visible;
    }

    .hero-content {
        padding: 10px 0 72px;
    }

    .hero-copy {
        text-align: center;
    }

    .hero-logo-heading {
        width: 100%;
    }

    .hero-logo-title {
        width: min(100%, 420px);
        max-height: calc(100dvh - 150px);
        margin-inline: auto;
    }

    .hero p:not(.eyebrow) {
        margin-inline: auto;
    }

    .hero-actions {
        justify-content: center;
        width: 100%;
    }

    .hero-actions .btn {
        flex: 0 1 150px;
        width: 150px;
    }

    .latest-hero-box {
        padding: 12px;
    }

    .brand small {
        display: none;
    }

    .split-feature,
    .filters,
    .search-page-form,
    .card-grid,
    .links-grid,
    .equipment-list,
    .tech-list,
    .related-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 54px 0;
    }

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

    .lightbox {
        padding: 68px 12px 18px;
        overflow: hidden;
    }

    .lightbox-frame,
    .lightbox img,
    .lightbox video,
    .lightbox iframe {
        max-height: calc(100dvh - 178px);
    }

    .lightbox-panel {
        margin-top: 0;
        padding: 8px;
    }

    .lightbox-toolbar button {
        width: 40px;
        height: 40px;
        min-height: 40px;
        padding: 0;
    }

    .lightbox-info-modal {
        padding: 72px 10px 18px;
    }

    .lightbox-info-card {
        max-height: calc(100dvh - 108px);
        padding: 16px;
    }

    .lightbox-tech {
        grid-template-columns: 1fr;
    }

    .lightbox-nav {
        width: 42px;
        height: 58px;
        font-size: 2.4rem;
    }

    .lightbox-prev {
        left: 8px;
    }

    .lightbox-next {
        right: 8px;
    }
}
