/* nim.uz — bosh sahifa uslublari. Barcha klasslar `nim-` prefiksi bilan, global qoidalar `.nim-root` ichida cheklangan. */

:root {
  --nim-ink: #06102a;
  --nim-navy: #0a1d4a;
  --nim-blue: #1e4fd8;
  --nim-blue-text: #1742c0;
  --nim-cyan: #33d1ff;
  --nim-amber: #ffb547;
  --nim-bg: #f4f7fc;
  --nim-card: #ffffff;
  --nim-text: #0e1a33;
  --nim-muted: #55627c;
  --nim-line: #dfe6f2;
  --nim-ok: #0f9d58;
  --nim-err: #d93025;
  --nim-radius: 20px;
  --nim-shadow: 0 20px 50px -20px rgba(10, 29, 74, .25);
  --nim-ease: cubic-bezier(.22, 1, .36, 1);
  --nim-font-display: "Unbounded", system-ui, sans-serif;
  --nim-font: "Roboto", system-ui, sans-serif;
  --nim-mono: "Roboto Mono", ui-monospace, monospace;
}

/* ---------- Umumiy qoidalar: reset, shrift, havola, tugma ---------- */

:where(.nim-root),
:where(.nim-root) *,
:where(.nim-root)::before,
:where(.nim-root) *::before,
:where(.nim-root)::after,
:where(.nim-root) *::after {
  box-sizing: border-box; margin: 0; padding: 0;
}

html {
  scroll-behavior: smooth; scroll-padding-top: 110px;
}

:where(.nim-root) {
  font-family: var(--nim-font); color: var(--nim-text); background: var(--nim-bg); line-height: 1.6; overflow-x: clip; -webkit-font-smoothing: antialiased;
}

:where(.nim-root) a {
  color: inherit; text-decoration: none;
}

:where(.nim-root) button,
:where(.nim-root) input,
:where(.nim-root) select,
:where(.nim-root) textarea {
  font: inherit; color: inherit;
}

:where(.nim-root) button {
  cursor: pointer; border: 0; background: none;
}

:where(.nim-root) img {
  max-width: 100%; display: block;
}

:where(.nim-root) ul {
  list-style: none;
}

:where(.nim-root) svg {
  flex-shrink: 0;
}

:where(.nim-root) :focus-visible {
  outline: 3px solid var(--nim-amber); outline-offset: 2px; border-radius: 6px;
}

.nim-container {
  width: min(1240px, 100% - 32px); margin-inline: auto;
}

.nim-center {
  text-align: center; margin-top: 48px;
}

:where(.nim-root) [hidden] {
  display: none !important;
}

@keyframes nim-spin {
  to { transform: rotate(360deg); }
}

@keyframes nim-float {
  50% { transform: translateY(-10px); }
}

@keyframes nim-fadeUp {
  from { opacity: 0; transform: translateY(10px); }
}

/* Hero action buttons */

.nim-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 26px; border-radius: 999px; font-weight: 700; font-size: 15px; transition: transform .3s var(--nim-ease), box-shadow .3s, background .3s, color .3s; overflow: hidden; isolation: isolate;
}

.nim-btn svg {
  width: 18px; height: 18px;
}

.nim-btn--small {
  padding: 10px 18px; font-size: 14px;
}

.nim-btn--primary {
  background: linear-gradient(135deg, var(--nim-blue), #1a8fe0); color: #fff; box-shadow: 0 12px 30px -10px rgba(30,79,216,.7);
}

.nim-btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%); transform: translateX(-100%); transition: transform .7s var(--nim-ease);
}

.nim-btn--primary:hover::before {
  transform: translateX(100%);
}

.nim-btn--primary:hover {
  box-shadow: 0 18px 40px -10px rgba(30,79,216,.9);
}

.nim-btn--ghost {
  border: 1px solid rgba(255,255,255,.3); color: #fff;
}

.nim-btn--ghost:hover {
  background: rgba(255,255,255,.1);
}

.nim-btn--outline {
  border: 1.5px solid var(--nim-navy); color: var(--nim-navy);
}

.nim-btn--outline:hover {
  background: var(--nim-navy); color: #fff;
}

.nim-btn[disabled] {
  opacity: .6; pointer-events: none;
}

.nim-link-arrow {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--nim-blue-text);
}

.nim-link-arrow i {
  font-style: normal; transition: transform .3s var(--nim-ease);
}

.nim-link-arrow:hover i {
  transform: translateX(6px);
}

/* ---------- Bosh sahifa: hero ---------- */

