/* kod-magnitoly.ru — Dark Neon / Glassmorphism Theme */
/* Space Grotesk + glassmorphism cards + gradient buttons + dot pattern */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg-dark: #1C1C1C;
  --bg-darker: #141414;
  --bg-card: rgba(255,255,255,0.06);
  --bg-card-hover: rgba(255,255,255,0.10);
  --accent: #00D4AA;
  --accent-2: #00B4D8;
  --accent-glow: rgba(0,212,170,0.25);
  --text: #E8E8E8;
  --text-dim: #9A9A9A;
  --text-bright: #FFFFFF;
  --radius: 16px;
  --radius-sm: 10px;
  --glass-border: rgba(255,255,255,0.08);
  --max-w: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-2); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ===== DOT PATTERN BG ===== */
.dot-pattern {
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ===== DARK NAVBAR ===== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(20,20,20,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  padding: 0 24px;
  height: 64px;
  display: flex; align-items: center; justify-content: center;
}
.nav-inner {
  max-width: var(--max-w); width: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  font-size: 1.25rem; font-weight: 700; color: var(--text-bright);
  display: flex; align-items: center; gap: 8px;
}
.logo-icon {
  width: 32px; height: 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; color: #000; font-weight: 700;
}
.nav-links { display: flex; gap: 24px; list-style: none; }
.nav-links a {
  color: var(--text-dim); font-size: .9rem; font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--accent); }
.burger { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.burger span {
  display: block; width: 22px; height: 2px; background: var(--text);
  margin: 5px 0; transition: .3s;
}
.nav-links.open {
  display: flex; flex-direction: column;
  position: absolute; top: 64px; left: 0; right: 0;
  background: rgba(20,20,20,0.98); padding: 24px;
  border-bottom: 1px solid var(--glass-border);
  gap: 16px;
}

/* ===== HERO — FULLSCREEN OVERLAY ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(0,212,170,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 80%, rgba(0,180,216,0.08) 0%, transparent 60%),
    var(--bg-darker);
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 680px; }
.hero-badge {
  display: inline-block; padding: 6px 16px;
  background: rgba(0,212,170,0.12); border: 1px solid rgba(0,212,170,0.3);
  border-radius: 50px; font-size: .8rem; color: var(--accent);
  font-weight: 600; letter-spacing: .5px; margin-bottom: 20px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700; color: var(--text-bright);
  line-height: 1.2; margin-bottom: 16px;
}
.hero h1 span { color: var(--accent); }
.hero-sub {
  font-size: 1.1rem; color: var(--text-dim);
  margin-bottom: 32px; line-height: 1.6;
}

/* Price in hero */
.hero-price {
  display: inline-flex; align-items: baseline; gap: 8px;
  margin-bottom: 28px;
}
.hero-price .amount {
  font-size: 2.4rem; font-weight: 700; color: var(--accent);
}
.hero-price .label {
  font-size: .95rem; color: var(--text-dim);
}

/* ===== SERIAL NUMBER FORM (unique — dial pad style) ===== */
.serial-form-wrap {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 460px; margin: 0 auto;
}
.serial-form-title {
  font-size: .75rem; text-transform: uppercase; letter-spacing: 2px;
  color: var(--text-dim); margin-bottom: 14px; font-weight: 600;
}
.serial-form {
  display: flex; flex-direction: column; gap: 12px;
}
.serial-input-group {
  position: relative;
}
.serial-input-group input {
  width: 100%; padding: 14px 16px 14px 44px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-sm);
  color: var(--text-bright); font-size: 1.1rem;
  font-family: 'Space Grotesk', monospace;
  letter-spacing: 2px; text-transform: uppercase;
  outline: none; transition: border-color .2s;
}
.serial-input-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.serial-input-group input::placeholder {
  color: rgba(255,255,255,0.2); letter-spacing: 1px;
  text-transform: none;
}
.serial-input-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--accent); font-size: 1.1rem;
}
.serial-hint {
  font-size: .78rem; color: var(--text-dim); text-align: left;
}

