/* RISMUz — main stylesheet */
:root {
  --navy: #2a2f6e;
  --green: #1aa64b;
  --green-700: #138a3c;
  --blue: #1f9bbf;
  --yellow: #f5c400;
  --red: #d71920;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text: #26304a;
  --muted: #5d6680;
  --line: #e3e7ef;
  --radius: 12px;
  --shadow: 0 2px 12px rgba(20, 30, 70, .07);
  --shadow-lg: 0 10px 30px rgba(20, 30, 70, .12);
  --container: 1140px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--surface);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 26px; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: 15px; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-700); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s, border-color .2s;
}
.site-header.is-scrolled { box-shadow: var(--shadow); border-color: var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 800; font-size: 20px; letter-spacing: .5px; }
.brand:hover { text-decoration: none; }
.brand img { height: 52px; width: auto; }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; color: var(--navy); }
.nav-toggle svg { width: 26px; height: 26px; }
.main-nav ul { display: flex; gap: 6px; list-style: none; }
.main-nav a {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: var(--navy); font-weight: 600; font-size: 15px;
}
.main-nav a:hover, .main-nav a.is-active { color: var(--green); background: #eef8f1; text-decoration: none; }

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; padding: 8px 20px 16px; gap: 2px; }
  .main-nav a { padding: 12px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #eaf6ee 0%, #e6f2fa 100%);
  padding: 72px 0 80px;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px;
  background: linear-gradient(90deg, var(--blue), var(--red), var(--green), var(--yellow), var(--navy));
}
.hero .container { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; }
.hero-eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--green-700); background: #fff; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.hero h1 { font-size: clamp(30px, 4.6vw, 48px); margin-bottom: 16px; }
.hero h1 span { color: var(--green); }
.hero-lead { font-size: 18px; color: var(--muted); max-width: 560px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-logo { justify-self: center; width: min(320px, 100%); filter: drop-shadow(0 12px 24px rgba(20, 30, 70, .12)); }

@media (max-width: 860px) {
  .hero { padding: 48px 0 56px; text-align: center; }
  .hero .container { grid-template-columns: 1fr; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-logo { order: -1; width: 180px; }
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg); }
.section-head { margin-bottom: 36px; max-width: 720px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 10px; }
.section-head h2::after {
  content: ""; display: block; width: 64px; height: 4px; margin-top: 12px; border-radius: 2px;
  background: linear-gradient(90deg, var(--blue), var(--green), var(--yellow), var(--red));
}
.section-head.center h2::after { margin-left: auto; margin-right: auto; }
.section-head p { color: var(--muted); margin: 0; }
.section h3.sub { font-size: 22px; margin: 48px 0 20px; }
@media (max-width: 640px) { .section { padding: 56px 0; } }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.about-text p { font-size: 17px; }
.facts { display: grid; gap: 14px; margin: 0; }
.fact {
  background: var(--surface); border-left: 4px solid var(--green);
  padding: 16px 20px; border-radius: 8px; box-shadow: var(--shadow);
}
.fact:nth-child(2) { border-color: var(--blue); }
.fact:nth-child(3) { border-color: var(--yellow); }
.fact:nth-child(4) { border-color: var(--red); }
.fact dt { font-size: 13px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); font-weight: 700; }
.fact dd { margin: 2px 0 0; font-weight: 600; color: var(--navy); }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- Objectives ---------- */
.cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; list-style: none; }
.cards > li { grid-column: span 2; }
.cards > li:nth-child(n+4) { grid-column: span 3; } /* 3 + 2 layout */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .cards > li, .cards > li:nth-child(n+4) { grid-column: auto; }
  .cards > li:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 600px) { .cards { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
  border-top: 4px solid var(--c, var(--green));
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-num {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--c, var(--green)); color: #fff; font-weight: 800; margin-bottom: 14px;
}
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Partners ---------- */
.marquee { position: relative; overflow: hidden; padding: 10px 0; }
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 80px; z-index: 2; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--surface), rgba(255, 255, 255, 0)); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--surface), rgba(255, 255, 255, 0)); }
.marquee-track { display: flex; align-items: center; width: max-content; animation: marquee 35s linear infinite; list-style: none; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-track li { flex: 0 0 auto; padding: 0 36px; }
.marquee-track img {
  height: 64px; width: auto; max-width: 220px; object-fit: contain;
  filter: grayscale(100%); opacity: .7; transition: filter .3s, opacity .3s;
}
.marquee-track a:hover img, .marquee-track img:hover { filter: none; opacity: 1; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.partner-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; list-style: none; }
.partner-list li {
  display: flex; align-items: center; gap: 14px; background: var(--surface);
  padding: 16px 18px; border-radius: 10px; box-shadow: var(--shadow);
}
.partner-list .abbr {
  flex: 0 0 auto; min-width: 58px; text-align: center; font-weight: 800; font-size: 13px;
  color: #fff; background: var(--navy); border-radius: 6px; padding: 6px 8px;
}
.partner-list .name { font-weight: 600; color: var(--navy); line-height: 1.35; }

/* ---------- News ---------- */
.news-list { display: grid; gap: 28px; }
.news-card {
  display: grid; grid-template-columns: 1fr 1.1fr; background: var(--surface);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.news-cover {
  position: relative; display: block; width: 100%; min-height: 280px; height: 100%;
  background: #dde3ec; cursor: zoom-in; border: 0; padding: 0;
}
.news-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.news-cover .count {
  position: absolute; right: 12px; bottom: 12px; background: rgba(20, 25, 60, .75); color: #fff;
  font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
}
.news-body { padding: 28px 30px; display: flex; flex-direction: column; }
.news-date { font-size: 14px; font-weight: 600; color: var(--green-700); margin-bottom: 6px; }
.news-body h3 { font-size: 22px; }
.news-thumbs { display: flex; gap: 10px; margin-top: auto; padding-top: 8px; list-style: none; flex-wrap: wrap; }
.news-thumbs button {
  width: 76px; height: 76px; padding: 0; border: 2px solid transparent; border-radius: 8px;
  overflow: hidden; cursor: zoom-in; background: #dde3ec;
}
.news-thumbs button:hover { border-color: var(--green); }
.news-thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) {
  .news-card { grid-template-columns: 1fr; }
  .news-cover { min-height: 0; aspect-ratio: 16 / 10; height: auto; }
  .news-body { padding: 22px; }
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center; background: rgba(10, 12, 30, .92); padding: 56px 64px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.lightbox button {
  position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; cursor: pointer;
  width: 48px; height: 48px; border-radius: 50%; font-size: 26px; line-height: 1; display: grid; place-items: center;
}
.lightbox button[hidden] { display: none; }
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lb-counter { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #cfd3e6; font-size: 14px; pointer-events: none; }
@media (max-width: 640px) {
  .lightbox { padding: 64px 8px; }
  .lb-prev, .lb-next { top: auto; bottom: 8px; transform: none; }
}

/* ---------- Team ---------- */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; list-style: none; }
.member {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 28px 22px; text-align: center; transition: transform .2s, box-shadow .2s;
}
.member:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.member img {
  width: 140px; height: 140px; border-radius: 50%; object-fit: cover; object-position: center top;
  margin: 0 auto 18px; border: 4px solid #fff; box-shadow: 0 0 0 3px var(--c, var(--green));
}
.member h3 { font-size: 18px; margin-bottom: 4px; }
.member .role { display: block; color: var(--green-700); font-weight: 600; font-size: 15px; }
.member .org { display: block; color: var(--muted); font-size: 14px; margin-top: 6px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; list-style: none; }
.contact-item {
  display: flex; gap: 16px; align-items: flex-start; background: var(--surface);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.contact-item .ico {
  flex: 0 0 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: #eef8f1; color: var(--green-700);
}
.contact-item .ico svg { width: 22px; height: 22px; }
.contact-item h3 { font-size: 16px; margin-bottom: 4px; }
.contact-item p { margin: 0; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #d5d9f5; padding: 56px 0 24px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 32px; }
.footer-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.footer-brand img { height: 64px; width: auto; background: #fff; border-radius: 10px; padding: 6px; }
.footer-brand strong { color: #fff; font-size: 20px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 12px; }
.site-footer ul { list-style: none; display: grid; gap: 6px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 36px; padding-top: 20px;
  text-align: center; font-size: 14px; opacity: .85;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 44px; height: 44px; border-radius: 50%;
  background: var(--green); color: #fff; border: 0; cursor: pointer; box-shadow: var(--shadow-lg);
  display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; }
.to-top svg { width: 20px; height: 20px; }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .marquee-track { flex-wrap: wrap; width: auto; justify-content: center; row-gap: 24px; }
  .marquee-track li[aria-hidden="true"] { display: none; }
  .marquee::before, .marquee::after { display: none; }
}
