:root {
  /* Warm palette only — no navy. Dark surfaces use espresso/coffee tones. */
  --espresso-900: #3d362c;
  --espresso-800: #d4c8bb;
  --espresso-700: #b8a896;
  --espresso-600: #9a8f7e;
  --espresso-500: #6f6557;
  --gold-500: #c9a14a;
  --gold-400: #d8b86a;
  --gold-300: #e3c478;
  --ink-900: #1f1a14;
  --ink-700: #3d362c;
  --ink-500: #6f6557;
  --ink-400: #9a8f7e;
  --beige-50: #f9f7f5;
  --beige-100: #f1ebe2;
  --beige-200: #e6ddd6;
  --beige-300: #d4c8bb;
  --beige-400: #b8a896;
  --line: #d4c8bb;
  --line-soft: #e6ddd6;
  --bg: #f9f7f5;
  --bg-soft: #e6ddd6;
  --bg-tint: #f1ebe2;
  --accent: #4a3c2e;
  --gold: var(--gold-500);
  --radius: 6px;
  --radius-lg: 10px;
  --shadow-sm: 0 1px 2px rgba(60,40,20,0.04), 0 1px 3px rgba(60,40,20,0.06);
  --shadow-md: 0 4px 12px rgba(60,40,20,0.06), 0 2px 4px rgba(60,40,20,0.04);
  --shadow-lg: 0 16px 40px rgba(60,40,20,0.10), 0 4px 12px rgba(60,40,20,0.05);
  --card: #fbf8f3;
  --content: 1280px;
  --header-h: 88px;
  --header-split-h: 124px;
  --topbar-h: 36px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", "Helvetica Neue", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-900);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6 {
  font-family: "Manrope", "Inter", sans-serif;
  font-weight: 700;
  color: var(--ink-900);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }

.container { max-width: var(--content); margin: 0 auto; padding: 0 32px; }
@media (max-width: 720px) { .container { padding: 0 20px; } }

/* ─── Pure-CSS toggle plumbing (search modal + chatbot) ─── */
.vh-toggle { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ─── Skip link ─── */
.skip { position: absolute; left: -9999px; top: 0; background: var(--espresso-800); color: #fff; padding: 12px 20px; z-index: 1000; }
.skip:focus { left: 8px; top: 8px; }

/* ─── Top utility bar ─── */
.topbar {
  background: var(--beige-200);
  color: var(--espresso-900);
  font-size: 13px;
  height: var(--topbar-h);
  border-bottom: 1px solid rgba(60,40,20,0.08);
}
.topbar-inner {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.topbar-left { display: flex; align-items: center; gap: 20px; font-size: 12.5px; }
.topbar-left .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); display: inline-block; margin-right: 8px; }
.topbar-right { display: flex; align-items: center; gap: 4px; }
.topbar-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px; font-size: 12.5px; color: var(--espresso-900);
  border-radius: 4px; transition: background 0.15s;
}
.topbar-btn:hover { background: rgba(60,40,20,0.10); color: var(--espresso-900); }
.topbar-btn.active { color: var(--gold-400); }
.topbar-btn svg { width: 14px; height: 14px; }
.topbar-divider { width: 1px; height: 16px; background: rgba(60,40,20,0.15); margin: 0 4px; }

/* ─── Header ─── */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s, background 0.2s;
}
.header.scrolled { box-shadow: var(--shadow-md); }
.header-inner {
  max-width: var(--content); margin: 0 auto; padding: 0 32px;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
body.has-split-header { --header-h: var(--header-split-h); }
.header-split .header-inner {
  height: auto;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding-bottom: 0;
}
.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-height: 72px;
  padding: 8px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.brand-emblem {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
}
.brand-emblem img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.brand-text {
  font-size: 14px;
  font-family: "Manrope", "Inter", sans-serif;
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.35;
  letter-spacing: -0.01em;
  max-width: 230px;
  min-width: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  min-width: 0;
  justify-content: center;
}
.header-split .nav {
  flex: none;
  width: 100%;
  justify-content: center;
  padding: 2px 0 10px;
  border-top: 1px solid var(--line-soft);
}
.nav-item { position: relative; flex-shrink: 0; }
.nav-link {
  display: inline-flex; align-items: center; gap: 3px;
  padding: 9px 10px;
  font-size: 13px; font-weight: 500;
  color: var(--ink-700);
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--espresso-800); background: var(--bg-soft); }
.nav-link svg { width: 12px; height: 12px; opacity: 0.6; transition: transform 0.2s; }
.nav-item:hover .nav-link svg { transform: rotate(180deg); }
.nav-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0;
  min-width: 280px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  opacity: 0; visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.18s, transform 0.18s, visibility 0.18s;
  z-index: 50;
}
.nav-item:hover .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown a {
  display: block; padding: 10px 12px;
  font-size: 14px; color: var(--ink-700);
  border-radius: 6px;
  transition: background 0.12s, color 0.12s;
}
.nav-dropdown a:hover { background: var(--bg-soft); color: var(--espresso-800); }
.nav-dropdown a .small { display: block; font-size: 12px; color: var(--ink-500); margin-top: 2px; font-weight: 400; }
.nav-dropdown a strong { font-weight: 600; }

.header-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: linear-gradient(180deg, #fff 0%, var(--beige-100) 100%);
  border: 1px solid var(--gold-400);
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, color 0.15s;
}
.nav-cta svg { width: 16px; height: 16px; color: var(--gold-500); flex-shrink: 0; }
.nav-cta:hover {
  background: var(--beige-100);
  border-color: var(--gold-500);
  color: var(--accent);
  box-shadow: 0 2px 8px rgba(201, 161, 74, 0.18);
}
.icon-btn {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 6px; color: var(--ink-700);
  transition: background 0.15s, color 0.15s;
}
.icon-btn:hover { background: var(--bg-soft); color: var(--espresso-800); }
.icon-btn svg { width: 18px; height: 18px; }
.search-btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 12px 0 12px;
  font-size: 13px; color: var(--ink-500);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: border-color 0.15s, background 0.15s;
  min-width: 0;
  max-width: 280px;
  width: 280px;
  flex: 0 1 280px;
  cursor: pointer;
}
.search-btn span:not(.kbd) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-btn:hover { border-color: var(--ink-400); }
.search-btn .kbd {
  margin-left: auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; padding: 2px 6px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink-500);
}
.search-btn svg { width: 14px; height: 14px; }

.menu-toggle { display: none; }

/* ─── Hero ─── */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(201,161,74,0.22), transparent 60%),
    radial-gradient(800px 400px at 0% 100%, rgba(184,168,150,0.4), transparent 60%),
    linear-gradient(165deg, var(--beige-100) 0%, var(--beige-200) 50%, var(--beige-300) 100%);
  color: var(--ink-900);
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(60,40,20,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(60,40,20,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  max-width: var(--content);
  margin: 0 auto;
  padding: 80px 32px 100px;
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 72px;
  align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-400);
  background: rgba(201,161,74,0.08);
  border: 1px solid rgba(201,161,74,0.25);
  border-radius: 999px;
}
.eyebrow .pulse {
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold-400);
  box-shadow: 0 0 0 0 rgba(201,161,74,0.6);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(201,161,74,0.6); }
  70% { box-shadow: 0 0 0 8px rgba(201,161,74,0); }
  100% { box-shadow: 0 0 0 0 rgba(201,161,74,0); }
}
.hero h1 {
  margin-top: 24px;
  font-size: 52px;
  line-height: 1.08;
  color: var(--espresso-900);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hero p.lead {
  margin-top: 22px;
  font-size: 18px;
  color: var(--ink-700);
  max-width: 560px;
  line-height: 1.6;
}
.hero-actions { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 50px; padding: 0 22px;
  font-size: 14.5px; font-weight: 600;
  border-radius: 6px;
  transition: transform 0.15s, background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold-500); color: var(--espresso-900);
  border: 1px solid var(--gold-500);
}
.btn-primary:hover { background: var(--gold-400); border-color: var(--gold-400); transform: translateY(-1px); }
.btn-secondary {
  background: rgba(60,40,20,0.05); color: var(--espresso-900);
  border: 1px solid rgba(60,40,20,0.18);
  backdrop-filter: blur(6px);
}
.btn-secondary:hover { background: rgba(60,40,20,0.12); border-color: var(--ink-400); }
.btn svg { width: 16px; height: 16px; }

