/* ============================================================
   ВИИ – Висш ислямски институт, София
   Modern static site · design system
   Palette derived from the institute emblem (deep blue + gold)
   ============================================================ */

:root {
  /* Brand */
  --navy-950: #0a1e38;
  --navy-900: #0f2a4d;
  --blue-800: #123c6e;
  --blue-700: #15528c;
  --blue-600: #1e6bb0;
  --blue-100: #dce9f7;
  --gold-600: #b18a34;
  --gold-500: #c6a24b;
  --gold-400: #d8bc72;
  --cream: #f8f6f1;
  --paper: #ffffff;
  --ink: #1b2534;
  --muted: #5c6675;
  --line: #e7e3d9;

  /* Shape & effect */
  --radius-lg: 22px;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 42, 77, 0.06), 0 2px 8px rgba(15, 42, 77, 0.05);
  --shadow: 0 4px 14px rgba(15, 42, 77, 0.08), 0 12px 32px rgba(15, 42, 77, 0.08);
  --shadow-lift: 0 8px 24px rgba(15, 42, 77, 0.14), 0 20px 48px rgba(15, 42, 77, 0.12);

  --font-sans: "Manrope", "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --container: 1180px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  font-feature-settings: "ss01" on;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue-700); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--blue-600); }

h1, h2, h3, h4 {
  margin: 0 0 0.6em;
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.015em;
  color: var(--navy-900);
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin: 0.35em 0; }

::selection { background: var(--gold-400); color: var(--navy-950); }

/* ---------- Layout ---------- */
.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.section { padding: 88px 0; }
.section--tight { padding: 60px 0; }
.section--paper { background: var(--paper); }
.section--navy { background: var(--navy-900); }

.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gold-500);
  border-radius: 2px;
}
.section-head--center .eyebrow { justify-content: center; }
.section-head--center .eyebrow::after {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--gold-500);
  border-radius: 2px;
}
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.section-head .lead { font-size: 18px; color: var(--muted); }
.section--navy h2, .section--navy .lead { color: #eef3fa; }
.section--navy .lead { color: #b9c8dd; }
.section--navy .eyebrow { color: var(--gold-400); }

.lead { font-size: 18px; color: var(--muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.2;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn .arr { transition: transform 0.2s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

.btn--primary {
  background: var(--blue-700);
  color: #fff;
  box-shadow: 0 6px 18px rgba(21, 82, 140, 0.32);
}
.btn--primary:hover { background: var(--blue-600); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 26px rgba(21, 82, 140, 0.4); }

.btn--gold {
  background: var(--gold-500);
  color: var(--navy-950);
  box-shadow: 0 6px 18px rgba(198, 162, 75, 0.35);
}
.btn--gold:hover { background: var(--gold-400); color: var(--navy-950); transform: translateY(-2px); }

.btn--ghost {
  background: transparent;
  color: var(--navy-900);
  border-color: rgba(15, 42, 77, 0.25);
}
.btn--ghost:hover { border-color: var(--blue-700); color: var(--blue-700); }

.btn--ghost-light {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(4px);
}
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }

.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--lg { padding: 17px 34px; font-size: 16.5px; }

/* ---------- Header ---------- */
.header .container {
  width: min(100% - 32px, 1360px);
}
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--navy-900);
  min-width: 0;
}
.brand:hover { color: var(--navy-900); }
.brand__logo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
  box-shadow: 0 2px 8px rgba(15, 42, 77, 0.2);
}
.brand__text { line-height: 1.15; min-width: 0; }
.brand__name {
  display: block;
  font-size: 16.5px;
  font-weight: 800;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand__sub {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.nav { margin-left: auto; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__link {
  display: block;
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  color: #33405a;
  white-space: nowrap;
}
.nav__link:hover { background: var(--blue-100); color: var(--blue-800); }
.nav__link.is-active { background: var(--navy-900); color: #fff; }

.header__cta { flex: 0 0 auto; display: none; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  padding: 0;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy-900);
  transition: transform 0.25s var(--ease), opacity 0.2s, top 0.25s var(--ease);
}
.nav-toggle span { top: 50%; transform: translateY(-50%); }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: var(--navy-950);
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 480px at 12% 20%, rgba(21, 82, 140, 0.55), transparent 60%),
    linear-gradient(100deg, rgba(10, 30, 56, 0.92) 0%, rgba(10, 30, 56, 0.72) 42%, rgba(10, 30, 56, 0.35) 75%, rgba(10, 30, 56, 0.2) 100%);
}
.hero__content {
  position: relative;
  padding: 96px 0 110px;
  max-width: 720px;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(6px);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 26px;
}
.hero__badge .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--gold-400);
  box-shadow: 0 0 0 4px rgba(216, 188, 114, 0.25);
}
.hero h1 {
  font-size: clamp(34px, 5.2vw, 58px);
  color: #fff;
  margin-bottom: 20px;
  font-weight: 800;
}
.hero h1 .accent { color: var(--gold-400); }
.hero__lead {
  font-size: clamp(16.5px, 1.6vw, 19.5px);
  color: #d4deee;
  max-width: 600px;
  margin-bottom: 34px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 54px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
}
.hero__scroll::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  width: 4px;
  height: 10px;
  margin-left: -2px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.75);
  animation: scrollDot 2s infinite var(--ease);
}
@keyframes scrollDot {
  0% { transform: translateY(0); opacity: 0; }
  30% { opacity: 1; }
  70% { transform: translateY(16px); opacity: 0; }
  100% { opacity: 0; }
}

