:root {
  color-scheme: light;
  --ink: #16202a;
  --muted: #667385;
  --line: #dfe6ee;
  --paper: #f7f9fc;
  --white: #ffffff;
  --brand: #e4342f;
  --brand-dark: #a91618;
  --navy: #132c45;
  --steel: #355168;
  --mint: #2fbf9f;
  --shadow: 0 24px 70px rgba(19, 44, 69, 0.18);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  line-height: 1.6;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px clamp(18px, 5vw, 72px);
  color: var(--white);
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    padding 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  padding-block: 12px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 12px 34px rgba(19, 44, 69, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  flex: 0 0 auto;
  width: clamp(156px, 14vw, 214px);
  min-height: 52px;
  padding: 5px 8px 6px 6px;
  color: currentColor;
  text-shadow: 0 2px 16px rgba(6, 25, 45, 0.26);
}

.site-header.is-scrolled .brand,
.site-header.is-open .brand {
  text-shadow: none;
}

.brand-mark {
  display: none;
}

.brand strong,
.brand small {
  display: block;
  color: currentColor;
  line-height: 0.9;
  letter-spacing: 0;
}

.brand strong {
  font-size: 0;
}

.brand strong::before {
  content: "MTCargo";
  font-size: clamp(2.05rem, 3.1vw, 3rem);
  font-weight: 950;
  letter-spacing: 0;
}

.brand small {
  margin-top: 3px;
  font-size: 0;
  opacity: 1;
}

.brand small::before {
  content: "Logistics Solutions";
  font-size: clamp(0.8rem, 1.05vw, 1.12rem);
  font-weight: 850;
  letter-spacing: 0;
}

.site-nav {
  order: 2;
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a {
  position: relative;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 160ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: var(--radius);
  color: inherit;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.header-actions {
  order: 3;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 20px;
}

.language-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
}

.site-header.is-scrolled .language-switch,
.site-header.is-open .language-switch {
  border-color: var(--line);
  background: var(--paper);
}

.lang-button {
  display: grid;
  place-items: center;
  min-width: 38px;
  height: 34px;
  border: 0;
  border-radius: 6px;
  color: currentColor;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 950;
  cursor: pointer;
}

.lang-button.is-active {
  color: var(--white);
  background: var(--brand);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1160px);
  gap: 34px;
  justify-content: center;
  place-items: center;
  min-height: 92vh;
  padding: 96px clamp(18px, 6vw, 88px) 40px;
  overflow: hidden;
  color: var(--white);
  isolation: isolate;
  text-align: center;
}

.hero-bg,
.fleet-image {
  background-image:
    linear-gradient(90deg, rgba(9, 20, 31, 0.1), rgba(9, 20, 31, 0.08)),
    url("https://images.unsplash.com/photo-1601584115197-04ecc0da31d7?auto=format&fit=crop&w=1800&q=82");
  background-position: center;
  background-size: cover;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(12, 30, 46, 0.9) 0%, rgba(12, 30, 46, 0.68) 44%, rgba(12, 30, 46, 0.3) 100%),
    linear-gradient(0deg, rgba(19, 44, 69, 0.72), transparent 38%);
}

.hero-content {
  display: flex;
  align-items: center;
  flex-direction: column;
  width: min(100%, 1120px);
  max-width: 1120px;
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow,
.cta .eyebrow {
  color: #ff6a63;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.06;
  letter-spacing: 0;
}

h1 {
  max-width: 1120px;
  margin-inline: auto;
  font-size: clamp(3rem, 6vw, 4.65rem);
}

h2 {
  max-width: 780px;
  font-size: clamp(2.15rem, 4.5vw, 4.4rem);
}

h3 {
  font-size: 1.25rem;
}

.hero-copy {
  max-width: 660px;
  margin: 22px 0 0;
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 1.8vw, 1.24rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 900;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: var(--brand);
  box-shadow: 0 16px 36px rgba(228, 52, 47, 0.28);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--brand-dark);
}

.button-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.12);
}

.hero-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  align-self: start;
  justify-self: center;
  width: 100%;
  max-width: 1080px;
  margin-top: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px);
}

.hero-panel div {
  min-height: 126px;
  padding: 24px;
  background: rgba(10, 24, 36, 0.28);
}

.metric {
  display: block;
  margin-bottom: 10px;
  color: var(--white);
  font-size: 2rem;
  font-weight: 950;
  line-height: 1;
}