.nim-hero {
  position: relative; isolation: isolate; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; background: radial-gradient(ellipse at 78% 48%, rgba(13,75,112,.42), transparent 38%), radial-gradient(ellipse at 12% 82%, rgba(10,45,82,.48), transparent 42%), linear-gradient(118deg, #050d1b 0%, #071a2b 48%, #081326 100%); color: #fff; overflow: hidden; padding: 170px 0 110px;
}

/* World map with geographic coastlines and metrology scan */

.nim-world-map-bg {
  position:absolute;z-index:0;inset:3% 0 3% 27%;pointer-events:none;opacity:.32;overflow:hidden;mask-image:linear-gradient(90deg,transparent 0%,#000 18%,#000 88%,transparent 100%);-webkit-mask-image:linear-gradient(90deg,transparent 0%,#000 18%,#000 88%,transparent 100%)
}

.nim-world-map-bg svg {
  width:100%;height:100%;overflow:visible
}

.nim-world-map-bg g:first-of-type path {
  fill:rgba(36,128,157,.055);stroke:url(#mapStroke);stroke-width:1.05;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke;filter:drop-shadow(0 0 3px rgba(59,205,222,.28))
}

.nim-world-map-bg .nim-map-markers circle {
  fill:#8be9ec;filter:drop-shadow(0 0 5px #36c8dc)
}

.nim-world-map-bg .nim-map-markers circle:nth-child(2) {
  fill:none;stroke:#8be9ec;stroke-width:1.2;animation:nim-mapPulse 3s ease-out infinite
}

.nim-world-map-bg .nim-map-markers circle:nth-child(n+3) {
  opacity:.7
}

.nim-world-map-bg .nim-map-scan {
  stroke:#8be9ec;stroke-width:1.2;stroke-dasharray:5 9;opacity:.55;filter:drop-shadow(0 0 5px #42d4e4);animation:nim-worldScan 14s linear infinite
}

@keyframes nim-worldScan {
  from{transform:translateX(0)}to{transform:translateX(1200px)}
}

@keyframes nim-mapPulse {
  0%{r:8;opacity:.8}100%{r:32;opacity:0}
}

@media(max-width:700px) {
  .nim-world-map-bg {
  inset:12% -38% 8% 4%;opacity:.19
  }
  .nim-world-map-bg svg {
  width:140%;max-width:none
  }
}

@media(prefers-reduced-motion:reduce) {
  .nim-world-map-bg .nim-map-scan,
  .nim-world-map-bg .nim-pulse-ring {
  animation:none
  }
}

.nim-hero::before {
  content: ""; position: absolute; z-index: 0; inset: 0; pointer-events: none; opacity: .72; background: radial-gradient(circle at 78% 50%, transparent 0 17%, rgba(66,190,224,.07) 17.1% 17.25%, transparent 17.4% 26%, rgba(66,190,224,.055) 26.1% 26.25%, transparent 26.4% 36%, rgba(66,190,224,.045) 36.1% 36.25%, transparent 36.4%), transparent 52%), repeating-linear-gradient(0deg, transparent 0 39px, rgba(111,190,213,.045) 40px, transparent 41px), repeating-linear-gradient(90deg, transparent 0 39px, rgba(111,190,213,.045) 40px, transparent 41px); animation: nim-instrumentBreath 12s ease-in-out infinite alternate;
}

.nim-hero::after {
  content: ""; position: absolute; z-index: 0; inset: 0; pointer-events: none; opacity: .55; background: linear-gradient(90deg, transparent 0%, rgba(62,218,239,.015) 42%, rgba(82,221,238,.20) 50%, rgba(62,218,239,.015) 58%, transparent 100%); transform: translateX(-100%); animation: nim-calibrationScan 11s ease-in-out infinite;
}

@keyframes nim-instrumentBreath {
  from { opacity: .42; transform: scale(1); } to { opacity: .78; transform: scale(1.035); }
}

@keyframes nim-calibrationScan {
  0%, 12% { transform: translateX(-100%); } 72%, 100% { transform: translateX(100%); }
}

.nim-grid-bg {
  position: absolute; z-index: 0; inset: 0; opacity: .55; pointer-events: none; background-image: repeating-linear-gradient(0deg, transparent 0 9px, rgba(104,190,213,.10) 10px, transparent 11px), repeating-linear-gradient(90deg, transparent 0 9px, rgba(104,190,213,.10) 10px, transparent 11px), repeating-linear-gradient(0deg, transparent 0 49px, rgba(104,190,213,.17) 50px, transparent 51px), repeating-linear-gradient(90deg, transparent 0 49px, rgba(104,190,213,.17) 50px, transparent 51px); mask-image: radial-gradient(ellipse at 76% 50%, #000 0%, rgba(0,0,0,.7) 35%, transparent 76%); -webkit-mask-image: radial-gradient(ellipse at 76% 50%, #000 0%, rgba(0,0,0,.7) 35%, transparent 76%); animation: nim-calibrationGrid 50s linear infinite;
}

@keyframes nim-calibrationGrid {
  to { background-position: 0 100px, 100px 0, 0 100px, 100px 0; }
}

.nim-hero__glow {
  position: absolute; z-index: 0; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(34,194,210,.13), rgba(38,113,153,.06) 38%, transparent 70%); pointer-events: none; transform: translate(-50%, -50%); left: 50%; top: 50%; transition: left .5s ease-out, top .5s ease-out; mix-blend-mode: screen;
}

.nim-hero__particles {
  position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .72;
}

.nim-grid-bg::after {
  content: ""; position: absolute; left: 0; right: 0; top: 18%; height: 1px; opacity: .42; background: repeating-linear-gradient(90deg, rgba(108,220,226,.8) 0 1px, transparent 1px 12px, rgba(108,220,226,.5) 12px 13px, transparent 13px 60px); box-shadow: 0 0 12px rgba(69,204,220,.22);
}

.nim-hero__inner {
  position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
}

.nim-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); margin-bottom: 28px;
}

