/* ============================================================
   Lingoxon — SEO kontent sahifalari uchun umumiy stil
   URL: /tpl/site.css   →   <link rel="stylesheet" href="/tpl/site.css">
   Dizayn manbasi: bosh sahifa (/index.html). Token/ranglarni O'ZGARTIRMANG.
   Sahifa skeleti va qoidalar: /tpl/DESIGN-NOTES.md
   ============================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --teal: #0d9488;
  --teal2: #14b8a6;
  --teal3: #2dd4bf;
  --blue: #6366f1;
  --purple: #8b5cf6;
  --yellow: #fbbf24;
  --pink: #ec4899;
  --bg: #040d1a;
  --card: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.08);
  --text: #f0fdf9;
  --body: #b9c6d2;       /* maqola matni (o'qish uchun ochroq) */
  --muted: #94a3b8;
  --muted-dark: #64748b; /* landing'dagi asl muted */
  --maxw: 800px;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

/* Noise texture — landing bilan bir xil */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 1; opacity: 0.4;
}

/* Sahifa tepasidagi yumshoq teal nur */
.page-glow {
  position: fixed;
  top: -260px; left: 50%; transform: translateX(-50%);
  width: 900px; height: 520px;
  background: radial-gradient(ellipse, rgba(13,148,136,0.10), transparent 70%);
  filter: blur(60px);
  pointer-events: none; z-index: 0;
}

/* ══════ HEADER NAV ══════ */
.site-nav {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  padding: 0 32px; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(4, 13, 26, 0.7);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.25rem; font-weight: 800;
  background: linear-gradient(135deg, #f0fdf9, var(--teal2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  text-decoration: none;
}
.nav-logo img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  color: var(--muted-dark); text-decoration: none;
  font-size: 0.88rem; font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--teal2); }
.nav-cta {
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: #fff !important;
  padding: 9px 22px;
  border-radius: 50px;
  font-size: 0.88rem; font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  box-shadow: 0 4px 20px rgba(99,102,241,0.3);
}
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }
@media (max-width: 640px) {
  .site-nav { padding: 0 20px; }
  .nav-links { display: none; }
}

/* ══════ BREADCRUMBS ══════ */
.crumbs {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 88px 24px 0;
  font-size: 0.8rem;
  color: var(--muted-dark);
  position: relative; z-index: 2;
}
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; }
.crumbs li + li::before { content: '›'; margin: 0 8px 0 4px; opacity: 0.5; }
.crumbs a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.crumbs a:hover { color: var(--teal2); }

/* ══════ MAQOLA ══════ */
.article-wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px 24px 72px;
  position: relative; z-index: 2;
}
.article-meta {
  font-size: 0.8rem;
  color: var(--muted-dark);
  margin: 12px 0 32px;
  display: flex; flex-wrap: wrap; gap: 8px 20px;
}
.article-meta .dot { color: var(--teal2); }

