:root {
  --navy: #19325c;
  --navy-deep: #10243f;
  --red: #e81c24;
  --ink: #1c2430;
  --muted: #5c6b7d;
  --line: #e4e8ef;
  --cream: #f3f6fa;
  --paper: #f7f8fb;
  --white: #fff;
  --shadow: 0 8px 24px rgba(25, 50, 92, 0.07);
  --nav-h: 72px;
  --font: "Montserrat", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { overflow-x: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.6;
}
img { max-width: 100%; }
a { color: var(--navy); }
button, input { font-family: inherit; }

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 100;
  transform: translateY(-160%);
  background: var(--navy);
  color: #fff;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  text-decoration: none;
}
.skip:focus { transform: none; }

.container {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.site-nav .container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: min(1180px, calc(100% - 2.5rem));
}
.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}
.brand img { height: 36px; width: auto; display: block; }
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: 0.45rem 0.7rem;
  color: #314055;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 8px;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a.active { color: var(--red); }
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
}
.lang-switch a {
  min-width: 2rem;
  text-align: center;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.25rem 0.45rem;
}
.lang-switch a.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.nav-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  font-weight: 700;
  color: var(--navy);
}

.hero {
  position: relative;
  background: linear-gradient(165deg, #f4f7fb 0%, #e7eef6 58%, #f8fafc 100%);
  border-bottom: 1px solid var(--line);
  padding: 2.4rem 0 2.2rem;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 420px;
  height: 420px;
  border: 48px solid rgba(25, 50, 92, 0.06);
  border-radius: 50%;
  pointer-events: none;
}
.hero-detail {
  padding: 2.8rem 0 2.4rem;
  min-height: 280px;
}
.hero-detail::before {
  content: "";
  position: absolute;
  right: 6%;
  bottom: -40px;
  width: 280px;
  height: 280px;
  border: 28px solid rgba(232, 28, 36, 0.08);
  border-radius: 50%;
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--navy);
  position: relative;
  z-index: 1;
}
.crumbs a { color: var(--navy); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.crumbs li + li::before {
  content: "/";
  margin-right: 0.4rem;
  color: #8ea0b5;
  font-weight: 500;
}
.eyebrow {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--navy);
  position: relative;
  z-index: 1;
}
.hero h1, .hero-copy h1 {
  position: relative;
  z-index: 1;
  margin: 0 0 0.75rem;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.18;
  font-weight: 800;
  color: var(--navy);
}
.hero-detail h1 { max-width: 22ch; }
.hero-lead {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 0 1.4rem;
  color: #4d5d70;
  font-size: 1.02rem;
}
.search {
  position: relative;
  z-index: 1;
  max-width: 640px;
}
.search svg {
  position: absolute;
  left: 1rem;
  top: 50%;
  width: 1.05rem;
  height: 1.05rem;
  transform: translateY(-50%);
  color: #8fa0b3;
}
.search input {
  width: 100%;
  border: 2px solid rgba(25, 50, 92, 0.14);
  border-radius: 16px;
  background: #fff;
  padding: 0.95rem 1.1rem 0.95rem 2.9rem;
  font-size: 0.98rem;
  outline: none;
  box-shadow: 0 4px 18px rgba(25, 50, 92, 0.05);
}
.search input:focus {
  border-color: var(--navy);
  box-shadow: 0 6px 22px rgba(25, 50, 92, 0.1);
}
.hero-meta {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.2rem;
  margin-top: 0.3rem;
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 700;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 0.35rem; }
.cat-pill {
  display: inline-flex;
  align-items: center;
  margin-bottom: 0.8rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--navy);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.layout {
  background: #fff;
  padding: 2.4rem 0 4rem;
}
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 2.5rem;
  align-items: start;
}
.list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
}
.list-head h2 {
  margin: 0;
  font-size: 1.35rem;
  color: var(--navy);
}
.result-count {
  color: #7d8b9c;
  font-size: 0.82rem;
  font-weight: 700;
}
.faq-list { display: flex; flex-direction: column; gap: 0.7rem; }
.faq-item[hidden],
.empty[hidden],
.pager[hidden] {
  display: none !important;
}
.faq-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1.05rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.faq-item:hover {
  border-color: rgba(25, 50, 92, 0.28);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.faq-item__body {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.faq-item__cat {
  flex: 0 0 auto;
  max-width: 34%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(25, 50, 92, 0.08);
  color: var(--navy);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.faq-item__q {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.45;
  color: #1a1a1a;
}
.faq-item:hover .faq-item__q { color: var(--navy); }
.faq-item__arrow {
  flex: 0 0 auto;
  color: var(--red);
  display: inline-flex;
  transition: transform 0.2s, color 0.2s;
}
.faq-item:hover .faq-item__arrow {
  color: var(--navy);
  transform: translateX(2px);
}
.faq-item__arrow svg { width: 1rem; height: 1rem; }

.empty {
  text-align: center;
  padding: 2.4rem 1rem;
  color: #6d7c8d;
  border: 1px dashed var(--line);
  border-radius: 16px;
  background: var(--cream);
}

.pager { margin-top: 1.6rem; }
.pager-mobile { display: none; gap: 0.5rem; }
.pager-desktop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.pager-summary { margin: 0; color: #7d8b9c; font-size: 0.86rem; }
.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  padding: 0.42rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  background: #fff;
}
a.page-link:hover { border-color: var(--navy); }
.page-item.active .page-link,
.page-link.is-current {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}
.page-item.disabled .page-link,
.page-link.is-disabled {
  color: #b0bac6;
  background: #f4f6f8;
}

.sidebar { position: sticky; top: 92px; }
.side-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.2rem 1.05rem;
  margin-bottom: 1rem;
}
.side-title {
  margin: 0 0 0.8rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}
.cat-nav { display: flex; flex-direction: column; gap: 0.35rem; }
.cat-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.62rem 0.7rem;
  border-radius: 12px;
  text-decoration: none;
  color: #3e4d60;
  font-size: 0.88rem;
  font-weight: 700;
}
.cat-link svg { width: 1rem; height: 1rem; color: var(--navy); flex: 0 0 auto; }
.cat-link span:nth-child(2) { flex: 1; }
.cat-count {
  margin-left: auto;
  min-width: 1.6rem;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: #8090a2;
  font-size: 0.72rem;
  text-align: center;
}
.cat-link:hover { background: rgba(255, 255, 255, 0.85); color: var(--navy); }
.cat-link.active { background: var(--navy); color: #fff; }
.cat-link.active svg, .cat-link.active .cat-count { color: #fff; }
.cat-link.active .cat-count { background: rgba(255, 255, 255, 0.2); }

.help {
  background: var(--navy);
  color: #fff;
  border-radius: 20px;
  padding: 1.3rem 1.15rem;
}
.help h3 { margin: 0 0 0.4rem; font-size: 1.05rem; }
.help p { margin: 0 0 1rem; color: rgba(255, 255, 255, 0.8); font-size: 0.84rem; }
.help-actions { display: flex; flex-direction: column; gap: 0.5rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  border-radius: 12px;
  padding: 0.62rem 0.85rem;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #cf1520; }
.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.side-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.45rem; }
.side-links a { font-weight: 700; font-size: 0.88rem; text-decoration: none; }
.side-links a:hover { text-decoration: underline; }

.answer-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 1.45rem 1.35rem 1.2rem;
}
.answer-card h2 {
  margin: 0 0 0.9rem;
  color: var(--navy);
  font-size: 1.25rem;
}
.faq-answer p { margin: 0 0 0.9rem; color: #3e4c5e; font-size: 0.98rem; line-height: 1.75; }
.faq-points { margin: 0 0 1rem; padding-left: 1.1rem; color: #3e4c5e; }
.faq-points li { margin: 0.35rem 0; }
.faq-links { list-style: none; margin: 0 0 1rem; padding: 0; }
.faq-links a { font-weight: 700; }
.faq-source { font-size: 0.82rem; color: #7d8b9c; }
.share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.share-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a97a6;
}
.share a, .share button {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}
.share a:hover, .share button:hover { background: var(--cream); }
.share svg { width: 1rem; height: 1rem; }
.copy-note { font-size: 0.78rem; font-weight: 700; color: var(--navy); }

.related {
  background: var(--cream);
  padding: 2.4rem 0 3.2rem;
}
.related-head { margin-bottom: 1.2rem; }
.related-head p {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}
.related-head h2 { margin: 0.3rem 0 0; color: var(--navy); font-size: 1.55rem; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}
.related-card {
  display: block;
  height: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.05rem 1.1rem;
  text-decoration: none;
  color: inherit;
}
.related-card:hover { border-color: rgba(25, 50, 92, 0.3); box-shadow: var(--shadow); }
.related-card__cat {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--navy);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.related-card h3 { margin: 0 0 0.4rem; font-size: 0.95rem; color: var(--navy); line-height: 1.4; }
.related-card p { margin: 0; color: #667587; font-size: 0.82rem; line-height: 1.5; }

.site-footer { background: var(--navy); color: #fff; }
.footer-main { padding: 2.6rem 0 1.4rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.2fr;
  gap: 1.5rem;
}
.footer-brand img { height: 40px; width: auto; }
.sidebar > .btn { margin-top: 0.25rem; }
.footer-brand p, .footer-col a, .footer-col p { color: rgba(255, 255, 255, 0.82); }
.footer-brand p { font-size: 0.84rem; max-width: 28ch; }
.footer-col h2 {
  margin: 0 0 0.7rem;
  font-size: 0.95rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0.35rem 0; }
.footer-col a { text-decoration: none; font-size: 0.86rem; }
.footer-col a:hover { text-decoration: underline; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.9rem 0;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  font-size: 0.84rem;
}
.socials { display: flex; align-items: center; gap: 0.45rem; }
.socials span { margin-right: 0.25rem; }
.socials a {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.socials svg { width: 0.85rem; height: 0.85rem; }

@media (max-width: 991px) {
  .nav-toggle { display: inline-flex; }
  .nav-links, .lang-switch {
    display: none;
  }
  .site-nav .container { flex-wrap: wrap; }
  .nav-links.is-open, .lang-switch.is-open {
    display: flex;
  }
  .nav-links.is-open {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    order: 3;
    padding-bottom: 0.8rem;
  }
  .lang-switch.is-open { order: 4; padding-bottom: 0.8rem; }
  .grid, .related-grid, .footer-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .faq-item { align-items: flex-start; }
  .faq-item__body { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
  .faq-item__cat { max-width: 100%; }
  .pager-desktop { display: none; }
  .pager-mobile { display: flex; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .hero::after, .hero-detail::before { opacity: 0.7; }
}