.nim-hero__title {
  font-family: var(--nim-font-display); font-weight: 700; font-size: clamp(32px, 4.6vw, 64px); line-height: 1.06; letter-spacing: -.02em;
}

.nim-hero__title .nim-line {
  display: block;
}

.nim-gradient-text {
  background: linear-gradient(90deg, var(--nim-cyan), #8fb4ff 40%, var(--nim-amber), var(--nim-cyan)); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: nim-shine 8s linear infinite;
}

@keyframes nim-shine {
  to { background-position: 300% 0; }
}

.nim-hero__subtitle {
  margin-top: 24px; font-size: clamp(17px, 1.6vw, 21px); opacity: .88; min-height: 3.2em;
}

.nim-caret {
  color: var(--nim-cyan); animation: nim-blink 1s steps(1) infinite; margin-left: 2px;
}

@keyframes nim-blink {
  50% { opacity: 0; }
}

.nim-hero__actions {
  display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px;
}

.nim-tour-icon {
  font-family: var(--nim-mono); font-size: 11px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px dashed var(--nim-cyan); color: var(--nim-cyan); animation: nim-spin 10s linear infinite;
}

.nim-hero__meta {
  display: flex; gap: 36px; margin-top: 52px; flex-wrap: wrap;
}

.nim-hero__meta div {
  display: flex; flex-direction: column; padding-left: 14px; border-left: 2px solid var(--nim-cyan);
}

.nim-hero__meta b {
  font-family: var(--nim-font-display); font-size: 18px;
}

.nim-hero__meta span {
  font-size: 13px; opacity: .7;
}

.nim-orbit {
  --nim-size: min(480px, 82vw); position: relative; width: var(--nim-size); aspect-ratio: 1; margin-inline: auto;
}

.nim-orbit__core {
  position: absolute; inset: 32%; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: radial-gradient(circle at 30% 30%, #2a6bff, #0b2a7a 70%); box-shadow: 0 0 80px rgba(51,209,255,.45), inset 0 0 30px rgba(255,255,255,.15); animation: nim-float 6s ease-in-out infinite;
}

.nim-orbit__core span {
  font-family: var(--nim-font-display); font-size: clamp(30px, 4vw, 48px); font-weight: 700;
}

.nim-orbit__core small {
  font-size: 10px; opacity: .8; max-width: 100px; line-height: 1.3;
}

.nim-orbit__ring {
  position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.15);
}

.nim-orbit__ring--1 {
  inset: 18%; animation: nim-spin 22s linear infinite;
}

.nim-orbit__ring--2 {
  inset: 4%; border-style: dashed; animation: nim-spin 36s linear infinite reverse;
}

.nim-orbit__ring--3 {
  inset: -4%; border-color: rgba(51,209,255,.12);
}

.nim-unit {
  --nim-u: 46px; position: absolute; top: 50%; left: 50%; width: var(--nim-u); height: var(--nim-u); margin: calc(var(--nim-u) / -2); display: grid; place-items: center; border-radius: 50%; font-family: var(--nim-mono); font-weight: 700; font-size: 14px; background: rgba(10, 29, 74, .9); border: 1px solid rgba(51,209,255,.5); color: var(--nim-cyan); box-shadow: 0 0 20px rgba(51,209,255,.3);
}

.nim-orbit__ring--1 .nim-unit {
  --nim-r: calc(var(--nim-size) * .32); animation: nim-counter 22s linear infinite;
}

.nim-orbit__ring--2 .nim-unit {
  --nim-r: calc(var(--nim-size) * .46); animation: nim-counter 36s linear infinite reverse; background: rgba(255,181,71,.12); border-color: rgba(255,181,71,.6); color: var(--nim-amber);
}

@keyframes nim-counter {
  from { transform: rotate(var(--nim-a)) translateX(var(--nim-r)) rotate(calc(var(--nim-a) * -1)); } to { transform: rotate(var(--nim-a)) translateX(var(--nim-r)) rotate(calc(var(--nim-a) * -1 - 360deg)); }
}

.nim-orbit__dial {
  position: absolute; inset: -4%; width: 108%; height: 108%; animation: nim-spin 120s linear infinite;
}

.nim-orbit__dial line {
  stroke: rgba(255,255,255,.25); stroke-width: 1;
}

.nim-orbit__dial line.nim-major {
  stroke: var(--nim-cyan); stroke-width: 2;
}

.nim-scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border-radius: 14px; border: 2px solid rgba(255,255,255,.35);
}

.nim-scroll-hint span {
  position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: nim-scrollDot 1.8s infinite;
}

@keyframes nim-scrollDot {
  0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); }
}

/* Hero responsive layout */

