:root {
  --blue: #1e4e8c;
  --green: #2f7468;
  --white: #f8faf8;
  --surface: #ffffff;
  --soft: #dce8ee;
  --mint: rgba(47, 116, 104, 0.1);
  --shadow: 0 18px 48px rgba(30, 78, 140, 0.2);
  --soft-shadow: 0 12px 30px rgba(30, 78, 140, 0.1);
  --card-shadow: 0 16px 38px rgba(30, 78, 140, 0.11);
  --section-curve: 28px;
  --radius: 8px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--blue);
  background: var(--white);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  padding-bottom: 112px;
  overflow-x: hidden;
}

body.sheet-open {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

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

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3,
.brand,
button,
.primary-btn,
.secondary-btn,
.section-cta {
  font-family: "Manrope", system-ui, sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 12ch;
  color: var(--green);
  font-size: clamp(2.45rem, 12vw, 4.9rem);
  line-height: 0.98;
  font-weight: 800;
}

h1 span {
  color: var(--blue);
}

h2 {
  font-size: clamp(1.72rem, 6.8vw, 3.25rem);
  line-height: 1.05;
  font-weight: 800;
}

h3 {
  font-size: 1.02rem;
  line-height: 1.2;
  font-weight: 800;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 14px clamp(18px, 4vw, 48px);
  background: rgba(248, 250, 248, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--soft);
  transition: box-shadow 180ms ease, border-color 180ms ease;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--blue);
  font-size: 1rem;
  font-weight: 800;
  white-space: nowrap;
}

.brand-mark {
  display: block;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  padding: 2px;
  object-fit: contain;
  background: var(--surface);
  border: 1px solid var(--soft);
  border-radius: 50%;
}

.small-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 13px;
  color: var(--green);
  border: 1px solid var(--green);
  border-radius: 999px;
  font: 800 0.82rem/1 "Manrope", system-ui, sans-serif;
  white-space: nowrap;
  transition: transform 180ms var(--ease), background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.section-pad {
  padding: clamp(62px, 12vw, 86px) clamp(18px, 4vw, 56px);
}

.hero {
  position: relative;
  display: grid;
  align-content: center;
  gap: 30px;
  min-height: min(690px, calc(100svh - 68px));
  padding-top: clamp(38px, 8vh, 82px);
  padding-bottom: clamp(80px, 12vh, 118px);
  background: var(--white);
}

.hero::after {
  position: absolute;
  right: clamp(18px, 7vw, 80px);
  bottom: 26px;
  width: min(42vw, 260px);
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(30, 78, 140, 0.18), transparent);
}

.hero-copy {
  display: grid;
  gap: 16px;
}

.eyebrow {
  color: var(--green);
  font: 800 0.76rem/1.1 "Manrope", system-ui, sans-serif;
  text-transform: uppercase;
}

.hero-subtitle,
.section-heading p,
.card-copy,
.article-card p,
.resource-card p,
.faq-list p,
.crisis-content p,
.footer-intro p,
.footer-note {
  color: rgba(30, 78, 140, 0.78);
}

.hero-subtitle {
  max-width: 34rem;
  font-size: 1.02rem;
}

.quick-options,
.topic-row,
.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip,
.topic-row a,
.badge-row span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 13px;
  color: var(--blue);
  background: var(--soft);
  border: 1px solid var(--soft);
  border-radius: 999px;
  font: 800 0.86rem/1.1 "Manrope", system-ui, sans-serif;
  transition: transform 180ms var(--ease), background-color 180ms ease, border-color 180ms ease, color 180ms ease,
    box-shadow 180ms ease;
}

.topic-row a:nth-child(4n + 1),
.badge-row span:nth-child(2) {
  color: var(--green);
  background: var(--mint);
  border-color: var(--mint);
}

.chip,
.filter-options button {
  cursor: pointer;
}

.chip:hover,
.chip:focus-visible,
.topic-row a:hover,
.topic-row a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  transform: translateY(-1px);
}

.trust-points {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--blue);
  font-weight: 700;
}

.trust-points li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 24px;
  line-height: 1.35;
}

.trust-points li::before {
  display: inline-grid;
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  place-items: center;
  content: "";
  background:
    linear-gradient(135deg, transparent 44%, var(--white) 45% 55%, transparent 56%) 5px 9px / 8px 6px no-repeat,
    var(--green);
  border-radius: 6px;
  box-shadow: 0 5px 12px rgba(47, 116, 104, 0.16);
}

