/* legalnoecasino.ru — Design System 2026 */

:root {
  /* Colors */
  --primary: #00e676;
  --primary-dark: #00c853;
  --blue: #4dabf7;
  --blue-dark: #1565c0;
  --bg-solid: #070a12;
  --text: rgba(255,255,255,0.92);
  --text-muted: rgba(255,255,255,0.62);
  --card-bg: rgba(255,255,255,0.04);
  --card-bg-hover: rgba(255,255,255,0.08);
  --card-border: rgba(255,255,255,0.08);
  --card-border-active: rgba(0, 230, 118, 0.25);
  --danger: #ff6b6b;
  --warning: #ffd93d;

  /* Radii */
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-2xl: 32px;

  /* Shadows */
  --shadow-1: 0 1px 3px rgba(0,0,0,0.3);
  --shadow-2: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-3: 0 8px 24px rgba(0,0,0,0.5);
  --shadow-4: 0 12px 40px rgba(0,0,0,0.55);
  --shadow-5: 0 20px 60px rgba(0,0,0,0.6);
  --shadow-6: 0 28px 80px rgba(0,0,0,0.65);

  /* Gradients */
  --grad-hero: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 230, 118, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 50% 35% at 85% 30%, rgba(77, 171, 247, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, #05060b 0%, #071a2a 40%, #06122e 100%);
  --grad-bg: linear-gradient(180deg, #05060b 0%, #071a2a 35%, #06122e 100%);
  --grad-button: linear-gradient(145deg, #00e676 0%, #00c853 100%);
  --grad-divider: linear-gradient(90deg, transparent, rgba(0,230,118,0.3), rgba(77,171,247,0.2), transparent);

  /* Typography */
  --font-system: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --text-xs: clamp(0.7rem, 1.5vw, 0.75rem);
  --text-sm: clamp(0.8rem, 1.6vw, 0.875rem);
  --text-base: clamp(0.95rem, 2vw, 1.0625rem);
  --text-lg: clamp(1.1rem, 2.2vw, 1.25rem);
  --text-xl: clamp(1.35rem, 2.8vw, 1.5rem);
  --text-2xl: clamp(1.6rem, 3.2vw, 1.875rem);
  --text-3xl: clamp(2rem, 4vw, 2.25rem);
  --line-tight: 1.35;
  --line-normal: 1.6;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  padding: 0.75rem 1.25rem;
  background: var(--primary);
  color: #030408;
  font-weight: 600;
  border-radius: var(--r-md);
  z-index: 1000;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; outline: 2px solid white; outline-offset: 2px; }
body {
  margin: 0;
  font-family: var(--font-system);
  font-size: var(--text-base);
  line-height: var(--line-normal);
  color: var(--text);
  background: var(--grad-bg);
  min-height: 100vh;
}

/* Noise overlay */
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
img { max-width: 100%; height: auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 6, 11, 0.88);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--card-border);
  box-shadow: 0 1px 0 rgba(255,255,255,0.03);
}
.site-header .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.site-header .logo {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
  transition: color 0.2s;
}
.site-header .logo:hover { color: var(--blue); }
.site-header nav {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.site-header nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: color 0.2s;
}
.site-header nav a:hover { color: var(--primary); text-decoration: none; }

/* Hero */
.hero {
  position: relative;
  padding: 5rem 1.5rem 6rem;
  text-align: center;
  overflow: hidden;
  background: var(--grad-hero);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 20%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 20%, transparent 70%);
  pointer-events: none;
  opacity: 0.6;
}
.hero-inner { position: relative; max-width: 720px; margin: 0 auto; z-index: 1; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 1.25rem;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--primary) 0%, #69f0ae 40%, var(--blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: var(--text-lg);
  color: var(--text-muted);
  margin: 0 0 2rem;
  line-height: 1.75;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.hero .btn-cta {
  padding: 1rem 2.5rem;
  font-size: var(--text-base);
}

/* CTA Button */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.25rem;
  font-size: var(--text-base);
  font-weight: 600;
  color: #030408;
  background: var(--grad-button);
  border: none;
  border-radius: var(--r-xl);
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(0, 230, 118, 0.35), var(--shadow-3);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 230, 118, 0.45), var(--shadow-4);
}
.btn-cta[data-ref] { text-decoration: none; }
.btn-cta:focus-visible { outline: 2px solid white; outline-offset: 2px; }

/* Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Quick nav cards (index) */
.quick-nav {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.875rem;
  margin: 2.5rem 0 3rem;
}
@media (min-width: 600px) {
  .quick-nav { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .quick-nav { grid-template-columns: repeat(6, 1fr); }
}
.quick-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.1rem 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--card-border);
  border-radius: var(--r-lg);
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--text-sm);
  transition: background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.quick-nav a:hover {
  background: var(--card-bg-hover);
  border-color: var(--card-border-active);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 230, 118, 0.12);
}
.quick-nav a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

/* DataTable */
.data-table-wrap {
  overflow-x: auto;
  margin: 1.75rem 0;
  border-radius: var(--r-xl);
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}
.data-table {
  width: 100%;
  min-width: 280px;
  border-collapse: collapse;
  font-size: var(--text-sm);
}
.data-table th {
  position: sticky;
  top: 0;
  background: linear-gradient(180deg, rgba(0, 230, 118, 0.08) 0%, rgba(0, 230, 118, 0.04) 100%);
  color: var(--primary);
  font-weight: 600;
  text-align: left;
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--card-border);
  font-size: var(--text-base);
}
.data-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--card-border);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr {
  transition: background 0.15s;
}
.data-table tbody tr:hover td { background: var(--card-bg-hover); }

/* Checklist */
.checklist {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
  font-size: var(--text-base);
}
.checklist li::before {
  content: "✓";
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,230,118,0.2);
  color: var(--primary);
  border-radius: var(--r-xs);
  font-size: 0.7rem;
  font-weight: bold;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 1.5rem;
  margin: 1.5rem 0;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0.25rem;
  bottom: 0.25rem;
  width: 2px;
  background: var(--grad-divider);
  border-radius: 2px;
}
.timeline-item {
  position: relative;
  padding-bottom: 1.25rem;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.5rem;
  top: 0.4rem;
  width: 10px;
  height: 10px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(0,230,118,0.3);
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item strong { display: block; margin-bottom: 0.25rem; color: var(--primary); }

/* Callout */
.callout {
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border-radius: var(--r-lg);
  border-left: 4px solid;
}
.callout-tip {
  border-color: var(--primary);
  background: linear-gradient(90deg, rgba(0, 230, 118, 0.08) 0%, rgba(0, 230, 118, 0.02) 100%);
}
.callout-risk {
  border-color: var(--warning);
  background: linear-gradient(90deg, rgba(255, 217, 61, 0.08) 0%, rgba(255, 217, 61, 0.02) 100%);
}
.callout-warning {
  border-color: var(--danger);
  background: linear-gradient(90deg, rgba(255, 107, 107, 0.08) 0%, rgba(255, 107, 107, 0.02) 100%);
}
.callout-tip .callout-title { color: var(--primary); }
.callout-risk .callout-title { color: var(--warning); }
.callout-warning .callout-title { color: var(--danger); }
.callout-title { font-weight: 600; margin-bottom: 0.4rem; }

/* Comparison cards */
.comparison-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem 0;
}
.comparison-card {
  padding: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--r-xl);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
  transition: border-color 0.2s, transform 0.15s, box-shadow 0.2s;
}
.comparison-card h4 {
  margin: 0 0 0.5rem;
  font-size: var(--text-base);
  color: var(--primary);
}
a.comparison-card {
  text-decoration: none;
  color: inherit;
  display: block;
}
a.comparison-card:hover {
  border-color: var(--card-border-active);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}

/* FAQ Accordion */
.faq-list { margin: 2rem 0; }
.faq-item {
  border: 1px solid var(--card-border);
  border-radius: var(--r-lg);
  margin-bottom: 0.6rem;
  overflow: hidden;
  background: var(--card-bg);
  transition: border-color 0.2s, background 0.2s;
}
.faq-item:hover { border-color: rgba(255,255,255,0.12); }
.faq-item[open] { border-color: var(--card-border-active); background: var(--card-bg-hover); }
.faq-item summary {
  padding: 1.1rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  transition: background 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--primary);
  font-size: 1.25rem;
  font-weight: 400;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:hover { background: rgba(255,255,255,0.03); }
.faq-item .faq-answer {
  padding: 0 1.5rem 1.25rem;
  color: var(--text-muted);
  font-size: var(--text-sm);
  line-height: 1.65;
}

/* Page layout with TOC sidebar */
.page-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (min-width: 900px) {
  .page-layout {
    grid-template-columns: 1fr 280px;
    grid-template-areas: "main toc";
    align-items: start;
  }
  .page-layout .main-content { grid-area: main; min-width: 0; }
  .page-layout .toc-sidebar { grid-area: toc; }
}