@media (max-width: 1100px) {
  .nim-hero__inner {
  grid-template-columns: 1fr;
  }
  .nim-orbit {
  --nim-size: min(380px, 82vw);
  }
}

@media (max-width: 720px) {
  .nim-hero {
  padding: 130px 0 90px;
  }
  .nim-hero__inner {
  gap: 24px;
  }
  .nim-hero__meta {
  gap: 20px; margin-top: 36px;
  }
  .nim-hero__title {
  font-size: clamp(32px, 8vw, 48px);
  }
}

@media (max-width: 480px) {
  .nim-hero__actions {
  align-items: stretch; flex-direction: column;
  }
  .nim-hero__actions .nim-btn {
  width: 100%;
  }
  .nim-orbit {
  --nim-size: min(320px, 88vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  :where(.nim-root),
  :where(.nim-root) *,
  :where(.nim-root)::before,
  :where(.nim-root) *::before,
  :where(.nim-root)::after,
  :where(.nim-root) *::after {
  animation-duration: .01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .01ms !important;
  }
}

/* ==========================================================
   Yo‘nalish kartalari (directions)
   ========================================================== */

.nim-directions {
  position: relative; margin-top: -70px; z-index: 5;
}

.nim-directions__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}

.nim-dir-card {
  position: relative; padding: 32px 26px 28px; border-radius: var(--nim-radius); background: var(--nim-card); box-shadow: var(--nim-shadow); overflow: hidden; transition: transform .5s var(--nim-ease), box-shadow .5s; display: flex; flex-direction: column;
}

.nim-dir-card::before {
  content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(160deg, var(--nim-navy), var(--nim-blue)); clip-path: circle(0% at 100% 0%); transition: clip-path .7s var(--nim-ease);
}

.nim-dir-card > * {
  position: relative; z-index: 1; transition: color .4s;
}

.nim-dir-card:hover::before {
  clip-path: circle(150% at 100% 0%);
}

.nim-dir-card:hover {
  color: #fff; box-shadow: 0 30px 60px -20px rgba(30,79,216,.55);
}

.nim-dir-card:hover p {
  color: rgba(255,255,255,.88);
}

.nim-dir-card__icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(30,79,216,.12), rgba(51,209,255,.18)); color: var(--nim-blue); margin-bottom: 22px; font-size: 26px; transition: background .4s, transform .6s var(--nim-ease);
}

.nim-dir-card:hover .nim-dir-card__icon {
  background: rgba(255,255,255,.15); transform: rotate(-8deg) scale(1.08);
}

.nim-dir-card__num {
  position: absolute; top: 26px; right: 26px; font-family: var(--nim-mono); font-size: 13px; color: var(--nim-muted);
}

.nim-dir-card:hover .nim-dir-card__num {
  color: rgba(255,255,255,.6);
}

.nim-dir-card h3 {
  font-family: var(--nim-font-display); font-size: 18px; font-weight: 600; margin-bottom: 8px;
}

.nim-dir-card p {
  color: var(--nim-muted); font-size: 15px; margin-bottom: 18px; flex: 1;
}

@media (max-width: 1100px) {
  .nim-directions__grid {
  grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .nim-directions__grid {
  grid-template-columns: 1fr;
  }
}

/* ---------- Bo‘limlar ---------- */

.nim-section {
  padding: 100px 0;
}

.nim-section-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; margin-bottom: 46px; flex-wrap: wrap;
}

.nim-section-head--center {
  flex-direction: column; align-items: center; text-align: center;
}

.nim-section-tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--nim-blue-text); padding: 6px 14px; border-radius: 999px; background: rgba(30,79,216,.08); margin-bottom: 14px;
}

.nim-section-tag--light {
  color: var(--nim-cyan); background: rgba(51,209,255,.12);
}

.nim-section-title {
  font-family: var(--nim-font-display); font-size: clamp(26px, 3.4vw, 42px); font-weight: 600; line-height: 1.18; letter-spacing: -.01em;
}

.nim-section-title--light {
  color: #fff;
}

.nim-section-sub {
  color: var(--nim-muted); max-width: 640px; margin-top: 12px;
}

.nim-clock {
  display: flex; flex-direction: column; align-items: flex-end; padding: 6px 14px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); flex-shrink: 0;
}

.nim-clock__label {
  font-size: 10px; text-transform: uppercase; letter-spacing: .12em; opacity: .75; display: flex; align-items: center; gap: 6px;
}

.nim-pulse-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #3dff9a; display: inline-block; box-shadow: 0 0 0 0 rgba(61,255,154,.7); animation: nim-pulse 2s infinite;
}

@keyframes nim-pulse {
  70% { box-shadow: 0 0 0 8px rgba(61,255,154,0); } 100% { box-shadow: 0 0 0 0 rgba(61,255,154,0); }
}

/* ==========================================================
   Interaktiv xizmatlar (telefon maketi)
   ========================================================== */

.nim-interactive {
  position: relative; background: var(--nim-navy); color: #fff; overflow: hidden;
}