.trust-section,
.faq-section {
  position: relative;
  background: var(--soft);
  border-radius: var(--section-curve) var(--section-curve) 0 0;
}

.ebooks-section {
  position: relative;
  background: var(--mint);
  border-radius: var(--section-curve) var(--section-curve) 0 0;
  border-top: 1px solid rgba(47, 116, 104, 0.08);
  border-bottom: 1px solid rgba(47, 116, 104, 0.08);
}

.section-heading {
  display: grid;
  gap: 12px;
  max-width: 640px;
  margin-bottom: clamp(24px, 5vw, 34px);
}

.rail-wrap {
  display: grid;
  gap: 18px;
}

.rail {
  display: flex;
  gap: 16px;
  margin-inline: calc(clamp(18px, 4vw, 56px) * -1);
  padding: 2px clamp(18px, 4vw, 56px) 14px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-padding-inline: clamp(18px, 4vw, 56px);
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.rail::-webkit-scrollbar {
  display: none;
}

.story-card,
.professional-card,
.resource-card,
.article-card {
  border-radius: var(--radius);
  scroll-snap-align: start;
  transition: transform 220ms var(--ease), box-shadow 220ms ease, border-color 220ms ease;
}

.story-card {
  display: grid;
  align-content: space-between;
  flex: 0 0 min(84vw, 370px);
  min-height: 250px;
  padding: 24px;
  color: var(--blue);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.74);
  box-shadow: var(--card-shadow);
}

.story-card p {
  font-size: 1.02rem;
  font-weight: 700;
}

.story-card:hover,
.story-card:focus-within,
.professional-card:hover,
.professional-card:focus-within,
.article-card:hover,
.article-card:focus-within,
.faq-list details:hover {
  border-color: rgba(47, 116, 104, 0.22);
  box-shadow: 0 20px 44px rgba(30, 78, 140, 0.14);
  transform: translateY(-3px);
}

.story-card span {
  display: block;
  margin-top: 24px;
  font-weight: 800;
}

.story-card small {
  color: rgba(30, 78, 140, 0.72);
  font-weight: 700;
}

.rail-progress {
  width: min(180px, 45vw);
  height: 4px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.62);
  border-radius: 999px;
}

section:not(.trust-section):not(.ebooks-section):not(.faq-section) .rail-progress {
  background: var(--soft);
}

.rail-progress span {
  display: block;
  width: 34%;
  height: 100%;
  background: var(--blue);
  border-radius: inherit;
  transform-origin: left center;
  transition: width 120ms linear;
}

.professional-card {
  display: grid;
  flex: 0 0 min(86vw, 380px);
  gap: 14px;
  min-height: auto;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--soft);
  box-shadow: var(--card-shadow);
}

.professional-top {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 14px;
  align-items: center;
  min-width: 0;
}

.professional-top p {
  margin-top: 4px;
  color: rgba(30, 78, 140, 0.72);
  font-weight: 700;
}

.profile-photo {
  width: 92px;
  height: 112px;
  object-fit: cover;
  border: 1px solid rgba(30, 78, 140, 0.12);
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(30, 78, 140, 0.1);
}

.profile-facts {
  display: grid;
  gap: 8px;
  margin: 0;
}

.profile-facts div {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 10px;
  min-width: 0;
}

.profile-facts dt {
  color: rgba(30, 78, 140, 0.65);
  font-weight: 800;
}

.profile-facts dd {
  margin: 0;
  font-weight: 700;
}

.badge-row {
  gap: 8px;
}

.badge-row span {
  min-height: 30px;
  padding: 6px 10px;
  font-size: 0.76rem;
}

.card-actions,
.crisis-actions,
.footer-actions,
.sheet-actions {
  display: flex;
  gap: 10px;
}

.primary-btn,
.secondary-btn,
.section-cta,
.crisis-actions a,
.footer-actions a,
.footer-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  transition: transform 180ms var(--ease), box-shadow 180ms ease, background-color 180ms ease, color 180ms ease,
    border-color 180ms ease;
}

.primary-btn {
  color: var(--white);
  background: var(--blue);
  border: 1px solid var(--blue);
}

