/* ==========================================================================
   BTSI — Design System 2.0  ·  "Blazing" dark theme with saffron accent
   --------------------------------------------------------------------------
   00. Tokens
   01. Reset & base
   02. Typography
   03. Layout
   04. Utilities
   05. Topbar / header / navigation
   06. Dropdown & drawer
   07. Hero & page hero
   08. Section heads
   09. Buttons, badges, chips, pills, tabs
   10. Cards
   11. Lists & meta
   12. Bands: stats & CTA
   13. Alerts, notes, empty states
   14. Forms
   15. Tables, meters, key/value
   16. Accordion
   17. Timeline
   18. Gallery & lightbox
   19. Search results
   20. Prose & articles
   21. Footer & floats
   22. States & print
   23. Responsive
   ========================================================================== */

/* 00. TOKENS =============================================================== */

:root {
  --bg: #070b14;
  --bg-2: #0a101c;
  --bg-3: #0d1524;
  --surface: #101a2b;
  --surface-2: #16223a;
  --surface-3: #1c2b47;

  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);

  --text: #e9effa;
  --text-2: #c3cde0;
  --muted: #94a3bd;
  --muted-2: #6f7f9c;

  --accent: #ff8a3d;
  --accent-2: #ffc53d;
  --accent-grad: linear-gradient(135deg, #ff8a3d 0%, #ffc53d 100%);
  --accent-soft: rgba(255, 138, 61, 0.12);
  --accent-line: rgba(255, 138, 61, 0.34);
  --accent-ink: #211003;

  --ok: #3ddc97;
  --ok-soft: rgba(61, 220, 151, 0.13);
  --warn: #ffcc4d;
  --warn-soft: rgba(255, 204, 77, 0.13);
  --bad: #ff6b6b;
  --bad-soft: rgba(255, 107, 107, 0.13);
  --info: #6aa8ff;
  --info-soft: rgba(106, 168, 255, 0.13);

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  --sh-1: 0 1px 2px rgba(0, 0, 0, 0.35);
  --sh-2: 0 10px 30px rgba(0, 0, 0, 0.35);
  --sh-3: 0 24px 60px rgba(0, 0, 0, 0.45);
  --glow: 0 0 0 1px var(--accent-line), 0 18px 50px rgba(255, 138, 61, 0.16);

  --container: 100%;
  --container-narrow: 820px;
  --gutter: clamp(18px, 4vw, 32px);
  --sec-y: clamp(56px, 8vw, 104px);
  --header-h: 72px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* 01. RESET & BASE ========================================================= */

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img,
svg,
video { display: block; max-width: 100%; }

img { height: auto; }

a { color: inherit; text-decoration: none; }

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button { background: none; border: 0; cursor: pointer; }

ul, ol { list-style: none; padding: 0; }

address { font-style: normal; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--accent); color: var(--accent-ink); }

.site-main { display: block; min-height: 40vh; }

.skip-link {
  position: fixed;
  top: -60px;
  left: 16px;
  z-index: 999;
  padding: 10px 18px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  border-radius: var(--r-sm);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 16px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* 02. TYPOGRAPHY =========================================================== */

h1, h2, h3, h4 {
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 1.15rem + 2vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); }

p { text-wrap: pretty; }

.lead {
  font-size: clamp(1.02rem, 0.98rem + 0.35vw, 1.2rem);
  color: var(--text-2);
}

.muted { color: var(--muted); }
.text-center { text-align: center; }
.u-right { margin-left: auto; }

strong, b { font-weight: 700; }

.accent { color: var(--accent); }

.accent-text {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* 03. LAYOUT =============================================================== */

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow { max-width: var(--container-narrow); }
.container--flash { padding-top: 18px; }

.section { padding-block: var(--sec-y); position: relative; }
.section--tight { padding-block: clamp(32px, 5vw, 56px); }
.section--flush-top { padding-top: 0; }
.section--alt { background: var(--bg-2); }
.section--deep { background: var(--bg-3); }

.section--ruled::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2), transparent);
}

.grid { display: grid; gap: clamp(16px, 2vw, 26px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid--auto-lg { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }

.split {
  display: grid;
  gap: clamp(24px, 4vw, 56px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
}
.split--wide-left { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); }
.split--wide-right { grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); }
.split--media { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; }

.stack > * + * { margin-top: 18px; }
.stack-sm > * + * { margin-top: 10px; }
.stack-lg > * + * { margin-top: 30px; }

.cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }

/* 04. UTILITIES ============================================================ */

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.frame {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
}
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame--tall { aspect-ratio: 4 / 3; }

/* 05. TOPBAR / HEADER / NAV =============================================== */

.topbar {
  background: #05080f;
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 40px;
  flex-wrap: wrap;
}

