:root {
  --primary: #0047ff;
  --primary-700: #0030bf;
  --primary-900: #001773;
  --primary-50: #f2faff;
  --ink: #111111;
  --muted: #6b7280;
  --soft: #f1f5ff;
  --line: #e5e5e5;
  --footer: #001957;
  --max: 1280px;
  --font: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --header: 56px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: #fff;
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--primary);
  color: #fff;
  padding: 8px 12px;
  z-index: 80;
  border-radius: 8px;
}
.skip:focus { top: 8px; }

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
}

.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.icon-btn img { width: 32px; height: 14px; }

.logo {
  display: block;
  height: 28px;
  width: 108px;
}
.logo img { height: 100%; width: 100%; object-fit: contain; }

.main-nav { display: none; flex: 1; min-width: 0; position: relative; align-self: stretch; }
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  display: inline-flex;
  align-items: center;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 700;
  color: #111;
  white-space: nowrap;
  background: transparent;
}
.main-nav a[aria-current="page"] { color: var(--primary); }
.main-nav a:hover { color: var(--primary); }
.nav-indicator {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 40px;
  border-radius: 2px 2px 0 0;
  background: var(--primary);
  transition: transform .2s ease, width .2s ease;
}

.auth { display: none; align-items: center; gap: 8px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  padding: 4px 16px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  border: 1px solid var(--primary);
  cursor: pointer;
}
.btn-login { background: transparent; color: var(--primary); }
.btn-login:hover { background: var(--primary-50); }
.btn-register, .btn-solid {
  background: var(--primary);
  color: #fff;
}
.btn-register:hover, .btn-solid:hover { background: var(--primary-700); }
.btn-solid { border-radius: 12px; padding: 10px 18px; }

.flag {
  width: 20px;
  height: 20px;
  margin-left: auto;
  border-radius: 50%;
  object-fit: cover;
}

.hero { margin-top: 0; }
.slider {
  position: relative;
  overflow: hidden;
  background: #00124a;
  width: 100%;
  aspect-ratio: 1179 / 444;
}
.slides {
  display: flex;
  height: 100%;
  transition: transform .45s ease;
}
.slide { display: block; min-width: 100%; height: 100%; }
.slide picture { display: block; width: 100%; height: 100%; }
.slide img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}
.dot {
  width: 7px;
  height: 7px;
  border: 0;
  padding: 0;
  border-radius: 99px;
  background: #d4d4d4;
  cursor: pointer;
}
.dot[aria-current="true"] { width: 16px; background: var(--primary); }

.notice {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 14px;
  background: #f3f8ff;
  border-radius: 999px;
  overflow: hidden;
}
.notice img { width: 18px; height: 17px; flex: none; }
.marquee { overflow: hidden; flex: 1; }
.marquee-track {
  display: flex;
  width: max-content;
  animation: ticker 36s linear infinite;
}
.notice:hover .marquee-track { animation-play-state: paused; }
.marquee p {
  margin: 0;
  white-space: nowrap;
  color: var(--primary);
  font-size: 13px;
  padding-right: 64px;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.block { margin-top: 28px; }
.row-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.row-head h2,
.section-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.see-all {
  width: 96px;
  text-align: center;
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  padding: 6px 0;
  font-size: 14px;
  font-weight: 700;
}
.see-all:hover { background: var(--primary-700); }

.hot-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  scrollbar-width: none;
}
.hot-grid::-webkit-scrollbar { display: none; }
.hot-card { min-width: 0; color: inherit; }
.hot-card img {
  width: 100%;
  aspect-ratio: 382 / 464;
  object-fit: cover;
  border-radius: 18px;
  background: var(--soft);
  transition: transform .2s ease;
}
.hot-card:hover img { transform: translateY(-3px); }
.hot-card h3 {
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hot-card p { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.hot-card.is-hidden { display: none; }

.cat-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
}
.cats {
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.cats::-webkit-scrollbar { display: none; }
.cats a {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  color: var(--primary);
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}
.cats a[aria-current="page"],
.cats a.active {
  background: var(--primary);
  color: #fff;
}
.search {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 210px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--muted);
}
.search input {
  border: 0;
  outline: 0;
  width: 100%;
  font-size: 14px;
  color: var(--ink);
  background: transparent;
}
.search-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  min-height: 1.2em;
}

