/* SmartMaster35rus — тёмная cyber-тема (фиолет + неон-зелёный) */

body.sm-theme {
  --accent: #a855f7;
  --accent-2: #22c55e;
  --accent-dark: #7c3aed;
  --accent-soft: rgba(168, 85, 247, 0.12);
  --accent-rgb: 168, 85, 247;
  --ink: #f4f4f5;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.14);
  --bg: #050508;
  --card: rgba(12, 14, 22, 0.92);
  --grad: linear-gradient(120deg, #a855f7 0%, #6366f1 45%, #22c55e 100%);
  --glow: 0 0 28px rgba(168, 85, 247, 0.35), 0 0 48px rgba(34, 197, 94, 0.15);
  --shadow-sm: 0 4px 24px rgba(0, 0, 0, 0.45);
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.65);
  background: var(--bg);
  color: var(--ink);
}

body.sm-theme::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 40% at 10% 0%, rgba(168, 85, 247, 0.14), transparent 55%),
    radial-gradient(ellipse 45% 35% at 90% 5%, rgba(34, 197, 94, 0.1), transparent 50%),
    linear-gradient(180deg, #050508, #0a0a12 40%, #050508);
}

body.sm-theme .nav {
  background: rgba(5, 5, 8, 0.82);
  border-bottom-color: rgba(168, 85, 247, 0.12);
}

body.sm-theme .nav.scrolled {
  background: rgba(5, 5, 8, 0.94);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

body.sm-theme .nav-logo {
  color: #fff;
}

body.sm-theme .nav-logo img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  filter: drop-shadow(0 0 8px rgba(34, 197, 94, 0.4));
}

body.sm-theme .nav-links a {
  color: #94a3b8;
}

body.sm-theme .nav-links a:hover,
body.sm-theme .nav-links a.active:not(.nav-cta) {
  color: #e2e8f0;
}

body.sm-theme .nav-links.open {
  background: #0c0e16;
  border-bottom-color: var(--line);
}

body.sm-theme .nav-links a:not(.nav-cta) {
  border-bottom-color: rgba(255, 255, 255, 0.04);
}

body.sm-theme .nav-burger {
  color: #fff;
}

body.sm-theme .nav-cta {
  box-shadow: var(--glow);
}

body.sm-theme .btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  border-color: rgba(168, 85, 247, 0.35);
}

body.sm-theme .card,
body.sm-theme .step,
body.sm-theme .stat,
body.sm-theme .app-card,
body.sm-theme .faq-item,
body.sm-theme .rating-card,
body.sm-theme .nominal-card {
  background: var(--card);
  border-color: var(--line);
  backdrop-filter: blur(12px);
}

body.sm-theme .hero,
body.sm-theme .cat-hero,
body.sm-theme .section[style*="background:#fff"],
body.sm-theme .section[style*="background: #fff"] {
  background: transparent !important;
}

body.sm-theme .site-footer {
  background: #030305;
  border-top: 1px solid rgba(168, 85, 247, 0.15);
}

body.sm-theme .site-footer::before {
  background: radial-gradient(circle, rgba(34, 197, 94, 0.12), transparent 70%);
}

body.sm-theme .footer-brand .flogo img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

/* ——— Hero главной ——— */
.sm-hero {
  position: relative;
  padding: 48px 24px 72px;
  overflow: hidden;
}

.sm-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 40px;
  align-items: center;
  max-width: var(--maxw);
  margin: 0 auto;
}

.sm-hero-copy {
  text-align: left;
}

.sm-platinum {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c084fc;
  margin-bottom: 18px;
}

.sm-platinum::before,
.sm-platinum::after {
  content: "";
  width: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #a855f7);
}

.sm-platinum::after {
  background: linear-gradient(90deg, #22c55e, transparent);
}

.sm-hero h1 {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 850;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 16px;
}

.sm-hero-lead {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 28px;
}

.sm-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.sm-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
  border: 1px solid rgba(34, 197, 94, 0.25);
  background: rgba(34, 197, 94, 0.08);
  color: #86efac;
}

.sm-chip.purple {
  border-color: rgba(168, 85, 247, 0.3);
  background: rgba(168, 85, 247, 0.1);
  color: #d8b4fe;
}

.sm-hero-visual {
  position: relative;
}

.sm-hero-visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(168, 85, 247, 0.15);
}

.sm-hero-visual::after {
  content: "";
  position: absolute;
  inset: -20px;
  z-index: -1;
  background: radial-gradient(circle at 50% 50%, rgba(34, 197, 94, 0.12), transparent 65%);
  pointer-events: none;
}

