:root {
  color-scheme: dark;
  --page: #080d19;
  --surface: #0e1625;
  --surface-raised: #121e30;
  --border: rgba(159, 190, 225, 0.13);
  --text: #f0f5ff;
  --muted: #9baac0;
  --cyan: #7fe6ff;
  --cyan-strong: #38c8ee;
  --violet: #9b8cff;
  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "DM Sans", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.page-width {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.visually-hidden,
.skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.skip-link:focus {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--cyan);
  color: #07111b;
}

.site-header {
  position: absolute;
  z-index: 5;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  padding: 12px max(24px, calc((100% - 1240px) / 2));
  border-bottom: 1px solid rgba(187, 217, 255, 0.12);
  background: rgba(5, 10, 20, 0.5);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 232px;
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.navigation {
  display: flex;
  align-items: center;
  gap: 34px;
}

.navigation a,
.footer-top,
.footer-bottom a {
  color: #c4cee0;
  font-size: 13px;
  text-decoration: none;
  transition: color 160ms ease;
}

.navigation a:hover,
.footer-top:hover,
.footer-bottom a:hover {
  color: var(--cyan);
}

.navigation .nav-voxel {
  padding: 10px 15px;
  border: 1px solid rgba(127, 230, 255, 0.45);
  border-radius: 5px;
  color: var(--cyan);
}

.navigation .nav-voxel:hover {
  background: rgba(127, 230, 255, 0.09);
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 685px;
  padding: 140px 0 105px;
  overflow: hidden;
  background: #080d19 url("assets/background-web.jpg") center 42% / cover no-repeat;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 11, 22, 0.96) 0%, rgba(6, 11, 22, 0.87) 38%, rgba(6, 11, 22, 0.24) 77%, rgba(6, 11, 22, 0.15) 100%),
    linear-gradient(0deg, var(--page) 0%, transparent 28%, rgba(5, 10, 20, 0.18) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 20px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.5;
  text-transform: uppercase;
}

.eyebrow-dot,
.signal {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(127, 230, 255, 0.85);
  vertical-align: 1px;
}

.eyebrow-separator {
  padding-inline: 8px;
  color: #78849b;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(48px, 7vw, 82px);
  font-weight: 600;
  letter-spacing: -0.065em;
  line-height: 1.03;
}

h1 span,
.server-content h2 span {
  color: var(--cyan);
}

.hero-copy {
  max-width: 495px;
  margin-bottom: 30px;
  color: #bcc7d9;
  font-size: 17px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 48px;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--cyan);
  color: #07111b;
}

.button-primary:hover {
  background: #a4efff;
}

.button-quiet {
  border-color: rgba(203, 222, 255, 0.25);
  color: #ecf4ff;
}

.button-quiet:hover {
  border-color: rgba(127, 230, 255, 0.7);
}

.hero-note {
  display: flex;
  align-items: center;
  margin-top: 38px;
  color: #9baac0;
  font-size: 12px;
}

.signal {
  width: 6px;
  height: 6px;
  margin-right: 10px;
}

.hero-coordinate {
  position: absolute;
  right: max(24px, calc((100% - 1180px) / 2));
  bottom: 66px;
  color: rgba(207, 220, 244, 0.48);
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.2em;
  writing-mode: vertical-rl;
}

.section {
  padding-block: 104px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 42px;
  margin-bottom: 44px;
}

.section-heading h2,
.craft-copy h2,
.perk-note h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.16;
}

.section-intro {
  max-width: 405px;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 14px;
}

.catalog-layout {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  gap: 34px;
}

.catalog-aside {
  align-self: start;
  padding-top: 12px;
}

.aside-label,
.filter-button,
.product-type,
.status,
.product-detail,
.art-label,
.art-version,
.art-stamp,
.service-caption {
  font-family: var(--font-display);
}

.aside-label {
  display: block;
  margin-bottom: 15px;
  color: #75849b;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.filter-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #9baac0;
  cursor: pointer;
  font-size: 12px;
  text-align: left;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.filter-button:hover,
.filter-button.is-active {
  border-color: rgba(127, 230, 255, 0.15);
  background: rgba(127, 230, 255, 0.055);
  color: var(--cyan);
}

.filter-count {
  color: #66748c;
  font-size: 10px;
}

.aside-divider {
  height: 1px;
  margin: 22px 0;
  background: var(--border);
}

.aside-note {
  margin: 0;
  color: #77869d;
  font-size: 11px;
  line-height: 1.8;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.product-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--surface);
  transition: transform 180ms ease, border-color 180ms ease;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(127, 230, 255, 0.36);
}

.product-card[hidden] {
  display: none;
}

.product-art {
  position: relative;
  display: grid;
  min-height: 202px;
  overflow: hidden;
  place-items: center;
}

.art-towerwars {
  background:
    radial-gradient(ellipse at 50% 93%, rgba(56, 200, 238, 0.24), transparent 40%),
    linear-gradient(145deg, #10243b, #101429 68%, #1c1732);
}

.art-orbit {
  position: absolute;
  width: 195px;
  height: 84px;
  border: 1px solid rgba(127, 230, 255, 0.3);
  border-radius: 50%;
  transform: rotate(-24deg);
}

.orbit-one {
  top: 48px;
  left: 50%;
  translate: -50%;
}

.orbit-two {
  top: 56px;
  left: 50%;
  width: 238px;
  height: 104px;
  border-color: rgba(155, 140, 255, 0.26);
  translate: -50%;
  transform: rotate(22deg);
}

.pixel-tower {
  position: absolute;
  bottom: 27px;
  z-index: 1;
  display: block;
  width: 42px;
  height: 76px;
  border: 1px solid #6ad8f5;
  background: linear-gradient(90deg, #22708d 0 25%, #41b9d5 25% 72%, #16516e 72%);
  box-shadow: 0 0 30px rgba(56, 200, 238, 0.22);
  clip-path: polygon(34% 0, 66% 0, 66% 20%, 100% 20%, 100% 100%, 0 100%, 0 20%, 34% 20%);
}

.tower-back {
  left: calc(50% - 58px);
  bottom: 30px;
  width: 30px;
  height: 53px;
  opacity: 0.65;
}

.tower-front {
  left: calc(50% - 16px);
}

.art-label {
  position: absolute;
  top: 15px;
  left: 16px;
  color: rgba(186, 218, 237, 0.64);
  font-size: 8px;
  letter-spacing: 0.17em;
}

.art-version {
  position: absolute;
  right: 14px;
  bottom: 14px;
  color: rgba(216, 240, 255, 0.64);
  font-size: 9px;
  letter-spacing: 0.11em;
}

.art-files {
  background:
    radial-gradient(ellipse at 50% 80%, rgba(155, 140, 255, 0.18), transparent 46%),
    linear-gradient(145deg, #181a37, #101b2c);
}

.file-stack {
  position: relative;
  width: 88px;
  height: 88px;
  transform: rotate(-10deg);
}

.file-stack span {
  position: absolute;
  inset: 18px 10px;
  border: 1px solid rgba(196, 187, 255, 0.7);
  border-radius: 5px;
  background: linear-gradient(135deg, rgba(155, 140, 255, 0.34), rgba(58, 69, 122, 0.72));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.file-stack span:nth-child(1) {
  transform: translate(-13px, 8px);
  opacity: 0.5;
}

.file-stack span:nth-child(2) {
  transform: translate(-6px, 3px);
  opacity: 0.75;
}

.file-stack span:nth-child(3)::before {
  position: absolute;
  right: 13px;
  bottom: 12px;
  left: 13px;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 -9px rgba(127, 230, 255, 0.5), 0 -18px rgba(127, 230, 255, 0.3);
  content: "";
}

.art-stamp {
  position: absolute;
  right: 18px;
  bottom: 16px;
  color: #c7c0ff;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-align: right;
}

.art-services {
  background:
    radial-gradient(circle at 50% 50%, rgba(65, 185, 213, 0.17), transparent 42%),
    linear-gradient(145deg, #12293a, #111528);
}

.service-ring {
  position: absolute;
  width: 98px;
  height: 98px;
  border: 1px solid rgba(127, 230, 255, 0.58);
  border-radius: 50%;
  box-shadow: 0 0 0 12px rgba(127, 230, 255, 0.04), 0 0 0 28px rgba(127, 230, 255, 0.025), 0 0 36px rgba(56, 200, 238, 0.15);
}

.service-core {
  z-index: 1;
  color: #e8fbff;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.1em;
  text-shadow: 0 0 20px rgba(127, 230, 255, 0.5);
}

.service-spark {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #d3fbff;
  box-shadow: 0 0 14px 4px rgba(127, 230, 255, 0.45);
}

.spark-one {
  top: 49px;
  right: 25%;
}

.spark-two {
  bottom: 46px;
  left: 26%;
}

.service-caption {
  position: absolute;
  right: 18px;
  bottom: 16px;
  color: rgba(183, 220, 236, 0.74);
  font-size: 9px;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-align: right;
}

.product-body {
  padding: 18px 17px 16px;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 10px;
}

.product-type {
  color: #8190a8;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 7px;
  border: 1px solid rgba(155, 140, 255, 0.2);
  border-radius: 3px;
  background: rgba(155, 140, 255, 0.08);
  color: #c6bdff;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.product-card h3 {
  margin-bottom: 7px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.product-card p {
  min-height: 67px;
  margin-bottom: 16px;
  color: #9baac0;
  font-size: 12px;
  line-height: 1.7;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.product-detail {
  color: #78869c;
  font-size: 9px;
}

.text-link {
  color: var(--cyan);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.text-link:hover {
  color: #b7f3ff;
}

.product-link[aria-disabled="true"] {
  color: #8290a4;
  cursor: not-allowed;
  pointer-events: none;
}

.empty-state {
  grid-column: 1 / -1;
  margin: 20px 0;
  color: var(--muted);
}

.craft-section {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: 80px;
  border-top: 1px solid var(--border);
}

.craft-copy h2 {
  max-width: 480px;
  margin-bottom: 17px;
}

.craft-copy > p:not(.eyebrow) {
  max-width: 500px;
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
}

.craft-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.craft-stat {
  display: flex;
  min-height: 170px;
  flex-direction: column;
  justify-content: space-between;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: linear-gradient(145deg, rgba(18, 30, 48, 0.8), rgba(12, 19, 32, 0.72));
}

.stat-number {
  color: var(--cyan);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.13em;
}

.craft-stat strong {
  font-family: var(--font-display);
  font-size: 13px;
}

.craft-stat > span:last-child {
  color: #8797ae;
  font-size: 10px;
  line-height: 1.6;
}

.server-section {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  background: #0a1422 url("assets/background-web.jpg") center 63% / cover no-repeat;
}

.server-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 12, 24, 0.95), rgba(7, 12, 24, 0.75)), linear-gradient(0deg, var(--page), transparent 35%);
}

.server-content {
  position: relative;
  display: grid;
  min-height: 300px;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 80px;
  padding-block: 60px;
}

.server-content h2 {
  margin: 0;
  font-size: clamp(27px, 4vw, 38px);
  letter-spacing: -0.045em;
  line-height: 1.2;
}

.server-content > p {
  max-width: 465px;
  margin: 22px 0 0;
  color: #b0bed1;
  font-size: 14px;
}

.perk-note {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 22px;
  padding-block: 76px;
}

.perk-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(127, 230, 255, 0.28);
  border-radius: 50%;
  color: var(--cyan);
}

.perk-note h2 {
  margin-bottom: 9px;
  font-size: 24px;
}

.perk-note p:last-child {
  max-width: 750px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: #070b14;
}

.footer-main,
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-main {
  min-height: 94px;
  border-bottom: 1px solid var(--border);
}

.footer-brand {
  display: block;
  width: 175px;
}

.footer-brand img {
  display: block;
  width: 100%;
  height: auto;
}

.footer-main p,
.footer-bottom {
  margin: 0;
  color: #76849a;
  font-size: 10px;
}

.footer-bottom {
  min-height: 55px;
  gap: 18px;
}

.footer-bottom a {
  font-size: inherit;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1000px) {
  .catalog-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .catalog-aside {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    padding: 0;
  }

  .aside-label {
    flex: 0 0 100%;
    margin-bottom: 7px;
  }

  .filter-button {
    width: auto;
    gap: 12px;
  }

  .aside-divider,
  .aside-note {
    display: none;
  }

  .craft-section {
    grid-template-columns: 1fr;
    gap: 35px;
  }
}

@media (max-width: 700px) {
  .page-width {
    width: min(100% - 36px, 520px);
  }

  .site-header {
    min-height: 70px;
    padding-inline: 18px;
  }

  .brand {
    width: 190px;
  }

  .menu-toggle {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: rgba(7, 12, 24, 0.7);
    color: var(--text);
    cursor: pointer;
  }

  .menu-icon,
  .menu-icon::before,
  .menu-icon::after {
    display: block;
    width: 17px;
    height: 1px;
    background: currentColor;
  }

  .menu-icon {
    position: relative;
  }

  .menu-icon::before,
  .menu-icon::after {
    position: absolute;
    left: 0;
    content: "";
  }

  .menu-icon::before {
    top: -6px;
  }

  .menu-icon::after {
    top: 6px;
  }

  .navigation {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    gap: 0;
    padding: 8px 18px 15px;
    border-bottom: 1px solid var(--border);
    background: rgba(7, 12, 24, 0.98);
  }

  .navigation.is-open {
    display: flex;
    flex-direction: column;
  }

  .navigation a {
    padding: 11px 4px;
  }

  .navigation .nav-voxel {
    margin-top: 7px;
    padding-inline: 12px;
    text-align: center;
  }

  .hero {
    min-height: 630px;
    padding-block: 128px 80px;
    background-position: 60% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(6, 11, 22, 0.95), rgba(6, 11, 22, 0.74)),
      linear-gradient(0deg, var(--page) 0%, transparent 38%);
  }

  .hero-content {
    padding-top: 0;
  }

  .eyebrow {
    font-size: 9px;
  }

  h1 {
    font-size: clamp(45px, 13vw, 62px);
  }

  .hero-copy {
    max-width: 430px;
    font-size: 15px;
  }

  .hero-coordinate {
    display: none;
  }

  .section {
    padding-block: 75px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 28px;
  }

  .section-intro {
    max-width: 480px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .product-art {
    min-height: 185px;
  }

  .product-card p {
    min-height: 0;
  }

  .craft-stat-grid {
    grid-template-columns: 1fr;
  }

  .craft-stat {
    min-height: 132px;
  }

  .server-content {
    min-height: 350px;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 18px;
    padding-block: 55px;
  }

  .server-content > p {
    margin: 0;
  }

  .perk-note {
    grid-template-columns: 42px 1fr;
    gap: 14px;
    padding-block: 58px;
  }

  .perk-note .status {
    grid-column: 2;
    justify-self: start;
  }

  .perk-note h2 {
    font-size: 21px;
  }

  .footer-main {
    flex-wrap: wrap;
    gap: 12px;
    padding-block: 18px;
  }

  .footer-brand {
    width: 145px;
  }

  .footer-main p {
    order: 3;
    flex-basis: 100%;
  }

  .footer-bottom {
    align-items: start;
    flex-direction: column;
    gap: 6px;
    padding-block: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