.intro, .seo-article-container { margin-top: 42px; }
.seo-article-container header h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.seo-article-container footer { margin-top: 8px; }
.kicker {
  margin: 0 0 8px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.intro h1, .page-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.lede { margin: 0; max-width: 760px; font-size: 18px; color: #1f2937; }
.updated { margin: 10px 0 0; color: var(--muted); font-size: 13px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.card {
  background: var(--soft);
  border-radius: 16px;
  padding: 20px;
}
.card h2 { margin: 0 0 8px; font-size: 20px; color: var(--primary); }
.card p { margin: 0; font-size: 15px; }
.card .more {
  display: inline-block;
  margin-top: 12px;
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
}

.prose {
  margin-top: 36px;
  font-size: 17px;
  line-height: 1.9;
  letter-spacing: 0.02em;
}
.prose h2 {
  margin: 52px 0 16px;
  font-size: 26px;
  line-height: 1.4;
  letter-spacing: 0.01em;
}
.prose h3 {
  margin: 36px 0 14px;
  font-size: 20px;
  line-height: 1.45;
  letter-spacing: 0.01em;
}
.prose p {
  margin: 0 0 22px;
  font-size: 17px;
  line-height: 1.9;
  letter-spacing: 0.02em;
  color: #1f2937;
}
.prose ul, .prose ol {
  margin: 0 0 26px;
  padding-left: 24px;
  line-height: 1.85;
  color: #1f2937;
}
.prose li { margin: 14px 0; }
.prose a { color: var(--primary); font-weight: 600; }
.seo-article-container > section:first-child > h2,
.seo-article-container > article > section:first-child > h2 {
  margin-top: 8px;
}
.seo-article-container section + section,
.seo-article-container footer {
  margin-top: 12px;
}
.cms-posts { margin-top: 8px; }
.article-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}
.prose .article-list {
  margin: 16px 0 0;
  padding: 0;
  letter-spacing: 0;
  line-height: 1.5;
}
.prose .article-list li { margin: 0; }
.topic-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 2px solid #c5cad3;
  border-radius: 16px;
  background: #f3f4f6;
  color: inherit;
}
.topic-card:hover { border-color: var(--primary); }
.topic-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #00124a;
}
.topic-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 16px;
}
.topic-card-column {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.topic-card-title { font-size: 18px; font-weight: 700; color: var(--primary); }
.topic-card time { color: var(--muted); font-size: 13px; font-weight: 400; }
.topic-card-excerpt { color: #374151; font-size: 14px; font-weight: 400; }
.more-topics { margin-top: 28px; }
.more-topics h2 { margin: 0; font-size: 26px; letter-spacing: -0.02em; }
.topic-back { margin: 18px 0 0; }
.topic-back a { color: var(--primary); font-weight: 600; }
.topic-hero {
  margin: 22px 0 28px;
  overflow: hidden;
  border: 2px solid #c5cad3;
  border-radius: 16px;
  background: #f3f4f6;
}
.topic-hero img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #00124a;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 8px;
}
.step {
  background: #fff;
  border: 1px solid #e6eeff;
  border-radius: 14px;
  padding: 14px;
}
.step b {
  display: block;
  color: var(--primary);
  font-size: 13px;
  margin-bottom: 4px;
}

.faq { margin-top: 8px; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
}
.faq details p { margin: 8px 0 0; color: #1f2937; }

.page-hero { padding: 28px 0 8px; }
.crumbs { margin: 0 0 10px; color: var(--muted); font-size: 13px; }
.crumbs a { color: var(--primary); font-weight: 600; }

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 28px 0;
  padding: 18px 20px;
  border-radius: 16px;
  background: var(--footer);
  color: #fff;
}
.cta-band p { margin: 4px 0 0; color: #d6e2ff; font-size: 14px; }
.cta-band h2 { margin: 0; font-size: 22px; }

.site-footer {
  margin-top: 56px;
  background: var(--footer);
  color: #d6e2ff;
  padding: 36px 0 28px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
}
.site-footer h2 { margin: 0 0 10px; color: #fff; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 8px 0; }
.site-footer a:hover { color: #fff; }
.foot-brand p { margin: 10px 0 0; font-size: 14px; max-width: 320px; }
.legal {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.12);
  font-size: 12px;
  color: #b9c7ea;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .45);
  z-index: 50;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.drawer {
  position: fixed;
  z-index: 60;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  width: min(320px, 88vw);
  height: 100%;
  background: #fff;
  transform: translateX(-105%);
  transition: transform .25s ease;
  overflow: hidden;
  padding: 18px 16px 20px;
  box-shadow: 8px 0 24px rgba(0, 0, 0, .08);
}
body.menu-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
body.menu-open .drawer { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; }
.drawer-close {
  border: 0;
  background: var(--soft);
  color: var(--primary);
  font-weight: 700;
  border-radius: 8px;
  padding: 6px 10px;
  cursor: pointer;
}
.drawer nav { flex: 1; margin-top: 16px; overflow: auto; }
.drawer-end {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.drawer-end .btn { width: 100%; padding: 10px 16px; }
.drawer-copy { margin: 0; text-align: center; color: var(--muted); font-size: 12px; }
.drawer nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid #f3f4f6;
  font-weight: 600;
}
.drawer nav img { width: 22px; height: 22px; object-fit: contain; }
.drawer-company {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
  padding: 0 4px;
}
.drawer-company a {
  padding: 6px 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}
.live-chat {
  position: fixed;
  z-index: 40;
  right: 28px;
  bottom: 28px;
  width: 64px;
  height: 64px;
}
.live-chat img { width: 64px; height: 64px; object-fit: contain; }
#chat-widget-minimized {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

@media (min-width: 640px) {
  .slider { height: 384px; aspect-ratio: auto; }
}

@media (min-width: 768px) {
  :root { --header: 56px; }
  .bar { height: 56px; gap: 8px; }
  .logo { height: 32px; width: 120px; }
  .main-nav { display: flex; align-items: center; }
  .auth { display: flex; }
  .flag { width: 28px; height: 28px; margin-left: 0; }
  .live-chat { right: 40px; bottom: 40px; }
}

@media (max-width: 767px) {
  .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  .row-head h2, .section-title { font-size: 16px; color: #9ca3af; }
  .hot-grid {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 6px;
  }
  .hot-card { flex: 0 0 132px; scroll-snap-align: start; }
  .cat-row { flex-direction: column; align-items: stretch; }
  .search { margin-left: 0; }
  .card-grid, .steps, .foot-grid, .article-list { grid-template-columns: 1fr; }
  .cta-band { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 1100px) and (min-width: 768px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .main-nav a { padding: 8px 10px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .slides, .nav-indicator, .hot-card img, .drawer, .drawer-backdrop { transition: none; }
  .marquee-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* FAQ section */
.faq-section { margin-top: 48px; }
.faq-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 0; }
.faq-item { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item dt { font-weight: 700; font-size: 1rem; color: var(--ink); margin-bottom: 8px; }
.faq-item dd { margin: 0; color: var(--muted); line-height: 1.65; }

/* 404 spacing */
.cta-back { margin-top: 18px; }
