:root {
  --bg: #0b1220;
  --bg-soft: #101a2e;
  --card: #14203a;
  --border: #22304f;
  --text: #e8eefb;
  --muted: #93a3c0;
  --accent: #3b82f6;
  --accent-2: #60a5fa;
  --radius: 14px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); text-align: center; margin-bottom: 12px; }
.section-sub { text-align: center; color: var(--muted); margin-bottom: 40px; }

section { padding: 72px 0; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-size: 1.35rem; font-weight: 800; color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 9px; }
.logo span { color: var(--accent-2); }
.logo-img { width: 30px; height: 30px; display: block; }
.main-nav { display: flex; gap: 26px; }
.main-nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; transition: color .2s; }
.main-nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-switch { display: flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.lang-switch button {
  background: transparent; color: var(--muted); border: none;
  padding: 6px 10px; cursor: pointer; font-size: 0.8rem; font-weight: 600;
}
.lang-switch button.active { background: var(--accent); color: #fff; }

.burger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; }
.burger span { width: 22px; height: 2px; background: var(--text); display: block; }

/* Hero */
.hero {
  padding: 110px 0 90px;
  text-align: center;
  background:
    radial-gradient(ellipse 60% 50% at 50% -10%, rgba(59, 130, 246, 0.25), transparent),
    var(--bg);
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; max-width: 800px; margin: 0 auto 20px; }
.hero-sub { color: var(--muted); font-size: 1.1rem; max-width: 620px; margin: 0 auto 32px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }

.hero-stats { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; }
.stat b { display: block; font-size: 1.5rem; color: var(--accent-2); }
.stat span { color: var(--muted); font-size: 0.9rem; }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 28px; border-radius: 10px;
  text-decoration: none; font-weight: 600; font-size: 0.98rem; transition: all .2s;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); }
.btn-ghost { color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-outline { color: var(--accent-2); border: 1px solid var(--accent); }
.btn-outline:hover { background: var(--accent); color: #fff; }

/* Steps */
.steps { padding-top: 20px; }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 22px; margin-top: 40px; }
.step {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; position: relative;
}
.step-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: #fff; font-weight: 800; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.93rem; }

/* Plans */
.plans { background: var(--bg-soft); }
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 24px; }
.plan-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 28px; display: flex; flex-direction: column; position: relative;
}
.plan-card.featured { border-color: var(--accent); box-shadow: 0 0 40px rgba(59, 130, 246, 0.15); }
.badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 0.75rem; font-weight: 700;
  padding: 4px 14px; border-radius: 20px; white-space: nowrap;
}
.plan-card h3 { font-size: 1.3rem; margin-bottom: 4px; }
.plan-desc { color: var(--muted); font-size: 0.9rem; margin-bottom: 18px; }
.plan-price { margin-bottom: 22px; }
.plan-price b { font-size: 2.4rem; }
.plan-price span { color: var(--muted); margin-left: 6px; }
.plan-card ul { list-style: none; margin-bottom: 26px; flex: 1; }
.plan-card li { padding: 7px 0; border-bottom: 1px solid var(--border); color: var(--muted); font-size: 0.95rem; }
.plan-card li::before { content: "✓ "; color: var(--accent-2); font-weight: 700; }
.plan-card .btn { text-align: center; }

/* Included strip */
.included {
  margin-top: 40px; text-align: center;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 28px;
}
.included h3 { font-size: 1.05rem; margin-bottom: 18px; color: var(--accent-2); }
.included-grid { display: flex; flex-wrap: wrap; gap: 10px 14px; justify-content: center; }
.included-grid span {
  background: var(--bg); border: 1px solid var(--border); border-radius: 20px;
  padding: 8px 16px; font-size: 0.9rem; color: var(--text);
}

.included-chip-btn {
  background: var(--bg); border: 1px dashed var(--accent); border-radius: 20px;
  padding: 8px 16px; font-size: 0.9rem; color: var(--text);
  font-family: inherit; cursor: pointer; transition: background .2s, border-color .2s;
}
.included-chip-btn:hover { background: var(--card); border-color: var(--accent-2); }

/* Apps modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(5, 9, 18, 0.75); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay[hidden] { display: none; }
.modal {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius);
  max-width: 680px; width: 100%; max-height: 85vh; overflow-y: auto;
  padding: 34px; position: relative;
}
.modal-close {
  position: absolute; top: 14px; right: 18px;
  background: none; border: none; color: var(--muted); font-size: 1.7rem;
  cursor: pointer; line-height: 1;
}
.modal-close:hover { color: var(--text); }
.modal h3 { font-size: 1.35rem; margin-bottom: 8px; }
.modal-sub { color: var(--muted); font-size: 0.95rem; margin-bottom: 24px; }
.apps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.apps-cat { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; }
.apps-cat h4 { font-size: 0.98rem; margin-bottom: 6px; }
.apps-cat p { color: var(--muted); font-size: 0.9rem; }
.apps-more { color: var(--muted); font-size: 0.9rem; margin-top: 22px; text-align: center; }

/* Info modal */
.modal-narrow { max-width: 560px; }
.modal-icon { font-size: 2.2rem; margin-bottom: 10px; }
.modal-list { list-style: none; margin: 0 0 20px; padding: 0; }
.modal-list li {
  padding: 9px 0 9px 26px; position: relative;
  color: var(--muted); font-size: 0.95rem; border-bottom: 1px solid var(--border);
}
.modal-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-2); font-weight: 700; }
.modal-outro {
  color: var(--text); background: var(--card); border: 1px solid var(--border);
  border-radius: 10px; padding: 14px 16px; font-size: 0.95rem; margin: 0;
}

