/* ========================================
   КИРИЛЛ ПОЛЯКОВ — kpolyakov.ru
   Offline HTML/CSS/JS Export
   Все цвета в RGBA
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: rgba(240, 242, 248, 1);
  color: rgba(30, 40, 60, 1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; }
ul { list-style: none; }

code, pre {
  font-family: 'JetBrains Mono', monospace;
}

/* ---- CONTAINER ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* ---- GRID SYSTEM ---- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
.grid-5 { grid-template-columns: 1fr; }
.grid-sidebar { grid-template-columns: 1fr; }

@media (min-width: 768px) {
  .container { padding-left: 24px; padding-right: 24px; }
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-5 { grid-template-columns: repeat(5, 1fr); }
  .grid-sidebar { grid-template-columns: 2fr 1fr; }
}

/* ---- FLEX UTILITIES ---- */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 4px; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }
.gap-6 { gap: 24px; }
.gap-8 { gap: 32px; }
.flex-wrap { flex-wrap: wrap; }
.shrink-0 { flex-shrink: 0; }

/* ---- SPACING ---- */
.mt-1 { margin-top: 4px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-1 { margin-bottom: 4px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.p-3 { padding: 12px; }
.p-4 { padding: 16px; }
.p-6 { padding: 24px; }
.px-3 { padding-left: 12px; padding-right: 12px; }
.px-4 { padding-left: 16px; padding-right: 16px; }
.px-6 { padding-left: 24px; padding-right: 24px; }
.py-1 { padding-top: 4px; padding-bottom: 4px; }
.py-2 { padding-top: 8px; padding-bottom: 8px; }
.py-4 { padding-top: 16px; padding-bottom: 16px; }
.py-8 { padding-top: 32px; padding-bottom: 32px; }
.py-12 { padding-top: 48px; padding-bottom: 48px; }
.py-16 { padding-top: 64px; padding-bottom: 64px; }

/* ---- TEXT ---- */
.text-center { text-align: center; }
.text-xs { font-size: 0.75rem; }
.text-sm { font-size: 0.875rem; }
.text-base { font-size: 1rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.text-5xl { font-size: 3rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-black { font-weight: 900; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.05em; }
.tracking-widest { letter-spacing: 0.1em; }
.max-w-xl { max-width: 576px; }
.max-w-2xl { max-width: 672px; }
.max-w-3xl { max-width: 768px; }
.max-w-4xl { max-width: 896px; }
.max-w-5xl { max-width: 1024px; }
.w-full { width: 100%; }

.text-muted { color: rgba(100, 110, 140, 1); }
.text-gold { color: rgba(218, 165, 32, 1); }
.text-primary { color: rgba(25, 40, 80, 1); }
.text-success { color: rgba(30, 160, 100, 1); }

/* ---- HIDDEN / VISIBLE ---- */
.hidden { display: none; }
@media (min-width: 768px) {
  .md-hidden { display: none; }
  .md-flex { display: flex; }
  .md-block { display: block; }
}
@media (max-width: 767px) {
  .md-flex { display: none; }
  .md-block { display: none; }
}

/* ---- ICON ---- */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
}
.icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-sm { font-size: 0.75rem; }
.icon-md { font-size: 1rem; }
.icon-lg { font-size: 1.5rem; }
.icon-xl { font-size: 2rem; }
.icon-2xl { font-size: 3rem; }

/* ========== GOV BANNER ========== */
.gov-banner {
  background: rgba(17, 24, 50, 1);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem;
  padding: 6px 0;
  letter-spacing: 0.02em;
}

/* ========== NAVBAR ========== */
.nav-gov {
  background: rgba(25, 40, 80, 1);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  position: sticky;
  top: 0;
  z-index: 50;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 1);
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(218, 165, 32, 1), rgba(255, 180, 30, 1));
  color: rgba(17, 24, 50, 1);
  font-size: 1.25rem;
}

.nav-logo-text {
  font-size: 0.875rem;
  font-weight: 700;
}

.nav-logo-sub {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 4px;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
}

.nav-link {
  padding: 8px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.8);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link:hover {
  color: rgba(255, 255, 255, 1);
  background: rgba(255, 255, 255, 0.1);
}

.nav-link.active {
  color: rgba(218, 165, 32, 1);
  background: rgba(255, 255, 255, 0.08);
}

.nav-mobile-toggle {
  display: block;
  padding: 8px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.8);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
}

@media (min-width: 768px) {
  .nav-mobile-toggle { display: none; }
}

.nav-mobile {
  display: none;
  padding-bottom: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  flex-direction: column;
  gap: 4px;
  padding-top: 12px;
}

.nav-mobile.open { display: flex; }

/* ========== PAGE HEADER ========== */
.page-header {
  background: linear-gradient(135deg, rgba(20, 35, 65, 1), rgba(30, 50, 90, 1));
  padding: 48px 0;
  position: relative;
  overflow: hidden;
}