.hero-meta {
  display: flex; gap: 40px; margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid rgba(60,40,20,0.12);
}
.hero-meta div { font-size: 13px; color: var(--ink-500); }
.hero-meta div b { display: block; font-size: 24px; font-family: "Manrope"; font-weight: 700; color: var(--espresso-900); margin-bottom: 2px; }

/* hero card / emblem visual */
.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1.05;
  display: flex; align-items: center; justify-content: center;
}
.hero-visual--diploma-photo {
  aspect-ratio: 1024 / 682;
  width: 100%;
  max-width: none;
}
.hero-inner--diploma-photo {
  grid-template-columns: 0.95fr 1.4fr;
  gap: 56px;
}
/* legacy :has() selectors — eyni qaydalar */
.hero-visual:has(.hero-card--diplomas-photo) {
  aspect-ratio: 1024 / 682;
}
.hero-inner:has(.hero-card--diplomas-photo) {
  grid-template-columns: 0.95fr 1.4fr;
  gap: 56px;
}
.hero-card {
  position: relative;
  width: 100%; height: 100%;
  background: linear-gradient(180deg, rgba(60,40,20,0.08), rgba(255,255,255,0.02));
  border: 1px solid rgba(60,40,20,0.12);
  border-radius: 12px;
  backdrop-filter: blur(12px);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}
.hero-card::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 50% 35%, rgba(201,161,74,0.18), transparent 55%);
}
.hero-card .corner {
  position: absolute;
  width: 24px; height: 24px;
  border-color: var(--gold-400);
  border-style: solid;
}
.hero-card .corner.tl { top: 14px; left: 14px; border-width: 1px 0 0 1px; }
.hero-card .corner.tr { top: 14px; right: 14px; border-width: 1px 1px 0 0; }
.hero-card .corner.bl { bottom: 14px; left: 14px; border-width: 0 0 1px 1px; }
.hero-card .corner.br { bottom: 14px; right: 14px; border-width: 0 1px 1px 0; }
.hero-emblem {
  position: relative;
  width: 56%;
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  z-index: 1;
}
.hero-card-label {
  position: absolute;
  bottom: 28px; left: 0; right: 0;
  text-align: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--ink-500);
  text-transform: uppercase;
}
.hero-card-meta {
  position: absolute;
  top: 28px; left: 0; right: 0;
  display: flex; justify-content: space-between;
  padding: 0 32px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--ink-400);
  text-transform: uppercase;
}
.hero-card-rings {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.hero-card-rings span {
  position: absolute;
  border: 1px solid rgba(201,161,74,0.14);
  border-radius: 50%;
}
.hero-card-rings span:nth-child(1) { width: 70%; height: 70%; }
.hero-card-rings span:nth-child(2) { width: 86%; height: 86%; border-color: rgba(201,161,74,0.08); }
.hero-card-rings span:nth-child(3) { width: 100%; height: 100%; border-color: rgba(201,161,74,0.05); }

.hero-card--diplomas {
  background:
    radial-gradient(ellipse at 78% -8%, rgba(201,161,74,0.14), transparent 58%),
    radial-gradient(ellipse at 12% 108%, rgba(184,168,150,0.20), transparent 55%),
    linear-gradient(165deg, var(--card) 0%, var(--beige-100) 50%, var(--beige-200) 100%);
  border-color: rgba(60,40,20,0.12);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.hero-card--diplomas::before {
  background: radial-gradient(circle at 50% 38%, rgba(201,161,74,0.10), transparent 56%);
}
.hero-diplomas-scene {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 380px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 30px 18px 64px;
  perspective: 1700px;
  perspective-origin: 50% 38%;
}
.hero-diplomas-photo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  object-fit: contain;
}

/* Photo variant — full-bleed studio image inside hero card */
.hero-card--diplomas-photo {
  background: var(--beige-100);
  border-color: rgba(60,40,20,0.10);
  display: flex;
  flex-direction: column;
}
.hero-card--diplomas-photo::before {
  display: none;
}
.hero-card--diplomas-photo .hero-diplomas-scene {
  position: relative;
  min-height: 0;
  padding: 0;
  margin: 0;
  perspective: none;
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  flex: 1 1 auto;
}
.hero-card--diplomas-photo .hero-diplomas-scene::after {
  display: none;
}
.hero-card--diplomas-photo .hero-diplomas-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 0;
  object-fit: cover;
  object-position: center 42%;
  display: block;
}
.hero-card--diplomas-photo .corner {
  z-index: 3;
}
/* subtle depth under diplomas */
.hero-diplomas-scene::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 14%;
  height: 20%;
  border-radius: 50%;
  background: radial-gradient(ellipse at 50% 50%, rgba(60,40,20,0.07) 0%, transparent 72%);
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
}
.diploma {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 0 0 auto;
  width: 122px;
  aspect-ratio: 5 / 7;
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), filter 0.45s ease;
  animation: diplomaFloat 7s ease-in-out infinite;
}
/* contact shadow + faint reflection under each book */
.diploma::after {
  content: "";
  position: absolute;
  left: 4%;
  right: 0;
  bottom: -16px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(40,24,8,0.42) 0%, transparent 70%);
  filter: blur(5px);
  z-index: -1;
}
/* outer diplomas larger, inner smaller, gentle inward fan + middle gap */
.diploma:nth-child(1),
.diploma:nth-child(4) { width: 158px; }
.diploma:nth-child(2),
.diploma:nth-child(3) { width: 120px; }
.diploma:nth-child(1) { transform: rotateY(16deg) rotate(-3deg) translateY(-6px); z-index: 1; animation-delay: 0s; }
.diploma:nth-child(2) { transform: rotateY(9deg) rotate(-1deg) translateY(30px); z-index: 3; margin-left: -34px; animation-delay: 0.9s; }
.diploma:nth-child(3) { transform: rotateY(-9deg) rotate(1deg) translateY(30px); z-index: 3; margin-left: 26px; animation-delay: 1.4s; }
.diploma:nth-child(4) { transform: rotateY(-16deg) rotate(3deg) translateY(-6px); z-index: 1; margin-left: -34px; animation-delay: 0.4s; }
.diploma:nth-child(1) { transform-origin: right center; }
.diploma:nth-child(4) { transform-origin: left center; }
.diploma:nth-child(1) .diploma-title,
.diploma:nth-child(4) .diploma-title { font-size: 17px; margin-bottom: 34px; }
.diploma:nth-child(2) .diploma-title,
.diploma:nth-child(3) .diploma-title { font-size: 12.5px; }
@keyframes diplomaFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -7px; }
}
.diploma-spine {
  width: 11px;
  border-radius: 6px 2px 2px 6px;
  box-shadow: inset -5px 0 9px rgba(0,0,0,0.45), inset 2px 0 2px rgba(255,255,255,0.12);
}
.diploma-cover {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-align: center;
  padding: 13px 8px 15px;
  border-radius: 2px 11px 11px 2px;
  overflow: hidden;
  border: 1px solid rgba(214,176,98,0.38);
  /* page-block thickness on the right + base shadow */
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.12),
    inset -8px 0 18px rgba(0,0,0,0.26),
    2px 2px 0 rgba(245,232,200,0.28),
    3px 3px 0 rgba(228,210,170,0.22),
    5px 6px 14px rgba(40,24,8,0.28);
}
.diploma-cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, transparent 0%, rgba(255,255,255,0.16) 18%, transparent 34%),
    radial-gradient(circle at 26% 8%, rgba(255,255,255,0.24), transparent 42%),
    radial-gradient(circle at 92% 96%, rgba(0,0,0,0.28), transparent 50%),
    repeating-linear-gradient(118deg, rgba(255,255,255,0.035) 0 2px, rgba(0,0,0,0.05) 2px 4px);
  pointer-events: none;
}
.diploma-cover::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(231,200,124,0.38);
  border-radius: 4px;
  box-shadow:
    inset 0 0 0 1px rgba(255,240,200,0.08),
    inset 0 0 10px rgba(0,0,0,0.12);
  pointer-events: none;
}
.diploma-gerb {
  position: relative;
  z-index: 1;
  width: auto;
  height: 29%;
  margin-top: 4px;
  filter: drop-shadow(0 3px 6px rgba(0,0,0,0.5)) drop-shadow(0 0 5px rgba(231,200,124,0.35));
}
.diploma-sub {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  padding: 0 2px;
  font-family: "Times New Roman", Times, Georgia, serif;
  font-size: 6.5px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f0dca0;
  text-shadow: 0 1px 0 rgba(0,0,0,0.55);
}
.diploma:nth-child(1) .diploma-sub,
.diploma:nth-child(4) .diploma-sub { font-size: 7.5px; }
.diploma-kind {
  position: relative;
  z-index: 1;
  margin-top: 2px;
  padding: 0 2px;
  font-family: "Times New Roman", Times, Georgia, serif;
  font-size: 7px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #f4e0a6;
  text-shadow: 0 1px 0 rgba(0,0,0,0.55);
}
.diploma:nth-child(1) .diploma-kind,
.diploma:nth-child(4) .diploma-kind { font-size: 8px; }
.diploma-title {
  position: relative;
  z-index: 1;
  margin: auto 0 6px;
  padding: 0 2px;
  font-family: "Times New Roman", Times, Georgia, serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: linear-gradient(180deg, #fff3c8 0%, #eccd7c 48%, #c79a44 78%, #9c7228 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 1px 2px rgba(0,0,0,0.45);
  filter: drop-shadow(0 1px 0 rgba(90,68,20,0.65));
}
.diploma--maroon .diploma-spine {
  background: linear-gradient(180deg, #7a141f 0%, #8d1622 48%, #560d15 100%);
}
.diploma--maroon .diploma-cover {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.14) 0%, transparent 36%),
    linear-gradient(160deg, #ac2734 0%, #82141f 42%, #5d0f17 78%, #470b12 100%);
}
.diploma--navy .diploma-spine {
  background: linear-gradient(180deg, #11263f 0%, #1a3a60 50%, #0a1830 100%);
}
.diploma--navy .diploma-cover {
  background:
    linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 36%),
    linear-gradient(160deg, #2b4a76 0%, #1b3a60 44%, #102444 80%, #0a1830 100%);
}
.hero-card--diplomas .hero-card-label {
  z-index: 2;
  bottom: 18px;
  color: var(--ink-500);
  letter-spacing: 0.04em;
}
.diploma:hover {
  z-index: 6 !important;
  animation-play-state: paused;
  filter: drop-shadow(0 26px 34px rgba(40,24,8,0.45));
}
@media (hover: hover) {
  .diploma:nth-child(1):hover { transform: rotateY(8deg) rotate(-2deg) translateY(-18px) scale(1.05) !important; }
  .diploma:nth-child(2):hover { transform: rotateY(5deg) rotate(-1deg) translateY(14px) scale(1.06) !important; }
  .diploma:nth-child(3):hover { transform: rotateY(-5deg) rotate(1deg) translateY(14px) scale(1.06) !important; }
  .diploma:nth-child(4):hover { transform: rotateY(-8deg) rotate(2deg) translateY(-18px) scale(1.05) !important; }
}
@media (prefers-reduced-motion: reduce) {
  .diploma { animation: none; }
}

/* news ticker */
.ticker {
  position: relative;
  background: var(--beige-300);
  border-top: 1px solid rgba(60,40,20,0.08);
  color: var(--espresso-900);
  overflow: hidden;
}
.ticker-inner {
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 32px;
  height: 52px;
  display: flex; align-items: center; gap: 20px;
}
.ticker-tag {
  flex-shrink: 0;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--espresso-900);
  background: var(--gold-400);
  border-radius: 4px;
}
.ticker-tag .live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--espresso-900);
  animation: blink 1.4s infinite;
}
@keyframes blink { 50% { opacity: 0.3; } }
.ticker-track {
  flex: 1;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
}
.ticker-content {
  display: flex; gap: 72px;
  white-space: nowrap;
  animation: scroll-left 60s linear infinite;
  font-size: 14px;
}
.ticker-content span { display: inline-flex; align-items: center; gap: 12px; }
.ticker-content span::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold-400);
}
@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── Section utilities ─── */
.section { padding: 96px 0; }
.section-tight { padding: 72px 0; }
.section-head {
  display: flex; align-items: end; justify-content: space-between;
  gap: 32px; margin-bottom: 48px;
}
.section-head .left { max-width: 720px; }
.section-head .eyebrow-light {
  display: inline-block;
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: 36px;
  line-height: 1.15;
  color: var(--ink-900);
}
.section-head p { color: var(--ink-500); margin-top: 12px; font-size: 16px; max-width: 600px; }
.section-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600;
  color: var(--accent);
  flex-shrink: 0;
}
.section-link:hover { color: var(--espresso-800); }
.section-link svg { width: 14px; height: 14px; transition: transform 0.2s; }
.section-link:hover svg { transform: translateX(3px); }