.topbar__list,
.topbar__social {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.topbar__list li,
.topbar__list a,
.topbar__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.topbar__list a:hover,
.topbar__link:hover { color: var(--text); }

.topbar__right { display: flex; align-items: center; gap: 16px; }

.topbar__social a {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.topbar__social a:hover { background: var(--accent); color: var(--accent-ink); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(7, 11, 20, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}

.site-header.is-stuck {
  background: rgba(7, 11, 20, 0.96);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.42);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 13px;
  background: linear-gradient(150deg, rgba(255, 138, 61, 0.18), rgba(255, 197, 61, 0.06));
  border: 1px solid var(--accent-line);
  overflow: hidden;
}
.brand__mark img { width: 100%; height: 100%; object-fit: contain; }

.brand__text { display: flex; flex-direction: column; line-height: 1.15; }

.brand__name {
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.brand__tag {
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav { margin-left: 0; }

.nav__list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav__item { position: relative; }

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--text-2);
  white-space: nowrap;
  transition: color 0.18s var(--ease), background 0.18s var(--ease);
}

.nav__link:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }

.nav__link.is-active {
  color: var(--accent);
  background: var(--accent-soft);
}

.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}

/* Icon sizing (icon() helper emits .ic + size modifier) */

.ic {
  width: 1.25em;
  height: 1.25em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ic--xs { width: 1em; height: 1em; }
.ic--sm { width: 1.125em; height: 1.125em; }
.ic--lg { width: 1.5em; height: 1.5em; }
.ic--xl { width: 2em; height: 2em; }
.icon-btn:hover .ic,
.site-header a:hover .ic { stroke: inherit; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  color: var(--text-2);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.icon-btn:hover { background: var(--accent); color: var(--accent-ink); border-color: transparent; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.05);
}

.burger__line {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

/* 06. DROPDOWN & DRAWER ==================================================== */

.dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  translate: -50% 0;
  width: min(560px, 88vw);
  padding-top: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
  z-index: 70;
}

.nav__item--has-menu:hover > .dropdown,
.nav__item--has-menu:focus-within > .dropdown,
.nav__link--btn[aria-expanded="true"] + .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown__inner {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-3);
  padding: 16px;
}

.dropdown__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 4px 8px 10px;
}

.dropdown__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
}

.dropdown__link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px;
  border-radius: var(--r-md);
  transition: background 0.18s var(--ease);
}
.dropdown__link:hover,
.dropdown__link.is-active { background: rgba(255, 255, 255, 0.05); }

.dropdown__icon {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  flex-shrink: 0;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
}

.dropdown__text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.dropdown__text strong { font-size: 0.9rem; font-weight: 700; }
.dropdown__text small { font-size: 0.76rem; color: var(--muted); line-height: 1.4; }

.dropdown__note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 10px;
  padding: 10px;
  border-top: 1px solid var(--line);
  font-size: 0.76rem;
  color: var(--muted);
}
.dropdown__note svg { flex-shrink: 0; margin-top: 2px; color: var(--info); }

/* Drawer */

.drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
}

.drawer__scrim {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 12, 0.7);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.drawer__panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(400px, 92vw);
  background: var(--bg-2);
  border-left: 1px solid var(--line-2);
  box-shadow: var(--sh-3);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s var(--ease);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: translateX(0); }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--bg-2);
  z-index: 2;
}

.drawer__nav { padding: 14px 14px 4px; flex: 1; }

.drawer__list { display: flex; flex-direction: column; gap: 2px; }
.drawer__list--tight { margin-bottom: 6px; }

.drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--text-2);
  text-align: left;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.drawer__link svg { flex-shrink: 0; }
.drawer__link:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.drawer__link.is-active { background: var(--accent-soft); color: var(--accent); }

.drawer__group { margin-top: 6px; }

.drawer__group > summary { list-style: none; cursor: pointer; }
.drawer__group > summary::-webkit-details-marker { display: none; }

.drawer__sub {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 0 8px 14px;
}
.drawer__sub a {
  padding: 9px 14px;
  border-radius: var(--r-sm);
  font-size: 0.92rem;
  color: var(--muted);
}
.drawer__sub a:hover { color: var(--accent); background: var(--accent-soft); }