.page-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(218, 165, 32, 1), rgba(255, 165, 0, 1), rgba(218, 165, 32, 1));
}

@media (min-width: 768px) {
  .page-header { padding: 64px 0; }
}

.page-header h1 {
  color: rgba(255, 255, 255, 1);
  font-size: 1.75rem;
  margin-bottom: 8px;
}

@media (min-width: 768px) {
  .page-header h1 { font-size: 2.25rem; }
}

.page-header .subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
}

/* Breadcrumbs */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 16px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

.breadcrumb a:hover { color: rgba(218, 165, 32, 1); }
.breadcrumb .current { color: rgba(255, 255, 255, 1); }

/* ========== HERO ========== */
.hero-section {
  position: relative;
  background: linear-gradient(135deg, rgba(17, 24, 50, 1), rgba(25, 40, 80, 1));
}

.hero-bg {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-size: cover;
  background-position: center;
}

.hero-content {
  position: relative;
  z-index: 10;
}

/* ========== MEGA BUTTONS ========== */
.mega-btn {
  position: relative;
  overflow: hidden;
  font-weight: 900;
  letter-spacing: 0.05em;
  border-radius: 12px;
  transition: all 0.3s;
  padding: 28px 48px;
  font-size: 1.25rem;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  border: 2px solid transparent;
  text-align: center;
}

.mega-btn:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

.mega-btn:active { transform: translateY(-1px); }

.mega-btn-bybit {
  background: linear-gradient(135deg, rgba(241, 186, 44, 1), rgba(255, 165, 0, 1));
  color: rgba(0, 0, 0, 0.9);
}
.mega-btn-bybit:hover {
  background: linear-gradient(135deg, rgba(255, 200, 60, 1), rgba(255, 180, 30, 1));
  border-color: rgba(255, 220, 100, 0.5);
}

.mega-btn-gmx {
  background: linear-gradient(135deg, rgba(50, 100, 220, 1), rgba(80, 50, 200, 1));
  color: rgba(255, 255, 255, 1);
}
.mega-btn-gmx:hover {
  background: linear-gradient(135deg, rgba(70, 120, 240, 1), rgba(100, 70, 220, 1));
  border-color: rgba(130, 150, 255, 0.5);
}

.mega-btn-broker {
  background: linear-gradient(135deg, rgba(20, 120, 80, 1), rgba(30, 160, 100, 1));
  color: rgba(255, 255, 255, 1);
}
.mega-btn-broker:hover {
  background: linear-gradient(135deg, rgba(30, 140, 90, 1), rgba(40, 180, 120, 1));
  border-color: rgba(80, 220, 150, 0.5);
}

/* ========== STAT CARD ========== */
.stat-card {
  border-radius: 12px;
  padding: 24px;
  transition: all 0.3s;
  background: rgba(255, 255, 255, 1);
  border: 1px solid rgba(220, 225, 235, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.stat-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
  border-color: rgba(218, 165, 32, 1);
}

/* ========== GOV CARD ========== */
.gov-card {
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
  background: rgba(255, 255, 255, 1);
  border: 1px solid rgba(220, 225, 235, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.gov-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.gov-card-header {
  background: linear-gradient(135deg, rgba(25, 40, 80, 1), rgba(35, 55, 100, 1));
  padding: 16px 24px;
  color: rgba(255, 255, 255, 1);
  display: flex;
  align-items: center;
  gap: 12px;
}

.gov-card-body {
  padding: 24px;
}

.gov-card-body p {
  margin-bottom: 12px;
  line-height: 1.7;
}

.gov-card-body p:last-child { margin-bottom: 0; }

/* ========== WARNING / INFO BOX ========== */
.warning-box {
  background: rgba(255, 243, 205, 1);
  border: 2px solid rgba(218, 165, 32, 0.5);
  border-radius: 12px;
  padding: 24px;
  color: rgba(120, 80, 0, 1);
}

.info-box {
  background: rgba(220, 235, 255, 1);
  border: 2px solid rgba(100, 150, 220, 0.5);
  border-radius: 12px;
  padding: 24px;
  color: rgba(20, 50, 100, 1);
}

/* ========== BADGES ========== */
.gov-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(25, 40, 80, 0.1);
  color: rgba(25, 40, 80, 1);
}

.gov-badge-gold {
  background: rgba(218, 165, 32, 0.15);
  color: rgba(150, 100, 0, 1);
}

.gov-badge-success {
  background: rgba(30, 160, 100, 0.15);
  color: rgba(20, 100, 60, 1);
}

/* ========== CODE BLOCK ========== */
.code-block {
  background: rgba(17, 24, 50, 1);
  color: rgba(200, 220, 255, 1);
  border-radius: 8px;
  padding: 16px;
  font-size: 0.875rem;
  overflow-x: auto;
  font-family: 'JetBrains Mono', monospace;
  border: 1px solid rgba(50, 70, 120, 0.5);
  white-space: pre;
  line-height: 1.6;
}

.code-comment { color: rgba(120, 160, 220, 1); }

/* ========== FEATURE ITEM ========== */
.feature-item {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(245, 247, 252, 1);
}

.feature-item .feature-title { font-weight: 600; font-size: 0.875rem; }
.feature-item .feature-desc { font-size: 0.75rem; color: rgba(100, 110, 140, 1); margin-top: 4px; }

/* ========== STEP ========== */
.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.step-num {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.125rem;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(218, 165, 32, 0.15), rgba(255, 180, 30, 0.15));
  color: rgba(180, 120, 0, 1);
}

.step-title { font-weight: 700; }
.step-desc { font-size: 0.875rem; color: rgba(100, 110, 140, 1); }

/* ========== STRATEGY CARD ========== */
.strategy-card {
  padding: 16px;
  border-radius: 8px;
  border: 1px solid rgba(220, 225, 235, 1);
  transition: border-color 0.3s;
}

.strategy-card:hover { border-color: rgba(218, 165, 32, 1); }

/* ========== RISK ITEM ========== */
.risk-item {
  display: flex;
  gap: 16px;
}

.risk-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(255, 230, 200, 1);
  color: rgba(180, 100, 0, 1);
  font-size: 1.5rem;
}

