/* ==========================================================================
   NovaDroid — Shared Page Styles
   Combined CSS from all SEO landing pages
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background-color: #0A1628;
  color: #E2E8F0;
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: #00D4FF;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* -- HEADER -- */
.site-header {
  background-color: #060E1A;
  border-bottom: 1px solid #1A2E4A;
  padding: 16px 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.4rem;
  font-weight: 700;
  color: #00D4FF;
  letter-spacing: -0.5px;
}

.logo span {
  color: #7C3AED;
}

.header-cta {
  background: linear-gradient(135deg, #7C3AED, #00D4FF);
  color: #fff;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: opacity 0.2s;
}

.header-cta:hover {
  opacity: 0.9;
  text-decoration: none;
}

/* -- HERO -- */
.hero {
  padding: 80px 0 64px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, #0D1F3C 0%, #0A1628 60%);
  border-bottom: 1px solid #1A2E4A;
}

.hero-badge {
  display: inline-block;
  background-color: #112240;
  border: 1px solid #00D4FF;
  color: #00D4FF;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(1.8rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.2;
  color: #F0F6FF;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero h1 .accent-cyan {
  color: #00D4FF;
}

.hero h1 .accent-purple {
  color: #7C3AED;
}

.hero-sub {
  font-size: 1.1rem;
  color: #94A3B8;
  max-width: 600px;
  margin: 0 auto 36px;
}

.hero-sub strong {
  color: #CBD5E1;
}

.cta-group {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, #7C3AED 0%, #00D4FF 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 8px;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.5);
  text-decoration: none;
  color: #fff;
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  border: 1px solid #2D4A6A;
  color: #94A3B8;
  font-size: 1rem;
  font-weight: 600;
  padding: 14px 32px;
  border-radius: 8px;
  transition: border-color 0.15s, color 0.15s;
}

.btn-secondary:hover {
  border-color: #00D4FF;
  color: #00D4FF;
  text-decoration: none;
}

/* -- SECTIONS -- */
section {
  padding: 64px 0;
  border-bottom: 1px solid #1A2E4A;
}

section:last-of-type {
  border-bottom: none;
}

.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7C3AED;
  margin-bottom: 12px;
}

h2 {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 700;
  color: #F0F6FF;
  margin-bottom: 16px;
  line-height: 1.3;
}

h2 .accent-cyan {
  color: #00D4FF;
}

h2 .accent-purple {
  color: #7C3AED;
}

/* -- ABOUT (crmp-na-pk, crmp-igry, crmp-ofitsialnye-sajty, crmp-proekty) -- */
.about p {
  color: #94A3B8;
  font-size: 1.05rem;
  margin-bottom: 12px;
  max-width: 720px;
}

.about p:last-child {
  margin-bottom: 0;
}

/* -- ABOUT GAME (games/black-russia-na-pk and similar game pages) -- */
.about-game p {
  color: #94A3B8;
  font-size: 1.05rem;
  margin-bottom: 12px;
  max-width: 720px;
}

.about-game p:last-child {
  margin-bottom: 0;
}

/* -- STEPS -- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 36px;
}

.step-card {
  background-color: #0D1F3C;
  border: 1px solid #1A3A5C;
  border-radius: 12px;
  padding: 28px 24px;
  position: relative;
  transition: border-color 0.2s;
}

.step-card:hover {
  border-color: #00D4FF;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7C3AED, #00D4FF);
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #E2E8F0;
  margin-bottom: 8px;
}

.step-card p {
  font-size: 0.9rem;
  color: #64748B;
  line-height: 1.5;
}

/* -- BENEFITS (crmp-na-pk, game pages) -- */
.benefits-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background-color: #0D1F3C;
  border: 1px solid #1A3A5C;
  border-radius: 10px;
  padding: 20px;
}

.benefit-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, #7C3AED22, #00D4FF22);
  border: 1px solid #00D4FF44;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.benefit-text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #E2E8F0;
  margin-bottom: 4px;
}

.benefit-text span {
  font-size: 0.85rem;
  color: #64748B;
}

/* -- PROJECTS LIST (crmp-na-pk) -- */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 32px;
}

