:root {
  --bg: #f4f7ff;
  --bg-soft: #eef2ff;
  --surface: #ffffff;
  --text: #141b3a;
  --muted: #5b678e;
  --line: #dbe2ff;
  --primary: #5a67ff;
  --primary-2: #7a57ff;
  --shadow: 0 20px 50px rgba(53, 70, 177, 0.15);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 780px at 10% -8%, #dee6ff 0%, rgba(222, 230, 255, 0.62) 42%, rgba(244, 247, 255, 0.98) 72%, var(--bg) 100%),
    linear-gradient(180deg, #eef3ff 0%, #f4f7ff 36%, #f6f8ff 100%);
  background-repeat: no-repeat;
}

a { color: inherit; text-decoration: none; }

.container { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.page { position: relative; overflow: clip; isolation: isolate; }
.hero-bg {
  position: absolute;
  inset: -280px -12vw auto;
  height: 980px;
  background:
    radial-gradient(circle at 18% 16%, rgba(122, 87, 255, 0.24) 0%, rgba(122, 87, 255, 0.12) 30%, rgba(122, 87, 255, 0) 68%),
    radial-gradient(circle at 82% 6%, rgba(90, 103, 255, 0.2) 0%, rgba(90, 103, 255, 0.1) 32%, rgba(90, 103, 255, 0) 70%),
    linear-gradient(180deg, rgba(238, 243, 255, 0.74) 0%, rgba(244, 247, 255, 0.48) 58%, rgba(244, 247, 255, 0.14) 82%, rgba(244, 247, 255, 0) 100%);
  pointer-events: none;
  z-index: -1;
}
.hero-bg::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 220px;
  background: linear-gradient(180deg, rgba(244,247,255,0) 0%, rgba(244,247,255,.72) 55%, var(--bg) 100%);
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 30;
}

.header::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 100vw;
  height: 100%;
  background: transparent;
  border-bottom: 1px solid transparent;
  pointer-events: none;
  transition: background .22s ease, border-color .22s ease, box-shadow .22s ease;
  z-index: -1;
}

.header.is-scrolled::before {
  background: rgba(244, 247, 255, 0.82);
  border-bottom-color: rgba(219, 226, 255, 0.7);
  box-shadow: 0 10px 22px rgba(49, 64, 153, 0.08);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0.3px; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; color: #fff; font-size: 13px; font-weight: 800;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 12px 24px rgba(90, 103, 255, 0.4);
}

.nav { display: flex; gap: 22px; color: var(--muted); font-weight: 500; }
.nav a:hover { color: var(--text); }
.actions { display: flex; gap: 10px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.2;
  font-family: inherit;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn.big { padding: 14px 22px; font-size: 15px; }
.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  box-shadow: 0 12px 24px rgba(90, 103, 255, 0.35);
}
.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.9);
}

.hero { text-align: center; padding: 84px 0 72px; position: relative; }
.badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #3f4f95;
  padding: 8px 14px;
  font-weight: 600;
  margin: 0 0 18px;
}
.hero h1 { margin: 0; font-size: clamp(34px, 6vw, 64px); line-height: 1.05; }
.hero-subtitle {
  max-width: 840px;
  margin: 20px auto 30px;
  color: var(--muted);
  font-size: clamp(16px, 2.2vw, 21px);
  line-height: 1.45;
}
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.hero-metrics {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
}
.metric-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.metric-card strong { display: block; font-size: 24px; margin-bottom: 6px; }
.metric-card span { color: var(--muted); font-size: 14px; }

.section { padding: 56px 0; }
.section-head { margin-bottom: 22px; }
.section-head h2 { margin: 0 0 10px; font-size: clamp(28px, 4vw, 42px); }
.section-head p { margin: 0; color: var(--muted); }

.grid { display: grid; gap: 16px; }
.features-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.card h3 { margin: 0 0 10px; font-size: 20px; }
.card p { margin: 0; color: var(--muted); line-height: 1.5; }
.feature-card { position: relative; }
.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #eef1ff;
  margin-bottom: 12px;
}

.steps-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step-number {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  margin-bottom: 12px;
}

