/* about.css — Topildi.uz "Biz haqimizda" sahifasi
   Barcha klasslar ab- prefiksi bilan, about.html ga mos. */

.ab-page {
  --ab-bg: #0b0b0a;
  --ab-bg2: #121211;
  --ab-card: #181817;
  --ab-line: rgba(255, 255, 255, 0.08);
  --ab-gold: #c9a84c;
  --ab-gold-hi: #e8c96e;
  --ab-gold-dim: rgba(201, 168, 76, 0.14);
  --ab-text: #f0ece4;
  --ab-muted: #9a958a;
  --ab-dim: #6b675e;
  --ab-green: #52b788;
  --ab-radius: 14px;
  --ab-serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --ab-sans: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ab-pad: clamp(20px, 5vw, 60px);

  margin: 0;
  background: var(--ab-bg);
  color: var(--ab-text);
  font-family: var(--ab-sans);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
}

.ab-page *, .ab-page *::before, .ab-page *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* Nolinli specificity: faqat sahifa bo'limlari ichidagi standart margin/padding tozalanadi */
:where(.ab-hero, .ab-ticker, .ab-section, .ab-cta, .ab-footer)
  :where(h1, h2, h3, h4, p, ul, blockquote) { margin: 0; padding: 0; }
:where(.ab-hero, .ab-ticker, .ab-section, .ab-cta, .ab-footer) :where(ul) { list-style: none; }

.ab-page a { color: inherit; }
.ab-page :focus-visible { outline: 2px solid var(--ab-gold); outline-offset: 3px; }

/* ─── umumiy elementlar ─── */
.ab-eyebrow {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ab-gold);
  font-weight: 500;
  margin-bottom: 18px;
}

.ab-title {
  font-family: var(--ab-serif);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.ab-title em, .ab-hero-title em, .ab-cta h2 em { font-style: italic; color: var(--ab-gold); font-weight: 500; }

.ab-lead { color: var(--ab-muted); max-width: 52ch; margin-top: 16px !important; font-size: 17px; }

.ab-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(64px, 9vw, 110px) var(--ab-pad);
}
.ab-head { margin-bottom: clamp(32px, 5vw, 56px); }

.ab-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 10px;
  font-family: var(--ab-sans);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.ab-btn-gold { background: var(--ab-gold); color: #0b0b0a; font-weight: 600; }
.ab-btn-gold:hover { background: var(--ab-gold-hi); transform: translateY(-1px); }
.ab-btn-ghost { border-color: var(--ab-line); color: var(--ab-text); background: rgba(11, 11, 10, 0.5); }
.ab-btn-ghost:hover { border-color: rgba(201, 168, 76, 0.5); color: var(--ab-gold-hi); }

/* ─── HERO + jonli xarita ─── */
.ab-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding-top: 96px;
  overflow: hidden;
  isolation: isolate;
}

.ab-map {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--ab-bg);
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
}
.ab-map.is-ready { opacity: 1; }
.ab-map .leaflet-container { background: var(--ab-bg); font-family: var(--ab-sans); }
.ab-map .leaflet-tile-pane { filter: saturate(0.5) brightness(0.9); }
.ab-map .leaflet-control-attribution {
  background: rgba(11, 11, 10, 0.6);
  color: var(--ab-dim);
  font-size: 10px;
}
.ab-map .leaflet-control-attribution a { color: var(--ab-muted); }

/* matn o'qilishi uchun xarita ustidan qoplama */
.ab-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 75% 65% at 50% 46%, rgba(11, 11, 10, 0.9) 0%, rgba(11, 11, 10, 0.55) 60%, rgba(11, 11, 10, 0.15) 100%),
    linear-gradient(0deg, var(--ab-bg) 0%, transparent 28%);
}

/* xarita nuqtalari */
.ab-pin { border-radius: 50%; background: var(--c, var(--ab-gold)); color: var(--c, var(--ab-gold)); }
.ab-pin.lost { --c: var(--ab-gold); }
.ab-pin.found { --c: var(--ab-green); }
.ab-pin.returned { --c: var(--ab-text); }
.ab-pin::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid currentColor;
  animation: abRing 3s ease-out infinite;
  animation-delay: var(--d, 0s);
}
@keyframes abRing {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(3.2); opacity: 0; }
}