/* ─── Services grid ─── */
.services {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.service-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 28px 28px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  overflow: hidden;
  cursor: pointer;
}
.service-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--accent);
  transform: scaleY(0); transform-origin: top;
  transition: transform 0.25s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--ink-400); }
.service-card:hover::before { transform: scaleY(1); }
.service-num {
  position: absolute;
  top: 22px; right: 24px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--ink-400);
  letter-spacing: 0.1em;
}
.service-icon {
  width: 48px; height: 48px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--accent);
  background: var(--beige-200);
  border: 1px solid var(--beige-300);
  border-radius: 8px;
  margin-bottom: 24px;
}
.service-icon svg { width: 24px; height: 24px; stroke-width: 1.5; }
.service-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 10px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.service-title--long {
  font-size: 11.5px;
  line-height: 1.45;
  letter-spacing: 0.02em;
}
.service-card p {
  color: var(--ink-500);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 24px;
  min-height: 66px;
}
.service-meta {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--ink-500);
}
.service-meta .more {
  color: var(--accent); font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px;
}
.service-meta .more svg { width: 13px; height: 13px; transition: transform 0.2s; }
.service-card:hover .service-meta .more svg { transform: translateX(3px); }

/* ─── News ─── */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.news-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.news-thumb {
  aspect-ratio: 16/10;
  position: relative;
  background: var(--bg-soft);
  overflow: hidden;
}
.news-thumb svg,
.news-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-thumb .cat {
  position: absolute; top: 14px; left: 14px;
  padding: 5px 10px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  background: rgba(255,255,255,0.95);
  color: var(--espresso-800);
  border-radius: 4px;
  backdrop-filter: blur(4px);
}
.news-body { padding: 22px 24px 24px; flex: 1; display: flex; flex-direction: column; }
.news-date {
  display: flex; align-items: center; gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--ink-500);
  margin-bottom: 12px;
}
.news-date::before { content: ""; width: 16px; height: 1px; background: var(--ink-400); }
.news-card h3 {
  font-size: 17px; line-height: 1.35;
  margin-bottom: 10px;
  text-wrap: pretty;
}
.news-card p {
  color: var(--ink-500); font-size: 14px; line-height: 1.55;
  flex: 1;
}
.news-card .read {
  margin-top: 16px;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: var(--accent);
}
.news-card .read svg { width: 13px; height: 13px; transition: transform 0.2s; }
.news-card:hover .read svg { transform: translateX(3px); }

