:root {
  --navy: #0b213e;
  --navy-strong: #071b31;
  --navy-soft: #173a63;
  --green: #1bb77d;
  --green-soft: #dffaf2;
  --gold: #d7b259;
  --bg: #f3f6fb;
  --card: #ffffff;
  --text: #1a2433;
  --muted: #4c6078;
  --border: rgba(12, 27, 47, 0.08);
  --shadow: 0 16px 36px rgba(17, 41, 74, 0.12);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(28px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 0 rgba(27, 183, 125, 0.14);
  }
  50% {
    box-shadow: 0 0 28px rgba(27, 183, 125, 0.22);
  }
}

@keyframes driftBackground {
  0% {
    transform: translate3d(-2%, 0, 0) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translate3d(2%, -2%, 0) scale(1.08);
    opacity: 1;
  }
  100% {
    transform: translate3d(-1%, 2%, 0) scale(1.04);
    opacity: 0.9;
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-12%) translateY(-6%);
  }
  100% {
    transform: translateX(10%) translateY(8%);
  }
}

@keyframes bgShift {
  0% {
    background-position: 0% 50%;
    transform: scale(1) translate3d(0, 0, 0);
  }
  50% {
    background-position: 60% 40%;
    transform: scale(1.08) translate3d(1.5%, -1.2%, 0);
  }
  100% {
    background-position: 100% 60%;
    transform: scale(1.12) translate3d(-1.4%, 1.8%, 0);
  }
}

@keyframes blobFloatOne {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.8;
  }
  25% {
    transform: translate3d(-15%, 18%, 0) scale(1.28);
    opacity: 1;
  }
  55% {
    transform: translate3d(18%, -14%, 0) scale(1.42);
    opacity: 0.95;
  }
  80% {
    transform: translate3d(-20%, 20%, 0) scale(1.55);
    opacity: 1;
  }
  100% {
    transform: translate3d(12%, -24%, 0) scale(1.58);
    opacity: 0.82;
  }
}

@keyframes blobFloatTwo {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.7;
  }
  30% {
    transform: translate3d(18%, -18%, 0) scale(1.35);
    opacity: 1;
  }
  60% {
    transform: translate3d(-22%, 16%, 0) scale(1.5);
    opacity: 0.96;
  }
  100% {
    transform: translate3d(24%, -20%, 0) scale(1.62);
    opacity: 0.8;
  }
}

@keyframes titleShimmer {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: -140% 0;
  }
}

@keyframes logoShine {
  to {
    transform: translateX(360%) skewX(-20deg);
  }
}

@keyframes starDrift {
  0% {
    background-position: 0 0, 40px 70px;
    opacity: 0.58;
  }
  100% {
    background-position: 36px -24px, 5px 108px;
    opacity: 0.9;
  }
}