article h1 {
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.15;
  margin: 6px 0 10px;
}
article h1 .accent {
  background: linear-gradient(135deg, var(--teal2) 0%, var(--blue) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
article h2 {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin: 44px 0 14px;
  padding-left: 14px;
  border-left: 3px solid var(--teal2);
  line-height: 1.3;
}
article h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 28px 0 10px;
}
article p {
  color: var(--body);
  font-size: 0.98rem;
  line-height: 1.85;
  margin: 0 0 16px;
}
article a { color: var(--teal2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(20,184,166,0.4); }
article a:hover { color: var(--teal3); }
article strong { color: var(--text); }
article ul, article ol {
  margin: 0 0 18px 22px;
  color: var(--body);
  line-height: 1.8;
  font-size: 0.98rem;
}
article li { margin-bottom: 7px; }
article li::marker { color: var(--teal2); }
article blockquote {
  border-left: 3px solid var(--blue);
  background: rgba(99,102,241,0.06);
  border-radius: 0 12px 12px 0;
  padding: 14px 18px;
  margin: 0 0 18px;
  color: var(--body);
  font-style: italic;
}
article code {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 7px;
  font-size: 0.86em;
}
article img { max-width: 100%; border-radius: 14px; }
article hr { border: none; border-top: 1px solid var(--border); margin: 36px 0; }

/* ══════ JADVAL ══════ */
.table-scroll {
  overflow-x: auto;
  margin: 0 0 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  -webkit-overflow-scrolling: touch;
}
.table-scroll table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 460px; }
.table-scroll th {
  background: rgba(13,148,136,0.10);
  color: var(--teal2);
  text-align: left;
  padding: 11px 14px;
  font-weight: 700;
  white-space: nowrap;
}
.table-scroll td {
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  color: var(--body);
}
.table-scroll tr:hover td { background: rgba(255,255,255,0.02); }

/* ══════ EXAM-INFO-BOX ══════ */
.info-box {
  background: linear-gradient(135deg, rgba(13,148,136,0.08), rgba(99,102,241,0.05));
  border: 1px solid rgba(13,148,136,0.25);
  border-radius: 16px;
  padding: 18px 20px;
  margin: 0 0 20px;
}
.info-box .ib-title {
  display: flex; align-items: center; gap: 8px;
  font-weight: 800;
  color: var(--teal2);
  font-size: 0.92rem;
  letter-spacing: 0.3px;
  margin-bottom: 8px;
}
.info-box p { margin-bottom: 8px; font-size: 0.93rem; }
.info-box p:last-child, .info-box ul:last-child { margin-bottom: 0; }
.info-box.warn {
  background: linear-gradient(135deg, rgba(251,191,36,0.08), rgba(236,72,153,0.04));
  border-color: rgba(251,191,36,0.3);
}
.info-box.warn .ib-title { color: var(--yellow); }

/* ══════ FAQ ACCORDION (details) ══════ */
.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq details[open] { border-color: rgba(13,148,136,0.35); }
.faq summary {
  cursor: pointer;
  padding: 15px 18px;
  font-weight: 700;
  font-size: 0.95rem;
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  color: var(--teal2);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s;
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body {
  padding: 0 18px 16px;
  color: var(--body);
  font-size: 0.92rem;
  line-height: 1.8;
}
.faq .faq-body p { margin-bottom: 8px; font-size: 0.92rem; }
.faq .faq-body p:last-child { margin-bottom: 0; }

/* ══════ CTA BANNERLAR ══════ */
.cta-banner {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: 16px 24px;
  background: linear-gradient(135deg, rgba(13,148,136,0.12), rgba(99,102,241,0.10));
  border: 1px solid rgba(13,148,136,0.3);
  border-radius: 20px;
  padding: 26px 28px;
  margin: 36px 0;
}
.cta-banner .cta-txt { flex: 1 1 300px; }
.cta-banner h3 { font-size: 1.15rem; font-weight: 800; margin: 0 0 6px; }
.cta-banner p { color: var(--muted); font-size: 0.9rem; line-height: 1.6; margin: 0; }
.cta-banner.test {
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(139,92,246,0.10));
  border-color: rgba(99,102,241,0.3);
}

/* ══════ TUGMALAR ══════ */
.btn {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, opacity 0.2s;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: center;
}
.btn-primary {
  background: linear-gradient(135deg, var(--teal), var(--blue));
  color: #fff;
  box-shadow: 0 8px 28px rgba(13,148,136,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 36px rgba(13,148,136,0.4); }
.btn-ghost {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text);
}
.btn-ghost:hover { background: rgba(255,255,255,0.09); }
.btn:focus-visible { outline: 2px solid var(--teal2); outline-offset: 3px; }

/* ══════ DISCLAIMER ══════ */
.disclaimer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px 40px;
  font-size: 0.78rem;
  color: var(--muted-dark);
  line-height: 1.7;
  position: relative; z-index: 2;
}

/* ══════ FOOTER ══════ */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 44px 80px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 20px;
  position: relative; z-index: 2;
}
@media (max-width: 640px) { .site-footer { padding: 36px 24px; flex-direction: column; text-align: center; } }
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.1rem; font-weight: 800;
  background: linear-gradient(135deg, var(--text), var(--teal2));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  text-decoration: none;
}
.footer-logo img { width: 30px; height: 30px; border-radius: 8px; }
.site-footer p { color: var(--muted-dark); font-size: 0.82rem; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--muted-dark); font-size: 0.82rem; text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--teal2); }

/* ══════ SCROLLBAR ══════ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(13,148,136,0.3); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--teal); }