.primary-btn:hover,
.primary-btn:focus-visible,
.secondary-btn:hover,
.secondary-btn:focus-visible,
.section-cta:hover,
.section-cta:focus-visible,
.footer-actions a:hover,
.footer-actions a:focus-visible,
.footer-actions button:hover,
.footer-actions button:focus-visible,
.small-action:hover,
.small-action:focus-visible,
.crisis-actions a:hover,
.crisis-actions a:focus-visible,
.icon-btn:hover,
.icon-btn:focus-visible {
  transform: translateY(-2px);
}

.primary-btn:hover,
.primary-btn:focus-visible,
.section-cta:hover,
.section-cta:focus-visible,
.footer-actions button:hover,
.footer-actions button:focus-visible {
  box-shadow: 0 14px 30px rgba(47, 116, 104, 0.24);
}

.secondary-btn {
  color: var(--blue);
  background: var(--surface);
  border: 1px solid var(--soft);
}

.section-cta {
  width: 100%;
  margin-top: 22px;
  color: var(--white);
  background: var(--green);
  border: 1px solid var(--green);
  box-shadow: 0 12px 24px rgba(47, 116, 104, 0.18);
}

.resource-card {
  display: block;
  flex: 0 0 min(70vw, 292px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(47, 116, 104, 0.18);
  box-shadow: 0 18px 34px rgba(47, 116, 104, 0.13);
}

.resource-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.resource-card:hover,
.resource-card:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 4px;
  transform: translateY(-4px);
}

.topic-row {
  margin-bottom: 20px;
}

.article-grid {
  display: grid;
  gap: 14px;
}

.article-card {
  display: grid;
  gap: 12px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--soft);
  box-shadow: 0 10px 24px rgba(30, 78, 140, 0.06);
}

.abroad-section {
  display: grid;
  align-items: center;
  min-height: min(100svh, 680px);
  padding: clamp(42px, 7vh, 64px) clamp(18px, 4vw, 56px);
  overflow: hidden;
  color: var(--blue);
  background:
    linear-gradient(180deg, rgba(47, 116, 104, 0.08), rgba(248, 250, 248, 0) 42%),
    var(--white);
}

.abroad-copy {
  display: grid;
  gap: clamp(10px, 2vh, 14px);
  min-width: 0;
  justify-items: start;
  max-width: 520px;
  margin-inline: auto;
}

.abroad-copy h2 {
  max-width: 11ch;
  font-size: clamp(1.9rem, 9vw, 4rem);
}

.abroad-copy p {
  max-width: 28rem;
  color: rgba(30, 78, 140, 0.76);
  font-size: clamp(0.92rem, 3.8vw, 1.06rem);
}

.abroad-copy blockquote {
  margin: 0;
  padding-left: 14px;
  color: var(--green);
  border-left: 3px solid var(--green);
  font: 800 clamp(0.9rem, 3.6vw, 1.05rem) / 1.25 "Manrope", system-ui, sans-serif;
}

.abroad-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 48px;
  padding: 0 22px;
  color: var(--white);
  background: var(--green);
  border: 1px solid var(--green);
  border-radius: 999px;
  box-shadow: 0 14px 28px rgba(47, 116, 104, 0.22);
  font: 800 0.94rem/1 "Manrope", system-ui, sans-serif;
  transition: transform 180ms var(--ease), box-shadow 180ms ease;
}

.abroad-cta:hover,
.abroad-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(47, 116, 104, 0.28);
}

.abroad-media {
  position: relative;
  justify-self: center;
  width: min(92vw, 520px);
  min-width: 0;
  margin-top: clamp(4px, 1vh, 10px);
}

.abroad-media::before {
  position: absolute;
  inset: 9px -12px -10px 12px;
  content: "";
  background: var(--mint);
  border: 1px solid rgba(47, 116, 104, 0.12);
  border-radius: 22px;
  transform: rotate(3deg);
}

.abroad-media img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid rgba(30, 78, 140, 0.12);
  border-radius: 20px;
  box-shadow: 0 22px 42px rgba(30, 78, 140, 0.16);
}

@media (max-width: 390px) {
  .abroad-section {
    min-height: min(100svh, 620px);
    padding-top: 38px;
    padding-bottom: 36px;
  }

  .abroad-copy {
    gap: 9px;
  }

  .abroad-copy h2 {
    font-size: clamp(1.55rem, 8vw, 2rem);
  }

  .abroad-copy p,
  .abroad-copy blockquote {
    font-size: 0.86rem;
  }

  .abroad-cta {
    min-height: 44px;
    padding-inline: 18px;
  }

  .abroad-media {
    width: min(92vw, 360px);
  }
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(30, 78, 140, 0.06);
  transition: box-shadow 180ms ease, transform 180ms var(--ease);
}