/* ─── Stats ─── */
.stats {
  background: var(--beige-200);
  color: var(--espresso-900);
  position: relative;
  overflow: hidden;
}
.stats::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(800px 400px at 90% 0%, rgba(201,161,74,0.15), transparent 60%),
    radial-gradient(600px 300px at 0% 100%, rgba(75,55,38,0.3), transparent 60%);
  pointer-events: none;
}
.stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat {
  padding: 28px 32px;
  border-right: 1px solid rgba(60,40,20,0.10);
}
.stat:last-child { border-right: 0; }
.stat-num {
  font-family: "Manrope";
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  color: var(--gold-400);
  letter-spacing: -0.03em;
  display: flex; align-items: baseline; gap: 4px;
}
.stat-num .suffix { font-size: 32px; color: var(--ink-500); }
.stat-label {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ink-700);
  line-height: 1.5;
  max-width: 220px;
}
.stat-foot {
  margin-top: 16px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-400);
}

/* ─── Defenses + Announcements ─── */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line-soft);
}
.panel-head h3 {
  font-size: 18px;
  display: flex; align-items: center; gap: 10px;
}
.panel-head h3 svg { width: 18px; height: 18px; color: var(--accent); }
.panel-head .count {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px; color: var(--ink-500);
  padding: 4px 10px;
  background: var(--bg-soft);
  border-radius: 4px;
}
.panel-body { padding: 8px; }

.defense-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
}
.defense-item:hover { background: var(--bg-soft); }
.defense-date {
  text-align: center;
  border-right: 1px solid var(--line);
  padding-right: 12px;
}
.defense-date .day { font-family: "Manrope"; font-size: 24px; font-weight: 700; color: var(--espresso-800); line-height: 1; }
.defense-date .mon { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-500); margin-top: 4px; font-weight: 600; }
.defense-info .name { font-size: 15px; font-weight: 600; color: var(--ink-900); margin-bottom: 4px; }
.defense-info .spec { font-size: 13px; color: var(--ink-500); }
.defense-info .spec b { color: var(--ink-700); font-weight: 500; }
.defense-time {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px; color: var(--ink-500);
  padding: 4px 10px;
  background: var(--bg-soft);
  border-radius: 4px;
  border: 1px solid var(--line-soft);
}

.ann-item {
  padding: 16px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: start;
}
.ann-item:hover { background: var(--bg-soft); }
.ann-tag {
  flex-shrink: 0;
  padding: 5px 9px;
  font-size: 10.5px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: 4px;
  margin-top: 2px;
}
.ann-tag.t-news { background: rgba(40,28,18,0.10); color: var(--espresso-800); border: 1px solid rgba(40,28,18,0.15); }
.ann-tag.t-doc { background: rgba(201,161,74,0.22); color: #6e5310; border: 1px solid rgba(201,161,74,0.4); }
.ann-tag.t-event { background: rgba(120,70,30,0.12); color: #6e3a14; border: 1px solid rgba(120,70,30,0.25); }
.ann-info .title { font-size: 14.5px; font-weight: 500; color: var(--ink-900); line-height: 1.45; margin-bottom: 4px; }
.ann-info .meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px; color: var(--ink-500);
  letter-spacing: 0.04em;
}

/* ─── Partners ─── */
.partners {
  border-top: 1px solid var(--line);
  padding: 56px 0;
  background: var(--bg);
}
.partners-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 28px;
}
.partners-head h4 {
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--ink-500);
}
.partners-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1px;
  background: var(--beige-300);
  border: 1px solid var(--beige-300);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.partner {
  flex: 1 1 calc(100% / 7 - 1px);
  max-width: calc(100% / 7);
  min-width: 120px;
  background: var(--card);
  height: 78px;
  display: flex;
  align-items: center; justify-content: center;
  padding: 10px 14px;
  transition: background 0.18s;
  cursor: pointer;
  text-align: center;
}
.partner:hover { background: var(--bg-soft); }
.partner-img {
  height: 56px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
}
.partner-img--wide {
  height: 68px;
  max-width: 95%;
}

/* ─── Footer ─── */
.footer {
  background: var(--beige-200);
  color: var(--ink-700);
  position: relative;
}
.footer-top {
  padding: 72px 0 56px;
  border-bottom: 1px solid rgba(60,40,20,0.10);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.4fr;
  gap: 56px;
}
.footer-brand .brand-emblem-f { width: 56px; height: 56px; margin-bottom: 18px; }
.footer-brand .brand-emblem-f img { width: 100%; height: 100%; object-fit: contain; display: block; }
.footer-brand h4 { color: var(--espresso-900); font-size: 16px; margin-bottom: 10px; line-height: 1.3; }
.footer-brand p { font-size: 13.5px; color: var(--ink-500); line-height: 1.6; max-width: 320px; }
.socials { display: flex; gap: 8px; margin-top: 22px; }
.social {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-700);
  background: rgba(60,40,20,0.05);
  border: 1px solid rgba(60,40,20,0.10);
  border-radius: 6px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.social:hover { background: var(--gold-500); color: var(--espresso-900); border-color: var(--gold-500); }
.social svg { width: 16px; height: 16px; }

.footer-col h5 {
  color: var(--espresso-900);
  font-size: 13px; font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 22px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 11px; }
.footer-col a {
  color: var(--ink-700);
  font-size: 14px;
  transition: color 0.15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.footer-col a:hover { color: var(--gold-400); }
.footer-col a svg { width: 11px; height: 11px; opacity: 0.5; }

.contact-list { font-size: 14px; }
.contact-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 14px;
  color: var(--ink-700);
}
.contact-row svg { width: 16px; height: 16px; color: var(--gold-400); margin-top: 2px; }
.contact-row b { display: block; color: var(--espresso-900); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 2px; }
.contact-map-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.contact-map-link:hover { color: var(--gold-400); }

.footer-bottom {
  padding: 22px 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
  font-size: 13px; color: var(--ink-500);
}
.footer-bottom-links { display: flex; gap: 22px; }
.footer-bottom-links a:hover { color: var(--gold-400); }

/* ─── Search modal (pure CSS toggle) ─── */
.search-modal {
  position: fixed; inset: 0;
  background: rgba(28,22,17,0.55);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: none;
  align-items: flex-start; justify-content: center;
  padding-top: 12vh;
}
#search-toggle:checked ~ .search-modal { display: flex; }
.search-backdrop { position: absolute; inset: 0; cursor: default; }
.search-box {
  position: relative; z-index: 1;
  width: 100%; max-width: 640px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.search-input-wrap {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line-soft);
}
.search-input-wrap svg { width: 20px; height: 20px; color: var(--ink-500); }
.search-input {
  flex: 1; font-size: 16px;
  border: none; outline: none; background: transparent;
  font-family: inherit;
  color: var(--ink-900);
}
.search-esc {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; padding: 3px 8px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink-500);
  cursor: pointer;
}
.search-results { max-height: 50vh; overflow-y: auto; padding: 8px; }
.search-section { padding: 8px 12px; }
.search-section h6 {
  font-size: 11px; font-weight: 600;
  color: var(--ink-500);
  text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 6px;
}
.search-result {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 12px; align-items: center;
  padding: 10px 12px;
  border-radius: 6px;
  cursor: pointer;
}
.search-result:hover { background: var(--bg-soft); }
.search-result-icon {
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(75,55,38,0.08);
  color: var(--accent);
  border-radius: 6px;
}
.search-result-icon svg { width: 14px; height: 14px; }
.search-result-title { font-size: 14px; font-weight: 500; color: var(--ink-900); }
.search-result-sub { font-size: 12px; color: var(--ink-500); margin-top: 1px; }
.search-result-arrow svg { width: 14px; height: 14px; color: var(--ink-400); }
.search-foot {
  padding: 12px 22px;
  border-top: 1px solid var(--line-soft);
  background: var(--bg-soft);
  display: flex; gap: 18px;
  font-size: 11.5px; color: var(--ink-500);
}
.search-foot kbd {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; padding: 2px 6px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 3px;
  margin-right: 4px;
}