/* ===== GRADIENT BUTTONS ===== */
.btn-gradient {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #000; font-weight: 700; font-size: 1rem;
  border: none; border-radius: var(--radius-sm);
  cursor: pointer; transition: transform .2s, box-shadow .2s;
  text-decoration: none;
  font-family: 'Space Grotesk', sans-serif;
}
.btn-gradient:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
  color: #000;
}
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--text); font-weight: 600; font-size: .95rem;
  border-radius: var(--radius-sm);
  cursor: pointer; transition: .2s;
  text-decoration: none;
}
.btn-ghost:hover {
  border-color: var(--accent); color: var(--accent);
}
.btn-gradient.btn-full { width: 100%; }

/* ===== SECTION LAYOUT ===== */
section { padding: 80px 0; }
.section-header {
  text-align: center; margin-bottom: 48px;
}
.section-header h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700; color: var(--text-bright);
  margin-bottom: 12px;
}
.section-header p {
  color: var(--text-dim); font-size: 1.05rem; max-width: 560px; margin: 0 auto;
}

/* ===== GLASSMORPHISM CARDS ===== */
.cards-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 28px;
  transition: background .3s, border-color .3s, box-shadow .3s;
  position: relative; overflow: hidden;
}
.glass-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0; transition: opacity .3s;
}
.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0,212,170,0.2);
  box-shadow: 0 8px 40px rgba(0,212,170,0.08);
}
.glass-card:hover::before { opacity: 1; }
.card-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(0,212,170,0.15), rgba(0,180,216,0.15));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 16px;
}
.glass-card h3 {
  font-size: 1.15rem; font-weight: 600; color: var(--text-bright);
  margin-bottom: 8px;
}
.glass-card p {
  color: var(--text-dim); font-size: .92rem; line-height: 1.6;
}

/* ===== BRAND CARDS ===== */
.brands-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.brand-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  text-decoration: none;
  transition: .3s;
}
.brand-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateX(4px);
}
.brand-icon {
  font-size: 1.6rem; width: 40px; text-align: center;
}
.brand-card span {
  color: var(--text-bright); font-weight: 600; font-size: .95rem;
}
.brand-card .arrow {
  margin-left: auto; color: var(--text-dim); transition: color .2s;
}
.brand-card:hover .arrow { color: var(--accent); }

/* ===== STATS ROW ===== */
.stats-row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px; padding: 48px 0;
}
.stat-item { text-align: center; }
.stat-num {
  font-size: 2.2rem; font-weight: 700; color: var(--accent);
  margin-bottom: 4px;
}
.stat-label { color: var(--text-dim); font-size: .88rem; }

/* ===== STEPS ===== */
.steps-list {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px; counter-reset: step;
}
.step-item {
  counter-increment: step;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  transition: .3s;
}
.step-item:hover {
  border-color: rgba(0,212,170,0.2);
}
.step-item::before {
  content: counter(step);
  position: absolute; top: -14px; left: 24px;
  width: 28px; height: 28px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700; color: #000;
}
.step-item h3 {
  font-size: 1.05rem; font-weight: 600; color: var(--text-bright);
  margin-bottom: 6px; margin-top: 4px;
}
.step-item p { color: var(--text-dim); font-size: .9rem; }

/* ===== TABBED FAQ ===== */
.faq-tabs {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-bottom: 24px; justify-content: center;
}
.faq-tab {
  padding: 8px 20px;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: 50px;
  color: var(--text-dim); font-size: .88rem; font-weight: 600;
  cursor: pointer; transition: .2s;
  font-family: 'Space Grotesk', sans-serif;
}
.faq-tab:hover, .faq-tab.active {
  background: rgba(0,212,170,0.12);
  border-color: rgba(0,212,170,0.3);
  color: var(--accent);
}
.faq-panels { max-width: 760px; margin: 0 auto; }
.faq-panel { display: none; }
.faq-panel.active { display: block; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px; overflow: hidden;
}
.faq-q {
  padding: 16px 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between;
  color: var(--text-bright); font-weight: 600; font-size: .95rem;
  transition: color .2s;
}
.faq-q:hover { color: var(--accent); }
.faq-q .icon { transition: transform .3s; color: var(--text-dim); }
.faq-item.open .faq-q .icon { transform: rotate(45deg); color: var(--accent); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease, padding .3s;
}
.faq-item.open .faq-a {
  max-height: 500px; padding: 0 20px 16px;
}
.faq-a p { color: var(--text-dim); font-size: .9rem; line-height: 1.6; }

