:root {
  --navy: #071b3f;
  --navy-2: #0b2d68;
  --blue: #0878f9;
  --cyan: #1ebcff;
  --teal: #078b82;
  --purple: #6846ce;
  --orange: #ec641b;
  --ink: #0b2556;
  --muted: #5f7191;
  --soft: #f5f9ff;
  --line: #dce7f6;
  --shadow: 0 18px 55px rgba(18, 57, 111, .12);
}

html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { color: var(--ink); font-family: Inter, "Segoe UI", Arial, sans-serif; font-size: 1rem; line-height: 1.55; overflow-x: hidden; }
a { color: inherit; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 2000; padding: .7rem 1rem; background: #fff; color: var(--ink); border-radius: .5rem; }
.skip-link:focus { top: 1rem; }
.section-pad { padding: 6rem 0; }
.bg-soft { background: var(--soft); }
.section-heading { max-width: 740px; }
.section-kicker { display: inline-block; color: var(--blue); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .65rem; }
.section-kicker.light { color: #9fe5ff; }
h2 { font-weight: 800; letter-spacing: -.03em; }
.section-heading h2, section h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
.section-intro, .section-heading p { color: var(--muted); font-size: 1.08rem; max-width: 700px; }
.btn { border-radius: .7rem; font-weight: 700; transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, #0878f9, #0062df); border-color: transparent; box-shadow: 0 8px 24px rgba(8, 120, 249, .23); }
.btn-success { background: linear-gradient(135deg, #078b82, #00766e); border-color: transparent; }
.btn-violet { color: #fff; background: linear-gradient(135deg, #7153d9, #5635bf); border: 0; }
.btn-violet:hover, .btn-orange:hover { color: #fff; }
.btn-orange { color: #fff; background: linear-gradient(135deg, #f37a25, #d95710); border: 0; }

/* Navigation */
.navbar { min-height: 74px; }
.navbar-brand { margin-right: 1rem; }
.brand-group { display: flex; align-items: center; gap: .9rem; color: var(--ink); }
.brand { display: flex; align-items: center; gap: .5rem; line-height: 1; }
.brand i { font-size: 2.15rem; color: #0856ba; }
.brand b { display: block; font-size: 1.3rem; letter-spacing: -.03em; }
.brand small { display: block; margin-top: .25rem; font-size: .45rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: #59729d; }
.brand-asp i { color: #0878f9; }
.brand-divider { height: 34px; width: 1px; background: #acc0dd; }
.navbar .nav-link { position: relative; color: var(--ink); font-size: .82rem; font-weight: 600; padding: 1.65rem .6rem; white-space: nowrap; }
.navbar .nav-link::after { content: ""; position: absolute; left: .6rem; right: .6rem; bottom: .85rem; height: 2px; border-radius: 2px; background: var(--blue); transform: scaleX(0); transition: transform .2s ease; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--blue); }
.navbar .nav-link:hover::after, .navbar .nav-link.active::after { transform: scaleX(1); }
.btn-icon { padding: .45rem .6rem; font-size: 1.15rem; color: var(--ink); }
.offcanvas { max-width: 330px; }
.mobile-nav .nav-link { padding: .75rem 0; color: var(--ink); font-weight: 700; border-bottom: 1px solid var(--line); }

/* Hero */
.hero { min-height: 650px; margin-top: 74px; color: #fff; background-image: linear-gradient(90deg, rgba(4, 20, 49, .98) 0%, rgba(4, 25, 60, .82) 32%, rgba(4, 25, 60, .05) 64%), url("../images/hero-kazakhstan-science.webp"); background-size: cover; background-position: center; position: relative; isolation: isolate; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 38% 48%, rgba(20, 142, 255, .13), transparent 36%); }
.hero-copy { padding: 4.5rem 0; text-shadow: 0 2px 22px rgba(0, 0, 0, .26); }
.eyebrow { font-size: .9rem; letter-spacing: .09em; text-transform: uppercase; }
.display-title { font-size: clamp(4rem, 8vw, 7.4rem); font-weight: 850; line-height: .92; letter-spacing: -.07em; }
.display-title span { color: var(--cyan); }
.hero-subtitle { font-size: clamp(1.8rem, 3vw, 2.75rem); line-height: 1.1; }
.hero-text { max-width: 610px; margin-top: 1.1rem; font-size: 1.12rem; line-height: 1.45; color: rgba(255,255,255,.9); }

/* Hero orbit (rotating globe with topic icons) */
.hero-orbit { position: relative; width: 32em; height: 32em; font-size: clamp(12.5px, 1.25vw, 17.5px); margin: 2.5rem 0; }
.orbit-slogan { position: absolute; top: -1.6em; right: .5em; max-width: 11em; text-align: right; font-size: .78em; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; line-height: 1.35; color: var(--navy-2); text-shadow: none; }
.orbit-globe { position: absolute; top: 50%; left: 50%; width: 13em; height: 13em; margin: -6.5em; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-align: center; padding: 1.5em; background: radial-gradient(circle at 32% 28%, #2f9bff, #0b3f95 55%, #06214f 100%); box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 0 70px rgba(30,150,255,.55), inset 0 0 60px rgba(0,0,0,.35); z-index: 2; }
.orbit-globe span { font-weight: 800; font-size: 1.05em; line-height: 1.35; text-transform: uppercase; letter-spacing: .01em; color: #fff; }
.orbit-ring { position: absolute; inset: 0; z-index: 3; animation: orbit-spin 70s linear infinite; }
.orbit-item { position: absolute; top: 50%; left: 50%; width: 6em; margin: -3em; text-align: center; text-decoration: none; color: inherit; transform: rotate(var(--angle)) translate(0, -12em) rotate(calc(-1 * var(--angle))); }
.orbit-item-inner { display: flex; flex-direction: column; align-items: center; gap: .35em; animation: orbit-counter-spin 70s linear infinite; }
.orbit-item i { display: grid; place-items: center; width: 2.6em; height: 2.6em; border-radius: 50%; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); color: #fff; font-size: 1.15em; backdrop-filter: blur(2px); transition: background .2s ease, transform .2s ease, border-color .2s ease; }
.orbit-item small { display: block; font-size: .74em; font-weight: 700; line-height: 1.2; color: rgba(255,255,255,.88); text-decoration: none; }
.orbit-item:hover i { background: var(--blue); border-color: var(--blue); transform: scale(1.08); }
.orbit-item:hover small { color: #fff; }
.hero-orbit:hover .orbit-ring, .hero-orbit:hover .orbit-item-inner { animation-play-state: paused; }
@keyframes orbit-spin { to { transform: rotate(360deg); } }
@keyframes orbit-counter-spin { to { transform: rotate(-360deg); } }
@media (prefers-reduced-motion: reduce) {
  .orbit-ring, .orbit-item-inner, .eco-ring, .eco-node { animation: none; }
}

/* Audience cards */
.audiences-section { padding-top: 5rem; }
.audience-card { --accent: var(--blue); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 1.2rem; background: #fff; box-shadow: var(--shadow); transition: transform .25s ease, box-shadow .25s ease; }
.audience-card:hover { transform: translateY(-7px); box-shadow: 0 24px 65px rgba(18,57,111,.18); }
.audience-teal { --accent: var(--teal); }
.audience-purple { --accent: var(--purple); }
.audience-orange { --accent: var(--orange); }
.audience-image { min-height: 220px; padding: 1.4rem; display: flex; align-items: flex-end; position: relative; background-image: linear-gradient(90deg, rgba(5, 31, 72, .88), rgba(5, 31, 72, .08) 88%), var(--card-image); background-size: cover; background-position: center; }
.audience-teal .audience-image { background-image: linear-gradient(90deg, rgba(4, 70, 68, .9), rgba(4, 70, 68, .05) 85%), var(--card-image); }
.audience-purple .audience-image { background-image: linear-gradient(90deg, rgba(47, 26, 109, .9), rgba(47, 26, 109, .08) 85%), var(--card-image); }
.audience-orange .audience-image { background-image: linear-gradient(90deg, rgba(107, 45, 12, .88), rgba(107, 45, 12, .05) 85%), var(--card-image); }
.audience-image h3 { position: relative; z-index: 1; color: #fff; font-size: 1.45rem; line-height: 1.05; font-weight: 850; text-transform: uppercase; text-shadow: 0 2px 12px rgba(0,0,0,.45); }
.audience-body { display: flex; flex: 1; flex-direction: column; padding: 1.4rem; background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 10%, #fff), #fff 55%); }
.audience-lead { min-height: 54px; color: var(--accent); font-weight: 800; line-height: 1.25; }
.feature-list { list-style: none; padding: 0; margin: .4rem 0 1.3rem; }
.feature-list li { display: flex; gap: .65rem; align-items: flex-start; margin: .65rem 0; font-size: .92rem; }
.feature-list i { color: var(--accent); font-size: 1.05rem; flex: 0 0 auto; }
.audience-body .btn { margin-top: auto; }

/* Stats */
.stats-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.stat { display: flex; align-items: center; gap: 1rem; }
.stat > i { color: var(--blue); font-size: 2.3rem; }
.stat strong { display: block; font-size: 1.6rem; line-height: 1; }
.stat span { display: block; color: var(--muted); font-size: .88rem; }

/* Content cards and journal covers */
.content-card { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 1rem; background: #fff; box-shadow: 0 12px 35px rgba(18,57,111,.08); transition: transform .25s ease; }
.content-card:hover { transform: translateY(-5px); }
.content-card h3 { margin: .7rem 0; font-size: 1.35rem; font-weight: 800; }
.content-card p { color: var(--muted); }
.content-card a { color: var(--blue); font-weight: 800; text-decoration: none; }
.journal-cover-img { display: block; width: 100%; height: auto; }
.journal-cover { min-height: 235px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .5rem; color: #fff; text-align: center; position: relative; overflow: hidden; }
.journal-cover::before { content: ""; position: absolute; width: 210px; height: 210px; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; }
.journal-cover i { position: relative; font-size: 3rem; }
.journal-cover span { position: relative; font-size: 1.7rem; font-weight: 900; letter-spacing: .08em; }
.journal-cover small { position: relative; max-width: 230px; text-transform: uppercase; letter-spacing: .05em; }
.cover-blue { background: linear-gradient(145deg, #08295e, #0878f9); }
.cover-cyan { background: linear-gradient(145deg, #006d88, #13bde2); }
.cover-purple { background: linear-gradient(145deg, #38217f, #8a5fe8); }
.tag { display: inline-block; padding: .27rem .6rem; border-radius: 10rem; background: #e8f2ff; color: #1862b7; font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.link-arrow { display: inline-flex; gap: .5rem; color: var(--blue); font-weight: 800; text-decoration: none; }

/* Events */
.event-card { display: flex; gap: 1.2rem; padding: 1.5rem; border: 1px solid var(--line); border-radius: 1rem; background: #fff; box-shadow: 0 12px 35px rgba(18,57,111,.08); }
.event-card h3 { margin: .6rem 0; font-size: 1.15rem; font-weight: 800; }
.event-card p { color: var(--muted); font-size: .9rem; }
.event-date { min-width: 72px; height: 84px; display: grid; align-content: center; text-align: center; color: #fff; border-radius: .8rem; background: linear-gradient(145deg, var(--blue), #0059ca); }
.event-date.teal { background: linear-gradient(145deg, #08a094, #006b65); }
.event-date.purple { background: linear-gradient(145deg, #8158e4, #5435b2); }
.event-date strong { font-size: 1.8rem; line-height: 1; }
.event-date span { font-size: .72rem; font-weight: 800; }

/* Services */
.publications-section { color: #fff; background: radial-gradient(circle at 78% 18%, rgba(37,185,255,.22), transparent 32%), linear-gradient(135deg, #071b3f, #0c3e87); }
.publications-section p { color: rgba(255,255,255,.78); font-size: 1.08rem; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.service-grid div { min-height: 145px; padding: 1.2rem; display: flex; flex-direction: column; justify-content: space-between; border: 1px solid rgba(255,255,255,.17); border-radius: 1rem; background: rgba(255,255,255,.08); backdrop-filter: blur(8px); }
.service-grid i { font-size: 2rem; color: #82dfff; }
.service-grid span { font-weight: 750; }

/* Organizations */
.check-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.check-list li { display: flex; gap: .75rem; margin: .8rem 0; font-weight: 650; }
.check-list i { color: var(--teal); }
.dashboard-mock { overflow: hidden; border: 1px solid #cfe0f5; border-radius: 1.2rem; background: #fff; box-shadow: 0 25px 70px rgba(18,57,111,.2); transform: perspective(1000px) rotateY(-4deg) rotateX(1deg); }
.dash-top { height: 45px; display: flex; align-items: center; gap: .4rem; padding: 0 1rem; background: var(--navy); }
.dash-top span { width: 9px; height: 9px; border-radius: 50%; background: #4f6e9d; }
.dash-grid { min-height: 360px; display: grid; grid-template-columns: 22% 1fr; }
.dash-sidebar { background: #eef5ff; border-right: 1px solid #d9e5f5; }
.dash-main { padding: 1.5rem; }
.dash-numbers { display: grid; grid-template-columns: repeat(3,1fr); gap: .8rem; }
.dash-numbers span { height: 64px; border-radius: .7rem; background: linear-gradient(135deg,#e7f2ff,#f8fbff); border: 1px solid #d7e6fa; }
.dash-chart { height: 160px; margin-top: 1rem; padding: 1rem; display: flex; align-items: flex-end; gap: .6rem; border-radius: .7rem; background: #f8fbff; }
.dash-chart i { flex: 1; height: 35%; border-radius: .3rem .3rem 0 0; background: linear-gradient(#23b8ff,#0878f9); }
.dash-chart i:nth-child(2) { height: 53%; }.dash-chart i:nth-child(3) { height: 44%;}.dash-chart i:nth-child(4) { height: 76%;}.dash-chart i:nth-child(5) { height: 62%;}.dash-chart i:nth-child(6) { height: 92%;}.dash-chart i:nth-child(7) { height: 78%;}
.dash-lines { display: grid; gap: .65rem; margin-top: 1rem; }.dash-lines span { height: 10px; width: 92%; background: #e3edf8; border-radius: 1rem; }.dash-lines span:nth-child(2){width:72%}.dash-lines span:nth-child(3){width:84%}

/* Society and ecosystem */
.society-panel { padding: 3.5rem; color: #fff; border-radius: 1.5rem; background: radial-gradient(circle at 85% 50%, rgba(90,213,255,.28), transparent 32%), linear-gradient(120deg,#0b2d68,#0878f9); box-shadow: var(--shadow); }
.society-panel p { max-width: 760px; margin: 0; color: rgba(255,255,255,.82); font-size: 1.05rem; }
.ecosystem-visual { min-height: 420px; display: grid; place-items: center; position: relative; border-radius: 50%; background: radial-gradient(circle, rgba(8,120,249,.18), rgba(8,120,249,.03) 55%, transparent 56%); }
.ecosystem-visual::before, .ecosystem-visual::after { content: ""; position: absolute; border: 1px dashed #9bc3f3; border-radius: 50%; }
.ecosystem-visual::before { width: 68%; height: 68%; }.ecosystem-visual::after { width: 93%; height: 93%; }
.eco-core { width: 175px; height: 175px; display: grid; place-items: center; align-content: center; position: relative; z-index: 2; color: #fff; border-radius: 50%; background: linear-gradient(145deg,#0b2d68,#0878f9); box-shadow: 0 20px 50px rgba(8,120,249,.32); }
.eco-core i { font-size: 3rem; }.eco-core strong { font-size: 1.25rem; }
.eco-ring { position: absolute; inset: 0; z-index: 3; animation: orbit-spin 30s linear infinite; }
.eco-node { position: absolute; z-index: 3; padding: .6rem .9rem; border: 1px solid #cfe0f5; border-radius: 10rem; background: #fff; box-shadow: 0 8px 28px rgba(18,57,111,.13); font-weight: 800; font-size: .85rem; animation: orbit-counter-spin 30s linear infinite; }
.node-1{top:9%;left:38%}.node-2{top:43%;right:1%}.node-3{bottom:8%;left:40%}.node-4{top:43%;left:0}
.ecosystem-visual:hover .eco-ring, .ecosystem-visual:hover .eco-node { animation-play-state: paused; }
.mini-value { height: 100%; display: grid; grid-template-columns: 38px 1fr; column-gap: .6rem; padding: 1rem; border: 1px solid var(--line); border-radius: .8rem; }
.mini-value i { grid-row: span 2; color: var(--blue); font-size: 1.5rem; }.mini-value b { line-height: 1.2; }.mini-value span { color: var(--muted); font-size: .86rem; }

/* Footer, overlays */
.site-footer { color: rgba(255,255,255,.76); background: #06152f; }
.footer-brand { color: #fff; font-size: 1.5rem; font-weight: 850; }.footer-brand i{color:var(--cyan)}
.site-footer h2 { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; }
.site-footer a { display: block; margin: .45rem 0; color: rgba(255,255,255,.68); text-decoration: none; }.site-footer a:hover{color:#fff}
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; }
.back-to-top { width: 44px; height: 44px; display: grid; place-items: center; position: fixed; z-index: 1030; right: 1.25rem; bottom: 1.25rem; color: #fff; border: 0; border-radius: 50%; background: var(--blue); box-shadow: 0 8px 25px rgba(8,120,249,.4); opacity: 0; visibility: hidden; transform: translateY(10px); transition: .2s ease; }
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.step-icon { width: 55px; height: 55px; display: grid; place-items: center; margin: 0 auto 1rem; color: #fff; border-radius: 50%; background: var(--blue); font-weight: 900; }
.modal-content { border: 0; border-radius: 1rem; box-shadow: 0 30px 90px rgba(0,0,0,.22); }

@media (max-width: 1399.98px) {
  .brand-qaz small, .brand-asp small { display: none; }
  .brand b { font-size: 1.1rem; }
  .navbar .nav-link { padding-left: .45rem; padding-right: .45rem; font-size: .77rem; }
}
@media (max-width: 1199.98px) {
  .navbar { min-height: 68px; }.hero { margin-top: 68px; }
  .brand small { display: block; }
}
@media (max-width: 991.98px) {
  .section-pad { padding: 4.5rem 0; }
  .hero { min-height: 610px; background-position: 57% center; }
  .hero::before { content:""; position:absolute; inset:0; z-index:-1; background:rgba(4,20,49,.48); }
  .hero-copy { max-width: 660px; }
  .service-grid { grid-template-columns: repeat(2,1fr); }
  .dashboard-mock { transform: none; }
}
@media (max-width: 767.98px) {
  .hero { min-height: 630px; background-position: 63% center; background-image: linear-gradient(90deg,rgba(4,20,49,.95),rgba(4,20,49,.55)),url("../images/hero-kazakhstan-science.webp"); }
  .display-title { font-size: clamp(3.5rem,18vw,5.2rem); }
  .hero-text { font-size: 1rem; }
  .audience-image { min-height: 250px; }
  .society-panel { padding: 2rem; }
  .ecosystem-visual { min-height: 350px; }
}
@media (max-width: 575.98px) {
  .section-pad { padding: 3.8rem 0; }
  .hero-copy { padding: 3.5rem 0; }
  .hero .btn { width: 100%; }
  .service-grid { grid-template-columns: 1fr; }
  .stat { gap: .6rem; align-items:flex-start; }.stat > i { font-size:1.7rem }.stat strong{font-size:1.25rem}.stat span{font-size:.78rem}
  .event-card { flex-direction: column; }.event-date { width: 72px; }
  .society-panel { border-radius: 1rem; }
  .ecosystem-visual { transform:scale(.86); margin:-20px; }
}

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