.hero-panel span:last-child {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.94rem;
}

.section {
  padding: clamp(70px, 9vw, 120px) clamp(18px, 6vw, 88px);
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  gap: clamp(28px, 6vw, 82px);
  align-items: end;
  background: var(--white);
}

.intro > p,
.operation-copy p,
.fleet-copy p,
.cta p {
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.services {
  background:
    linear-gradient(180deg, rgba(47, 191, 159, 0.08), transparent 42%),
    var(--paper);
}

.section-heading {
  margin-bottom: 38px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  min-height: 300px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 42px rgba(19, 44, 69, 0.06);
}

.icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 40px;
  border-radius: var(--radius);
  color: var(--white);
  background: var(--navy);
  font-size: 0.88rem;
  font-weight: 950;
}

.service-card p {
  margin: 16px 0 0;
  color: var(--muted);
}

.operation {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(320px, 0.8fr);
  gap: clamp(28px, 6vw, 82px);
  align-items: center;
  padding: clamp(70px, 9vw, 120px) clamp(18px, 6vw, 88px);
  color: var(--white);
  background: var(--navy);
}

.operation-media {
  position: relative;
  min-height: 520px;
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(10, 24, 36, 0.72), rgba(10, 24, 36, 0.12)),
    linear-gradient(0deg, rgba(10, 24, 36, 0.64), rgba(10, 24, 36, 0.02) 52%),
    url("terrestre-preview.jpg");
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
}

.operation-media::before,
.operation-media::after {
  position: absolute;
  content: "";
}

.operation-media::before {
  inset: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: calc(var(--radius) - 2px);
}

.operation-media::after {
  right: 24px;
  bottom: 24px;
  left: 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--brand), var(--mint), transparent);
}

.media-shade,
.media-brand,
.status-pill,
.route-status {
  position: absolute;
}

.media-shade {
  inset: 0;
  background:
    radial-gradient(circle at 24% 36%, rgba(228, 52, 47, 0.16), transparent 28%),
    radial-gradient(circle at 84% 22%, rgba(47, 191, 159, 0.18), transparent 30%);
}

.media-brand {
  top: 28px;
  left: 28px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(10, 24, 36, 0.62);
  box-shadow: 0 18px 40px rgba(10, 24, 36, 0.24);
  backdrop-filter: blur(18px);
}

.media-brand span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 7px;
  background: var(--brand);
  font-size: 0.9rem;
  font-weight: 950;
}

.media-brand strong {
  font-size: 0.96rem;
}

.status-pill {
  top: 28px;
  right: 28px;
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(10, 24, 36, 0.58);
  font-size: 0.86rem;
  font-weight: 900;
  backdrop-filter: blur(16px);
}

.status-pill::before {
  width: 10px;
  height: 10px;
  margin-right: 9px;
  border-radius: 50%;
  content: "";
  background: var(--mint);
  box-shadow: 0 0 0 8px rgba(47, 191, 159, 0.16);
}

.route-status span,
.route-status strong {
  display: block;
}

.route-status span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.route-status {
  right: 34px;
  bottom: 34px;
  min-width: 174px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
}

.route-status strong {
  margin-top: 6px;
  font-size: 1.4rem;
  line-height: 1;
}

.operation-copy p {
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.74);
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 32px;
  color: rgba(255, 255, 255, 0.88);
}

.check-list li::before {
  position: absolute;
  top: 0.54em;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  content: "";
  background: var(--mint);
  box-shadow: inset 0 0 0 5px var(--navy);
}

.fleet {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(320px, 1fr);
  gap: clamp(28px, 6vw, 82px);
  align-items: center;
  background: var(--white);
}

.fleet-image {
  min-height: 560px;
  border-radius: var(--radius);
  background-position: 32% center;
  box-shadow: var(--shadow);
}

.fleet-copy p {
  margin-top: 22px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.stats div {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.stats strong,
.stats span {
  display: block;
}

.stats strong {
  color: var(--navy);
  font-size: 1.08rem;
}

.stats span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.94rem;
}

.cta {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(320px, 0.7fr);
  gap: clamp(28px, 6vw, 82px);
  padding: clamp(70px, 9vw, 120px) clamp(18px, 6vw, 88px);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(228, 52, 47, 0.16), transparent 40%),
    var(--navy);
}

