:root {
  --blue: #00a1fe;
  --blue-dark: #007bc2;
  --navy: #18324b;
  --ink: #253a4d;
  --muted: #687b8b;
  --line: #dfe8ee;
  --surface: #ffffff;
  --surface-soft: #f5f9fc;
  --page: #edf4f8;
  --danger: #a5333c;
  --danger-bg: #fff3f3;
  --shadow: 0 15px 45px rgba(24, 50, 75, .10);
  --radius: 18px;
  font-family: "Myriad Pro", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--page);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--page); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid rgba(223,232,238,.9);
  backdrop-filter: blur(12px);
}
.header-inner, .footer-inner, .page-shell {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}
.header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; min-width: 0; }
.brand img { width: 132px; height: auto; display: block; }
.brand-divider { height: 27px; width: 1px; background: var(--line); }
.brand-area { color: var(--muted); font-size: .92rem; white-space: nowrap; }
.back-link { color: var(--navy); font-weight: 700; text-decoration: none; white-space: nowrap; }
.back-link:hover, .text-link:hover { color: var(--blue-dark); }

.page-shell { padding: 42px 0 72px; }
.hero { display: grid; grid-template-columns: 1.35fr .65fr; gap: 28px; align-items: stretch; margin-bottom: 30px; }
.hero-copy, .status-card, .search-panel, .flow-panel, .guide-card, .info-card, .step-card, .result-card { background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.hero-copy { border-radius: 24px; padding: clamp(28px, 5vw, 58px); background: linear-gradient(135deg, #fff 0%, #f8fcff 75%, #e7f7ff 100%); }
.eyebrow { margin: 0 0 12px; color: var(--blue-dark); text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 800; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 14px; color: var(--navy); font-size: clamp(2.05rem, 5vw, 4.4rem); line-height: .99; letter-spacing: -.045em; }
.hero-copy .lead { max-width: 640px; margin-bottom: 0; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.55; }
.hero-mark { display: inline-flex; align-items: center; gap: 9px; margin-top: 28px; color: var(--navy); font-weight: 800; }
.hero-mark span { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 7px rgba(0,161,254,.12); }
.status-card { border-radius: 24px; padding: 25px; display: flex; flex-direction: column; justify-content: space-between; background: var(--navy); color: white; }
.status-card h2 { margin-bottom: 20px; font-size: 1.05rem; }
.status-list { display: grid; gap: 18px; margin: 0; }
.status-list div { padding-bottom: 17px; border-bottom: 1px solid rgba(255,255,255,.16); }
.status-list div:last-child { border-bottom: 0; padding-bottom: 0; }
.status-list dt { color: rgba(255,255,255,.68); font-size: .75rem; text-transform: uppercase; letter-spacing: .14em; }
.status-list dd { margin: 5px 0 0; font-size: 1.45rem; font-weight: 800; }
.status-ok { display: inline-flex; align-items: center; gap: 8px; color: #d6f5ff; font-size: .92rem; font-weight: 700; }
.status-ok i { width: 8px; height: 8px; border-radius: 50%; background: #55e2ad; }

.search-panel { border-radius: var(--radius); padding: 22px; margin-bottom: 30px; }
.search-panel label { display: block; margin-bottom: 10px; color: var(--navy); font-size: 1.15rem; font-weight: 800; }
.search-row { display: flex; gap: 10px; }
.search-row input { width: 100%; min-height: 52px; border: 2px solid var(--line); border-radius: 12px; padding: 0 16px; color: var(--ink); outline: none; }
.search-row input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,161,254,.12); }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 11px; border: 1px solid transparent; cursor: pointer; text-decoration: none; font-weight: 800; }
.primary-button { background: var(--blue); color: white; }
.primary-button:hover { background: var(--blue-dark); }
.secondary-button { background: white; color: var(--navy); border-color: var(--line); }
.secondary-button:hover { border-color: var(--blue); color: var(--blue-dark); }
.search-hints { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.search-hints button { border: 0; background: var(--surface-soft); border-radius: 999px; padding: 8px 11px; color: var(--muted); cursor: pointer; }
.search-hints button:hover { color: var(--blue-dark); background: #e7f7ff; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 46px 0 18px; }
.section-heading h2 { margin-bottom: 0; color: var(--navy); font-size: clamp(1.65rem, 3vw, 2.3rem); letter-spacing: -.025em; }
.section-heading p { max-width: 540px; margin-bottom: 0; color: var(--muted); line-height: 1.5; }
.flow-panel { border-radius: var(--radius); padding: 21px; }
.flow { display: flex; align-items: center; gap: 7px; }
.flow-item { flex: 1 1 0; min-height: 70px; padding: 15px 9px; border-radius: 13px; background: var(--surface-soft); display: flex; align-items: center; justify-content: center; text-align: center; color: var(--navy); font-weight: 800; font-size: .9rem; }
.flow-arrow { flex: 0 0 auto; color: var(--blue); font-size: 1.4rem; text-align: center; font-weight: 900; }
.flow-note { display: inline-block; margin-top: 16px; color: var(--danger); font-weight: 900; letter-spacing: .04em; }

.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.guide-card { position: relative; overflow: hidden; min-height: 205px; border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.guide-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--card-color, var(--blue)); }
.guide-card:hover, .guide-card:focus-visible { transform: translateY(-3px); border-color: rgba(0,161,254,.45); box-shadow: 0 20px 50px rgba(24,50,75,.15); outline: none; }
.guide-number { display: inline-flex; width: 33px; height: 33px; margin-bottom: 22px; border-radius: 50%; align-items: center; justify-content: center; background: #e7f7ff; color: var(--blue-dark); font-weight: 900; }
.guide-card h3 { margin-bottom: 9px; color: var(--navy); font-size: 1.17rem; line-height: 1.18; }
.guide-card p { margin-bottom: 20px; color: var(--muted); line-height: 1.45; }
.guide-cta { margin-top: auto; color: var(--blue-dark); font-weight: 800; }
.guide-card.warning { --card-color: #d06a70; }
.guide-card.warning .guide-number { background: var(--danger-bg); color: var(--danger); }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.info-card { border-radius: var(--radius); padding: 24px; }
.info-card h3 { color: var(--navy); }
.info-card p, .info-card li { color: var(--muted); line-height: 1.55; }
.info-card ul { margin: 0; padding-left: 20px; }

.search-results { display: grid; gap: 13px; }
.result-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-radius: 14px; padding: 18px 20px; text-decoration: none; }
.result-card h3 { margin-bottom: 4px; color: var(--navy); }
.result-card p { margin-bottom: 0; color: var(--muted); }
.no-results { padding: 20px; border-radius: 14px; background: white; border: 1px solid var(--line); color: var(--muted); }

.guide-hero { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.guide-hero h1 { max-width: 760px; font-size: clamp(2rem, 4vw, 3.6rem); }
.guide-hero .lead { max-width: 760px; margin-bottom: 0; color: var(--muted); font-size: 1.15rem; line-height: 1.55; }
.guide-meta { flex: 0 0 auto; padding: 13px 15px; background: #e7f7ff; border-radius: 12px; color: var(--blue-dark); font-weight: 800; text-align: center; }
.step-card { border-radius: 22px; padding: clamp(20px, 4vw, 36px); }
.step-top { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.step-badge { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: var(--blue); color: white; font-size: 1.35rem; font-weight: 900; flex: 0 0 auto; }
.step-top h2 { margin-bottom: 0; color: var(--navy); font-size: clamp(1.35rem, 3vw, 2rem); }
.step-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 28px; align-items: start; }
.step-copy { min-width: 0; }
.step-copy p { color: var(--ink); font-size: 1.1rem; line-height: 1.52; }
.step-copy p strong { color: var(--navy); }
.where, .expected, .warning-box, .no-capture { margin-top: 18px; border-radius: 13px; padding: 15px 16px; line-height: 1.5; }
.where { background: var(--surface-soft); border-left: 4px solid var(--blue); }
.expected { background: #effbf7; border-left: 4px solid #48b993; }
.warning-box { background: var(--danger-bg); border-left: 4px solid var(--danger); color: #71262e; }
.no-capture { background: #fff8e9; border-left: 4px solid #daa73d; color: #71521e; }
.label { display: block; margin-bottom: 4px; color: var(--navy); font-size: .75rem; font-weight: 900; text-transform: uppercase; letter-spacing: .11em; }
.capture-stage { position: relative; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); background: #dfe7ed; cursor: zoom-in; }
.capture-stage img { display: block; width: 100%; height: auto; }
.capture-caption { padding: 9px 12px; background: white; color: var(--muted); font-size: .82rem; }
.step-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; }
.step-progress { color: var(--muted); font-size: .9rem; font-weight: 700; text-align: center; }
.guide-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.mini-table { width: 100%; margin-top: 17px; border-collapse: collapse; font-size: .94rem; }
.mini-table th, .mini-table td { padding: 10px 9px; border-bottom: 1px solid var(--line); text-align: left; }
.mini-table th { color: var(--navy); }
.mini-table td { color: var(--muted); }

.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 25px; background: rgba(8,25,39,.87); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1100px, 96vw); max-height: 92vh; object-fit: contain; border-radius: 8px; box-shadow: 0 20px 70px rgba(0,0,0,.35); }
.lightbox-close { position: fixed; top: 14px; right: 20px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: white; color: var(--navy); font-size: 2rem; line-height: 1; cursor: pointer; }

.site-footer { background: var(--navy); color: rgba(255,255,255,.72); }
.footer-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: .88rem; }

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; }
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow { display: grid; grid-template-columns: repeat(3, 1fr); }
  .flow-arrow { transform: rotate(90deg); }
  .step-layout { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .header-inner, .footer-inner, .page-shell { width: min(100% - 24px, 600px); }
  .header-inner { min-height: 64px; gap: 12px; }
  .brand img { width: 110px; }
  .brand-divider, .brand-area { display: none; }
  .back-link { font-size: .86rem; }
  .page-shell { padding-top: 24px; padding-bottom: 48px; }
  .hero-copy, .status-card { border-radius: 17px; padding: 23px; }
  h1 { font-size: clamp(2.25rem, 12vw, 3.4rem); }
  .search-panel { padding: 16px; }
  .search-row { flex-direction: column; }
  .search-row .primary-button { width: 100%; }
  .section-heading { display: block; margin-top: 34px; }
  .section-heading h2 { margin-bottom: 8px; }
  .guide-grid, .info-grid { grid-template-columns: 1fr; }
  .guide-card { min-height: 170px; padding: 21px; }
  .flow { grid-template-columns: 1fr; gap: 4px; }
  .flow-item { min-height: 48px; }
  .flow-arrow { height: 19px; transform: none; }
  .guide-hero { display: block; }
  .guide-hero h1 { margin-bottom: 11px; }
  .guide-meta { display: inline-block; margin-top: 18px; }
  .step-card { padding: 17px; border-radius: 17px; }
  .step-layout { gap: 18px; }
  .step-copy p { font-size: 1.03rem; }
  .step-controls { align-items: stretch; }
  .step-controls .secondary-button, .step-controls .primary-button { min-height: 50px; padding-inline: 13px; }
  .step-progress { align-self: center; font-size: .78rem; }
  .footer-inner { padding: 17px 0; align-items: flex-start; flex-direction: column; gap: 6px; }
}
