:root {
  --bg: #090a0c;
  --bg-soft: #111317;
  --panel: rgba(255, 255, 255, 0.075);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.15);
  --text: #f3f4f6;
  --muted: #a4a9b3;
  --muted-strong: #c8ccd3;
  --accent: #d8dde6;
  --accent-dark: #9aa3b2;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --radius: 26px;
  --radius-sm: 18px;
  --container: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  background:
    radial-gradient(circle at 20% 8%, rgba(172, 182, 198, 0.18), transparent 28rem),
    radial-gradient(circle at 82% 24%, rgba(90, 96, 108, 0.28), transparent 32rem),
    linear-gradient(135deg, #07080a 0%, #121419 52%, #08090b 100%);
  overflow-x: hidden;
}

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

body.nav-open {
  overflow: hidden;
}

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

img {
  display: block;
  max-width: 100%;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.section {
  padding: 96px 0;
}

.section--compact {
  padding: 42px 0;
}

.glass {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.045));
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  gap: 18px;
  background: rgba(8, 9, 11, 0.88);
  backdrop-filter: blur(24px);
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

.loader span {
  color: var(--muted-strong);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader__ring {
  width: 54px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

.site-header {
  position: fixed;
  top: 18px;
  right: 0;
  left: 0;
  z-index: 100;
  transition: transform 0.3s ease;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  background: rgba(16, 17, 20, 0.68);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.94rem;
  transition: color 0.25s ease, background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.07);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 4px;
  background: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  min-height: 100vh;
  padding-top: 176px;
  display: flex;
  align-items: center;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 54px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--muted-strong);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 840px;
  margin-bottom: 22px;
  font-size: clamp(2.7rem, 8vw, 6.9rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.16rem;
  line-height: 1.25;
}

.hero__lead,
.page-hero p,
.section-heading p {
  max-width: 680px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-weight: 800;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.btn::before {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}

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

.btn:hover::before {
  transform: translateX(120%);
}

.btn--primary {
  color: #101114;
  background: linear-gradient(135deg, #ffffff, #bfc6d1);
  box-shadow: 0 18px 42px rgba(216, 221, 230, 0.18);
}

.btn--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.065);
  backdrop-filter: blur(16px);
}

.btn--wide {
  width: 100%;
}

.hero-card {
  position: relative;
  min-height: 520px;
  padding: 34px;
  border-radius: 34px;
  overflow: hidden;
}

.hero-card::before {
  position: absolute;
  inset: 18px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
}

.orbital {
  position: relative;
  display: grid;
  place-items: center;
  width: min(76vw, 360px);
  aspect-ratio: 1;
  margin: 36px auto 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.12), transparent 60%);
  animation: float 5s ease-in-out infinite;
}

.orbital::before,
.orbital::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.orbital::before {
  inset: 42px;
}

.orbital::after {
  inset: 86px;
}

.orbital__core {
  display: grid;
  place-items: center;
  width: 118px;
  height: 118px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  color: #121317;
  font-size: 1.45rem;
  font-weight: 900;
  background: linear-gradient(135deg, #fff, #aeb6c4);
  box-shadow: 0 20px 70px rgba(255, 255, 255, 0.14);
}

.orbital__dot {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.75);
}

.orbital__dot--one {
  top: 48px;
  right: 92px;
}

.orbital__dot--two {
  bottom: 72px;
  left: 80px;
}

.orbital__dot--three {
  right: 52px;
  bottom: 120px;
}

.hero-card__meta {
  position: absolute;
  right: 30px;
  bottom: 30px;
  left: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
}

.hero-card__meta span,
.hero-card__meta strong {
  display: block;
}

.hero-card__meta span {
  color: var(--muted);
}

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

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

.card,
.device-card,
.contact-card,
.step,
.stat,
.price-card {
  border-radius: var(--radius);
  transition: transform 0.28s ease, border-color 0.28s ease, background 0.28s ease;
}

