/* RedBridge — light brand style (cream background, red #B81F22 accents) */
:root {
  --bg: #FBF8F1;
  --surface: #FFFFFF;
  --ink: #1D1A1A;
  --muted: #5B5551;
  --line: #E8DDD0;
  --red: #B81F22;
  --red-hover: #9A191C;
  --red-tint: #F7E9E5;
  --cream: #FCFBEE;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(29, 26, 26, .04), 0 10px 30px rgba(29, 26, 26, .06);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.6 -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-weight: 700; color: var(--ink); }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-weight: 600; font-size: 16px; line-height: 1; text-decoration: none;
  border-radius: 999px; padding: 15px 24px; border: 1.5px solid transparent;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-hover); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-cream { background: var(--cream); color: var(--red); }
.btn-cream:hover { background: #fff; }
.btn-sm { padding: 10px 18px; font-size: 15px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 248, 241, .88);
  -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 20px; letter-spacing: -.01em; }
.brand img { width: 36px; height: 36px; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.nav-side { display: flex; align-items: center; gap: 10px; }
.lang {
  font-size: 14px; font-weight: 600; text-decoration: none; color: var(--muted);
  padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface);
}
.lang:hover { color: var(--ink); border-color: var(--ink); }
.menu-btn {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); cursor: pointer;
}
.menu-btn svg { width: 22px; height: 22px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 64px 0 80px; }
.watermark {
  position: absolute; right: -140px; top: -60px; width: 640px; height: 610px; pointer-events: none;
  background: var(--red); opacity: .045;
  -webkit-mask: url(icon-mask.png) no-repeat center / contain; mask: url(icon-mask.png) no-repeat center / contain;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px;
  font-size: 14px; font-weight: 600; color: var(--red); background: var(--red-tint);
  padding: 7px 14px; border-radius: 14px;
}
h1 { font-size: clamp(2.5rem, 5.4vw, 4.3rem); line-height: 1.03; letter-spacing: -.035em; margin: 0 0 22px; }
h1 em { font-style: normal; color: var(--red); white-space: nowrap; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.28rem); color: var(--muted); max-width: 38ch; margin: 0 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { display: flex; align-items: flex-start; gap: 10px; margin: 24px 0 0; font-size: 15px; color: var(--muted); }
.hero-note svg { width: 18px; height: 18px; color: var(--red); flex: none; margin-top: 3px; }

/* Hero profile card (decorative) */
.hero-visual { position: relative; }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 26px; box-shadow: var(--shadow); }
.pcard-head { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 18px; }
.pcard-head > div { flex: 1 1 150px; min-width: 0; }
.avatar { width: 52px; height: 52px; border-radius: 14px; background: var(--red-tint); color: var(--red); display: grid; place-items: center; flex: none; }
.avatar svg { width: 26px; height: 26px; }
.pcard-head strong { display: block; font-size: 17px; line-height: 1.25; }
.pcard-head span { font-size: 14px; color: var(--muted); }
.pcard-head .avatar { color: var(--red); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.chips li { font-size: 13px; font-weight: 600; padding: 6px 11px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.pcard-rows { margin: 20px 0 0; padding: 0; }
.pcard-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 15px; }
.pcard-rows dt { color: var(--muted); }
.pcard-rows dd { margin: 0; font-weight: 600; text-align: right; }
.float-badge {
  position: absolute; left: -22px; bottom: -18px; display: flex; align-items: center; gap: 8px;
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; padding: 10px 16px; border-radius: 999px; box-shadow: var(--shadow);
}
.float-badge svg { width: 16px; height: 16px; }
.ready { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--red); background: var(--red-tint); padding: 6px 10px; border-radius: 999px; white-space: nowrap; }

/* Trust strip */
.trust { border-block: 1px solid var(--line); background: var(--surface); }
.trust ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; list-style: none; margin: 0 auto; padding-top: 22px; padding-bottom: 22px; }
.trust li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; }
.trust svg { width: 22px; height: 22px; color: var(--red); flex: none; }

/* Sections */
section[id] { scroll-margin-top: 84px; }
.section { padding: 96px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.kicker { margin: 0 0 12px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--red); }
h2 { font-size: clamp(2rem, 3.6vw, 2.85rem); line-height: 1.1; letter-spacing: -.03em; margin: 0 0 16px; }
.section-lead { color: var(--muted); font-size: 1.15rem; max-width: 60ch; margin: 0 0 48px; }