/* ─── AI Chatbot (pure CSS toggle) ─── */
.chatbot-fab {
  position: fixed; right: 24px; bottom: 24px;
  z-index: 150;
  display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 22px 0 18px;
  background: var(--beige-400);
  color: var(--espresso-900);
  border-radius: 999px;
  box-shadow: 0 12px 32px rgba(40,28,18,0.32), 0 4px 10px rgba(40,28,18,0.18);
  transition: transform 0.18s, background 0.18s, box-shadow 0.18s;
  font-family: inherit;
  cursor: pointer;
}
.chatbot-fab:hover { transform: translateY(-2px); background: var(--espresso-700); box-shadow: 0 18px 40px rgba(40,28,18,0.4); }
.chatbot-fab .fab-close { display: none; }
#chat-toggle:checked ~ .chatbot-fab {
  width: 48px; height: 48px; padding: 0;
  border-radius: 50%;
  justify-content: center;
  background: var(--ink-900);
  color: #fff;
}
#chat-toggle:checked ~ .chatbot-fab .chatbot-fab-label,
#chat-toggle:checked ~ .chatbot-fab .chatbot-fab-badge,
#chat-toggle:checked ~ .chatbot-fab .fab-open { display: none; }
#chat-toggle:checked ~ .chatbot-fab .fab-close { display: inline-flex; }
.chatbot-fab-label { font-size: 14px; font-weight: 600; letter-spacing: 0.01em; }
.chatbot-fab-badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 20px; height: 20px;
  padding: 0 6px;
  background: var(--gold-500);
  color: var(--espresso-900);
  border-radius: 999px;
  font-size: 11px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  border: 2px solid var(--bg);
}
.chatbot-panel {
  position: fixed; right: 24px; bottom: 92px;
  z-index: 150;
  width: 380px; max-width: calc(100vw - 32px);
  height: 560px; max-height: calc(100vh - 120px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(60,40,20,0.22), 0 8px 18px rgba(60,40,20,0.10);
  display: flex; flex-direction: column;
  overflow: hidden;
  opacity: 0; transform: translateY(8px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.22s, transform 0.22s;
}
#chat-toggle:checked ~ .chatbot-panel { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.chatbot-head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(180deg, var(--beige-300), var(--beige-400));
  color: var(--espresso-900);
  border-bottom: 1px solid rgba(60,40,20,0.10);
}
.chatbot-head-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(201,161,74,0.18);
  color: var(--gold-400);
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid rgba(201,161,74,0.4);
  flex-shrink: 0;
}
.chatbot-head-info { flex: 1; line-height: 1.2; }
.chatbot-head-title { font-family: "Manrope"; font-weight: 700; font-size: 15px; }
.chatbot-head-sub {
  font-size: 11.5px; color: var(--ink-700);
  margin-top: 3px;
  display: flex; align-items: center; gap: 6px;
}
.chatbot-online {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74,222,128,0.2);
}
.chatbot-close {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-700);
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  cursor: pointer;
}
.chatbot-close:hover { background: rgba(60,40,20,0.12); color: var(--espresso-900); }
.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px;
  display: flex; flex-direction: column; gap: 14px;
  background: var(--bg);
}
.chatbot-msg { display: flex; gap: 8px; max-width: 88%; }
.chatbot-msg.user { align-self: flex-end; flex-direction: row-reverse; }
.chatbot-msg-avatar {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--espresso-800);
  color: var(--gold-400);
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 4px;
}
.chatbot-bubble {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-900);
  background: var(--card);
  border: 1px solid var(--line-soft);
  box-shadow: 0 1px 2px rgba(60,40,20,0.04);
  white-space: pre-wrap;
}
.chatbot-msg.user .chatbot-bubble {
  background: var(--beige-300); color: var(--espresso-900);
  border-color: var(--beige-400);
  border-bottom-right-radius: 4px;
}
.chatbot-msg.assistant .chatbot-bubble {
  border-bottom-left-radius: 4px;
}
.chatbot-suggestions {
  margin-top: 4px;
  display: flex; flex-direction: column; gap: 6px;
}
.chatbot-sugg-label {
  font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--ink-500);
  margin: 6px 0 4px;
}
.chatbot-sugg {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  text-align: left;
  font-size: 13px;
  color: var(--ink-700);
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.12s;
  font-family: inherit;
}
.chatbot-sugg:hover {
  background: var(--beige-100);
  border-color: var(--accent);
  color: var(--espresso-800);
  transform: translateX(2px);
}
.chatbot-sugg svg { color: var(--accent); flex-shrink: 0; }
.chatbot-form {
  display: flex; gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--line-soft);
  background: var(--card);
}
.chatbot-input {
  flex: 1;
  height: 40px; padding: 0 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: 13.5px;
  color: var(--ink-900);
  outline: none;
  transition: border-color 0.15s;
}
.chatbot-input:focus { border-color: var(--accent); }
.chatbot-send {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--espresso-800);
  color: var(--gold-400);
  border-radius: 8px;
  transition: background 0.15s, opacity 0.15s;
  flex-shrink: 0;
}
.chatbot-send:hover { background: var(--espresso-700); }
.chatbot-foot {
  padding: 10px 16px;
  background: var(--card);
  border-top: 1px solid var(--line-soft);
  font-size: 11px; color: var(--ink-500);
  text-align: center;
  line-height: 1.5;
}
.chatbot-foot a { color: var(--accent); font-weight: 500; }
.chatbot-foot a:hover { text-decoration: underline; }

/* ─── Motion & micro-interactions ─── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes ring-breathe {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.03); opacity: 0.7; }
}
@keyframes grid-drift {
  0% { background-position: 0 0; }
  100% { background-position: 64px 64px; }
}

.hero::before {
  animation: grid-drift 40s linear infinite;
}
.hero-content > * {
  animation: fade-up 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-content > *:nth-child(1) { animation-delay: 0.05s; }
.hero-content > *:nth-child(2) { animation-delay: 0.12s; }
.hero-content > *:nth-child(3) { animation-delay: 0.19s; }
.hero-content > *:nth-child(4) { animation-delay: 0.26s; }
.hero-content > *:nth-child(5) { animation-delay: 0.33s; }
.hero-visual {
  animation: fade-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
}
.hero-card {
  animation: hero-float 7s ease-in-out infinite;
}
.hero-card-rings span:nth-child(1) { animation: ring-breathe 5s ease-in-out infinite; }
.hero-card-rings span:nth-child(2) { animation: ring-breathe 5s ease-in-out 0.6s infinite; }
.hero-card-rings span:nth-child(3) { animation: ring-breathe 5s ease-in-out 1.2s infinite; }

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.section-head.reveal { display: flex; width: 100%; }
.partners-head.reveal { display: flex; width: 100%; }

.eyebrow-light {
  position: relative;
}
.eyebrow-light::after {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background: var(--gold-400);
  margin-top: 8px;
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.15s;
}
.reveal.is-visible .eyebrow-light::after {
  transform: scaleX(1);
}

.nav-link {
  position: relative;
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 7px;
  left: 10px;
  right: 10px;
  height: 1.5px;
  background: var(--gold-400);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.nav-link:hover::after { transform: scaleX(1); }

.header.scrolled {
  backdrop-filter: blur(14px);
  background: rgba(249, 247, 245, 0.88);
}

.btn:active { transform: scale(0.97); }
.btn-primary:hover { box-shadow: 0 4px 14px rgba(201,161,74,0.35); }

.service-icon {
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s;
}
.service-card:hover .service-icon {
  transform: scale(1.06);
  background: var(--beige-100);
}

.news-thumb svg,
.news-thumb img {
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.news-card:hover .news-thumb svg,
.news-card:hover .news-thumb img {
  transform: scale(1.06);
}

.defense-item {
  transition: background 0.15s, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.defense-item:hover { transform: translateX(3px); }

.ann-item {
  transition: background 0.15s, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.ann-item:hover { transform: translateX(3px); }

.partner {
  transition: background 0.18s, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.partner:hover { transform: translateY(-2px); }

.topbar-left .dot {
  animation: pulse 2.5s infinite;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-content > *, .hero-visual, .hero-card, .hero-card-rings span {
    animation: none !important;
  }
  .hero::before { animation: none !important; }
}

@media (max-width: 480px) {
  .chatbot-fab { right: 16px; bottom: 16px; height: 50px; padding: 0 18px 0 14px; }
  .chatbot-fab-label { font-size: 13px; }
  .chatbot-panel {
    right: 12px; left: 12px; bottom: 80px;
    width: auto; max-width: none;
    height: calc(100vh - 100px);
  }
  .hero-visual { max-width: none; width: 100%; }
  .hero-card--diplomas-photo .hero-diplomas-scene {
    width: 100%;
    padding: 0;
  }
  .hero-diplomas-scene {
    width: min(100%, 272px);
    padding: 18px 10px 50px;
    column-gap: 6px;
    row-gap: 10px;
  }
  .diploma:nth-child(1),
  .diploma:nth-child(4) {
    width: min(100%, 134px) !important;
    max-width: 134px;
  }
  .diploma:nth-child(2),
  .diploma:nth-child(3) {
    width: min(100%, 112px) !important;
    max-width: 112px;
  }
  .diploma-cover { padding: 10px 6px 12px; }
  .diploma:nth-child(1) .diploma-title,
  .diploma:nth-child(4) .diploma-title { font-size: 12.5px; margin-bottom: 16px; }
  .diploma:nth-child(2) .diploma-title,
  .diploma:nth-child(3) .diploma-title { font-size: 10px; }
  .diploma-sub { font-size: 6px; }
  .diploma-kind { font-size: 6.5px; }
  .hero-card--diplomas .hero-card-label {
    font-size: 9px;
    letter-spacing: 0.02em;
    padding: 0 12px;
    bottom: 14px;
    line-height: 1.35;
  }
}

/* responsive */
@media (max-width: 1240px) {
  .brand-text { max-width: 200px; font-size: 13px; }
  .nav-link { padding: 9px 8px; font-size: 12.5px; }
  .search-btn { max-width: 220px; width: 220px; flex-basis: 220px; }
  .search-btn .kbd { display: none; }
}