.nim-interactive__bg {
  position: absolute; inset: 0; background: radial-gradient(600px 400px at 50% 50%, rgba(51,209,255,.22), transparent 70%), radial-gradient(900px 600px at 0% 0%, rgba(30,79,216,.6), transparent 60%), radial-gradient(900px 600px at 100% 100%, rgba(30,79,216,.5), transparent 60%);
}

.nim-interactive .nim-container {
  position: relative;
}

.nim-interactive__layout {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 50px; align-items: center;
}

.nim-svc-col {
  display: flex; flex-direction: column; gap: 16px;
}

.nim-svc {
  display: flex; gap: 18px; align-items: flex-start; text-align: right; flex-direction: row-reverse; padding: 20px; border-radius: 18px; border: 1px solid transparent; transition: background .4s, border-color .4s, transform .4s var(--nim-ease);
}

.nim-svc-col--right .nim-svc {
  text-align: left; flex-direction: row;
}

.nim-svc b {
  display: block; font-size: 18px; margin-bottom: 4px;
}

.nim-svc small {
  font-size: 14px; opacity: .75; line-height: 1.5; display: block;
}

.nim-svc__icon {
  flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15); transition: .4s var(--nim-ease);
}

.nim-svc:hover,
.nim-svc.nim-is-active {
  background: rgba(255,255,255,.06); border-color: rgba(51,209,255,.3);
}

.nim-svc.nim-is-active .nim-svc__icon {
  background: var(--nim-cyan); color: var(--nim-ink); box-shadow: 0 0 30px rgba(51,209,255,.6); border-color: var(--nim-cyan);
}

.nim-phone {
  position: relative; width: 270px; height: 550px; border-radius: 44px; padding: 12px; background: linear-gradient(145deg, #2b3550, #0b1020); box-shadow: 0 50px 100px -30px rgba(0,0,0,.7), 0 0 0 2px rgba(255,255,255,.08), 0 0 80px rgba(51,209,255,.25); animation: nim-float 6s ease-in-out infinite;
}

.nim-phone__notch {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 90px; height: 24px; border-radius: 20px; background: #05070f; z-index: 3;
}

.nim-phone__screen {
  position: relative; height: 100%; border-radius: 34px; overflow: hidden; background: radial-gradient(circle at 50% 35%, #12306f, #050b1e 70%);
}

.nim-screen {
  position: absolute; inset: 0; padding: 70px 22px 90px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; opacity: 0; transform: translateY(20px) scale(.96); transition: .6s var(--nim-ease);
}

.nim-screen.nim-is-active {
  opacity: 1; transform: none;
}

.nim-screen h4 {
  font-family: var(--nim-font-display); font-size: 15px; letter-spacing: .03em;
}

.nim-screen p {
  font-size: 13px; opacity: .75;
}

.nim-screen__big {
  font-size: 80px; color: var(--nim-cyan); text-shadow: 0 0 40px rgba(51,209,255,.7); line-height: 1; margin-bottom: 18px;
}

.nim-si-wheel {
  position: relative; width: 170px; height: 170px; border-radius: 50%; margin-bottom: 18px; background: conic-gradient(#e94f6a, #f39a3d, #f6d34a, #4fc36a, #33d1ff, #4c6bff, #a65bff, #e94f6a); display: grid; place-items: center; animation: nim-spin 18s linear infinite;
}

.nim-si-wheel::before {
  content: ""; position: absolute; inset: 36px; border-radius: 50%; background: #0a1b46;
}

.nim-si-wheel span {
  position: relative; font-family: var(--nim-font-display); font-size: 28px; font-weight: 700; animation: nim-spin 18s linear infinite reverse;
}

.nim-si-wheel i {
  position: absolute; top: 50%; left: 50%; font-style: normal; font-family: var(--nim-mono); font-size: 11px; font-weight: 700; color: #fff; transform: rotate(var(--nim-r)) translateY(-66px) rotate(calc(var(--nim-r) * -1)); margin: -8px 0 0 -10px; width: 20px; text-align: center;
}

.nim-phone__btn {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); padding: 12px 26px; border-radius: 999px; font-weight: 700; font-size: 14px; white-space: nowrap; background: linear-gradient(135deg, #ff5b4a, #ff2d55); box-shadow: 0 10px 25px -6px rgba(255,45,85,.7); z-index: 2;
}

@media (max-width: 1100px) {
  .nim-interactive__layout {
  grid-template-columns: 1fr;
  }
  .nim-phone {
  margin: 0 auto; order: -1;
  }
  .nim-svc,
  .nim-svc-col--right .nim-svc {
  flex-direction: row; text-align: left;
  }
}

/* ---------- Statistika ---------- */

.nim-stats {
  background: #fff; position: relative;
}

.nim-stats::before {
  content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(30,79,216,.12) 1.2px, transparent 1.2px); background-size: 22px 22px; mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent);
}

.nim-stats .nim-container {
  position: relative;
}

.nim-stats__grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px;
}

.nim-stat {
  position: relative; padding: 28px 18px; border-radius: var(--nim-radius); text-align: center; background: var(--nim-bg); overflow: hidden; transition: transform .4s var(--nim-ease), background .4s;
}

