:root {
  --primary: #5B4FFF;
  --primary-dark: #4338e0;
  --accent: #FF6B35;
  --text: #1a1a2e;
  --text-muted: #6b7280;
  --bg: #ffffff;
  --bg-soft: #f8f7ff;
  --border: #e5e7eb;
  --radius: 12px;
  --shadow: 0 2px 16px rgba(91,79,255,0.10);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* Layout */
.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Header */
header {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}
.logo span { color: var(--accent); }
.header-cta {
  background: var(--primary);
  color: #fff;
  padding: 9px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s;
}
.header-cta:hover { background: var(--primary-dark); text-decoration: none; }

/* Hero */
.hero {
  background: linear-gradient(135deg, #5B4FFF 0%, #8B5CF6 100%);
  color: #fff;
  padding: 64px 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero > * { position: relative; }
.hero h1 {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -1px;
}
.hero h1 em { color: #FFD166; font-style: normal; }
.hero p {
  font-size: 18px;
  opacity: 0.9;
  max-width: 560px;
  margin: 0 auto 32px;
}
.btn-primary {
  display: inline-block;
  background: #FFD166;
  color: #1a1a2e;
  font-weight: 700;
  font-size: 17px;
  padding: 14px 36px;
  border-radius: 10px;
  transition: transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,0.25); text-decoration: none; }
.btn-secondary {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
  font-weight: 600;
  font-size: 15px;
  padding: 12px 28px;
  border-radius: 10px;
  margin-left: 12px;
  transition: background 0.2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.25); text-decoration: none; }

/* Stats bar */
.stats-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.stats-grid {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num { font-size: 28px; font-weight: 800; color: var(--primary); display: block; }
.stat-label { font-size: 13px; color: var(--text-muted); }

/* Categories */
.section { padding: 56px 0; }
.section-title {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.section-sub { color: var(--text-muted); margin-bottom: 36px; font-size: 16px; }

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.cat-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  cursor: pointer;
  display: block;
  color: var(--text);
}
.cat-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(91,79,255,0.15); border-color: var(--primary); text-decoration: none; }
.cat-img {
  width: 100%;
  height: 150px;
  overflow: hidden;
  background: var(--bg-soft);
  position: relative;
}
.cat-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.cat-card:hover .cat-img img { transform: scale(1.07); }
.cat-img-emoji {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  background: linear-gradient(135deg, var(--bg-soft) 0%, #ede9fe 100%);
}
.cat-body { padding: 14px 12px 18px; }
.cat-name { font-weight: 700; font-size: 15px; display: block; margin-bottom: 4px; }
.cat-count { font-size: 12px; color: var(--text-muted); display: block; }

/* Cities */
.cities-section { background: var(--bg-soft); padding: 48px 0; }
.cities-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.city-tag {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: border-color 0.15s, color 0.15s;
}
.city-tag:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }

/* How it works */
.steps { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.step-card {
  text-align: center;
  padding: 32px 20px;
  border-radius: var(--radius);
  background: var(--bg-soft);
}
.step-num {
  width: 48px; height: 48px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 20px;
  margin: 0 auto 16px;
}
.step-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--text-muted); }

/* SEO text block */
.seo-block {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 36px;
  margin-top: 24px;
}
.seo-block h2 { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.seo-block p { color: var(--text-muted); font-size: 15px; margin-bottom: 12px; }
.seo-block ul { padding-left: 20px; color: var(--text-muted); font-size: 15px; }
.seo-block ul li { margin-bottom: 6px; }

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, #5B4FFF 0%, #8B5CF6 100%);
  border-radius: 20px;
  padding: 48px 40px;
  text-align: center;
  color: #fff;
  margin: 48px 0;
}
.cta-banner h2 { font-size: 28px; font-weight: 800; margin-bottom: 12px; }
.cta-banner p { opacity: 0.9; margin-bottom: 28px; }

/* Telegram CTA */
.tg-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #E8F4FD;
  border: 1.5px solid #B3D9F7;
  border-radius: var(--radius);
  padding: 24px 28px;
  margin: 32px 0;
}
.tg-icon { font-size: 48px; flex-shrink: 0; }
.tg-text h3 { font-size: 17px; font-weight: 700; margin-bottom: 4px; }
.tg-text p { font-size: 14px; color: var(--text-muted); }
.tg-btn {
  margin-left: auto;
  background: #2AABEE;
  color: #fff;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  flex-shrink: 0;
}
.tg-btn:hover { background: #229ED9; text-decoration: none; }

/* Footer */
footer {
  background: #1a1a2e;
  color: rgba(255,255,255,0.7);
  padding: 48px 0 32px;
  margin-top: 0;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-logo { font-size: 24px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.footer-logo span { color: var(--accent); }
.footer-desc { font-size: 14px; line-height: 1.7; }
.footer-col h4 { color: #fff; font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: rgba(255,255,255,0.6); font-size: 14px; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; font-size: 13px; }

/* Page hero (for inner pages) */
.page-hero {
  background: linear-gradient(135deg, #5B4FFF 0%, #8B5CF6 100%);
  color: #fff;
  padding: 48px 0;
}
.page-hero h1 { font-size: clamp(24px, 4vw, 42px); font-weight: 800; margin-bottom: 12px; }
.page-hero p { font-size: 17px; opacity: 0.9; max-width: 540px; }
.breadcrumb { font-size: 13px; margin-bottom: 12px; opacity: 0.7; }
.breadcrumb a { color: rgba(255,255,255,0.8); }

/* Listings preview grid */
.listings-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.listing-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.15s;
  background: #fff;
  display: block;
  color: var(--text);
}
.listing-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); text-decoration: none; }
.listing-img {
  width: 100%; height: 180px;
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 64px;
}
.listing-body { padding: 14px; }
.listing-price { font-size: 18px; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.listing-title { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.listing-meta { font-size: 12px; color: var(--text-muted); }

/* FAQ */
.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-item h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.faq-item p { font-size: 15px; color: var(--text-muted); }

/* Responsive */
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; }
  .header-cta { display: none; }
  .tg-banner { flex-direction: column; text-align: center; }
  .tg-btn { margin-left: 0; }
  .stats-grid { gap: 24px; }
  .hero p { font-size: 15px; }
  .btn-secondary { display: none; }
  .seo-block { padding: 24px; }
  .cta-banner { padding: 32px 20px; }
}
