:root {
  --bg: #05070d;
  --bg-soft: #0a111d;
  --panel: rgba(14, 20, 32, 0.8);
  --text: #f5f7fb;
  --muted: #a5afbd;
  --soft: #d7deea;
  --line: rgba(150, 170, 205, 0.16);
  --cyan: #42e8ff;
  --blue: #4d94ff;
  --green: #9affc8;
  --shadow: 0 18px 56px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 4%, rgba(66, 232, 255, 0.12), transparent 22rem),
    radial-gradient(circle at 85% 12%, rgba(77, 148, 255, 0.12), transparent 25rem),
    linear-gradient(135deg, var(--bg) 0%, var(--bg-soft) 50%, #03050a 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), transparent 72%);
}

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

button,
input {
  font: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 58px;
  padding: 0 1.1rem;
  background: rgba(5, 7, 13, 0.84);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  border: 1px solid rgba(66, 232, 255, 0.44);
  color: var(--cyan);
  background: linear-gradient(145deg, rgba(66, 232, 255, 0.14), rgba(77, 148, 255, 0.05));
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: -0.08em;
  box-shadow: 0 0 20px rgba(66, 232, 255, 0.1);
}

.brand-name {
  font-size: 0.98rem;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.nav-links a {
  padding: 0.45rem 0.62rem;
  border-radius: 999px;
  transition: 160ms ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

main {
  width: min(1240px, calc(100% - 1.25rem));
  margin: 0 auto;
}

.hero-section {
  padding: 1.1rem 0 0.8rem;
}

.compact-hero {
  display: block;
}

.eyebrow {
  margin: 0 0 0.35rem;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.62rem;
  font-weight: 900;
}

.hero-copy h1,
.section h2,
.catalog-toolbar h2,
.sidebar-heading h2 {
  margin: 0;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  max-width: 820px;
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  line-height: 0.98;
}

.hero-text {
  max-width: 760px;
  margin: 0.55rem 0 0;
  color: var(--soft);
  font-size: 0.98rem;
  line-height: 1.5;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.primary-button,
.ghost-button,
.search-panel button,
.file-card button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(66, 232, 255, 0.34);
  font-size: 0.86rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-button,
.search-panel button,
.file-card button {
  color: #03101b;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  box-shadow: 0 12px 30px rgba(66, 232, 255, 0.14);
}

.ghost-button {
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
}

.primary-button:hover,
.ghost-button:hover,
.search-panel button:hover,
.file-card button:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(66, 232, 255, 0.14);
}

.catalog-layout {
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  gap: 0.8rem;
  align-items: start;
  padding: 0.55rem 0 1rem;
}

.sidebar-card,
.catalog-main,
.about-section,
.legal-section,
.contact-section,
.file-card,
.empty-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(18, 27, 42, 0.82), rgba(8, 12, 22, 0.82));
  box-shadow: var(--shadow);
}

.sidebar-card {
  position: sticky;
  top: 70px;
  padding: 0.65rem;
}

.sidebar-heading {
  padding: 0.2rem 0.25rem 0.55rem;
}

.sidebar-heading h2 {
  font-size: 1.15rem;
}

.module-menu {
  display: grid;
  gap: 0.38rem;
}

.module-menu-item {
  width: 100%;
  display: grid;
  grid-template-columns: 34px 1fr auto;
  align-items: center;
  gap: 0.5rem;
  padding: 0.38rem;
  border: 1px solid rgba(150, 170, 205, 0.14);
  border-radius: 13px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.034);
  cursor: pointer;
  text-align: left;
  transition: 160ms ease;
  font-size: 0.85rem;
}

.module-menu-item:hover,
.module-menu-item.active {
  border-color: rgba(66, 232, 255, 0.38);
  background: rgba(66, 232, 255, 0.075);
}

.module-menu-item strong {
  color: var(--green);
  font-size: 0.72rem;
}

.menu-icon {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--cyan);
  background: rgba(66, 232, 255, 0.075);
  border: 1px solid rgba(66, 232, 255, 0.18);
  font-size: 0.58rem;
  font-weight: 900;
}

.catalog-main {
  padding: 0.75rem;
}

.catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(280px, 1fr);
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 0.75rem;
}

