/* ==========================================================================
   Rasch Math Platform — ommaviy sahifalar uslubi
   ========================================================================== */

:root {
  --navy:        #0f2b46;
  --navy-600:    #1d4e7e;
  --navy-050:    #eef3f8;
  --gold:        #c9a227;
  --gold-050:    #fdf6e3;
  --green:       #1f9d55;
  --green-050:   #e9f7ef;
  --red:         #d9534f;
  --red-050:     #fdecec;
  --orange:      #e08e0b;
  --orange-050:  #fdf4e3;

  --bg:          #f6f8fb;
  --surface:     #ffffff;
  --border:      #dde5ee;
  --text:        #14212e;
  --muted:       #61728a;

  --radius:      14px;
  --radius-sm:   9px;
  --shadow-sm:   0 1px 2px rgba(15, 43, 70, .06);
  --shadow:      0 2px 6px rgba(15, 43, 70, .07), 0 12px 28px rgba(15, 43, 70, .06);
  --container:   1120px;
}

* { box-sizing: border-box; }

/* `hidden` atributi mualliflik `display` qoidalaridan ustun turishi kerak */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

/* ------------------------------------------------------------------ icon */
/* Emoji o'rniga ishlatiladigan SVG ikonkalar (templates/partials/icons.html) */

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  vertical-align: -0.18em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.icon-sm { width: .95em; height: .95em; stroke-width: 2; }
.icon-lg { width: 1.5em;  height: 1.5em; }
.icon-xl { width: 2.1em;  height: 2.1em; stroke-width: 1.6; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15.5px;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

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

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

/* ------------------------------------------------------------------ header */

.site-header {
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 11px; color: #fff; }
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: linear-gradient(140deg, var(--gold), #e4c766);
  color: var(--navy);
  display: grid; place-items: center;
  font-weight: 800; font-size: 20px;
  flex: none;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 15.5px; letter-spacing: -.2px; }
.brand-text small { font-size: 11.5px; color: #a9c0d6; }

.site-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.site-nav a {
  color: #d6e3ef;
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
}
.site-nav a:hover { background: rgba(255,255,255,.10); color: #fff; text-decoration: none; }

.site-nav .nav-cta {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
}
.site-nav .nav-cta:hover { background: #dcb63f; color: var(--navy); }

.site-nav .nav-quiet { color: #8ba6bf; }

/* -------------------------------------------------------------------- main */

.site-main { flex: 1; padding: 32px 0 48px; }

/* ---------------------------------------------------------------- xabarlar */

.messages { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }

.message {
  padding: 11px 15px;
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--navy-600);
  background: var(--navy-050);
  font-size: 14.5px;
}
.message-success { background: var(--green-050);  border-color: var(--green); }
.message-error   { background: var(--red-050);    border-color: var(--red); }
.message-warning { background: var(--orange-050); border-color: var(--orange); }

/* -------------------------------------------------------------------- hero */

.hero {
  background: linear-gradient(155deg, var(--navy) 0%, #17456f 55%, #1d4e7e 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 44px 36px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -70px; top: -70px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,39,.32), transparent 68%);
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(26px, 4vw, 38px);
  line-height: 1.18;
  letter-spacing: -.6px;
}

.hero p { margin: 0 0 22px; max-width: 620px; color: #cfe0ef; font-size: 16px; }

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

/* ------------------------------------------------------------------ tugma */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 14.5px;
  font-weight: 650;
  cursor: pointer;
  transition: filter .15s ease, transform .08s ease;
}
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--gold); color: var(--navy); }
.btn-light   { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.30); }
.btn-outline { background: transparent; color: var(--navy-600); border-color: var(--border); }
.btn-ghost   { background: var(--navy-050); color: var(--navy-600); }

/* ------------------------------------------------------------------- grid */

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

.section { margin-top: 34px; }
.section-title { font-size: 19px; margin: 0 0 14px; letter-spacing: -.3px; }

/* ------------------------------------------------------------------- card */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.card h3 { margin: 0 0 8px; font-size: 16.5px; }
.card p  { margin: 0; color: var(--muted); font-size: 14.5px; }

.card-icon {
  width: 40px; height: 40px;
  border-radius: 11px;
  background: var(--navy-050);
  color: var(--navy-600);
  display: grid; place-items: center;
  font-size: 19px;
  margin-bottom: 12px;
}

/* -------------------------------------------------------------- stat tile */

.stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.stat .stat-value { font-size: 27px; font-weight: 750; color: var(--navy); line-height: 1.1; }
.stat .stat-label { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-top: 4px; }

/* ------------------------------------------------------------ verify page */

.verify-wrap { max-width: 680px; margin: 0 auto; }

.verify-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.verify-banner {
  padding: 26px 28px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 14px;
}
.verify-banner.is-valid   { background: linear-gradient(135deg, #1f9d55, #27b567); }
.verify-banner.is-invalid { background: linear-gradient(135deg, #b8443f, #d9534f); }

.verify-banner .icon { font-size: 34px; line-height: 1; }
.verify-banner h1 { margin: 0; font-size: 21px; }
.verify-banner p  { margin: 3px 0 0; opacity: .92; font-size: 14px; }

.verify-body { padding: 8px 28px 24px; }

.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
}
.detail-row:last-child { border-bottom: none; }
.detail-row dt { color: var(--muted); font-size: 13.5px; }
.detail-row dd { margin: 0; font-weight: 650; text-align: right; }

.badge {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
}
.badge-gold  { background: var(--gold-050);  color: #8a6d10; }
.badge-green { background: var(--green-050); color: #14663a; }
.badge-navy  { background: var(--navy-050);  color: var(--navy-600); }
.badge-red   { background: var(--red-050);   color: #a13b37; }

/* ------------------------------------------------------------------ forma */

.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 13.5px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }

.input, input[type="text"].input, input[type="search"] {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
}
.input:focus { outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 3px rgba(29,78,126,.12); }

/* ----------------------------------------------------------------- footer */

.site-footer {
  background: #0b2038;
  color: #91a8c0;
  padding: 22px 0;
  font-size: 13.5px;
}
.footer-inner { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.site-footer p { margin: 0; }
.footer-links { display: flex; gap: 16px; }
.site-footer a { color: #b9cde0; }

/* ----------------------------------------------------------- xato sahifa */

.error-page { text-align: center; padding: 60px 20px; }
.error-page .code { font-size: 78px; font-weight: 800; color: var(--navy); line-height: 1; }
.error-page h1 { margin: 10px 0 8px; font-size: 22px; }
.error-page p { color: var(--muted); margin: 0 0 22px; }

/* --------------------------------------------------------------- responsive */

@media (max-width: 640px) {
  .hero { padding: 30px 22px; }
  .detail-row { flex-direction: column; gap: 3px; }
  .detail-row dd { text-align: left; }
  .header-inner { min-height: auto; padding-top: 12px; padding-bottom: 12px; }
}