/* Contact form */
#contactForm { display: flex; flex-direction: column; gap: 6px; }
#contactForm label { font-size: 0.9rem; color: var(--muted); margin-top: 10px; }
#contactForm input, #contactForm textarea {
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); font-family: inherit; font-size: 0.98rem;
  padding: 11px 14px; outline: none; transition: border-color .2s;
}
#contactForm input:focus, #contactForm textarea:focus { border-color: var(--accent); }
#contactForm textarea { resize: vertical; min-height: 110px; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.form-submit { margin-top: 16px; cursor: pointer; border: none; font-family: inherit; }
.form-submit:disabled { opacity: 0.6; cursor: wait; }
.form-status { margin-top: 12px; font-size: 0.95rem; border-radius: 10px; padding: 12px 14px; }
.form-status.ok { background: rgba(34, 197, 94, 0.12); border: 1px solid #22c55e; color: #86efac; }
.form-status.err { background: rgba(239, 68, 68, 0.12); border: 1px solid #ef4444; color: #fca5a5; }
.form-status a { color: inherit; }
.contacts-alt { margin-top: 10px; font-size: 0.9rem; }
.contacts-alt a { color: var(--accent-2); }
.contacts .contacts-alt { margin-bottom: 0; }
.open-contact { cursor: pointer; border: none; font-family: inherit; }

/* Tech strip */
.tech-strip { margin-top: 44px; text-align: center; }
.tech-strip > span { color: var(--muted); font-size: 0.9rem; display: block; margin-bottom: 16px; }
.tech-badges { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tech-badges span {
  border: 1px solid var(--border); border-radius: 8px; padding: 8px 18px;
  color: var(--muted); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.3px;
}

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Features */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; margin-top: 40px; }
.feature { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.f-icon { font-size: 1.8rem; margin-bottom: 12px; }
.feature h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 0.93rem; }

/* Support */
.support-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; margin-top: 40px; }
.support-card {
  background: linear-gradient(160deg, var(--card), var(--bg-soft));
  border: 1px solid var(--border); border-radius: var(--radius); padding: 28px;
  transition: border-color .2s, transform .2s;
}
.support-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.s-icon { font-size: 1.8rem; margin-bottom: 12px; }
.support-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.support-card p { color: var(--muted); font-size: 0.93rem; }
.support-cta {
  margin-top: 44px; text-align: center;
  background: var(--card); border: 1px solid var(--accent);
  border-radius: var(--radius); padding: 34px 28px;
  box-shadow: 0 0 40px rgba(59, 130, 246, 0.12);
}
.support-cta p { color: var(--text); font-size: 1.05rem; margin-bottom: 20px; }

/* FAQ */
.faq { background: var(--bg-soft); }
.faq-list { max-width: 760px; margin: 36px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq-list details {
  background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 18px 22px;
}
.faq-list summary { cursor: pointer; font-weight: 600; list-style: none; position: relative; padding-right: 28px; }
.faq-list summary::after { content: "+"; position: absolute; right: 0; top: 0; color: var(--accent-2); font-size: 1.3rem; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { color: var(--muted); margin-top: 12px; font-size: 0.95rem; }

/* Contacts */
.contacts { text-align: center; }
.contacts p { color: var(--muted); margin-bottom: 26px; }
.contacts-note { margin-top: 18px; font-size: 0.9rem; }
.contacts .contacts-note { margin-bottom: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: center; margin-bottom: 18px; }
.footer-nav a { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.footer-nav a:hover { color: var(--text); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 0.9rem; }

/* To top button */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent); color: #fff; border: none;
  font-size: 1.35rem; line-height: 1; cursor: pointer;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .25s, transform .25s, visibility .25s, background .2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--accent-2); }

/* Mobile */
@media (max-width: 780px) {
  .main-nav {
    display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg-soft); border-bottom: 1px solid var(--border);
    flex-direction: column; padding: 18px 20px; gap: 16px;
  }
  .main-nav.open { display: flex; }
  .burger { display: flex; }
  section { padding: 56px 0; }
  .hero { padding: 80px 0 64px; }
  .hero-stats { gap: 26px; }
}