.catalog-toolbar h2 {
  font-size: clamp(1.45rem, 2.6vw, 2.35rem);
  line-height: 1;
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem;
  padding: 0.32rem;
  border: 1px solid rgba(66, 232, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.search-panel input {
  min-height: 34px;
  padding: 0 0.75rem;
  color: var(--text);
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 0.88rem;
}

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

.file-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 0.62rem;
  padding: 0.62rem;
  min-height: 142px;
}

.brand-emblem {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  align-self: start;
  border-radius: 50%;
  border: 1px solid rgba(66, 232, 255, 0.38);
  color: var(--text);
  background:
    radial-gradient(circle at 50% 25%, rgba(154, 255, 200, 0.16), transparent 48%),
    linear-gradient(145deg, rgba(66, 232, 255, 0.14), rgba(77, 148, 255, 0.08));
  box-shadow: 0 0 24px rgba(66, 232, 255, 0.12);
  text-align: center;
}

.brand-emblem span {
  max-width: 42px;
  display: block;
  font-size: 0.65rem;
  font-weight: 950;
  letter-spacing: -0.04em;
  line-height: 1;
}

.file-card-topline {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem;
  color: var(--green);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.file-card h3 {
  margin: 0.38rem 0 0.2rem;
  font-size: 0.95rem;
  line-height: 1.18;
}

.file-card p,
.about-copy p,
.legal-section p,
.contact-section p,
.empty-card p {
  color: var(--muted);
  line-height: 1.45;
}

.file-card p {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
}

.delivery-status {
  letter-spacing: 0;
  text-transform: none;
  padding: 0.16rem 0.4rem;
  border-radius: 999px;
  border: 1px solid rgba(150, 170, 205, 0.18);
  color: var(--soft);
  background: rgba(255, 255, 255, 0.045);
  font-size: 0.66rem;
}

.delivery-status.instant {
  color: var(--green);
  border-color: rgba(154, 255, 200, 0.26);
}

.delivery-status.verified {
  color: var(--cyan);
  border-color: rgba(66, 232, 255, 0.26);
}

.file-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
}

.file-tags span,
.about-points span,
.contact-email {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.45rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.7rem;
}

.file-card footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.file-card footer strong {
  font-size: 0.9rem;
}

.file-card button {
  min-height: 30px;
  padding: 0 0.62rem;
  font-size: 0.78rem;
}

.empty-card {
  grid-column: 1 / -1;
  padding: 1rem;
}

.section {
  padding: 2rem 0 0.8rem;
}

.section h2 {
  font-size: clamp(1.45rem, 3vw, 2.4rem);
  line-height: 1;
}

.about-section,
.contact-section {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.2rem;
  align-items: center;
  padding: 1rem;
}

.about-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.8rem;
}

.legal-section {
  padding: 1rem;
  border-color: rgba(154, 255, 200, 0.22);
}

.contact-actions {
  justify-content: flex-start;
  margin-top: 0.75rem;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 0.7rem;
  font-size: 0.82rem;
}

.copy-email {
  appearance: none;
}

.site-footer {
  width: min(1240px, calc(100% - 1.25rem));
  margin: 2rem auto 0;
  padding: 1rem 0 1.3rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  font-size: 0.84rem;
}

@media (max-width: 1120px) {
  .catalog-layout {
    grid-template-columns: 200px minmax(0, 1fr);
  }

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

@media (max-width: 880px) {
  .catalog-layout,
  .about-section,
  .contact-section,
  .catalog-toolbar {
    grid-template-columns: 1fr;
  }

  .sidebar-card {
    position: static;
  }

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

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  main,
  .site-footer {
    width: min(100% - 0.75rem, 1240px);
  }

  .site-header {
    align-items: flex-start;
    flex-wrap: wrap;
    height: auto;
    padding: 0.7rem;
  }

  .nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.2rem;
  }

  .hero-copy h1 {
    font-size: clamp(1.85rem, 10vw, 3rem);
  }

  .hero-actions,
  .hero-actions a,
  .contact-actions,
  .contact-actions a,
  .contact-actions button,
  .contact-email,
  .search-panel,
  .search-panel button {
    width: 100%;
  }

  .search-panel,
  .file-grid,
  .module-menu {
    grid-template-columns: 1fr;
  }

  .file-card {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .brand-emblem {
    width: 46px;
    height: 46px;
  }

  .site-footer {
    display: grid;
  }
}
