/* =============================================================================
   Raximboy Ibrohimov · ibrohimov-dev.uz
   Dizayn: "raximboy-portfolio" shabloni (to'q yashil-qora, laym aksent, Arial + monospace).
   Temalar: html[data-theme="dark"] (asosiy) · html[data-theme="light"]
   Kontrast: matndagi aksent --accent-ink (kunduzi to'qroq), aksent fonda --on-accent.
   ========================================================================== */

:root,
[data-theme="dark"] {
  --bg:        #101311;
  --panel:     #191d19;
  --line:      #30362e;
  --field:     #5d665a;   /* forma chegarasi: fonga nisbatan >= 3:1 */
  --text:      #edf0e8;
  --muted:     #9fa79b;
  --accent:    #c2f86b;   /* fon sifatida (tugma, karta) */
  --accent-ink:#c2f86b;   /* matn sifatida */
  --on-accent: #11170b;
  --glow:      rgba(159, 203, 92, .055);
  --art-1: #222d25; --art-2: #2c2936; --art-3: #323027; --art-4: #233034;

  /* eski nomlar (404 va inline uslublar uchun) */
  --card: var(--panel); --card-border: var(--line); --card-hover: var(--panel);
  --bg-soft: var(--panel); --accent-fg: var(--on-accent); --faint: var(--muted); --line-soft: var(--line);
}

[data-theme="light"] {
  --bg:        #f5f5ee;
  --panel:     #ffffff;
  --line:      #d8dccf;
  --field:     #8f9686;
  --text:      #182018;
  --muted:     #626b5b;
  --accent:    #7eaf2d;
  --accent-ink:#456f0c;   /* #7eaf2d matn uchun yetarli emas (2.4:1), shuning uchun to'qroq */
  --on-accent: #11170b;
  --glow:      rgba(110, 160, 40, .08);
}

/* --------------------------------- Asos --------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Arial, Helvetica, sans-serif; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
p { margin: 0; }
::selection { background: var(--accent); color: var(--on-accent); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 4px; border-radius: 4px; }
[hidden] { display: none !important; }
.mono { font-family: monospace; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 48px; }
.wrap.narrow { max-width: 880px; }

.eyebrow, .kicker { font: 11px/1.4 monospace; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.kicker { display: block; margin-bottom: 14px; }

/* ---------------------------------- Nav ---------------------------------- */
.site-nav { position: sticky; top: 0; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--line); }
.nav { height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { font-size: 22px; font-weight: 700; letter-spacing: -1px; white-space: nowrap; }
.logo b, .logo span { color: var(--accent-ink); }
.links { display: flex; gap: 30px; font-size: 13px; }
.links a { color: var(--text); transition: color .2s; }
.links a:hover, .links a.active { color: var(--accent-ink); }
.links .lang-switch { display: none; }
.links .nav-contact { display: none; }
.nav-right { display: flex; align-items: center; gap: 14px; }
.small-link { font-size: 13px; white-space: nowrap; }
.small-link:hover { color: var(--accent-ink); }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 30px; padding: 2px; gap: 2px; }
.lang-switch button { border: 0; background: transparent; color: var(--muted); font: 11px monospace; padding: 7px 9px; border-radius: 20px; }
.lang-switch button.active { background: var(--accent); color: var(--on-accent); }
.lang-switch button:hover:not(.active) { color: var(--text); }
.theme { border: 1px solid var(--line); background: transparent; color: var(--text); width: 36px; height: 36px; border-radius: 50%; font-size: 15px; }
.theme:hover { border-color: var(--accent-ink); }
.menu { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 5px; padding: 7px 10px; font-size: 15px; }

/* -------------------------------- Tugmalar ------------------------------- */
.btn { padding: 16px 22px; border-radius: 6px; border: 1px solid var(--line); background: transparent; color: var(--text); display: inline-flex; gap: 25px; align-items: center; justify-content: space-between; font-size: 13px; transition: transform .2s, border-color .2s; }
.btn:hover { transform: translateY(-2px); border-color: var(--muted); }
.btn svg { width: 16px; height: 16px; flex: none; }
.primary, .btn-primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 700; }
.primary:hover, .btn-primary:hover { border-color: var(--accent); }
.btn-ghost { background: transparent; }

