/* ── Design tokens ──────────────────────────────────────────────────────────── */
:root {
  --graphite:   #1A1A2E;
  --navy:       #1A2456;
  --ink:        #0D0D1F;
  --orange:     #F4511E;
  --orange-dk:  #d43e0e;
  --white:      #FFFFFF;
  --gray-100:   #F7F7F7;
  --gray-200:   #EBEBEB;
  --gray-500:   #8A8A8A;
  --gray-700:   #444444;

  --radius:     10px;
  --shadow:     0 2px 18px rgba(26,26,46,.10);
  --transition: .18s ease;

  --font-sans:    'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
}

/* ── Reset ───────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--graphite);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Layout helpers ──────────────────────────────────────────────────────────── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }
section:nth-child(odd) { background: var(--gray-100); }

/* ── Buttons ─────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 26px; border-radius: 100px;
  font-family: var(--font-sans); font-size: .95rem; font-weight: 600; text-decoration: none; cursor: pointer;
  letter-spacing: .01em;
  border: 1.5px solid transparent; transition: var(--transition); white-space: nowrap;
}
.btn-primary {
  background: var(--orange); color: var(--white); border-color: var(--orange);
  box-shadow: 0 2px 14px rgba(244,81,30,.28);
}
.btn-primary:hover {
  background: var(--orange-dk); border-color: var(--orange-dk);
  transform: translateY(-2px); box-shadow: 0 8px 28px rgba(244,81,30,.45);
}
.btn-lg { padding: 16px 36px; font-size: 1.02rem; }
.btn-ghost { background: rgba(255,255,255,.07); color: var(--white); border-color: rgba(255,255,255,.22); }
.btn-ghost:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.5); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--graphite); border-color: var(--gray-500); }
.btn-outline:hover { background: var(--graphite); color: var(--white); border-color: var(--graphite); }

/* hero messenger buttons — brand tint, solid on hover */
.btn-hero-viber {
  background: rgba(115,96,242,.14); color: var(--white); border-color: rgba(115,96,242,.5);
}
.btn-hero-viber:hover {
  background: #7360F2; border-color: #7360F2; transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(115,96,242,.4);
}
.btn-hero-wa {
  background: rgba(37,211,102,.11); color: var(--white); border-color: rgba(37,211,102,.42);
}
.btn-hero-wa:hover {
  background: #25D366; border-color: #25D366; transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(37,211,102,.35);
}

/* full brand — messengers section */
.btn-tg    { background: #229ED9; color: var(--white); border-color: #229ED9; box-shadow: 0 2px 10px rgba(34,158,217,.22); }
.btn-tg:hover    { background: #1a88b8; border-color: #1a88b8; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(34,158,217,.38); }
.btn-viber { background: #7360F2; color: var(--white); border-color: #7360F2; box-shadow: 0 2px 10px rgba(115,96,242,.22); }
.btn-viber:hover { background: #5a4bd4; border-color: #5a4bd4; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(115,96,242,.38); }
.btn-wa    { background: #25D366; color: var(--white); border-color: #25D366; box-shadow: 0 2px 10px rgba(37,211,102,.18); }
.btn-wa:hover    { background: #1aad52; border-color: #1aad52; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(37,211,102,.32); }

/* ── Header ──────────────────────────────────────────────────────────────────── */
header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white); border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.logo-link { display: flex; align-items: center; }
.logo-link img, .logo-link svg { height: 42px; width: auto; }
.header-nav { display: flex; align-items: center; gap: 28px; }
.header-nav a { font-size: .9rem; font-weight: 500; color: var(--gray-700); transition: var(--transition); }
.header-nav a:hover { color: var(--orange); }

/* Language switcher */
.lang-switcher { display: flex; gap: 4px; }
.lang-btn {
  padding: 4px 9px; border-radius: 6px; font-size: .78rem; font-weight: 600;
  border: 1.5px solid var(--gray-200); background: transparent; cursor: pointer;
  color: var(--gray-700); transition: var(--transition);
}
.lang-btn.active, .lang-btn:hover { border-color: var(--orange); color: var(--orange); }

/* hamburger */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--graphite); margin: 5px 0; border-radius: 2px; transition: var(--transition); }

/* ── Hero ────────────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--ink) 0%, var(--graphite) 55%, var(--navy) 100%) !important;
  color: var(--white);
  padding: 104px 0 112px;
  position: relative; overflow: hidden;
}
/* Large radial glow top-right */
.hero::before {
  content: '';
  position: absolute; right: -120px; top: -120px;
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(244,81,30,.22) 0%, transparent 65%);
  pointer-events: none;
}
/* Diagonal bottom cut */
.hero::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0; height: 64px;
  background: var(--gray-100);
  clip-path: polygon(0 64px, 100% 0, 100% 64px);
  pointer-events: none;
}
.hero-inner { display: flex; align-items: center; gap: 48px; position: relative; z-index: 1; }
.hero-content { flex: 1; max-width: 640px; }

/* Decorative speed-lines SVG (right side) */
.hero-deco {
  flex-shrink: 0; width: 260px; opacity: .7;
  display: flex; align-items: center;
}
.hero-deco svg { width: 100%; height: auto; }

.hero-tag {
  display: inline-block; background: var(--orange);
  color: var(--white); font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.5px;
  padding: 5px 16px; border-radius: 20px; margin-bottom: 28px;
}

/* Brand wordmark in hero */
.hero-wordmark {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  color: var(--white);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.hero-wordmark em {
  font-family: 'Inter', system-ui, sans-serif;
  font-style: italic;
  font-weight: 700;
  color: var(--orange);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 700;
  line-height: 1.02;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.hero h1 em {
  font-family: 'Inter', system-ui, sans-serif;
  font-style: italic;
  font-weight: 700;
  color: var(--orange);
}

.hero-sub { font-size: 1.15rem; color: rgba(255,255,255,.72); margin-bottom: 40px; line-height: 1.6; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ── Stats bar ───────────────────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.stat-card {
  background: var(--white);
  padding: 40px 24px;
  text-align: center;
  border-right: 1px solid var(--gray-200);
  border-bottom: 4px solid transparent;
  transition: var(--transition);
}
.stat-card:last-child { border-right: none; }
.stat-card:hover { border-bottom-color: var(--orange); }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.stat-label {
  font-size: .88rem;
  color: var(--gray-700);
  font-weight: 500;
  line-height: 1.4;
}

/* Feature badges strip */
.feat-badges {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 40px; justify-content: center;
}
.feat-badge {
  display: flex; align-items: center; gap: 8px;
  background: var(--white); border-radius: 40px;
  padding: 10px 20px; box-shadow: var(--shadow);
  font-size: .9rem; font-weight: 600; color: var(--graphite);
  border: 1.5px solid var(--gray-200); transition: var(--transition);
}
.feat-badge:hover { border-color: var(--orange); color: var(--orange); }
.feat-badge-icon { font-size: 1.1rem; }

/* ── Section headings ────────────────────────────────────────────────────────── */
.section-head { text-align: center; margin-bottom: 52px; }
.section-head h2 {
  font-family: var(--font-display); font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700; margin-bottom: 12px; letter-spacing: -0.01em;
}
.section-head p { color: var(--gray-500); font-size: 1rem; max-width: 540px; margin: 0 auto; }
.accent-line { width: 48px; height: 4px; background: var(--orange); border-radius: 2px; margin: 16px auto 0; }

/* ── Pricing ─────────────────────────────────────────────────────────────────── */
.pricing-table {
  width: 100%; border-collapse: collapse;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.pricing-table th, .pricing-table td {
  padding: 18px 28px; text-align: left;
  border-bottom: 1px solid var(--gray-200);
}
.pricing-table th {
  background: var(--graphite); color: var(--white);
  font-size: .85rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .8px;
}
.pricing-table tbody tr:last-child td { border-bottom: none; }
.pricing-table tbody tr:hover td { background: var(--gray-100); }
.price-val {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--orange);
  font-size: 1.4rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}
.pricing-note { margin-top: 14px; text-align: center; font-size: .85rem; color: var(--gray-500); }

/* Biz banner — replaces the "Firme" table row */
.biz-banner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  margin-top: 20px;
  background: var(--graphite);
  color: var(--white);
  border-radius: var(--radius);
  padding: 26px 32px;
}
.biz-banner-text strong { font-size: 1.1rem; font-weight: 700; display: block; margin-bottom: 4px; }
.biz-banner-text span { color: rgba(255,255,255,.6); font-size: .9rem; }
.biz-banner .btn { border-color: var(--orange); color: var(--orange); background: transparent; }
.biz-banner .btn:hover { background: var(--orange); color: var(--white); }

/* ── Cities ──────────────────────────────────────────────────────────────────── */
.cities-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px;
}
.city-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--white); border-radius: 8px;
  padding: 12px 16px; box-shadow: var(--shadow);
  font-size: .92rem; font-weight: 500;
}
.city-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex-shrink: 0; }
.city-item.limited .city-dot { background: var(--gray-500); }
.cities-legend { display: flex; gap: 24px; margin-top: 24px; font-size: .85rem; color: var(--gray-500); }
.cities-legend span { display: flex; align-items: center; gap: 7px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* ── Messengers ──────────────────────────────────────────────────────────────── */
.messengers-wrap { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.messengers-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.messengers-note { font-size: .88rem; color: var(--gray-500); text-align: center; max-width: 480px; }

/* ── Contact ─────────────────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; }
.contact-card {
  background: var(--white); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
}
.contact-card .icon { font-size: 1.8rem; }
.contact-card h4 { font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .8px; color: var(--gray-500); }
.contact-card a, .contact-card p { font-size: 1rem; font-weight: 600; color: var(--graphite); }
.contact-card a:hover { color: var(--orange); }

/* ── Footer ──────────────────────────────────────────────────────────────────── */
footer {
  background: var(--graphite); color: rgba(255,255,255,.55);
  padding: 36px 0; text-align: center; font-size: .85rem;
}
footer strong { color: rgba(255,255,255,.85); }
footer .footer-links { display: flex; justify-content: center; gap: 20px; margin-top: 12px; flex-wrap: wrap; }
footer .footer-links a:hover { color: var(--orange); }

/* ── Mobile ──────────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-deco { display: none; }
}

@media (max-width: 768px) {
  section { padding: 52px 0; }
  .header-nav {
    display: none; flex-direction: column;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--white); padding: 20px 24px;
    border-bottom: 1px solid var(--gray-200); gap: 16px;
  }
  .header-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .hero { padding: 64px 0 80px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .btn { justify-content: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-card { border-right: none; border-bottom: 1px solid var(--gray-200); }
  .stat-card:nth-child(odd) { border-right: 1px solid var(--gray-200); }
  .stats-grid .stat-card:nth-last-child(-n+2) { border-bottom: none; }
  .messengers-btns { flex-direction: column; align-items: center; }
  .biz-banner { flex-direction: column; text-align: center; }
}

@media (max-width: 640px) {
  /* Pricing: hide # column, show only weight + price */
  .pricing-table th:first-child,
  .pricing-table td:first-child { display: none; }
  .pricing-table th, .pricing-table td { padding: 14px 16px; }
  .price-val { font-size: 1.2rem; }
}

/* ── How it works ────────────────────────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.step-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  position: relative;
  border-top: 3px solid var(--orange);
}
.step-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--orange);
  opacity: 0.18;
  line-height: 1;
  margin-bottom: 16px;
}
.step-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--graphite);
}
.step-card p {
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.6;
}
@media (max-width: 768px) {
  .steps-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ── FAQ ─────────────────────────────────────────────────────────────────────── */
.faq-list { margin-top: 40px; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}
.faq-item summary {
  padding: 20px 24px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--orange);
  flex-shrink: 0;
  transition: transform var(--transition);
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body {
  padding: 0 24px 20px;
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.65;
}

/* ── Scroll reveal animation ─────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── Telegram WebApp ─────────────────────────────────────────────────────────── */
body.tg-webapp {
  background: var(--tg-theme-bg-color, var(--white));
  color: var(--tg-theme-text-color, var(--graphite));
}
body.tg-webapp header { display: none; }
body.tg-webapp .hero { padding: 32px 0 48px; }