.cta p {
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.72);
}

.contact-list {
  display: grid;
  gap: 16px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: grid;
  gap: 4px;
  padding: 0 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.contact-list span {
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.contact-list a {
  color: var(--white);
  font-weight: 800;
}

.contact-list small {
  color: rgba(255, 255, 255, 0.68);
}

.institutional-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.institutional-links a,
.institutional-links > span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
  font-weight: 800;
}

.social-link {
  gap: 9px;
}

.social-link span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 4px;
  color: var(--navy);
  background: var(--white);
  font-weight: 950;
  line-height: 1;
}

.quote-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.form-hidden {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.quote-form label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.88rem;
  font-weight: 800;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}

.quote-form input,
.quote-form select {
  min-height: 48px;
  padding: 0 14px;
}

.quote-form textarea {
  min-height: 118px;
  padding: 12px 14px;
  resize: vertical;
}

.quote-form input::placeholder,
.quote-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.48);
}

.quote-form select option {
  color: var(--ink);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 6vw, 88px);
  color: rgba(255, 255, 255, 0.74);
  background: #0d1c2a;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--white);
  font-weight: 800;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.legal-header {
  position: fixed;
}

.legal-page {
  padding-top: 92px;
  background: var(--paper);
}

.legal-hero {
  padding: clamp(72px, 9vw, 118px) clamp(18px, 6vw, 88px) clamp(44px, 6vw, 72px);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(228, 52, 47, 0.14), transparent 38%),
    linear-gradient(135deg, var(--navy), #0d1c2a);
}

.legal-hero h1 {
  max-width: 920px;
  margin-inline: 0;
  font-size: clamp(2.5rem, 6vw, 5.4rem);
}

.legal-hero p:last-child {
  max-width: 720px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.05rem;
}

.legal-download {
  margin-top: 28px;
}

.legal-document {
  width: min(980px, calc(100% - 36px));
  margin: clamp(38px, 6vw, 72px) auto;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 18px 42px rgba(19, 44, 69, 0.07);
}

.legal-document h2,
.legal-document h3 {
  color: var(--navy);
}

.legal-document h2 {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: clamp(1.55rem, 3vw, 2.4rem);
}

.legal-document h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.legal-document h3 {
  margin-top: 28px;
  font-size: 1.2rem;
  line-height: 1.3;
}

.legal-document p,
.legal-document li {
  color: var(--muted);
}

.legal-document a {
  color: var(--brand);
  font-weight: 800;
}

.legal-document ul,
.legal-document ol {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding-left: 22px;
}

.legal-note {
  margin-top: 34px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.legal-note p {
  margin: 0;
}

.legal-note p + p {
  margin-top: 10px;
}

@media (max-width: 1040px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .operation,
  .fleet,
  .cta,
  .intro {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    max-width: 1080px;
  }

  .fleet-image,
  .operation-media {
    min-height: 420px;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 12px 16px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 16px;
    left: 16px;
    display: none;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .header-actions {
    margin-left: 10px;
  }

  .language-switch {
    padding: 2px;
  }

  .lang-button {
    min-width: 34px;
    height: 32px;
  }

  .site-header.is-open .site-nav {
    display: grid;
    gap: 14px;
  }

  .hero {
    min-height: 86vh;
    padding: 112px 18px 34px;
    text-align: center;
  }

  h1 {
    font-size: clamp(2.45rem, 12vw, 3.8rem);
  }

  h2 {
    font-size: clamp(2rem, 9vw, 3.2rem);
  }

  .hero-panel,
  .service-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    display: none;
  }

  .service-card {
    min-height: auto;
  }

  .operation-media {
    min-height: 360px;
    background-position: center;
  }

  .fleet-image {
    min-height: 380px;
    background-position: left center;
  }

  .operation-media::before {
    inset: 14px;
  }

  .media-brand {
    top: 18px;
    left: 18px;
    gap: 9px;
    padding: 8px 10px 8px 8px;
  }

  .media-brand span {
    width: 34px;
    height: 34px;
  }

  .status-pill {
    top: 18px;
    right: 18px;
    left: auto;
    max-width: 152px;
  }

  .route-status {
    right: 22px;
    left: auto;
    bottom: 22px;
    min-width: 126px;
    padding: 14px;
  }

  .route-status strong {
    font-size: 1.08rem;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

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