.drawer__label {
  margin: 16px 14px 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.drawer__foot {
  padding: 16px 20px 22px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 10px;
}

/* 07. HERO & PAGE HERO ===================================================== */

.hero {
  position: relative;
  padding-block: clamp(48px, 7vw, 92px);
  background:
    radial-gradient(900px 420px at 12% 0%, rgba(255, 138, 61, 0.16), transparent 62%),
    radial-gradient(760px 420px at 92% 22%, rgba(106, 168, 255, 0.1), transparent 60%),
    linear-gradient(180deg, #0b1220 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 35%, transparent 78%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero__title {
  margin-top: 20px;
  font-size: clamp(2.3rem, 1.2rem + 4.4vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.hero__title .accent {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__text {
  margin-top: 20px;
  max-width: 56ch;
  font-size: clamp(1rem, 0.96rem + 0.4vw, 1.14rem);
  color: var(--text-2);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.hero__trust-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.88rem;
  color: var(--muted);
}
.hero__trust-item svg { color: var(--accent); }
.hero__trust-item strong { color: var(--text); }

.hero__media { position: relative; }

.hero__figure {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: var(--surface);
  box-shadow: var(--sh-3);
  aspect-ratio: 4 / 3;
}
.hero__figure img { width: 100%; height: 100%; object-fit: cover; }

.hero__panel {
  position: absolute;
  right: -8px;
  bottom: -22px;
  display: grid;
  gap: 2px;
  padding: 16px 20px;
  border-radius: var(--r-lg);
  background: rgba(16, 26, 43, 0.94);
  border: 1px solid var(--line-2);
  box-shadow: var(--sh-3);
  backdrop-filter: blur(8px);
}
.hero__panel strong { font-size: 1.5rem; font-weight: 800; color: var(--accent); line-height: 1; }
.hero__panel span { font-size: 0.78rem; color: var(--muted); }

/* Page hero (inner pages) */

.page-hero {
  position: relative;
  padding-block: clamp(38px, 5.5vw, 68px);
  background:
    radial-gradient(720px 320px at 8% 0%, rgba(255, 138, 61, 0.15), transparent 60%),
    radial-gradient(600px 300px at 96% 60%, rgba(106, 168, 255, 0.09), transparent 62%),
    linear-gradient(180deg, #0b1322 0%, var(--bg-2) 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.page-hero__inner { position: relative; z-index: 1; }
.page-hero__glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(620px 300px at 88% 0%, rgba(106, 168, 255, 0.14), transparent 62%),
    radial-gradient(420px 220px at 4% 100%, rgba(255, 138, 61, 0.1), transparent 65%);
  pointer-events: none;
}
.page-hero--center .page-hero__inner { text-align: center; }
.page-hero--center .breadcrumbs { justify-content: center; }
.page-hero--center .page-hero__eyebrow { justify-content: center; }
.page-hero--center .page-hero__sub { margin-inline: auto; }

.page-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.page-hero__title {
  margin-top: 12px;
  font-size: clamp(2rem, 1.3rem + 3vw, 3.3rem);
  letter-spacing: -0.03em;
  max-width: 20ch;
}
.page-hero--center .page-hero__title { margin-inline: auto; }

.page-hero__sub {
  margin-top: 16px;
  max-width: 68ch;
  font-size: clamp(1rem, 0.96rem + 0.35vw, 1.12rem);
  color: var(--text-2);
}

/* Breadcrumbs */

.breadcrumbs { margin-bottom: 4px; }

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.83rem;
  color: var(--muted);
}

.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs [aria-current] { color: var(--text-2); font-weight: 600; }
.breadcrumbs__sep { display: inline-flex; opacity: 0.5; }
.breadcrumbs--light { color: var(--muted); }

/* 08. SECTION HEADS ======================================================== */

.sec-head {
  display: grid;
  gap: 12px;
  margin-bottom: clamp(26px, 3.5vw, 44px);
  position: relative;
}

.sec-head--center {
  justify-items: center;
  text-align: center;
}

.sec-head__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.sec-head__title { max-width: 22ch; }
.sec-head--center .sec-head__title { margin-inline: auto; }

.sec-head__text {
  max-width: 66ch;
  color: var(--muted);
  font-size: 1.02rem;
}
.sec-head--center .sec-head__text { margin-inline: auto; }

.sec-head__action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-self: start;
  margin-top: 4px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--accent);
  transition: gap 0.2s var(--ease);
}
.sec-head--center .sec-head__action { justify-self: center; }
.sec-head__action:hover { gap: 13px; }

/* 09. BUTTONS / BADGES / CHIPS / PILLS / TABS ============================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.16s var(--ease), background 0.2s var(--ease),
    color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { flex-shrink: 0; }

.btn--primary {
  background: var(--accent-grad);
  color: var(--accent-ink);
  box-shadow: 0 10px 26px rgba(255, 138, 61, 0.24);
}
.btn--primary:hover { box-shadow: 0 16px 34px rgba(255, 138, 61, 0.34); }

.btn--accent { background: var(--accent); color: var(--accent-ink); }

.btn--light {
  background: #fff;
  color: #0b1220;
}
.btn--light:hover { background: var(--accent-2); }

.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-color: var(--line-2);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.11); }

.btn--outline {
  background: transparent;
  color: var(--text);
  border-color: var(--line-2);
}
.btn--outline:hover { border-color: var(--accent); color: var(--accent); }

.btn--outline-light {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.12); }

.btn--whatsapp {
  background: #1fbf6b;
  color: #04180d;
  box-shadow: 0 10px 26px rgba(31, 191, 107, 0.22);
}
.btn--whatsapp:hover { background: #25d67b; }

.btn--lg { padding: 15px 30px; font-size: 1rem; }
.btn--sm { padding: 9px 16px; font-size: 0.86rem; }
.btn--block { display: flex; width: 100%; }

.btn--disabled,
.btn[aria-disabled="true"],
.btn:disabled {
  opacity: 0.55;
  pointer-events: none;
}

a.is-muted { opacity: 0.65; pointer-events: none; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--accent);
  transition: gap 0.2s var(--ease);
}
.link-arrow:hover { gap: 13px; }

/* Badges */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: var(--r-pill);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text-2);
  border: 1px solid var(--line);
  white-space: nowrap;
}
.badge svg { width: 13px; height: 13px; }

.badge--accent { background: var(--accent-soft); color: var(--accent); border-color: var(--accent-line); }
.badge--ok { background: var(--ok-soft); color: var(--ok); border-color: rgba(61, 220, 151, 0.35); }
.badge--warn { background: var(--warn-soft); color: var(--warn); border-color: rgba(255, 204, 77, 0.35); }
.badge--bad { background: var(--bad-soft); color: var(--bad); border-color: rgba(255, 107, 107, 0.35); }
.badge--info { background: var(--info-soft); color: var(--info); border-color: rgba(106, 168, 255, 0.35); }
.badge--muted { background: rgba(255, 255, 255, 0.05); color: var(--muted); }

.badge--xs {
  padding: 2px 8px;
  font-size: 0.66rem;
  letter-spacing: 0.04em;
}

.chip-row { display: flex; flex-wrap: wrap; gap: 7px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--text-2);
}

