/* Файл: услубҳои асосии сайти оммавии NIGOH Family — рангҳо, тарҳ ва компонентҳо. */

:root {
  --ink: #0b1220;
  --ink-2: #2a3342;
  --muted: #5d6676;
  --faint: #687386;
  --line: #e6e8ec;
  --line-2: #d7dbe2;
  --bg: #ffffff;
  --soft: #f6f7f9;
  --navy: #0a2a6b;
  --blue: #1f63e0;
  --blue-ink: #1650c0;
  --blue-soft: #edf3ff;
  --teal: #12b5a6;
  --teal-soft: #e7f8f6;
  --amber: #c27a00;
  --amber-soft: #fff5e1;
  --red: #d93a3a;
  --red-soft: #fdeeee;
  --surface: #ffffff;
  --on-ink: #ffffff;
  --ink-hover: #1c2536;
  --header-bg: rgba(255, 255, 255, .86);
  --cta-bg: #0b1220;
  --focus-ring: var(--blue);

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(11, 18, 32, .04), 0 8px 24px rgba(11, 18, 32, .06);
  --wrap: 1120px;
  --gutter: 20px;
  color-scheme: light;
}

/* Мавзӯи торикро аз `data-theme` ё танзими системаи корбар муайян мекунад. */
:root[data-theme="dark"] {
  --ink: #e8ecf3;
  --ink-2: #c9d1de;
  --muted: #9aa4b5;
  --faint: #7a8496;
  --line: #232b3a;
  --line-2: #2e3849;
  --bg: #0b0f17;
  --soft: #111723;
  --blue: #6f9bff;
  --blue-ink: #8eb0ff;
  --blue-soft: #16213a;
  --teal: #3fd0c2;
  --teal-soft: #10272a;
  --amber: #f0b44c;
  --amber-soft: #2a2112;
  --red: #ff7676;
  --red-soft: #2c1414;
  --surface: #121826;
  --on-ink: #0b0f17;
  --ink-hover: #ffffff;
  --header-bg: rgba(11, 15, 23, .82);
  --cta-bg: #141c2e;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  color-scheme: dark;
}
body { transition: background-color .3s, color .3s; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html:focus-within { scroll-behavior: smooth; }
}
[id] { scroll-margin-top: 88px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--blue); color: #ffffff; }
:root[data-theme="dark"] ::selection { background: var(--teal); color: #0b0f17; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-ink); }
:where(a, button, input, summary):focus-visible {
  outline: 3px solid var(--focus-ring); outline-offset: 3px; border-radius: 6px;
}
.skip-link {
  position: fixed; z-index: 100; top: 10px; left: 10px; padding: 10px 14px;
  border-radius: 9px; background: var(--ink); color: var(--on-ink); font-weight: 600;
  transform: translateY(calc(-100% - 16px)); transition: transform .15s ease;
}
.skip-link:focus-visible { color: var(--on-ink); transform: translateY(0); }

/* Чаҳорчӯба, паҳно ва фосилаҳои умумии саҳифаро танзим мекунад. */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section.soft, .section-sm.soft { background: var(--soft); }
.section + .section:not(.soft) { border-top: 1px solid var(--line); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.stack > * + * { margin-top: 16px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }

/* Андоза ва вазни сарлавҳаю матнҳоро муайян мекунад. */
h1, h2, h3, h4 { margin: 0; color: var(--ink); letter-spacing: -.022em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.9rem); line-height: 1.06; letter-spacing: -.035em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.12; }
h3 { font-size: 1.18rem; line-height: 1.3; letter-spacing: -.012em; }
h4 { font-size: 1rem; line-height: 1.35; }
p { margin: 0; text-wrap: pretty; }
.lead { font-size: clamp(1.06rem, 1.6vw, 1.22rem); color: var(--muted); max-width: 640px; line-height: 1.6; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .02em;
  color: var(--blue); margin-bottom: 14px;
}
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; }
.section-head h2 + .lead { margin-top: 16px; }

/* Тугмаҳои асосӣ ва дуюмдараҷаро оро медиҳад. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font: 600 .95rem/1 inherit; font-family: inherit; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.btn:active, .nav-toggle:active, .back-to-top:active { transform: scale(.97); }
.btn-primary { background: var(--ink); color: var(--on-ink); }
.btn-primary:hover { background: var(--ink-hover); color: var(--on-ink); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { height: 38px; padding: 0 16px; font-size: .875rem; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btn-row { justify-content: center; }
.link-arrow { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow::after { content: "→"; transition: transform .15s; }
.link-arrow:hover::after { transform: translateX(3px); }

/* Header, logo ва паймоиши болоро ҷойгир мекунад. */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; letter-spacing: -.01em; white-space: nowrap; flex: none; }
.brand:hover { color: var(--ink); }
.brand img { width: 30px; height: 30px; transition: transform .2s cubic-bezier(.2,.8,.2,1); }
@media (hover: hover) and (pointer: fine) {
  .brand:hover img { transform: rotate(-5deg) scale(1.06); }
}
.nav-links { display: flex; gap: 4px; margin: 0 auto 0 12px; padding: 0; list-style: none; }
.nav-links a {
  display: block; position: relative; padding: 8px 10px; border-radius: 8px; white-space: nowrap;
  color: var(--muted); font-size: .92rem; font-weight: 500;
}
.nav-links a::after {
  content: ""; position: absolute; right: 10px; bottom: 4px; left: 10px; height: 2px;
  border-radius: 2px; background: var(--blue); transform: scaleX(0); transform-origin: right;
  transition: transform .2s ease;
}
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after {
  transform: scaleX(1); transform-origin: left;
}
.nav-links a:hover { color: var(--ink); background: var(--soft); }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--surface); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; content: "";
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

