:root {
  --navy: #0b1f4d;
  --navy-2: #12306f;
  --blue: #005cb9;
  --red: #e60012;
  --ink: #0f172a;
  --muted: #5b6475;
  --line: #e6e9f0;
  --bg-alt: #f5f7fb;
  --radius: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink); background: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.red { color: var(--red); }
.blue { color: var(--blue); }
.muted { color: var(--muted); }
.muted-l { color: rgba(255,255,255,.72); }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-bottom: .8em; }
.eyebrow.light { color: #ff6b75; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .4em; padding: .85em 1.5em; border-radius: 999px; font-weight: 700; font-size: .95rem; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(230,0,18,.25); }
.btn-red:hover { background: #c70010; }
.btn-ghost { border: 2px solid var(--navy); color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn-sm { padding: .55em 1.1em; font-size: .85rem; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--navy); }
.logo-img { height: 58px; width: auto; }
.foot-logo { width: 120px; height: auto; }
.menu { display: flex; align-items: center; gap: 26px; }
.menu a:not(.btn) { color: var(--ink); font-weight: 600; font-size: .92rem; }
.menu a:not(.btn):hover { color: var(--red); }
.burger { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.burger span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .2s; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% 0%, #e8f0ff 0%, transparent 60%), linear-gradient(#fff, var(--bg-alt)); padding: 64px 0 80px; overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 34em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 32px; }
.hero-brands { display: flex; gap: 14px; }
.hero-brands img { width: 130px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 4px 10px; }
.hero-slider { position: relative; border-radius: 22px; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(11,31,77,.45); aspect-ratio: 1600/917; background: var(--navy); }
.slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s ease; }
.slide.active { opacity: 1; }
.dots { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; background: rgba(255,255,255,.5); cursor: pointer; padding: 0; transition: .2s; }
.dots button.on { background: #fff; width: 24px; border-radius: 6px; }

/* Sections */
.section { padding: 96px 0; }
.section.alt { background: var(--bg-alt); }
.section.dark { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; }
.sec-head { max-width: 720px; margin-bottom: 48px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feat .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--blue), var(--navy)); margin-bottom: 18px; }
.feat p, .brand p { color: var(--muted); margin: 0; }

.brands { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.brand { padding: 34px; position: relative; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.brand:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -20px rgba(11,31,77,.3); }
.brand::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 5px; }
.brand.nittaku::before { background: var(--red); }
.brand.victas::before { background: var(--blue); }
.brand-logo { height: 90px; display: flex; align-items: center; margin-bottom: 14px; }
.brand-logo img { width: 200px; }
.brand h3 { font-size: 1.4rem; }
.brand small { color: var(--muted); font-weight: 600; font-size: .9rem; }
.tags { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { font-size: .8rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; background: var(--bg-alt); color: var(--navy); }

.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.cat { background: var(--bg-alt); border-radius: var(--radius); padding: 22px 12px 18px; text-align: center; color: var(--ink); font-weight: 700; transition: .2s; border: 1px solid transparent; }
.cat img { width: 88px; margin: 0 auto 12px; transition: transform .25s; }
.cat:hover { background: #fff; border-color: var(--line); box-shadow: 0 14px 30px -18px rgba(11,31,77,.35); }
.cat:hover img { transform: scale(1.08) rotate(-3deg); }

.glass { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #fff; }
.glass p { color: rgba(255,255,255,.75); margin: 0; }

.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.contact-list { display: grid; gap: 14px; }
.c-item { display: flex; align-items: center; gap: 18px; padding: 20px 24px; color: var(--ink); transition: .2s; }
.c-item:hover { border-color: var(--blue); transform: translateX(4px); }
.c-item small { display: block; color: var(--muted); font-size: .8rem; font-weight: 600; }
.c-item b { font-size: 1.08rem; word-break: break-word; }
.c-ico { flex: none; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--bg-alt); font-size: 1.2rem; font-weight: 800; color: var(--blue); }

.foot { background: #070f26; color: rgba(255,255,255,.7); padding: 40px 0; font-size: .9rem; }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.foot p { margin: 10px 0 0; }
.foot .copy { margin: 0; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 960px) {
  .hero-in, .contact, .brands { grid-template-columns: 1fr; }
  .grid3 { grid-template-columns: 1fr; }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .section { padding: 72px 0; }
  .burger { display: block; }
  .menu { position: absolute; top: 76px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 20px 18px; display: none; }
  .menu.open { display: flex; }
  .menu a:not(.btn) { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .menu .btn { margin-top: 14px; justify-content: center; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .hero { padding: 40px 0 56px; }
  .card, .brand { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .slide { transition: none; }
}

/* Гарчгууд төвд */
.sec-head { margin-left: auto; margin-right: auto; text-align: center; }
.hero-text { text-align: center; }
.hero-text .lead { margin-left: auto; margin-right: auto; }
.hero-cta, .hero-brands { justify-content: center; }
.contact { grid-template-columns: 1fr; gap: 36px; }
.contact > div:first-child { text-align: center; max-width: 720px; margin: 0 auto; }
.contact-list { grid-template-columns: repeat(3, 1fr); }
.c-item:hover { transform: translateY(-3px); }
@media (max-width: 960px) { .contact-list { grid-template-columns: 1fr; } }

/* Мобайл нарийвчлал */
@media (max-width: 960px) {
  .foot-in { flex-direction: column; text-align: center; }
  .foot-logo { margin: 0 auto; }
}
@media (max-width: 520px) {
  html { scroll-padding-top: 66px; }
  .nav-in { height: 62px; }
  .logo-img { height: 44px; }
  .menu { top: 62px; max-height: calc(100vh - 62px); overflow-y: auto; box-shadow: 0 16px 30px -12px rgba(11,31,77,.25); }
  .hero { padding: 32px 0 44px; }
  .hero-in { gap: 32px; }
  .lead { font-size: 1rem; }
  .hero-cta { flex-direction: column; align-items: center; margin: 22px 0 24px; }
  .hero-cta .btn { width: 100%; max-width: 300px; justify-content: center; }
  .hero-brands img { width: 112px; }
  .hero-slider { border-radius: 16px; }
  .section { padding: 56px 0; }
  .sec-head { margin-bottom: 32px; }
  .grid3 { gap: 14px; }
  .feat { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: start; }
  .feat .ico { width: 44px; height: 44px; margin: 0; grid-row: span 2; }
  .feat h3 { margin: 2px 0 4px; }
  .brands { gap: 16px; }
  .brand-logo { height: 64px; margin-bottom: 8px; }
  .brand-logo img { width: 150px; }
  .cats { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .cat { padding: 14px 6px 12px; font-size: .82rem; }
  .cat img { width: 56px; margin-bottom: 8px; }
  .contact { gap: 24px; }
  .c-item { padding: 16px 18px; gap: 14px; }
  .c-ico { width: 42px; height: 42px; }
  .c-item b { font-size: 1rem; }
  .foot { padding: 32px 0; font-size: .85rem; }
}
@media (max-width: 359px) {
  .cats { grid-template-columns: repeat(2, 1fr); }
  .hero-brands img { width: 96px; }
}

/* Програм хангамж */
.soft-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.soft { transition: transform .2s, box-shadow .2s; }
.soft:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -22px rgba(11,31,77,.35); }
.soft .ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem; background: var(--bg-alt); margin-bottom: 16px; }
.soft p { color: var(--muted); margin: 0; font-size: .95rem; }
.sub-head { text-align: center; font-size: 1.3rem; margin: 56px 0 24px; }
.works { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 820px; margin: 0 auto; }
.work { display: flex; flex-direction: column; gap: 6px; color: var(--ink); border-top: 4px solid var(--blue); transition: transform .2s, box-shadow .2s; }
.work:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -22px rgba(11,31,77,.35); }
.work b { font-size: 1.1rem; word-break: break-word; }
.work span { color: var(--muted); font-size: .92rem; }
.work .work-tag { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
.work .work-go { margin-top: auto; padding-top: 10px; color: var(--blue); font-weight: 700; }
.soft-cta { margin-top: 48px; padding: 28px 32px; border-radius: var(--radius); background: linear-gradient(135deg, var(--navy), var(--blue)); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.soft-cta p { margin: 0; font-weight: 600; font-size: 1.05rem; }
.soft-cta .btn { flex: none; }
@media (max-width: 960px) {
  .soft-grid { grid-template-columns: repeat(2, 1fr); }
  .works { grid-template-columns: 1fr; }
  .soft-cta { flex-direction: column; text-align: center; }
}
@media (max-width: 520px) {
  .soft-grid { grid-template-columns: 1fr; gap: 14px; }
  .soft { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; }
  .soft .ico { width: 44px; height: 44px; margin: 0; grid-row: span 2; }
  .soft h3 { margin: 2px 0 4px; }
  .sub-head { margin: 40px 0 18px; }
  .soft-cta { padding: 24px 20px; margin-top: 32px; }
}