.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.section-alt .card { background: var(--bg); box-shadow: none; }
.icon { width: 46px; height: 46px; border-radius: 13px; background: var(--red-tint); color: var(--red); display: grid; place-items: center; margin-bottom: 18px; }
.icon svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.18rem; line-height: 1.3; letter-spacing: -.01em; margin: 0 0 8px; }
.card p { margin: 0; color: var(--muted); font-size: 1rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; margin: 0; padding: 0; }
.step .day { display: inline-block; margin-bottom: 18px; font-size: 13px; font-weight: 700; color: var(--red); background: var(--red-tint); padding: 5px 11px; border-radius: 999px; }
.step .num { font-size: 2.6rem; font-weight: 700; line-height: 1; letter-spacing: -.04em; margin-bottom: 14px; color: var(--ink); }

/* Profiles */
.profile { display: flex; flex-direction: column; }
.profile .pcard-head { margin-bottom: 14px; }
.profile .focus { margin: 0 0 16px; font-size: 15px; color: var(--muted); }
.profile .chips { margin-bottom: 18px; }
.pfoot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.pfoot .tools { margin: 0; font-size: 14px; color: var(--muted); }
.example-tag { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line); padding: 4px 8px; border-radius: 999px; white-space: nowrap; }
.note { margin: 28px 0 0; font-size: 15px; color: var(--muted); }

/* Engagement model */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.checklist { list-style: none; margin: 0; padding: 8px 28px; }
.checklist li { display: flex; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); }
.checklist li:first-child { border-top: 0; }
.checklist svg { width: 22px; height: 22px; color: var(--red); flex: none; margin-top: 3px; }
.checklist strong { display: block; font-size: 1.05rem; }
.checklist span { color: var(--muted); font-size: .98rem; }