.project-card {
  background-color: #0D1F3C;
  border: 1px solid #1A3A5C;
  border-radius: 10px;
  padding: 20px 24px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: #E2E8F0;
  transition: border-color 0.2s, color 0.2s;
}

.project-card:hover {
  border-color: #00D4FF;
  color: #00D4FF;
}

.project-card.more {
  color: #64748B;
  font-weight: 500;
  font-style: italic;
}

/* -- MEDIA PLACEHOLDER (game pages) -- */
.media-placeholder {
  background-color: #0D1F3C;
  border: 2px dashed #1A3A5C;
  border-radius: 12px;
  height: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
  color: #2D4A6A;
}

.media-placeholder-icon {
  font-size: 3rem;
  opacity: 0.4;
}

.media-placeholder p {
  font-size: 0.9rem;
  color: #2D4A6A;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
}

/* -- FAQ -- */
.faq-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background-color: #0D1F3C;
  border: 1px solid #1A3A5C;
  border-radius: 10px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 24px;
  font-size: 0.97rem;
  font-weight: 600;
  color: #E2E8F0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: color 0.2s;
}

.faq-question:hover {
  color: #00D4FF;
}

.faq-question .faq-arrow {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: #7C3AED;
  transition: transform 0.25s;
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 24px 20px;
  font-size: 0.9rem;
  color: #64748B;
  line-height: 1.7;
  border-top: 1px solid #1A2E4A;
  padding-top: 16px;
}

.faq-item.open .faq-answer {
  display: block;
}

/* -- CTA SECTION -- */
.cta-section {
  text-align: center;
  background: radial-gradient(ellipse at 50% 50%, #0D1F3C 0%, #0A1628 80%);
}

.cta-section p {
  color: #64748B;
  font-size: 1rem;
  margin-bottom: 32px;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

/* -- DISCLAIMER -- */
.disclaimer {
  background-color: #060E1A;
  padding: 24px 0;
  border-top: 1px solid #1A2E4A;
}

.disclaimer p {
  font-size: 0.78rem;
  color: #2D4A6A;
  text-align: center;
  line-height: 1.6;
}


/* ==========================================================================
   GAMES GRID — crmp-igry variant
   Uses .game-card-icon / .game-card-name / .game-card-desc children
   ========================================================================== */

.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.game-card {
  background-color: #0D1F3C;
  border: 1px solid #1A3A5C;
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  transition: border-color 0.2s, transform 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.game-card:hover {
  border-color: #00D4FF;
  transform: translateY(-2px);
  text-decoration: none;
}

.game-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7C3AED22, #00D4FF22);
  border: 1px solid #00D4FF44;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.game-card-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #E2E8F0;
}

.game-card:hover .game-card-name {
  color: #00D4FF;
}

.game-card-desc {
  font-size: 0.8rem;
  color: #64748B;
  line-height: 1.4;
}


/* ==========================================================================
   GAMES GRID — skachat-crmp variant
   Uses .game-card .game-icon / .game-card .game-name nested selectors
   Simpler card style (border-radius: 10px, padding: 20px 16px)
   ========================================================================== */

.game-card .game-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.game-card .game-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #E2E8F0;
}


/* ==========================================================================
   REQUIREMENTS TABLE — skachat-crmp
   ========================================================================== */

.req-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 28px;
}

.req-table th,
.req-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #1A2E4A;
  font-size: 0.9rem;
}

.req-table th {
  color: #00D4FF;
  font-weight: 700;
  background-color: #0D1F3C;
}

.req-table td {
  color: #94A3B8;
}

.req-table tr:last-child td {
  border-bottom: none;
}


/* ==========================================================================
   RELATED LINKS — skachat-crmp
   ========================================================================== */

.related-links {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.related-link {
  display: block;
  background-color: #0D1F3C;
  border: 1px solid #1A3A5C;
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 0.9rem;
  color: #94A3B8;
  transition: border-color 0.2s, color 0.2s;
}

.related-link:hover {
  border-color: #00D4FF;
  color: #00D4FF;
  text-decoration: none;
}


/* ==========================================================================
   SITES GRID — crmp-ofitsialnye-sajty
   ========================================================================== */

.sites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.site-card {
  background-color: #0D1F3C;
  border: 1px solid #1A3A5C;
  border-radius: 12px;
  padding: 24px 20px;
  transition: border-color 0.2s;
}

.site-card:hover {
  border-color: #00D4FF;
}

.site-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.site-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #7C3AED22, #00D4FF22);
  border: 1px solid #00D4FF44;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.site-card-name {
  font-size: 1rem;
  font-weight: 700;
  color: #E2E8F0;
}