/* Pills / filters / tabs */

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 17px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-2);
  transition: background 0.18s var(--ease), color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.pill:hover { border-color: var(--accent-line); color: var(--text); }
.pill.is-active {
  background: var(--accent-grad);
  border-color: transparent;
  color: var(--accent-ink);
}
.pill__count {
  font-size: 0.74rem;
  padding: 1px 7px;
  border-radius: var(--r-pill);
  background: rgba(0, 0, 0, 0.22);
}
.pill:not(.is-active) .pill__count { background: rgba(255, 255, 255, 0.08); color: var(--muted); }

.tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 26px;
  overflow-x: auto;
}

.tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 0.94rem;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.tab:hover { color: var(--text); }
.tab.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.tab__count {
  font-size: 0.74rem;
  padding: 1px 8px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.08);
}
.tab.is-active .tab__count { background: var(--accent-soft); color: var(--accent); }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  margin-bottom: 26px;
}

.filter-bar__grow { flex: 1 1 240px; min-width: 180px; }

/* 10. CARDS ================================================================ */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease),
    box-shadow 0.22s var(--ease), background 0.22s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-line);
  box-shadow: var(--sh-2);
}

a.card:hover { background: var(--surface-2); }

.card__body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 11px;
  flex: 1;
}

.card--pad .card__body { padding: 26px; }

.card__title {
  font-size: 1.12rem;
  font-weight: 750;
  letter-spacing: -0.015em;
}
.card__title a { transition: color 0.18s var(--ease); }
.card__title a:hover { color: var(--accent); }

.card__text {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.6;
}

.card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 22px;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.16);
}

/* Course card */

.course-card,
.branch-card,
.person-card { display: flex; flex-direction: column; }

.course-card__head,
.branch-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px 0;
}

.course-card__icon,
.branch-card__icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-line);
}

/* Event card */

.event-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
}

.event-card__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 18px 8px;
  background: linear-gradient(180deg, rgba(255, 138, 61, 0.16), rgba(255, 138, 61, 0.03));
  border-right: 1px solid var(--line);
  text-align: center;
}
.event-card__day { font-size: 2rem; font-weight: 800; line-height: 1; color: var(--accent); }
.event-card__mon { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.event-card__yr { font-size: 0.74rem; color: var(--muted); }
.event-card .card__body { padding: 18px; }
.event-card .card__foot { grid-column: 1 / -1; }

/* Branch card */

.branch-card__head > div { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.branch-card__address { font-size: 0.88rem; color: var(--muted); }

/* Person card */

.person-card__avatar {
  display: grid;
  place-items: center;
  height: 132px;
  background: linear-gradient(160deg, rgba(255, 138, 61, 0.14), rgba(106, 168, 255, 0.07));
  border-bottom: 1px solid var(--line);
}
.person-card__avatar img { width: 100%; height: 100%; object-fit: cover; }

.person-card__initials {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--accent);
  opacity: 0.9;
}

.person-card__body { gap: 8px; }

.person-card__role {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Service card */

.service-card { padding: 22px; gap: 14px; }

.service-card__icon {
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  border-radius: 15px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-line);
}

.service-card .card__body { padding: 0; }
.service-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* Generic tile (training areas, values, activities) */

.tile {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease), background 0.22s var(--ease);
}
.tile:hover { transform: translateY(-4px); border-color: var(--accent-line); background: var(--surface-2); }