/* Hero ва муаррифии аввали саҳифаро месозад. */
.hero { padding: 88px 0 72px; }
.hero .lead { margin-top: 22px; }
.hero .btn-row { margin-top: 34px; }
.hero-meta { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--faint); font-size: .875rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-visual::before {
  content: ""; position: absolute; inset: 8% 4% 0; border-radius: 40px;
  background: linear-gradient(180deg, var(--blue-soft), var(--teal-soft));
  z-index: -1;
}
.page-hero { padding: 80px 0 56px; border-bottom: 1px solid var(--line); }
.page-hero .lead { margin-top: 18px; }

/* Кортҳо ва рӯйхати имкониятҳоро оро медиҳад. */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px;
}
.card.flat { background: var(--soft); border-color: transparent; }
.card h3 + p, .card h4 + p { margin-top: 8px; color: var(--muted); }
.card-link { display: block; color: inherit; transition: border-color .15s, box-shadow .15s; }
.card-link:hover { color: inherit; border-color: var(--line-2); box-shadow: var(--shadow); }
.icon {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue-soft); color: var(--blue); margin-bottom: 18px;
}
.icon svg { width: 22px; height: 22px; }
.icon.teal { background: var(--teal-soft); color: var(--teal); }
.icon.amber { background: var(--amber-soft); color: var(--amber); }
.icon.red { background: var(--red-soft); color: var(--red); }
.icon.ink { background: var(--ink); color: var(--on-ink); }