.card:hover,
.device-card:hover,
.contact-card:hover,
.step:hover,
.price-card:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.06));
  transform: translateY(-6px);
}

.card {
  min-height: 224px;
  padding: 26px;
}

.card p,
.step p,
.device-card li,
.contact-card p,
.price-card li {
  color: var(--muted);
}

.icon,
.device-card__icon,
.telegram-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  color: var(--text);
  font-weight: 900;
  background: rgba(255, 255, 255, 0.08);
}

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

.stat {
  padding: 28px;
  text-align: center;
}

.stat strong {
  display: block;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 1;
}

.stat span {
  color: var(--muted);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.step {
  padding: 24px;
}

.step span {
  display: inline-flex;
  margin-bottom: 26px;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.center {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.page-hero {
  padding-top: 180px;
  padding-bottom: 54px;
}

.page-hero h1 {
  font-size: clamp(2.6rem, 6vw, 5.7rem);
}

.pricing-layout {
  display: grid;
  place-items: center;
}

.price-card {
  width: min(100%, 520px);
  padding: 34px;
}

.price-card__top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.price-card__top p {
  margin: 0;
  font-weight: 900;
}

.price-card__top span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  color: var(--muted-strong);
  font-size: 0.82rem;
}

.price {
  display: flex;
  align-items: end;
  gap: 10px;
  margin-bottom: 28px;
}

.price strong {
  font-size: clamp(4rem, 12vw, 6rem);
  line-height: 0.9;
}

.price span {
  color: var(--muted);
  font-size: 1.2rem;
}

.check-list {
  display: grid;
  gap: 14px;
  padding: 0;
  margin: 0 0 32px;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 30px;
}

.check-list li::before {
  position: absolute;
  left: 0;
  content: "✓";
  color: var(--text);
}

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

.device-card {
  padding: 30px;
}

.device-card ol {
  display: grid;
  gap: 12px;
  padding-left: 20px;
  margin: 22px 0 0;
}

.about-grid .card:nth-child(5) {
  grid-column: span 2;
}

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

.contact-card {
  padding: 34px;
}

.telegram-mark {
  color: #fff;
  background: linear-gradient(135deg, #2da7e8, #1f6fff);
}

.site-footer {
  padding: 34px 0 42px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer__grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
}

.footer__grid p {
  margin: 0;
}

.footer__links {
  display: flex;
  gap: 16px;
}

.footer__links a {
  transition: color 0.2s ease;
}

.footer__links a:hover {
  color: var(--text);
}

.to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
  background: rgba(20, 21, 25, 0.72);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.26);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  backdrop-filter: blur(18px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.to-top:hover {
  background: rgba(255, 255, 255, 0.12);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

@media (max-width: 980px) {
  .hero__grid,
  .feature-grid,
  .about-grid,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero {
    padding-top: 150px;
  }

  .hero__content {
    grid-column: 1 / -1;
  }

  .hero-card {
    grid-column: 1 / -1;
    min-height: 440px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-list {
    position: fixed;
    top: 104px;
    right: 20px;
    left: 20px;
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 24px;
    background: rgba(14, 15, 18, 0.92);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    backdrop-filter: blur(24px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
  }

  .nav-list.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-link {
    justify-content: center;
  }
}

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

  .section {
    padding: 72px 0;
  }

  .page-hero {
    padding-top: 150px;
    padding-bottom: 28px;
  }

  .hero {
    min-height: auto;
    padding-top: 144px;
  }

  .hero__grid,
  .feature-grid,
  .about-grid,
  .device-grid,
  .contact-grid,
  .stats,
  .steps {
    grid-template-columns: 1fr;
  }

  .about-grid .card:nth-child(5) {
    grid-column: auto;
  }

  .hero-card {
    min-height: 360px;
    padding: 22px;
    border-radius: 26px;
  }

  .orbital {
    margin-top: 22px;
  }

  .hero-card__meta,
  .footer__grid,
  .price-card__top {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero__actions,
  .hero__actions .btn {
    width: 100%;
  }

  .footer__grid {
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