/* TOC Sidebar */
.toc-sidebar {
  order: -1;
}
@media (min-width: 900px) {
  .toc-sidebar { order: 0; position: sticky; top: 5.5rem; }
}
.toc {
  padding: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--r-xl);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}
.toc-title {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--primary);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc li { padding: 0.4rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.toc li:last-child { border-bottom: none; }
.toc a {
  color: var(--text-muted);
  font-size: var(--text-sm);
  text-decoration: none;
  transition: color 0.2s;
  display: block;
}
.toc a:hover { color: var(--primary); }
.toc a.is-active { color: var(--primary); font-weight: 600; }

/* Content sections */
.content-section { padding: 2.5rem 0; }
.content-section h2 {
  font-size: var(--text-2xl);
  font-weight: 600;
  margin: 2.5rem 0 1.25rem;
  padding-bottom: 0.5rem;
  color: var(--text);
  scroll-margin-top: 5.5rem;
  border-bottom: 1px solid var(--card-border);
}
.content-section h3 {
  font-size: var(--text-lg);
  font-weight: 500;
  margin: 1.75rem 0 0.75rem;
  color: rgba(255, 255, 255, 0.85);
}
.content-section p { margin: 0.85rem 0; line-height: 1.7; }

/* Divider */
.divider {
  height: 1px;
  background: var(--grad-divider);
  margin: 2rem 0;
  border: none;
}

/* Author block */
.author-block {
  margin-top: 2rem;
  padding: 1rem 1.25rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--r-md);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  margin-top: 4rem;
  padding: 2.5rem 1.5rem;
  border-top: 1px solid var(--card-border);
  text-align: center;
  font-size: var(--text-sm);
  color: var(--text-muted);
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.3) 100%);
}
.site-footer p { margin: 0; }
.site-footer a {
  color: var(--primary);
  transition: color 0.2s;
}
.site-footer a:hover { color: var(--blue); }

/* 404 */
.error-page {
  min-height: 65vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem;
}
.error-page h1 {
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  background: linear-gradient(135deg, var(--primary), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.error-page p { color: var(--text-muted); margin: 0.5rem 0; max-width: 400px; }
.error-page .btn-cta { margin-top: 1.5rem; }

/* ========== MOBILE ADAPTATION ========== */
@media (max-width: 480px) {
  .site-header .inner {
    padding: 0.6rem 1rem;
    gap: 0.5rem;
  }
  .site-header nav {
    gap: 1rem;
    font-size: var(--text-xs);
  }
  .site-header .btn-cta {
    padding: 0.75rem 1.25rem;
    font-size: var(--text-sm);
    width: 100%;
    min-height: 44px;
  }
  .hero {
    padding: 3rem 1rem 4rem;
  }
  .hero h1 { font-size: clamp(1.5rem, 6vw, 2rem); }
  .hero p { font-size: var(--text-base); margin-bottom: 1.5rem; }
  .container { padding: 0 1rem; }
  .quick-nav {
    margin: 1.5rem 0 2rem;
    gap: 0.6rem;
  }
  .quick-nav a {
    padding: 1rem 0.75rem;
    min-height: 44px;
    font-size: 0.8rem;
  }
  .page-layout { gap: 1.5rem; margin-bottom: 1.5rem; }
  .toc { padding: 1rem; }
  .toc li { padding: 0.35rem 0; }
  .content-section { padding: 1.5rem 0; }
  .content-section h2 {
    font-size: var(--text-xl);
    margin: 2rem 0 1rem;
    scroll-margin-top: 4.5rem;
  }
  .content-section h3 { font-size: var(--text-base); margin: 1.25rem 0 0.5rem; }
  .data-table-wrap {
    margin: 1.25rem -1rem;
    border-radius: 0;
  }
  .data-table th, .data-table td {
    padding: 0.75rem 1rem;
    font-size: var(--text-xs);
  }
  .callout { padding: 1rem; margin: 1.25rem 0; }
  .faq-item summary {
    padding: 1rem 1.25rem;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .comparison-cards {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin: 1.5rem 0;
  }
  .comparison-card { padding: 1.25rem; min-height: 44px; }
  .author-block { padding: 0.75rem 1rem; margin-top: 1.5rem; }
  .site-footer { padding: 1.5rem 1rem; margin-top: 2.5rem; }
}

@media (max-width: 600px) {
  .hero { padding: 3.5rem 1.25rem 4.5rem; }
  .btn-cta { min-height: 44px; padding: 0.85rem 1.5rem; }
  .site-header nav a { min-height: 44px; display: flex; align-items: center; }
}