@keyframes cardFloat {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-6px);
  }
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s ease, transform 0.8s ease, box-shadow 0.5s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.text-reveal {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(2px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.7s ease;
}

.text-reveal.is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  background: var(--navy-strong);
  color: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 42px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.topbar-links,
.topbar-meta {
  display: flex;
  align-items: center;
  gap: 18px;
}

.topbar-links a {
  opacity: 0.8;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 92px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand img {
  display: block;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: rgba(11, 33, 62, 0.04);
  padding: 6px;
}

.brand-mark {
  position: relative;
  display: grid;
  flex: 0 0 52px;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
}

.brand-mark::after {
  position: absolute;
  top: -25%;
  bottom: -25%;
  left: -55%;
  width: 38%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
  content: "";
  pointer-events: none;
  transform: translateX(-120%) skewX(-20deg);
}

.brand:hover .brand-mark::after,
.brand:focus-visible .brand-mark::after {
  animation: logoShine 700ms ease;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title {
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.03em;
}

.brand-title {
  font-size: 0.9rem;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  font-size: 0.92rem;
  color: var(--navy);
  font-weight: 600;
}

.main-nav a {
  position: relative;
  opacity: 0.9;
  transition: opacity 0.2s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  width: 100%;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  transform: scaleX(1);
}

.site-search {
  position: relative;
  flex: 0 0 auto;
}

.site-search-toggle {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  padding: 10px;
  border: 1px solid rgba(11, 33, 62, 0.1);
  border-radius: 50%;
  background: linear-gradient(145deg, #fff, #f3f8f6);
  color: var(--navy);
  cursor: pointer;
  box-shadow: 0 5px 14px rgba(11, 33, 62, 0.1);
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.site-search-toggle:hover,
.site-search-toggle[aria-expanded="true"] {
  transform: translateY(-1px);
  background: var(--green);
  color: #fff;
  box-shadow: 0 8px 18px rgba(27, 183, 125, 0.24);
}

.site-search-toggle svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.site-search-form {
  position: absolute;
  top: calc(100% + 12px);
  right: -8px;
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(440px, calc(100vw - 32px));
  padding: 12px;
  border: 1px solid rgba(11, 33, 62, 0.1);
  border-radius: 18px;
  background: linear-gradient(145deg, #fff 0%, #f8fbfa 100%);
  box-shadow: 0 18px 48px rgba(11, 33, 62, 0.2);
}

.site-search-form[hidden] {
  display: none;
}

.site-search-input-wrap {
  display: flex;
  min-width: 0;
  flex: 1;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(11, 33, 62, 0.1);
  border-radius: 13px;
  background: #fff;
  color: #718093;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-search-input-wrap:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(27, 183, 125, 0.13);
}

.site-search-input-wrap svg {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 2;
}

.site-search-form input {
  min-width: 0;
  flex: 1;
  height: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--navy);
  font: inherit;
}

.site-search-form input:focus {
  outline: 0;
}

.site-search-submit {
  min-height: 48px;
  padding: 0 18px;
  border: 0;
  border-radius: 13px;
  background: var(--green);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(27, 183, 125, 0.22);
  transition: background 0.2s ease, transform 0.2s ease;
}

.site-search-submit:hover {
  transform: translateY(-1px);
  background: #15976a;
}

.site-search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  max-height: min(55vh, 390px);
  overflow: auto;
  padding: 7px;
  border: 1px solid rgba(11, 33, 62, 0.1);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(11, 33, 62, 0.18);
}

.site-search-results[hidden] {
  display: none;
}

.site-search-result {
  display: grid;
  gap: 4px;
  padding: 11px 13px;
  border-radius: 11px;
  color: var(--navy);
  text-decoration: none;
  transition: background 0.15s ease;
}

.site-search-result:hover,
.site-search-result:focus-visible {
  outline: 0;
  background: #eff8f4;
}

.site-search-result strong {
  font-size: 0.92rem;
}

.site-search-result span,
.site-search-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.site-search-empty {
  padding: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  min-height: 48px;
  padding: 0 24px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.01);
}

.btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 10px 24px rgba(27, 183, 125, 0.3);
}

.btn-secondary {
  color: var(--navy);
  border: 1px solid rgba(11, 33, 62, 0.14);
  background: rgba(255, 255, 255, 0.7);
}

.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #020611 0%, #06152d 58%, #0c2644 100%);
  color: #fff;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: -10%;
  border-radius: 0;
  filter: none;
  pointer-events: none;
  will-change: background-position, opacity;
}

.hero::before {
  background-image:
    radial-gradient(1px 1px at 20px 30px, rgba(255,255,255,0.96) 98%, transparent),
    radial-gradient(1px 1px at 140px 110px, rgba(177,211,255,0.9) 98%, transparent);
  background-size: 220px 180px, 310px 260px;
  animation: starDrift 18s ease-in-out infinite alternate;
}

.hero::after {
  background-image:
    radial-gradient(2px 2px at 70px 90px, rgba(255,255,255,0.78) 96%, transparent),
    radial-gradient(1px 1px at 180px 50px, rgba(190,220,255,0.7) 98%, transparent);
  background-size: 360px 290px, 480px 370px;
  animation: starDrift 26s ease-in-out infinite alternate-reverse;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse at 50% 100%, rgba(40, 94, 148, 0.34), transparent 58%),
    linear-gradient(180deg, rgba(0,0,0,0.08), rgba(2, 14, 33, 0.26));
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 52px;
  padding: 88px 0 92px;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(3.3rem, 5.7vw, 7.2rem);
  line-height: 0.87;
  letter-spacing: -0.07em;
  max-width: 680px;
  font-weight: 900;
  text-shadow: 0 8px 18px rgba(8, 17, 30, 0.24);
  color: rgba(255, 255, 255, 0.97);
  background: linear-gradient(105deg, #fff 34%, #b8ffdf 48%, #fff 62%);
  background-clip: text;
  background-size: 240% 100%;
  -webkit-text-fill-color: transparent;
  animation: titleShimmer 7s linear infinite;
}

.hero-copy p {
  margin-top: 20px;
  max-width: 620px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.06rem;
}

.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
}