/* ===== TWO-LEVEL FOOTER ===== */
.footer { background: var(--bg-darker); border-top: 1px solid var(--glass-border); }
.footer-upper {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 40px; padding: 48px 0;
}
.footer-about p { color: var(--text-dim); font-size: .9rem; margin-top: 12px; line-height: 1.6; }
.footer-col h4 {
  color: var(--text-bright); font-size: .9rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--text-dim); font-size: .88rem; transition: color .2s; }
.footer-col a:hover { color: var(--accent); }
.footer-lower {
  border-top: 1px solid var(--glass-border);
  padding: 20px 0;
  display: flex; align-items: center; justify-content: space-between;
  font-size: .8rem; color: var(--text-dim);
}

/* ===== PLATFORM CARDS (zakazat) ===== */
.platform-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.platform-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 32px 28px;
  text-align: center;
  transition: .3s;
  text-decoration: none; display: block;
}
.platform-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 40px var(--accent-glow);
  transform: translateY(-4px);
}
.platform-card .p-icon {
  font-size: 2.4rem; margin-bottom: 16px;
}
.platform-card h3 {
  color: var(--text-bright); font-size: 1.15rem; font-weight: 700;
  margin-bottom: 8px;
}
.platform-card p { color: var(--text-dim); font-size: .9rem; margin-bottom: 20px; }
.platform-card .p-btn {
  display: inline-block; padding: 10px 24px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #000; font-weight: 700; font-size: .9rem;
  border-radius: var(--radius-sm); transition: .2s;
}
.platform-card:hover .p-btn {
  box-shadow: 0 4px 20px var(--accent-glow);
}

/* ===== CONTENT SECTIONS (inner pages) ===== */
.page-hero {
  padding: 120px 24px 48px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(0,212,170,0.08) 0%, transparent 60%),
    var(--bg-darker);
}
.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700; color: var(--text-bright); margin-bottom: 12px;
}
.page-hero p { color: var(--text-dim); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

.breadcrumb {
  padding: 16px 0; font-size: .82rem;
}
.breadcrumb a { color: var(--text-dim); }
.breadcrumb span { color: var(--text-dim); margin: 0 6px; }
.breadcrumb .current { color: var(--accent); }

.content-section { padding: 48px 0; }
.content-section h2 {
  font-size: 1.5rem; font-weight: 700; color: var(--text-bright);
  margin-bottom: 16px;
}
.content-section h3 {
  font-size: 1.15rem; font-weight: 600; color: var(--text-bright);
  margin-bottom: 10px; margin-top: 24px;
}
.content-section p {
  color: var(--text-dim); font-size: .95rem; line-height: 1.7;
  margin-bottom: 14px;
}
.content-section ul {
  margin: 12px 0 16px 20px; color: var(--text-dim);
}
.content-section li { margin-bottom: 6px; font-size: .93rem; }
.content-section .img-placeholder {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 40px; text-align: center; color: var(--text-dim);
  margin: 20px 0;
}

/* ===== EXAMPLE CARDS ===== */
.example-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.example-card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.example-card .ex-img {
  height: 200px; background: var(--bg-darker);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); font-size: .9rem;
}
.example-card .ex-img img {
  width: 100%; height: 100%; object-fit: cover;
}
.example-card .ex-body { padding: 20px; }
.example-card h3 { color: var(--text-bright); font-size: 1.05rem; margin-bottom: 8px; }
.example-card p { color: var(--text-dim); font-size: .88rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .hero { min-height: auto; padding: 100px 20px 60px; }
  .hero h1 { font-size: 1.8rem; }
  .footer-upper { grid-template-columns: 1fr; gap: 24px; }
  .footer-lower { flex-direction: column; gap: 8px; text-align: center; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .faq-tabs { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; }
  .brands-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .cards-grid, .steps-list, .platform-grid, .example-grid {
    grid-template-columns: 1fr;
  }
  .serial-form-wrap { padding: 20px; }
}