/* --------------------------------- Hero ---------------------------------- */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 30px; padding: 64px 0 62px; align-items: center; }
h1 { font-size: clamp(48px, 5.6vw, 76px); line-height: 1.03; letter-spacing: -4px; font-weight: 500; margin: 30px 0 24px; }
h1 span { color: var(--accent-ink); }
h1 .h1-a { color: var(--text); }
.intro { font-size: 16px; color: var(--muted); max-width: 470px; line-height: 1.8; }
.buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; }
.hero-foot { display: flex; gap: 22px; margin-top: 42px; font: 11px monospace; color: var(--muted); flex-wrap: wrap; }

.globe-panel { position: relative; min-width: 0; align-self: center; }
.globe-top, .globe-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.globe-top { padding: 0 8px 18px; border-bottom: 1px solid var(--line); }
.globe-kicker { display: flex; gap: 8px; align-items: center; font: 10px monospace; letter-spacing: 1.8px; color: var(--muted); }
.globe-kicker i { width: 5px; height: 5px; background: var(--accent); border-radius: 50%; }
.globe-version { font: 10px monospace; color: var(--muted); }
.globe-stage { width: 100%; aspect-ratio: 1; position: relative; background: radial-gradient(ellipse at center, var(--glow), transparent 67%); }
#earth { display: block; width: 100%; height: 100%; touch-action: pan-y; }
.globe-axis { position: absolute; left: 50%; color: var(--muted); font: 10px monospace; transform: translateX(-50%); }
.axis-top { top: 14px; }
.axis-bottom { bottom: 14px; }
.globe-side { position: absolute; right: 0; top: 50%; font: 9px monospace; letter-spacing: 2px; color: var(--muted); writing-mode: vertical-rl; transform: translateY(-50%); }
.globe-bottom { padding: 0 8px 20px; border-bottom: 1px solid var(--line); }
.globe-modes { display: flex; padding: 3px; border: 1px solid var(--line); border-radius: 30px; gap: 3px; }
.globe-modes button { font-size: 11px; background: transparent; color: var(--muted); border: 0; padding: 8px 15px; border-radius: 20px; }
.globe-modes button.selected { background: var(--accent); color: var(--on-accent); }
.globe-pause { width: 33px; height: 33px; border-radius: 50%; border: 1px solid var(--line); color: var(--muted); background: transparent; font-size: 12px; }
.globe-caption { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 18px 8px 0; font-size: 11px; color: var(--muted); }
.globe-caption span:last-child { font: 9px monospace; letter-spacing: 1px; }

/* ------------------------------- Stack qatori ---------------------------- */
.stackbar { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 24px 0; display: flex; justify-content: space-between; gap: 20px; align-items: center; flex-wrap: wrap; }
.stackbar span { color: var(--muted); font-size: 14px; }
.stackbar .eyebrow { font-size: 10px; }

/* -------------------------------- Bo'limlar ------------------------------ */
section { padding: 88px 0; }
.section-head { display: flex; justify-content: space-between; gap: 24px; align-items: end; margin: 18px 0 34px; }
h2 { font-size: 42px; font-weight: 500; letter-spacing: -1.8px; line-height: 1.1; margin: 0; }
.section-head p { color: var(--muted); max-width: 360px; font-size: 14px; line-height: 1.7; }

