:root {
  --navy: #13284F;
  --navy-2: #1E3A6E;
  --navy-deep: #0B1830;
  --sun: #F5C518;
  --sun-ink: #13284F;
  --bg: #FFFFFF;
  --tint: #F4F6FA;
  --ink: #13284F;
  --text: #33415C;
  --muted: #5B6B85;
  --line: #E2E7F0;
  --radius: 18px;
  --shadow: 0 10px 30px -12px rgba(19, 40, 79, .25);
  --card: #FFFFFF;
  --header-bg: rgba(255, 255, 255, .88);
  --dots: rgba(19, 40, 79, .09);
  --bar: #EEF1F6;
  --bar-dot: #D3D9E3;
  --featured-top: #FFFBEA;
  font-family: "Ubuntu Sans", system-ui, sans-serif;
  color-scheme: light;
}

/* Шөнийн горим */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B1830;
  --tint: #0E1D3A;
  --card: #13254A;
  --ink: #F2F5FB;
  --text: #CFD8E8;
  --muted: #94A3BD;
  --line: rgba(255, 255, 255, .1);
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, .6);
  --header-bg: rgba(11, 24, 48, .82);
  --dots: rgba(255, 255, 255, .07);
  --bar: #1B2A47;
  --bar-dot: #33456A;
  --featured-top: rgba(245, 197, 24, .10);
}
:root[data-theme="dark"] .svc__icon { background: #1E3A6E; }
:root[data-theme="dark"] .cta { background: linear-gradient(160deg, #10224A 0%, #0E1D3A 100%); border-top: 1px solid var(--line); }
:root[data-theme="dark"] .foot { border-top: 1px solid var(--line); }
body, .top, .svc, .plan, .faq details, .perks ul, .steps li { transition: background-color .4s, border-color .4s, color .4s; }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }

.wrap { width: min(1280px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--sun); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 6px; }

/* Товч */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid transparent; transition: transform .15s, background .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn--sm { padding: 10px 18px; font-size: 15px; }
.btn--sun { background: var(--sun); color: var(--sun-ink); box-shadow: 0 6px 18px -6px rgba(245, 197, 24, .7); }
.btn--sun:hover { background: #FFD43B; }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-2); }
.btn--ghost { border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn--ghost:hover { border-color: #fff; }
.btn--ghost-navy { border-color: var(--line); color: var(--ink); }
.btn--ghost-navy:hover { border-color: var(--ink); }

/* Толгой */
.top { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand img { border-radius: 9px; }
.brand--light { color: #fff; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.nav__cta, .menu-btn { display: none; }
@media (max-width: 860px) {
  .theme { margin-left: auto; }
  .top__cta { display: none; }
  .menu-btn { display: grid; place-content: center; gap: 5px; width: 42px; height: 42px; flex: none; border-radius: 12px; border: 1px solid var(--line); background: var(--card); cursor: pointer; padding: 0; }
  .menu-btn span { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s, opacity .3s; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav { position: fixed; top: 68px; left: 0; right: 0; z-index: 49; flex-direction: column; gap: 4px; margin: 0; padding: 12px 16px 22px;
    background: var(--card); border-radius: 0 0 22px 22px;
    box-shadow: 0 24px 40px -20px rgba(0, 0, 0, .4);
    transform: translateY(-16px); opacity: 0; visibility: hidden; transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .25s, visibility .3s; }
  .nav.open { transform: none; opacity: 1; visibility: visible; }
  .menu-open .top { background: var(--card); backdrop-filter: none; border-bottom-color: transparent; }
  .menu-open { overflow: hidden; }
  .menu-open body::after { content: ""; position: fixed; inset: 0; z-index: 40; background: rgba(7, 16, 34, .55); animation: fade-in .25s both; }
  @keyframes fade-in { from { opacity: 0; } }
  .nav a:not(.nav__cta) { display: flex; align-items: center; gap: 14px; padding: 14px 14px; border-radius: 14px; font-size: 18px; font-weight: 700; color: var(--ink); }
  .nav a:not(.nav__cta)::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--sun); flex: none; }
  .nav a:not(.nav__cta)::after { content: "›"; margin-left: auto; font-size: 24px; line-height: 1; color: var(--muted); }
  .nav a:not(.nav__cta):hover, .nav a:not(.nav__cta):active { background: var(--tint); }
  .nav.open a { animation: nav-in .35s both; }
  .nav.open a:nth-child(2) { animation-delay: .03s; } .nav.open a:nth-child(3) { animation-delay: .06s; }
  .nav.open a:nth-child(4) { animation-delay: .09s; } .nav.open a:nth-child(5) { animation-delay: .12s; } .nav.open a:nth-child(6) { animation-delay: .15s; }
  @keyframes nav-in { from { opacity: 0; transform: translateY(-6px); } }
  .nav .nav__cta { display: flex; margin-top: 12px; padding: 16px; font-size: 17px; color: var(--sun-ink); }
}

/* Нүүр: 3D пиксел тал */
.hero { position: relative; min-height: min(880px, 100svh - 68px); display: flex; align-items: center; background: radial-gradient(900px 520px at 78% 18%, #1E3A6E 0%, transparent 65%), linear-gradient(180deg, #0B1830 0%, #10224A 60%, #0B1830 100%); color: #CFD8E8; overflow: hidden; padding: 72px 0 150px; isolation: isolate; }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0; transition: opacity 1.2s; }
.hero.is-3d .hero__canvas { opacity: 1; }
/* Өдрийн тэнгэр: нар тусаж буй үүр */
.hero__sky { position: absolute; inset: 0; z-index: -2; pointer-events: none; opacity: 1; transition: opacity 1.2s ease;
  background: radial-gradient(620px 380px at 76% 30%, rgba(255, 196, 92, .55), rgba(255, 170, 70, .18) 45%, transparent 72%),
    linear-gradient(180deg, #14306A 0%, #2A5299 34%, #6F86B8 52%, #1C3A72 72%, #10224A 100%); }
:root[data-theme="dark"] .hero__sky { opacity: 0; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(90deg, rgba(11, 24, 48, .82) 0%, rgba(11, 24, 48, .45) 38%, transparent 62%); }
/* 3D ачаалахгүй үеийн нөөц: пиксел толгод */
.hero:not(.is-3d)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; z-index: -1; opacity: .5;
  background: linear-gradient(transparent 0 0) , repeating-linear-gradient(90deg, #2B4E8F 0 22px, transparent 22px 26px);
  -webkit-mask: linear-gradient(to top, #000 30%, transparent); mask: linear-gradient(to top, #000 30%, transparent); }
.hero__in { position: relative; z-index: 1; pointer-events: none; }
.hero__text { max-width: 640px; pointer-events: auto; }
.hero h1 { color: #fff; font-size: clamp(38px, 5.6vw, 72px); font-weight: 800; text-shadow: 0 4px 30px rgba(11, 24, 48, .6); }
.hero h1 em { font-style: normal; color: var(--sun); }
.lead { font-size: 19px; margin: 22px 0 32px; max-width: 32em; text-shadow: 0 2px 16px rgba(11, 24, 48, .8); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn--ghost { backdrop-filter: blur(6px); background: rgba(11, 24, 48, .3); }
.hero__hint { position: absolute; right: 24px; bottom: 96px; z-index: 1; font-size: 13px; color: rgba(207, 216, 232, .6); pointer-events: none; }
@media (hover: none), (max-width: 760px) { .hero__hint { display: none; } }
@media (max-width: 760px) {
  .hero { align-items: flex-start; padding: 40px 0 260px; min-height: 0; }
  .hero::before { background: linear-gradient(180deg, rgba(11, 24, 48, .85) 0%, rgba(11, 24, 48, .5) 55%, transparent 80%); }
}

/* Давуу тал */
.perks { position: relative; margin-top: -56px; z-index: 2; }
.perks ul { list-style: none; margin: 0; padding: 18px 12px; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.perks li { display: flex; align-items: center; gap: 12px; padding: 8px 14px; font-weight: 600; font-size: 15px; color: var(--ink); line-height: 1.3; }
.perks li + li { border-left: 1px solid var(--line); }
.perks svg, .svc__icon svg { width: 28px; height: 28px; flex: none; fill: none; stroke: var(--ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 960px) {
  .perks ul { grid-template-columns: 1fr 1fr; }
  .perks li + li { border-left: 0; }
}
@media (max-width: 480px) { .perks ul { grid-template-columns: 1fr; } }

/* Хэсгүүд */
.section { padding: 96px 0; }
/* Ижил дэвсгэртэй дараалсан хэсгүүдийн давхар зайг арилгана */
#process, #faq { padding-top: 16px; }
.section--tint { background: var(--tint); }
.head { max-width: 640px; margin-bottom: 44px; }
.head h2, .cta h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
.sub { margin-top: 12px; color: var(--muted); }
@media (max-width: 600px) { .section { padding: 64px 0; } #process, #faq { padding-top: 8px; } }

.ticks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 12px; height: 12px; border-radius: 3px; background: var(--sun); }

/* Үйлчилгээ */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.svc { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); transition: box-shadow .2s, transform .2s; }
.svc:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.svc__icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 14px; background: var(--tint); margin-bottom: 20px; }
.svc h3 { font-size: 22px; margin-bottom: 8px; }
@media (max-width: 900px) { .services { grid-template-columns: 1fr; } }

/* Хийсэн ажил */
.work { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
.work + .work { margin-top: 72px; }
.work--flip .work__shot { order: 2; }
/* Ажлын 3D төхөөрөмж: гүйлгэхэд эргэж тэгширнэ */
.work__shot { display: block; position: relative; perspective: 1600px; text-decoration: none; padding: 0 6% 8% 0; }
.device { --ry: 0deg; --rx: 0deg; --tz: 0px; }
.device__browser { border-radius: 14px; overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: 0 40px 80px -30px rgba(19, 40, 79, .45), 0 12px 24px -12px rgba(19, 40, 79, .25);
  transform: rotateY(var(--ry)) rotateX(var(--rx)) translateZ(var(--tz)); transform-origin: 50% 50%; transition: transform .25s ease-out; will-change: transform; }
.device__bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: var(--bar); border-bottom: 1px solid var(--line); }
.device__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--bar-dot); }
.device__bar i:first-child { background: #F26B5B; } .device__bar i:nth-child(2) { background: var(--sun); } .device__bar i:nth-child(3) { background: #5BC27A; }
.device__bar span { margin-left: 10px; font-size: 12px; color: var(--muted); background: var(--card); border-radius: 6px; padding: 2px 10px; flex: 1; max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.device__browser img { aspect-ratio: 16 / 10; object-fit: cover; object-position: top; width: 100%; }
.device__phone { position: absolute; right: 0; bottom: 0; width: 23%; border: 6px solid #111827; border-radius: 22px; overflow: hidden; background: #111827; box-shadow: 0 30px 60px -18px rgba(11, 24, 48, .6);
  transform: rotateY(calc(var(--ry) * .6)) rotateX(var(--rx)) translateZ(calc(var(--tz) + 90px)); transition: transform .25s ease-out; will-change: transform; }
.device__phone img { aspect-ratio: 390 / 844; object-fit: cover; object-position: top; border-radius: 16px; }
.device:hover .device__browser { box-shadow: 0 50px 90px -30px rgba(19, 40, 79, .55), 0 12px 24px -12px rgba(19, 40, 79, .25); }
.work--flip .device__phone { right: auto; left: 0; }
.work--flip .work__shot { padding: 0 0 8% 6%; }
@media (prefers-reduced-motion: reduce) { .device__browser, .device__phone { transform: none !important; } }
.tag { display: inline-block; font-size: 13px; font-weight: 700; color: var(--ink); background: var(--card); border: 1px solid var(--line); padding: 4px 12px; border-radius: 999px; margin-bottom: 14px; }
.work h3 { font-size: 30px; margin-bottom: 10px; }
.note { font-size: 14px; color: var(--muted); margin: 16px 0 20px; }
@media (max-width: 900px) {
  .work { grid-template-columns: 1fr; gap: 24px; }
  .work--flip .work__shot { order: 0; }
  .work + .work { margin-top: 56px; }
}

/* Үнэ */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 32px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.plan .ticks { flex: 1; margin-bottom: 28px; }
.plan h3 { font-size: 24px; }
.plan__time { color: var(--muted); margin-top: 4px; }
.plan__price { font-size: 22px; font-weight: 800; color: var(--ink); margin-top: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.plan--featured { border: 2px solid var(--sun); background: linear-gradient(180deg, var(--featured-top) 0%, var(--card) 45%); box-shadow: var(--shadow); }
.ribbon { position: absolute; top: -13px; left: 28px; background: var(--sun); color: var(--sun-ink); font-weight: 700; font-size: 13px; padding: 3px 12px; border-radius: 999px; }
.addons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 20px; }
.addons div { display: grid; gap: 2px; padding: 20px 24px; border-radius: var(--radius); background: var(--card); border: 1px dashed var(--line); }
.addons strong { color: var(--ink); }
.addons span { color: var(--muted); font-size: 15px; }
.addons b { color: var(--ink); margin-top: 6px; }
.fine { margin-top: 18px; font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .plans, .addons { grid-template-columns: 1fr; } .plan--featured { order: -1; } }

/* Явц */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { padding: 28px 24px; background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); }
.steps span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--navy); color: var(--sun); font-weight: 800; margin-bottom: 16px; }
.steps h3 { font-size: 19px; margin-bottom: 6px; }
.steps p { font-size: 15px; color: var(--muted); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* Холбогдох */
.cta { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); color: #CFD8E8; padding: 80px 0; }
.cta__in { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.cta h2 { color: #fff; margin-bottom: 12px; }
.contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; min-width: 300px; }
.contact a, .contact .soon { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 14px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); color: #fff; text-decoration: none; font-weight: 600; }
.contact a:hover { background: rgba(255, 255, 255, .12); }
.contact svg { width: 24px; height: 24px; fill: none; stroke: var(--sun); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.contact small { display: block; font-weight: 400; color: #A8B4C8; font-size: 13px; }
@media (max-width: 800px) { .cta__in { grid-template-columns: 1fr; } .contact { min-width: 0; } }

.foot { background: var(--navy-deep); color: #A8B4C8; padding: 28px 0; font-size: 14px; }
.foot__in { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot .brand { font-size: 17px; }

/* Гүйлгэхэд гарч ирэх */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
.plan__note { font-size: 14px; color: var(--muted); background: var(--tint); border-radius: 10px; padding: 10px 12px; margin-top: 14px; }
.hook { font-size: 19px; font-weight: 600; color: var(--ink); line-height: 1.45; }
.work .ticks { gap: 12px; margin-top: 18px; }
.ticks b { color: var(--ink); }
.fit { margin-top: 20px; padding: 12px 16px; border-left: 4px solid var(--sun); background: var(--card); border-radius: 0 10px 10px 0; font-weight: 600; color: var(--ink); }
.work .note { margin-top: 12px; }

/* ---------- Чимэглэл: хоосон санагдахгүй байх ---------- */
.section--dots { position: relative; overflow: hidden; background-color: var(--bg);
  background-image: radial-gradient(var(--dots) 1.3px, transparent 1.4px); background-size: 24px 24px; }
#pricing.section--dots, #faq.section--dots { background-color: var(--tint); }

/* Нүүрний баримтууд */
.facts { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 0; margin: 36px 0 0; }
.facts li { display: grid; line-height: 1.2; padding-left: 14px; border-left: 3px solid var(--sun); }
.facts b { color: #fff; font-size: 22px; font-weight: 800; }
.facts span { color: #A8B4C8; font-size: 14px; }

/* Үйлчилгээний дүрс: хөх дээр шар */
.svc { position: relative; z-index: 1; }
.svc__icon { background: var(--navy); }
.svc__icon svg { stroke: var(--sun); }
.svc:hover { border-color: var(--sun); }

/* Хийсэн ажил: бараан, гэрэлтэй хэсэг */
.section--dark { position: relative; overflow: hidden; color: #CFD8E8;
  background: radial-gradient(800px 500px at 85% 0%, rgba(245, 197, 24, .10), transparent 60%),
    radial-gradient(900px 600px at 0% 60%, rgba(61, 104, 181, .25), transparent 60%),
    linear-gradient(180deg, #0B1830 0%, #10224A 100%); }
.section--dark::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 48px 48px; -webkit-mask: linear-gradient(180deg, #000, transparent 85%); mask: linear-gradient(180deg, #000, transparent 85%); }
.section--dark .wrap { position: relative; }
.section--dark h2, .section--dark h3, .section--dark .hook { color: #fff; }
.section--dark .sub { color: #A8B4C8; }
.section--dark .ticks li { color: #CFD8E8; }
.section--dark .ticks b { color: #fff; }
.section--dark .tag { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: #fff; }
.section--dark .fit { background: rgba(255, 255, 255, .06); color: #fff; }
.section--dark .note { color: #8C9BB5; }
.section--dark .btn--navy { background: var(--sun); color: var(--sun-ink); }
.section--dark .btn--navy:hover { background: #FFD43B; }
.section--dark .device__browser { border-color: rgba(255, 255, 255, .12); box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .7), 0 0 80px -20px rgba(61, 104, 181, .45); }
.section--dark .device__bar { background: #1B2A47; border-color: rgba(255, 255, 255, .08); }
.section--dark .device__bar span { background: #0F1C36; color: #A8B4C8; }
.section--dark .device__bar i:not(:first-child):not(:nth-child(2)):not(:nth-child(3)) { background: #33456A; }
.work + .work { margin-top: 110px; }

/* Түгээмэл асуулт */
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; }
.faq__list { display: grid; gap: 12px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; transition: border-color .2s; }
.faq details[open] { border-color: var(--sun); }
.faq summary { cursor: pointer; list-style: none; padding: 14px 0; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 16px; color: var(--text); }
.faq__side { }
.faq__side h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; }
.faq__ask { display: grid; grid-template-columns: auto 1fr; gap: 14px 14px; align-items: center; margin-top: 28px; padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.faq__ask img { border-radius: 11px; }
.faq__ask strong { color: var(--ink); display: block; }
.faq__ask p { font-size: 14px; color: var(--muted); }
.faq__ask .btn { grid-column: 1 / -1; }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; gap: 28px; } }

/* CTA: пиксел толгод, нар */
.cta { position: relative; overflow: hidden; padding: 96px 0 170px; }
.cta__hills { position: absolute; left: 0; right: 0; bottom: -4px; height: 150px; background: url(/assets/pixels-wide.svg) no-repeat center bottom / cover; pointer-events: none; }
.cta__in { position: relative; }
.cta::before { content: ""; position: absolute; right: 7%; bottom: 168px; width: 26px; height: 26px; border-radius: 5px; background: var(--sun); box-shadow: 0 0 40px 12px rgba(245, 197, 24, .25); }
.cta h2 { font-size: clamp(32px, 4.4vw, 52px); }
@media (max-width: 800px) { .cta__hills { height: 110px; } .cta { padding-bottom: 150px; } .cta::before { bottom: 116px; } }

/* Горим солих товч: эргэлддэг пиксел нар / сар */
.top__in > .btn { margin-left: 0; }
.theme { position: relative; flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--card); cursor: pointer; perspective: 160px; padding: 0; }
.theme:hover { border-color: var(--sun); }
.theme::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: radial-gradient(circle, rgba(245, 197, 24, .5), transparent 68%); transition: background .6s; }
.theme__flip { display: block; transform-style: preserve-3d; transition: transform .8s cubic-bezier(.5, -.35, .3, 1.35); }
.cube { --c: #F5C518; display: block; position: relative; width: 16px; height: 16px; transform-style: preserve-3d; animation: cube-spin 7s linear infinite; }
.cube i { display: block; position: absolute; inset: 0; border-radius: 2px; background: var(--c); transition: background .6s; }
.cube i:nth-child(1) { transform: translateZ(8px); }
.cube i:nth-child(2) { transform: rotateY(180deg) translateZ(8px); filter: brightness(.8); }
.cube i:nth-child(3) { transform: rotateY(90deg) translateZ(8px); filter: brightness(.9); }
.cube i:nth-child(4) { transform: rotateY(-90deg) translateZ(8px); filter: brightness(.75); }
.cube i:nth-child(5) { transform: rotateX(90deg) translateZ(8px); filter: brightness(1.1); }
.cube i:nth-child(6) { transform: rotateX(-90deg) translateZ(8px); filter: brightness(.7); }
@keyframes cube-spin { to { transform: rotateX(360deg) rotateY(720deg); } }
:root[data-theme="dark"] .theme::before { background: radial-gradient(circle, rgba(159, 184, 234, .45), transparent 68%); }
:root[data-theme="dark"] .theme__flip { transform: rotateX(360deg) rotateZ(180deg); }
:root[data-theme="dark"] .cube { --c: #DCE4F2; }
:root[data-theme="dark"] .cube i { background:
  radial-gradient(circle at 30% 32%, #A3B1C8 0 2px, transparent 2.6px),
  radial-gradient(circle at 70% 68%, #A3B1C8 0 1.6px, transparent 2.2px),
  radial-gradient(circle at 72% 25%, #B8C4D8 0 1px, transparent 1.5px), var(--c); }
@media (prefers-reduced-motion: reduce) { .cube { animation: none; transform: rotateX(-25deg) rotateY(35deg); } .theme__flip { transition: none; } }

/* ---------- Чатбот ---------- */
.cw-fab { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: inline-flex; align-items: center; gap: 8px; padding: 14px 20px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--sun); color: var(--sun-ink); font: inherit; font-weight: 800; box-shadow: 0 12px 30px -8px rgba(245, 197, 24, .7), 0 6px 16px -6px rgba(0, 0, 0, .3); transition: transform .2s; }
.cw-fab:hover { transform: translateY(-2px); }
.cw-fab svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cw-fab.unread::after { content: ""; position: absolute; top: 6px; right: 8px; width: 10px; height: 10px; border-radius: 3px; background: #E5484D; border: 2px solid var(--sun); }
.cw-fab[aria-expanded="true"] { opacity: 0; pointer-events: none; transform: scale(.8); }
.cw-teaser { position: fixed; right: 20px; bottom: 86px; z-index: 60; max-width: 250px; padding: 14px 34px 14px 16px; border-radius: 16px 16px 4px 16px; cursor: pointer;
  background: var(--card); color: var(--ink); font-weight: 600; font-size: 15px; line-height: 1.4; border: 1px solid var(--line); box-shadow: var(--shadow);
  opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity .3s, transform .3s; }
.cw-teaser.show { opacity: 1; transform: none; pointer-events: auto; }
.cw-teaser button { position: absolute; top: 6px; right: 8px; border: 0; background: none; color: var(--muted); font-size: 18px; cursor: pointer; line-height: 1; }

.cw { position: fixed; right: 20px; bottom: 20px; z-index: 61; width: min(380px, calc(100vw - 32px)); height: min(600px, calc(100svh - 110px)); display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: 0 30px 70px -20px rgba(7, 16, 34, .55);
  opacity: 0; transform: translateY(16px) scale(.97); transform-origin: bottom right; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s; }
.cw.open { opacity: 1; transform: none; visibility: visible; }
.cw__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; }
.cw__head img { border-radius: 10px; }
.cw__head b { display: block; font-size: 16px; }
.cw__head small { display: flex; align-items: center; gap: 6px; color: #A8B4C8; font-size: 12px; }
.cw__head small i { width: 7px; height: 7px; border-radius: 2px; background: #3DD68C; }
.cw__head button { margin-left: auto; width: 34px; height: 34px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .1); color: #fff; font-size: 22px; cursor: pointer; line-height: 1; }
.cw__log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; overscroll-behavior: contain; background: var(--tint); }
.cw .msg { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.45; white-space: pre-line; animation: msg-in .25s both; }
.cw .msg.bot { align-self: flex-start; background: var(--card); color: var(--text); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.cw .msg.me { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
:root[data-theme="dark"] .cw .msg.me { background: #2B4E8F; }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } }
.cw .typing { display: flex; gap: 4px; padding: 14px; }
.cw .typing i { width: 7px; height: 7px; border-radius: 2px; background: var(--muted); animation: dot 1s infinite; }
.cw .typing i:nth-child(2) { animation-delay: .15s; } .cw .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 50% { opacity: .3; transform: translateY(-3px); } }
.cw .qr { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.cw .qr button { font: inherit; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; cursor: pointer; border: 1.5px solid var(--sun); background: var(--card); color: var(--ink); transition: background .15s; }
.cw .qr button:hover { background: var(--sun); color: var(--sun-ink); }
.cw .links { display: grid; gap: 6px; max-width: 90%; }
.cw .links a { display: grid; padding: 10px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); text-decoration: none; }
.cw .links a:hover { border-color: var(--sun); }
.cw .links b { color: var(--ink); font-size: 14px; }
.cw .links span { color: var(--muted); font-size: 13px; }
.cw .summary { align-self: flex-start; max-width: 85%; padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1.5px solid var(--sun); }
.cw .summary dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 14px; }
.cw .summary dt { color: var(--muted); }
.cw .summary dd { margin: 0; color: var(--ink); font-weight: 600; }
.cw__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: var(--card); }
.cw__form input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 11px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--tint); color: var(--ink); }
.cw__form input:focus { outline: 2px solid var(--sun); border-color: transparent; }
.cw__form button { width: 44px; height: 44px; flex: none; border: 0; border-radius: 50%; background: var(--sun); cursor: pointer; display: grid; place-items: center; }
.cw__form svg { width: 20px; height: 20px; fill: none; stroke: var(--sun-ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.cw__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
@media (max-width: 600px) {
  .cw { right: 0; bottom: 0; width: 100vw; height: 100svh; border-radius: 0; border: 0; }
  .cw-fab { right: 14px; bottom: 14px; padding: 13px 18px; }
  .cw-teaser { right: 14px; bottom: 78px; }
}
@media (prefers-reduced-motion: reduce) { .cw, .cw .msg, .cw-teaser { transition: none; animation: none; } }
