/* ============================================
   BILLIUS — Marketplace
   Style inspired by mega.io
   ============================================ */

:root {
  --bg-primary: #0a0a0a;
  --bg-secondary: #131313;
  --bg-elevated: #1a1a1a;
  --bg-card: #161616;
  --border: #262626;
  --border-hover: #383838;
  --text-primary: #ffffff;
  --text-secondary: #a8a8a8;
  --text-muted: #6b6b6b;
  --accent: #e60023;
  --accent-hover: #ff1a3d;
  --accent-soft: rgba(230, 0, 35, 0.12);
  --gradient-hero: radial-gradient(ellipse at top, rgba(230, 0, 35, 0.18) 0%, transparent 60%);
  --max-width: 1280px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Display font для заголовков */
h1, h2, h3, h4, .display {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

img {
  max-width: 100%;
  display: block;
}

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

/* ============ HEADER ============ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-mark {
  width: 28px;
  height: 28px;
  background: var(--accent);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  color: white;
}

.nav-menu {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-menu a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--text-primary);
}

.nav-cta {
  display: flex;
  gap: 12px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: var(--border-hover);
  background: var(--bg-elevated);
}

.btn-large {
  padding: 16px 32px;
  font-size: 1.05rem;
}

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: 120px 0 100px;
  text-align: center;
  background: var(--gradient-hero);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(230, 0, 35, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(230, 0, 35, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-block;
  padding: 6px 16px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(230, 0, 35, 0.25);
}

.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  margin-bottom: 24px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent) 0%, #ff6b8a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============ SECTIONS ============ */
.section {
  padding: 100px 0;
}

.section-secondary {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ============ GRID & CARDS ============ */
.grid {
  display: grid;
  gap: 24px;
}

.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.card-link {
  display: block;
}

.card-link:hover .card-arrow {
  transform: translateX(4px);
}

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 28px;
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.card p {
  color: var(--text-secondary);
  font-size: 0.98rem;
}

.card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  margin-top: 20px;
  font-size: 0.95rem;
  transition: transform 0.2s ease;
}

/* ============ STATS BAR ============ */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
  padding: 48px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  margin-top: 64px;
}

.stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 3vw, 2.75rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ============ CONTENT PAGES ============ */
.page-hero {
  padding: 80px 0 60px;
  text-align: center;
  background: var(--gradient-hero);
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  margin-bottom: 16px;
}

.page-hero p {
  color: var(--text-secondary);
  font-size: 1.15rem;
  max-width: 640px;
  margin: 0 auto;
}

.breadcrumbs {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  justify-content: center;
}

.breadcrumbs a {
  color: var(--text-secondary);
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs .sep {
  color: var(--text-muted);
}

.content {
  max-width: 800px;
  margin: 0 auto;
  padding: 80px 24px;
}

.content h2 {
  font-size: 1.75rem;
  margin: 48px 0 16px;
  color: var(--text-primary);
}

.content h2:first-child {
  margin-top: 0;
}

.content h3 {
  font-size: 1.25rem;
  margin: 32px 0 12px;
  color: var(--text-primary);
}

.content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.75;
  font-size: 1.02rem;
}

.content ul,
.content ol {
  color: var(--text-secondary);
  padding-left: 24px;
  margin-bottom: 16px;
  line-height: 1.75;
}

.content li {
  margin-bottom: 8px;
}

.content strong {
  color: var(--text-primary);
}

.content a {
  color: var(--accent);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.content a:hover {
  border-bottom-color: var(--accent);
}

.placeholder {
  border: 1px dashed var(--border-hover);
  background: var(--bg-elevated);
  border-radius: 12px;
  padding: 24px;
  color: var(--text-muted);
  font-style: italic;
  margin: 16px 0;
}

/* ============ CONTACT ============ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  text-align: center;
}

.contact-card-icon {
  font-size: 32px;
  margin-bottom: 16px;
}

.contact-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.contact-card a {
  color: var(--accent);
  font-weight: 600;
}

/* ============ SERVICE DETAIL ============ */
.service-hero {
  padding: 80px 0 40px;
  background: var(--gradient-hero);
}

.service-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

@media (max-width: 768px) {
  .service-hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.service-visual {
  aspect-ratio: 4/3;
  background:
    radial-gradient(circle at 30% 30%, var(--accent-soft) 0%, transparent 50%),
    var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  position: relative;
  overflow: hidden;
}

.service-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(230, 0, 35, 0.05) 100%);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 32px 0;
}

.feature-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.feature-check {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 14px;
}

.feature-item h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.feature-item p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin: 0;
}

/* ============ CTA BLOCK ============ */
.cta-block {
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-card) 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-block::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 50%);
  pointer-events: none;
}

.cta-block > * {
  position: relative;
}

.cta-block h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  margin-bottom: 16px;
}

.cta-block p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ============ FOOTER ============ */
.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

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

.footer-brand p {
  color: var(--text-secondary);
  margin-top: 16px;
  max-width: 280px;
  font-size: 0.95rem;
}

.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-primary);
  margin-bottom: 20px;
  font-weight: 700;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  flex-wrap: wrap;
  gap: 16px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .hero {
    padding: 80px 0 60px;
  }

  .section {
    padding: 64px 0;
  }

  .content {
    padding: 48px 24px;
  }

  .cta-block {
    padding: 40px 24px;
  }
}

/* ============ TRUST ROW ============ */
.trust-row {
  margin-top: 80px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
}

.trust-label {
  display: block;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 24px;
}

.trust-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 48px;
  opacity: 0.5;
}

.trust-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

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

.step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 28px;
  position: relative;
  transition: all 0.3s ease;
}

.step:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
}

.step-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 20px;
  opacity: 0.9;
}

.step h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.step p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============ TESTIMONIALS ============ */
.testimonial {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  position: relative;
}

.testimonial::before {
  content: '"';
  position: absolute;
  top: 12px;
  right: 24px;
  font-family: 'Space Grotesk', serif;
  font-size: 5rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.18;
  line-height: 1;
}

.testimonial p {
  color: var(--text-primary);
  font-size: 1.02rem;
  line-height: 1.7;
  margin-bottom: 24px;
  position: relative;
}

.testimonial footer {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.testimonial footer strong {
  color: var(--text-primary);
  font-size: 0.95rem;
}

.testimonial footer span {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ============ FAQ ============ */
.faq {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-item[open] {
  border-color: var(--accent);
}

.faq-item summary {
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0;
}

/* ============ ANIMATIONS ============ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow,
.hero h1,
.hero p,
.hero-actions {
  animation: fadeUp 0.8s ease backwards;
}

.hero h1 { animation-delay: 0.1s; }
.hero p { animation-delay: 0.2s; }
.hero-actions { animation-delay: 0.3s; }