:root {
  color-scheme: light;
  --navy: #061f49;
  --navy-2: #0a3568;
  --blue: #0b58a2;
  --orange: #f26616;
  --gold: #ffb000;
  --green: #08754f;
  --ink: #0d1930;
  --muted: #5d6a7f;
  --line: #dbe3ef;
  --soft: #f5f8fc;
  --white: #ffffff;
  --shadow: 0 16px 40px rgba(6, 31, 73, 0.13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding-bottom: 104px;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--white);
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { display: block; }

.app-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px clamp(18px, 5vw, 76px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}
.brand-link {
  border: 0;
  background: transparent;
  color: var(--navy);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 18px;
  line-height: 1.1;
}
.header-nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.header-nav button,
.primary-button,
.secondary-button,
.ghost-button,
.text-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 0;
  font-weight: 900;
  line-height: 1.12;
  text-align: center;
}
.header-nav button { background: transparent; color: var(--navy); }
.header-nav button:hover { background: var(--soft); }
.header-nav .quote-nav,
.primary-button { background: var(--orange); color: white; }
.secondary-button { background: var(--navy); color: white; }
.ghost-button { background: white; color: var(--navy); border: 1px solid var(--line); }
.text-button { background: transparent; color: var(--blue); padding-left: 0; padding-right: 0; }

.app-main { min-height: calc(100svh - 72px); }
.view { animation: fadeIn 160ms ease-out; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.home-view {
  min-height: calc(100svh - 72px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 30px;
  padding: clamp(44px, 7vw, 92px) clamp(18px, 5vw, 76px);
  background-color: var(--navy);
  background-image:
    linear-gradient(90deg, rgba(6,31,73,.24), rgba(6,31,73,.04)),
    url("hero-cover.jpg");
  background-position: center, center right;
  background-size: cover, cover;
  background-repeat: no-repeat;
}
.home-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
  color: white;
}
.home-logo {
  width: min(170px, 46vw);
  display: block;
  margin-bottom: 26px;
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}
.home-copy h1,
.page-hero h1,
.detail-title h1 {
  margin: 0;
  color: inherit;
  font-size: clamp(38px, 7vw, 72px);
  line-height: 1.02;
  letter-spacing: 0;
}
.home-copy p {
  max-width: 760px;
  margin: 18px 0 0;
  color: rgba(255,255,255,.88);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
}
.action-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.portal-stack {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 340px));
  gap: 16px;
  width: min(100%, 720px);
  margin-top: clamp(18px, 4vh, 52px);
}
.portal-card {
  width: 100%;
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 16px;
  align-items: start;
  padding: 22px;
  border: 1px solid rgba(255,255,255,.56);
  border-radius: 8px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  text-align: left;
}
.portal-card:hover { border-color: var(--orange); transform: translateY(-1px); }
.portal-card strong { display: block; color: var(--navy); font-size: 26px; line-height: 1.12; }
.portal-card span span { display: block; margin-top: 8px; color: var(--muted); line-height: 1.5; }
.portal-card small {
  display: inline-flex;
  margin-top: 14px;
  padding: 8px 11px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--blue);
  font-weight: 900;
}

