:root {
  --bg: #071018;
  --bg-soft: #0b1420;
  --panel: rgba(11, 20, 32, 0.82);
  --panel-strong: rgba(14, 24, 37, 0.92);
  --line: rgba(113, 143, 186, 0.18);
  --text: #f1f6ff;
  --muted: #96a6c6;
  --cyan: #47d8ff;
  --blue: #5fa7ff;
  --green: #69f7a2;
  --green-soft: rgba(105, 247, 162, 0.18);
  --amber: #ffbe72;
  --violet: #9d90ff;
  --danger: #ff9f8e;
  --shadow: 0 30px 70px rgba(0, 0, 0, 0.34);
  --radius-xl: 30px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "IBM Plex Sans", sans-serif;
  background:
    radial-gradient(circle at 12% 20%, rgba(71, 216, 255, 0.14), transparent 24%),
    radial-gradient(circle at 88% 16%, rgba(105, 247, 162, 0.12), transparent 20%),
    radial-gradient(circle at 70% 72%, rgba(157, 144, 255, 0.12), transparent 24%),
    linear-gradient(180deg, #060c13 0%, #08111c 48%, #060b12 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.55) 0 1px, transparent 1.5px),
    radial-gradient(circle, rgba(105, 247, 162, 0.34) 0 1px, transparent 1.5px);
  background-size: 170px 170px, 240px 240px;
  background-position: 12px 40px, 86px 120px;
}

.sky,
.grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, black 56%, transparent 100%);
}

.shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding: 28px 0 54px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 14, 24, 0.72);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid rgba(95, 167, 255, 0.28);
  background: linear-gradient(145deg, rgba(71, 216, 255, 0.16), rgba(95, 167, 255, 0.18));
  box-shadow: inset 0 0 22px rgba(71, 216, 255, 0.15);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
}

.brand-text {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.16rem;
  font-weight: 700;
}

.top-actions,
.cta-row,
.quick-actions,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.panel,
.feature-card,
.signal-card,
.metric-card,
.server-card,
.app-card,
.contact-card,
.ru-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.panel,
.feature-card,
.signal-card,
.metric-card {
  background: var(--panel);
  backdrop-filter: blur(18px);
}

.panel {
  border-radius: var(--radius-xl);
  padding: 24px;
}

.feature-card,
.signal-card,
.metric-card,
.server-card,
.app-card,
.contact-card,
.ru-card {
  border-radius: var(--radius-md);
}

.feature-card,
.signal-card,
.metric-card {
  padding: 20px;
}

.server-card,
.app-card,
.contact-card,
.ru-card {
  padding: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.panel::after,
.feature-card::after,
.signal-card::after,
.metric-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(145deg, rgba(71, 216, 255, 0.1), transparent 42%, rgba(157, 144, 255, 0.08));
}

.hero-grid,
.content-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1.3fr 1fr;
}

.hero-copy-panel {
  min-height: 390px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-stack,
.stats-grid,
.card-grid,
.app-grid,
.steps-grid,
.contact-grid,
.ru-grid {
  display: grid;
  gap: 16px;
}

.server-list,
.server-group-list,
.expert-list {
  display: grid;
  gap: 16px;
}

.hero-stack {
  align-content: start;
}

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

.content-grid {
  margin-top: 22px;
}

.secondary-grid {
  margin-top: 18px;
}

.stats-grid {
  margin: 22px 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.server-group-list,
.app-grid,
.contact-grid,
.ru-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.server-list {
  grid-template-columns: 1fr;
}

.hero h1,
.section-head h2,
.profile-heading h1,
.feature-card h2,
.steps-grid h3,
.empty-state h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(2.8rem, 5.2vw, 4.9rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
}

.hero-copy,
.subtle,
.feature-card p,
.signal-card p,
.steps-grid p,
.metric-label,
.footer-bar p,
.server-meta,
.contact-card span,
.ru-card span,
.app-card span {
  color: var(--muted);
}

.hero-copy {
  max-width: 640px;
  margin: 18px 0 24px;
  font-size: 1.04rem;
  line-height: 1.75;
}

.eyebrow,
.signal-label,
.feature-index {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  color: #bdd0f0;
}

.eyebrow::before,
.signal-label::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--cyan), var(--green));
  box-shadow: 0 0 18px rgba(105, 247, 162, 0.38);
}