.nim-stat:hover {
  transform: translateY(-6px); background: #eaf0fb;
}

.nim-stat__ic {
  font-size: 26px; display: block; margin-bottom: 8px;
}

.nim-stat b {
  display: block; font-family: var(--nim-font-display); font-weight: 700; font-size: clamp(38px, 4vw, 54px); line-height: 1; background: linear-gradient(135deg, var(--nim-navy), var(--nim-blue)); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 10px; font-variant-numeric: tabular-nums;
}

.nim-stat span {
  font-size: 14px; color: var(--nim-muted); font-weight: 600;
}

.nim-stat__bar {
  position: absolute; left: 0; bottom: 0; height: 4px; width: 0; background: linear-gradient(90deg, var(--nim-blue), var(--nim-cyan)); transition: width 1.6s var(--nim-ease) .3s;
}

.nim-stat.nim-is-visible .nim-stat__bar {
  width: 100%;
}

.nim-topbar__btn {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; transition: background .3s;
}

.nim-topbar__btn svg {
  width: 18px; height: 18px;
}

.nim-topbar__btn:hover {
  background: rgba(255,255,255,.12);
}

.nim-topbar__right {
  display: flex; align-items: center; gap: 10px;
}

/* ---------- Yon panel, qidiruv oynasi, modal ---------- */

#toTop {
  opacity: .3; pointer-events: none;
}

#toTop.nim-is-visible {
  opacity: 1; pointer-events: auto;
}

.nim-search-overlay {
  position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: rgba(6,16,42,.94); backdrop-filter: blur(10px); opacity: 0; visibility: hidden; transition: .4s var(--nim-ease);
}

.nim-search-overlay.nim-is-open {
  opacity: 1; visibility: visible;
}

.nim-search-overlay__form {
  width: min(720px, 90%); transform: translateY(30px); transition: .5s var(--nim-ease);
}

.nim-search-overlay.nim-is-open .nim-search-overlay__form {
  transform: none;
}

.nim-search-overlay input[type=search] {
  width: 100%; padding: 20px 0; font-size: clamp(22px, 4vw, 38px); font-family: var(--nim-font-display); background: none; border: 0; border-bottom: 2px solid var(--nim-cyan); color: #fff; outline: none;
}

.nim-search-overlay p {
  color: rgba(255,255,255,.55); margin-top: 16px;
}

.nim-search-overlay__close {
  position: absolute; top: 30px; right: 30px; color: #fff; font-size: 24px; width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); transition: transform .4s var(--nim-ease);
}

.nim-search-overlay__close:hover {
  transform: rotate(90deg);
}

.nim-a11y-panel {
  position: fixed; right: 76px; top: 50%; transform: translateY(-50%); z-index: 250; width: 320px; max-width: calc(100vw - 32px); background: #fff; color: var(--nim-text); border-radius: 20px; padding: 20px; box-shadow: 0 30px 70px -20px rgba(6,16,42,.5); display: flex; flex-direction: column; gap: 16px; animation: nim-fadeUp .3s var(--nim-ease);
}

.nim-a11y-panel[hidden] {
  display: none;
}

.nim-a11y-panel__head {
  display: flex; justify-content: space-between; align-items: center;
}

.nim-a11y-panel__head button {
  width: 32px; height: 32px; border-radius: 50%; background: var(--nim-bg);
}

.nim-a11y-row {
  display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600;
}

.nim-seg {
  display: flex; gap: 6px;
}

.nim-seg--wrap {
  flex-wrap: wrap;
}

.nim-seg button {
  flex: 1; padding: 8px 10px; border-radius: 10px; border: 1.5px solid var(--nim-line); font-weight: 700; font-size: 13px;
}

.nim-seg button.nim-is-active {
  background: var(--nim-navy); color: #fff; border-color: var(--nim-navy);
}

.nim-a11y-check {
  display: flex; gap: 10px; align-items: center; font-size: 14px; cursor: pointer;
}

.nim-a11y-check input {
  width: 18px; height: 18px; accent-color: var(--nim-blue);
}

.nim-a11y-reset {
  font-size: 13px; color: var(--nim-muted); text-decoration: underline;
}

/* ---------- Maxsus imkoniyatlar rejimlari ---------- */

html.nim-a11y-gray {
  filter: grayscale(1);
}

html.nim-a11y-dark :where(.nim-root) {
  --nim-bg: #0c1220; --nim-card: #141c2e; --nim-text: #e8edf7; --nim-muted: #a8b3c8; --nim-line: #263049; background: var(--nim-bg);
}

html.nim-a11y-dark .nim-dir-card,
html.nim-a11y-dark .nim-stats,
html.nim-a11y-dark .nim-stat {
  background: var(--nim-card); color: var(--nim-text); border-color: var(--nim-line);
}

html.nim-a11y-contrast :where(.nim-root) {
  --nim-bg: #000; --nim-card: #000; --nim-text: #ff0; --nim-muted: #ff0; --nim-line: #ff0; --nim-blue-text: #0ff; background: #000; color: #ff0;
}

html.nim-a11y-contrast :where(.nim-root) * {
  background-image: none !important; box-shadow: none !important; text-shadow: none !important;
}