/* ---------- Stats strip ---------- */
.stats {
  position: relative;
  z-index: 2;
  margin-top: -64px;
}
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid var(--line);
}
.stat {
  background: var(--paper);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat__value {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--blue-800);
  line-height: 1;
}
.stat__value small { font-size: 18px; font-weight: 700; color: var(--gold-600); margin-left: 2px; }
.stat__label { font-size: 14px; color: var(--muted); font-weight: 600; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); border-color: #d5d9e4; }
.card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--blue-100);
  color: var(--blue-800);
  margin-bottom: 20px;
  font-size: 24px;
}
.card__icon--gold { background: #f4ecd9; color: var(--gold-600); }
.card h3 { font-size: 19.5px; }
.card p { color: var(--muted); font-size: 15.5px; }

/* Feature split */
.split {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.split__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.split__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split__media .chip {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(6px);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy-900);
  box-shadow: var(--shadow-sm);
}
.split__media .chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-500); }

.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  position: relative;
  padding: 9px 0 9px 34px;
  font-size: 16px;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #f4ecd9;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23b18a34" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>');
  background-size: 13px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ---------- Page hero (inner pages) ---------- */
.pagehero {
  position: relative;
  color: #fff;
  background:
    radial-gradient(700px 340px at 85% -20%, rgba(30, 107, 176, 0.5), transparent 60%),
    radial-gradient(500px 300px at 8% 130%, rgba(198, 162, 75, 0.28), transparent 60%),
    linear-gradient(135deg, var(--navy-950), var(--navy-900) 55%, var(--blue-800));
  padding: 76px 0 84px;
  overflow: hidden;
}
.pagehero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.055) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  pointer-events: none;
}
.pagehero .container { position: relative; z-index: 1; }
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13.5px;
  font-weight: 600;
  color: #a9bbd6;
  margin-bottom: 18px;
}
.crumbs a { color: #a9bbd6; }
.crumbs a:hover { color: #fff; }
.crumbs .sep { opacity: 0.5; }
.pagehero h1 { font-size: clamp(32px, 4.4vw, 50px); color: #fff; margin-bottom: 14px; }
.pagehero .lead { color: #c4d1e5; max-width: 700px; }
.pagehero h1 .accent { color: var(--gold-400); }

/* ---------- Timeline ---------- */
.timeline { position: relative; margin-left: 8px; padding-left: 34px; }
.timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(var(--blue-600), var(--gold-500));
  border-radius: 2px;
}
.timeline__item { position: relative; padding-bottom: 34px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 7px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--paper);
  border: 3.5px solid var(--blue-700);
  box-shadow: 0 0 0 4px var(--cream);
}
.timeline__item--gold::before { border-color: var(--gold-500); }
.timeline__year {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--gold-600);
  margin-bottom: 6px;
}
.timeline__item h3 { font-size: 18.5px; margin-bottom: 6px; }
.timeline__item p { color: var(--muted); font-size: 15.5px; margin: 0; }

/* ---------- Faculty ---------- */
.faculty-card { text-align: center; padding: 26px 22px; }
.faculty-card__photo {
  width: 108px;
  height: 108px;
  margin: 0 auto 16px;
  border-radius: 50%;
  object-fit: cover;
  object-position: top center;
  border: 3px solid var(--blue-100);
  box-shadow: var(--shadow-sm);
}
.faculty-card__name { font-size: 17px; margin-bottom: 4px; }
.faculty-card__role { font-size: 13.5px; color: var(--muted); line-height: 1.5; min-height: 40px; }
.faculty-card__mail { font-size: 13px; font-weight: 600; color: var(--blue-700); word-break: break-all; }
.faculty-card .initials {
  width: 108px;
  height: 108px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 34px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(140deg, var(--blue-700), var(--blue-800));
  border: 3px solid var(--blue-100);
  box-shadow: var(--shadow-sm);
}

/* ---------- News ---------- */
.news-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}
.news-card__media {
  position: relative;
  overflow: hidden;
}
.news-card__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.news-card:hover .news-card__media img { transform: scale(1.05); }
.news-card__tag {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue-800);
}
.news-card__body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.news-card__date { font-size: 13px; color: var(--muted); font-weight: 700; margin-bottom: 8px; }
.news-card h3 { font-size: 18px; margin-bottom: 8px; }
.news-card p { font-size: 14.5px; color: var(--muted); flex: 1; }
.news-card__more {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 800;
  color: var(--blue-700);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.news-card__more .arr { transition: transform 0.2s var(--ease); }
.news-card__more:hover .arr { transform: translateX(4px); }

.news-placeholder {
  border: 2px dashed #cfd6e4;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.6);
  padding: 34px;
  text-align: center;
  color: var(--muted);
}
.news-placeholder .icon { font-size: 34px; margin-bottom: 10px; }
.news-placeholder strong { color: var(--navy-900); }

/* ---------- CTA banner ---------- */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background:
    radial-gradient(600px 300px at 90% -30%, rgba(30, 107, 176, 0.6), transparent 60%),
    radial-gradient(400px 260px at 5% 130%, rgba(198, 162, 75, 0.35), transparent 60%),
    linear-gradient(120deg, var(--navy-950), var(--navy-900) 60%, var(--blue-800));
  color: #fff;
  padding: 56px 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.cta h2 { color: #fff; font-size: clamp(24px, 3vw, 34px); margin-bottom: 8px; }
.cta p { color: #c4d1e5; margin: 0; max-width: 520px; }
.cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Info lists / tables ---------- */
.info-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}
.info-card h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
}
.info-card h3 .ico {
  width: 38px; height: 38px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: var(--blue-100);
  color: var(--blue-800);
  font-size: 18px;
  flex: 0 0 auto;
}
.info-card ul { list-style: none; padding: 0; margin: 0; }
.info-card li { padding: 7px 0 7px 24px; position: relative; font-size: 15.5px; }
.info-card li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 15px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold-500);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-sm);
}
.contact-item .ico {
  width: 48px; height: 48px;
  border-radius: 13px;
  display: grid; place-items: center;
  background: var(--blue-100);
  color: var(--blue-800);
  font-size: 22px;
  flex: 0 0 auto;
}
.contact-item h3 { font-size: 15px; margin-bottom: 4px; }
.contact-item p, .contact-item a { font-size: 15.5px; color: var(--muted); word-break: break-word; }
.contact-item a { color: var(--blue-700); font-weight: 600; }