.hero-points {
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: rgba(255,255,255,0.76);
  font-weight: 600;
}

.hero-points li {
  position: relative;
  padding-left: 18px;
}

.hero-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}

.hero-panel {
  align-self: center;
}

.panel-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  animation: cardFloat 10s ease-in-out infinite;
}

.panel-card h2 {
  margin: 16px 0 12px;
  font-size: clamp(1.7rem, 2vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.panel-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
}

.panel-tag {
  display: inline-flex;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(27, 183, 125, 0.14);
  border: 1px solid rgba(27, 183, 125, 0.22);
  color: #d7ffe9;
  font-weight: 700;
  font-size: 0.75rem;
}

.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 18px;
}

.mini-card {
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mini-card strong {
  font-size: 1.8rem;
  letter-spacing: -0.04em;
}

.mini-card span {
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
}

.mini-card.accent {
  background: rgba(27, 183, 125, 0.12);
}

.stats-strip {
  background: linear-gradient(180deg, #edf2fb 0%, #f7f9fc 100%);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: -34px;
  position: relative;
  z-index: 2;
}

.stat-item {
  background: var(--card);
  border-radius: 18px;
  padding: 24px 20px;
  border: 1px solid var(--border);
  box-shadow: 0 10px 26px rgba(17, 41, 74, 0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  text-align: center;
}

.stat-value {
  color: var(--navy);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.04em;
}

.stat-label {
  color: var(--muted);
  font-size: 0.86rem;
}

.section {
  padding: 96px 0;
}

.section-alt {
  background: #edf3fb;
}

.about-section {
  background: #f9fbff;
}

.split-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: start;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 32px;
}

.about-section h2,
.section-head h2,
.callout-box h2,
.contact-card h2 {
  margin: 14px 0 0;
  font-size: clamp(2rem, 3vw, 3rem);
  letter-spacing: -0.05em;
  line-height: 1.08;
  color: var(--navy);
}

.split-layout p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.03rem;
}

.feature-grid,
.news-grid,
.link-grid {
  display: grid;
  gap: 22px;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px 22px;
  box-shadow: 0 14px 28px rgba(18, 39, 61, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
}

.feature-card:hover,
.news-card:hover,
.link-card:hover,
.contact-card:hover,
.map-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 40px rgba(18, 39, 61, 0.09);
}

.icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green-soft);
  color: var(--navy);
  font-weight: 800;
  margin-bottom: 16px;
}

.feature-card h3,
.news-card h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 1.35rem;
  letter-spacing: -0.04em;
  line-height: 1.2;
}

.feature-card p,
.news-card p {
  margin: 0;
  color: var(--muted);
}

.news-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.news-card {
  background: var(--card);
  border-radius: 20px;
  padding: 24px 22px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 24px rgba(17, 41, 74, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-tag {
  display: inline-block;
  margin-bottom: 18px;
  padding: 7px 12px;
  background: var(--green-soft);
  color: var(--navy);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.news-card a,
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--green);
  font-weight: 700;
}

.news-read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.news-read:hover,
.news-read:focus-visible {
  color: #087c57;
  text-decoration: underline;
}

.text-link {
  margin-top: 0;
}

.link-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.link-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px 20px;
  min-height: 160px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #fff 0%, #f7f9fc 100%);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.link-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 34px rgba(13, 32, 56, 0.08);
}

.link-name {
  font-weight: 800;
  color: var(--navy);
  font-size: 1.1rem;
  letter-spacing: -0.03em;
}

.link-meta {
  color: var(--muted);
  font-size: 0.86rem;
}

.callout-section {
  background: linear-gradient(180deg, #f9fbff 0%, #edf4fb 100%);
}

.callout-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--navy);
  color: #fff;
  border-radius: 28px;
  padding: 36px 32px;
  box-shadow: var(--shadow);
}

.callout-box .section-kicker {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
}

.callout-box h2 {
  color: #fff;
}

