:root {
  color-scheme: light dark;
  --paper: #faf4e9;
  --surface: #fffdf8;
  --ink: #1e2423;
  --muted: #5d6460;
  --accent: #bb351e;
  --accent-soft: rgba(187, 53, 30, 0.09);
  --teal: #183234;
  --line: #e4dac8;
  --logo-bg: #ffffff;
  --logo-line: #e2dcd2;
  --radius: 16px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #161715;
    --surface: #1f211e;
    --ink: #f5efe6;
    --muted: #b5ada2;
    --accent: #ff9c85;
    --accent-soft: rgba(255, 156, 133, 0.14);
    --teal: #a4d1cd;
    --line: #343733;
    --logo-bg: #ffffff;
    --logo-line: #3e423d;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.62 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-underline-offset: 4px;
  overflow-wrap: anywhere;
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.top {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.top-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  margin-right: auto;
}

.brand img {
  width: 32px;
  height: 33px;
  display: block;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
  font-size: 15px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  text-decoration: none;
  color: var(--muted);
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
}

.nav a[aria-current="page"] {
  font-weight: 600;
}

/* Hero */
.hero {
  padding: 52px 0 40px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

h1 {
  margin: 0 0 16px;
  font-family: "Literata", Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

h1 .dot {
  color: var(--accent);
}

.lead {
  max-width: 68ch;
  margin: 0 0 26px;
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--line);
  color: var(--ink);
  background: var(--surface);
}

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

@media (prefers-color-scheme: dark) {
  .btn-primary {
    color: #161715;
  }
}

.hero-meta {
  margin: 22px 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* Sections */
section {
  padding: 44px 0;
  border-bottom: 1px solid var(--line);
}

section:last-of-type {
  border-bottom: 0;
}

h2 {
  margin: 0 0 12px;
  font-family: "Literata", Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(24px, 3.6vw, 32px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.35;
}

p {
  margin: 0 0 14px;
}

p:last-child {
  margin-bottom: 0;
}

.section-lead {
  max-width: 66ch;
  color: var(--muted);
  margin-bottom: 24px;
}

/* Feature list */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
}

.card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

/* Pricing table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
}

th,
td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

tbody tr:last-child td {
  border-bottom: 0;
}

th {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: var(--paper);
}

.price-uzs {
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.price-fx {
  color: var(--muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-size: 15px;
}

.pass-desc {
  font-size: 15px;
  color: var(--muted);
}

.note-box {
  margin-top: 18px;
  padding: 16px 20px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 15px;
}

.note-box strong {
  color: var(--ink);
}

/* Payment & delivery steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.steps li::before {
  content: "0" counter(step);
  display: inline-block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.06em;
}

.steps p {
  font-size: 15px;
  color: var(--muted);
}

.callout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.descriptor {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Full-color payment logos */
.logos-panel {
  margin-top: 24px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
}

.logos-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 12px 0 16px;
}

.pay-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--logo-bg);
  border: 1px solid var(--logo-line);
}

.pay-badge svg {
  display: block;
  height: 26px;
  width: auto;
}

.secure-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.secure-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--logo-bg);
  border: 1px solid var(--logo-line);
  color: #143642;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}

.secure-pill svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* Documents grid */
.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.doc-card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: border-color 0.15s ease;
}

.doc-card:hover {
  border-color: var(--accent);
}

.doc-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 17px;
}

.doc-card span {
  display: block;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

/* Requisites definition list */
.reqs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 14px 28px;
  margin: 20px 0 0;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.reqs div {
  min-width: 0;
}

.reqs dt {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 3px;
}

.reqs dd {
  margin: 0;
  font-size: 15px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.nowrap {
  white-space: nowrap;
}

/* Footer */
footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 48px;
  font-size: 14px;
  color: var(--muted);
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
}

.foot-nav a {
  color: var(--muted);
}

.foot-nav a:hover {
  color: var(--accent);
}

@media (max-width: 640px) {
  .hero {
    padding: 36px 0 28px;
  }

  section {
    padding: 32px 0;
  }

  /* On a phone each pass is a block: its name, the price in soums with the dollar figure
     beside it, then what it includes. Nothing scrolls sideways. The term is in the name. */
  table {
    min-width: 0;
  }

  thead,
  tbody td:nth-child(4) {
    display: none;
  }

  tbody tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    align-items: baseline;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
  }

  tbody tr:last-child {
    border-bottom: 0;
  }

  tbody td {
    padding: 0;
    border: 0;
  }

  tbody td:first-child,
  .pass-desc {
    grid-column: 1 / -1;
  }
}