.ab-legend {
  position: absolute;
  z-index: 3;
  left: 50%;
  transform: translateX(-50%);
  top: 112px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid var(--ab-line);
  border-radius: 999px;
  background: rgba(11, 11, 10, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 12px;
  color: var(--ab-muted);
}
.ab-legend b { color: var(--ab-text); font-weight: 600; font-variant-numeric: tabular-nums; }
.ab-legend-live {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ab-green);
  animation: abBlink 2s ease-in-out infinite;
}
@keyframes abBlink { 50% { opacity: 0.3; } }
.ab-legend-sep { width: 1px; height: 14px; background: var(--ab-line); }
.ab-legend-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.ab-legend-dot.lost { background: var(--ab-gold); }
.ab-legend-dot.found { background: var(--ab-green); }

.ab-hero-inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px var(--ab-pad) 40px;
}
.ab-hero-title {
  font-family: var(--ab-serif);
  font-size: clamp(54px, 9vw, 120px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin-bottom: 24px !important;
}
.ab-hero-desc { max-width: 46ch; color: var(--ab-muted); font-size: clamp(16px, 1.6vw, 19px); margin: 0 auto 36px !important; }
.ab-hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* sahifa ochilishidagi yagona ketma-ketlik */
.ab-js .ab-in-up { opacity: 0; transform: translateY(18px); animation: abUp 0.8s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: calc(var(--i, 0) * 110ms + 150ms); }
@keyframes abUp { to { opacity: 1; transform: none; } }

.ab-hero-stats { position: relative; z-index: 2; border-top: 1px solid var(--ab-line); background: rgba(11, 11, 10, 0.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.ab-hero-stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px var(--ab-pad);
  display: flex;
  justify-content: center;
  gap: clamp(32px, 8vw, 96px);
}
.ab-hstat { display: flex; flex-direction: column; align-items: center; text-align: center; }
.ab-hstat-num { font-family: var(--ab-serif); font-size: clamp(30px, 4vw, 44px); font-weight: 600; line-height: 1; color: var(--ab-gold); font-variant-numeric: tabular-nums; }
.ab-hstat-label { font-size: 13px; color: var(--ab-muted); margin-top: 6px; }

/* ─── jonli lenta ─── */
.ab-ticker { overflow: hidden; border-block: 1px solid var(--ab-line); background: var(--ab-bg2); }
.ab-ticker-track { display: flex; width: max-content; animation: abScroll 55s linear infinite; }
.ab-ticker:hover .ab-ticker-track { animation-play-state: paused; }
@keyframes abScroll { to { transform: translateX(-50%); } }

.ab-tick { display: inline-flex; align-items: center; gap: 10px; padding: 14px 28px; font-size: 14px; white-space: nowrap; border-right: 1px solid var(--ab-line); }
.ab-tick-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ab-gold); flex: none; }
.ab-tick.found .ab-tick-dot { background: var(--ab-green); }
.ab-tick.returned .ab-tick-dot { background: var(--ab-text); }
.ab-tick b { font-weight: 600; color: var(--ab-text); }
.ab-tick.lost b { color: var(--ab-gold-hi); }
.ab-tick.found b { color: var(--ab-green); }
.ab-tick span { color: var(--ab-muted); }
.ab-tick em { font-style: normal; color: var(--ab-dim); }
.ab-tick time { color: var(--ab-dim); font-variant-numeric: tabular-nums; }

/* ─── qanday ishlaydi ─── */
.ab-steps { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--ab-line); border-radius: var(--ab-radius); overflow: hidden; }
.ab-step { padding: 36px 30px; background: var(--ab-bg2); }
.ab-step + .ab-step { border-left: 1px solid var(--ab-line); }
.ab-step-num { display: block; font-family: var(--ab-serif); font-size: 64px; line-height: 1; color: var(--ab-gold); opacity: 0.55; margin-bottom: 18px; }
.ab-step h3 { font-family: var(--ab-serif); font-size: 26px; font-weight: 600; margin-bottom: 10px !important; }
.ab-step p { color: var(--ab-muted); font-size: 15px; }

