:root {
  --bg: #0f172a;
  --bg-soft: #111827;
  --panel: #1f2937;
  --panel-2: #243246;
  --line: #334155;
  --text: #f8fafc;
  --muted: #cbd5e1;
  --accent: #0ea5e9;
  --accent-2: #2563eb;
  --ok: #16a34a;
  --shadow: 0 18px 36px rgba(2, 8, 23, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font: 16px/1.55 "Segoe UI", Roboto, Arial, sans-serif;
  background:
    radial-gradient(1200px 600px at 0% -10%, rgba(14, 165, 233, 0.16), transparent 45%),
    radial-gradient(900px 500px at 100% 0%, rgba(37, 99, 235, 0.12), transparent 35%),
    linear-gradient(180deg, var(--bg), var(--bg-soft));
}

a {
  color: #7dd3fc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(248, 250, 252, 0.1);
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(10px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
}

.brand {
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.2px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav a {
  color: #dbeafe;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 14px;
}

.nav a.active {
  border-color: rgba(14, 165, 233, 0.45);
  background: rgba(14, 165, 233, 0.12);
}

.main {
  padding: 30px 0 50px;
}

.hero {
  margin: 8px 0 22px;
}

.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
}

.hero p {
  margin: 0;
  color: #dbeafe;
  max-width: 840px;
}

.badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border: 1px solid rgba(22, 163, 74, 0.4);
  border-radius: 999px;
  color: #dcfce7;
  background: rgba(22, 163, 74, 0.12);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.breadcrumbs {
  margin: 4px 0 16px;
  color: var(--muted);
  font-size: 14px;
}

.grid {
  display: grid;
  gap: 16px;
}

.grid-cards {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.grid-2 {
  grid-template-columns: 1.18fr 0.82fr;
}

@media (max-width: 900px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

.card {
  border: 1px solid rgba(248, 250, 252, 0.1);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(36, 50, 70, 0.95), rgba(23, 32, 45, 0.95));
  box-shadow: var(--shadow);
  padding: 20px;
}

.card h2,
.card h3 {
  margin-top: 0;
}

.muted {
  color: var(--muted);
}

.fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 720px) {
  .fields {
    grid-template-columns: 1fr;
  }
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  width: 100%;
  border-radius: 12px;
  border: 2px solid #3a4b63;
  background: #101826;
  color: #fff;
  padding: 12px;
}

input:focus,
select:focus {
  border-color: #38bdf8;
  outline: none;
}

.group {
  margin-bottom: 16px;
}

.group-title {
  margin: 0 0 8px;
  color: #bfdbfe;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  font-weight: 800;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

button {
  border: 0;
  cursor: pointer;
  border-radius: 12px;
  padding: 12px 14px;
  color: #fff;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
  font-weight: 700;
}

button.secondary {
  background: linear-gradient(180deg, #334155, #1e293b);
}

.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 720px) {
  .result-grid {
    grid-template-columns: 1fr;
  }
}

.result {
  border: 1px solid rgba(248, 250, 252, 0.1);
  border-radius: 14px;
  background: #111827;
  padding: 12px;
}

.result .label {
  color: var(--muted);
  font-size: 13px;
}

.result .value {
  margin-top: 4px;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
}

.note {
  margin-top: 12px;
  border: 1px solid rgba(14, 165, 233, 0.35);
  border-radius: 12px;
  background: rgba(14, 165, 233, 0.12);
  color: #e0f2fe;
  padding: 12px;
}

.jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.jump-links a {
  border: 1px solid rgba(248, 250, 252, 0.16);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 14px;
}

.ad-slot,
.affiliate-slot {
  border: 1px dashed rgba(248, 250, 252, 0.28);
  border-radius: 14px;
  padding: 14px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  border-top: 1px solid rgba(248, 250, 252, 0.12);
  padding: 28px 0 38px;
  color: var(--muted);
}

.footer-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 2fr 1fr 1fr;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