html.nim-a11y-contrast .nim-hero,
html.nim-a11y-contrast .nim-interactive,
html.nim-a11y-contrast .nim-dir-card,
html.nim-a11y-contrast .nim-stat,
html.nim-a11y-contrast .nim-stats,
html.nim-a11y-contrast .nim-btn,
html.nim-a11y-contrast .nim-a11y-panel {
  background: #000 !important; color: #ff0 !important; border: 1px solid #ff0 !important;
}

html.nim-a11y-contrast .nim-gradient-text,
html.nim-a11y-contrast .nim-stat b {
  color: #ff0 !important; -webkit-text-fill-color: #ff0;
}

html.nim-a11y-contrast :where(.nim-root) a {
  color: #0ff !important; text-decoration: underline;
}

html.nim-a11y-contrast .nim-grid-bg,
html.nim-a11y-contrast .nim-hero__particles,
html.nim-a11y-contrast .nim-hero__glow {
  display: none;
}

html.nim-a11y-noimg :where(.nim-root) img,
html.nim-a11y-noimg :where(.nim-root) iframe {
  display: none !important;
}

html.nim-a11y-nomotion :where(.nim-root),
html.nim-a11y-nomotion :where(.nim-root) *,
html.nim-a11y-nomotion :where(.nim-root)::before,
html.nim-a11y-nomotion :where(.nim-root) *::before,
html.nim-a11y-nomotion :where(.nim-root)::after,
html.nim-a11y-nomotion :where(.nim-root) *::after {
  animation: none !important; transition: none !important;
}

html.nim-a11y-nomotion .nim-reveal {
  opacity: 1; transform: none;
}

.nim-international-section {
  background-color: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  padding: 64px 20px;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: #0f172a;
}

.nim-international-container {
  max-width: 1280px;
  margin: 0 auto;
}

.nim-international-header .nim-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2563eb;
}

.nim-international-header .nim-title {
  font-family: 'Outfit', sans-serif;
  font-size: 32px;
  font-weight: 700;
  margin-top: 8px;
  letter-spacing: -0.02em;
}

.nim-international-header .nim-subtitle {
  font-size: 15px;
  color: #64748b;
  margin-top: 8px;
  max-width: 650px;
}

.nim-orgs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 40px;
}

@media (max-width: 1024px) {
  .nim-orgs-grid {
  grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .nim-orgs-grid {
  grid-template-columns: 1fr;
  }
}

.nim-org-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.nim-org-card:hover {
  border-color: #93c5fd;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(37,99,235,0.08);
}

.nim-org-badge {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 16px;
}

.nim-badge-cipm {
  background: #eff6ff; color: #2563eb;
}

.nim-badge-bipm {
  background: #ecfdf5; color: #059669;
}

.nim-badge-coomet {
  background: #eef2ff; color: #4f46e5;
}

.nim-badge-oiml {
  background: #ecfeff; color: #0891b2;
}

.nim-org-title {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 8px;
}

.nim-org-desc {
  font-size: 12px;
  color: #64748b;
  line-height: 1.6;
}

.nim-org-footer {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
}

.nim-cipm-text {
  color: #2563eb;
}

.nim-bipm-text {
  color: #059669;
}

.nim-coomet-text {
  color: #4f46e5;
}

.nim-oiml-text {
  color: #0891b2;
}

.nim-branches-section {
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 64px 20px;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  color: #0f172a;
}

.nim-branches-container {
  max-width: 1280px;
  margin: 0 auto;
}

.nim-branches-header .nim-kicker {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2563eb;
}

.nim-branches-header .nim-title {
  font-family: 'Outfit', sans-serif;
  font-size: 32px;
  font-weight: 700;
  margin-top: 8px;
  letter-spacing: -0.02em;
}

.nim-branches-header .nim-subtitle {
  font-size: 15px;
  color: #64748b;
  margin-top: 8px;
  max-width: 650px;
}

.nim-branches-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 32px;
  margin-top: 40px;
  align-items: start;
}

@media (max-width: 900px) {
  .nim-branches-grid {
  grid-template-columns: 1fr;
  }
}

.nim-branches-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 600px;
  overflow-y: auto;
}

.nim-branch-link {
  display: block;
  padding: 14px 16px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
}

.nim-branch-link:hover {
  background: #f1f5f9;
}

.nim-branch-link.nim-active {
  background: #eff6ff;
  border-color: #2563eb;
}

.nim-branch-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.nim-branch-link.nim-active .nim-branch-name {
  color: #1d4ed8;
}

.nim-branch-meta {
  display: block;
  font-size: 12px;
  color: #64748b;
  margin-top: 2px;
}

.nim-branch-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 32px;
}

.nim-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 24px;
  border-bottom: 1px solid #e2e8f0;
}

.nim-badge-accred {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  color: #2563eb;
  text-transform: uppercase;
}

.nim-card-title {
  font-size: 24px;
  font-weight: 700;
  margin-top: 4px;
}

.nim-badge-count {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 6px 12px;
  border-radius: 8px;
}