.site-card-url {
  display: inline-block;
  font-size: 0.85rem;
  color: #00D4FF;
  margin-bottom: 8px;
  word-break: break-all;
}

.site-card-url:hover {
  text-decoration: underline;
}

.site-card-desc {
  font-size: 0.83rem;
  color: #64748B;
  line-height: 1.5;
}

.site-card-badge {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 12px;
  background-color: #112240;
  border: 1px solid #1A3A5C;
  color: #64748B;
}

.site-card-badge.official {
  border-color: #00D4FF44;
  color: #00D4FF;
}

/* -- NOTICE BOX (crmp-ofitsialnye-sajty) -- */
.notice-box {
  background-color: #0D1F3C;
  border: 1px solid #2D4A6A;
  border-left: 3px solid #7C3AED;
  border-radius: 8px;
  padding: 16px 20px;
  margin-top: 24px;
  font-size: 0.88rem;
  color: #64748B;
  line-height: 1.6;
}

.notice-box strong {
  color: #CBD5E1;
}


/* ==========================================================================
   RANKING LIST — crmp-proekty
   ========================================================================== */

.ranking-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.rank-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background-color: #0D1F3C;
  border: 1px solid #1A3A5C;
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.2s, transform 0.15s;
  text-decoration: none;
  color: inherit;
}

.rank-card:hover {
  border-color: #00D4FF;
  transform: translateY(-2px);
  text-decoration: none;
}

.rank-number {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7C3AED, #00D4FF);
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
}

.rank-card.top-3 .rank-number {
  width: 48px;
  height: 48px;
  font-size: 1.2rem;
  box-shadow: 0 4px 16px rgba(124, 58, 237, 0.4);
}

.rank-body {
  flex: 1;
  min-width: 0;
}

.rank-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #E2E8F0;
  margin-bottom: 6px;
}

.rank-card:hover .rank-name {
  color: #00D4FF;
}

.rank-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.rank-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  color: #00D4FF;
  background-color: #00D4FF11;
  border: 1px solid #00D4FF33;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.rank-desc {
  font-size: 0.9rem;
  color: #64748B;
  line-height: 1.5;
}


/* ==========================================================================
   MORE PROJECTS GRID — crmp-proekty
   ========================================================================== */

.more-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.more-card {
  background-color: #0D1F3C;
  border: 1px solid #1A3A5C;
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  transition: border-color 0.2s, transform 0.15s;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.more-card:hover {
  border-color: #00D4FF;
  transform: translateY(-2px);
  text-decoration: none;
}

.more-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7C3AED22, #00D4FF22);
  border: 1px solid #00D4FF44;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.more-card-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #E2E8F0;
}

.more-card:hover .more-card-name {
  color: #00D4FF;
}


/* ==========================================================================
   LINKS SECTION — crmp-proekty
   ========================================================================== */

.links-section ul {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.links-section li a {
  display: block;
  background-color: #0D1F3C;
  border: 1px solid #1A3A5C;
  border-radius: 8px;
  padding: 14px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #E2E8F0;
  transition: border-color 0.2s, color 0.2s;
}

.links-section li a:hover {
  border-color: #00D4FF;
  color: #00D4FF;
  text-decoration: none;
}


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 600px) {
  .site-header .container {
    flex-direction: column;
    gap: 12px;
  }

  .hero {
    padding: 56px 0 48px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .benefits-list {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  /* crmp-igry: games-grid */
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* crmp-ofitsialnye-sajty: sites-grid */
  .sites-grid {
    grid-template-columns: 1fr;
  }

  /* crmp-proekty: rank-card, more-grid */
  .rank-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .more-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* skachat-crmp: related-links */
  .related-links {
    grid-template-columns: 1fr;
  }
}
