:root {
  color-scheme: light;
  --accent: #2481cc;
  --text: #1e293b;
  --muted: #64748b;
  --bg: #f8fafc;
  --card: #fff;
  --border: #e2e8f0;
}
* { box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  margin: 0;
  padding: 0;
}
a { color: var(--accent); }
.wrap { max-width: 720px; margin: 0 auto; }
.topbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 10px 16px;
  font-size: 0.9rem;
}
.topbar .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.topbar a { color: var(--accent); text-decoration: none; font-weight: 600; }
.topbar a:hover { text-decoration: underline; }
.topbar-right { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.lang-select {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 0.85rem;
  background: #fff;
  color: var(--text);
}
.hero {
  background: linear-gradient(160deg, #eef2ff 0%, #f8fafc 45%, #ecfdf5 100%);
  padding: 40px 16px 56px;
}
.logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  background: linear-gradient(135deg, #2481cc, #6366f1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(36, 129, 204, 0.25);
}
h1 { font-size: clamp(1.75rem, 5vw, 2.25rem); margin: 20px 0 12px; line-height: 1.2; }
h2 { font-size: 1.15rem; margin: 0 0 12px; color: #0f172a; }
h3 { font-size: 1rem; margin: 16px 0 8px; color: #0f172a; }
.lead { font-size: 1.05rem; color: var(--muted); max-width: 560px; margin: 0 0 20px; }
main { padding: 40px 16px 56px; }
.page-main { padding: 32px 16px 56px; }
.card {
  background: var(--card);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  margin-bottom: 20px;
}
.card-compact { padding: 20px 18px; }
ul, ol { padding-left: 1.25rem; margin: 0; }
li { margin-bottom: 8px; font-size: 0.95rem; }
.data-box {
  background: #f1f5f9;
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 0.9rem;
  color: #475569;
}
.meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 24px; }
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 16px rgba(36, 129, 204, 0.3);
}
.btn:hover { filter: brightness(1.03); }
.btn-outline {
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--accent);
  background: #fff;
}
.btn-outline:hover { background: #eff6ff; }
.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: 10px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
/* RU: MAX primary; EN: Telegram primary (Mini App opens only inside a messenger) */
html[lang="ru"] #hero-btn-max,
html[lang="en"] #hero-btn-telegram {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 16px rgba(36, 129, 204, 0.3);
  border: none;
}
html[lang="ru"] #hero-btn-max:hover,
html[lang="en"] #hero-btn-telegram:hover { filter: brightness(1.03); }
html[lang="ru"] #hero-btn-telegram,
html[lang="en"] #hero-btn-max {
  display: inline-block;
  color: var(--accent);
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--accent);
  background: #fff;
}
html[lang="ru"] #hero-btn-telegram:hover,
html[lang="en"] #hero-btn-max:hover { background: #eff6ff; }
html[lang="ru"] #hero-btn-max { order: -1; }
html[lang="en"] #hero-btn-telegram { order: -1; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.service-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.service-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 4px 16px rgba(36, 129, 204, 0.12);
}
.service-card .icon { font-size: 1.75rem; margin-bottom: 8px; }
.service-card h3 { margin: 0 0 6px; font-size: 1rem; }
.service-card p { margin: 0; font-size: 0.85rem; color: var(--muted); line-height: 1.45; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 10px;
  background: #fff;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 600;
  font-size: 0.95rem;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  float: right;
  color: var(--muted);
  font-weight: 400;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item .faq-body {
  padding: 0 16px 14px;
  font-size: 0.92rem;
  color: #475569;
}
.privacy-banner {
  display: inline-block;
  margin-bottom: 20px;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  font-size: 0.95rem;
  color: #334155;
}
.privacy-banner a { font-weight: 600; text-decoration: none; }
.privacy-banner a:hover { text-decoration: underline; }
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin-top: 12px;
}
.pricing-table th,
.pricing-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.pricing-table th { color: #475569; font-weight: 600; background: #f8fafc; }
.pricing-table td:last-child,
.pricing-table th:last-child { text-align: right; white-space: nowrap; }
.pricing-formula {
  margin-top: 16px;
  padding: 14px 16px;
  background: #eff6ff;
  border-radius: 12px;
  font-size: 0.9rem;
  color: #1e40af;
  line-height: 1.55;
}
.pricing-note { margin-top: 12px; font-size: 0.85rem; color: var(--muted); }
.badge-free {
  display: inline-block;
  background: #dcfce7;
  color: #166534;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.85rem;
}
.pricing-zone-title { margin: 20px 0 8px; font-size: 1rem; color: #0f172a; }
.pricing-zone-title:first-of-type { margin-top: 12px; }
.breadcrumb {
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 16px;
}
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.legal-page .wrap {
  background: #fff;
  border-radius: 16px;
  padding: 32px 24px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}
footer {
  padding: 32px 16px 48px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}
footer a { color: var(--accent); text-decoration: none; }
footer a:hover { text-decoration: underline; }
.pricing-tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.pricing-tier {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 16px;
  background: #fff;
}
.pricing-tier.featured {
  border-color: #93c5fd;
  box-shadow: 0 4px 20px rgba(36, 129, 204, 0.12);
}
.pricing-tier h3 { margin: 0 0 4px; font-size: 1.05rem; }
.pricing-tier .price {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  margin: 8px 0 12px;
}
.pricing-tier ul { padding-left: 1.1rem; margin: 0; }
.pricing-tier li { font-size: 0.85rem; margin-bottom: 6px; }
.pricing-axis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.pricing-axis-item {
  background: #f8fafc;
  border-radius: 12px;
  padding: 14px;
  font-size: 0.9rem;
}
.pricing-axis-item strong { display: block; margin-bottom: 4px; color: #0f172a; }
