:root {
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-soft: #f1f5f9;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;

  --primary: #1d4ed8;
  --primary-700: #1e40af;
  --accent: #15803d;
  --accent-700: #166534;
  --warn: #d97706;
  --danger: #dc2626;

  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; }
h1 { font-size: 2.4rem; font-weight: 700; }
h2 { font-size: 1.75rem; font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }
input, select, textarea { font: inherit; color: inherit; }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.94rem;
  border: 1px solid transparent;
  transition: all 150ms;
  line-height: 1.2;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-700); }
.btn-ghost {
  background: #fff;
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover {
  background: var(--bg-alt);
  border-color: var(--text-dim);
}
.btn-block { width: 100%; justify-content: center; }

.eyebrow {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 8px;
}
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin: 8px 0 12px;
}
.section-subtitle {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin: 0;
}
.tag {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
}
.badge-green {
  display: inline-flex;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}
.badge-yellow {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}
.badge-red {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}
.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  font-weight: 700;
  color: var(--text);
  font-size: 1rem;
}
.brand:hover { text-decoration: none; }
.brand-logo { width: 28px; height: 28px; }
.brand-tld { color: var(--primary); }
.nav-links { display: flex; gap: 24px; }
.nav-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-actions { display: flex; gap: 8px; }
.nav-burger {
  display: none;
  width: 36px;
  height: 36px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  align-items: center;
  padding: 0;
}
.nav-burger span {
  width: 16px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: 200ms;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

main > section { padding: 72px 0; }

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -0.01em;
  margin: 8px 0 16px;
}
.hero-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 540px;
  margin-bottom: 24px;
}
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-aside {
  padding: 20px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.hero-aside h3 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 4px;
}
.hero-aside .rating-row {
  display: grid;
  grid-template-columns: 28px 1fr 60px 80px;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.92rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.feature-card {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 150ms;
}
.feature-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: #eff6ff;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.feature-icon svg { width: 20px; height: 20px; }
.feature-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.feature-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

.blocks-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.block-card {
  position: relative;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}
.block-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}
.block-card--primary::before { background: var(--primary); }
.block-card--accent::before { background: var(--accent); }
.block-num {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.block-card--primary .block-num { color: var(--primary); }
.block-card--accent .block-num { color: var(--accent); }
.block-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.block-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}
.block-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}
.block-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 12px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.92rem;
}
.block-list li svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}
.block-card--primary .block-list li svg { color: var(--primary); }
.block-card--accent .block-list li svg { color: var(--accent); }
.block-meta {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin: 0;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.how-step {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.how-step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.how-step-title {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}
.how-step-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 32px;
}
.stat {
  padding: 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
}
.stat-num {
  display: block;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.88rem;
  color: var(--text-muted);
}
.rating-preview {
  max-width: 760px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.rating-row {
  display: grid;
  grid-template-columns: 50px 1.4fr 1fr 80px 100px;
  gap: 16px;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  font-size: 0.94rem;
}
.rating-row:last-child { border-bottom: 0; }
.rating-row.is-header {
  background: var(--bg-alt);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--text-muted);
}
.rating-rank { color: var(--text-muted); font-weight: 600; }
.rating-name { font-weight: 600; color: var(--text); }
.rating-region { color: var(--text-muted); }
.rating-score { font-weight: 700; font-variant-numeric: tabular-nums; }

.cta-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 28px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.cta .section-title { margin: 0; }
.cta-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 40px 0 20px;
  margin-top: 24px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.footer-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  font-weight: 600;
  margin: 0 0 10px;
}
.footer-list li { margin-bottom: 6px; }
.footer-list a, .footer-col p {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.footer-list a:hover { color: var(--text); text-decoration: none; }
.footer-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  max-width: 280px;
  margin: 8px 0 0;
}
.footer-bottom {
  padding-top: 16px;
  color: var(--text-dim);
  font-size: 0.82rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-bottom p {
  margin: 0;
}

.footer-credit a {
  color: var(--primary);
  font-weight: 500;
}

.footer-credit a:hover {
  text-decoration: underline;
}

.login-page {
  min-height: 100vh;
  background: var(--bg-alt);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 24px;
}
.login-page .brand { font-size: 1.05rem; }
.login-card {
  width: 100%;
  max-width: 420px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.login-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.login-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin: 0;
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 4px;
}
.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-row label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}
.form-row-inline {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 4px 0;
}
.form-control {
  padding: 10px 12px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 0.94rem;
  width: 100%;
  transition: border-color 120ms, box-shadow 120ms;
}
.form-control:focus {
  outline: 0;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}
.form-control::placeholder { color: var(--text-dim); }
.checkbox {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 0.88rem;
  color: var(--text-muted);
  cursor: pointer;
}
.checkbox input { accent-color: var(--primary); }
.link-muted {
  color: var(--text-muted);
  font-size: 0.86rem;
  text-decoration: none;
}
.link-muted:hover { color: var(--primary); text-decoration: underline; }
.login-foot {
  text-align: center;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.86rem;
  margin: 0;
}
.login-foot a { color: var(--primary); font-weight: 500; }
.login-back { text-align: center; font-size: 0.86rem; margin: 0; }
.login-back a { color: var(--text-muted); }
.login-back a:hover { color: var(--primary); }

@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .how-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-inner { gap: 32px; }
}

@media (max-width: 900px) {
  main > section { padding: 56px 0; }
  .nav-burger { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 12px 24px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: all 180ms;
    align-items: stretch;
  }
  .nav-links.open {
    transform: none;
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a { padding: 10px 0; }
  .hero-inner { grid-template-columns: 1fr; }
  .blocks-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .rating-row {
    grid-template-columns: 36px 1fr 70px 90px;
    gap: 10px;
    padding: 10px 14px;
  }
  .rating-region { display: none; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  main > section { padding: 40px 0; }
  .nav-actions .btn-ghost { display: none; }
  .features-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .login-card { padding: 22px; }
  .rating-row {
    grid-template-columns: 28px 1fr 60px 80px;
    padding: 10px 12px;
    gap: 8px;
    font-size: 0.88rem;
  }
}

.btn-lg {
  padding: 12px 22px;
  font-size: 0.98rem;
}

.hero-content {
  display: flex;
  flex-direction: column;
  max-width: 760px;
}

.feature-icon {
  width: auto;
  height: auto;
  background: transparent;
  border: 0;
  display: inline-flex;
  margin-bottom: 12px;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
}

.how-step-num {
  width: auto;
  height: auto;
  background: transparent;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  display: inline;
  border-radius: 0;
  margin-bottom: 0;
  padding: 0;
}

.footer-brand .brand {
  margin-bottom: 4px;
}
