/* Ziem Logistics - base design. One file, no web fonts, no frameworks. */
:root {
  --ink: #0a1726;
  --navy: #0f2135;
  --navy-2: #173a5e;
  --steel: #5b6b7d;
  --muted: #8796a7;
  --line: #e3e7ec;
  --paper: #f6f5f1;
  --white: #fff;
  --accent: #f0561d;
  --accent-ink: #c4410e;
  --blue: #1e7fd8;
  --radius: 14px;
  --max: 1180px;
  --shadow: 0 1px 2px rgba(10, 23, 38, .05), 0 14px 36px -18px rgba(10, 23, 38, .22);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; font: 17px/1.65 var(--font); color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 780; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--white); color: var(--ink); border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ---------------------------------------------------------------- buttons */
.btn { display: inline-flex; align-items: center; gap: .5em; padding: .7em 1.2em; border-radius: 999px; font-weight: 650; font-size: .95rem; text-decoration: none; border: 1.5px solid transparent; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn-lg { padding: .9em 1.5em; font-size: 1rem; }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent-ink); }
.btn-ghost { color: var(--white); border-color: rgba(255, 255, 255, .35); }
.btn-ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .06); }

/* ---------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 69px; height: 32px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 1.1rem; letter-spacing: -.01em; }
.brand-text small { font-size: .78rem; color: var(--steel); }
.main-nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.main-nav a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-weight: 550; font-size: .95rem; }
.main-nav a:hover { background: var(--paper); }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; overflow: hidden; color: var(--white); padding: 96px 0 0;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(30, 127, 216, .35), transparent 60%),
    radial-gradient(700px 380px at -10% 110%, rgba(240, 86, 29, .18), transparent 60%),
    var(--navy); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: linear-gradient(180deg, #000, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); }
.hero .wrap { position: relative; }
.hero-inner { max-width: 860px; }
.eyebrow { display: inline-block; margin-bottom: 1.2em; padding: 6px 14px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #ffd2c0; }
.hero h1 { max-width: 18ch; }
.lead { font-size: 1.15rem; color: #c3cfdc; max-width: 62ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin: 72px 0 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.facts div { padding: 28px 24px 36px 0; }
.facts dt { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--white); }
.facts dd { margin: 8px 0 0; color: #a9b7c6; font-size: .95rem; max-width: 24ch; }

/* ---------------------------------------------------------------- sections */
.section { padding: 96px 0; }
.section-alt { background: var(--paper); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p { color: var(--steel); font-size: 1.08rem; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.card p { color: var(--steel); }
.card-icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: rgba(240, 86, 29, .1); color: var(--accent); margin-bottom: 20px; }
.checks { list-style: none; margin: 20px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); }
.checks li { position: relative; padding-left: 26px; margin: 8px 0; font-size: .95rem; }
.checks li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 28px 24px 24px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font-weight: 800; font-size: .9rem; color: var(--accent); letter-spacing: .06em; margin-bottom: 14px; }
.steps p { color: var(--steel); font-size: .97rem; }

.contact { background: var(--navy); color: var(--white); }
.contact-inner { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.contact p { color: #c3cfdc; font-size: 1.08rem; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-list a { display: flex; align-items: center; gap: 16px; padding: 18px 22px; border-radius: var(--radius); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); color: var(--white); text-decoration: none; font-weight: 650; font-size: 1.05rem; transition: background .15s; }
.contact-list a:hover { background: rgba(255, 255, 255, .11); }
.contact-list .icon { color: var(--accent); flex: none; }
.contact-list small { display: block; font-weight: 500; font-size: .8rem; color: #a9b7c6; }

/* free pages */
.page-head { background: var(--paper); padding: 72px 0 56px; border-bottom: 1px solid var(--line); }
.page-head .lead { color: var(--steel); }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 1.6em; }

/* ---------------------------------------------------------------- home: markets */
.card-link { color: inherit; text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; }
.card { position: relative; }
.card:hover { border-color: #f5b79f; }
.areas { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.area { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.area h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .06em; color: var(--steel); margin-bottom: 12px; }
.area ul { list-style: none; margin: 0; padding: 0; }
.area a { display: flex; align-items: center; gap: 14px; padding: 9px 8px; margin: 0 -8px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.area a:hover { background: var(--paper); }
.area strong { display: block; font-size: .98rem; }
.area small { display: block; font-size: .8rem; color: var(--steel); }
.iso { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--navy); color: var(--white); font-size: .75rem; font-weight: 750; letter-spacing: .04em; }
small.mode-inhouse { color: #1d7a4d; }

/* ---------------------------------------------------------------- inner pages */
.page-head { padding: 40px 0 48px; }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.9rem); max-width: 24ch; }
.page-head .lead { color: var(--steel); }
.kicker { font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: .6em; }
.head-cta { margin-top: 1.6rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; margin: 0 0 28px; padding: 0; font-size: .87rem; color: var(--steel); }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: #b6c0cb; }
.crumbs a { color: var(--steel); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; padding-top: 48px; padding-bottom: 96px; align-items: start; }
.main { min-width: 0; }
.block { margin-bottom: 56px; }
.block:last-child { margin-bottom: 0; }
.block h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); }
.block > p { color: #2c3a4a; max-width: 72ch; }
.group-title { font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; color: var(--steel); margin: 28px 0 12px; }

.aside { position: sticky; top: 96px; }
.aside-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--paper); }
.aside-title { font-weight: 750; font-size: 1.1rem; margin-bottom: .4em; }
.aside-card p { font-size: .93rem; color: var(--steel); }
.aside-card ul { list-style: none; margin: 16px 0 20px; padding: 0; }
.aside-card li { margin: 8px 0; font-size: .93rem; }
.aside-card li a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; text-decoration: none; }
.aside-card li a:hover { color: var(--accent-ink); }
.aside-card .icon { color: var(--accent); }
.aside-card small { color: var(--steel); }
.aside-card .btn { width: 100%; justify-content: center; }