.icon-box,
.service-icon,
.detail-icon,
.mini-icon {
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--soft);
  color: var(--blue);
}
.icon-box { width: 74px; height: 74px; }
.icon-box.logistics,
.detail-icon.logistics { color: var(--green); background: #e8f6ef; }
.icon-box.technical,
.detail-icon.technical { color: var(--blue); background: #e9f1fb; }
.icon-box svg,
.service-icon svg,
.detail-icon svg,
.mini-icon svg {
  width: 34px;
  height: 34px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.page-view,
.detail-view,
.contact-view,
.terms-page {
  padding: clamp(34px, 5vw, 64px) clamp(18px, 5vw, 76px);
}
.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: end;
  margin-bottom: 28px;
}
.page-hero h1 { color: var(--navy); font-size: clamp(34px, 5vw, 58px); }
.page-hero p { max-width: 790px; margin: 12px 0 0; color: var(--muted); line-height: 1.62; }
.portal-label {
  display: inline-flex;
  width: max-content;
  margin-bottom: 10px;
  padding: 8px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}
.portal-label.logistics { background: #e8f6ef; color: var(--green); }
.portal-label.technical { background: #e9f1fb; color: var(--blue); }
.page-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}
.service-card {
  min-height: 252px;
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
  text-align: left;
}
.service-card:hover { border-color: var(--orange); transform: translateY(-1px); }
.service-icon { width: 56px; height: 56px; }
.service-card h3 { margin: 0; color: var(--navy); font-size: 22px; line-height: 1.2; }
.service-card p { margin: 0; color: var(--muted); line-height: 1.5; }
.card-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; }
.card-footer span { color: var(--orange); font-weight: 900; }
.card-footer svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 2.2; }

.info-panel {
  margin-top: 30px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}
.info-panel h2 { margin: 0 0 14px; color: var(--navy); font-size: 30px; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.mini-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
.mini-icon { width: 42px; height: 42px; }
.mini-icon svg { width: 24px; height: 24px; }
.mini-card strong { display: block; color: var(--navy); }
.mini-card span span { display: block; margin-top: 4px; color: var(--muted); line-height: 1.35; }

.detail-view,
.contact-view,
.terms-page { background: linear-gradient(180deg, #fff, #f7f9fd); }
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(300px, .55fr);
  gap: 28px;
  align-items: start;
}
.detail-main,
.detail-side {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}
.detail-title {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}
.detail-icon { width: 72px; height: 72px; }
.detail-title h1 { color: var(--navy); font-size: clamp(32px, 5vw, 56px); }
.detail-main p,
.detail-side p { color: var(--muted); line-height: 1.62; }
.detail-list { display: grid; gap: 10px; margin: 20px 0; padding: 0; list-style: none; }
.detail-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--ink);
}
.detail-list b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--orange); color: white; font-size: 13px; }
.detail-side h2 { margin: 0 0 12px; color: var(--navy); }
.detail-actions { display: grid; gap: 10px; margin-top: 18px; }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin-top: 12px;
}
.contact-card {
  display: grid;
  gap: 8px;
  min-height: 190px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}
.contact-card:hover { border-color: var(--orange); transform: translateY(-1px); }
.contact-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: var(--soft);
  color: var(--blue);
  font-weight: 900;
}
.contact-card strong { color: var(--navy); font-size: 20px; }
.contact-card span { color: var(--ink); overflow-wrap: anywhere; }
.contact-card small { color: var(--muted); line-height: 1.35; }

.terms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.terms-section {
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}
.terms-section span {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: var(--navy);
  color: white;
  font-weight: 900;
}
.terms-section h2 { margin: 16px 0 10px; color: var(--navy); font-size: 22px; }
.terms-section p { margin: 0; color: var(--muted); line-height: 1.58; }
.terms-note { background: white; }
.legal-list { display: grid; gap: 10px; margin: 0; padding-left: 20px; color: var(--muted); line-height: 1.55; }

.quote-drawer { position: fixed; inset: 0; z-index: 100; display: none; }
.quote-drawer.open { display: block; }
.quote-backdrop { position: absolute; inset: 0; background: rgba(6,31,73,.48); }
.quote-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(480px, 100%);
  height: 100%;
  overflow: auto;
  padding: 24px;
  background: white;
  box-shadow: -20px 0 44px rgba(6,31,73,.24);
}
.quote-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.quote-head h2 { margin: 0; color: var(--navy); font-size: 30px; }
.close-button { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 8px; background: var(--soft); color: var(--navy); font-size: 24px; }
.selected-summary { padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); margin-bottom: 14px; }
.selected-summary strong { display: block; color: var(--orange); margin-bottom: 4px; }
form { display: grid; gap: 14px; }
label { display: grid; gap: 7px; font-weight: 900; color: var(--navy); }
input, select, textarea { width: 100%; min-height: 44px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: white; }
textarea { resize: vertical; }
.form-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-note { margin: 0; padding: 14px; border-left: 5px solid var(--orange); border-radius: 8px; background: var(--soft); color: var(--ink); line-height: 1.45; }

.action-dock {
  position: fixed;
  right: 18px;
  bottom: 14px;
  z-index: 90;
  display: grid;
  grid-template-columns: repeat(5, minmax(74px, auto));
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(219, 227, 239, .92);
  border-radius: 8px;
  background: rgba(255, 255, 255, .95);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.dock-action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border: 0;
  border-radius: 8px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}