.tile__icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent);
}

.tile__title { font-size: 1.04rem; font-weight: 750; }
.tile__text { color: var(--muted); font-size: 0.9rem; line-height: 1.6; }
.tile__foot { margin-top: auto; padding-top: 6px; }

/* Step card */

.step-card {
  position: relative;
  padding: 24px 22px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  height: 100%;
}

.step-card__num {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: var(--accent-grad);
  color: var(--accent-ink);
  font-weight: 800;
  font-size: 0.95rem;
}

.step-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step-card p { color: var(--muted); font-size: 0.9rem; }

/* Notice item */

.notice-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform 0.2s var(--ease), border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.notice-item:hover {
  transform: translateY(-3px);
  border-color: var(--accent-line);
  background: var(--surface-2);
}

.notice-item--compact { padding: 14px 16px; gap: 12px; }
.notice-item--compact .notice-item__icon { width: 36px; height: 36px; border-radius: 10px; }
.notice-item--compact .notice-item__title { font-size: 0.92rem; }
.notice-item--compact .notice-item__excerpt { font-size: 0.85rem; }

.notice-item__icon {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent);
}

.notice-item__body { flex: 1; min-width: 0; display: grid; gap: 8px; }

.notice-item__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--muted);
}

.notice-item__title { font-size: 1.05rem; font-weight: 750; }
.notice-item__title a:hover { color: var(--accent); }
.notice-item__excerpt { color: var(--muted); font-size: 0.9rem; }

.notice-item__go {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.notice-item:hover .notice-item__go { background: var(--accent); color: var(--accent-ink); }

.notice-list { display: grid; gap: 14px; }

/* Result item (search) */

.result-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.result-item:hover { border-color: var(--accent-line); transform: translateX(4px); }

.result-item__icon {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}
.result-item__body { flex: 1; min-width: 0; display: grid; gap: 6px; }
.result-item__title { font-size: 1.03rem; font-weight: 750; }
.result-item__title a:hover { color: var(--accent); }
.result-item__excerpt { color: var(--muted); font-size: 0.9rem; }
.result-item__meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-size: 0.8rem; color: var(--muted-2); }

/* 11. LISTS & META ========================================================= */

.meta-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: auto;
  padding-top: 6px;
  font-size: 0.85rem;
  color: var(--muted);
}
.meta-list li { display: inline-flex; align-items: center; gap: 6px; }
.meta-list svg { color: var(--accent); flex-shrink: 0; }

.check-list { display: grid; gap: 11px; }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  color: var(--text-2);
  font-size: 0.95rem;
}
.check-list svg {
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--ok);
}
.check-list--sm li { font-size: 0.87rem; gap: 9px; }

.num-list { display: grid; gap: 14px; counter-reset: step; }
.num-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  color: var(--text-2);
}
.num-list li::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  font-weight: 800;
  font-size: 0.85rem;
}

.key-list { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.key-list__row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  justify-content: space-between;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  font-size: 0.92rem;
}
.key-list__row:last-child { border-bottom: 0; }
.key-list__k { color: var(--muted); }
.key-list__v { font-weight: 700; text-align: right; }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* 12. BANDS ================================================================ */

.stat-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.stat {
  display: grid;
  justify-items: center;
  gap: 6px;
  padding: 30px 20px;
  background: var(--surface);
  text-align: center;
}

.stat__icon {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 4px;
}

.stat__value {
  font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat__label { font-size: 0.87rem; color: var(--muted); }

.stat-band--dark .stat { background: var(--bg-3); }
.stat-band__note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--muted-2);
}

/* CTA band */

.cta-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding: clamp(30px, 5vw, 56px);
  border-radius: var(--r-xl);
  background:
    radial-gradient(600px 300px at 88% 10%, rgba(255, 197, 61, 0.18), transparent 60%),
    linear-gradient(135deg, #16223a 0%, #101a2b 55%, #1a1408 100%);
  border: 1px solid var(--line-2);
  overflow: hidden;
}

.cta-band__glow {
  position: absolute;
  width: 380px; height: 380px;
  right: -90px; top: -120px;
  background: radial-gradient(circle, rgba(255, 138, 61, 0.35), transparent 68%);
  pointer-events: none;
}

.cta-band__main { position: relative; z-index: 1; display: grid; gap: 16px; }
.cta-band__title { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.5rem); max-width: 18ch; }
.cta-band__text { color: var(--text-2); max-width: 56ch; }

.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }

.cta-band__trust {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  padding: 22px;
  border-radius: var(--r-lg);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
}
.cta-band__trust li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 0.92rem;
  color: var(--text-2);
}
.cta-band__trust svg { color: var(--accent); flex-shrink: 0; margin-top: 3px; }

/* 13. ALERTS / NOTES / EMPTY ============================================== */

.alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-2);
  background: var(--surface);
  font-size: 0.93rem;
}
.alert svg { flex-shrink: 0; margin-top: 3px; }
.alert p { color: var(--text-2); }

.alert--info { background: var(--info-soft); border-color: rgba(106, 168, 255, 0.32); }
.alert--info svg { color: var(--info); }
.alert--warn { background: var(--warn-soft); border-color: rgba(255, 204, 77, 0.32); }
.alert--warn svg { color: var(--warn); }
.alert--bad { background: var(--bad-soft); border-color: rgba(255, 107, 107, 0.32); }
.alert--bad svg { color: var(--bad); }
.alert--ok { background: var(--ok-soft); border-color: rgba(61, 220, 151, 0.32); }
.alert--ok svg { color: var(--ok); }

.notice-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(255, 138, 61, 0.1), rgba(255, 197, 61, 0.04));
  border: 1px dashed var(--accent-line);
}
.notice-box__icon {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}
.notice-box strong { display: block; margin-bottom: 4px; }
.notice-box p { font-size: 0.9rem; color: var(--muted); }

.empty {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: clamp(38px, 6vw, 64px) 24px;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--line-2);
  border-radius: var(--r-xl);
}
.empty__icon {
  display: grid;
  place-items: center;
  width: 66px; height: 66px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}
.empty__title { font-size: 1.25rem; }
.empty__text { color: var(--muted); max-width: 52ch; }

/* 14. FORMS ================================================================ */

.form { display: grid; gap: 24px; }

.form__section {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 28px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}

.form__section-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.form__section-head .badge { margin-left: auto; }
.form__section-head h2,
.form__section-head h3 { font-size: 1.08rem; }

.form-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.form-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.field--full { grid-column: 1 / -1; }

.field { display: grid; gap: 7px; min-width: 0; }

.label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text-2);
  letter-spacing: 0.01em;
}

.req {
  color: var(--accent);
  font-weight: 800;
}

.input,
.select,
.textarea {
  width: 100%;
  padding: 12px 15px;
  border-radius: var(--r-md);
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  color: var(--text);
  font-size: 0.95rem;
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease);
}

.input::placeholder,
.textarea::placeholder { color: var(--muted-2); }

.input:hover,
.select:hover,
.textarea:hover { border-color: rgba(255, 255, 255, 0.24); }

.input:focus,
.select:focus,
.textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: #0e1626;
}

.textarea { min-height: 140px; resize: vertical; line-height: 1.6; }

.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a3bd' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 17px;
  padding-right: 42px;
}

.field__hint { font-size: 0.8rem; color: var(--muted-2); }

.field__error,
.alert--bad.is-field {
  font-size: 0.84rem;
  color: var(--bad);
  display: flex;
  gap: 6px;
  align-items: center;
}

.input.is-error,
.select.is-error,
.textarea.is-error { border-color: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }

.check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 0.92rem;
  color: var(--text-2);
  cursor: pointer;
}
.check__input {
  width: 19px; height: 19px;
  margin-top: 3px;
  accent-color: var(--accent);
  flex-shrink: 0;
}
.check__text { line-height: 1.55; }
.check a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

.search-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.search-bar .input { flex: 1 1 240px; }

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding-top: 6px;
}

.char-count {
  font-size: 0.78rem;
  color: var(--muted-2);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.hidden-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* 15. TABLES / METERS ====================================================== */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  min-width: 420px;
}
.table th,
.table td {
  padding: 13px 18px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.table thead th {
  background: var(--bg-3);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
.table td:last-child,
.table th:last-child { text-align: right; }
.table tfoot td {
  font-weight: 800;
  background: rgba(255, 138, 61, 0.07);
}
.table .is-strong { font-weight: 700; }

.meter {
  display: grid;
  gap: 8px;
}
.meter__label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--muted);
}
.meter__label strong { color: var(--text); }
.meter__track {
  height: 10px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.meter__bar {
  height: 100%;
  border-radius: var(--r-pill);
  background: var(--accent-grad);
}

/* 16. ACCORDION ============================================================ */

.acc { display: grid; gap: 11px; }

.acc__item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color 0.2s var(--ease);
}
.acc__item[open] { border-color: var(--accent-line); }

.acc__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 20px;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.99rem;
  list-style: none;
  transition: background 0.18s var(--ease);
}
.acc__head::-webkit-details-marker { display: none; }
.acc__head:hover { background: rgba(255, 255, 255, 0.04); }

.acc__q { flex: 1; }