@media (max-width: 1100px) {
  body.has-split-header { --header-h: 72px; }
  .header-split .header-inner {
    flex-direction: row;
    flex-wrap: nowrap;
    height: 72px;
    padding-bottom: 0;
  }
  .header-split .header-top {
    min-height: 0;
    padding: 0;
    flex: 1;
    min-width: 0;
  }
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-inner--diploma-photo { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 420px; margin: 0 auto; aspect-ratio: auto; }
  .hero-visual--diploma-photo,
  .hero-visual:has(.hero-card--diplomas-photo) {
    max-width: 640px;
    width: 100%;
    aspect-ratio: 1024 / 682;
  }
  .hero-card--diplomas { height: auto; }
  .hero-card--diplomas-photo .hero-diplomas-scene {
    display: block;
    width: 100%;
    margin-inline: 0;
    padding: 0;
    height: auto;
    aspect-ratio: 1024 / 682;
    position: relative;
  }
  .hero-card--diplomas-photo .hero-diplomas-photo {
    position: absolute;
    inset: 0;
  }
  .hero-diplomas-scene {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 8px;
    row-gap: 12px;
    align-items: end;
    justify-items: center;
    width: min(100%, 320px);
    margin-inline: auto;
    min-height: 0;
    padding: 22px 14px 54px;
    perspective: none;
  }
  .diploma {
    animation: none;
    margin: 0 !important;
    transform-origin: center;
  }
  .diploma:nth-child(1),
  .diploma:nth-child(4) {
    width: min(100%, 156px) !important;
    max-width: 156px;
  }
  .diploma:nth-child(2),
  .diploma:nth-child(3) {
    width: min(100%, 128px) !important;
    max-width: 128px;
  }
  .diploma:nth-child(1) { transform: rotate(-5deg); z-index: 1; }
  .diploma:nth-child(2) { transform: rotate(4deg) translateY(8px); z-index: 2; }
  .diploma:nth-child(3) { transform: rotate(-4deg) translateY(-6px); z-index: 2; }
  .diploma:nth-child(4) { transform: rotate(5deg); z-index: 1; }
  .diploma:nth-child(1) .diploma-title,
  .diploma:nth-child(4) .diploma-title { font-size: 14px; margin-bottom: 22px; }
  .diploma:nth-child(2) .diploma-title,
  .diploma:nth-child(3) .diploma-title { font-size: 11px; }
  .diploma-sub { font-size: 6.5px; }
  .diploma:nth-child(1) .diploma-sub,
  .diploma:nth-child(4) .diploma-sub { font-size: 7px; }
  .diploma-kind { font-size: 7px; }
  .diploma:nth-child(1) .diploma-kind,
  .diploma:nth-child(4) .diploma-kind { font-size: 7.5px; }
  .diploma-cover {
    box-shadow:
      inset 0 2px 0 rgba(255,255,255,0.12),
      inset -6px 0 14px rgba(0,0,0,0.22),
      2px 2px 0 rgba(245,232,200,0.24),
      3px 4px 12px rgba(40,24,8,0.24);
  }
  .hero h1 { font-size: 44px; }
  .nav { display: none; }
  .nav-cta-label { display: none; }
  .nav-cta { padding: 0 10px; }
  .menu-toggle { display: inline-flex; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: 0; border-bottom: 1px solid rgba(60,40,20,0.10); }
  .stat:nth-child(odd) { border-right: 1px solid rgba(60,40,20,0.10); }
  .duo { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .partners-grid { justify-content: center; }
  .partner { flex: 1 1 calc(25% - 1px); max-width: calc(25% - 1px); min-width: 140px; }
}
/* ─── E-xidmətlər portal ─── */
.nav-link--active { color: var(--accent); background: var(--bg-soft); font-weight: 600; }

.eservices-page .header-tools .btn { height: 42px; padding: 0 16px; font-size: 13.5px; }

.eservices-login {
  padding: 72px 0 96px;
  background: linear-gradient(180deg, var(--bg-tint) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.eservices-login-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.eservices-intro h1 {
  font-size: 40px;
  line-height: 1.15;
  margin-top: 14px;
}
.eservices-intro > p {
  margin-top: 16px;
  color: var(--ink-500);
  font-size: 16px;
  max-width: 520px;
}
.eservices-trust {
  list-style: none;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.eservices-trust li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-700);
  font-weight: 500;
}
.eservices-trust svg { width: 20px; height: 20px; color: var(--gold-500); flex-shrink: 0; }

.eservices-auth {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}
.eservices-auth-head h2 { font-size: 24px; }
.eservices-auth-head p { color: var(--ink-500); font-size: 14px; margin-top: 6px; }

.auth-tabs {
  display: flex;
  gap: 4px;
  margin-top: 24px;
  padding: 4px;
  background: var(--bg-soft);
  border-radius: 8px;
  border: 1px solid var(--line-soft);
}
.auth-tab {
  flex: 1;
  padding: 10px 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-500);
  border-radius: 6px;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  text-align: center;
}
.auth-tab:hover { color: var(--ink-900); }
.auth-tab.is-active {
  background: var(--card);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}

.auth-panels { margin-top: 24px; }
.auth-panel-desc {
  font-size: 14px;
  color: var(--ink-500);
  margin-bottom: 20px;
  line-height: 1.55;
}
.auth-form { display: flex; flex-direction: column; gap: 16px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field span {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-500);
}
.field input,
.field select {
  height: 46px;
  padding: 0 14px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink-900);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(201, 161, 74, 0.18);
}
.field small { font-size: 12px; color: var(--ink-400); }

.auth-submit { width: 100%; justify-content: center; margin-top: 4px; }

