:root {
  --ink: #08192e;
  --navy: #0a2342;
  --blue: #1769ff;
  --blue-dark: #0c4bd8;
  --ice: #eff6ff;
  --mist: #f5f8fc;
  --white: #ffffff;
  --line: #dce5ef;
  --muted: #5e6d7f;
  --success: #0c7a50;
  --danger: #d90420;
  --warm: #fff9ea;
  --warm-line: #e7b721;
  --shadow: 0 24px 70px rgba(8, 25, 46, 0.14);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.container { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(220, 229, 239, 0.75);
  backdrop-filter: blur(16px);
}
.header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-size: 1.08rem; font-weight: 800; letter-spacing: -0.03em; }
.brand-mark {
  width: 48px;
  height: 29px;
  display: grid;
  grid-template-columns: 13px 1fr;
  align-items: center;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 5px;
  background: white;
  box-shadow: 0 2px 0 rgba(8,25,46,.1);
}
.brand-mark span { height: 100%; display: grid; place-items: center; background: var(--blue); color: white; font-size: 7px; letter-spacing: .04em; }
.brand-mark b { text-align: center; font-size: 13px; letter-spacing: .04em; }
nav { display: flex; gap: 26px; }
nav a { text-decoration: none; color: #34465b; font-size: .94rem; font-weight: 650; }
nav a:hover { color: var(--blue); }

.tool-section {
  position: relative;
  overflow: hidden;
  padding: 76px 0 88px;
  color: white;
  background:
    radial-gradient(circle at 8% 20%, rgba(23, 105, 255, .34), transparent 29%),
    radial-gradient(circle at 90% 85%, rgba(67, 139, 255, .2), transparent 30%),
    linear-gradient(128deg, #07182c 0%, #0a2342 54%, #0c305d 100%);
}
.tool-section::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}
.tool-layout { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 880px); justify-content: center; gap: 36px; }
.tool-layout .tool-card { order: 1; }
.tool-layout .intro { order: 2; }
.eyebrow { margin: 0 0 12px; color: var(--blue); font-size: .78rem; line-height: 1.2; font-weight: 850; letter-spacing: .15em; text-transform: uppercase; }
.tool-section .eyebrow { color: #79aaff; }
h1, h2, h3, p { overflow-wrap: break-word; }
h1 { max-width: 610px; margin: 0; font-size: clamp(2.45rem, 5vw, 4.65rem); line-height: .99; letter-spacing: -.06em; }
.lead { max-width: 570px; margin: 24px 0 0; color: #c6d5e7; font-size: 1.13rem; line-height: 1.7; }
.trust-line { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.trust-line span { padding: 7px 11px; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; color: #eaf2fc; background: rgba(255,255,255,.07); font-size: .82rem; font-weight: 650; }

.tool-card { padding: 9px; border: 1px solid rgba(255,255,255,.34); border-radius: 28px; color: var(--ink); background: rgba(255,255,255,.97); box-shadow: var(--shadow); }
.mode-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; padding: 5px; border-radius: 18px; background: #eaf0f7; }
.tab-button { min-height: 45px; padding: 8px 14px; border: 0; border-radius: 14px; color: #536277; background: transparent; font-weight: 750; cursor: pointer; }
.tab-button.active { color: var(--ink); background: white; box-shadow: 0 4px 14px rgba(8,25,46,.08); }
.tab-button:focus-visible, .primary-button:focus-visible, .secondary-button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #82adff; outline-offset: 3px; }
.tab-panel { padding: 26px 24px 24px; }
label { display: block; margin: 0 0 8px; color: #33455a; font-size: .9rem; font-weight: 760; }
.plate-shell { min-height: 76px; display: grid; grid-template-columns: 56px 1fr; overflow: hidden; border: 2px solid #aebdce; border-radius: 12px; background: white; transition: border-color .2s, box-shadow .2s; }
.plate-shell:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(23,105,255,.13); }
.plate-country { display: grid; place-items: end center; padding-bottom: 9px; color: white; background: var(--blue); font-size: .8rem; font-weight: 800; letter-spacing: .08em; }
.plate-shell input { min-width: 0; width: 100%; border: 0; outline: none; padding: 0 18px; color: #111a25; background: transparent; font-size: clamp(1.45rem, 4vw, 2.05rem); font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.plate-shell input::placeholder { color: #9aa8b7; }
.field-help { margin: 8px 0 0; color: var(--muted); font-size: .83rem; }
.field-error { min-height: 24px; margin: 3px 0 0; color: var(--danger); font-size: .84rem; font-weight: 650; }
.primary-button { width: 100%; min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 0; border-radius: 13px; color: white; background: var(--blue); font-weight: 800; cursor: pointer; transition: transform .18s, background .18s; }
.primary-button:hover { background: var(--blue-dark); transform: translateY(-1px); }
.special-fields { display: grid; grid-template-columns: .8fr 1fr 1fr; gap: 12px; }
.special-fields input, .special-fields select, .code-search-wrap input { width: 100%; min-height: 50px; border: 1.5px solid #bdc9d6; border-radius: 11px; padding: 0 13px; outline: none; color: var(--ink); background: white; text-transform: uppercase; }
.special-fields input:focus, .special-fields select:focus, .code-search-wrap input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(23,105,255,.11); }

.result-card { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin: 0 10px 10px; padding: 12px 0 0; animation: rise .35s ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
.result-top { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 4px 10px 4px; }
.mini-plate { min-width: 190px; height: 48px; display: grid; grid-template-columns: 34px 1fr; align-items: center; overflow: hidden; border: 2px solid var(--ink); border-radius: 7px; background: white; box-shadow: 0 3px 0 rgba(8,25,46,.12); }
.mini-plate span { height: 100%; display: grid; place-items: end center; padding-bottom: 5px; color: white; background: var(--blue); font-size: 8px; }
.mini-plate strong { text-align: center; letter-spacing: .07em; }
.status-pill { color: var(--success); font-size: .82rem; font-weight: 800; }
.status-pill.invalid { color: var(--danger); }
.result-panel { overflow: hidden; margin-top: 0; border: 1px solid #cbdced; border-radius: 18px; background: #f8fbff; box-shadow: 0 12px 30px rgba(8,35,66,.08); }
.registration-panel { border-left: 1px solid #cbdced; }
.result-panel-heading { padding: 14px 19px; border-bottom: 0; color: white; background: linear-gradient(135deg,#0a2342,#1769ff); font-size: .75rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.registration-panel .result-panel-heading { color: white; background: linear-gradient(135deg,#0a2342,#1769ff); border-bottom: 0; }
.series-panel .result-panel-heading { background: linear-gradient(135deg,#163c66,#0b86c6); }
.result-panel-heading span { margin-right: 5px; }
.result-data-grid { display: grid; grid-template-columns: 1fr; }
.result-data-cell { min-height: 72px; padding: 14px 18px; border-right: 0; border-bottom: 1px solid #dfe8f2; background: white; }
.result-data-cell:nth-child(2n) { border-right: 0; }
.result-data-cell:nth-last-child(-n+2) { border-bottom: 1px solid #dfe8f2; }
.result-data-cell:last-child { border-bottom: 0; }
.result-data-cell small { display: block; color: #718096; font-size: .68rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.result-data-cell strong { display: block; margin-top: 5px; color: #101419; font-size: 1.03rem; line-height: 1.3; }
.result-data-cell .code-value { color: var(--blue); font-size: 1.42rem; }
.result-data-cell .city-value { color: var(--navy); font-size: 1.15rem; }
.result-data-cell .is-empty { color: #777f89; font-size: .9rem; font-weight: 700; }
.category-badge { display: inline-flex; padding: 5px 9px; border-radius: 999px; color: #075985; background: #e0f2fe; font-size: .84rem; }
.result-note { grid-column: 1 / -1; margin-top: 0; padding: 22px 24px; border: 1px solid #c9dcf5; border-left: 5px solid var(--blue); border-radius: 15px; color: #17375e; background: #f4f8ff; }
.result-note-title { display: flex; align-items: center; gap: 7px; font-size: 1rem; }
.result-note p { margin: 12px 0 0; color: #365574; font-size: .9rem; line-height: 1.6; }
.official-detail-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px 20px; margin: 16px 0 0; padding: 0 0 0 32px; color: #203b5b; font-size: .9rem; font-weight: 750; list-style: none; }
.official-detail-list li { position: relative; }
.official-detail-list li::before { content: "→"; position: absolute; left: -24px; color: var(--blue); font-weight: 900; }
.secondary-button { width: auto; min-width: 280px; min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; margin-top: 18px; padding: 0 24px; border-radius: 999px; color: white; background: var(--danger); font-size: .86rem; font-weight: 800; text-align: center; text-decoration: none; }
.secondary-button:hover { background: #b90019; }
.new-query-button { grid-column: 1 / -1; width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 0; border: 1.5px solid #9bbcf4; border-radius: 13px; color: var(--blue-dark); background: white; font-weight: 800; cursor: pointer; }
.new-query-button:hover { border-color: var(--blue); background: #f4f8ff; }

.section { padding: 92px 0; }
.alt-section { background: var(--mist); }
.section-heading { max-width: 660px; margin-bottom: 36px; }
.section-heading h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.08; letter-spacing: -.045em; }
.section-heading > p:last-child { margin: 16px 0 0; color: var(--muted); }
.official-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.official-grid article { min-height: 260px; display: flex; flex-direction: column; padding: 25px; border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 10px 34px rgba(8,25,46,.06); }
.card-number { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: var(--blue); background: var(--ice); font-size: .78rem; font-weight: 850; }
.official-grid h3 { margin: 28px 0 8px; font-size: 1.14rem; line-height: 1.25; }
.official-grid p { margin: 0; color: var(--muted); font-size: .94rem; }
.official-grid a { margin-top: auto; padding-top: 24px; color: var(--blue-dark); font-weight: 800; text-decoration: none; }
.guides-section { padding-top: 80px; background: #fff; }
.seo-content { padding: 64px 0 70px; border-bottom: 1px solid var(--line); background: white; }
.seo-content-inner { max-width: 1120px; }
.seo-content-block + .seo-content-block { margin-top: 40px; }
.seo-content-block h2 { margin: 0 0 14px; padding: 9px 14px; border-left: 5px solid #f2aa16; border-radius: 7px; color: white; background: var(--blue); font-size: clamp(1.35rem, 3vw, 1.85rem); line-height: 1.2; letter-spacing: -.025em; }
.seo-content-block > p { margin: 0; color: #38495c; }
.seo-feature-list { display: grid; gap: 10px; margin: 18px 0 20px; padding: 0; list-style: none; }
.seo-feature-list li { position: relative; padding-left: 38px; color: #35465a; }
.seo-feature-list li::before { content: "→"; position: absolute; left: 0; top: 1px; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; color: white; background: var(--blue); font-size: .9rem; font-weight: 900; }
.seo-content-block .seo-content-note { margin-top: 22px; }
.query-methods { display: grid; gap: 25px; margin-top: 20px; }
.query-method h3 { display: flex; align-items: center; gap: 9px; margin: 0 0 7px; color: var(--blue); font-size: 1.12rem; }
.query-method h3 span { font-size: 1.35rem; }
.query-method p { margin: 0; color: #46586c; }
.guides-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.guides-grid a { min-height: 190px; display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: 18px; text-decoration: none; background: linear-gradient(145deg,#fff,#f8fbff); transition: transform .18s, border-color .18s, box-shadow .18s; }
.guides-grid a:hover { transform: translateY(-3px); border-color: #9fc0ff; box-shadow: 0 14px 34px rgba(8,25,46,.08); }
.guides-grid a > span { color: var(--blue); font-size: .75rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.guides-grid strong { margin-top: 17px; font-size: 1.08rem; }
.guides-grid p { margin: 7px 0 0; color: var(--muted); font-size: .9rem; }
.article-hero { padding: 66px 0 56px; color: white; background: linear-gradient(128deg,#07182c,#0a2342 58%,#0d3567); }
.breadcrumbs { margin: 0 0 18px; color: #a9c1dd; font-size: .86rem; }
.breadcrumbs a { color: white; text-decoration: none; }
.article-hero h1 { max-width: 850px; font-size: clamp(2.35rem,5vw,4.2rem); }
.article-hero .lead { max-width: 760px; }
.article-section { padding: 72px 0; }
.article-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 58px; align-items: start; }
.article-content h2 { margin: 48px 0 14px; font-size: clamp(1.65rem,3vw,2.35rem); line-height: 1.15; letter-spacing: -.035em; }
.article-content h2:first-child { margin-top: 0; }
.article-content h3 { margin: 30px 0 8px; font-size: 1.17rem; }
.article-content p, .article-content li { color: #46586c; }
.article-content ul, .article-content ol { padding-left: 21px; }
.article-content li + li { margin-top: 8px; }
.info-box { margin: 28px 0; padding: 20px 22px; border-left: 4px solid var(--blue); border-radius: 4px 14px 14px 4px; background: var(--ice); }
.info-box strong { display: block; color: var(--ink); }
.info-box p { margin: 5px 0 0; }
.sidebar-card { position: sticky; top: 96px; padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--mist); }
.sidebar-card strong { display: block; margin-bottom: 12px; }
.sidebar-card a { display: block; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--blue-dark); font-size: .9rem; font-weight: 700; text-decoration: none; }
.sidebar-card a:last-child { border-bottom: 0; }
.article-tool { max-width: 680px; margin: -28px auto 56px; position: relative; z-index: 2; }
.tool-first-page main { display: flex; flex-direction: column; background: linear-gradient(128deg,#07182c,#0a2342 58%,#0d3567); }
.tool-first-page main > .container { order: 1; }
.tool-first-page .article-hero { order: 2; padding: 0 0 56px; background: transparent; }
.tool-first-page .article-section { order: 3; background: white; }
.tool-first-page .article-tool { max-width: 880px; margin: 48px auto 28px; }
.split-heading { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.code-search-wrap { width: min(330px, 100%); }
.code-search-wrap input { text-transform: none; background: white; }
.codes-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 9px; }
.code-card { display: flex; align-items: center; gap: 10px; min-height: 57px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.code-card strong { min-width: 27px; color: var(--blue-dark); }
.code-card span { font-size: .86rem; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty-message { color: var(--muted); }
.popular-codes { grid-template-columns: repeat(6,1fr); }
.text-link { display: inline-flex; margin-top: 22px; color: var(--blue-dark); font-weight: 800; text-decoration: none; }
.process-section { background: var(--navy); color: white; }
.process-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 88px; }
.process-section .eyebrow { color: #79aaff; }
.process-section .section-heading > p:last-child { color: #b8c9dc; }
.steps { margin: 0; padding: 0; list-style: none; }
.steps li { display: grid; grid-template-columns: 52px 1fr; gap: 18px; padding: 24px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.steps li:first-child { padding-top: 0; }
.steps li > span { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; color: #8eb8ff; font-weight: 850; }
.steps h3 { margin: 1px 0 5px; }
.steps p { margin: 0; color: #b8c9dc; font-size: .94rem; }
.faq-layout { display: grid; grid-template-columns: .68fr 1.32fr; gap: 80px; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { position: relative; padding: 22px 38px 22px 0; font-size: 1.05rem; font-weight: 780; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 17px; color: var(--blue); font-size: 1.55rem; font-weight: 400; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 680px; margin: -4px 0 22px; color: var(--muted); }
footer { padding: 36px 0; border-top: 1px solid var(--line); background: #f8fafc; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 32px; }
.footer-inner p { margin: 0; color: var(--muted); font-size: .82rem; }
.footer-inner p:last-child { white-space: nowrap; }
.footer-meta { display: flex; align-items: center; justify-self: end; gap: 14px; }
.social-links { display: flex; align-items: center; gap: 8px; }
.social-link { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid #cbd5e1; border-radius: 50%; color: var(--navy); background: white; text-decoration: none; transition: color .18s, border-color .18s, transform .18s, box-shadow .18s; }
.social-link:hover { color: white; border-color: var(--blue); background: var(--blue); box-shadow: 0 7px 18px rgba(23,105,255,.2); transform: translateY(-2px); }
.social-link:focus-visible { outline: 3px solid rgba(23,105,255,.3); outline-offset: 3px; }
.social-link--linkedin { color: white; border-color: #0a66c2; background: #0a66c2; }
.social-link--instagram { color: white; border-color: transparent; background: linear-gradient(135deg,#833ab4,#e1306c 55%,#f77737); }
.social-monogram { font-family: Arial, sans-serif; font-size: .72rem; font-weight: 900; letter-spacing: -.04em; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

@media (max-width: 900px) {
  .tool-layout, .process-layout, .faq-layout { grid-template-columns: 1fr; gap: 42px; }
  .tool-section { padding-top: 58px; }
  .intro { max-width: 700px; }
  .official-grid { grid-template-columns: 1fr 1fr; }
  .guides-grid { grid-template-columns: 1fr 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .sidebar-card { position: static; }
  .official-grid article:last-child { grid-column: 1 / -1; min-height: 220px; }
  .codes-grid { grid-template-columns: repeat(4,1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 14px; }
  .footer-meta { justify-self: start; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 28px), 1120px); }
  .header-inner { min-height: 64px; }
  nav { display: none; }
  .tool-section { padding: 42px 0 56px; }
  h1 { font-size: clamp(2.35rem, 13vw, 3.5rem); }
  .lead { margin-top: 18px; font-size: 1rem; }
  .tool-layout { gap: 34px; }
  .tool-card { margin: 0 -5px; border-radius: 23px; }
  .tab-panel { padding: 22px 16px 18px; }
  .plate-shell { grid-template-columns: 46px 1fr; min-height: 68px; }
  .plate-shell input { padding: 0 12px; font-size: 1.45rem; }
  .special-fields { grid-template-columns: .78fr 1fr 1fr; gap: 7px; }
  .special-fields input, .special-fields select { padding: 0 8px; }
  .result-card { grid-template-columns: 1fr; margin: 0 6px 6px; padding-top: 10px; }
  .result-top { align-items: flex-start; flex-direction: column; }
  .result-data-grid { grid-template-columns: 1fr; }
  .result-data-cell { min-height: 84px; border-right: 0; border-bottom: 1px solid #ececef; }
  .result-data-cell:nth-last-child(-n+2) { border-bottom: 1px solid #ececef; }
  .result-data-cell:last-child { border-bottom: 0; }
  .official-detail-list { grid-template-columns: 1fr; }
  .secondary-button { width: 100%; min-width: 0; }
  .section { padding: 68px 0; }
  .official-grid { grid-template-columns: 1fr; }
  .guides-grid { grid-template-columns: 1fr; }
  .official-grid article:last-child { grid-column: auto; }
  .split-heading { align-items: stretch; flex-direction: column; gap: 25px; }
  .codes-grid { grid-template-columns: repeat(2,1fr); }
  .popular-codes { grid-template-columns: repeat(2,1fr); }
  .process-layout, .faq-layout { gap: 30px; }
}

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