.sm-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px 56px;
}

.sm-stat {
  text-align: center;
  padding: 22px 14px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(12, 14, 22, 0.6);
}

.sm-stat b {
  display: block;
  font-size: 26px;
  font-weight: 850;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sm-stat span {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
  display: block;
  line-height: 1.4;
}

/* Фичи */
.sm-features {
  padding: 72px 24px;
}

.sm-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.sm-feature {
  padding: 28px 26px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(168, 85, 247, 0.06), rgba(34, 197, 94, 0.04));
  transition: transform 0.2s, box-shadow 0.2s;
}

.sm-feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--glow);
}

.sm-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: var(--grad);
  color: #fff;
  font-size: 22px;
  box-shadow: var(--glow);
}

.sm-feature h3 {
  font-size: 18px;
  font-weight: 780;
  margin-bottom: 8px;
}

.sm-feature p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
}

/* Шаги */
.sm-steps {
  padding: 72px 24px;
  background: rgba(0, 0, 0, 0.25);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.sm-step-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: var(--maxw);
  margin: 0 auto;
}

.sm-step-card {
  position: relative;
  padding: 32px 24px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--card);
  text-align: center;
}

.sm-step-num {
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 18px;
  background: var(--grad);
  color: #fff;
  box-shadow: var(--glow);
}

.sm-price-banner {
  max-width: 720px;
  margin: 36px auto 0;
  padding: 24px 28px;
  border-radius: 20px;
  text-align: center;
  border: 1px solid rgba(168, 85, 247, 0.25);
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.1), rgba(34, 197, 94, 0.08));
}

.sm-price-banner b {
  font-size: 22px;
  color: #fff;
}

/* CTA баннер с лого */
.sm-cta-banner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px 40px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  gap: 32px;
  border: 1px solid rgba(34, 197, 94, 0.2);
  background:
    linear-gradient(135deg, rgba(168, 85, 247, 0.12), rgba(34, 197, 94, 0.08)),
    rgba(8, 10, 18, 0.95);
  box-shadow: var(--glow);
}

.sm-cta-banner img {
  width: 140px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 20px rgba(34, 197, 94, 0.35));
}

.sm-cta-banner h2 {
  font-size: 28px;
  font-weight: 850;
  margin-bottom: 10px;
}

.sm-cta-banner p {
  color: var(--muted);
  margin-bottom: 20px;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .sm-hero {
    padding: 20px 0 48px;
  }

  .sm-hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
    padding-left: 16px;
    padding-right: 16px;
  }

  .sm-hero-visual {
    order: -1;
    width: calc(100% + 32px);
    max-width: none;
    margin-left: -16px;
    margin-right: -16px;
  }

  .sm-hero-visual img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    min-height: 200px;
    object-fit: cover;
    border-radius: 0;
  }

  .sm-hero-copy {
    text-align: center;
  }
  .sm-hero-lead {
    margin-left: auto;
    margin-right: auto;
  }
  .sm-hero-badges,
  .hero-btns {
    justify-content: center;
  }
  .sm-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .sm-feature-grid,
  .sm-step-row {
    grid-template-columns: 1fr;
  }
  .sm-cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 36px 24px;
  }
  .sm-cta-banner .hero-btns {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .sm-hero-visual img {
    min-height: 220px;
    aspect-ratio: 4 / 3;
    object-fit: cover;
  }

  .sm-hero h1 {
    font-size: clamp(32px, 9vw, 42px);
  }
}

.sm-showcase {
  padding: 8px 0 36px;
}

.sm-showcase-head {
  text-align: center;
  margin-bottom: 18px;
}

.sm-showcase-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(34, 197, 94, 0.35);
  background: rgba(34, 197, 94, 0.1);
  color: #86efac;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 800;
}

.sm-showcase-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 6px 2px 10px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.sm-showcase-card {
  flex: 0 0 112px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 10px 12px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)), var(--card);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.sm-showcase-card:hover {
  transform: translateY(-2px);
  border-color: rgba(168, 85, 247, 0.45);
  box-shadow: var(--shadow-sm);
}

.sm-showcase-card.soon {
  opacity: 0.75;
}

.sm-showcase-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.28), rgba(99, 102, 241, 0.22));
}

.sm-showcase-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
  z-index: 1;
}

.sm-showcase-icon span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  color: #c4b5fd;
  z-index: 0;
}

.sm-showcase-name {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.sm-showcase-meta {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