.sima-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 24px;
  margin-bottom: 16px;
  background: var(--bg-soft);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
}
.sima-qr-box {
  padding: 12px;
  background: var(--card);
  border-radius: 8px;
  border: 1px solid var(--line);
}
.sima-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-500);
  font-weight: 500;
}
.sima-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold-500);
  animation: pulse 2s infinite;
}

.auth-note {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--ink-400);
  text-align: center;
}
.auth-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.eservices-dashboard { background: var(--bg); }
.dashboard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
}
.dashboard-head h2 { font-size: 32px; margin-top: 10px; }
.dashboard-head p { color: var(--ink-500); margin-top: 10px; max-width: 560px; }

.session-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  padding: 14px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  flex-shrink: 0;
}
.session-method {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-500);
}
.session-user {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-900);
  font-family: "JetBrains Mono", monospace;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 20px;
}
.upload-panel { padding: 16px !important; }
.upload-form { display: flex; flex-direction: column; gap: 16px; }

.upload-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 32px 20px;
  text-align: center;
  background: var(--bg-soft);
  border: 2px dashed var(--line);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.upload-drop:hover,
.upload-drop.is-dragover {
  border-color: var(--gold-500);
  background: rgba(201, 161, 74, 0.06);
}
.upload-drop svg { width: 32px; height: 32px; color: var(--accent); opacity: 0.7; }
.upload-drop strong { font-size: 14px; color: var(--ink-900); }
.upload-drop > span:not(.upload-files) { font-size: 12px; color: var(--ink-400); }
.upload-files {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  word-break: break-all;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 48px 24px;
  text-align: center;
}
.empty-state svg { width: 40px; height: 40px; color: var(--ink-400); opacity: 0.6; }
.empty-state p { font-weight: 600; color: var(--ink-700); }
.empty-state span { font-size: 13px; color: var(--ink-400); }

.submission-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 12px;
  border-radius: 8px;
  transition: background 0.15s, transform 0.2s;
}
.submission-item:hover { background: var(--bg-soft); transform: translateX(3px); }
.submission-status {
  flex-shrink: 0;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 4px;
}
.status-pending { background: rgba(201, 161, 74, 0.15); color: #8a6d2b; }
.submission-info .title { font-size: 14px; font-weight: 600; color: var(--ink-900); }
.submission-info .meta {
  font-size: 12px;
  color: var(--ink-400);
  margin-top: 3px;
  font-family: "JetBrains Mono", monospace;
}

.dashboard-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}
.info-card {
  padding: 24px 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.info-card h4 { font-size: 16px; margin-bottom: 14px; }
.info-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.info-card li {
  font-size: 14px;
  color: var(--ink-500);
  padding-left: 18px;
  position: relative;
}
.info-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-500);
}
.info-card p { font-size: 14px; color: var(--ink-500); line-height: 1.6; }
.info-card p + p { margin-top: 8px; }
.info-hours { font-size: 13px !important; color: var(--ink-400) !important; }

.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  padding: 14px 22px;
  background: var(--espresso-900);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  z-index: 200;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  max-width: calc(100vw - 40px);
  text-align: center;
}
.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 960px) {
  .eservices-login-inner { grid-template-columns: 1fr; gap: 40px; }
  .eservices-intro h1 { font-size: 32px; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-info { grid-template-columns: 1fr; }
  .dashboard-head { flex-direction: column; }
  .session-badge { align-items: flex-start; width: 100%; }
}

/* ─── Inner / content pages ─── */
.inner-page .page-hero {
  background: linear-gradient(180deg, var(--beige-100) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
  padding: 40px 0 48px;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-500);
  margin-bottom: 20px;
}
.breadcrumb a {
  color: var(--ink-500);
  transition: color 0.15s;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current="page"] { color: var(--ink-900); font-weight: 500; }
.page-hero h1 {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  max-width: 820px;
}
.page-lead {
  margin-top: 14px;
  font-size: 17px;
  color: var(--ink-500);
  max-width: 720px;
  line-height: 1.65;
}
.inner-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
.inner-layout--with-video {
  grid-template-columns: 260px minmax(0, 1fr) 240px;
}
.inner-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.sidebar-nav {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.sidebar-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 12px;
}
.sidebar-nav ul { list-style: none; }
.sidebar-nav li + li { margin-top: 2px; }
.sidebar-nav a {
  display: block;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--ink-700);
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.sidebar-nav a:hover { background: var(--bg-soft); color: var(--accent); }
.sidebar-nav a.is-active {
  background: var(--bg-soft);
  color: var(--accent);
  font-weight: 600;
  border-left: 3px solid var(--gold);
  padding-left: 9px;
}
.content-prose { max-width: 760px; }
.content-prose p {
  color: var(--ink-700);
  margin-bottom: 20px;
  line-height: 1.85;
  font-size: 16px;
  text-align: justify;
}
.content-prose p:last-child { margin-bottom: 0; }
.content-prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.content-prose a:hover { color: var(--gold-500); }

/* ─── Sticky video widget (inner pages) ─── */
.inner-video-rail {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
}
.video-widget__card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.video-widget__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.video-widget__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.video-widget__expand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: var(--ink-500);
  background: var(--bg-soft);
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.video-widget__expand svg { width: 14px; height: 14px; }
.video-widget__expand:hover {
  background: rgba(201, 161, 74, 0.15);
  color: var(--accent);
}
.video-widget__frame {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #1a1612;
  aspect-ratio: 16 / 9;
  cursor: pointer;
}
.video-widget__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-widget__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(26,22,18,0.08) 0%, rgba(26,22,18,0.45) 100%);
  transition: opacity 0.25s ease;
  pointer-events: none;
}
.video-widget__play-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(251, 248, 243, 0.92);
  color: var(--accent);
  box-shadow: 0 4px 20px rgba(26, 22, 18, 0.25);
  backdrop-filter: blur(6px);
  transition: transform 0.2s ease;
}
.video-widget__play-icon svg { width: 18px; height: 18px; }
.video-widget__play-icon .icon-play { margin-left: 2px; }
.video-widget__play-icon .icon-pause { display: none; }
.video-widget.is-playing .video-widget__play-icon .icon-play { display: none; }
.video-widget.is-playing .video-widget__play-icon .icon-pause { display: block; }
.video-widget__frame:hover .video-widget__play-icon { transform: scale(1.06); }
.video-widget.is-playing .video-widget__overlay { opacity: 0; }
.video-widget.is-playing .video-widget__frame:hover .video-widget__overlay {
  opacity: 1;
  background: linear-gradient(180deg, transparent 50%, rgba(26,22,18,0.55) 100%);
}
.video-widget.is-playing .video-widget__frame:hover .video-widget__play-icon {
  width: 36px;
  height: 36px;
  opacity: 0.9;
}
.video-widget.is-playing .video-widget__frame:hover .video-widget__play-icon svg {
  width: 14px;
  height: 14px;
}
.video-widget__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px;
  background: linear-gradient(180deg, transparent, rgba(26,22,18,0.72));
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.video-widget__frame:hover .video-widget__bar,
.video-widget.is-playing .video-widget__bar,
.video-widget.is-expanded .video-widget__bar {
  opacity: 1;
  transform: translateY(0);
}
.video-widget__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  color: #fbf8f3;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
  flex-shrink: 0;
  transition: background 0.15s;
}
.video-widget__btn:hover { background: rgba(255, 255, 255, 0.22); }
.video-widget__btn svg { width: 14px; height: 14px; }
.video-widget__btn .icon-pause,
.video-widget__btn .icon-unmuted { display: none; }
.video-widget.is-playing .video-widget__btn[data-video-play] .icon-play { display: none; }
.video-widget.is-playing .video-widget__btn[data-video-play] .icon-pause { display: block; }
.video-widget.is-unmuted .video-widget__btn[data-video-mute] .icon-muted { display: none; }
.video-widget.is-unmuted .video-widget__btn[data-video-mute] .icon-unmuted { display: block; }
.video-widget__progress {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}
.video-widget__progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--gold-400);
  border-radius: inherit;
  transition: width 0.1s linear;
}
.video-widget__caption {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--ink-500);
}
.video-widget.is-expanded {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  background: rgba(26, 22, 18, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.video-widget.is-expanded .video-widget__card {
  width: min(960px, 94vw);
  padding: 18px;
  box-shadow: var(--shadow-lg);
  animation: videoExpandIn 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}
.video-widget.is-expanded .video-widget__frame {
  aspect-ratio: 16 / 9;
  width: 100%;
  max-height: min(82vh, 820px);
  height: auto;
}
.video-widget.is-expanded .video-widget__video {
  object-fit: contain;
  background: #000;
}
.video-widget.is-expanded .video-widget__expand .icon-expand { display: none; }
.video-widget.is-expanded .video-widget__expand .icon-shrink { display: block; }
.video-widget__expand .icon-shrink { display: none; }
.video-widget.is-expanded .video-widget__expand {
  background: rgba(201, 161, 74, 0.18);
  color: var(--accent);
}
@keyframes videoExpandIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ─── News detail pages ─── */
.news-detail-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.news-detail-cat {
  display: inline-flex;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(201, 161, 74, 0.12);
  color: var(--espresso-800);
  border: 1px solid rgba(201, 161, 74, 0.25);
  border-radius: 4px;
}
.news-detail-date {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--ink-500);
}
.news-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 48px;
  align-items: start;
}
.news-detail-article { min-width: 0; }
.news-detail-image {
  margin: 0 0 28px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}