.faq-list summary {
  min-height: 56px;
  padding: 17px 18px;
  cursor: pointer;
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 800;
}

.faq-list summary::marker {
  color: var(--green);
}

.faq-list p {
  padding: 0 18px 18px;
}

.crisis-section {
  color: var(--white);
  background: var(--blue);
}

.site-footer {
  color: var(--blue);
  background: var(--soft);
}

.crisis-section {
  position: relative;
  border-radius: var(--section-curve) var(--section-curve) 0 0;
}

.crisis-content {
  display: grid;
  gap: 16px;
  max-width: 780px;
}

.crisis-content h2 {
  color: var(--white);
}

.crisis-content p,
.crisis-content small {
  color: rgba(255, 255, 255, 0.86);
}

.site-footer p,
.site-footer a {
  color: rgba(30, 78, 140, 0.82);
}

.crisis-actions {
  flex-wrap: wrap;
}

.crisis-actions a {
  color: var(--blue);
  background: var(--white);
  border: 1px solid var(--white);
}

.crisis-actions a + a {
  color: var(--white);
  background: var(--blue);
  border-color: rgba(255, 255, 255, 0.72);
}

.site-footer {
  display: grid;
  gap: 30px;
  padding: 56px clamp(18px, 4vw, 56px) 120px;
  border-top: 8px solid var(--white);
  box-shadow: inset 0 1px 0 rgba(30, 78, 140, 0.08);
}

.footer-intro {
  display: grid;
  gap: 14px;
  max-width: 560px;
}

.footer-logo {
  color: var(--blue);
  font: 800 1.7rem/1 "Manrope", system-ui, sans-serif;
}

.footer-actions {
  flex-wrap: wrap;
}

.footer-actions button,
.footer-actions a {
  color: var(--white);
  background: var(--green);
  border: 1px solid var(--green);
}

.footer-actions a {
  color: var(--blue);
  background: var(--surface);
  border-color: rgba(30, 78, 140, 0.16);
}

.footer-links {
  display: grid;
  gap: 22px;
  padding-top: 10px;
  border-top: 1px solid rgba(30, 78, 140, 0.14);
}

.footer-links div {
  display: grid;
  gap: 10px;
}

.footer-links h2 {
  color: var(--blue);
  font-size: 0.96rem;
}

.footer-note {
  padding-top: 18px;
  border-top: 1px solid rgba(30, 78, 140, 0.14);
}

.copyright {
  font-size: 0.86rem;
}

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

.ebook-popup {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(30, 78, 140, 0);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, background-color 220ms ease;
}

.ebook-popup[hidden] {
  display: none;
}

.ebook-popup.is-open {
  background: rgba(30, 78, 140, 0.34);
  opacity: 1;
  pointer-events: auto;
}

.ebook-popup-card {
  position: relative;
  display: grid;
  gap: 14px;
  width: min(100%, 430px);
  max-height: min(90svh, 680px);
  padding: 22px;
  overflow: auto;
  color: var(--blue);
  background: var(--surface);
  border: 1px solid rgba(30, 78, 140, 0.12);
  border-radius: 22px;
  box-shadow: 0 26px 70px rgba(30, 78, 140, 0.24);
  transform: translateY(18px) scale(0.98);
  transition: transform 240ms var(--ease);
}

.ebook-popup.is-open .ebook-popup-card {
  transform: translateY(0) scale(1);
}

.ebook-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--blue);
  background: var(--soft);
  border: 1px solid var(--soft);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
}

.ebook-popup-logo {
  width: min(220px, 70%);
  max-height: 74px;
  object-fit: contain;
}

.ebook-popup-copy {
  display: grid;
  gap: 7px;
  padding-right: 28px;
}

.ebook-popup-copy h2 {
  font-size: clamp(1.45rem, 6vw, 2rem);
}

.ebook-popup-copy p {
  color: rgba(30, 78, 140, 0.76);
}

.ebook-popup-form {
  width: 100%;
  min-height: 330px;
  border: 1px solid var(--soft);
  border-radius: 16px;
  background: var(--white);
}

