/* Happok — styles.css
   Системный шрифтовой стек, без внешних запросов. */

:root {
  --bg: #ffffff;
  --bg-soft: #f5f6f7;
  --text: #0b0b0f;
  --muted: #6b7280;
  --accent: #1fa463;
  --accent-dark: #178a52;
  --dark: #0b0b0f;
  --border: #e9ebee;
  --shadow: 0 1px 2px rgba(11, 11, 15, .04), 0 8px 24px rgba(11, 11, 15, .05);
  --shadow-sm: 0 1px 2px rgba(11, 11, 15, .05);
  --radius: 18px;
  --radius-lg: 22px;
  --maxw: 1120px;
  --font: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4vw + 1rem, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2vw + .8rem, 2.1rem); font-weight: 750; }
h3 { font-size: 1.18rem; font-weight: 700; }
p { margin: 0 0 1em; }

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

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

.section { padding: 64px 0; }
.section--soft { background: var(--bg-soft); }
.muted { color: var(--muted); }
.center { text-align: center; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 640px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 650;
  padding: 13px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .06s ease, background .15s ease, box-shadow .15s ease;
  text-decoration: none;
  line-height: 1;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-dark); color: #fff; }
.btn--dark { background: var(--dark); color: #fff; }
.btn--dark:hover { background: #23232b; color: #fff; }
.btn--outline { background: #fff; color: var(--text); border-color: var(--border); }
.btn--outline:hover { border-color: #cdd2d8; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn--sm { padding: 9px 18px; font-size: .92rem; }
.btn--lg { padding: 15px 30px; font-size: 1.05rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -.02em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--dark);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.15rem;
  flex: none;
}
.main-nav { margin-left: 8px; }
.main-nav ul { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.main-nav a { color: var(--text); font-weight: 550; font-size: .98rem; }
.main-nav a:hover { color: var(--accent-dark); text-decoration: none; }
.header-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Hero */
.hero { padding: 56px 0 40px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 48px;
  align-items: center;
}
.hero h1 { margin-bottom: .35em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* Widget card (hero right) */
.widget {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 22px;
}
.widget-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(31, 164, 99, .1);
  color: var(--accent-dark);
  font-weight: 650; font-size: .9rem;
  padding: 6px 12px; border-radius: 999px;
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(31,164,99,.18); }
.key-row {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: .9rem;
  color: var(--muted);
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
  overflow: hidden;
}
.key-row code { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.widget-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.metric { background: var(--bg-soft); border-radius: 12px; padding: 12px 14px; }
.metric .label { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.metric .value { font-weight: 750; font-size: 1.1rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: .82rem; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 999px; padding: 5px 12px; color: var(--muted); font-weight: 550; }

/* Stats row */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
  padding-top: 34px;
  border-top: 1px solid var(--border);
}
.stat .num { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; }
.stat .cap { color: var(--muted); font-size: .95rem; }

/* Grid + cards */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.card--soft { background: var(--bg-soft); box-shadow: none; }

.platform-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: transform .1s ease, box-shadow .15s ease, border-color .15s ease;
}
.platform-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow); border-color: #d7dbe0; }
.platform-card .pc-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--bg-soft);
  display: grid; place-items: center; flex: none; color: var(--text);
}
.platform-card .pc-icon svg { width: 26px; height: 26px; }
.platform-card .pc-title { font-weight: 700; }
.platform-card .pc-sub { font-size: .88rem; color: var(--muted); }
.platform-card .pc-arrow { margin-left: auto; color: var(--muted); }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 16px; }
.step {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}
.step-num {
  counter-increment: step;
  flex: none;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; font-weight: 750;
}
.step-num::before { content: counter(step); }
.step h3 { margin-bottom: .25em; }
.step p { margin: 0; color: var(--muted); }

/* Feature list */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks li svg { flex: none; margin-top: 3px; color: var(--accent); width: 18px; height: 18px; }

/* Download block */
.download-box {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
}
.dl-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.dl-meta { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: .9rem; }
.dl-meta span strong { color: var(--text); font-weight: 650; }