.link-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.link-grid a { display: flex; gap: 12px; align-items: flex-start; height: 100%; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.link-grid a:hover { border-color: #f5b79f; box-shadow: var(--shadow); }
.link-grid strong { display: block; font-size: .97rem; line-height: 1.3; }
.link-grid small { display: block; margin-top: 3px; font-size: .82rem; color: var(--steel); line-height: 1.4; }
.lg-icon { flex: none; color: var(--accent); margin-top: 1px; }

.gateways { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; }
.gateways li { display: grid; grid-template-columns: 120px 1fr; gap: 2px 16px; padding: 12px 16px; background: var(--paper); border-radius: 10px; }
.gw-type { grid-row: span 2; display: flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 650; color: var(--steel); }
.gw-type .icon { color: var(--accent); }
.gateways strong { font-size: .97rem; }
.gateways code { font: 700 .8rem var(--font); background: var(--navy); color: var(--white); padding: 2px 7px; border-radius: 5px; margin-left: 6px; letter-spacing: .04em; }
.gateways small { color: var(--steel); font-size: .85rem; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.facts-table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 560px; }
.facts-table th, .facts-table td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.facts-table thead th { background: var(--navy); color: var(--white); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; }
.facts-table tbody th { font-weight: 650; }
.facts-table tbody tr:last-child > * { border-bottom: 0; }
.facts-table tbody tr:nth-child(even) { background: #fafbfc; }

.note-box { padding: 28px; border-radius: var(--radius); background: #f2f6fb; border: 1px solid #dbe6f2; }
.mode-tag { display: inline-block; font-size: .8rem; font-weight: 700; padding: 4px 12px; border-radius: 99px; background: var(--white); border: 1px solid #c9d7e6; color: var(--navy-2); }
.mode-tag.mode-inhouse { border-color: #b9e3cb; color: #1d7a4d; }

.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font-weight: 650; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.4rem; font-weight: 400; color: var(--accent); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: #2c3a4a; padding-bottom: 6px; }
.faq details > p:last-child { padding-bottom: 18px; }

.kv { display: grid; grid-template-columns: 1fr; margin: 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.kv div { display: grid; grid-template-columns: 220px 1fr; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.kv div:last-child { border-bottom: 0; }
.kv dt { font-weight: 650; font-size: .92rem; }
.kv dd { margin: 0; font-size: .95rem; color: #2c3a4a; }
.mini-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.mini-cards > div { padding: 20px; border: 1px solid var(--line); border-radius: 12px; }
.mini-cards h3 { font-size: 1rem; margin-bottom: .4em; }
.mini-cards p { font-size: .93rem; color: var(--steel); }
.checks.big { border-top: 0; padding-top: 0; margin-top: 0; }
.checks.big li { font-size: 1rem; }
.back-link { margin-top: 24px; font-weight: 600; }
.back-link a { text-decoration: none; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--ink); color: #a9b7c6; font-size: .95rem; padding-top: 64px; }
.site-footer a { color: #dfe6ee; text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1.3fr; gap: 40px; padding-bottom: 48px; }
.footer-name { color: var(--white); font-weight: 750; font-size: 1.15rem; margin-bottom: .5em; }
.footer-brand p:not(.footer-name) { max-width: 44ch; }
.footer-head { color: var(--white); font-weight: 650; margin-bottom: .8em; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 6px 0; }
.footer-contact span { color: var(--muted); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 22px; padding-bottom: 26px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .87rem; }
.footer-bottom ul { display: flex; gap: 20px; }
.footer-bottom li { margin: 0; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1000px) {
  .layout { grid-template-columns: 1fr; gap: 40px; }
  .aside { position: static; }
}
@media (max-width: 600px) {
  .kv div { grid-template-columns: 1fr; gap: 2px; }
  .gateways li { grid-template-columns: 1fr; }
  .gw-type { grid-row: auto; }
  .layout { padding-top: 32px; padding-bottom: 64px; }
  .block { margin-bottom: 44px; }
}
@media (max-width: 900px) {
  .header-cta { display: none; }
  .contact-inner, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .header-inner { flex-wrap: wrap; gap: 0; min-height: 0; padding-top: 10px; }
  .brand-text small { display: none; }
  .main-nav { width: 100%; overflow-x: auto; margin: 6px -8px 4px; }
  .main-nav a { padding: 8px 10px; white-space: nowrap; }
  .hero { padding-top: 64px; }
  .facts { margin-top: 48px; }
  .facts div { padding: 20px 16px 24px 0; }
  .card { padding: 24px; }
  html { scroll-padding-top: 120px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