.search-dock {
  position: fixed;
  right: clamp(12px, 4vw, 28px);
  bottom: max(14px, env(safe-area-inset-bottom));
  left: clamp(12px, 4vw, 28px);
  z-index: 40;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 70px;
  padding: 9px 9px 9px 12px;
  color: var(--blue);
  background: var(--surface);
  border: 1px solid rgba(30, 78, 140, 0.18);
  border-radius: 999px;
  box-shadow: 0 20px 54px rgba(30, 78, 140, 0.2), 0 0 0 6px rgba(248, 250, 248, 0.92);
  cursor: pointer;
  transition: transform 220ms var(--ease), box-shadow 220ms ease, border-color 220ms ease;
}

.search-dock-icon {
  position: relative;
  display: block;
  width: 36px;
  height: 36px;
  background: var(--mint);
  border-radius: 50%;
}

.search-dock-icon::before,
.search-dock-icon::after {
  position: absolute;
  content: "";
}

.search-dock-icon::before {
  top: 10px;
  left: 10px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--green);
  border-radius: 50%;
}

.search-dock-icon::after {
  top: 23px;
  left: 22px;
  width: 8px;
  height: 2px;
  background: var(--green);
  border-radius: 999px;
  transform: rotate(45deg);
}

.search-dock-text {
  display: grid;
  gap: 2px;
  min-width: 0;
  text-align: left;
}

.search-dock-label,
.search-dock-value {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-dock-label {
  font: 800 0.96rem/1.1 "Manrope", system-ui, sans-serif;
}

.search-dock-value {
  color: rgba(30, 78, 140, 0.66);
  font-size: 0.78rem;
  font-weight: 700;
}

.search-dock strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 19px;
  color: var(--white);
  background: var(--green);
  border-radius: 999px;
  font-size: 0.92rem;
  box-shadow: 0 8px 18px rgba(47, 116, 104, 0.28);
  transition: transform 180ms var(--ease), box-shadow 180ms ease;
}

.search-dock:hover,
.search-dock:focus-visible {
  border-color: rgba(47, 116, 104, 0.48);
  box-shadow: 0 22px 56px rgba(30, 78, 140, 0.22), 0 0 0 6px rgba(248, 250, 248, 0.96);
  transform: translateY(-2px);
}

.search-dock:hover strong,
.search-dock:focus-visible strong {
  box-shadow: 0 10px 24px rgba(47, 116, 104, 0.34);
  transform: translateX(1px);
}

.sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  align-items: end;
  background: rgba(30, 78, 140, 0);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease, background-color 220ms ease;
}

.sheet-overlay[hidden] {
  display: none;
}

.sheet-overlay.is-open {
  background: rgba(30, 78, 140, 0.36);
  opacity: 1;
  pointer-events: auto;
}

.search-sheet {
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: 100%;
  height: min(82svh, 720px);
  overflow: hidden;
  background: var(--white);
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -18px 54px rgba(30, 78, 140, 0.24);
  transform: translateY(100%);
  transition: transform 280ms var(--ease);
  will-change: transform;
}

.sheet-overlay.is-open .search-sheet {
  transform: translateY(0);
}

.sheet-handle {
  width: 54px;
  height: 5px;
  margin: 10px auto 4px;
  background: var(--soft);
  border-radius: 999px;
}

.sheet-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 10px 18px 14px;
  border-bottom: 1px solid var(--soft);
}

.sheet-header h2 {
  font-size: 1.42rem;
}

.icon-btn {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  color: var(--blue);
  background: var(--soft);
  border: 1px solid var(--soft);
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
  transition: transform 180ms var(--ease), background-color 180ms ease;
}

.sheet-body {
  display: grid;
  align-content: start;
  gap: 18px;
  overflow: auto;
  padding: 16px 18px 18px;
}

.simple-filters {
  display: grid;
  gap: 18px;
}

.filter-block {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 14px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(30, 78, 140, 0.08);
  border-radius: 20px;
}

.filter-block legend {
  margin-bottom: 10px;
  color: rgba(30, 78, 140, 0.82);
  font: 800 0.88rem/1.1 "Manrope", system-ui, sans-serif;
}

.filter-options {
  display: grid;
  gap: 8px;
}

.filter-options-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.filter-options-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.filter-options-core {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.filter-options button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 46px;
  padding: 8px 10px;
  color: var(--blue);
  background: var(--surface);
  border: 1px solid rgba(30, 78, 140, 0.14);
  border-radius: 16px;
  cursor: pointer;
  font: 800 clamp(0.75rem, 3.4vw, 0.9rem) / 1.08 "Manrope", system-ui, sans-serif;
  text-align: center;
  transition: transform 180ms var(--ease), background-color 180ms ease, border-color 180ms ease, color 180ms ease,
    box-shadow 180ms ease;
}