.dock-action.call { background: var(--green); color: white; }
.dock-action.chat { background: var(--navy); color: white; }
.dock-action.quote { background: var(--orange); color: white; }
.dock-action.share { background: #118c7e; color: white; }
.dock-action.terms { background: var(--soft); color: var(--navy); border: 1px solid var(--line); }


.chat-widget {
  position: fixed;
  right: 18px;
  bottom: 84px;
  z-index: 95;
  display: none;
  width: min(390px, calc(100% - 36px));
}
.chat-widget.open { display: block; }
.chat-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}
.chat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  background: var(--navy);
  color: white;
}
.chat-head strong,
.chat-head span { display: block; }
.chat-head span { margin-top: 4px; color: rgba(255,255,255,.76); font-size: 13px; }
.chat-messages {
  display: grid;
  gap: 10px;
  max-height: 320px;
  overflow: auto;
  padding: 14px;
  background: var(--soft);
}
.chat-message {
  width: fit-content;
  max-width: 92%;
  padding: 10px 12px;
  border-radius: 8px;
  line-height: 1.45;
  font-size: 14px;
}
.chat-message.bot { background: white; border: 1px solid var(--line); color: var(--ink); }
.chat-message.typing { color: var(--muted); font-style: italic; }
.chat-message.user { justify-self: end; background: var(--orange); color: white; }
.chat-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 12px; background: white; }
.chat-form input { min-height: 42px; }
.chat-form .primary-button { min-height: 42px; }

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  padding: 20px clamp(18px, 5vw, 76px) 104px;
  background: var(--navy);
  color: rgba(255,255,255,.86);
}
.site-footer strong { color: white; }
.site-footer a,
.footer-link { color: rgba(255,255,255,.88); font-weight: 800; }
.site-footer a:hover,
.footer-link:hover { color: white; text-decoration: underline; }

@media (max-width: 920px) {
  .home-view {
    min-height: auto;
    background-image:
      linear-gradient(180deg, rgba(6,31,73,.95), rgba(6,31,73,.86)),
      url("hero-cover.jpg");
    background-position: center, 62% center;
  }
  .portal-stack { grid-template-columns: 1fr; max-width: 680px; }
  .page-hero { grid-template-columns: 1fr; align-items: start; }
  .page-actions { justify-content: flex-start; }
  .detail-layout { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  body { padding-bottom: 146px; }
  .app-header { position: static; align-items: stretch; flex-direction: column; }
  .brand-link { text-align: left; }
  .header-nav { display: grid; grid-template-columns: 1fr 1fr; }
  .header-nav button,
  .primary-button,
  .secondary-button,
  .ghost-button { width: 100%; }
  .home-view { padding-top: 34px; }
  .home-copy h1 { font-size: 36px; }
  .portal-card { grid-template-columns: 58px 1fr; padding: 18px; }
  .portal-card strong { font-size: 22px; }
  .icon-box { width: 58px; height: 58px; }
  .icon-box svg { width: 28px; height: 28px; }
  .service-grid { grid-template-columns: 1fr; }
  .detail-title { grid-template-columns: 1fr; }
  .detail-icon { width: 60px; height: 60px; }
  .quote-panel { padding: 18px; }
  .form-actions { grid-template-columns: 1fr; }
  .chat-widget { left: 12px; right: 12px; bottom: 88px; width: auto; }
  .chat-form { grid-template-columns: 1fr; }
  .action-dock {
    left: 10px;
    right: 10px;
    bottom: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    padding: 7px;
  }
  .dock-action {
    min-width: 0;
    min-height: 44px;
    padding: 10px 5px;
    font-size: 12px;
    white-space: normal;
  }
  .site-footer { padding-bottom: 156px; }
}

@media (max-width: 420px) {
  .header-nav { grid-template-columns: 1fr; }
  .portal-card { grid-template-columns: 1fr; }
  .page-view,
  .detail-view,
  .contact-view,
  .terms-page { padding-left: 14px; padding-right: 14px; }
}

.lang-toggle { background: var(--navy) !important; color: white !important; min-width: 58px; }
