:root {
  --bg: #070b14;
  --panel: #0f162b;
  --panel-2: #141d35;
  --accent: #3ddc84;
  --accent-2: #5fa8ff;
  --text: #e9eef7;
  --muted: #95a3c6;
  --border: rgba(255, 255, 255, 0.06);
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.45);
  --pixel: 'Press Start 2P', 'Inter', system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: radial-gradient(circle at 20% 20%, rgba(93, 152, 255, 0.08), transparent 25%), radial-gradient(circle at 80% 0%, rgba(61, 220, 132, 0.08), transparent 22%), var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.4;
  z-index: 0;
}

a {
  color: var(--text);
  text-decoration: none;
}

.container {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 26px;
  background: rgba(7, 11, 20, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.logo {
  font-weight: 700;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.logo-icon {
  width: 32px;
  height: 32px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.logo-text {
  font-size: 16px;
}

.logo-socials {
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo-socials a {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  background: rgba(0, 0, 0, 0.35);
}

.logo-socials img {
  width: 110%;
  height: 110%;
  object-fit: cover;
  border-radius: 50%;
}

.pixel-font {
  font-family: var(--pixel);
  letter-spacing: 0.8px;
}

.nav {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav a {
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 6px;
  border: 1px solid transparent;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border 0.18s ease, background 0.18s ease;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.35);
}

.btn.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #0b1021;
  box-shadow: 0 10px 35px rgba(61, 220, 132, 0.35);
}

.btn.ghost {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.btn.full {
  width: 100%;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 80px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  align-items: start;
}

.with-bg {
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
  padding: 64px 0;
}

.with-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 11, 20, 0.7), rgba(7, 11, 20, 0.82));
  z-index: 0;
  opacity: 0.82;
  transition: opacity 0.4s ease;
}

.with-bg.bg-visible::before {
  opacity: 0.7;
}

.with-bg.bg-visible {
  animation: bgZoom 1.4s ease forwards;
}

.overlay-card {
  position: relative;
  z-index: 1;
  max-width: 760px;
  background: rgba(10, 14, 26, 0.7);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-size: 12px;
  color: var(--accent);
  margin: 0 0 8px;
}

h1, h2 {
  margin: 0 0 12px;
  line-height: 1.2;
}

.lead {
  color: var(--muted);
  margin: 0 0 20px;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

 .promo-banner {
  display: block;
  margin: 14px 0 16px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #c80000;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
 }

 .promo-banner img {
  display: block;
  width: 100%;
  height: auto;
 }

 .promo-banner:hover {
  transform: translateY(-2px);
  border-color: rgba(61, 220, 132, 0.35);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.45);
 }

 .promo-banner--wide {
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
 }

 .promo-banner--download {
  max-width: 720px;
 }

 .promo-banner--bottom {
  max-width: 760px;
 }

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

.badges span {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  font-size: 13px;
  color: var(--muted);
}

.window-nav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 24px;
  position: relative;
  z-index: 1;
}

.section {
  padding: 64px 0;
  position: relative;
}

.section-header {
  max-width: 760px;
  margin: 0 auto 28px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.section-header h2 {
  font-family: var(--pixel);
  font-size: 18px;
  letter-spacing: 0.5px;
}

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

.grid {
  display: grid;
  gap: 18px;
  position: relative;
  z-index: 1;
}

.grid.steps {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid.features {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid.reviews {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.grid.specs {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid.faq {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.window {
  background: linear-gradient(180deg, rgba(26, 38, 58, 0.95), rgba(15, 22, 36, 0.96));
  border: 2px solid #243523;
  border-radius: 6px;
  padding: 18px;
  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.4),
    0 0 0 2px rgba(255, 255, 255, 0.02),
    6px 6px 0 rgba(0, 0, 0, 0.35);
  position: relative;
  overflow: hidden;
  image-rendering: pixelated;
}

.window.small {
  padding: 14px;
}

.window::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.02) 2px, rgba(0, 0, 0, 0) 2px, rgba(0, 0, 0, 0) 4px),
    radial-gradient(circle at 20% 20%, rgba(61, 220, 132, 0.08), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(95, 168, 255, 0.1), transparent 42%);
  pointer-events: none;
}

.window .title {
  margin: 0 0 6px;
  font-weight: 700;
  font-family: var(--pixel);
  letter-spacing: 0.6px;
  text-transform: uppercase;
  font-size: 14px;
}

.window .text {
  margin: 0 0 10px;
  color: var(--muted);
}

.window.reveal {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
}

.window.reveal.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.window .tiny {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
}

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

.chips span {
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  color: var(--muted);
}

.progress {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 10px;
  height: 10px;
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  border-radius: 10px;
}

.alt-links {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.alt-links a {
  font-size: 13px;
  color: var(--accent-2);
}

.carousel {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.shot .fake-img {
  position: relative;
  margin-top: 10px;
  border-radius: 12px;
  height: 180px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  cursor: zoom-in;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  image-rendering: auto;
  filter: brightness(1.06) saturate(1.05);
}

.shot .fake-img.contain {
  background-size: contain;
  background-repeat: no-repeat;
  background-color: #0d1324;
}

.shot .fake-img:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  filter: brightness(1.1) saturate(1.08);
}

.rating {
  color: #f7d046;
  margin-bottom: 10px;
}

.list {
  list-style: none;
  padding: 0;
  margin: 6px 0 0;
  color: var(--muted);
  display: grid;
  gap: 8px;
}

.footer {
  background: #0b111f;
  padding: 50px 0 30px;
  color: var(--muted);
}

.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.footer-note {
  text-align: center;
  color: #5c6684;
  margin: 0;
}

.footer .title {
  margin: 0 0 8px;
  color: var(--text);
}

.footer a {
  color: var(--accent-2);
}

.socials {
  display: flex;
  align-items: center;
  gap: 10px;
}

.socials a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  background: rgba(0, 0, 0, 0.35);
}

.socials img {
  width: 110%;
  height: 110%;
  border-radius: 50%;
  object-fit: cover;
}

.review-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  border: 1px solid var(--border);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

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

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  display: grid;
  place-items: center;
  z-index: 40;
  opacity: 0;
  animation: fadeIn 0.25s ease forwards;
}

.lightbox img {
  max-width: min(90vw, 1100px);
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.08);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes bgZoom {
  from { background-size: 120%; background-position: center 40%; }
  to { background-size: 105%; background-position: center 60%; }
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: grid;
  place-items: center;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  backdrop-filter: blur(4px);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-window {
  max-width: min(90vw, 480px);
  width: 100%;
  position: relative;
  transform: scale(0.9) translateY(20px);
  transition: transform 0.3s ease;
  z-index: 101;
}

.modal-overlay.active .modal-window {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: color 0.2s ease, background 0.2s ease;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

.modal-close:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.modal-window .title {
  margin-top: 8px;
  margin-bottom: 12px;
}

.modal-window .text {
  margin-bottom: 10px;
}

.modal-window .text.muted {
  font-size: 13px;
  margin-top: 8px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

.modal-actions .btn {
  flex: 1;
  min-width: 120px;
}

.install-guide {
  margin-bottom: 24px;
  cursor: pointer;
}

.install-guide-header {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.install-icon {
  font-size: 20px;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(61, 220, 132, 0.15);
  border: 1px solid rgba(61, 220, 132, 0.3);
}

.install-toggle {
  margin-left: auto;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 24px;
  cursor: pointer;
  padding: 4px 8px;
  transition: transform 0.3s ease, color 0.2s ease;
  line-height: 1;
}

.install-toggle:hover {
  color: var(--text);
}

.toggle-icon {
  display: inline-block;
  transition: transform 0.3s ease;
}

.toggle-icon.rotated {
  transform: rotate(-90deg);
}

.install-guide-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  margin-top: 0;
}

.install-guide-content.active {
  max-height: 2000px;
  margin-top: 16px;
}

.install-screenshots {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.install-screenshot-container {
  position: relative;
  overflow: visible;
  border: 2px solid var(--border);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  padding: 8px;
}

.install-screenshot {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  cursor: grab;
  transition: transform 0.2s ease;
  max-height: 300px;
  display: block;
}

.install-screenshot:active {
  cursor: grabbing;
}

.screenshot-controls {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  justify-content: center;
  flex-wrap: wrap;
}

.screenshot-zoom-btn,
.screenshot-reset-btn,
.screenshot-view-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s ease, border 0.2s ease;
  font-family: inherit;
}

.screenshot-zoom-btn:hover,
.screenshot-reset-btn:hover,
.screenshot-view-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent);
}

/* Модальное окно для просмотра скриншотов */
.screenshot-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.screenshot-modal.active {
  opacity: 1;
  visibility: visible;
}

.screenshot-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(8px);
}

.screenshot-modal-content {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px 80px;
  z-index: 1001;
}

.screenshot-modal-close {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.2s ease, border 0.2s ease;
  z-index: 1002;
  font-family: 'Inter', sans-serif;
  padding: 0;
}

.screenshot-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent);
}

.screenshot-modal-img {
  max-width: 90vw;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  cursor: grab;
  transition: transform 0.1s ease;
  border: 2px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.3);
}

.screenshot-modal-img:active {
  cursor: grabbing;
}

.screenshot-modal-controls {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding: 12px 20px;
  background: rgba(15, 22, 36, 0.9);
  border: 2px solid var(--border);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.screenshot-modal-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 18px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  transition: background 0.2s ease, border 0.2s ease, transform 0.1s ease;
  font-family: inherit;
  min-width: 44px;
}

.screenshot-modal-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.screenshot-modal-btn:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .topbar {
    flex-wrap: wrap;
    gap: 10px;
  }
  .nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }
  .hero {
    padding-top: 96px;
  }
  .overlay-card {
    padding: 22px;
  }
  .install-screenshots {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .section,
  .with-bg {
    padding: 48px 0;
  }
  .container {
    padding: 0 12px;
  }
  .grid,
  .grid.steps,
  .grid.features,
  .grid.reviews,
  .grid.specs,
  .grid.faq {
    grid-template-columns: 1fr;
  }
  .hero {
    min-height: auto;
  }
  .window {
    padding: 16px;
  }
  .carousel {
    grid-template-columns: 1fr;
  }
}