.primary-button,
.secondary-button,
.ghost-button,
.button-like {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.primary-button,
.button-like {
  padding: 14px 22px;
  background: linear-gradient(135deg, rgba(71, 216, 255, 0.94), rgba(95, 167, 255, 0.92));
  color: #05101a;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(71, 216, 255, 0.2);
}

.secondary-button,
.ghost-button {
  padding: 13px 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.ghost-button {
  padding-inline: 16px;
}

.primary-button:hover,
.secondary-button:hover,
.ghost-button:hover,
.button-like:hover,
.app-card:hover,
.contact-card:hover,
.ru-card:hover,
.server-card:hover {
  transform: translateY(-1px);
}

.profile-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.status-pill {
  min-width: 136px;
  padding: 12px 16px;
  border-radius: 999px;
  text-align: center;
  font-weight: 600;
  color: #0b1d15;
  border: 1px solid rgba(105, 247, 162, 0.4);
  background: linear-gradient(135deg, rgba(105, 247, 162, 0.92), rgba(136, 255, 195, 0.92));
}

.status-pill.status-expired {
  border-color: rgba(255, 190, 114, 0.35);
  background: rgba(255, 190, 114, 0.14);
  color: #ffe6c7;
}

.status-pill.status-paused {
  border-color: rgba(157, 144, 255, 0.35);
  background: rgba(157, 144, 255, 0.14);
  color: #ece5ff;
}

.metric-card strong {
  display: block;
  margin-top: 14px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.hint-banner {
  margin: 0 0 18px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(105, 247, 162, 0.2);
  background: rgba(105, 247, 162, 0.08);
  color: #dfffe9;
}

.server-group {
  display: grid;
  gap: 14px;
}

.server-group + .server-group {
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.server-group-head h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
}

.server-card {
  border-color: rgba(105, 247, 162, 0.24);
  background:
    radial-gradient(circle at top right, rgba(105, 247, 162, 0.12), transparent 35%),
    rgba(8, 18, 24, 0.9);
}

.server-card-primary {
  box-shadow: 0 20px 40px rgba(24, 78, 53, 0.18);
}

.server-card-reserve {
  border-color: rgba(134, 240, 179, 0.18);
  background:
    radial-gradient(circle at top right, rgba(105, 247, 162, 0.08), transparent 35%),
    rgba(8, 16, 22, 0.88);
}

.server-card-bypass,
.server-card-mixed {
  border-color: rgba(105, 247, 162, 0.3);
  background:
    radial-gradient(circle at top right, rgba(105, 247, 162, 0.16), transparent 35%),
    rgba(8, 19, 24, 0.94);
  box-shadow: 0 20px 42px rgba(17, 92, 56, 0.2);
}

.server-chip {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(105, 247, 162, 0.26);
  background: var(--green-soft);
  color: #b8ffd3;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.server-card strong,
.app-card strong,
.contact-card strong,
.ru-card strong,
.steps-grid h3 {
  display: block;
  margin: 12px 0 8px;
  font-size: 1.03rem;
}

.server-location {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  color: #d3ffe5;
  font-weight: 600;
}

.server-meta {
  display: block;
  font-size: 0.93rem;
}

.server-card-empty {
  border-style: dashed;
}

.app-card,
.contact-card,
.ru-card {
  text-decoration: none;
  color: inherit;
}

.app-card {
  min-height: 108px;
}

.contact-card,
.ru-card {
  min-height: 122px;
}

.compact-head {
  margin-top: 22px;
}

.expert-block {
  margin-top: 10px;
}

.expert-list {
  margin-top: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.expert-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-decoration: none;
  transition: transform 150ms ease, border-color 150ms ease;
}

.expert-link:hover {
  transform: translateY(-1px);
  border-color: rgba(105, 247, 162, 0.28);
}

.signal-list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}

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

.steps-grid article {
  position: relative;
}

.steps-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  margin-bottom: 12px;
  background: rgba(71, 216, 255, 0.12);
  border: 1px solid rgba(71, 216, 255, 0.24);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
}

.footer-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-top: 28px;
  padding: 18px 4px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bar a {
  color: #d6e5ff;
  text-decoration: none;
}

.hidden {
  display: none !important;
}

.empty-state {
  text-align: center;
}

.accent-cyan::before,
.accent-lime::before,
.accent-amber::before,
.accent-violet::before {
  content: "";
  position: absolute;
  top: -42px;
  right: -12px;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.16;
}

.accent-cyan::before { background: var(--cyan); }
.accent-lime::before { background: var(--green); }
.accent-amber::before { background: var(--amber); }
.accent-violet::before { background: var(--violet); }

@media (max-width: 980px) {
  .hero-grid,
  .content-grid,
  .card-grid,
  .steps-grid,
  .stats-grid,
  .server-group-list,
  .app-grid,
  .contact-grid,
  .ru-grid,
  .expert-list {
    grid-template-columns: 1fr;
  }

  .topbar,
  .profile-heading,
  .footer-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .status-pill {
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .shell {
    width: min(calc(100% - 22px), var(--max-width));
    padding-bottom: 38px;
  }

  .topbar {
    border-radius: 24px;
  }

  .hero h1 {
    max-width: none;
    font-size: 2.5rem;
  }

  .panel,
  .feature-card,
  .signal-card,
  .metric-card {
    padding: 18px;
  }
}
