:root {
  --bg: #090a0e;
  --bg-elevated: #12141c;
  --surface: #161923;
  --surface-2: #1e2230;
  --border: #262b3b;
  --text: #f3f5f8;
  --muted: #9aa3b2;
  --accent: #3ea6ff;
  --accent-glow: rgba(62, 166, 255, 0.18);
  --amber: #ffb74d;
  --amber-soft: rgba(255, 183, 77, 0.13);
  --amber-border: rgba(255, 183, 77, 0.4);
  --success: #69db7c;
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Шапка */
.navbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(9, 10, 14, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
  padding: 10px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.nav-links a {
  color: var(--muted);
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  text-decoration: none;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 9px;
  overflow: hidden;
  background: var(--surface);
}

.lang-btn {
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  background: transparent;
  color: var(--muted);
  border: none;
  cursor: pointer;
}

.lang-btn.active {
  background: var(--accent-glow);
  color: var(--accent);
}

/* Hero-секция */
.hero {
  position: relative;
  padding: 72px 0 56px;
  text-align: center;
  background:
    radial-gradient(600px 280px at 50% 0%, rgba(62, 166, 255, 0.14), transparent 70%),
    radial-gradient(400px 200px at 75% 20%, rgba(255, 183, 77, 0.08), transparent 70%);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--amber-soft);
  border: 1px solid var(--amber-border);
  color: var(--amber);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2rem, 4.2vw, 3.1rem);
  line-height: 1.15;
  margin: 0 auto 18px;
  max-width: 820px;
  letter-spacing: -0.02em;
}

.hero-sub {
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  max-width: 680px;
  margin: 0 auto 30px;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 11px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, opacity 0.15s ease, background-color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #051320;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--surface-2);
}

.btn-donate {
  background: var(--amber-soft);
  color: var(--amber);
  border-color: var(--amber-border);
}

.hero-note {
  margin-top: 14px;
  font-size: 0.84rem;
  color: var(--muted);
}

/* Секции */
.section {
  padding: 56px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 36px;
}

.section-header h2 {
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  margin: 0 0 10px;
  letter-spacing: -0.015em;
}

.section-header p {
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto;
}

/* Сетка возможностей */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.feature-card:hover {
  border-color: rgba(62, 166, 255, 0.45);
  transform: translateY(-2px);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-glow);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  margin-bottom: 14px;
}

.feature-icon.amber {
  background: var(--amber-soft);
  color: var(--amber);
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.06rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Скриншоты */
.shots-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.shot-card {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.shot-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  cursor: zoom-in;
}

.shot-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.shot-card:hover .shot-media img {
  transform: scale(1.02);
}

.shot-placeholder {
  display: none;
  position: absolute;
  inset: 0;
  padding: 18px;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  border: 2px dashed var(--border);
  margin: 10px;
  border-radius: 10px;
}

.shot-media.is-missing {
  cursor: default;
}

.shot-media.is-missing img {
  display: none;
}

.shot-media.is-missing .shot-placeholder {
  display: flex;
}

.shot-caption {
  padding: 14px 16px;
  font-size: 0.88rem;
  color: var(--muted);
}

.shot-caption strong {
  display: block;
  color: var(--text);
  margin-bottom: 3px;
}

/* Как это работает */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent);
  color: #051320;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.step-card h3 {
  margin: 0 0 6px;
  font-size: 1.03rem;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.91rem;
}

/* Приватность + Контакты */
.trust-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.trust-banner h3 {
  margin: 0 0 8px;
  font-size: 1.22rem;
}

.trust-banner p {
  margin: 0;
  color: var(--muted);
  max-width: 640px;
}

.contact-box {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.email-pill {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 5px 11px;
  border-radius: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--text);
  user-select: all;
}

.copy-mini-btn {
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  cursor: pointer;
}

.copy-mini-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.copy-toast {
  color: var(--success);
  font-weight: 600;
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.copy-toast.visible {
  opacity: 1;
}

/* Документ Privacy Policy и страница Donate */
.doc-wrap {
  max-width: 820px;
  margin: 44px auto 64px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 36px 32px;
}

.doc-wrap h1 {
  margin: 0 0 8px;
  font-size: 1.9rem;
}

.doc-meta {
  color: var(--muted);
  font-size: 0.88rem;
  margin-bottom: 26px;
}

.doc-wrap h2 {
  font-size: 1.18rem;
  margin: 26px 0 8px;
  color: var(--text);
}

.doc-wrap p,
.doc-wrap li {
  color: var(--muted);
  font-size: 0.95rem;
}

.doc-wrap ul {
  padding-left: 20px;
}

.donate-center {
  text-align: center;
  max-width: 620px;
}

/* Лайтбокс для скринов */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(5, 6, 10, 0.88);
  backdrop-filter: blur(6px);
  padding: 24px;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 94vw;
  max-height: 90vh;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
}

/* Футер */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

@media (max-width: 920px) {
  .features-grid,
  .shots-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .doc-wrap {
    padding: 24px 18px;
    margin: 24px 14px 48px;
  }
}