/* About */
.about { display: grid; grid-template-columns: 1fr 360px; gap: 64px; align-items: center; }
.about-photo { order: 2; }
.about-photo { border-radius: 28px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); aspect-ratio: 1 / 1; background: var(--red-tint); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about .role { margin: -6px 0 20px; font-weight: 600; color: var(--red); }
.about .kicker { color: var(--red); }
.about p { color: var(--muted); max-width: 62ch; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 28px 0 0; padding: 0; list-style: none; max-width: 560px; }
.facts li { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.facts strong { display: block; font-size: 1.6rem; letter-spacing: -.03em; line-height: 1.1; }
.facts span { font-size: 14px; color: var(--muted); }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 4px; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { width: 20px; height: 20px; color: var(--red); flex: none; transition: transform .2s; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { margin: 0 4px 22px; color: var(--muted); max-width: 68ch; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; background: var(--red); color: var(--cream); border-radius: 32px; padding: 64px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; }
.cta-band h2 { color: var(--cream); margin: 0 0 10px; }
.cta-band p { margin: 0; color: rgba(252, 251, 238, .85); font-size: 1.12rem; max-width: 52ch; }
.cta-band .watermark { background: var(--cream); opacity: .08; right: -120px; top: -140px; width: 520px; height: 500px; }

/* Footer */
.site-footer { padding: 48px 0 56px; color: var(--muted); font-size: 15px; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.site-footer .brand { color: var(--ink); }
.site-footer .brand .sr-tag { font-weight: 400; font-size: 15px; color: var(--muted); }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; list-style: none; margin: 0; padding: 0; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; }

/* Legal pages */
.legal { max-width: 760px; padding: 64px 24px 96px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.legal h2 { font-size: 1.4rem; margin: 40px 0 10px; }
.legal p, .legal li { color: var(--muted); }
.todo { background: #FFF3C4; color: #5C4400; padding: 0 4px; border-radius: 4px; }

/* Responsive */
@media (max-width: 1020px) {
  .grid-4, .steps { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 18px;
    background: var(--bg); padding: 20px 24px 28px; border-bottom: 1px solid var(--line);
  }
  .menu-btn { display: inline-flex; }
  .hero-grid, .split, .about { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 460px; }
  .about-photo { max-width: 300px; order: 0; }
  .cta-band { grid-template-columns: 1fr; padding: 44px 28px; }
  .trust ul { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .grid-4, .grid-3, .steps { grid-template-columns: 1fr; }
  .nav-side .btn { display: none; }
  .hero { padding: 40px 0 64px; }
  .float-badge { left: 12px; }
  .facts { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* --- v2 (Nov 2026): logistics technology & AI ---------------------------- */
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.7rem); }
.hero-grid .lead { max-width: 48ch; }
.figures-title { margin: 0 0 18px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.figures { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 0; }
.figures div { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.figures dt { font-size: 1.7rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.figures dd { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.figures-src { margin: 16px 0 0; font-size: 13px; color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.facts.facts-4 { grid-template-columns: repeat(4, 1fr); max-width: none; margin: 0 0 28px; }
.pill { display: inline-block; margin-top: 16px; font-size: 13px; font-weight: 700; color: var(--red); background: var(--red-tint); padding: 5px 11px; border-radius: 999px; }
.card .price { margin-top: 14px; font-size: 15px; font-weight: 700; color: var(--ink); }
.card .stage-no { display: block; margin-bottom: 10px; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--red); }
.subhead { margin: 56px 0 20px; font-size: 1.35rem; letter-spacing: -.01em; }
.text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; font-weight: 700; color: var(--red); text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.text-link svg { width: 18px; height: 18px; }
@media (max-width: 900px) {
  .facts.facts-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
}

/* --- v3: guides (tables, long-form text) ------------------------------------ */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); margin: 0 0 16px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.data-table caption { text-align: left; padding: 14px 16px 0; font-weight: 700; }
.data-table th, .data-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table thead th { background: var(--bg); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.data-table tbody th { font-weight: 600; }
.data-table td { color: var(--muted); }
.data-table td strong { color: var(--ink); }
.data-table tbody tr:last-child th, .data-table tbody tr:last-child td { border-bottom: 0; }
.prose { max-width: 780px; }
.prose p, .prose li { color: var(--muted); }
.prose li { margin-bottom: 8px; }
.prose h3 { font-size: 1.2rem; margin: 32px 0 10px; }
.updated { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.crumbs { margin: 0 0 16px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
@media (max-width: 620px) {
  .data-table { min-width: 0; font-size: 14px; }
  .data-table th, .data-table td { padding: 10px 12px; overflow-wrap: anywhere; }
  .data-table thead th { font-size: 11px; letter-spacing: .02em; }
}

/* --- v4: quotes ------------------------------------------------------------- */
.quote { margin: 0; }
.quote blockquote { margin: 0 0 14px; font-size: 1.12rem; line-height: 1.55; color: var(--ink); }
.quote blockquote p { margin: 0; color: var(--ink); }
.quote figcaption { font-size: 14px; font-weight: 600; color: var(--muted); }

/* --- v5: navbar with service pages ----------------------------------------- */
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
@media (min-width: 901px) and (max-width: 1140px) {
  .nav { gap: 14px; }
  .nav-links { gap: 16px; }
  .nav-links a { font-size: 14px; white-space: nowrap; }
  .nav-side .btn-sm { padding: 10px 14px; font-size: 14px; }
}
/* Hero: never let a long highlighted word widen the column on phones. */
.hero-grid > * { min-width: 0; }
@media (max-width: 620px) { h1 em { white-space: normal; } }

/* --- v6: offers and prices ------------------------------------------------- */
.offer { display: flex; flex-direction: column; }
.offer .price-big { margin: 16px 0 0; font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.offer .text-link { margin-top: auto; padding-top: 18px; }
.offer-entry { display: grid; grid-template-columns: 1fr auto; gap: 16px 32px; align-items: center; margin-bottom: 20px; border: 2px solid var(--red); }
.offer-entry .price-big { margin: 0; text-align: right; white-space: nowrap; }
@media (max-width: 620px) {
  .offer-entry { grid-template-columns: 1fr; }
  .offer-entry .price-big { text-align: left; white-space: normal; }
}

/* v7: offer details on service pages */
.offer .offer-detail { margin-top: 12px; font-size: 15px; color: var(--muted); }
.offer .price-big:last-child { margin-top: auto; padding-top: 16px; }