.telegram-section {
  background: linear-gradient(180deg, #f9fbff 0%, #edf4fb 100%);
}

.telegram-callout {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 32px;
  border-radius: 28px;
  background: linear-gradient(120deg, #0b213e, #12406a);
  color: #fff;
  box-shadow: var(--shadow);
}

.telegram-callout-icon {
  display: grid;
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  place-items: center;
  border-radius: 20px;
  background: #229ed9;
  color: #fff;
}

.telegram-callout-icon svg {
  width: 34px;
  height: 34px;
  fill: currentColor;
}

.telegram-callout-copy {
  flex: 1;
}

.telegram-callout .section-kicker {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
}

.telegram-callout h2 {
  margin: 12px 0 8px;
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  line-height: 1.15;
}

.telegram-callout p {
  margin: 0;
  color: rgba(255,255,255,0.76);
}

.telegram-soon {
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: 999px;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 30px;
  align-items: stretch;
}

.contact-card,
.map-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: 0 12px 24px rgba(17, 41, 74, 0.05);
}

.contact-card {
  padding: 32px;
  width: 100%;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 18px;
}

.contact-list li {
  display: grid;
  gap: 6px;
  color: var(--muted);
}

.contact-list a,
.contact-list span {
  color: var(--navy);
  font-weight: 600;
}

.label {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.socials {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green-soft);
  color: var(--navy);
  font-weight: 800;
}

.map-card {
  position: relative;
  display: block;
  min-height: 420px;
  background:
    linear-gradient(140deg, rgba(11, 33, 62, 0.92), rgba(11, 33, 62, 0.7)),
    url('https://images.unsplash.com/photo-1524661135-423995f22d0b?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.map-card:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0));
}

.map-pin {
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--green);
  border: 8px solid rgba(255,255,255,0.8);
  box-shadow: 0 0 0 16px rgba(27, 183, 125, 0.15);
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
}

.map-info {
  position: absolute;
  left: 30px;
  bottom: 30px;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 14px 18px;
  border-radius: 16px;
  backdrop-filter: blur(8px);
}

.site-footer {
  background: var(--navy-strong);
  color: rgba(255,255,255,0.7);
  padding: 24px 0;
}

.footer-inner {
  display: flex;
  justify-content: center;
  text-align: center;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(11,33,62,0.12);
  background: rgba(11,33,62,0.02);
  border-radius: 12px;
  padding: 10px 8px;
}

.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--navy);
  border-radius: 999px;
  margin: 5px 0;
}

@media (max-width: 980px) {
  .nav-wrap {
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .nav-toggle {
    display: inline-block;
    margin-left: auto;
  }

  .main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding-top: 10px;
    font-size: 1rem;
  }

  .main-nav.open {
    display: flex;
  }

  .header-question {
    display: none;
  }

  .hero-inner,
  .split-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .feature-grid,
  .news-grid,
  .link-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .topbar-inner {
    justify-content: center;
  }

  .stats-grid,
  .feature-grid,
  .news-grid,
  .link-grid {
    grid-template-columns: 1fr;
  }

  .callout-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .telegram-callout {
    flex-direction: column;
    align-items: flex-start;
    padding: 26px 22px;
  }

  .hero-copy h1 {
    font-size: 2.5rem;
  }

  .section {
    padding: 72px 0;
  }
}

.topbar-inner {
  min-height: 38px;
}

.topbar-links {
  gap: 8px;
}

.language-switch {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 5px 9px;
  background: transparent;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.language-switch:hover,
.language-switch.is-active {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.topbar-note {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
}

.brand {
  flex-shrink: 0;
  gap: 12px;
}

.brand-mark {
  width: 72px;
  height: 72px;
  flex-basis: 72px;
}

.brand img {
  width: 72px;
  height: 72px;
  padding: 2px;
  background: transparent;
}

.brand-copy {
  max-width: 235px;
  gap: 4px;
}

.brand-title {
  font-size: 0.83rem;
}

.main-nav {
  gap: 18px;
  font-size: 0.84rem;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-dropdown-trigger::before {
  content: "";
  position: absolute;
  top: 100%;
  left: -12px;
  right: -12px;
  height: 22px;
}

.nav-dropdown-trigger::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.dropdown-menu {
  position: absolute;
  z-index: 25;
  top: calc(100% + 17px);
  left: -16px;
  display: none;
  min-width: 245px;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(9, 29, 53, 0.16);
}

.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--navy);
  font-size: 0.86rem;
  line-height: 1.35;
}

.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
  background: #eff8f5;
  color: #087c57;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  display: block;
}

.header-question {
  flex-shrink: 0;
  min-height: 42px;
  padding: 0 17px;
  font-size: 0.82rem;
}

.hero-inner {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: 38px 0 46px;
}

.hero-copy {
  max-width: 900px;
}

.hero-copy h1 {
  max-width: 900px;
  font-size: clamp(2.6rem, 4vw, 4.2rem);
  line-height: 1;
}

.hero-identity {
  margin-bottom: 12px;
}

