/* Nasiya Daftar — veb sahifalar. Ilovadagi palitraning aynan o'zi. */
:root {
  --primary: #243b6b;
  --primary-dark: #1a2c50;
  --primary-light: #eef2fb;
  --primary-border: #d5def3;
  --accent: #c08a2e;
  --accent-light: #fbf3e2;
  --bg: #f5f6fa;
  --surface: #ffffff;
  --surface-alt: #fafbfd;
  --text: #16203a;
  --text-2: #5c6784;
  --text-3: #9aa3b8;
  --line: #e6eaf2;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 760px; margin: 0 auto; padding-inline: 20px; }

/* Sarlavha chizig'i */
.nav {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.nav-inner {
  max-width: 900px; margin: 0 auto; padding: 0 20px;
  height: 62px; display: flex; align-items: center; gap: 12px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-name { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.nav-links { margin-left: auto; display: flex; gap: 18px; font-size: 14px; }
.nav-links a { color: var(--text-2); }
.nav-links a:hover { color: var(--primary); text-decoration: none; }

/* Hero */
.hero { text-align: center; padding: 56px 0 44px; }
.hero h1 {
  font-size: clamp(28px, 6vw, 40px);
  line-height: 1.2; letter-spacing: -0.025em; font-weight: 800;
}
.hero p {
  color: var(--text-2); font-size: clamp(15px, 3.6vw, 18px);
  margin-top: 14px; max-width: 540px; margin-inline: auto;
}
.badge {
  display: inline-block; margin-bottom: 18px;
  background: var(--accent-light); color: #8a5f14;
  border: 1px solid #eddcb6;
  border-radius: 999px; padding: 5px 13px;
  font-size: 12.5px; font-weight: 700;
}

/* Kartalar */
.grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  margin-top: 8px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}
.card h3 {
  font-size: 15.5px; font-weight: 700; margin-bottom: 6px;
  display: flex; align-items: center; gap: 8px;
}
.card p { color: var(--text-2); font-size: 14px; }
.dot {
  width: 8px; height: 8px; border-radius: 3px;
  background: var(--accent); flex: none;
}

/* Hujjat matni */
.doc { padding: 40px 0 72px; }
.doc h1 { font-size: clamp(24px, 5vw, 32px); letter-spacing: -0.02em; }
.doc .updated { color: var(--text-3); font-size: 13.5px; margin-top: 8px; }
.doc h2 {
  font-size: 19px; font-weight: 750; margin-top: 34px;
  padding-top: 22px; border-top: 1px solid var(--line);
  letter-spacing: -0.01em;
}
.doc h3 { font-size: 16px; font-weight: 700; margin-top: 20px; }
.doc p, .doc li { color: var(--text-2); font-size: 15.5px; }
.doc p { margin-top: 12px; }
.doc ul { margin-top: 12px; padding-left: 22px; }
.doc li { margin-top: 7px; }
.doc strong { color: var(--text); font-weight: 650; }

.note {
  background: var(--primary-light);
  border: 1px solid var(--primary-border);
  border-radius: var(--radius);
  padding: 15px 17px; margin-top: 18px;
}
.note p { margin-top: 0; color: #2c3d63; font-size: 15px; }

table {
  width: 100%; border-collapse: collapse; margin-top: 16px;
  font-size: 14.5px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
th, td { text-align: left; padding: 10px 13px; border-bottom: 1px solid var(--line); }
th { background: var(--surface-alt); font-weight: 700; font-size: 13.5px; }
td { color: var(--text-2); }
tr:last-child td { border-bottom: none; }
.table-scroll { overflow-x: auto; }

/* Aloqa */
.contact {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; margin-top: 20px;
}
.contact dl { display: grid; gap: 10px; }
.contact dt { font-size: 13px; color: var(--text-3); font-weight: 600; }
.contact dd { font-size: 16px; font-weight: 600; }

.foot {
  border-top: 1px solid var(--line); background: var(--surface);
  padding: 24px 0; margin-top: 56px;
}
.foot-inner {
  max-width: 900px; margin: 0 auto; padding: 0 20px;
  display: flex; flex-wrap: wrap; gap: 12px;
  align-items: center; justify-content: space-between;
  color: var(--text-3); font-size: 13.5px;
}
.foot a { color: var(--text-2); }

@media (max-width: 520px) {
  .nav-links { gap: 14px; font-size: 13.5px; }
  .hero { padding: 40px 0 32px; }
}