/* Pricing */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.plan {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px; text-align: center;
  display: flex; flex-direction: column;
}
.plan--featured { border-color: var(--accent); box-shadow: 0 10px 30px rgba(31,164,99,.12); position: relative; }
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: .78rem; font-weight: 650;
  padding: 5px 14px; border-radius: 999px;
}
.plan .plan-name { font-weight: 700; font-size: 1.1rem; }
.plan .plan-price { font-size: 2.1rem; font-weight: 800; margin: 8px 0 2px; letter-spacing: -.02em; }
.plan .plan-per { color: var(--muted); font-size: .92rem; margin-bottom: 18px; }
.plan .btn { width: 100%; margin-top: auto; }
.pay-note { text-align: center; color: var(--muted); font-size: .92rem; margin-top: 18px; }

/* Offer inline */
.offer {
  background: linear-gradient(180deg, #fff, var(--bg-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px;
}
.offer .offer-body { flex: 1 1 340px; }
.offer .offer-body h3 { margin-bottom: .3em; }
.offer .offer-body p { margin: 0; color: var(--muted); }

/* Breadcrumbs */
.breadcrumbs { padding: 20px 0 0; font-size: .92rem; color: var(--muted); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.breadcrumbs li::after { content: "/"; margin-left: 8px; color: #c3c8cf; }
.breadcrumbs li:last-child::after { content: ""; }
.breadcrumbs a { color: var(--muted); }

/* FAQ accordion */
.faq { display: grid; gap: 12px; max-width: 820px; }
.faq-item { border: 1px solid var(--border); border-radius: 14px; background: #fff; overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0;
  font-family: inherit; font-size: 1.05rem; font-weight: 650; color: var(--text);
  padding: 18px 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-q .faq-icon { flex: none; transition: transform .2s ease; color: var(--muted); }
.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(45deg); color: var(--accent); }
.faq-a { padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height .25s ease, padding .25s ease; }
.faq-a p { color: var(--muted); }
.faq-a[hidden] { display: block; }
.faq-item.open .faq-a { padding: 0 20px 18px; }

/* Other platforms */
.other-platforms { display: flex; flex-wrap: wrap; gap: 10px; }
.other-platforms a { display: inline-flex; align-items: center; gap: 8px; }

/* Footer */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding: 54px 0 30px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 30px; }
.footer-brand p { color: var(--muted); font-size: .95rem; max-width: 300px; }
.footer-col h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col a { color: var(--text); font-size: .95rem; }
.footer-col a:hover { color: var(--accent-dark); }
.footer-bottom { border-top: 1px solid var(--border); margin-top: 34px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; }
.disclaimer { color: var(--muted); font-size: .86rem; max-width: 720px; }
.footer-year { color: var(--muted); font-size: .86rem; }

/* Prose */
.prose h2 { margin-top: 1.4em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 0; }

.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.section-head { max-width: 720px; margin-bottom: 34px; }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 48px 0; }
  .main-nav, .header-actions { display: none; }
  .nav-toggle { display: inline-flex; }

  .site-nav-mobile {
    display: none;
    position: fixed;
    inset: 68px 0 0;
    background: #fff;
    padding: 24px 20px 40px;
    overflow-y: auto;
    z-index: 49;
  }
  .site-nav-mobile.open { display: block; }
  .site-nav-mobile ul { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 4px; }
  .site-nav-mobile a { display: block; padding: 14px 6px; font-size: 1.1rem; font-weight: 600; color: var(--text); border-bottom: 1px solid var(--border); }
  .site-nav-mobile .m-actions { display: grid; gap: 10px; }
  .site-nav-mobile .btn { width: 100%; }

  .stats { grid-template-columns: 1fr; gap: 14px; text-align: center; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 22px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

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

/* Desktop: hide mobile nav container */
@media (min-width: 721px) {
  .site-nav-mobile { display: none !important; }
}

/* Таблицы сравнения (content-страницы) */
.table-wrap { overflow-x: auto; margin: 20px 0; -webkit-overflow-scrolling: touch; }
.cmp { width: 100%; border-collapse: collapse; font-size: .97rem; min-width: 420px; }
.cmp th, .cmp td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.cmp thead th { background: var(--bg-soft); font-weight: 700; color: var(--text); }
.cmp tbody th[scope="row"] { font-weight: 600; color: var(--text); background: transparent; }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: none; }
.cmp .cmp-hl { background: rgba(31, 164, 99, .07); }
.cmp thead .cmp-hl { background: rgba(31, 164, 99, .14); color: var(--accent-dark); }
