:root {
  --ink: #142019;
  --muted: #57685D;
  --bg: #F6F8F5;
  --surface: #FFFFFF;
  --border: rgba(20, 32, 25, 0.10);
  --brand: #1B4B36;
  --brand-dark: #123524;
  --accent: #6FCF97;
  --sans: 'Manrope', -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --display: 'Unbounded', 'Manrope', -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--display); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header/Footer ---------- */
.site-header {
  background: rgba(246, 248, 245, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--display); font-size: 18px; font-weight: 700; color: var(--brand-dark); letter-spacing: -0.2px; }
.brand-dot { width: 11px; height: 11px; border-radius: 4px; background: linear-gradient(135deg, var(--brand), var(--accent)); flex-shrink: 0; }
.brand-accent { color: var(--accent); }
.site-header nav { display: flex; gap: 26px; }
.site-header nav a { color: var(--muted); font-weight: 600; font-size: 14.5px; }
.site-header nav a:hover { color: var(--brand); }

.site-footer {
  margin-top: 64px;
  padding: 40px 0;
  background: var(--brand-dark);
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
}
.site-footer p { margin: 0; }
.site-footer .footer-contacts { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.site-footer .footer-contacts-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: rgba(255, 255, 255, 0.5); margin-right: 4px; }
.site-footer .footer-contacts a {
  display: inline-flex; align-items: center;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16); background: transparent;
  color: rgba(255, 255, 255, 0.85); font-size: 12.5px; font-weight: 600; text-decoration: none;
  transition: border-color 150ms ease, color 150ms ease;
}
.site-footer .footer-contacts a:hover { border-color: var(--accent); color: var(--accent); }

main { max-width: 1120px; margin: 0 auto; padding: 0 24px 64px; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 40px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; top: -180px; right: -160px;
  width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(111,207,151,0.24), rgba(111,207,151,0) 70%);
  pointer-events: none;
}
.hero-inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; position: relative; }
.hero-copy { position: relative; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--brand); background: rgba(27,75,54,0.08); border-radius: 999px;
  padding: 7px 14px 7px 10px; margin-bottom: 18px;
}
.hero-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero h1 {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.1;
  text-wrap: balance;
  color: var(--brand-dark);
  margin: 0 0 16px;
}
.hero .lead {
  font-size: clamp(16px, 2vw, 18px);
  color: var(--muted);
  max-width: 46ch;
  margin: 0 0 28px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand-dark); color: #fff; font-weight: 700; font-size: 15px;
  padding: 13px 24px; border-radius: 12px;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.btn-primary:hover { color: #fff; background: var(--brand); transform: translateY(-1px); box-shadow: 0 14px 28px -14px rgba(18,53,36,0.5); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--brand-dark); font-weight: 700; font-size: 15px;
  padding: 13px 22px; border-radius: 12px; border: 1.5px solid var(--border);
  transition: border-color 160ms ease, color 160ms ease;
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

/* Hero visual — иллюстративные мокапы экранов, не реальные скриншоты */
.hero-visual { position: relative; height: 380px; max-width: 100%; }
.hero-visual-caption { text-align: center; font-size: 12px; color: var(--muted); margin: 16px 0 0; }
.mock-board {
  position: absolute; left: 0; top: 10px; width: 78%; max-width: 300px; min-width: 0; border-radius: 20px;
  background: #0E1B15; padding: 14px; overflow: hidden;
  box-shadow: 0 40px 70px -30px rgba(14,27,21,0.5); transform: rotate(-4deg);
}
.mock-board-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 6px 12px; min-width: 0; }
.mock-board-head .dot { width: 14px; height: 14px; border-radius: 5px; background: linear-gradient(135deg, var(--accent), var(--brand)); display: inline-block; flex-shrink: 0; }
.mock-board-head .label { color: #DCE9E0; font-size: 11px; font-weight: 700; letter-spacing: 0.03em; margin-left: 6px; white-space: nowrap; }
.mock-board-head .time { color: #7C9488; font-size: 10px; flex-shrink: 0; }
.mock-board-body { display: flex; gap: 10px; min-width: 0; }
.mock-promo {
  flex: 0 0 58%; min-width: 0; border-radius: 12px; height: 140px;
  background: linear-gradient(135deg, rgba(27,75,54,0.55), rgba(111,207,151,0.28));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
}
.mock-promo .play { width: 24px; height: 24px; border-radius: 50%; background: rgba(255,255,255,0.22); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mock-promo span { color: #CFE4D6; font-size: 9px; text-align: center; padding: 0 10px; }
.mock-queue { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.mock-queue-label { color: #6E8778; font-size: 8px; text-transform: uppercase; letter-spacing: 0.08em; white-space: nowrap; }
.mock-queue-now { background: linear-gradient(135deg, #2FA968, #1B4B36); border-radius: 8px; padding: 9px 10px; min-width: 0; }
.mock-queue-now .num { color: #fff; font-size: 15px; font-weight: 800; font-family: var(--display); white-space: nowrap; }
.mock-queue-now .lbl { color: rgba(255,255,255,0.8); font-size: 8px; margin-top: 2px; white-space: nowrap; }
.mock-queue-item { background: rgba(255,255,255,0.06); border-radius: 8px; padding: 7px 10px; display: flex; justify-content: space-between; gap: 6px; color: #B9C8BF; font-size: 9px; opacity: 0.65; min-width: 0; }
.mock-queue-item span { white-space: nowrap; }
.mock-phone {
  position: absolute; right: 0; bottom: 0; width: 42%; max-width: 160px; min-width: 0; border-radius: 30px;
  background: #fff; border: 8px solid var(--brand-dark); overflow: hidden;
  box-shadow: 0 36px 60px -24px rgba(18,53,36,0.4); transform: rotate(5deg);
}
.mock-phone-inner { padding: 16px 14px 18px; }
.mock-phone-title { text-align: center; font-size: 10px; font-weight: 700; color: var(--brand-dark); margin-bottom: 10px; white-space: nowrap; }
.mock-qr {
  width: 100%; max-width: 92px; aspect-ratio: 1; margin: 0 auto 12px; padding: 8px;
  background: #fff; border: 1px solid var(--border); border-radius: 8px;
  display: grid; grid-template-columns: repeat(6,1fr); grid-template-rows: repeat(6,1fr); gap: 2px;
}
.mock-qr span { border-radius: 1px; }
.mock-menu-row { display: flex; align-items: center; gap: 8px; background: var(--bg); border-radius: 8px; padding: 7px 8px; margin-bottom: 7px; }
.mock-menu-row .ic { width: 16px; height: 16px; border-radius: 5px; background: var(--accent); flex-shrink: 0; }
.mock-menu-row .ln { height: 6px; flex: 1; background: var(--border); border-radius: 3px; }

/* ---------- Products ---------- */
.products { padding: 32px 0; }
.products h2, .news-preview h2, .news-list-page h1 {
  font-family: var(--display); font-size: 28px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 28px; color: var(--brand-dark);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.product-card {
  display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -16px rgba(18, 53, 36, 0.22);
  border-color: var(--brand);
}
.product-icon {
  font-size: 24px; width: 48px; height: 48px; border-radius: 13px;
  background: var(--brand-dark); display: flex; align-items: center; justify-content: center;
}
.product-name { font-size: 18px; font-weight: 700; font-family: var(--display); color: var(--ink); }
.product-desc { font-size: 14.5px; color: var(--muted); }
.badge {
  display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.5px; background: var(--accent); color: var(--brand-dark); border-radius: 20px;
  padding: 3px 10px; vertical-align: middle;
}
.empty { color: var(--muted); }

/* ---------- Onboarding ---------- */
.onboarding { padding: 32px 0; }
.onboarding h2 { font-family: var(--display); font-size: 28px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 28px; color: var(--brand-dark); }

.product-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}
.product-choice {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}
.product-choice-head { display: flex; align-items: center; gap: 10px; }
.product-choice-head .product-icon { font-size: 26px; }
.product-choice-head h3 { font-size: 18px; font-weight: 700; margin: 0; }
.feature-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.feature-list li { font-size: 14px; color: var(--muted); padding-left: 20px; position: relative; }
.feature-list li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
.product-choice .step-link { margin-top: auto; padding-top: 4px; }

.timeline { position: relative; padding: 12px 0; }
.timeline::before {
  content: ""; position: absolute; top: 32px; left: 6%; right: 6%; height: 2px;
  background: linear-gradient(90deg, var(--border), var(--accent), var(--border));
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.step { display: flex; flex-direction: column; gap: 10px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--brand-dark); color: #fff;
  font-family: var(--display); font-weight: 700; font-size: 16px;
  margin-bottom: 4px;
}
.step:last-child .step-num { background: linear-gradient(135deg, var(--accent), #2FA968); color: var(--brand-dark); }
.step h3 { font-size: 16px; font-weight: 700; margin: 0; color: var(--ink); }
.step p { font-size: 13.5px; color: var(--muted); margin: 0; }
.step-link { display: inline-block; margin-top: 10px; font-weight: 600; font-size: 14px; }
.blog-link { display: inline-block; margin-top: 6px; font-weight: 500; font-size: 13px; color: var(--muted); }
.onboarding-help {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
  margin-top: 24px; padding: 20px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
}
.onboarding-help p { margin: 0; color: var(--muted); font-size: 15px; flex: 1 1 240px; }
.btn-whatsapp {
  display: inline-flex; align-items: center;
  background: #25D366; color: #fff; font-weight: 700; font-size: 15px;
  padding: 10px 20px; border-radius: 12px;
  transition: transform 180ms ease, box-shadow 180ms ease;
  white-space: nowrap;
}
.btn-whatsapp:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(37, 211, 102, 0.6); }

/* ---------- Case study ---------- */
.case-study { padding: 32px 0; }
.case-study h2 { font-family: var(--display); font-size: 28px; font-weight: 700; letter-spacing: -0.3px; margin: 0 0 8px; color: var(--brand-dark); }
.case-study .case-note { color: var(--muted); font-size: 14.5px; margin: 0 0 28px; }
.case-card {
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  background: var(--brand-dark); border-radius: 24px; overflow: hidden;
}
.case-content { padding: 40px; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.case-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent); background: rgba(255,255,255,0.1); border-radius: 999px;
  padding: 7px 14px 7px 10px;
}
.case-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.case-content h3 { color: #fff; font-size: 21px; font-weight: 700; line-height: 1.3; margin: 0; }
.case-content p { color: rgba(255,255,255,0.72); font-size: 14.5px; margin: 0; }
.case-content a { color: var(--accent); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; }
.case-visual {
  background: linear-gradient(135deg, rgba(111,207,151,0.22), rgba(27,75,54,0.4));
  display: flex; align-items: center; justify-content: center; padding: 32px;
}
.case-board { background: #0E1B15; border-radius: 16px; padding: 16px; width: 100%; max-width: 320px; box-shadow: 0 30px 50px -20px rgba(0,0,0,0.5); }
.case-board-head { display: flex; justify-content: space-between; margin-bottom: 12px; }
.case-board-head span:first-child { color: #DCE9E0; font-size: 10px; font-weight: 700; }
.case-board-head span:last-child { color: #7C9488; font-size: 9px; }
.case-board-row { display: flex; gap: 8px; }
.case-board-item { flex: 1; border-radius: 10px; padding: 14px; text-align: center; }
.case-board-item.now { background: linear-gradient(135deg, #2FA968, #1B4B36); }
.case-board-item.wait { background: rgba(255,255,255,0.07); }
.case-board-item .num { font-size: 20px; font-weight: 800; font-family: var(--display); }
.case-board-item.now .num { color: #fff; }
.case-board-item.wait .num { color: #B9C8BF; opacity: 0.6; }
.case-board-item .lbl { font-size: 9px; margin-top: 4px; }
.case-board-item.now .lbl { color: rgba(255,255,255,0.75); }
.case-board-item.wait .lbl { color: #7C9488; }

/* ---------- News ---------- */
.news-preview { padding: 32px 0; }
.news-list-page { padding: 48px 0; }
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.news-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow 180ms ease;
}
.news-card:hover { box-shadow: 0 12px 28px -12px rgba(15, 42, 68, 0.18); }
.news-card a { color: inherit; display: block; }
.news-card img { width: 100%; height: 160px; object-fit: cover; }
.news-card h2, .news-card h3 { font-size: 18px; margin: 16px 16px 6px; }
.news-card p { font-size: 14px; color: var(--muted); margin: 0 16px 12px; }
.news-card time { display: block; font-size: 12px; color: var(--muted); margin: 0 16px 16px; }
.see-all { display: inline-block; margin-top: 16px; font-weight: 600; }

/* ---------- Article ---------- */
.news-article { padding: 48px 0; max-width: 720px; margin: 0 auto; }
.news-article h1 { font-family: var(--display); font-size: 32px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 8px; color: var(--brand-dark); }
.news-article time { color: var(--muted); font-size: 14px; }
.news-article .cover { width: 100%; border-radius: 16px; margin: 24px 0; }
.article-body { font-size: 17px; margin-top: 24px; }
.article-body p { margin: 0 0 18px; }
.article-body img { border-radius: 12px; margin: 24px 0; }
.article-body h2 { font-size: 24px; margin: 32px 0 12px; }
.article-onboarding-help { margin-top: 40px; }

/* Модалка выбора способа связи (WhatsApp / почта) — только для продуктов с use_contact_form */
.contact-modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.contact-modal[hidden] { display: none; }
.contact-modal-backdrop { position: absolute; inset: 0; background: rgba(20,32,25,0.55); }
.contact-modal-card {
  position: relative; z-index: 1; width: 100%; max-width: 380px;
  background: #fff; border-radius: 20px; padding: 32px 28px;
  box-shadow: 0 30px 60px -20px rgba(18,53,36,0.4);
}
.contact-modal-close {
  position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 10px;
  border: none; background: transparent; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer;
}
.contact-modal-close:hover { background: rgba(20,32,25,0.06); color: var(--ink); }
.contact-modal-card h3 { font-family: var(--display); font-size: 20px; font-weight: 700; color: var(--brand-dark); margin: 0 0 6px; }
.contact-modal-sub { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.contact-modal-step { display: flex; flex-direction: column; gap: 12px; }
.contact-modal-step[hidden] { display: none; }
.contact-modal-whatsapp, .contact-modal-email-choice { width: 100%; justify-content: center; text-align: center; }
.contact-modal-email-choice {
  border: none; font-family: inherit; cursor: pointer; appearance: none;
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px;
  padding: 13px 22px; border-radius: 12px;
  background: #10B981; color: #fff;
  transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.contact-modal-email-choice:hover { background: #059669; transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(16,185,129,0.6); }
.contact-modal-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.contact-modal-form input[type="text"] {
  font: inherit; padding: 11px 14px; border-radius: 10px; border: 1.5px solid var(--border); color: var(--ink);
}
.contact-modal-form input[type="text"]:focus { outline: none; border-color: var(--brand); }
.contact-modal-form .btn-primary { border: none; font-family: inherit; cursor: pointer; appearance: none; justify-content: center; margin-top: 4px; }
.contact-modal-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.contact-modal-error { color: #B3261E; font-size: 13px; margin: 0; }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero-visual { height: 320px; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .timeline::before { display: none; }
  .case-card { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .site-header nav { display: none; }
  .hero { padding: 48px 0 32px; }
  .hero-visual { height: 280px; }
}