/* ========== PRINCIPLE CARD ========== */
.principle-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  border-radius: 8px;
}

.principle-card.positive { background: rgba(235, 250, 240, 1); }
.principle-card.negative { background: rgba(255, 240, 240, 1); }

/* ========== FOOTER ========== */
.gov-footer {
  background: rgba(17, 24, 50, 1);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0;
}

.gov-footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

.gov-footer a:hover { color: rgba(218, 165, 32, 1); }

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

.footer-bottom {
  margin-top: 32px;
  padding-top: 24px;
  text-align: center;
  font-size: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.4);
}

/* ========== ANIMATIONS ========== */
@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(218, 165, 32, 0.4); }
  50% { box-shadow: 0 0 0 20px rgba(218, 165, 32, 0); }
}

.pulse-gold { animation: pulse-gold 2s infinite; }

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.shimmer-text {
  background: linear-gradient(90deg, rgba(218, 165, 32, 1) 0%, rgba(255, 220, 100, 1) 50%, rgba(218, 165, 32, 1) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 3s linear infinite;
}

/* ========== QUICK LINK CARDS ========== */
.quick-link {
  display: block;
  transition: all 0.3s;
}

.quick-link:hover .link-arrow {
  gap: 12px;
}

.link-arrow {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(25, 40, 80, 1);
  transition: gap 0.3s;
}

/* ========== SECTION BG ========== */
.bg-light { background: rgba(245, 247, 252, 1); }
.bg-gold-gradient { background: linear-gradient(180deg, rgba(255, 245, 220, 1), rgba(255, 255, 255, 1)); }

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: rgba(240, 242, 248, 1); }
::-webkit-scrollbar-thumb { background: rgba(25, 40, 80, 0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(25, 40, 80, 0.5); }

/* ========== DISCLAIMER CARD ========== */
.disclaimer-stat {
  background: rgba(255, 243, 205, 1);
  border: 2px solid rgba(218, 165, 32, 0.3);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 767px) {
  .text-responsive-2xl { font-size: 1.5rem; }
  .text-responsive-3xl { font-size: 1.875rem; }
  .text-responsive-4xl { font-size: 2.25rem; }
  .text-responsive-5xl { font-size: 2.25rem; }
  .mega-btn { padding: 20px 24px; min-height: 80px; }
  .mega-btn .mega-title { font-size: 1.5rem; }
  .grid-features { grid-template-columns: 1fr; }
  .py-responsive-16 { padding-top: 48px; padding-bottom: 48px; }
  .py-responsive-12 { padding-top: 32px; padding-bottom: 32px; }
}

@media (min-width: 768px) {
  .text-responsive-2xl { font-size: 1.5rem; }
  .text-responsive-3xl { font-size: 1.875rem; }
  .text-responsive-4xl { font-size: 2.25rem; }
  .text-responsive-5xl { font-size: 3rem; }
  .grid-features { grid-template-columns: repeat(2, 1fr); }
}

/* ---- LONG TEXT ---- */
.long-text p { margin-bottom: 16px; }
.long-text p:last-child { margin-bottom: 0; }

/* ---- LIST WITH ICONS ---- */
.icon-list { display: flex; flex-direction: column; gap: 8px; }
.icon-list li { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; }

/* ---- USEFUL LINKS ---- */
.useful-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: rgba(25, 40, 80, 1);
  transition: color 0.2s;
}
.useful-link:hover { color: rgba(218, 165, 32, 1); }

/* ---- PERSPECTIVE BOX ---- */
.perspective-item {
  text-align: center;
  padding: 16px;
  border-radius: 8px;
  background: rgba(245, 247, 252, 1);
}

/* ---- MIN HEIGHT ---- */
.min-h-screen { min-height: 100vh; display: flex; flex-direction: column; }
.flex-1 { flex: 1; }
