/* Dark theme base */
:root {
  --bg: #0b0f14;
  --bg-elev: #111720;
  --text: #e7ecf3;
  --muted: #a9b4c2;
  --brand: #5dd177;
  --brand-2: #26a69a;
  --danger: #ff4d4f;
  --border: #1c2431;
  --card: #0f141b;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: "Afacad Flux", system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

/* Animated background */
body::before {
  content: "";
  position: fixed;
  top: -25%;
  left: -25%;
  right: -25%;
  bottom: -25%;
  z-index: -1;
  background:
    radial-gradient(600px 600px at 20% 20%, rgba(93,209,119,0.10), transparent 60%),
    radial-gradient(700px 700px at 80% 10%, rgba(38,166,154,0.10), transparent 60%),
    radial-gradient(800px 800px at 50% 90%, rgba(93,209,119,0.08), transparent 60%),
    radial-gradient(900px 900px at 0% 100%, rgba(38,166,154,0.06), transparent 60%),
    linear-gradient(180deg, #0b0f14 0%, #0c1117 100%);
  filter: blur(10px) saturate(110%);
  animation: bg-pan 36s linear infinite;
}

@keyframes bg-pan {
  0% { transform: translate3d(0, 0, 0) scale(1.0); }
  25% { transform: translate3d(-2%, -1%, 0) scale(1.03); }
  50% { transform: translate3d(1%, -2%, 0) scale(1.02); }
  75% { transform: translate3d(-1%, 1%, 0) scale(1.03); }
  100% { transform: translate3d(0, 0, 0) scale(1.0); }
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Layout */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  background: rgba(11, 15, 20, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}
.header-inner { padding: 0 10px; }
.header-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; }
.header-bottom { display: flex; align-items: center; padding: 6px 0 12px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 36px; }
.brand-name { font-weight: 700; letter-spacing: 0.2px; }

.nav { display: flex; align-items: center; gap: 8px; flex: 1; justify-content: center; }
.nav a { padding: 10px 14px; color: var(--text); border-radius: 10px; transition: background 0.2s ease; }
.nav a:hover { background: var(--bg-elev); text-decoration: none; }

.cta { display: flex; align-items: center; gap: 10px; }
.btn {
  appearance: none;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(93, 209, 119, 0.2), rgba(38, 166, 154, 0.2));
  color: var(--text);
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 600;
  transition: transform 0.05s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { background: linear-gradient(180deg, rgba(93, 209, 119, 0.28), rgba(38, 166, 154, 0.28)); border-color: var(--brand-2); text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primary { background: linear-gradient(180deg, var(--brand) 0%, var(--brand-2) 100%); color: #07120b; border-color: transparent; }
.btn-primary:hover { filter: brightness(1.04); }

/* Burger */
.burger { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-elev); align-items: center; justify-content: center; cursor: pointer; margin-left: auto; }
.burger span, .burger::before, .burger::after { content: ""; display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.burger span { position: relative; }
.burger::before { position: relative; margin-bottom: 5px; }
.burger::after { position: relative; margin-top: 5px; }

/* Fullscreen menu */
.menu-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(7,10,14,0.98); display: none; z-index: 1400; }
.menu-overlay.active { display: block; }
.menu-content { position: absolute; top: 0; left: 0; right: 0; bottom: 0; padding: 24px; display: flex; flex-direction: column; }
.menu-top { display: flex; align-items: center; justify-content: space-between; }
.close-menu { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-elev); color: var(--text); font-size: 22px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.menu-links { margin: 24px 0; display: grid; gap: 12px; }
.menu-links a { display: block; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; color: var(--text); background: var(--card); }
.menu-ctas { margin-top: auto; display: grid; gap: 12px; }

/* Hero and sections */
.hero { padding: 48px 10px 24px; border-bottom: 1px solid var(--border); }
.hero h1 { margin: 0 0 12px; font-size: 34px; }
.hero p { color: var(--muted); margin: 0 0 18px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-media { margin-top: 22px; }
.hero-media a { display: flex; justify-content: center;  border-radius: 14px; overflow: hidden; }
.hero-media a img {
  max-width: 700px;
}
section { padding: 40px 0; border-bottom: 1px solid var(--border); }
section h2 { margin-top: 0; font-size: 26px; }
section h3 { margin-top: 12px; font-size: 20px; color: var(--text); }

.grid-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { border: 1px solid var(--border); background: var(--card); border-radius: 14px; padding: 16px; }
.card h3 { margin: 0 0 8px; }
.table-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 16px 0;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px; /* минимальная ширина таблицы */
}

.table th, .table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  white-space: nowrap; /* предотвращает перенос текста */
}

.table thead th {
  background: var(--bg-elev);
  color: var(--muted);
  font-weight: 600;
}

/* Footer */
.site-footer { padding: 32px 0; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 16px; }
.footer-links { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }
.footer-desc { flex: 1 1 100%; margin-top: 8px; max-width: 1000px; color: var(--muted); }

/* Responsive */
@media (max-width: 1024px) {
  .grid-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .burger { display: flex; flex-direction: column;}
  .hero { padding: 36px 10px 18px; }
  .grid-cards { grid-template-columns: 1fr; }
  .hero-media a img {
    max-width: 300px;
  }
}

/* Utilities */
.muted { color: var(--muted); }
.spacer { height: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }


