:root,
html[data-theme="light"] {
  --bg: #eef1f6;
  --card: #ffffff;
  --line: #e6e8ee;
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #2563eb;
  --shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
  --theme-track: #e5e7eb;
  --theme-knob: #ffffff;
  --nav-on: #eff6ff;
  --surface: #f8fafc;
  --badge-bg: #eef2ff;
}

html[data-theme="dark"] {
  --bg: #0f141c;
  --card: #171e2b;
  --line: #2a3444;
  --text: #e8edf5;
  --muted: #9aa4b2;
  --accent: #60a5fa;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.28);
  --theme-track: #2a3444;
  --theme-knob: #3b82f6;
  --nav-on: rgba(96, 165, 250, 0.16);
  --surface: #121820;
  --badge-bg: #1e3a5f;
}

html {
  color-scheme: light;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  font-family: Vazirmatn, Tahoma, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
}

.nav-bar {
  position: sticky;
  top: 0;
  z-index: 2;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(12px);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
  padding: 16px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #3b82f6;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.logo-mark svg {
  width: 18px;
  height: 18px;
}

.nav-links {
  display: flex;
  gap: 8px;
  align-items: center;
}

.nav-links a:not(.btn) {
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 12px;
}

.nav-links a:not(.btn):hover,
.nav-links a.is-on {
  background: var(--nav-on);
  color: var(--accent);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 0;
  border-radius: 999px;
  background: var(--theme-track);
  cursor: pointer;
  min-height: 0;
}

.theme-toggle span {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
}

.theme-toggle svg {
  width: 15px;
  height: 15px;
}

html[data-theme="light"] .theme-toggle .is-light,
html[data-theme="dark"] .theme-toggle .is-dark {
  background: var(--theme-knob);
  color: #fff;
}

html[data-theme="light"] .theme-toggle .is-light {
  color: #111827;
}

.hero,
.section {
  padding: 56px 0;
}

.eyebrow,
.section-kicker {
  color: var(--accent);
  font-weight: 800;
  margin: 0 0 14px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}

h1 {
  font-size: clamp(22px, 5vw, 36px);
  line-height: 1.4;
  margin: 8px 0 16px;
  font-weight: 800;
  max-width: 22ch;
}

h1 span {
  color: var(--accent);
}

h2 {
  font-size: clamp(18px, 4vw, 26px);
  line-height: 1.4;
  margin: 0 0 16px;
  font-weight: 800;
}

.lede,
.section-intro,
.muted {
  max-width: 42rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  padding: 10px 16px;
  min-height: 44px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  font-size: 16px;
  color: inherit;
}

.btn-p {
  background: var(--accent);
  color: #fff;
}

.btn-g {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--line);
}

.track {
  margin-top: 48px;
  color: var(--accent);
  position: relative;
  overflow: hidden;
  height: 188px;
}

.skate-defs {
  position: absolute;
}

.asphalt {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22px;
  height: 22px;
  background: #141414;
  box-shadow: inset 0 3px 0 #2a2a2a, 0 6px 10px rgba(0, 0, 0, 0.18);
}

.asphalt::before {
  content: "";
  position: absolute;
  inset: 9px 0 auto;
  height: 3px;
  background: repeating-linear-gradient(
    90deg,
    #f4d03f 0 36px,
    transparent 36px 64px
  );
}

.skater {
  position: absolute;
  bottom: 18px;
  width: 118px;
  color: var(--accent);
  transform: scaleX(-1);
}

.skater-a { animation: skate-rtl 8.4s linear 0s infinite; }
.skater-b { animation: skate-rtl 11.2s linear -2.1s infinite; }
.skater-c { animation: skate-rtl 15.6s linear -7.4s infinite; }
.skater-d { animation: skate-rtl 9.8s linear -4.3s infinite; }
.skater-e { animation: skate-rtl 13.1s linear -9.7s infinite; }
.skater-f { animation: skate-rtl 18.5s linear -12.2s infinite; }

.skater-pink {
  color: #f472b6;
}

.skate-svg {
  width: 100%;
  display: block;
  overflow: visible;
}

@keyframes skate-rtl {
  from {
    right: -18%;
    left: auto;
  }
  to {
    right: 110%;
    left: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skater {
    animation: none;
  }

  .skater-a { right: 6%; }
  .skater-b { right: 22%; }
  .skater-c { right: 38%; }
  .skater-d { right: 54%; }
  .skater-e { right: 70%; }
  .skater-f { right: 86%; }
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.card,
.note,
.cta-panel {
  background: var(--card);
  border-radius: 14px;
  padding: 18px;
  color: var(--text);
  box-shadow: var(--shadow);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.card p,
.note p,
.list {
  color: var(--muted);
  margin: 0;
}

.note p + p {
  margin-top: 8px;
}

.split {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 16px;
  align-items: start;
}

.list {
  padding-right: 18px;
}

.list li + li {
  margin-top: 8px;
}

.cta-panel {
  padding: 24px 20px;
  text-align: center;
}

.cta-panel .section-intro {
  margin-inline: auto;
}

.cta-actions {
  justify-content: center;
}

.form-hint {
  margin: 16px 0 0;
  color: var(--muted);
}

.footer {
  width: min(1120px, calc(100% - 32px));
  margin-inline: auto;
  padding: 28px 0 48px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr 1.1fr;
  gap: 24px 32px;
  align-items: start;
}

.footer-col h3 {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--text);
}

.footer-col p {
  margin: 0 0 8px;
  font-size: 14px;
}

.footer-col a,
.footer-links a {
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
}

.badge {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
  background: var(--badge-bg);
  color: var(--accent);
}

@media (max-width: 800px) {
  .nav-links a:not(.btn):not(.nav-page) {
    display: none;
  }

  .cards,
  .split,
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  h1 {
    max-width: none;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .cta-actions .btn {
    flex: 0 1 auto;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.tariffs-page {
  padding: 40px 0 24px;
}

.tariff-card {
  background: var(--card);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
  margin-top: 28px;
}

.tariff-types {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.tariff-type {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.tariff-type.is-on {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
}

.tariff-type-note {
  margin: 0 0 20px;
}

.tariff-slider-label {
  display: block;
  font-weight: 800;
  margin-bottom: 12px;
}

.tariff-slider {
  width: 100%;
  accent-color: var(--accent);
  cursor: pointer;
}

.tariff-ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.tariff-ticks .is-on {
  color: var(--accent);
}

.tariff-price-box {
  margin: 24px 0 8px;
  padding: 18px;
  border-radius: 14px;
  background: var(--surface);
}

.tariff-price-box h2 {
  margin: 0 0 8px;
}

.tariff-old {
  margin: 0;
  color: var(--muted);
  text-decoration: line-through;
}

.tariff-now {
  margin: 4px 0 10px;
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800;
  color: var(--accent);
}

.tariff-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.tariffs-table-wrap {
  padding-top: 40px;
}

.tariff-table {
  display: grid;
  gap: 8px;
}

.tariff-row {
  display: grid;
  grid-template-columns: 1fr 1.4fr 1.4fr 0.8fr;
  gap: 8px;
  align-items: center;
  width: 100%;
  text-align: right;
  border: 0;
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--card);
  color: var(--text);
  font: inherit;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.tariff-head {
  background: transparent;
  box-shadow: none;
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
  cursor: default;
  padding-inline: 14px;
}

.tariff-row.is-on {
  outline: 2px solid var(--accent);
}

.tariff-row s {
  color: var(--muted);
}

@media (max-width: 700px) {
  .tariff-row {
    grid-template-columns: 1fr 1fr;
    gap: 4px 12px;
  }

  .tariff-head {
    display: none;
  }
}