.news-detail-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 480px;
  object-fit: cover;
}
.news-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  width: 100%;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent);
  transition: gap 0.2s;
}
.news-back-link svg { width: 16px; height: 16px; }
.news-back-link:hover { gap: 12px; color: var(--gold-500); }

.prose-list {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
}
.prose-list li {
  position: relative;
  padding: 10px 0 10px 22px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink-700);
  line-height: 1.6;
}
.prose-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.info-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 32px 0 8px;
}
.info-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.info-card-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 8px;
}
.info-card-value {
  display: block;
  font-family: "Manrope", sans-serif;
  font-size: 18px;
  line-height: 1.35;
  color: var(--ink-900);
}
.info-card-note {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-500);
}
.expert-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0 8px;
}
.expert-item {
  padding: 12px 14px;
  background: var(--bg-tint);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--ink-700);
  line-height: 1.45;
}
.prose-callout {
  margin-top: 40px;
  padding: 24px 28px;
  background: var(--beige-100);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius-lg);
}
.prose-callout h3 {
  font-size: 18px;
  margin-bottom: 10px;
}
.prose-callout p { margin: 0; line-height: 1.7; }

@media (max-width: 960px) {
  .inner-layout,
  .inner-layout--with-video,
  .news-detail-layout { grid-template-columns: 1fr; gap: 32px; }
  .inner-sidebar,
  .inner-video-rail { position: static; }
  .inner-video-rail { order: 3; }
  .inner-video-rail .video-widget__frame { aspect-ratio: 16 / 9; max-height: 280px; }
  .info-cards, .expert-grid { grid-template-columns: 1fr; }
}

/* ─── Legal document page ─── */
.doc-page { min-width: 0; }
.doc-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.doc-toolbar-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.doc-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-700);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.doc-badge--status {
  color: var(--accent);
  background: linear-gradient(180deg, #fff 0%, var(--beige-100) 100%);
  border-color: var(--gold-400);
}
.doc-open-btn svg { width: 16px; height: 16px; }
.doc-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 28px;
}
.doc-meta-card {
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.doc-meta-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 6px;
}
.doc-meta-card strong {
  display: block;
  font-size: 16px;
  color: var(--ink-900);
  margin-bottom: 4px;
}
.doc-meta-card p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-500);
  line-height: 1.45;
}
.doc-meta-card a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.doc-official-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: 32px;
}
.doc-official-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 18px;
  background: linear-gradient(180deg, var(--beige-100) 0%, var(--bg-tint) 100%);
  border-bottom: 1px solid var(--line);
}
.doc-official-panel-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
}
.doc-official-panel-src {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--ink-500);
}
.doc-official-panel-body { padding: 24px 24px 8px; }
.doc-official-panel-title {
  font-size: 20px;
  margin-bottom: 10px;
}
.doc-official-panel-note {
  font-size: 15px;
  color: var(--ink-500);
  line-height: 1.65;
  margin-bottom: 20px;
}
.doc-toc ol {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  counter-reset: toc;
}
.doc-toc li { counter-increment: toc; }
.doc-toc a {
  display: block;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-700);
  background: var(--bg);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.doc-toc a:hover {
  background: var(--bg-soft);
  border-color: var(--gold-400);
  color: var(--accent);
}
.doc-official-panel-foot {
  padding: 16px 24px 20px;
  border-top: 1px solid var(--line-soft);
}
.doc-sections { display: grid; gap: 20px; margin-bottom: 32px; }
.doc-section {
  padding: 22px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.doc-section-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.doc-section-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  background: var(--beige-100);
  border: 1px solid var(--gold-400);
  border-radius: 8px;
}
.doc-section h2 { font-size: 20px; line-height: 1.25; }
.doc-section p {
  font-size: 15px;
  color: var(--ink-700);
  line-height: 1.7;
  margin-bottom: 12px;
}
.doc-section p:last-child { margin-bottom: 0; }
.doc-list {
  margin: 0;
  padding-left: 20px;
  color: var(--ink-700);
  font-size: 15px;
  line-height: 1.7;
}
.doc-list li + li { margin-top: 6px; }
.doc-amendments {
  padding: 22px 24px;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold-500);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}
.doc-amendments h2 {
  font-size: 18px;
  margin-bottom: 14px;
}
.doc-amendments ul { list-style: none; }
.doc-amendments li {
  display: flex;
  gap: 14px;
  padding: 10px 0;
  font-size: 14px;
  color: var(--ink-700);
  line-height: 1.5;
  border-bottom: 1px solid var(--line-soft);
}
.doc-amendments li:last-child { border-bottom: 0; padding-bottom: 0; }
.doc-amendments li span {
  flex-shrink: 0;
  min-width: 44px;
  font-weight: 700;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--gold-500);
}
.doc-source-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  font-size: 14px;
  color: var(--ink-500);
  line-height: 1.6;
}
.doc-source-note svg { flex-shrink: 0; margin-top: 2px; color: var(--gold-500); }
.doc-source-note p { margin: 0; }
.doc-source-note a { color: var(--accent); font-weight: 600; }

@media (max-width: 700px) {
  .doc-meta-grid { grid-template-columns: 1fr; }
  .doc-toc ol { grid-template-columns: 1fr; }
  .doc-toolbar { flex-direction: column; align-items: stretch; }
  .doc-toolbar-actions .btn { width: 100%; justify-content: center; }
  .topbar-left { display: none; }
  .header-inner,
  .header-split .header-inner { height: 72px; }
  .brand { gap: 10px; }
  .brand-emblem { width: 52px; height: 52px; }
  .brand-text { font-size: 12px; max-width: 170px; line-height: 1.3; }
  .search-btn { display: none; }
  .hero-inner { padding: 56px 20px 72px; }
  .hero h1 { font-size: 32px; }
  .hero p.lead { font-size: 16px; }
  .hero-meta { gap: 20px; flex-wrap: wrap; }
  .section { padding: 64px 0; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head h2 { font-size: 28px; }
  .services-grid, .news-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-right: 0 !important; }
  .stat-num { font-size: 44px; }
  .footer-grid { grid-template-columns: 1fr; }
  .partner { flex: 1 1 calc(50% - 1px); max-width: calc(50% - 1px); min-width: 0; height: 78px; }
  .partner:last-child:nth-child(odd) {
    flex: 1 0 100%;
    width: 100%;
    max-width: 100%;
    margin-inline: 0;
  }
  .partner-img { height: 56px; }
  .partner-img--wide { height: 60px; max-width: 92%; }
  .partner:last-child .partner-img--wide { height: 64px; max-width: 88%; }
}