.ab-feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 14px; }
.ab-feat { padding: 24px; border: 1px solid var(--ab-line); border-radius: var(--ab-radius); background: var(--ab-card); transition: border-color 0.2s; }
.ab-feat:hover { border-color: rgba(201, 168, 76, 0.35); }
.ab-feat-icon { display: block; font-size: 24px; margin-bottom: 14px; }
.ab-feat h4 { font-size: 16px; font-weight: 600; margin-bottom: 6px !important; }
.ab-feat p { color: var(--ab-muted); font-size: 14px; }

/* ─── raqamlar ─── */
.ab-stats-section { border-top: 1px solid var(--ab-line); }
.ab-stats-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.ab-statcards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ab-statcard { padding: 26px 22px; border: 1px solid var(--ab-line); border-radius: var(--ab-radius); background: var(--ab-card); }
.ab-statcard-num { display: block; font-family: var(--ab-serif); font-size: clamp(36px, 4.5vw, 52px); font-weight: 600; line-height: 1; color: var(--ab-gold); font-variant-numeric: tabular-nums; margin-bottom: 8px; }
.ab-statcard.is-green .ab-statcard-num { color: var(--ab-green); }
.ab-statcard-label { font-size: 14px; color: var(--ab-muted); }

.ab-charts { display: grid; gap: 36px; }
.ab-chart h4 { font-size: 15px; font-weight: 600; margin-bottom: 16px !important; }
.ab-bars { display: grid; gap: 12px; }
.ab-bar { display: grid; grid-template-columns: minmax(80px, 140px) 1fr 40px; align-items: center; gap: 14px; font-size: 14px; }
.ab-bar-name { color: var(--ab-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ab-bar-track { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.ab-bar-track i { display: block; height: 100%; width: var(--w, 0%); border-radius: inherit; background: var(--ab-green); }
.ab-bar.gold .ab-bar-track i { background: var(--ab-gold); }
.ab-bar-count { text-align: right; color: var(--ab-muted); font-variant-numeric: tabular-nums; }
.ab-empty { color: var(--ab-dim); font-size: 14px; }

/* JS yoqilganda diagramma chiziqlari ko'ringanda o'sadi */
.ab-js .ab-bar-track i { width: 0; transition: width 1s cubic-bezier(.2, .7, .2, 1); transition-delay: 0.15s; }
.ab-js .ab-reveal.is-in .ab-bar-track i { width: var(--w, 0%); }

/* ─── asoschi maktubi ─── */
.ab-letter { display: grid; grid-template-columns: 1.7fr 1fr; border: 1px solid var(--ab-line); border-radius: 20px; overflow: hidden; background: var(--ab-bg2); }
.ab-letter-main { padding: clamp(28px, 5vw, 56px); }
.ab-quote { font-family: var(--ab-serif); font-style: italic; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.15; color: var(--ab-text); margin-bottom: 24px !important; }
.ab-letter-main p { color: var(--ab-muted); max-width: 58ch; margin-bottom: 14px !important; font-size: 16px; line-height: 1.75; }
.ab-sign { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--ab-line); display: flex; flex-direction: column; }
.ab-sign-name { font-family: var(--ab-serif); font-style: italic; font-size: 26px; color: var(--ab-gold-hi); }
.ab-sign-role { font-size: 13px; color: var(--ab-dim); }

.ab-letter-side { padding: clamp(28px, 4vw, 44px); background: var(--ab-card); border-left: 1px solid var(--ab-line); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 4px; }
.ab-avatar { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-family: var(--ab-serif); font-size: 34px; font-weight: 600; color: #0b0b0a; background: linear-gradient(135deg, var(--ab-gold), var(--ab-gold-hi)); margin-bottom: 14px; }
.ab-letter-side-name { font-weight: 600; font-size: 18px; }
.ab-letter-side-role { font-size: 14px; color: var(--ab-muted); }
.ab-letter-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px !important; }
.ab-letter-tags li { font-size: 12px; padding: 5px 12px; border-radius: 99px; border: 1px solid var(--ab-line); color: var(--ab-muted); }

/* ─── xavfsizlik ─── */
.ab-safe { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--ab-line); }
.ab-safe-item { display: flex; gap: 18px; padding: 24px 20px 24px 0; border-bottom: 1px solid var(--ab-line); }
.ab-safe-item:nth-child(even) { padding-left: 28px; border-left: 1px solid var(--ab-line); }
.ab-safe-item > span { font-family: var(--ab-serif); font-size: 28px; line-height: 1; color: var(--ab-gold); flex: none; width: 36px; }
.ab-safe-item h4 { font-size: 16px; font-weight: 600; margin-bottom: 4px !important; }
.ab-safe-item p { color: var(--ab-muted); font-size: 14px; }

/* ─── savollar ─── */
.ab-faq { max-width: 800px; border-top: 1px solid var(--ab-line); }
.ab-faq details { border-bottom: 1px solid var(--ab-line); }
.ab-faq summary { cursor: pointer; list-style: none; padding: 20px 40px 20px 0; font-size: 17px; font-weight: 500; position: relative; }
.ab-faq summary::-webkit-details-marker { display: none; }
.ab-faq summary::after { content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--ab-gold); transition: transform 0.25s; }
.ab-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.ab-faq details p { padding: 0 40px 22px 0 !important; color: var(--ab-muted); }