.hero-copy p {
  margin-top: 14px;
  max-width: 720px;
}

.hero-actions {
  margin-top: 18px;
}

.hero-identity {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.hero-logo {
  width: 100px;
  height: 100px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
}

.hero-identity .eyebrow {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

.contact-symbol {
  display: inline-grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border-radius: 9px;
  color: #fff;
  font-size: 0.9rem;
}

.phone-symbol {
  background: #22a06b;
}

.mail-symbol {
  background: #e94b4b;
}

.two-gis-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 28px;
  padding: 0 5px;
  border-radius: 7px;
  background: #20a85a;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.icon-wrap {
  color: #087c57;
}

.icon-wrap svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-law {
  color: #2867a7;
  background: #e6f0ff;
}

.icon-youth {
  color: #9c58b1;
  background: #f5e9fb;
}

.icon-safety {
  color: #d1841a;
  background: #fff2db;
}

.feature-card {
  display: block;
  color: inherit;
}

.all-directions {
  margin-top: 22px;
  text-align: right;
}

.legal-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.legal-card-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 13px;
  background: #e8f4ff;
  color: #1466a5;
  font-size: 1.3rem;
  font-weight: 800;
}

.year-filter {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.year-filter select {
  min-width: 130px;
  padding: 10px 34px 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--navy);
  font-weight: 700;
}

.news-card time {
  display: block;
  margin: -8px 0 14px;
  color: var(--muted);
  font-size: 0.82rem;
}

.publication-note,
.source-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.calendar-icon {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: #e0f6ee;
  color: #07805a;
  font-size: 1.25rem;
}

.address-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.socials {
  gap: 12px;
}

.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f3f5;
}

.social-icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.social-icon.instagram {
  color: #d62976;
  background: #fff0f6;
}

.social-icon.instagram svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.social-icon.instagram .icon-dot {
  fill: currentColor;
  stroke: none;
}

.social-icon.facebook {
  color: #1877f2;
  background: #edf4ff;
}

.social-icon.youtube {
  color: #f00;
  background: #fff0f0;
}

.social-icon.telegram {
  color: #229ed9;
  background: #e8f7ff;
}

.social-icon-soon {
  opacity: 0.62;
  cursor: default;
}

.contact-question {
  margin-top: 24px;
}

.contact-socials {
  margin-top: 24px;
}

.page-view {
  min-height: 65vh;
  background: linear-gradient(180deg, #f8fbff 0%, #edf4fb 100%);
}

.page-view[hidden],
#home-content[hidden] {
  display: none;
}

.page-content {
  max-width: 1000px;
}

.back-link {
  display: inline-flex;
  margin: 2px 0 30px;
  color: #087c57;
  font-weight: 700;
}

.page-heading {
  max-width: 850px;
  margin-bottom: 34px;
}

.page-heading .section-kicker {
  background: #e3f6ef;
  border-color: #d5efe5;
  color: #087c57;
}

.page-heading h1 {
  margin: 18px 0 12px;
  color: var(--navy);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  letter-spacing: -0.06em;
  line-height: 1.05;
}

.page-heading > p,
.page-body {
  max-width: 790px;
  color: var(--muted);
  font-size: 1.08rem;
}

.page-body {
  margin: 0 0 28px;
}

.page-link-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 20px;
}

.page-link-card {
  position: relative;
  min-height: 120px;
  padding-right: 48px;
}

.page-link-card .card-arrow {
  position: absolute;
  top: 23px;
  right: 20px;
  color: #168860;
  font-size: 1.1rem;
}

.official-button {
  margin-top: 28px;
}

.application-form {
  margin-top: 38px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(17, 41, 74, 0.08);
}

.application-form h2 {
  margin: 0 0 22px;
  color: var(--navy);
  font-size: 1.55rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.form-grid label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 700;
}

.form-grid input,
.form-grid textarea,
.form-grid select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  border: 1px solid rgba(12, 27, 47, 0.16);
  border-radius: 10px;
  background: #fbfcfe;
  color: var(--text);
}

.form-grid input[type="file"] {
  padding: 8px;
}

.form-grid label small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 400;
}

.form-grid input:focus,
.form-grid textarea:focus,
.form-grid select:focus,
.year-filter select:focus {
  outline: 3px solid rgba(27, 183, 125, 0.22);
  border-color: var(--green);
}

.form-wide {
  grid-column: 1 / -1;
}

.form-notice {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.87rem;
}