.cta-banner {
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(130deg, #f7f8ff, #edf1ff);
  box-shadow: var(--shadow);
  padding: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.cta-banner h2 { margin: 0 0 8px; font-size: clamp(22px, 3vw, 32px); }
.cta-banner p { margin: 0; color: var(--muted); }

.tariffs-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.tariff { display: grid; gap: 10px; }
.tariff.highlighted { border-color: #8d84ff; box-shadow: 0 0 0 2px rgba(90, 103, 255, 0.18), var(--shadow); }
.tariff-range { color: var(--muted) !important; }
.tariff-price { color: var(--text) !important; font-weight: 800; font-size: 30px; margin-bottom: 8px !important; }

.faq-list { display: grid; gap: 12px; }
.faq-item { padding: 18px 22px; }
.faq-item h3 { font-size: 18px; margin-bottom: 8px; }

.footer {
  border-top: 1px solid var(--line);
  margin-top: 50px;
  padding: 26px 0 40px;
  display: grid;
  gap: 10px;
  grid-template-columns: 1.3fr 1fr auto;
  align-items: center;
}
.footer p { margin: 0; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; color: #3a4883; }
.footer-support { color: var(--muted); }
.footer-support a { color: #2f3f88; font-weight: 700; text-decoration: none; }
.footer-support a:hover { text-decoration: underline; }
.copy { text-align: right; }

@media (max-width: 980px) {
  .header { flex-wrap: wrap; position: static; }
  .header::before,
  .header.is-scrolled::before {
    content: none !important;
    display: none !important;
  }
  .nav { order: 3; width: 100%; overflow: auto; padding-bottom: 4px; }
  .hero-metrics { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; }
  .copy { text-align: left; }
  .cta-banner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .container { width: min(1160px, calc(100% - 24px)); }
  .actions { width: 100%; }
  .actions .btn { flex: 1; }
  .actions-auth {
    gap: 10px;
  }
  .hero { padding-top: 56px; }
  .btn.big { width: 100%; }
  .hero-bg {
    inset: -220px -24vw auto;
    height: 820px;
    background:
      radial-gradient(circle at 12% 12%, rgba(122, 87, 255, 0.2) 0%, rgba(122, 87, 255, 0.08) 36%, rgba(122, 87, 255, 0) 72%),
      radial-gradient(circle at 88% 0%, rgba(90, 103, 255, 0.17) 0%, rgba(90, 103, 255, 0.07) 34%, rgba(90, 103, 255, 0) 74%),
      linear-gradient(180deg, rgba(238, 243, 255, 0.65) 0%, rgba(244, 247, 255, 0.22) 58%, rgba(244, 247, 255, 0) 100%);
  }
}

.actions-auth {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 20px;
}
.actions-auth .btn {
  min-height: 44px;
  padding-top: 10px;
  padding-bottom: 10px;
}
.logout-form { margin: 0; }
.btn-logout {
  text-decoration: none;
}


.mobile-app {
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 18px;
  align-items: center;
  border-radius: 20px;
  background: linear-gradient(120deg, #ffffff, #f3f6ff);
}
.mobile-app-content h2 { margin: 8px 0 10px; font-size: clamp(24px, 3.3vw, 36px); }
.mobile-app-content p { color: var(--muted); margin: 0; }
.mobile-badge { margin-bottom: 8px; }
.store-buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.store-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 220px;
  border-radius: 14px;
  padding: 13px 16px;
  border: 1px solid #aebcf8;
  background: linear-gradient(135deg, #ffffff, #edf2ff);
  color: #233576;
  font-weight: 800;
  box-shadow: 0 12px 22px rgba(77, 95, 201, 0.18);
}
.store-btn:hover { border-color: #7f95ef; background: linear-gradient(135deg, #fdfdff, #e7eeff); box-shadow: 0 14px 26px rgba(77, 95, 201, 0.24); }
.store-btn-apple { color: #1f2d5f; }
.store-btn-android { color: #1a6a3e; border-color: #8fd3aa; background: linear-gradient(135deg, #ffffff, #e9f9ef); }
.store-btn-android:hover { border-color: #64be89; background: linear-gradient(135deg, #fcfffd, #ddf5e7); }
.store-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}
.mobile-app-visual { display: grid; place-items: center; }
.phone-mock {
  width: 220px;
  border-radius: 24px;
  border: 1px solid #dbe2ff;
  background: linear-gradient(180deg, #ffffff, #f5f8ff);
  box-shadow: 0 22px 44px rgba(67, 84, 185, 0.2);
  padding: 14px;
}
.phone-top { font-weight: 800; color: #33408d; margin-bottom: 12px; }
.phone-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid #e4e9ff;
  border-radius: 10px;
  padding: 9px 10px;
  margin-bottom: 8px;
  background: #fff;
}
.phone-row span { color: #6070a5; font-size: 13px; }
.phone-row strong { color: #1d275f; }

@media (max-width: 980px) {
  .mobile-app { grid-template-columns: 1fr; }
  .mobile-app-visual { order: -1; }
}

.tariff-yearly {
  margin: 0 !important;
  color: #4a5b97 !important;
  font-size: 14px;
  font-weight: 600;
}
.tariff-benefit {
  margin: -2px 0 8px !important;
  color: #2f7b46 !important;
  font-size: 13px;
  font-weight: 700;
}


.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}
.preview-card {
  display: grid;
  gap: 12px;
  background: linear-gradient(135deg, #ffffff, #f5f8ff);
  border: 1px solid #dce4ff;
}
.preview-head {
  display: grid;
  gap: 6px;
}
.preview-badge {
  display: inline-flex;
  width: fit-content;
  font-size: 12px;
  font-weight: 700;
  color: #4757a8;
  background: #eef2ff;
  border: 1px solid #d4ddff;
  border-radius: 999px;
  padding: 6px 10px;
}
.preview-head strong {
  font-size: 18px;
  color: #1b275f;
}
.preview-lines {
  border: 1px solid #e3e9ff;
  border-radius: 12px;
  background: #fff;
  padding: 8px 10px;
}
.preview-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: #5a6795;
  padding: 7px 0;
  border-bottom: 1px dashed #e6ecff;
}
.preview-line:last-child {
  border-bottom: 0;
}
.preview-line b {
  color: #1d2d69;
  font-size: 14px;
}
.preview-line b.ok {
  color: #228a56;
}
.preview-line b.warn {
  color: #b66b00;
}
.preview-text {
  font-size: 14px;
  color: #5b678e !important;
}

.testimonials-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.testimonial-card { display: grid; gap: 12px; }
.testimonial-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.testimonial-top h3 { margin: 0; font-size: 20px; }
.testimonial-role { margin: 4px 0 0 !important; color: var(--muted) !important; font-size: 13px; }
.testimonial-rating { color: #f59e0b; font-weight: 800; letter-spacing: 1px; font-size: 18px; }
.testimonial-meta { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.testimonial-meta span { display: inline-flex; align-items: center; justify-content: center; width: 100%; box-sizing: border-box; text-align: center; line-height: 1.2; font-size: 12px; font-weight: 600; color: #33408d; background: #eef2ff; border: 1px solid #dbe2ff; border-radius: 999px; padding: 6px 10px; }
@media (max-width: 520px) {
  .testimonial-meta { grid-template-columns: 1fr; }
}
.testimonial-text { margin: 0 !important; color: var(--muted) !important; line-height: 1.58 !important; }
.testimonial-result { border-left: 3px solid var(--primary); padding-left: 10px; font-weight: 700; color: #1f2c61; font-size: 14px; }

.knowledge-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.knowledge-card { display: grid; gap: 8px; }
.knowledge-category { display: inline-flex; width: fit-content; font-size: 12px; font-weight: 700; color: #33408d; background: #eef2ff; border: 1px solid #dbe2ff; border-radius: 999px; padding: 4px 9px; }
.knowledge-card h3 { margin: 0; font-size: 19px; }
.knowledge-link { color: #4656c9; font-weight: 700; }

.actions .btn, .actions-auth .btn { min-height: 42px; }

@media (max-width: 980px) {
  .header::before,
  .header.is-scrolled::before {
    content: none !important;
    display: none !important;
  }
}