.filter-options button:hover,
.filter-options button:focus-visible {
  border-color: rgba(47, 116, 104, 0.4);
  box-shadow: 0 8px 18px rgba(30, 78, 140, 0.08);
  transform: translateY(-1px);
}

.filter-options button.is-active {
  color: var(--white);
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 10px 20px rgba(47, 116, 104, 0.2);
}

.active-filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  color: var(--blue);
  background: rgba(47, 116, 104, 0.08);
  border: 1px solid rgba(47, 116, 104, 0.13);
  border-radius: 16px;
}

.active-filter-bar[hidden] {
  display: none;
}

.active-filter-bar span {
  min-width: 0;
  overflow: hidden;
  font-size: 0.82rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.active-filter-bar button {
  min-height: 34px;
  padding: 0 10px;
  color: var(--green);
  background: var(--surface);
  border: 1px solid rgba(47, 116, 104, 0.18);
  border-radius: 999px;
  cursor: pointer;
  font: 800 0.78rem/1 "Manrope", system-ui, sans-serif;
}

.sheet-actions {
  padding: 12px 18px max(14px, env(safe-area-inset-bottom));
  background: var(--white);
  border-top: 1px solid var(--soft);
  box-shadow: 0 -12px 26px rgba(248, 250, 248, 0.92);
}

.sheet-actions button {
  flex: 1 1 0;
  min-height: 52px;
}

.sheet-actions .primary-btn {
  flex-basis: 66%;
  background: var(--green);
  border-color: var(--green);
  box-shadow: 0 10px 22px rgba(47, 116, 104, 0.2);
}

.sheet-actions .secondary-btn {
  flex: 0 0 96px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 520ms ease, transform 520ms var(--ease);
}

@media (min-width: 680px) {
  body {
    padding-bottom: 120px;
  }

  .site-header {
    padding-inline: clamp(34px, 6vw, 84px);
  }

  .hero {
    grid-template-columns: minmax(0, 720px);
    min-height: 650px;
    padding-inline: clamp(34px, 6vw, 84px);
  }

  .section-pad {
    padding: 76px clamp(34px, 6vw, 84px);
  }

  .rail {
    margin-inline: calc(clamp(34px, 6vw, 84px) * -1);
    padding-inline: clamp(34px, 6vw, 84px);
    scroll-padding-inline: clamp(34px, 6vw, 84px);
  }

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

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

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

  .site-footer {
    padding-inline: clamp(34px, 6vw, 84px);
  }

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

  .search-dock {
    right: 50%;
    left: auto;
    width: min(620px, calc(100vw - 48px));
    transform: translateX(50%);
  }

  .search-sheet {
    width: min(720px, calc(100vw - 32px));
    margin-inline: auto;
    border-radius: 24px 24px 0 0;
  }
}

@media (min-width: 1024px) {
  body {
    padding-bottom: 132px;
  }

  h1 {
    max-width: 920px;
    font-size: clamp(4.2rem, 5.8vw, 6.25rem);
    line-height: 0.96;
  }

  .hero {
    align-content: center;
    grid-template-columns: minmax(0, 960px);
    min-height: calc(100svh - 78px);
    padding-top: 56px;
    padding-bottom: 136px;
  }

  .hero-copy {
    max-width: 960px;
  }

  .hero-subtitle {
    max-width: 720px;
    font-size: 1.12rem;
  }

  .quick-options {
    max-width: 760px;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .section-cta {
    width: auto;
  }

  .abroad-section {
    grid-template-columns: minmax(0, 640px) minmax(360px, 560px);
    gap: clamp(44px, 5vw, 84px);
    min-height: calc(100svh - 78px);
    padding-top: 72px;
    padding-bottom: 132px;
  }

  .abroad-copy {
    max-width: none;
    margin-inline: 0;
  }

  .abroad-copy h2 {
    max-width: 700px;
    font-size: clamp(3.4rem, 4.4vw, 5.25rem);
    line-height: 0.98;
  }

  .abroad-copy p {
    max-width: 560px;
    font-size: 1.08rem;
  }

  .abroad-media {
    width: 100%;
    margin-top: 0;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