/* ─── CTA ─── */
.ab-cta { position: relative; text-align: center; padding: clamp(80px, 12vw, 140px) var(--ab-pad); overflow: hidden; border-top: 1px solid var(--ab-line); }
.ab-cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 700px 320px at 50% 50%, rgba(201, 168, 76, 0.08), transparent 70%); pointer-events: none; }
.ab-cta-inner { position: relative; max-width: 640px; margin: 0 auto; }
.ab-cta h2 { font-family: var(--ab-serif); font-size: clamp(42px, 6vw, 76px); font-weight: 600; line-height: 1; margin-bottom: 18px !important; }
.ab-cta p { color: var(--ab-muted); margin-bottom: 32px !important; }
.ab-cta .ab-hero-actions { justify-content: center; }

/* ─── footer ─── */
.ab-footer { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding: 32px var(--ab-pad); padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--ab-line); font-size: 13px; color: var(--ab-dim); }
.ab-footer-links { display: flex; gap: 24px; }
.ab-footer-links a { text-decoration: none; transition: color 0.2s; }
.ab-footer-links a:hover { color: var(--ab-text); }

/* ─── scroll reveal (faqat JS yoqilganda yashiriladi) ─── */
.ab-js .ab-reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; transition-delay: calc(var(--i, 0) * 90ms); }
.ab-js .ab-reveal.is-in { opacity: 1; transform: none; }

/* ─── moslashuvchan ─── */
@media (max-width: 960px) {
  .ab-feats { grid-template-columns: repeat(2, 1fr); }
  .ab-stats-grid { grid-template-columns: 1fr; }
  .ab-letter { grid-template-columns: 1fr; }
  .ab-letter-side { border-left: 0; border-top: 1px solid var(--ab-line); }
}
@media (max-width: 720px) {
  .ab-hero::after { background: linear-gradient(0deg, var(--ab-bg) 0%, rgba(11, 11, 10, 0.75) 55%, rgba(11, 11, 10, 0.45) 100%); }
  .ab-legend { top: 96px; font-size: 11px; padding: 6px 12px; gap: 6px; }
  .ab-steps { grid-template-columns: 1fr; }
  .ab-step + .ab-step { border-left: 0; border-top: 1px solid var(--ab-line); }
  .ab-safe { grid-template-columns: 1fr; }
  .ab-safe-item:nth-child(even) { padding-left: 0; border-left: 0; }
  .ab-hero-stats-inner { gap: 24px; }
  .ab-bar { grid-template-columns: 90px 1fr 32px; gap: 10px; }
}
@media (max-width: 480px) {
  .ab-feats, .ab-statcards { grid-template-columns: 1fr; }
  .ab-hero-actions .ab-btn { flex: 1 1 100%; justify-content: center; }
}

/* ─── harakat kamaytirilganda ─── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ab-ticker { overflow-x: auto; }
  .ab-ticker-track { animation: none; }
  .ab-pin::after, .ab-legend-live { animation: none; }
  .ab-js .ab-in-up, .ab-js .ab-reveal { opacity: 1; transform: none; animation: none; transition: none; }
  .ab-js .ab-bar-track i { width: var(--w, 0%); transition: none; }
}

/* Cormorant standart holatda old-style raqamlar chizadi; tekis (lining) raqamlar kerak */
.ab-hstat-num, .ab-statcard-num, .ab-step-num, .ab-safe-item > span { font-feature-settings: 'lnum' 1, 'tnum' 1; }