.feature-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.feature-list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--ink-2); }
.feature-list li::before {
  content: ""; width: 22px; height: 22px; border-radius: 50%; margin-top: 1px;
  background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2312b5a6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.tag {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px;
  border-radius: 999px; font-size: .78rem; font-weight: 600;
  background: var(--soft); color: var(--ink-2); border: 1px solid var(--line);
}
.tag.blue { background: var(--blue-soft); color: var(--blue); border-color: transparent; }
.tag.teal { background: var(--teal-soft); color: #0d8579; border-color: transparent; }

/* Марҳилаҳои рақамдори роҳнаморо ҷойгир мекунад. */
.steps { counter-reset: step; display: grid; gap: 0; }
.step { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 28px 0; border-top: 1px solid var(--line); }
.step:last-child { border-bottom: 1px solid var(--line); }
.step::before {
  content: counter(step); width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: .95rem;
  background: var(--ink); color: var(--on-ink);
}
.step p { margin-top: 6px; color: var(--muted); }

/* Нишондиҳандаҳои кӯтоҳи оморро оро медиҳад. */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 28px 20px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat b { display: block; font-size: 1.9rem; letter-spacing: -.03em; color: var(--ink); }
.stat span { color: var(--muted); font-size: .9rem; }

/* Кортҳои QR ва боргириро ҷойгир мекунад. */
.qr-card {
  display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px;
  box-shadow: var(--shadow);
}
.qr-card img { width: 168px; height: 168px; border-radius: 12px; border: 1px solid var(--line); background: #fff; }
.qr-card h3 + p { margin-top: 6px; color: var(--muted); }
.qr-card .btn-row { margin-top: 18px; }
.qr-big { width: 240px; height: 240px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 20px; }
.meta-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.meta-table th, .meta-table td { text-align: left; padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.meta-table th { color: var(--muted); font-weight: 500; width: 42%; }
.meta-table td { color: var(--ink); font-weight: 600; }

/* Рӯйхати саволу ҷавобҳоро оро медиҳад. */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-weight: 600; font-size: 1.05rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg);
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 0 24px; color: var(--muted); max-width: 760px; }
.faq details > div p + p { margin-top: 10px; }

/* Блокҳои огоҳӣ ва даъват ба амалро ҷудо мекунад. */
.callout {
  border-radius: var(--radius-lg); padding: 20px 22px; background: var(--blue-soft); color: var(--ink-2);
  display: grid; grid-template-columns: 24px 1fr; gap: 12px; font-size: .95rem;
}
.callout::before { content: "i"; width: 22px; height: 22px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font: 700 .8rem/1 Georgia, serif; }
.callout.amber { background: var(--amber-soft); }
.callout.amber::before { background: var(--amber); content: "!"; font-family: inherit; }
.cta {
  background: var(--cta-bg); color: #cfd6e2; border-radius: 28px; padding: 64px 48px;
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
}
.cta h2 { color: #fff; }
.cta p { margin-top: 12px; max-width: 520px; }
.cta .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .28); }
.cta .btn-ghost:hover { border-color: #fff; }
.cta .btn-primary { background: #fff; color: #0b1220; }
.cta .btn-primary:hover { background: #e9edf3; }
.cta img { width: 132px; height: 132px; border-radius: 14px; background: #fff; padding: 8px; }

/* Намунаҳои экран ва расмҳои барномаро оро медиҳад. */
.screen {
  border-radius: 28px; background: var(--soft); border: 1px solid var(--line);
  padding: 32px; display: flex; align-items: center; justify-content: center; min-height: 320px;
}
.screen img { max-height: 420px; width: auto; }

/* Footer ва пайвандҳои поёни сайтро ҷойгир мекунад. */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: 0; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.footer-grid h4 { font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: 14px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { color: var(--muted); }
.footer-grid ul a {
  background-image: linear-gradient(var(--blue), var(--blue));
  background-position: left bottom; background-repeat: no-repeat; background-size: 0 1px;
  transition: color .18s ease, background-size .18s ease;
}
.footer-grid a:hover { color: var(--ink); }
.footer-grid ul a:hover { background-size: 100% 1px; }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--faint); }
/* Матн танҳо барои хонандаҳои экран (screen reader), дар экран пинҳон. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Пайвандҳои ҳуқуқӣ дар поёни footer: махфият, шартҳо, амният. */
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-legal a { color: var(--faint); text-decoration: none; }
.footer-legal a:hover, .footer-legal a:focus-visible { color: var(--ink); text-decoration: underline; }

/* Тарҳро ба планшет ва телефон мутобиқ мекунад. */
@media (max-width: 960px) {
  .split, .split.reverse { grid-template-columns: 1fr; gap: 48px; }
  .split.reverse > :first-child { order: 0; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta { grid-template-columns: 1fr; padding: 48px 32px; }
}
@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; }
  .nav-links, .nav-actions { display: none; }
  .site-header.open .nav { flex-wrap: wrap; height: auto; padding: 11px 0; }
  .site-header.open .nav-links {
    display: grid; order: 3; width: 100%; margin: 8px 0 0; gap: 0;
  }
  .site-header.open .nav-links a { padding: 12px 4px; border-radius: 0; border-top: 1px solid var(--line); font-size: 1rem; }
  .site-header.open .nav-links a::after { right: 4px; bottom: 5px; left: 4px; }
  .site-header.open .nav-actions { display: flex; order: 4; width: 100%; padding: 12px 0 6px; }
  .site-header.open .nav-actions .btn { flex: 1; }
  .site-header.open .nav-links, .site-header.open .nav-actions {
    animation: mobile-menu-in .22s cubic-bezier(.2,.8,.2,1) both;
  }
  .site-header.open .nav-actions { animation-delay: .04s; }
}
@keyframes mobile-menu-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 640px) {
  :root { --gutter: 16px; }
  .section { padding: 64px 0; }
  .section-sm { padding: 48px 0; }
  .hero { padding: 48px 0 40px; }
  .page-hero { padding: 48px 0 36px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .card { padding: 22px; }
  .qr-card { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .qr-card .btn-row { justify-content: center; }
  .btn-row .btn { flex: 1 1 100%; }
  .step { grid-template-columns: 1fr; gap: 12px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .cta { padding: 36px 22px; border-radius: 22px; }
  .meta-table th { width: 46%; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .brand:hover img { transform: none !important; }
  .btn:active, .nav-toggle:active, .back-to-top:active { transform: none !important; }
  .site-header.open .nav-links, .site-header.open .nav-actions { animation: none !important; }
}

/* Интихобгари забон ва ҳолати фаъоли онро оро медиҳад. */
.lang-switch { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 2px; gap: 2px; }
.lang-switch a { font-size: .75rem; font-weight: 600; color: var(--muted); padding: 4px 8px; border-radius: 999px; letter-spacing: .02em; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current="true"] { background: var(--ink); color: var(--on-ink); }
@media (max-width: 1180px) {
  .site-header.open .nav-actions { flex-wrap: wrap; }
  .site-header.open .lang-switch { order: -1; width: 100%; justify-content: center; margin-bottom: 4px; }
}

@media (max-width: 1180px) {
  .site-header.open .theme-switch { order: -2; margin: 0 auto 6px; }
}


/* Намуди саҳифаро барои чоп сода мекунад. */
@media print {
  .site-header, .site-footer, .nav-toggle, .nav-actions, .lang-switch,
  .theme-switch, .back-to-top, .scroll-progress { display: none !important; }
  :root, :root[data-theme="dark"] { color-scheme: light; }
  body, main, .section, .section-sm, .card, .screen, .cta {
    background: #ffffff !important; color: #000000 !important; box-shadow: none !important;
  }
  *, *::before, *::after { color: #000000 !important; }
  a[href]:not([href^="#"])::after {
    content: " (" attr(href) ")"; font-size: .85em; font-weight: 400; overflow-wrap: anywhere;
  }
  a { text-decoration: underline; }
  @page { margin: 16mm; }
}