/* Loyihalar */
.filters, .proj-filters { display: flex; gap: 8px; margin-bottom: 26px; flex-wrap: wrap; }
.filters button, .proj-filters button { border: 1px solid var(--line); color: var(--muted); background: none; padding: 10px 18px; border-radius: 30px; font-size: 12px; }
.filters button.active, .proj-filters button.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.filters button:hover:not(.active), .proj-filters button:hover:not(.on) { color: var(--text); }
.project-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.project { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--panel); }
.project-art { height: 200px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; background: var(--art-1); color: #edf0e8; }
.project-art::before { content: ""; position: absolute; width: 300px; height: 300px; border: 1px solid #ffffff15; border-radius: 50%; }
.project-art::after { content: ""; position: absolute; width: 230px; height: 230px; border: 1px solid #ffffff15; border-radius: 50%; }
.project-art strong { font-size: 38px; letter-spacing: -2px; z-index: 1; text-align: center; padding: 0 20px; line-height: 1.1; }
.project-art small { position: absolute; top: 18px; left: 20px; font: 10px monospace; letter-spacing: 1px; color: #d8dfd0; }
.project:nth-child(4n+2) .project-art { background: var(--art-2); }
.project:nth-child(4n+3) .project-art { background: var(--art-3); }
.project:nth-child(4n+4) .project-art { background: var(--art-4); }
.project-body { padding: 26px; }
/* Saytlar: jonli skrinshot + logotip; ilovalar: ikonka */
.project { position: relative; --art-h: 200px; }
.project-art.has-shot { display: block; background: var(--art-1); }
.project-art.has-shot::before, .project-art.has-shot::after { display: none; }
.project-art .shot { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s ease; }
.project:hover .project-art .shot { transform: scale(1.03); }
.project-art.has-shot small { z-index: 1; top: auto; left: auto; right: 12px; bottom: 12px; padding: 5px 9px; border-radius: 4px; background: rgba(16, 19, 17, .82); color: #edf0e8; }
.logo-chip { position: absolute; z-index: 2; left: 22px; top: calc(var(--art-h) - 28px); width: 56px; height: 56px; display: grid; place-items: center; padding: 7px; border-radius: 14px; background: #fff; border: 3px solid var(--panel); box-shadow: 0 8px 20px rgba(0, 0, 0, .25); }
.logo-chip img { width: 100%; height: 100%; object-fit: contain; }
.project.has-shot .project-body { padding-top: 40px; }
.project-art.is-app { flex-direction: column; gap: 14px; }
.project-art .app-icon { width: 76px; height: 76px; border-radius: 18px; z-index: 1; object-fit: cover; box-shadow: 0 12px 28px rgba(0, 0, 0, .35); }
.project-art.is-app strong { font-size: 26px; letter-spacing: -1px; }
.project-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.project h3 { font-size: 20px; margin: 0; letter-spacing: -.5px; }
.project p { font-size: 13px; line-height: 1.8; color: var(--muted); min-height: 46px; margin: 12px 0; }
.tags { display: flex; gap: 8px; flex-wrap: wrap; font: 10px monospace; color: var(--muted); }
.tags span { border: 1px solid var(--line); padding: 6px 9px; border-radius: 4px; }
.arrow { width: 35px; height: 35px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; flex: none; }
.arrow:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.more { display: flex; margin: 30px auto 0; }

/* Men haqimda */
.about { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; }
.about h2 { margin-top: 20px; }
.about p { color: var(--muted); font-size: 16px; line-height: 1.9; margin-bottom: 16px; }
.about-identity { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin-top: 28px; font-size: 15px; }
.about-identity img { width: 280px; max-width: 100%; height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; filter: grayscale(1); border: 1px solid var(--line); }
.about-identity small { display: block; margin-top: 5px; color: var(--muted); font: 10px monospace; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 38px; }
.stats b { display: block; font-size: 36px; font-weight: 500; color: var(--accent-ink); letter-spacing: -1px; }
.stats small { font-size: 11px; color: var(--muted); display: block; margin-top: 10px; }

/* AI bo'limi */
.ai-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; }
.ai-feature { padding: 36px; background: var(--accent); color: #17200c; border-radius: 10px; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; min-height: 340px; }
.ai-feature h3 { font-size: 54px; font-weight: 500; line-height: 1; letter-spacing: -2px; margin: 40px 0; display: flex; justify-content: space-between; gap: 12px; }
.ai-feature h3 i { font-style: normal; font-size: 35px; }
.ai-feature .eyebrow { color: #2b3a14; }
.ai-feature .ai-open { display: flex; justify-content: space-between; border-top: 1px solid #16200c44; padding-top: 20px; font-size: 13px; font-weight: 700; }
.guides { display: flex; flex-direction: column; }
.guide, .news-row { border-bottom: 1px solid var(--line); padding: 25px 0; display: grid; grid-template-columns: 35px 1fr 22px; gap: 16px; align-items: center; }
.guide:first-child, .news-row:first-child { padding-top: 10px; }
.guide > span, .news-row > span { font: 11px monospace; color: var(--accent-ink); }
.guide h3, .news-row h3 { font-size: 18px; margin: 0 0 10px; font-weight: 500; line-height: 1.35; }
.guide p, .news-row p { font-size: 12px; color: var(--muted); line-height: 1.6; }
.guide:hover h3, .news-row:hover h3 { color: var(--accent-ink); }
.all-guides { font-size: 12px; color: var(--muted); padding-top: 24px; }
.all-guides:hover { color: var(--accent-ink); }

/* Bosh sahifadagi yangiliklar */
.news-list-home { border-top: 1px solid var(--line); }
.news-row { grid-template-columns: 150px 1fr 22px; }
.news-row > span { color: var(--muted); line-height: 1.6; }
.news-row > span b { display: block; color: var(--accent-ink); font-weight: 400; }
.news-row h3 { margin: 0; }
.news-row .nr-sum { margin-top: 8px; }

/* Aloqa bloki */
.contact { border-top: 1px solid var(--line); padding: 80px 0; display: flex; justify-content: space-between; align-items: center; gap: 30px; }
.contact h2 { font-size: 54px; margin: 18px 0; }
.contact p { color: var(--muted); font-size: 14px; }
.contact-actions { display: flex; flex-direction: column; gap: 14px; }
.contact-actions .btn { min-width: 240px; }
.contact-form-link { font-size: 12px; color: var(--muted); text-align: center; }
.contact-form-link:hover { color: var(--accent-ink); }
.socials { display: flex; justify-content: center; gap: 10px; margin-top: 4px; }
.socials a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--muted); transition: color .2s, border-color .2s, transform .2s; }
.socials a:hover, .socials a:focus-visible { color: var(--accent-ink); border-color: var(--accent-ink); transform: translateY(-2px); }
.socials svg { width: 18px; height: 18px; }

/* ------------------------------- Ichki sahifalar ------------------------- */
.page-head { padding: 72px 0 28px; }
.page-body { padding: 24px 0 88px; }
.section-title { font-size: clamp(36px, 5vw, 56px); font-weight: 500; letter-spacing: -2px; line-height: 1.05; margin: 0 0 16px; }
.section-sub { color: var(--muted); font-size: 15px; line-height: 1.7; max-width: 620px; margin-bottom: 28px; }
.glass { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.section-more { margin-top: 30px; display: flex; justify-content: center; }

/* Qo'llanmalar ro'yxati */
.deck-hero { display: grid; grid-template-columns: 1.2fr .8fr; border-radius: 10px; overflow: hidden; background: var(--accent); color: #17200c; margin: 6px 0 22px; transition: transform .2s; }
.deck-hero:hover { transform: translateY(-2px); }
.dh-text { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 32px; }
.dh-text .gc-kind { font: 11px monospace; letter-spacing: 2px; text-transform: uppercase; color: #2b3a14; }
.dh-text b { font-size: clamp(22px, 2.6vw, 30px); font-weight: 500; line-height: 1.2; letter-spacing: -1px; }
.dh-parts { font: 11px/1.8 monospace; color: #2b3a14; }
.dh-text .btn-primary { background: #17200c; color: var(--accent); border-color: #17200c; }
.dh-art { display: flex; flex-direction: column; justify-content: center; padding: 32px; border-left: 1px solid #16200c33; }
.dh-art small { font: 11px monospace; letter-spacing: 2px; color: #2b3a14; margin-bottom: 10px; }
.dh-art b { font-size: clamp(40px, 5vw, 64px); font-weight: 500; line-height: .95; letter-spacing: -3px; }
.dh-art em { font-style: normal; }
.ai-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.af { display: grid; gap: 6px; align-content: start; padding: 22px 22px 22px 0; }
.af + .af { padding-left: 22px; border-left: 1px solid var(--line); }
.af b { font-size: 34px; font-weight: 500; letter-spacing: -1px; color: var(--accent-ink); }
.af span { color: var(--muted); font-size: 13px; line-height: 1.6; }
.af small { color: var(--muted); font: 10px monospace; letter-spacing: 1px; }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.guide-card { display: flex; flex-direction: column; gap: 10px; padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; transition: transform .2s, border-color .2s; }
.guide-card:hover { transform: translateY(-3px); border-color: var(--accent-ink); }
.gc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.gc-ico { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--accent-ink); flex: none; }
.gc-ico svg { width: 18px; height: 18px; }
.gc-num { font: 11px monospace; color: var(--accent-ink); }
.guide-card h3 { font-size: 18px; font-weight: 500; line-height: 1.3; margin: 0; }
.guide-card p { color: var(--muted); font-size: 13px; line-height: 1.65; }
.gc-meta { margin-top: auto; padding-top: 8px; font: 10px monospace; letter-spacing: 1px; color: var(--muted); }
.cta-band { margin-top: 36px; display: flex; align-items: center; justify-content: space-between; gap: 18px 24px; padding: 28px; border-radius: 10px; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--line); }
.cta-band b { font-size: 20px; font-weight: 500; letter-spacing: -.5px; }
.cta-band p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Maqola */
.guide-head { padding-bottom: 6px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 8px; font: 11px monospace; color: var(--muted); margin-bottom: 26px; }
.crumbs a:hover { color: var(--accent-ink); }
.gh-ico { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--accent-ink); margin-bottom: 20px; }
.gh-ico svg { width: 22px; height: 22px; }
.guide-title { font-size: clamp(32px, 4.6vw, 52px); font-weight: 500; line-height: 1.05; letter-spacing: -2px; margin: 0 0 16px; }
.guide-lead { color: var(--muted); font-size: clamp(15.5px, 2vw, 18px); line-height: 1.7; max-width: 64ch; margin-bottom: 18px; }
.guide-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; font: 11px monospace; color: var(--muted); }
.guide-meta a { display: inline-flex; align-items: center; gap: 5px; color: var(--accent-ink); }
.guide-meta svg { width: 12px; height: 12px; }
.guide-layout { display: grid; gap: 26px; }
.guide-layout > * { min-width: 0; }
.toc { border-radius: 10px; padding: 16px 20px; }
.toc summary { cursor: pointer; font: 11px monospace; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.toc ul { list-style: none; margin: 12px 0 2px; padding: 0; display: grid; gap: 2px; font-size: 14.5px; }
.toc li a { display: block; padding: 5px 0 5px 14px; border-left: 1px solid var(--line); color: var(--muted); }
.toc li a:hover { color: var(--text); border-left-color: var(--accent-ink); }
.article { font-size: 16.5px; line-height: 1.8; }
.article > * + * { margin-top: 16px; }
.article h2 { font-size: clamp(22px, 2.8vw, 28px); line-height: 1.2; letter-spacing: -1px; margin-top: 44px; scroll-margin-top: 100px; }
.article p, .article li { color: var(--muted); }
.article strong, .article b { color: var(--text); }
.article ul, .article ol { padding-left: 22px; display: grid; gap: 8px; margin-bottom: 0; }
.article a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.article blockquote { margin: 16px 0 0; border: 1px solid var(--line); border-left: 3px solid var(--accent); background: var(--panel); border-radius: 8px; padding: 14px 18px; }
.article blockquote p + p { margin-top: 6px; }
.article code { font-family: monospace; font-size: .88em; padding: 2px 6px; border-radius: 4px; border: 1px solid var(--line); background: var(--panel); color: var(--text); overflow-wrap: anywhere; }
.article pre { position: relative; font-family: monospace; font-size: 13.5px; line-height: 1.7; padding: 16px 18px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); overflow-x: auto; }
.article pre code { padding: 0; border: 0; background: none; font-size: inherit; white-space: pre; overflow-wrap: normal; }
.article pre.has-copy { padding-top: 42px; }
.copy-btn { position: absolute; top: 8px; right: 8px; font: 11px monospace; padding: 6px 10px; border-radius: 20px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); }
.copy-btn:hover, .copy-btn.ok { color: var(--accent-ink); border-color: var(--accent-ink); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.article table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: 14px; line-height: 1.55; }
.article th, .article td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.article th { font: 10px monospace; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); background: var(--panel); }
.article tr:last-child td { border-bottom: 0; }
.article td { color: var(--muted); }
.guide-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 12px; }
.gn { display: grid; gap: 6px; padding: 18px 20px; border-radius: 10px; transition: border-color .2s; }
.gn:hover { border-color: var(--accent-ink); }
.gn small { font: 10px monospace; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.gn b { font-size: 15px; font-weight: 500; line-height: 1.4; }
.gn.next { text-align: right; }

/* Yangiliklar sahifasi */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.news-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px; transition: border-color .2s; }
.news-card:hover { border-color: var(--accent-ink); }
.nc-top { display: flex; justify-content: space-between; gap: 10px; font: 10px monospace; letter-spacing: 1px; color: var(--muted); }
.nc-src { color: var(--accent-ink); text-transform: uppercase; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nc-top time { flex: none; }
.news-card h3 { font-size: 17px; font-weight: 500; line-height: 1.4; margin: 0; }
.news-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 10px; }
.news-card p { color: var(--muted); font-size: 13px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nc-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 6px; }
.nc-tag { font: 10px monospace; padding: 3px 8px; border-radius: 4px; border: 1px solid var(--line); color: var(--muted); }
.nc-tr { position: relative; z-index: 1; font-size: 12px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.nc-tr:hover { color: var(--accent-ink); }
.news-empty, .news-none { padding: 22px; color: var(--muted); }
.news-upd { font: 11px monospace; color: var(--muted); white-space: nowrap; }
.news-filters button small { margin-left: 4px; font: 10px monospace; }
.news-src { margin-top: 32px; padding: 22px; display: grid; gap: 6px; }
.news-src p { color: var(--muted); font-size: 13px; }
.news-src b { color: var(--text); font-weight: 500; }
.news-note { font-size: 12px; }

/* Aloqa sahifasi */
.contact-page { padding: 72px 0 88px; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 38px; align-items: start; }
.contact-side .clink { display: flex; align-items: center; gap: 16px; padding: 16px 18px; margin-bottom: 12px; transition: border-color .2s; }
.contact-side .clink:hover { border-color: var(--accent-ink); }
.contact-side .clink > div { min-width: 0; }
.contact-side .clink .ci { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); color: var(--accent-ink); }
.contact-side .clink .ci svg { width: 19px; height: 19px; }
.contact-side .clink .ck { font: 10px monospace; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.contact-side .clink .cv { font-weight: 700; overflow-wrap: anywhere; }
.cform { padding: 30px; }
.cform .cf-head { font-size: 18px; font-weight: 500; margin-bottom: 18px; }
.cform label { display: block; font: 10px monospace; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin: 16px 0 7px; }
.cform input, .cform textarea { width: 100%; background: transparent; border: 1px solid var(--field); border-radius: 6px; color: var(--text); font: 15px/1.5 Arial, Helvetica, sans-serif; padding: 13px 15px; resize: vertical; }
.cform input:focus, .cform textarea:focus { outline: none; border-color: var(--accent-ink); }
.cform input::placeholder, .cform textarea::placeholder { color: var(--muted); opacity: .85; }
.cform .hp { position: absolute; left: -9999px; width: 0; height: 0; opacity: 0; }
.cf-send { margin-top: 22px; width: 100%; justify-content: center; }
.cf-status { margin-top: 14px; font-size: 14px; min-height: 20px; text-align: center; color: var(--muted); }
.cf-status.ok { color: var(--accent-ink); }
.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: color-mix(in srgb, var(--bg) 70%, transparent); opacity: 0; transition: opacity .2s; }
.modal-backdrop.show { opacity: 1; }
.modal-backdrop[hidden] { display: none; }
.modal { position: relative; width: min(420px, 100%); padding: 40px 30px 30px; text-align: center; }
.modal-icon { width: 60px; height: 60px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); }
.modal-icon svg { width: 28px; height: 28px; }
.modal h3 { font-size: 22px; font-weight: 500; margin: 0 0 8px; }
.modal p { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.modal .btn { width: 100%; justify-content: center; }
.modal-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: transparent; border: none; color: var(--muted); }
.modal-x:hover { color: var(--text); }
.modal-x svg { width: 18px; height: 18px; }

/* --------------------------------- Footer -------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: 26px 0; }
.footer { display: flex; justify-content: space-between; gap: 20px; font: 11px monospace; color: var(--muted); }
.footer div { display: flex; gap: 22px; flex-wrap: wrap; }
.footer a:hover { color: var(--accent-ink); }

/* -------------------------------- Moslashuv ------------------------------ */
@media (max-width: 1024px) {
  .guide-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .wrap { padding: 0 24px; }
  .links { gap: 16px; }
  .small-link { display: none; }
  .links .nav-contact { display: inline; }
  .hero { gap: 15px; padding-top: 45px; }
  h1 { letter-spacing: -2.5px; }
  .about { gap: 35px; }
  .section-head p { max-width: 250px; }
  .contact h2 { font-size: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .globe-version { font-size: 9px; }
}
@media (max-width: 760px) {
  .deck-hero { grid-template-columns: 1fr; }
  .dh-art { order: -1; border-left: 0; border-bottom: 1px solid #16200c33; min-height: 160px; }
  .ai-facts { grid-template-columns: 1fr; }
  .af + .af { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 650px) {
  .nav { height: 70px; }
  .menu { display: block; }
  .nav-right > .lang-switch { display: none; }
  .links { display: none; position: absolute; top: 70px; left: 0; right: 0; padding: 22px 24px 26px; background: var(--bg); border-bottom: 1px solid var(--line); flex-direction: column; gap: 18px; font-size: 15px; }
  .links.open { display: flex; }
  .links .lang-switch { display: flex; align-self: flex-start; }
  .hero { grid-template-columns: 1fr; gap: 42px; padding: 40px 0; }
  h1 { font-size: clamp(42px, 13vw, 55px); }
  .globe-panel { width: 100%; max-width: 480px; margin: auto; }
  .globe-top { padding-bottom: 14px; }
  .hero-foot { margin-top: 28px; }
  .stackbar { justify-content: flex-start; gap: 14px 20px; }
  .stackbar .eyebrow { width: 100%; }
  section { padding: 56px 0; }
  .section-head { display: block; }
  h2 { font-size: 34px; }
  .section-head p { margin-top: 15px; max-width: none; }
  .project-grid, .about, .ai-grid, .guide-grid, .news-grid { grid-template-columns: 1fr; }
  .about { gap: 30px; }
  .project-art { height: 180px; }
  .project { --art-h: 180px; }
  .project p { min-height: 0; }
  .stats { gap: 12px; }
  .stats b { font-size: 28px; }
  .ai-feature { min-height: 300px; padding: 28px; }
  .ai-feature h3 { font-size: 46px; }
  .news-row { grid-template-columns: 1fr 22px; }
  .news-row > span { grid-column: 1 / -1; }
  .contact { display: block; padding: 56px 0; }
  .contact-actions { margin-top: 26px; }
  .contact-actions .btn { min-width: 0; }
  .footer { flex-direction: column; line-height: 1.6; }
  .guide-nav { grid-template-columns: 1fr; }
  .gn.next { text-align: left; }
  .page-head, .contact-page { padding-top: 44px; }
  .article { font-size: 16px; }
}
@media (max-width: 380px) {
  .wrap { padding: 0 16px; }
  .logo { font-size: 19px; }
  .nav-right { gap: 8px; }
  .globe-modes button { padding: 7px 11px; }
  .contact-side .clink { padding: 14px; gap: 12px; }
  .contact-side .clink .cv { font-size: 14.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn:hover, .guide-card:hover, .deck-hero:hover, .project:hover .project-art .shot { transform: none; }
}
