/*
  Визуальная тема максимально приближена к Flutter-приложению:
  - те же фирменные цвета из main.dart:
    #1E3A8A, #3B82F6, #06B6D4, #10B981
  - те же округления карточек/кнопок (20 / 16)
  - похожие тени и градиенты (как в SliverAppBar и карточках).
*/

:root {
  /* Фон как в "синем" градиенте приложения. */
  --bg-1: #1e3a8a;
  --bg-2: #3b82f6;
  --bg-3: #06b6d4;
  /* Поверхности/текст в стиле Material карточек на тёмном фоне. */
  --surface: #0f172a;
  --surface-soft: #1e293b;
  --surface-strong: #111827;
  --text: #f8fafc;
  --muted: #cbd5e1;
  --accent: #3b82f6;
  --accent-2: #06b6d4;
  --accent-3: #10b981;
  --border: rgba(148, 163, 184, 0.35);
  --shadow: 0 10px 24px rgba(15, 23, 42, 0.32);
  --radius: 20px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  line-height: 1.6;
  /* Фон близок к градиентам SplashScreen/главной шапки приложения. */
  background:
    radial-gradient(700px 360px at 8% -8%, rgba(59, 130, 246, 0.26), transparent 68%),
    radial-gradient(650px 330px at 92% -12%, rgba(6, 182, 212, 0.22), transparent 70%),
    linear-gradient(150deg, var(--bg-1) 0%, var(--bg-2) 52%, var(--bg-3) 100%);
}

a {
  color: #9fd0ff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1140px, 94vw);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  /* Шапка в стиле AppBar: полупрозрачный сине-голубой градиент. */
  background: linear-gradient(
    135deg,
    rgba(30, 58, 138, 0.9) 0%,
    rgba(59, 130, 246, 0.84) 50%,
    rgba(6, 182, 212, 0.78) 100%
  );
  border-bottom: 1px solid rgba(224, 242, 254, 0.32);
  -webkit-backdrop-filter: blur(14px) saturate(125%);
  backdrop-filter: blur(14px) saturate(125%);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
  font-size: 16px;
  white-space: nowrap;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.25);
}

.brand__icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.35);
}

.brand__text {
  line-height: 1;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.nav a {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 13px;
  transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.nav a:hover {
  text-decoration: none;
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.52);
}

.hero {
  padding: 58px 0 26px;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 18px;
}

.card {
  /* Карточки по духу как в приложении: глубокий фон + мягкая тень. */
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.9) 0%, rgba(30, 41, 59, 0.9) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}

.title {
  margin: 0 0 10px;
  font-size: clamp(29px, 5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #ffffff;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 2.4vw, 18px);
}

.chips {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #eff6ff;
  border: 1px solid rgba(125, 211, 252, 0.42);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.28), rgba(6, 182, 212, 0.2));
}

.cta-list {
  margin: 0;
  padding-left: 18px;
}

.section {
  padding: 18px 0 8px;
}

.section h2 {
  margin: 20px 0 12px;
  font-size: clamp(23px, 3vw, 30px);
  letter-spacing: -0.02em;
  color: #ffffff;
}

.section h3 {
  letter-spacing: -0.01em;
}

.muted {
  color: var(--muted);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.list {
  margin: 10px 0 0;
  padding-left: 18px;
}

.list li + li {
  margin-top: 6px;
}

.notice {
  border-left: 4px solid #f59e0b;
  background: rgba(245, 158, 11, 0.14);
  padding: 12px 14px;
  border-radius: 10px;
}

.ok {
  border-left-color: #10b981;
  background: rgba(16, 185, 129, 0.16);
}

.danger {
  border-left-color: #ef4444;
  background: rgba(239, 68, 68, 0.16);
}

.kpi {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.kpi .card {
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.kpi .card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.6);
}

.kpi .card strong {
  display: block;
  margin-bottom: 5px;
  font-size: clamp(24px, 3vw, 30px);
  color: #ffffff;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  border-radius: 12px;
  overflow: hidden;
}

.table th,
.table td {
  border: 1px solid rgba(148, 163, 184, 0.36);
  padding: 11px;
  text-align: left;
  vertical-align: top;
}

.table th {
  background: rgba(59, 130, 246, 0.2);
  color: #ffffff;
}

.footer {
  margin-top: 28px;
  padding: 24px 0 38px;
  border-top: 1px solid rgba(164, 201, 255, 0.25);
  color: var(--muted);
  font-size: 14px;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

.btn {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 16px;
  border: 1px solid rgba(125, 211, 252, 0.55);
  color: #ffffff;
  background: linear-gradient(135deg, #3b82f6 0%, #06b6d4 70%, #10b981 100%);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.32);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 12px 30px rgba(7, 124, 176, 0.34);
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}

/* Адаптация под мобильные:
   - выстраиваем блоки в колонку,
   - уменьшаем отступы для плотного, но удобного чтения. */
@media (max-width: 950px) {
  .hero__grid,
  .grid-2,
  .grid-3,
  .kpi {
    grid-template-columns: 1fr;
  }

  .topbar__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .card {
    padding: 18px;
  }
}