.union-history {
  display: grid;
  gap: 18px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.union-history-item {
  display: grid;
  grid-template-columns: minmax(120px, 170px) minmax(0, 1fr);
  gap: 20px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--card);
  box-shadow: 0 10px 24px rgba(17, 41, 74, 0.06);
}

.union-history-year {
  color: #168860;
  font-size: 1.15rem;
  font-weight: 800;
}

.union-history-item h2 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1.15rem;
}

.union-history-item p {
  margin: 0;
  color: var(--muted);
}

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.faq-item {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: #fff;
}

.faq-item summary {
  color: var(--navy);
  font-weight: 800;
  cursor: pointer;
}

.faq-item p {
  margin: 14px 0 2px;
  color: var(--muted);
}

.source-note {
  margin-top: 32px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.source-note a {
  color: #087c57;
  font-weight: 700;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 30px;
  border: 1px dashed rgba(12, 27, 47, 0.2);
  border-radius: 18px;
  color: var(--muted);
}

@media (max-width: 1180px) {
  .nav-wrap {
    gap: 12px;
  }

  .main-nav {
    gap: 12px;
    font-size: 0.78rem;
  }

  .brand-mark {
    width: 62px;
    height: 62px;
    flex-basis: 62px;
  }

  .brand img {
    width: 62px;
    height: 62px;
  }

  .brand-copy {
    max-width: 190px;
  }

  .header-question {
    padding: 0 12px;
    font-size: 0.76rem;
  }
}

@media (max-width: 980px) {
  .btn-primary {
    display: inline-flex;
  }

  .nav-wrap {
    flex-wrap: wrap;
    padding: 10px 0;
  }

  .main-nav {
    order: 4;
    gap: 12px;
  }

  .main-nav.open {
    display: flex;
    max-height: min(65vh, 500px);
    overflow-y: auto;
  }

  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-trigger::before,
  .nav-dropdown-trigger::after {
    display: none;
  }

  .dropdown-menu {
    position: static;
    display: grid;
    min-width: 0;
    margin: 5px 0 0 12px;
    padding: 5px;
    border: 0;
    border-left: 2px solid #dcefe8;
    border-radius: 0;
    box-shadow: none;
  }

  .header-question {
    display: inline-flex;
    order: 3;
    min-height: 40px;
    margin-left: 0;
  }

  .legal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .topbar-inner {
    justify-content: space-between;
  }

  .topbar-note {
    font-size: 0.68rem;
  }

  .brand-mark {
    width: 56px;
    height: 56px;
    flex-basis: 56px;
  }

  .brand img {
    width: 56px;
    height: 56px;
  }

  .brand-copy {
    max-width: 180px;
  }

  .header-question {
    padding: 0 12px;
    font-size: 0.72rem;
  }

  .hero-inner {
    gap: 0;
    padding: 34px 0 40px;
  }

  .hero-identity {
    gap: 12px;
    margin-bottom: 20px;
  }

  .hero-logo {
    width: 76px;
    height: 76px;
    border-radius: 17px;
  }

  .hero-copy h1 {
    font-size: clamp(2.3rem, 10vw, 3rem);
    line-height: 1;
  }

  .legal-grid,
  .page-link-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-wide {
    grid-column: auto;
  }

  .union-history-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 20px;
  }

  .application-form {
    padding: 20px 16px;
  }

  .year-filter {
    width: 100%;
    justify-content: space-between;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .btn-primary {
    display: inline-flex;
  }

  .header-question {
    display: inline-flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.map-card {
  min-height: 420px;
  background: #e8f0e9 url("assets/astana-map.svg") center / 100% 100% no-repeat;
}

.map-card::before {
  background: linear-gradient(180deg, rgba(13, 36, 57, 0) 48%, rgba(13, 36, 57, 0.16) 100%);
}

.map-info {
  z-index: 1;
  left: 22px;
  bottom: 22px;
  gap: 8px;
  max-width: calc(100% - 44px);
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.72);
  color: var(--navy);
  box-shadow: 0 12px 30px rgba(17, 41, 74, 0.16);
}

.map-info strong {
  font-size: 1rem;
}

.map-info > span:not(.two-gis-mark) {
  color: var(--muted);
  font-size: 0.85rem;
}

.map-info .map-subtitle {
  padding-top: 5px;
  border-top: 1px solid var(--border);
  font-size: 0.75rem !important;
}

.assistant-widget {
  position: fixed;
  z-index: 40;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  font-family: "Inter", sans-serif;
}

.assistant-launcher {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 20px 0 15px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #0d8c68, #14b784);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
  box-shadow: 0 12px 32px rgba(5, 90, 68, 0.3);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.assistant-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(5, 90, 68, 0.36);
}

.assistant-launcher-icon {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  font-size: 1.15rem;
}

.assistant-panel {
  display: flex;
  flex-direction: column;
  width: min(390px, calc(100vw - 32px));
  height: min(540px, calc(100dvh - 120px));
  min-height: 330px;
  overflow: hidden;
  border: 1px solid rgba(12, 27, 47, 0.1);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(5, 28, 50, 0.24);
  animation: assistantAppear 0.2s ease-out;
}

.assistant-panel[hidden] {
  display: none;
}

@keyframes assistantAppear {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.assistant-header {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 76px;
  padding: 14px 16px;
  background: linear-gradient(120deg, #0b765b, #10a87a);
  color: #fff;
}

.assistant-avatar {
  display: inline-grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 0.9rem;
  font-weight: 900;
}

.assistant-heading {
  display: grid;
  gap: 4px;
  flex: 1;
}

.assistant-heading strong {
  font-size: 0.95rem;
}

.assistant-heading span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
}

.assistant-close {
  display: inline-grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.45rem;
  cursor: pointer;
}

.assistant-messages {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  padding: 16px;
  background: #f6f9fc;
}

.assistant-disclaimer {
  margin: 0;
  padding: 9px 11px;
  border: 1px solid #e8e4cf;
  border-radius: 11px;
  background: #fff9e9;
  color: #776334;
  font-size: 0.72rem;
  line-height: 1.45;
}

.assistant-message {
  width: fit-content;
  max-width: 90%;
  margin: 0;
  padding: 11px 13px;
  border-radius: 15px;
  font-size: 0.85rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.assistant-reply {
  align-self: flex-start;
  border: 1px solid #e4eaf0;
  border-bottom-left-radius: 5px;
  background: #fff;
  color: var(--text);
}

.assistant-question {
  align-self: flex-end;
  border-bottom-right-radius: 5px;
  background: #dcf4ea;
  color: #164b3a;
}

.assistant-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--border);
  background: #fff;
}

.assistant-form input {
  min-width: 0;
  flex: 1;
  padding: 11px 13px;
  border: 1px solid rgba(12, 27, 47, 0.14);
  border-radius: 12px;
  background: #f9fbfd;
  color: var(--text);
  font-size: 0.86rem;
}

.assistant-form input:focus {
  outline: 3px solid rgba(27, 183, 125, 0.18);
  border-color: var(--green);
}

.assistant-send {
  display: inline-grid;
  width: 44px;
  flex: 0 0 44px;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: var(--green);
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
}

.assistant-contact {
  padding: 0 14px 14px;
  background: #fff;
  color: #087c57;
  font-size: 0.78rem;
  font-weight: 700;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

@media (max-width: 620px) {
  .assistant-widget {
    right: 14px;
    bottom: 14px;
  }

  .assistant-launcher {
    min-height: 52px;
    padding-right: 16px;
    font-size: 0.84rem;
  }

  .assistant-panel {
    width: calc(100vw - 28px);
    height: min(520px, calc(100dvh - 100px));
  }

  .map-card {
    min-height: 340px;
  }
}

.topbar-socials {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.topbar-contact {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
}

.topbar-contact:hover {
  color: #fff;
}

.topbar-contact span:first-child {
  display: inline-grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.topbar-socials .social-icon {
  width: 30px;
  height: 30px;
}

.nav-subdropdown {
  position: relative;
}

.nav-subdropdown-trigger {
  display: block;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--navy);
  font-size: 0.86rem;
  line-height: 1.35;
}

.nav-subdropdown-trigger::after {
  content: "›";
  float: right;
  margin-left: 12px;
  font-size: 1.1rem;
  line-height: 1;
}

.nav-subdropdown-trigger:hover,
.nav-subdropdown-trigger:focus-visible {
  background: #eff8f5;
  color: #087c57;
}

.dropdown-submenu {
  position: absolute;
  z-index: 26;
  top: 0;
  left: calc(100% - 1px);
  display: none;
  min-width: 270px;
  padding: 9px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(9, 29, 53, 0.16);
}

.dropdown-submenu a {
  display: block;
  padding: 10px 12px;
  border-radius: 9px;
  color: var(--navy);
  font-size: 0.86rem;
  line-height: 1.35;
}

.dropdown-submenu a:hover,
.dropdown-submenu a:focus-visible {
  background: #eff8f5;
  color: #087c57;
}

.nav-subdropdown:hover .dropdown-submenu,
.nav-subdropdown:focus-within .dropdown-submenu {
  display: block;
}

.facebook-posts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.news-video-frame {
  width: 100%;
  aspect-ratio: 9 / 16;
  max-height: 460px;
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 14px;
  background: #071b31;
}

.news-video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (max-width: 980px) {
  .news-video-frame {
    height: min(620px, 177.78vw);
    max-height: none;
    aspect-ratio: auto;
  }
}

.resource-card {
  min-height: 180px;
}

.resource-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  width: auto;
  margin-top: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #087c57;
  font-size: 0.88rem;
  font-weight: 700;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.resource-link:hover,
.resource-link:focus-visible {
  color: #065e42;
  text-decoration: underline;
}

.document-dialog {
  width: min(1000px, calc(100vw - 32px));
  max-width: none;
  height: min(86vh, 900px);
  max-height: calc(100vh - 32px);
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.document-dialog::backdrop {
  background: rgba(3, 12, 26, 0.72);
  backdrop-filter: blur(4px);
}

.document-dialog-header {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
}

.document-dialog-header h2 {
  margin: 0;
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.35;
}

.news-dialog {
  height: min(78vh, 820px);
}

.news-dialog-body {
  max-height: calc(100% - 64px);
  padding: 20px 24px 32px;
  overflow: auto;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.news-dialog-body p {
  margin: 0 0 16px;
  white-space: pre-line;
}

.news-dialog-body p:last-child {
  margin-bottom: 0;
}

.document-dialog-close {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f0f4f8;
  color: var(--navy);
  font-size: 1.5rem;
  cursor: pointer;
}

.document-dialog iframe {
  display: block;
  width: 100%;
  height: calc(100% - 64px);
  border: 0;
  background: #f7f9fc;
}

.document-dialog iframe[hidden] {
  display: none;
}

.protected-pdf-viewer {
  width: 100%;
  height: calc(100% - 64px);
  overflow: auto;
  padding: 18px;
  background: #e8edf3;
  overscroll-behavior: contain;
  user-select: none;
  -webkit-user-select: none;
}

.protected-pdf-viewer[hidden] {
  display: none;
}

.protected-pdf-page {
  max-width: 100%;
  margin: 0 auto 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 12px rgba(17, 41, 74, 0.18);
}

.protected-pdf-page canvas {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.protected-pdf-message {
  margin: 0;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.protected-pdf-page-error {
  display: grid;
  min-height: 120px;
  place-items: center;
  padding: 20px;
  color: #8d2635;
  text-align: center;
}

.document-dialog-protected .document-dialog-header {
  user-select: none;
  -webkit-user-select: none;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 28px;
}

.staff-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card);
  box-shadow: 0 12px 24px rgba(17, 41, 74, 0.05);
}

.staff-card h2 {
  margin: 14px 0;
  color: var(--navy);
  font-size: 1.15rem;
  line-height: 1.25;
}

.staff-card h2 span {
  display: block;
  white-space: nowrap;
}

.staff-card p {
  margin: 8px 0 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.staff-card a {
  color: var(--navy);
  font-weight: 700;
}

.staff-photo-placeholder {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #e8f4ff, #dffaf2);
  color: #087c57;
  font-size: 2rem;
}

.contact-grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

@media (max-width: 980px) {
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 980px) {
  .dropdown-submenu {
    position: static;
    display: grid;
    min-width: 0;
    margin: 4px 0 0 12px;
    padding: 5px;
    border: 0;
    border-left: 2px solid #dcefe8;
    border-radius: 0;
    box-shadow: none;
  }

  .nav-subdropdown-trigger {
    padding-left: 12px;
  }

  .nav-subdropdown-trigger::after {
    display: none;
  }

  .staff-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 7px 0;
  }

  .topbar-socials {
    width: 100%;
    gap: 7px;
  }

  .topbar-contact {
    font-size: 0.66rem;
  }

  .staff-grid {
    grid-template-columns: 1fr;
  }

  .document-dialog {
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
  }

  .document-dialog-header {
    min-height: 72px;
    padding: 10px 14px;
  }

  .document-dialog iframe {
    height: calc(100% - 72px);
  }

  .protected-pdf-viewer {
    height: calc(100% - 72px);
    padding: 12px;
  }

  .news-dialog-body {
    max-height: calc(100% - 72px);
    padding: 18px 16px 28px;
  }
}