.acc__toggle {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}
.acc__toggle .ic--minus { display: none; }
.acc__item[open] .acc__toggle .ic--minus { display: block; }
.acc__item[open] .acc__toggle .ic--plus { display: none; }

.acc__panel {
  padding: 0 20px 20px;
  color: var(--muted);
  font-size: 0.95rem;
}
.acc__panel p + p { margin-top: 12px; }

/* 17. TIMELINE ============================================================= */

.timeline {
  position: relative;
  display: grid;
  gap: 22px;
  padding-left: 30px;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(255, 138, 61, 0.1));
}

.timeline__item { position: relative; }

.timeline__item::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 22px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
}

.timeline__card {
  display: grid;
  gap: 12px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color 0.2s var(--ease);
}
.timeline__card:hover { border-color: var(--accent-line); }

.timeline__year {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.timeline__card h3 { font-size: 1.14rem; }
.timeline__card p { color: var(--muted); font-size: 0.94rem; }

/* 18. GALLERY & LIGHTBOX =================================================== */

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}

.gallery-item {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  aspect-ratio: 4 / 3;
  cursor: pointer;
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease);
}
.gallery-item:hover { transform: translateY(-4px); border-color: var(--accent-line); }

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.gallery-item:hover img { transform: scale(1.05); }

.gallery-item__overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 16px 14px;
  background: linear-gradient(180deg, transparent, rgba(4, 7, 13, 0.92));
  display: grid;
  gap: 5px;
  text-align: left;
}
.gallery-item__overlay strong { font-size: 0.95rem; }
.gallery-item__overlay span { font-size: 0.78rem; color: var(--muted); }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
}
.lightbox__scrim {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 12, 0.88);
  backdrop-filter: blur(5px);
}
.lightbox__close {
  position: absolute;
  top: 18px; right: 18px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid var(--line-2);
}
.lightbox__close:hover { background: var(--accent); color: var(--accent-ink); }

.lightbox__figure {
  position: relative;
  z-index: 1;
  max-width: min(1000px, 94vw);
  display: grid;
  gap: 14px;
}
.lightbox__img {
  max-width: 100%;
  max-height: 76vh;
  width: auto;
  margin-inline: auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--line-2);
  box-shadow: var(--sh-3);
}
.lightbox__caption {
  display: grid;
  gap: 4px;
  text-align: center;
  color: var(--text-2);
  font-size: 0.92rem;
}
.lightbox__caption span { color: var(--muted); font-size: 0.85rem; }

/* "Under maintenance" popup */

.maint-popup {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: grid;
  place-items: center;
  padding: 20px;
}

.maint-popup__scrim {
  position: absolute;
  inset: 0;
  background: rgba(3, 6, 12, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.maint-popup.is-open .maint-popup__scrim { opacity: 1; }

.maint-popup__dialog {
  position: relative;
  z-index: 1;
  width: min(440px, 94vw);
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 12px;
  padding: clamp(24px, 4vw, 34px);
  border-radius: var(--r-lg);
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  box-shadow: var(--sh-3);
  transform: translateY(14px) scale(0.98);
  opacity: 0;
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.maint-popup.is-open .maint-popup__dialog { transform: none; opacity: 1; }

.maint-popup__icon {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  font-size: 1.5rem;
  color: var(--warn);
  background: var(--warn-soft);
  border: 1px solid var(--line-2);
}

.maint-popup__title { font-size: 1.25rem; }
.maint-popup__text { color: var(--text-2); font-size: 0.95rem; }

.maint-popup__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 6px;
}

/* 19. SEARCH =============================================================== */

.popular { display: flex; flex-wrap: wrap; gap: 9px; }

/* 20. PROSE ================================================================ */

.prose {
  max-width: 72ch;
  font-size: 1.02rem;
  color: var(--text-2);
  line-height: 1.78;
}
.prose p + p { margin-top: 18px; }
.prose__h {
  margin-top: 40px;
  margin-bottom: 14px;
  font-size: clamp(1.25rem, 1.1rem + 0.8vw, 1.6rem);
  color: var(--text);
}
.prose__lead {
  font-size: 1.12rem;
  color: var(--text);
  font-weight: 500;
}
.prose .check-list { margin-top: 18px; }
.prose ul.bullets { display: grid; gap: 9px; margin-top: 16px; }
.prose ul.bullets li { padding-left: 20px; position: relative; }
.prose ul.bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  padding-bottom: 20px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
  font-size: 0.88rem;
  color: var(--muted);
}

.article-card {
  padding: clamp(24px, 4vw, 44px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
}

/* 21. FOOTER & FLOATS ====================================================== */

.site-footer {
  position: relative;
  margin-top: auto;
  padding-block: clamp(46px, 6vw, 74px) 26px;
  background: #05080f;
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.site-footer__glow {
  position: absolute;
  width: 620px; height: 320px;
  left: 50%; top: -170px;
  translate: -50% 0;
  background: radial-gradient(circle, rgba(255, 138, 61, 0.16), transparent 68%);
  pointer-events: none;
}

.footer__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: clamp(26px, 4vw, 46px);
}

.footer__col { display: grid; gap: 14px; align-content: start; }
.footer__col--brand { gap: 16px; }

.brand--light .brand__text { color: #fff; }
.brand--light .brand__name { color: #fff; }
.brand--light .brand__tag { color: var(--muted-2); }
.brand--light .brand__mark {
  background: rgba(255, 138, 61, 0.16);
  border-color: rgba(255, 138, 61, 0.35);
}

.footer__title {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.footer__about { color: var(--muted); font-size: 0.92rem; }

.footer__social { display: flex; gap: 9px; }
.footer__social a {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--text-2);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease);
}
.footer__social a:hover { background: var(--accent); color: var(--accent-ink); transform: translateY(-3px); }

.footer__links { display: grid; gap: 9px; }
.footer__links a {
  color: var(--muted);
  font-size: 0.93rem;
  transition: color 0.18s var(--ease), transform 0.18s var(--ease);
  display: inline-flex;
}
.footer__links a:hover { color: var(--accent); transform: translateX(4px); }

.footer__address { display: grid; gap: 5px; color: var(--muted); font-size: 0.92rem; }

.footer__contact { display: grid; gap: 9px; }
.footer__contact li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--muted);
}
.footer__contact svg { color: var(--accent); flex-shrink: 0; }
.footer__contact a:hover { color: var(--accent); }

.footer__note {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  color: var(--warn);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  align-items: center;
  justify-content: space-between;
  margin-top: clamp(30px, 4vw, 48px);
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--muted-2);
}
.footer__copy { color: var(--muted-2); }

