/* =============================================
   AVIA MASTERS 2 — Clean White Design
   Domain: aviamasters3.in
   ============================================= */

:root {
  --gold: #FFD82C;
  --red: #C20B11;
  --dark-blue: #1a3a6b;
  --blue: #2356b6;
  --btn-red: #FF2A28;
  --btn-blue: #3EAAFF;
  --white: #ffffff;
  --light-bg: #f5f7fa;
  --border: #e2e8f0;
  --text: #1a2340;
  --text-muted: #64748b;
  --header-bg: linear-gradient(135deg, #1a3a6b 0%, #2356b6 100%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', 'Inter', 'Roboto', Arial, sans-serif;
  background: #fff;
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* ===== HEADER ===== */
header {
  background: var(--header-bg);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.18);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
}

.logo-text { display: flex; flex-direction: column; }
.logo-title {
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}
.logo-sub {
  font-size: 11px;
  color: rgba(255,255,255,0.65);
  line-height: 1.2;
}

nav { flex: 1; }
nav ul {
  display: flex;
  list-style: none;
  gap: 4px;
}
nav ul li a {
  display: block;
  padding: 8px 14px;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 500;
  border-radius: 6px;
  transition: all 0.2s;
}
nav ul li a:hover,
nav ul li a.active {
  background: rgba(255,255,255,0.15);
  color: #fff;
}

.header-btns { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }

.btn-play {
  background: var(--btn-red);
  color: #fff;
  padding: 9px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-play:hover { background: #e61f1d; transform: translateY(-1px); }

.btn-login {
  background: var(--btn-blue);
  color: #fff;
  padding: 9px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-login:hover { background: #2a9aef; transform: translateY(-1px); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== HERO (синий) ===== */
.hero {
  background: var(--header-bg);
  padding: 64px 20px;
  color: #fff;
}
.hero-content {
  max-width: 860px;
  margin: 0 auto;
}
.hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 16px;
  color: #fff;
}
.hero h1 span { display: block; color: var(--gold); font-size: 0.7em; font-weight: 700; }
.hero-desc {
  font-size: 17px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 20px;
  max-width: 680px;
  line-height: 1.8;
}
.hero-promo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,216,44,0.15);
  border: 1px solid rgba(255,216,44,0.4);
  border-radius: 8px;
  padding: 10px 18px;
  font-size: 15px;
  color: var(--gold);
  margin-bottom: 28px;
}
.hero-promo strong { color: #fff; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }

.btn-gold {
  background: var(--gold);
  color: #1a2340;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s;
}
.btn-gold:hover { background: #f5cc00; transform: translateY(-2px); box-shadow: 0 4px 16px rgba(255,216,44,0.4); }

.hero-stats {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.hero-stat-num {
  font-size: 28px;
  font-weight: 900;
  color: var(--gold);
  line-height: 1;
}
.hero-stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.65);
  margin-top: 4px;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  background: var(--light-bg);
  border-bottom: 1px solid var(--border);
  padding: 10px 20px;
  font-size: 13px;
  color: var(--text-muted);
}
.breadcrumb-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
}
.breadcrumb a { color: var(--blue); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--text-muted); }

/* ===== TOC (Table of Contents) ===== */
.toc-wrap {
  background: var(--light-bg);
  padding: 40px 20px;
  border-bottom: 1px solid var(--border);
}
.toc-box {
  max-width: 1200px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 32px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.toc-box h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.toc-list li a {
  display: block;
  padding: 9px 0;
  color: var(--blue);
  font-size: 15px;
  border-bottom: 1px solid #f0f4f8;
  transition: color 0.2s;
}
.toc-list li a:hover { color: var(--dark-blue); text-decoration: underline; }
.toc-list li:last-child a { border-bottom: none; }

/* ===== CONTAINER ===== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== SECTIONS (белый фон) ===== */
.section-white {
  background: #fff;
  padding: 64px 20px;
}
.section-gray {
  background: var(--light-bg);
  padding: 64px 20px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
/* Оставляем синие секции только для акцентов */
.section-blue {
  background: var(--header-bg);
  padding: 64px 20px;
  color: #fff;
}
.section-blue h2,
.section-blue h3 { color: #fff; }
.section-blue p { color: rgba(255,255,255,0.85); }
.section-blue .section-tag { background: rgba(255,216,44,0.15); color: var(--gold); border-color: rgba(255,216,44,0.3); }

/* ===== SECTION HEADER ===== */
.section-header {
  margin-bottom: 44px;
}
.section-tag {
  display: inline-block;
  background: rgba(35,86,182,0.08);
  color: var(--blue);
  border: 1px solid rgba(35,86,182,0.2);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}
.section-header h2 {
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 12px;
}
.section-header h2 span { color: var(--blue); }
.section-sub {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 680px;
  line-height: 1.7;
}
.section-blue .section-header h2 { color: #fff; }
.section-blue .section-header h2 span { color: var(--gold); }
.section-blue .section-sub { color: rgba(255,255,255,0.75); }

/* ===== GRIDS ===== */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }

/* ===== CARDS ===== */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  transition: all 0.25s;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.card:hover {
  border-color: var(--btn-blue);
  box-shadow: 0 6px 24px rgba(35,86,182,0.1);
  transform: translateY(-3px);
}
.card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
}
.card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}
.card-icon {
  font-size: 32px;
  margin-bottom: 16px;
}
/* убираем картинки с карточек */
.card-img { display: none; }

/* ===== STEPS ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 24px;
}
.step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 20px 24px;
  text-align: center;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s;
}
.step:hover { box-shadow: 0 4px 16px rgba(35,86,182,0.1); }
.step-num {
  width: 48px;
  height: 48px;
  background: var(--header-bg);
  color: #fff;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.step h3 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ===== PROMO BOX ===== */
.promo-box {
  background: var(--light-bg);
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 28px 32px;
  text-align: center;
  margin: 40px 0 0;
}
.promo-code {
  font-size: 42px;
  font-weight: 900;
  color: var(--text);
  letter-spacing: 4px;
  margin: 12px 0;
  font-family: monospace;
}
.promo-box p { color: var(--text-muted); font-size: 15px; margin-bottom: 20px; }

/* ===== NOTICE BOX ===== */
.notice-box {
  background: rgba(255,216,44,0.08);
  border: 1px solid rgba(255,216,44,0.35);
  border-radius: 10px;
  padding: 18px 22px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
}
.notice-box strong { color: var(--dark-blue); }

/* ===== TABLE ===== */
.table-wrap {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
thead tr { background: var(--header-bg); }
thead th {
  padding: 14px 20px;
  text-align: left;
  font-weight: 700;
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
}
tbody tr { border-bottom: 1px solid var(--border); }
tbody tr:last-child { border-bottom: none; }
tbody tr:nth-child(even) { background: var(--light-bg); }
tbody tr:hover { background: rgba(35,86,182,0.04); }
tbody td {
  padding: 13px 20px;
  color: var(--text);
  font-size: 14px;
}
tbody td:first-child { font-weight: 600; color: var(--text-muted); }
.highlight-cell { color: var(--blue) !important; font-weight: 700 !important; }

/* ===== FEATURES LIST ===== */
.feat-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 20px 0;
}
.feat-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 18px;
  background: var(--light-bg);
  border-radius: 10px;
  border: 1px solid var(--border);
}
.feat-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}
.feat-title {
  font-weight: 700;
  color: var(--text);
  font-size: 15px;
  display: block;
  margin-bottom: 3px;
}
.feat-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ===== CRYPTO GRID ===== */
.crypto-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
  margin-top: 20px;
}
.crypto-item {
  background: var(--light-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 10px;
  text-align: center;
  transition: border-color 0.2s;
}
.crypto-item:hover { border-color: var(--btn-blue); }
.crypto-icon {
  font-size: 24px;
  margin-bottom: 6px;
  color: var(--blue);
}
.crypto-name { font-size: 13px; font-weight: 600; color: var(--text); }

/* ===== STEPS NUMBERED (registration) ===== */
.reg-steps { display: flex; flex-direction: column; gap: 16px; margin: 20px 0; }
.reg-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.reg-num {
  background: var(--header-bg);
  color: #fff;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 15px;
  flex-shrink: 0;
}
.reg-title { font-weight: 700; color: var(--text); font-size: 15px; display: block; margin-bottom: 3px; }
.reg-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ===== FAQ ===== */
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  padding: 18px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  user-select: none;
  transition: color 0.2s;
}
.faq-question:hover { color: var(--blue); }
.faq-icon {
  font-size: 22px;
  font-weight: 400;
  color: var(--blue);
  flex-shrink: 0;
  line-height: 1;
  transition: transform 0.25s;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-answer-inner {
  padding: 0 0 20px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.8;
}
.faq-item.open .faq-answer { max-height: 400px; }

/* ===== INTERNAL LINKS GRID ===== */
.nav-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.nav-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  display: block;
  text-decoration: none;
  transition: all 0.25s;
}
.nav-card:hover {
  border-color: var(--btn-blue);
  box-shadow: 0 4px 20px rgba(35,86,182,0.1);
  transform: translateY(-3px);
}
.nav-card-icon { font-size: 30px; margin-bottom: 10px; }
.nav-card-title { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.nav-card-desc { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* ===== CTA SECTION ===== */
.cta-section {
  background: var(--header-bg);
  padding: 64px 20px;
  text-align: center;
  color: #fff;
}
.cta-section h2 {
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 900;
  margin-bottom: 16px;
  color: #fff;
}
.cta-section p {
  font-size: 17px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ===== FOOTER ===== */
footer {
  background: #0f1e3a;
  color: rgba(255,255,255,0.8);
  padding: 48px 20px 24px;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto 32px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-logo { width: 120px; margin-bottom: 14px; }
.footer-desc { font-size: 14px; line-height: 1.7; margin-bottom: 12px; color: rgba(255,255,255,0.55); }
.footer-domain { font-size: 13px; color: var(--gold); font-weight: 600; }
.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: #fff; }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.4); margin-bottom: 8px; }
.footer-disclaimer { font-size: 12px; color: rgba(255,255,255,0.3); line-height: 1.6; }

/* ===== GAME IMAGES ===== */
.game-img {
  width: 100%;
  border-radius: 12px;
  display: block;
  object-fit: cover;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.game-img:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 32px rgba(0,0,0,0.18);
}
.game-img-wide {
  width: 100%;
  border-radius: 14px;
  display: block;
  object-fit: cover;
  box-shadow: 0 6px 28px rgba(0,0,0,0.15);
}
.img-caption {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 8px;
  font-style: italic;
}
.img-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 28px 0;
}
.img-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0;
}
.img-item {
  display: flex;
  flex-direction: column;
}
.img-item .img-caption {
  margin-top: 8px;
}

@media (max-width: 768px) {
  .img-grid-3 { grid-template-columns: 1fr; }
  .img-grid-2 { grid-template-columns: 1fr; }
}

/* ===== DEMO IFRAME ===== */
.demo-frame-wrap {
  background: var(--light-bg);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  margin: 32px 0;
}
.demo-frame-wrap iframe {
  width: 100%;
  height: 580px;
  border: none;
  display: block;
}
.demo-note {
  background: rgba(35,86,182,0.06);
  border: 1px solid rgba(35,86,182,0.15);
  border-radius: 8px;
  padding: 14px 20px;
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 16px;
  line-height: 1.6;
}

/* ===== INLINE BADGE ===== */
.badge-blue {
  display: inline-block;
  background: rgba(35,86,182,0.1);
  color: var(--blue);
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}
.badge-gold {
  display: inline-block;
  background: rgba(255,216,44,0.12);
  color: #b8860b;
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 13px;
  font-weight: 600;
}

/* ===== TEXT HELPERS ===== */
.text-blue { color: var(--blue); }
.text-gold { color: #b8860b; }
.text-muted { color: var(--text-muted); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.flex-center { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ===== ARTICLE CONTENT (SEO text) ===== */
.article-content {
  max-width: 860px;
}
.article-content h2 {
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
  margin: 36px 0 12px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border);
}
.article-content h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  margin: 28px 0 10px;
}
.article-content p {
  font-size: 16px;
  color: #374151;
  line-height: 1.85;
  margin-bottom: 16px;
}
.article-content ul,
.article-content ol {
  padding-left: 22px;
  margin-bottom: 16px;
}
.article-content li {
  font-size: 15px;
  color: #374151;
  line-height: 1.7;
  margin-bottom: 6px;
}
.article-content strong { color: var(--text); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .grid-3, .steps { grid-template-columns: repeat(2,1fr); }
  .grid-4, .nav-cards { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .header-inner { height: 58px; gap: 12px; }
  nav { display: none; position: absolute; top: 58px; left: 0; right: 0; background: #1a3a6b; padding: 12px 20px; }
  nav.open { display: block; }
  nav ul { flex-direction: column; gap: 2px; }
  nav ul li a { padding: 10px 12px; }
  .header-btns { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 40px 16px; }
  .hero h1 { font-size: 26px; }
  .hero-stats { gap: 20px; }
  .grid-2 { grid-template-columns: 1fr; gap: 28px; }
  .grid-3, .steps { grid-template-columns: 1fr; }
  .grid-4, .nav-cards { grid-template-columns: repeat(2,1fr); }
  .section-white, .section-gray, .section-blue { padding: 44px 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .toc-box { padding: 20px; }
  .demo-frame-wrap iframe { height: 400px; }
}

@media (max-width: 480px) {
  .grid-4, .nav-cards { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
  .promo-code { font-size: 28px; letter-spacing: 2px; }
  .hero-stats { flex-direction: column; gap: 12px; }
}