.map-box {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--paper);
}
.map-box iframe { display: block; width: 100%; height: 420px; border: 0; }
.map-box__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  flex-wrap: wrap;
}
.map-box__bar p { margin: 0; font-weight: 600; color: var(--muted); }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-950);
  color: #b9c8dd;
  padding: 64px 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer .brand__name { color: #fff; }
.footer .brand__sub { color: #8fa3c2; }
.footer__about { margin-top: 18px; font-size: 14.5px; color: #8fa3c2; max-width: 320px; }
.footer h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin: 9px 0; font-size: 14.5px; }
.footer a { color: #b9c8dd; }
.footer a:hover { color: var(--gold-400); }
.footer .socials { display: flex; gap: 10px; margin-top: 18px; }
.footer .socials a {
  width: 38px; height: 38px;
  border-radius: 11px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 17px;
}
.footer .socials a:hover { background: var(--blue-700); color: #fff; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #7e93b5;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .hero__scroll::before { animation: none; }
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 12px; }
.mt-2 { margin-top: 24px; }
.mt-3 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.text-center { text-align: center; }
.hidden { display: none !important; }
.divider { height: 1px; background: var(--line); margin: 40px 0; border: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1359px) {
  .brand__sub { display: none; }
}

@media (max-width: 1080px) {
  .nav__list { gap: 0; }
  .nav__link { padding: 8px 10px; font-size: 13.8px; }
  .header__cta { display: none; }
}

@media (max-width: 940px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split__media { order: -1; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 64px 0; }
  .contact-grid { grid-template-columns: 1fr; }
  .cta { padding: 44px 32px; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 10px 24px 22px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.28s var(--ease), opacity 0.22s, visibility 0.22s;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav__link {
    padding: 13px 16px;
    font-size: 15.5px;
    border-radius: 12px;
  }
  .nav__link.is-active { background: var(--blue-100); color: var(--blue-800); }
  .nav__cta { padding: 13px 16px; }
  .nav__cta .btn { width: 100%; margin-top: 8px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .container { width: calc(100% - 36px); }
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .stats__grid { grid-template-columns: 1fr; }
  .hero__content { padding: 72px 0 96px; }
  .hero__actions .btn { width: 100%; }
  .brand__sub { display: none; }
  .brand__logo { width: 40px; height: 40px; }
  .brand__name { font-size: 14.5px; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 34px; }
  .card, .info-card, .contact-item { padding: 24px; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { justify-content: center; text-align: center; }
}