.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer__legal a:hover { color: var(--accent); }

.fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 55;
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #1fbf6b;
  color: #04180d;
  box-shadow: 0 14px 34px rgba(31, 191, 107, 0.36);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}
.fab:hover { transform: translateY(-4px) scale(1.04); background: #25d67b; }

.to-top {
  position: fixed;
  right: 20px;
  bottom: 88px;
  z-index: 55;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  color: var(--text);
  box-shadow: var(--sh-2);
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}
.to-top:hover { background: var(--accent); color: var(--accent-ink); transform: translateY(-3px); }
.to-top[hidden] { display: none; }

/* 22. STATES & PRINT ======================================================= */

.state-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 40px 20px;
  background:
    radial-gradient(700px 400px at 50% 0%, rgba(255, 138, 61, 0.12), transparent 62%),
    var(--bg);
}

.state-page .empty { max-width: 640px; }

.card-grid-hover > * { height: 100%; }

@media print {
  .topbar, .site-header, .drawer, .fab, .to-top, .site-footer, .cta-band, .sec-head__action { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .article-card, .table-wrap { border: 1px solid #ccc; background: #fff; color: #000; }
  .prose, .prose__h, .card__text, .muted { color: #000; }
}

/* 23. RESPONSIVE =========================================================== */

@media (max-width: 1120px) {
  .nav__link { padding: 9px 9px; font-size: 0.88rem; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1000px) {
  .nav, .header__search { display: none; }
  .burger { display: flex; }
  .header__actions { margin-left: auto; }

  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__media { order: -1; }
  .hero__panel { right: 12px; bottom: -18px; }

  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .split,
  .split--wide-left,
  .split--wide-right,
  .split--media { grid-template-columns: minmax(0, 1fr); }

  .cta-band { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 760px) {
  :root { --header-h: 64px; }

  .topbar__list li:nth-child(n + 3) { display: none; }

  .grid--2,
  .grid--3,
  .grid--4 { grid-template-columns: minmax(0, 1fr); }

  .form-grid,
  .form-grid--3 { grid-template-columns: minmax(0, 1fr); }

  .dropdown__list { grid-template-columns: minmax(0, 1fr); }

  .event-card { grid-template-columns: 74px minmax(0, 1fr); }
  .event-card__day { font-size: 1.6rem; }

  .stat { padding: 22px 16px; }

  .footer__grid { grid-template-columns: minmax(0, 1fr); }

  .card__foot { flex-wrap: wrap; }

  .notice-item { padding: 16px; gap: 12px; }
  .notice-item__go { display: none; }

  .hero__cta .btn,
  .cta-band__actions .btn { width: 100%; }

  .fab { width: 50px; height: 50px; right: 14px; bottom: 14px; }
  .to-top { right: 14px; bottom: 76px; width: 42px; height: 42px; }
}

@media (max-width: 480px) {
  .brand__tag { display: none; }
  .event-card { grid-template-columns: minmax(0, 1fr); }
  .event-card__date {
    flex-direction: row;
    gap: 8px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 10px;
  }
  .event-card__day { font-size: 1.3rem; }
}

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