.nim-branch-info {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.nim-info-row-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.nim-label {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  display: block;
}

.nim-value {
  font-size: 14px;
  color: #0f172a;
  font-weight: 500;
}

.nim-value-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
}

.nim-value-link:hover {
  color: #2563eb;
}

.nim-director-block {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
}

.nim-director-name {
  display: block;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  margin-top: 4px;
}

.nim-scopes-block {
  margin-top: 20px;
}

.nim-scopes-list {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: grid;
  grid-template-columns: auto auto auto auto ;
  gap: 8px;
}

.nim-scopes-list li {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 12px;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nim-scopes-list .nim-bullet {
  color: #2563eb;
  font-weight: bold;
}

.nim-footer {
  background-color: #0f2445;
  color: #cbd5e1;
  border-top: 1px solid #1e293b;
  padding: 64px 20px 48px;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

.nim-footer-container {
  max-width: 1280px;
  margin: 0 auto;
}

.nim-footer-grid {
  display: grid;
  grid-template-columns: 5fr 4fr 3fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid #36445b;
}

@media (max-width: 992px) {
  .nim-footer-grid {
  grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .nim-footer-grid {
  grid-template-columns: 1fr;
  }
}

.nim-brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.nim-brand-logo {
  width: 36px;
  height: 36px;
  background: #2563eb;
  color: #ffffff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
}

.nim-brand-title {
  font-family: 'Outfit', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}

.nim-about-text {
  font-size: 13px;
  color: #e2e5e9;
  line-height: 1.6;
  max-width: 440px;
  margin-bottom: 16px;
}

.nim-agency-text {
  font-size: 12px;
  color: #96a2b3;
  font-family: 'JetBrains Mono', monospace;
}

.nim-col-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #ffffff;
  margin-bottom: 16px;
}

.nim-contact-list {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
  color: #e2e5e9;
}

.nim-contact-item a {
  color: #cbd5e1;
  text-decoration: none;
  font-family: 'JetBrains Mono', monospace;
}

.nim-contact-item a:hover {
  color: #ffffff;
}

.nim-links-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}

.nim-links-list a {
  color: #96a2b3;
  text-decoration: none;
}

.nim-links-list a:hover {
  color: #ffffff;
}

.nim-footer-bottom {
  margin-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12px;
  color: #64748b;
}

.nim-meta-row {
  display: flex;
  gap: 12px;
  font-family: 'JetBrains Mono', monospace;
}

/* ---------- Aniq vaqt (24timezones) ---------- */

.nim-clock__time {
  font-family: arial, sans-serif; margin: 0; font-size: 22px; text-align: center; font-weight: 600; color: #4878ff; text-shadow: 1px 1px 3px #091539;
}
/* news */
.wp-magazine-grid-narrow-side {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  max-width: 1270px;
  margin: 0 auto;
  padding: 15px;
  box-sizing: border-box;
}
@media (min-width: 992px) {
  .wp-magazine-grid-narrow-side {
    /* Меняем пропорции: 1.4fr (большая левая часть) и две узкие колонки по 0.8fr справа */
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    grid-template-rows: repeat(2, minmax(140px, auto));
    gap: 20px;
  }

    .wp-magazine-grid-narrow-side .narrow-item.n-main-card {
    grid-column: 1;
    grid-row: span 2;
  }
  .wp-magazine-grid-narrow-side .narrow-item.n-side-card {
    grid-row: span 1;
  }
}
.narrow-item {
  background: #ffffff;
  border-radius: 6px;
  border: 1px solid #eef2f6;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.01);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.narrow-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}
.n-main-card .narrow-thumb {
  padding-top: 56.25%;
}
.n-side-card .narrow-thumb {
  padding-top: 60%; 
}
.narrow-thumb {
  position: relative;
  width: 100%;
  background-color: #f7fafc;
  overflow: hidden;
}

.narrow-thumb img {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  object-fit: cover;
}
.narrow-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: #007bff;
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 2px;
  letter-spacing: 0.2px;
  text-transform: uppercase;
}

.narrow-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.n-main-card .narrow-body {
  padding: 18px;
}
.narrow-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: #a0aec0;
  margin-bottom: 6px;
}
.narrow-meta .dashicons-visibility {
  font-size: 13px;
  width: 13px;
  height: 13px;
  vertical-align: middle;
  color: #cbd5e1;
}
.narrow-title {
  margin: 0 0 8px 0;
  font-weight: 700;
  line-height: 1.35;
  font-size: 13px;
}
.n-main-card .narrow-title {
  font-size: 18px;
  margin-bottom: 12px;
}
.narrow-title a {
  color: #1e293b;
  text-decoration: none;
  transition: color 0.15s ease;
}
.narrow-title a:hover {
  color: #007bff;
}
.narrow-excerpt {
  color: #64748b;
  font-size: 13px;
  line-height: 1.5;
  margin: 0 0 12px 0;
  display: none; 
}
.n-main-card .narrow-excerpt {
  display: block;
}
.narrow-link {
  margin-top: auto;
  color: #5856d6;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  display: inline-block;
}























